From 38f50264f682d514af2080755a9745a98ab41b84 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 12 Jan 2022 21:10:36 +0100 Subject: [PATCH] Update generated SDKs (#119) Co-authored-by: Auto Mation --- .../Orders/ByProjectKeyOrdersSearchTest.cs} | 23 ++-- ...ojectKeyInventoriesImportContainersTest.cs | 16 --- ...ByImportSinkKeyImportOperationsByIdTest.cs | 37 ------ ...kKeyByImportSinkKeyImportOperationsTest.cs | 109 ------------------ ...ntoriesImportSinkKeyByImportSinkKeyTest.cs | 35 ------ .../ByProjectKeyInventoriesTest.cs | 16 --- .../ByProjectKeyOrdersRequestBuilder.cs | 5 + .../Orders/ByProjectKeyOrdersSearchHead.cs | 37 ++++++ .../Orders/ByProjectKeyOrdersSearchPost.cs | 56 +++++++++ .../ByProjectKeyOrdersSearchRequestBuilder.cs | 34 ++++++ .../Models/CartDiscounts/CartDiscountDraft.cs | 2 +- .../CartDiscounts/ICartDiscountDraft.cs | 2 +- .../CartSetLineItemSupplyChannelAction.cs | 18 +++ .../ICartSetLineItemSupplyChannelAction.cs | 14 +++ .../Models/Carts/ICartUpdateAction.cs | 1 + .../Generated/Models/Carts/ILineItem.cs | 2 + .../Generated/Models/Carts/LineItem.cs | 2 + .../Models/Customers/CustomerDraft.cs | 4 +- .../Models/Customers/ICustomerDraft.cs | 4 +- .../IMyCartSetLineItemSupplyChannelAction.cs | 14 +++ .../Models/Me/IMyCartUpdateAction.cs | 1 + ...yPaymentSetTransactionCustomFieldAction.cs | 14 +++ .../Models/Me/IMyPaymentUpdateAction.cs | 1 + .../Models/Me/IMyTransactionDraft.cs | 3 + .../MyCartSetLineItemSupplyChannelAction.cs | 18 +++ ...yPaymentSetTransactionCustomFieldAction.cs | 18 +++ .../Generated/Models/Me/MyTransactionDraft.cs | 3 + .../Models/Messages/ContainerAndKey.cs | 9 ++ .../Models/Messages/IContainerAndKey.cs | 13 +++ .../Generated/Models/Messages/IMessage.cs | 1 + .../Models/Messages/IMessagePayload.cs | 1 + ...erLineItemDistributionChannelSetMessage.cs | 14 +++ ...temDistributionChannelSetMessagePayload.cs | 14 +++ .../Messages/IUserProvidedIdentifiers.cs | 2 + ...erLineItemDistributionChannelSetMessage.cs | 40 +++++++ ...temDistributionChannelSetMessagePayload.cs | 18 +++ .../Messages/UserProvidedIdentifiers.cs | 2 + .../IStagedOrderAddDeliveryAction.cs | 3 + ...StagedOrderSetDeliveryCustomFieldAction.cs | 15 +++ ...IStagedOrderSetDeliveryCustomTypeAction.cs | 16 +++ .../StagedOrderAddDeliveryAction.cs | 3 + ...StagedOrderSetDeliveryCustomFieldAction.cs | 18 +++ .../StagedOrderSetDeliveryCustomTypeAction.cs | 19 +++ .../Generated/Models/Orders/Delivery.cs | 3 + .../Generated/Models/Orders/Hit.cs | 11 ++ .../Generated/Models/Orders/IDelivery.cs | 3 + .../Generated/Models/Orders/IHit.cs | 15 +++ .../Models/Orders/IOrderAddDeliveryAction.cs | 3 + .../Orders/IOrderPagedSearchResponse.cs | 18 +++ .../Models/Orders/IOrderSearchRequest.cs | 17 +++ .../IOrderSetDeliveryCustomFieldAction.cs | 14 +++ .../IOrderSetDeliveryCustomTypeAction.cs | 14 +++ .../Models/Orders/IOrderUpdateAction.cs | 2 + .../Models/Orders/IStagedOrderUpdateAction.cs | 2 + .../Models/Orders/OrderAddDeliveryAction.cs | 3 + .../Models/Orders/OrderPagedSearchResponse.cs | 16 +++ .../Models/Orders/OrderSearchRequest.cs | 13 +++ .../OrderSetDeliveryCustomFieldAction.cs | 18 +++ .../OrderSetDeliveryCustomTypeAction.cs | 18 +++ ...IPaymentSetTransactionCustomFieldAction.cs | 14 +++ .../IPaymentSetTransactionCustomTypeAction.cs | 14 +++ .../Models/Payments/IPaymentUpdateAction.cs | 2 + .../Generated/Models/Payments/ITransaction.cs | 3 + .../Models/Payments/ITransactionDraft.cs | 3 + .../PaymentSetTransactionCustomFieldAction.cs | 18 +++ .../PaymentSetTransactionCustomTypeAction.cs | 18 +++ .../Generated/Models/Payments/Transaction.cs | 3 + .../Models/Payments/TransactionDraft.cs | 3 + ...IProjectChangeCartsConfigurationAction.cs} | 4 +- .../IProjectChangeOrderSearchStatusAction.cs | 11 ++ ...ChangeShoppingListsConfigurationAction.cs} | 4 +- .../Models/Projects/IProjectUpdateAction.cs | 5 +- .../Projects/ISearchIndexingConfiguration.cs | 2 + .../Models/Projects/OrderSearchStatus.cs | 50 ++++++++ ... ProjectChangeCartsConfigurationAction.cs} | 4 +- .../ProjectChangeOrderSearchStatusAction.cs | 13 +++ ...ChangeShoppingListsConfigurationAction.cs} | 4 +- .../Projects/SearchIndexingConfiguration.cs | 2 + .../Subscriptions/EventBridgeDestination.cs | 15 +++ .../Models/Subscriptions/IDestination.cs | 1 + .../Subscriptions/IEventBridgeDestination.cs | 13 +++ .../Models/ChangeHistoryResourceType.cs | 7 ++ .../Models/Changes/AddPropertyChange.cs | 20 ++++ .../Models/Changes/IAddPropertyChange.cs | 18 +++ .../Generated/Models/Changes/IChange.cs | 4 + .../Models/Changes/IRemovePropertyChange.cs | 18 +++ .../ISetCustomLineItemCustomFieldChange.cs | 2 + .../ISetCustomLineItemCustomTypeChange.cs | 2 + .../Models/Changes/ISetPropertyChange.cs | 20 ++++ .../Models/Changes/ISetValueChange.cs | 18 +++ .../Models/Changes/RemovePropertyChange.cs | 20 ++++ .../SetCustomLineItemCustomFieldChange.cs | 2 + .../SetCustomLineItemCustomTypeChange.cs | 2 + .../Models/Changes/SetPropertyChange.cs | 22 ++++ .../Models/Changes/SetValueChange.cs | 20 ++++ .../Generated/Models/Common/Delivery.cs | 2 + .../Generated/Models/Common/IDelivery.cs | 2 + .../Models/Labels/CustomObjectLabel.cs | 15 +++ .../Models/Labels/ICustomObjectLabel.cs | 15 +++ .../Generated/Models/Labels/ILabel.cs | 1 + ...mportContainersByImportContainerKeyPost.cs | 59 ---------- ...inersByImportContainerKeyRequestBuilder.cs | 32 ----- ...ventoriesImportContainersRequestBuilder.cs | 30 ----- ...yByImportSinkKeyImportOperationsByIdGet.cs | 42 ------- ...nkKeyImportOperationsByIdRequestBuilder.cs | 35 ------ ...nkKeyByImportSinkKeyImportOperationsGet.cs | 98 ---------------- ...rtSinkKeyImportOperationsRequestBuilder.cs | 37 ------ ...ntoriesImportSinkKeyByImportSinkKeyPost.cs | 59 ---------- ...ortSinkKeyByImportSinkKeyRequestBuilder.cs | 38 ------ .../ByProjectKeyInventoriesRequestBuilder.cs | 36 ------ .../Projects/ByProjectKeyRequestBuilder.cs | 6 - .../Models/Common/ImportResourceType.cs | 11 +- .../Models/Importrequests/IImportRequest.cs | 1 - .../Importrequests/IInventoryImportRequest.cs | 13 --- .../Importrequests/InventoryImportRequest.cs | 18 --- .../Models/Inventories/IInventoryImport.cs | 24 ---- .../Models/Inventories/InventoryImport.cs | 24 ---- 117 files changed, 1029 insertions(+), 797 deletions(-) rename commercetools.Sdk/Tests/{commercetools.Sdk.ImportApi.Tests/Generated/Client/RequestBuilders/Inventories/ByProjectKeyInventoriesImportContainersByImportContainerKeyTest.cs => commercetools.Sdk.Api.Tests/Generated/Client/RequestBuilders/Orders/ByProjectKeyOrdersSearchTest.cs} (53%) delete mode 100644 commercetools.Sdk/Tests/commercetools.Sdk.ImportApi.Tests/Generated/Client/RequestBuilders/Inventories/ByProjectKeyInventoriesImportContainersTest.cs delete mode 100644 commercetools.Sdk/Tests/commercetools.Sdk.ImportApi.Tests/Generated/Client/RequestBuilders/Inventories/ByProjectKeyInventoriesImportSinkKeyByImportSinkKeyImportOperationsByIdTest.cs delete mode 100644 commercetools.Sdk/Tests/commercetools.Sdk.ImportApi.Tests/Generated/Client/RequestBuilders/Inventories/ByProjectKeyInventoriesImportSinkKeyByImportSinkKeyImportOperationsTest.cs delete mode 100644 commercetools.Sdk/Tests/commercetools.Sdk.ImportApi.Tests/Generated/Client/RequestBuilders/Inventories/ByProjectKeyInventoriesImportSinkKeyByImportSinkKeyTest.cs delete mode 100644 commercetools.Sdk/Tests/commercetools.Sdk.ImportApi.Tests/Generated/Client/RequestBuilders/Inventories/ByProjectKeyInventoriesTest.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/Orders/ByProjectKeyOrdersSearchHead.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/Orders/ByProjectKeyOrdersSearchPost.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/Orders/ByProjectKeyOrdersSearchRequestBuilder.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Carts/CartSetLineItemSupplyChannelAction.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Carts/ICartSetLineItemSupplyChannelAction.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Me/IMyCartSetLineItemSupplyChannelAction.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Me/IMyPaymentSetTransactionCustomFieldAction.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Me/MyCartSetLineItemSupplyChannelAction.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Me/MyPaymentSetTransactionCustomFieldAction.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/ContainerAndKey.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/IContainerAndKey.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/IOrderLineItemDistributionChannelSetMessage.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/IOrderLineItemDistributionChannelSetMessagePayload.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/OrderLineItemDistributionChannelSetMessage.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/OrderLineItemDistributionChannelSetMessagePayload.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/OrderEdits/IStagedOrderSetDeliveryCustomFieldAction.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/OrderEdits/IStagedOrderSetDeliveryCustomTypeAction.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/OrderEdits/StagedOrderSetDeliveryCustomFieldAction.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/OrderEdits/StagedOrderSetDeliveryCustomTypeAction.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Orders/Hit.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Orders/IHit.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Orders/IOrderPagedSearchResponse.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Orders/IOrderSearchRequest.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Orders/IOrderSetDeliveryCustomFieldAction.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Orders/IOrderSetDeliveryCustomTypeAction.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Orders/OrderPagedSearchResponse.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Orders/OrderSearchRequest.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Orders/OrderSetDeliveryCustomFieldAction.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Orders/OrderSetDeliveryCustomTypeAction.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Payments/IPaymentSetTransactionCustomFieldAction.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Payments/IPaymentSetTransactionCustomTypeAction.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Payments/PaymentSetTransactionCustomFieldAction.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Payments/PaymentSetTransactionCustomTypeAction.cs rename commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Projects/{IProjectChangeCartsConfiguration.cs => IProjectChangeCartsConfigurationAction.cs} (64%) create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Projects/IProjectChangeOrderSearchStatusAction.cs rename commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Projects/{IProjectChangeShoppingListsConfiguration.cs => IProjectChangeShoppingListsConfigurationAction.cs} (79%) create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Projects/OrderSearchStatus.cs rename commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Projects/{ProjectChangeCartsConfiguration.cs => ProjectChangeCartsConfigurationAction.cs} (60%) create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Projects/ProjectChangeOrderSearchStatusAction.cs rename commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Projects/{ProjectChangeShoppingListsConfiguration.cs => ProjectChangeShoppingListsConfigurationAction.cs} (73%) create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Subscriptions/EventBridgeDestination.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Subscriptions/IEventBridgeDestination.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/Models/Changes/AddPropertyChange.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/Models/Changes/IAddPropertyChange.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/Models/Changes/IRemovePropertyChange.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/Models/Changes/ISetPropertyChange.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/Models/Changes/ISetValueChange.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/Models/Changes/RemovePropertyChange.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/Models/Changes/SetPropertyChange.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/Models/Changes/SetValueChange.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/Models/Labels/CustomObjectLabel.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/Models/Labels/ICustomObjectLabel.cs delete mode 100644 commercetools.Sdk/commercetools.Sdk.ImportApi/Generated/Client/RequestBuilders/Inventories/ByProjectKeyInventoriesImportContainersByImportContainerKeyPost.cs delete mode 100644 commercetools.Sdk/commercetools.Sdk.ImportApi/Generated/Client/RequestBuilders/Inventories/ByProjectKeyInventoriesImportContainersByImportContainerKeyRequestBuilder.cs delete mode 100644 commercetools.Sdk/commercetools.Sdk.ImportApi/Generated/Client/RequestBuilders/Inventories/ByProjectKeyInventoriesImportContainersRequestBuilder.cs delete mode 100644 commercetools.Sdk/commercetools.Sdk.ImportApi/Generated/Client/RequestBuilders/Inventories/ByProjectKeyInventoriesImportSinkKeyByImportSinkKeyImportOperationsByIdGet.cs delete mode 100644 commercetools.Sdk/commercetools.Sdk.ImportApi/Generated/Client/RequestBuilders/Inventories/ByProjectKeyInventoriesImportSinkKeyByImportSinkKeyImportOperationsByIdRequestBuilder.cs delete mode 100644 commercetools.Sdk/commercetools.Sdk.ImportApi/Generated/Client/RequestBuilders/Inventories/ByProjectKeyInventoriesImportSinkKeyByImportSinkKeyImportOperationsGet.cs delete mode 100644 commercetools.Sdk/commercetools.Sdk.ImportApi/Generated/Client/RequestBuilders/Inventories/ByProjectKeyInventoriesImportSinkKeyByImportSinkKeyImportOperationsRequestBuilder.cs delete mode 100644 commercetools.Sdk/commercetools.Sdk.ImportApi/Generated/Client/RequestBuilders/Inventories/ByProjectKeyInventoriesImportSinkKeyByImportSinkKeyPost.cs delete mode 100644 commercetools.Sdk/commercetools.Sdk.ImportApi/Generated/Client/RequestBuilders/Inventories/ByProjectKeyInventoriesImportSinkKeyByImportSinkKeyRequestBuilder.cs delete mode 100644 commercetools.Sdk/commercetools.Sdk.ImportApi/Generated/Client/RequestBuilders/Inventories/ByProjectKeyInventoriesRequestBuilder.cs delete mode 100644 commercetools.Sdk/commercetools.Sdk.ImportApi/Generated/Models/Importrequests/IInventoryImportRequest.cs delete mode 100644 commercetools.Sdk/commercetools.Sdk.ImportApi/Generated/Models/Importrequests/InventoryImportRequest.cs delete mode 100644 commercetools.Sdk/commercetools.Sdk.ImportApi/Generated/Models/Inventories/IInventoryImport.cs delete mode 100644 commercetools.Sdk/commercetools.Sdk.ImportApi/Generated/Models/Inventories/InventoryImport.cs diff --git a/commercetools.Sdk/Tests/commercetools.Sdk.ImportApi.Tests/Generated/Client/RequestBuilders/Inventories/ByProjectKeyInventoriesImportContainersByImportContainerKeyTest.cs b/commercetools.Sdk/Tests/commercetools.Sdk.Api.Tests/Generated/Client/RequestBuilders/Orders/ByProjectKeyOrdersSearchTest.cs similarity index 53% rename from commercetools.Sdk/Tests/commercetools.Sdk.ImportApi.Tests/Generated/Client/RequestBuilders/Inventories/ByProjectKeyInventoriesImportContainersByImportContainerKeyTest.cs rename to commercetools.Sdk/Tests/commercetools.Sdk.Api.Tests/Generated/Client/RequestBuilders/Orders/ByProjectKeyOrdersSearchTest.cs index 7687249dac6..0b5042edbb3 100644 --- a/commercetools.Sdk/Tests/commercetools.Sdk.ImportApi.Tests/Generated/Client/RequestBuilders/Inventories/ByProjectKeyInventoriesImportContainersByImportContainerKeyTest.cs +++ b/commercetools.Sdk/Tests/commercetools.Sdk.Api.Tests/Generated/Client/RequestBuilders/Orders/ByProjectKeyOrdersSearchTest.cs @@ -3,9 +3,9 @@ using System.Net.Http; using Xunit; -namespace commercetools.ImportApi.Tests.Client.RequestBuilders.Inventories +namespace commercetools.Api.Tests.Client.RequestBuilders.Orders { - public class ByProjectKeyInventoriesImportContainersByImportContainerKeyTest : RequestBuilderParentTests + public class ByProjectKeyOrdersSearchTest : RequestBuilderParentTests { [Theory] [MemberData(nameof(GetData))] @@ -20,14 +20,23 @@ public static IEnumerable GetData() return new List { new Object[] { ApiRoot - .WithProjectKeyValue("test_projectKey") - .Inventories() - .ImportContainers() - .WithImportContainerKeyValue("test_importContainerKey") + .WithProjectKey("test_projectKey") + .Orders() + .Search() .Post(null) .Build(), "Post", - "/test_projectKey/inventories/import-containers/test_importContainerKey", + "/test_projectKey/orders/search", + }, + new Object[] { + ApiRoot + .WithProjectKey("test_projectKey") + .Orders() + .Search() + .Head() + .Build(), + "Head", + "/test_projectKey/orders/search", } }; } diff --git a/commercetools.Sdk/Tests/commercetools.Sdk.ImportApi.Tests/Generated/Client/RequestBuilders/Inventories/ByProjectKeyInventoriesImportContainersTest.cs b/commercetools.Sdk/Tests/commercetools.Sdk.ImportApi.Tests/Generated/Client/RequestBuilders/Inventories/ByProjectKeyInventoriesImportContainersTest.cs deleted file mode 100644 index 5923bb63860..00000000000 --- a/commercetools.Sdk/Tests/commercetools.Sdk.ImportApi.Tests/Generated/Client/RequestBuilders/Inventories/ByProjectKeyInventoriesImportContainersTest.cs +++ /dev/null @@ -1,16 +0,0 @@ -using System.Collections.Generic; - -namespace commercetools.ImportApi.Tests.Client.RequestBuilders.Inventories -{ - public class ByProjectKeyInventoriesImportContainersTest : RequestBuilderParentTests - { - - - public static IEnumerable GetData() - { - return new List - { - }; - } - } -} diff --git a/commercetools.Sdk/Tests/commercetools.Sdk.ImportApi.Tests/Generated/Client/RequestBuilders/Inventories/ByProjectKeyInventoriesImportSinkKeyByImportSinkKeyImportOperationsByIdTest.cs b/commercetools.Sdk/Tests/commercetools.Sdk.ImportApi.Tests/Generated/Client/RequestBuilders/Inventories/ByProjectKeyInventoriesImportSinkKeyByImportSinkKeyImportOperationsByIdTest.cs deleted file mode 100644 index e8b6fd72fd6..00000000000 --- a/commercetools.Sdk/Tests/commercetools.Sdk.ImportApi.Tests/Generated/Client/RequestBuilders/Inventories/ByProjectKeyInventoriesImportSinkKeyByImportSinkKeyImportOperationsByIdTest.cs +++ /dev/null @@ -1,37 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Net.Http; -using Xunit; - -namespace commercetools.ImportApi.Tests.Client.RequestBuilders.Inventories -{ - public class ByProjectKeyInventoriesImportSinkKeyByImportSinkKeyImportOperationsByIdTest : 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()); - } - - [Obsolete] - public static IEnumerable GetData() - { - return new List { - new Object[] { - ApiRoot - .WithProjectKeyValue("test_projectKey") - .Inventories() - .ImportSinkKeyWithImportSinkKeyValue("test_importSinkKey") - .ImportOperations() - .WithIdValue("test_id") - .Get() - .Build(), - "Get", - "/test_projectKey/inventories/importSinkKey=test_importSinkKey/import-operations/test_id", - } - }; - } - } -} diff --git a/commercetools.Sdk/Tests/commercetools.Sdk.ImportApi.Tests/Generated/Client/RequestBuilders/Inventories/ByProjectKeyInventoriesImportSinkKeyByImportSinkKeyImportOperationsTest.cs b/commercetools.Sdk/Tests/commercetools.Sdk.ImportApi.Tests/Generated/Client/RequestBuilders/Inventories/ByProjectKeyInventoriesImportSinkKeyByImportSinkKeyImportOperationsTest.cs deleted file mode 100644 index 4421331307f..00000000000 --- a/commercetools.Sdk/Tests/commercetools.Sdk.ImportApi.Tests/Generated/Client/RequestBuilders/Inventories/ByProjectKeyInventoriesImportSinkKeyByImportSinkKeyImportOperationsTest.cs +++ /dev/null @@ -1,109 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Net.Http; -using commercetools.ImportApi.Models.Common; -using Xunit; - -namespace commercetools.ImportApi.Tests.Client.RequestBuilders.Inventories -{ - public class ByProjectKeyInventoriesImportSinkKeyByImportSinkKeyImportOperationsTest : 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()); - } - - [Obsolete] - public static IEnumerable GetData() - { - return new List { - new Object[] { - ApiRoot - .WithProjectKeyValue("test_projectKey") - .Inventories() - .ImportSinkKeyWithImportSinkKeyValue("test_importSinkKey") - .ImportOperations() - .Get() - .WithLimit(0.26748633) - .Build(), - "Get", - "/test_projectKey/inventories/importSinkKey=test_importSinkKey/import-operations?limit=0.26748633", - }, - new Object[] { - ApiRoot - .WithProjectKeyValue("test_projectKey") - .Inventories() - .ImportSinkKeyWithImportSinkKeyValue("test_importSinkKey") - .ImportOperations() - .Get() - .WithOffset(0.7475848) - .Build(), - "Get", - "/test_projectKey/inventories/importSinkKey=test_importSinkKey/import-operations?offset=0.7475848", - }, - new Object[] { - ApiRoot - .WithProjectKeyValue("test_projectKey") - .Inventories() - .ImportSinkKeyWithImportSinkKeyValue("test_importSinkKey") - .ImportOperations() - .Get() - .WithSort("sort") - .Build(), - "Get", - "/test_projectKey/inventories/importSinkKey=test_importSinkKey/import-operations?sort=sort", - }, - new Object[] { - ApiRoot - .WithProjectKeyValue("test_projectKey") - .Inventories() - .ImportSinkKeyWithImportSinkKeyValue("test_importSinkKey") - .ImportOperations() - .Get() - .WithResourceKey("resourceKey") - .Build(), - "Get", - "/test_projectKey/inventories/importSinkKey=test_importSinkKey/import-operations?resourceKey=resourceKey", - }, - new Object[] { - ApiRoot - .WithProjectKeyValue("test_projectKey") - .Inventories() - .ImportSinkKeyWithImportSinkKeyValue("test_importSinkKey") - .ImportOperations() - .Get() - .WithState(IProcessingState.FindEnum("state")) - .Build(), - "Get", - "/test_projectKey/inventories/importSinkKey=test_importSinkKey/import-operations?state=state", - }, - new Object[] { - ApiRoot - .WithProjectKeyValue("test_projectKey") - .Inventories() - .ImportSinkKeyWithImportSinkKeyValue("test_importSinkKey") - .ImportOperations() - .Get() - .WithDebug(true) - .Build(), - "Get", - "/test_projectKey/inventories/importSinkKey=test_importSinkKey/import-operations?debug=true", - }, - new Object[] { - ApiRoot - .WithProjectKeyValue("test_projectKey") - .Inventories() - .ImportSinkKeyWithImportSinkKeyValue("test_importSinkKey") - .ImportOperations() - .Get() - .Build(), - "Get", - "/test_projectKey/inventories/importSinkKey=test_importSinkKey/import-operations", - } - }; - } - } -} diff --git a/commercetools.Sdk/Tests/commercetools.Sdk.ImportApi.Tests/Generated/Client/RequestBuilders/Inventories/ByProjectKeyInventoriesImportSinkKeyByImportSinkKeyTest.cs b/commercetools.Sdk/Tests/commercetools.Sdk.ImportApi.Tests/Generated/Client/RequestBuilders/Inventories/ByProjectKeyInventoriesImportSinkKeyByImportSinkKeyTest.cs deleted file mode 100644 index fbc99945ac1..00000000000 --- a/commercetools.Sdk/Tests/commercetools.Sdk.ImportApi.Tests/Generated/Client/RequestBuilders/Inventories/ByProjectKeyInventoriesImportSinkKeyByImportSinkKeyTest.cs +++ /dev/null @@ -1,35 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Net.Http; -using Xunit; - -namespace commercetools.ImportApi.Tests.Client.RequestBuilders.Inventories -{ - public class ByProjectKeyInventoriesImportSinkKeyByImportSinkKeyTest : 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()); - } - - [Obsolete] - public static IEnumerable GetData() - { - return new List { - new Object[] { - ApiRoot - .WithProjectKeyValue("test_projectKey") - .Inventories() - .ImportSinkKeyWithImportSinkKeyValue("test_importSinkKey") - .Post(null) - .Build(), - "Post", - "/test_projectKey/inventories/importSinkKey=test_importSinkKey", - } - }; - } - } -} diff --git a/commercetools.Sdk/Tests/commercetools.Sdk.ImportApi.Tests/Generated/Client/RequestBuilders/Inventories/ByProjectKeyInventoriesTest.cs b/commercetools.Sdk/Tests/commercetools.Sdk.ImportApi.Tests/Generated/Client/RequestBuilders/Inventories/ByProjectKeyInventoriesTest.cs deleted file mode 100644 index adca395b88e..00000000000 --- a/commercetools.Sdk/Tests/commercetools.Sdk.ImportApi.Tests/Generated/Client/RequestBuilders/Inventories/ByProjectKeyInventoriesTest.cs +++ /dev/null @@ -1,16 +0,0 @@ -using System.Collections.Generic; - -namespace commercetools.ImportApi.Tests.Client.RequestBuilders.Inventories -{ - public class ByProjectKeyInventoriesTest : RequestBuilderParentTests - { - - - public static IEnumerable GetData() - { - return new List - { - }; - } - } -} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/Orders/ByProjectKeyOrdersRequestBuilder.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/Orders/ByProjectKeyOrdersRequestBuilder.cs index 00163d3e33c..a6a9aaa9258 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/Orders/ByProjectKeyOrdersRequestBuilder.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/Orders/ByProjectKeyOrdersRequestBuilder.cs @@ -50,5 +50,10 @@ public ByProjectKeyOrdersByIDRequestBuilder WithId(string ID) { return new ByProjectKeyOrdersByIDRequestBuilder(ApiHttpClient, SerializerService, ProjectKey, ID); } + + public ByProjectKeyOrdersSearchRequestBuilder Search() + { + return new ByProjectKeyOrdersSearchRequestBuilder(ApiHttpClient, SerializerService, ProjectKey); + } } } diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/Orders/ByProjectKeyOrdersSearchHead.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/Orders/ByProjectKeyOrdersSearchHead.cs new file mode 100644 index 00000000000..0466e4dc579 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/Orders/ByProjectKeyOrdersSearchHead.cs @@ -0,0 +1,37 @@ +using System.Net.Http; +using System.Threading.Tasks; +using System.Text.Json; +using commercetools.Base.Client; + + +namespace commercetools.Api.Client.RequestBuilders.Orders +{ + public partial class ByProjectKeyOrdersSearchHead : ApiMethod + { + + + private IClient ApiHttpClient { get; } + + public override HttpMethod Method => HttpMethod.Head; + + private string ProjectKey { get; } + + + public ByProjectKeyOrdersSearchHead(IClient apiHttpClient, string projectKey) + { + this.ApiHttpClient = apiHttpClient; + this.ProjectKey = projectKey; + this.RequestUrl = $"/{ProjectKey}/orders/search"; + } + + + + + public async Task ExecuteAsync() + { + var requestMessage = Build(); + return await ApiHttpClient.ExecuteAsync(requestMessage); + } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/Orders/ByProjectKeyOrdersSearchPost.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/Orders/ByProjectKeyOrdersSearchPost.cs new file mode 100644 index 00000000000..bcde8aba631 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/Orders/ByProjectKeyOrdersSearchPost.cs @@ -0,0 +1,56 @@ +using System.Net.Http; +using System.Text; +using System.Threading.Tasks; +using commercetools.Base.Client; +using commercetools.Base.Serialization; + + +namespace commercetools.Api.Client.RequestBuilders.Orders +{ + public partial class ByProjectKeyOrdersSearchPost : ApiMethod + { + + + private ISerializerService SerializerService { get; } + + private IClient ApiHttpClient { get; } + + public override HttpMethod Method => HttpMethod.Post; + + private string ProjectKey { get; } + + private commercetools.Api.Models.Orders.IOrderSearchRequest OrderSearchRequest; + + public ByProjectKeyOrdersSearchPost(IClient apiHttpClient, ISerializerService serializerService, string projectKey, commercetools.Api.Models.Orders.IOrderSearchRequest orderSearchRequest) + { + this.ApiHttpClient = apiHttpClient; + this.SerializerService = serializerService; + this.ProjectKey = projectKey; + this.OrderSearchRequest = orderSearchRequest; + this.RequestUrl = $"/{ProjectKey}/orders/search"; + } + + + + + public async Task ExecuteAsync() + { + var requestMessage = Build(); + return await ApiHttpClient.ExecuteAsync(requestMessage); + } + public override HttpRequestMessage Build() + { + var request = base.Build(); + if (SerializerService != null) + { + var body = this.SerializerService.Serialize(OrderSearchRequest); + 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/Orders/ByProjectKeyOrdersSearchRequestBuilder.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/Orders/ByProjectKeyOrdersSearchRequestBuilder.cs new file mode 100644 index 00000000000..c0b8e31246c --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/Orders/ByProjectKeyOrdersSearchRequestBuilder.cs @@ -0,0 +1,34 @@ +using commercetools.Base.Client; +using commercetools.Base.Serialization; + +namespace commercetools.Api.Client.RequestBuilders.Orders +{ + + public class ByProjectKeyOrdersSearchRequestBuilder + { + + private IClient ApiHttpClient { get; } + + private ISerializerService SerializerService { get; } + + private string ProjectKey { get; } + + public ByProjectKeyOrdersSearchRequestBuilder(IClient apiHttpClient, ISerializerService serializerService, string projectKey) + { + this.ApiHttpClient = apiHttpClient; + this.SerializerService = serializerService; + this.ProjectKey = projectKey; + } + + public ByProjectKeyOrdersSearchPost Post(commercetools.Api.Models.Orders.IOrderSearchRequest orderSearchRequest) + { + return new ByProjectKeyOrdersSearchPost(ApiHttpClient, SerializerService, ProjectKey, orderSearchRequest); + } + + public ByProjectKeyOrdersSearchHead Head() + { + return new ByProjectKeyOrdersSearchHead(ApiHttpClient, ProjectKey); + } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/CartDiscounts/CartDiscountDraft.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/CartDiscounts/CartDiscountDraft.cs index fc3705566ab..6160121013b 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/CartDiscounts/CartDiscountDraft.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/CartDiscounts/CartDiscountDraft.cs @@ -31,6 +31,6 @@ public partial class CartDiscountDraft : ICartDiscountDraft public IStackingMode StackingMode { get; set; } - public ICustomFields Custom { get; set; } + public ICustomFieldsDraft Custom { get; set; } } } diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/CartDiscounts/ICartDiscountDraft.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/CartDiscounts/ICartDiscountDraft.cs index a314b52ad8c..005917d8bdc 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/CartDiscounts/ICartDiscountDraft.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/CartDiscounts/ICartDiscountDraft.cs @@ -33,6 +33,6 @@ public partial interface ICartDiscountDraft IStackingMode StackingMode { get; set; } - ICustomFields Custom { get; set; } + ICustomFieldsDraft Custom { get; set; } } } diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Carts/CartSetLineItemSupplyChannelAction.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Carts/CartSetLineItemSupplyChannelAction.cs new file mode 100644 index 00000000000..f9d98c05dc8 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Carts/CartSetLineItemSupplyChannelAction.cs @@ -0,0 +1,18 @@ +using commercetools.Api.Models.Channels; + + +namespace commercetools.Api.Models.Carts +{ + public partial class CartSetLineItemSupplyChannelAction : ICartSetLineItemSupplyChannelAction + { + public string Action { get; set; } + + public string LineItemId { get; set; } + + public IChannelResourceIdentifier SupplyChannel { get; set; } + public CartSetLineItemSupplyChannelAction() + { + this.Action = "setLineItemSupplyChannel"; + } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Carts/ICartSetLineItemSupplyChannelAction.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Carts/ICartSetLineItemSupplyChannelAction.cs new file mode 100644 index 00000000000..bde985a5fbd --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Carts/ICartSetLineItemSupplyChannelAction.cs @@ -0,0 +1,14 @@ +using commercetools.Api.Models.Channels; +using commercetools.Base.CustomAttributes; + + +namespace commercetools.Api.Models.Carts +{ + [DeserializeAs(typeof(commercetools.Api.Models.Carts.CartSetLineItemSupplyChannelAction))] + public partial interface ICartSetLineItemSupplyChannelAction : ICartUpdateAction + { + string LineItemId { get; set; } + + IChannelResourceIdentifier SupplyChannel { get; set; } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Carts/ICartUpdateAction.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Carts/ICartUpdateAction.cs index 673ff4b9e55..539cf5a3ee6 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Carts/ICartUpdateAction.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Carts/ICartUpdateAction.cs @@ -53,6 +53,7 @@ namespace commercetools.Api.Models.Carts [SubTypeDiscriminator("setLineItemDistributionChannel", typeof(commercetools.Api.Models.Carts.CartSetLineItemDistributionChannelAction))] [SubTypeDiscriminator("setLineItemPrice", typeof(commercetools.Api.Models.Carts.CartSetLineItemPriceAction))] [SubTypeDiscriminator("setLineItemShippingDetails", typeof(commercetools.Api.Models.Carts.CartSetLineItemShippingDetailsAction))] + [SubTypeDiscriminator("setLineItemSupplyChannel", typeof(commercetools.Api.Models.Carts.CartSetLineItemSupplyChannelAction))] [SubTypeDiscriminator("setLineItemTaxAmount", typeof(commercetools.Api.Models.Carts.CartSetLineItemTaxAmountAction))] [SubTypeDiscriminator("setLineItemTaxRate", typeof(commercetools.Api.Models.Carts.CartSetLineItemTaxRateAction))] [SubTypeDiscriminator("setLineItemTotalPrice", typeof(commercetools.Api.Models.Carts.CartSetLineItemTotalPriceAction))] diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Carts/ILineItem.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Carts/ILineItem.cs index df64bbf9c7c..d9c911d51ef 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Carts/ILineItem.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Carts/ILineItem.cs @@ -19,6 +19,8 @@ public partial interface ILineItem string ProductId { get; set; } + string ProductKey { get; set; } + ILocalizedString Name { get; set; } ILocalizedString ProductSlug { get; set; } diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Carts/LineItem.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Carts/LineItem.cs index a0e24908640..e282f8158c6 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Carts/LineItem.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Carts/LineItem.cs @@ -17,6 +17,8 @@ public partial class LineItem : ILineItem public string ProductId { get; set; } + public string ProductKey { get; set; } + public ILocalizedString Name { get; set; } public ILocalizedString ProductSlug { get; set; } diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Customers/CustomerDraft.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Customers/CustomerDraft.cs index e5824f0bbf8..62cc0f3ca6c 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Customers/CustomerDraft.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Customers/CustomerDraft.cs @@ -40,11 +40,11 @@ public partial class CustomerDraft : ICustomerDraft public List Addresses { get; set; } - public long? DefaultShippingAddress { get; set; } + public int? DefaultShippingAddress { get; set; } public List ShippingAddresses { get; set; } - public long? DefaultBillingAddress { get; set; } + public int? DefaultBillingAddress { get; set; } public List BillingAddresses { get; set; } diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Customers/ICustomerDraft.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Customers/ICustomerDraft.cs index 309530ca623..710965a7a6b 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Customers/ICustomerDraft.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Customers/ICustomerDraft.cs @@ -42,11 +42,11 @@ public partial interface ICustomerDraft List Addresses { get; set; } - long? DefaultShippingAddress { get; set; } + int? DefaultShippingAddress { get; set; } List ShippingAddresses { get; set; } - long? DefaultBillingAddress { get; set; } + int? DefaultBillingAddress { get; set; } List BillingAddresses { get; set; } diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Me/IMyCartSetLineItemSupplyChannelAction.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Me/IMyCartSetLineItemSupplyChannelAction.cs new file mode 100644 index 00000000000..840e654145c --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Me/IMyCartSetLineItemSupplyChannelAction.cs @@ -0,0 +1,14 @@ +using commercetools.Api.Models.Channels; +using commercetools.Base.CustomAttributes; + + +namespace commercetools.Api.Models.Me +{ + [DeserializeAs(typeof(commercetools.Api.Models.Me.MyCartSetLineItemSupplyChannelAction))] + public partial interface IMyCartSetLineItemSupplyChannelAction : IMyCartUpdateAction + { + string LineItemId { get; set; } + + IChannelResourceIdentifier DistributionChannel { get; set; } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Me/IMyCartUpdateAction.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Me/IMyCartUpdateAction.cs index 11a01ca2948..5fefb089633 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Me/IMyCartUpdateAction.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Me/IMyCartUpdateAction.cs @@ -27,6 +27,7 @@ namespace commercetools.Api.Models.Me [SubTypeDiscriminator("setLineItemCustomType", typeof(commercetools.Api.Models.Me.MyCartSetLineItemCustomTypeAction))] [SubTypeDiscriminator("setLineItemDistributionChannel", typeof(commercetools.Api.Models.Me.MyCartSetLineItemDistributionChannelAction))] [SubTypeDiscriminator("setLineItemShippingDetails", typeof(commercetools.Api.Models.Me.MyCartSetLineItemShippingDetailsAction))] + [SubTypeDiscriminator("setLineItemSupplyChannel", typeof(commercetools.Api.Models.Me.MyCartSetLineItemSupplyChannelAction))] [SubTypeDiscriminator("setLocale", typeof(commercetools.Api.Models.Me.MyCartSetLocaleAction))] [SubTypeDiscriminator("setShippingAddress", typeof(commercetools.Api.Models.Me.MyCartSetShippingAddressAction))] [SubTypeDiscriminator("setShippingMethod", typeof(commercetools.Api.Models.Me.MyCartSetShippingMethodAction))] diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Me/IMyPaymentSetTransactionCustomFieldAction.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Me/IMyPaymentSetTransactionCustomFieldAction.cs new file mode 100644 index 00000000000..2e97f403197 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Me/IMyPaymentSetTransactionCustomFieldAction.cs @@ -0,0 +1,14 @@ +using System; +using commercetools.Base.CustomAttributes; + + +namespace commercetools.Api.Models.Me +{ + [DeserializeAs(typeof(commercetools.Api.Models.Me.MyPaymentSetTransactionCustomFieldAction))] + public partial interface IMyPaymentSetTransactionCustomFieldAction : IMyPaymentUpdateAction + { + string Name { get; set; } + + Object Value { get; set; } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Me/IMyPaymentUpdateAction.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Me/IMyPaymentUpdateAction.cs index fe24b015973..f0e68eead3c 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Me/IMyPaymentUpdateAction.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Me/IMyPaymentUpdateAction.cs @@ -11,6 +11,7 @@ namespace commercetools.Api.Models.Me [SubTypeDiscriminator("setMethodInfoInterface", typeof(commercetools.Api.Models.Me.MyPaymentSetMethodInfoInterfaceAction))] [SubTypeDiscriminator("setMethodInfoMethod", typeof(commercetools.Api.Models.Me.MyPaymentSetMethodInfoMethodAction))] [SubTypeDiscriminator("setMethodInfoName", typeof(commercetools.Api.Models.Me.MyPaymentSetMethodInfoNameAction))] + [SubTypeDiscriminator("setTransactionCustomField", typeof(commercetools.Api.Models.Me.MyPaymentSetTransactionCustomFieldAction))] public partial interface IMyPaymentUpdateAction { string Action { get; set; } diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Me/IMyTransactionDraft.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Me/IMyTransactionDraft.cs index a173fa62954..aa4f7936a60 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Me/IMyTransactionDraft.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Me/IMyTransactionDraft.cs @@ -1,5 +1,6 @@ using commercetools.Api.Models.Common; using commercetools.Api.Models.Payments; +using commercetools.Api.Models.Types; using System; using commercetools.Base.CustomAttributes; @@ -16,5 +17,7 @@ public partial interface IMyTransactionDraft IMoney Amount { get; set; } string InteractionId { get; set; } + + ICustomFields Custom { get; set; } } } diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Me/MyCartSetLineItemSupplyChannelAction.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Me/MyCartSetLineItemSupplyChannelAction.cs new file mode 100644 index 00000000000..5495d02d1ac --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Me/MyCartSetLineItemSupplyChannelAction.cs @@ -0,0 +1,18 @@ +using commercetools.Api.Models.Channels; + + +namespace commercetools.Api.Models.Me +{ + public partial class MyCartSetLineItemSupplyChannelAction : IMyCartSetLineItemSupplyChannelAction + { + public string Action { get; set; } + + public string LineItemId { get; set; } + + public IChannelResourceIdentifier DistributionChannel { get; set; } + public MyCartSetLineItemSupplyChannelAction() + { + this.Action = "setLineItemSupplyChannel"; + } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Me/MyPaymentSetTransactionCustomFieldAction.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Me/MyPaymentSetTransactionCustomFieldAction.cs new file mode 100644 index 00000000000..bd2ef06ee6d --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Me/MyPaymentSetTransactionCustomFieldAction.cs @@ -0,0 +1,18 @@ +using System; + + +namespace commercetools.Api.Models.Me +{ + public partial class MyPaymentSetTransactionCustomFieldAction : IMyPaymentSetTransactionCustomFieldAction + { + public string Action { get; set; } + + public string Name { get; set; } + + public Object Value { get; set; } + public MyPaymentSetTransactionCustomFieldAction() + { + this.Action = "setTransactionCustomField"; + } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Me/MyTransactionDraft.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Me/MyTransactionDraft.cs index 2c12399164e..a82cc29f9bc 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Me/MyTransactionDraft.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Me/MyTransactionDraft.cs @@ -1,5 +1,6 @@ using commercetools.Api.Models.Common; using commercetools.Api.Models.Payments; +using commercetools.Api.Models.Types; using System; @@ -14,5 +15,7 @@ public partial class MyTransactionDraft : IMyTransactionDraft public IMoney Amount { get; set; } public string InteractionId { get; set; } + + public ICustomFields Custom { get; set; } } } diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/ContainerAndKey.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/ContainerAndKey.cs new file mode 100644 index 00000000000..dd7ae5ca7bc --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/ContainerAndKey.cs @@ -0,0 +1,9 @@ +namespace commercetools.Api.Models.Messages +{ + public partial class ContainerAndKey : IContainerAndKey + { + public string Key { get; set; } + + public string Container { get; set; } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/IContainerAndKey.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/IContainerAndKey.cs new file mode 100644 index 00000000000..500921b8ce3 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/IContainerAndKey.cs @@ -0,0 +1,13 @@ +using commercetools.Base.CustomAttributes; + + +namespace commercetools.Api.Models.Messages +{ + [DeserializeAs(typeof(commercetools.Api.Models.Messages.ContainerAndKey))] + public partial interface IContainerAndKey + { + string Key { get; set; } + + string Container { get; set; } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/IMessage.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/IMessage.cs index 115091f5ab9..48b5ee0932b 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/IMessage.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/IMessage.cs @@ -46,6 +46,7 @@ namespace commercetools.Api.Models.Messages [SubTypeDiscriminator("OrderImported", typeof(commercetools.Api.Models.Messages.OrderImportedMessage))] [SubTypeDiscriminator("OrderLineItemAdded", typeof(commercetools.Api.Models.Messages.OrderLineItemAddedMessage))] [SubTypeDiscriminator("OrderLineItemDiscountSet", typeof(commercetools.Api.Models.Messages.OrderLineItemDiscountSetMessage))] + [SubTypeDiscriminator("OrderLineItemDistributionChannelSet", typeof(commercetools.Api.Models.Messages.OrderLineItemDistributionChannelSetMessage))] [SubTypeDiscriminator("OrderLineItemRemoved", typeof(commercetools.Api.Models.Messages.OrderLineItemRemovedMessage))] [SubTypeDiscriminator("OrderPaymentStateChanged", typeof(commercetools.Api.Models.Messages.OrderPaymentStateChangedMessage))] [SubTypeDiscriminator("OrderReturnShipmentStateChanged", typeof(commercetools.Api.Models.Messages.OrderReturnShipmentStateChangedMessage))] diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/IMessagePayload.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/IMessagePayload.cs index 50507c79045..31dad93870a 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/IMessagePayload.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/IMessagePayload.cs @@ -44,6 +44,7 @@ namespace commercetools.Api.Models.Messages [SubTypeDiscriminator("OrderImported", typeof(commercetools.Api.Models.Messages.OrderImportedMessagePayload))] [SubTypeDiscriminator("OrderLineItemAdded", typeof(commercetools.Api.Models.Messages.OrderLineItemAddedMessagePayload))] [SubTypeDiscriminator("OrderLineItemDiscountSet", typeof(commercetools.Api.Models.Messages.OrderLineItemDiscountSetMessagePayload))] + [SubTypeDiscriminator("OrderLineItemDistributionChannelSet", typeof(commercetools.Api.Models.Messages.OrderLineItemDistributionChannelSetMessagePayload))] [SubTypeDiscriminator("OrderLineItemRemoved", typeof(commercetools.Api.Models.Messages.OrderLineItemRemovedMessagePayload))] [SubTypeDiscriminator("OrderPaymentStateChanged", typeof(commercetools.Api.Models.Messages.OrderPaymentStateChangedMessagePayload))] [SubTypeDiscriminator("OrderReturnShipmentStateChanged", typeof(commercetools.Api.Models.Messages.OrderReturnShipmentStateChangedMessagePayload))] diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/IOrderLineItemDistributionChannelSetMessage.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/IOrderLineItemDistributionChannelSetMessage.cs new file mode 100644 index 00000000000..20d790410dc --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/IOrderLineItemDistributionChannelSetMessage.cs @@ -0,0 +1,14 @@ +using commercetools.Api.Models.Channels; +using commercetools.Base.CustomAttributes; + + +namespace commercetools.Api.Models.Messages +{ + [DeserializeAs(typeof(commercetools.Api.Models.Messages.OrderLineItemDistributionChannelSetMessage))] + public partial interface IOrderLineItemDistributionChannelSetMessage : IMessage + { + string LineItemId { get; set; } + + IChannelReference DistributionChannel { get; set; } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/IOrderLineItemDistributionChannelSetMessagePayload.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/IOrderLineItemDistributionChannelSetMessagePayload.cs new file mode 100644 index 00000000000..27807618527 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/IOrderLineItemDistributionChannelSetMessagePayload.cs @@ -0,0 +1,14 @@ +using commercetools.Api.Models.Channels; +using commercetools.Base.CustomAttributes; + + +namespace commercetools.Api.Models.Messages +{ + [DeserializeAs(typeof(commercetools.Api.Models.Messages.OrderLineItemDistributionChannelSetMessagePayload))] + public partial interface IOrderLineItemDistributionChannelSetMessagePayload : IMessagePayload + { + string LineItemId { get; set; } + + IChannelReference DistributionChannel { get; set; } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/IUserProvidedIdentifiers.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/IUserProvidedIdentifiers.cs index fad2f0acd3d..560d1924b92 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/IUserProvidedIdentifiers.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/IUserProvidedIdentifiers.cs @@ -18,5 +18,7 @@ public partial interface IUserProvidedIdentifiers string Sku { get; set; } ILocalizedString Slug { get; set; } + + IContainerAndKey ContainerAndKey { get; set; } } } diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/OrderLineItemDistributionChannelSetMessage.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/OrderLineItemDistributionChannelSetMessage.cs new file mode 100644 index 00000000000..ca60fdd341e --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/OrderLineItemDistributionChannelSetMessage.cs @@ -0,0 +1,40 @@ +using commercetools.Api.Models.Channels; +using commercetools.Api.Models.Common; +using System; + + +namespace commercetools.Api.Models.Messages +{ + public partial class OrderLineItemDistributionChannelSetMessage : IOrderLineItemDistributionChannelSetMessage + { + public string Id { get; set; } + + public long Version { get; set; } + + public DateTime CreatedAt { get; set; } + + public DateTime LastModifiedAt { get; set; } + + public ILastModifiedBy LastModifiedBy { get; set; } + + public ICreatedBy CreatedBy { get; set; } + + public long SequenceNumber { get; set; } + + public IReference Resource { get; set; } + + public long ResourceVersion { get; set; } + + public string Type { get; set; } + + public IUserProvidedIdentifiers ResourceUserProvidedIdentifiers { get; set; } + + public string LineItemId { get; set; } + + public IChannelReference DistributionChannel { get; set; } + public OrderLineItemDistributionChannelSetMessage() + { + this.Type = "OrderLineItemDistributionChannelSet"; + } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/OrderLineItemDistributionChannelSetMessagePayload.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/OrderLineItemDistributionChannelSetMessagePayload.cs new file mode 100644 index 00000000000..406b5537eb7 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/OrderLineItemDistributionChannelSetMessagePayload.cs @@ -0,0 +1,18 @@ +using commercetools.Api.Models.Channels; + + +namespace commercetools.Api.Models.Messages +{ + public partial class OrderLineItemDistributionChannelSetMessagePayload : IOrderLineItemDistributionChannelSetMessagePayload + { + public string Type { get; set; } + + public string LineItemId { get; set; } + + public IChannelReference DistributionChannel { get; set; } + public OrderLineItemDistributionChannelSetMessagePayload() + { + this.Type = "OrderLineItemDistributionChannelSet"; + } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/UserProvidedIdentifiers.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/UserProvidedIdentifiers.cs index 9784dea37fb..dd5c33ec2ec 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/UserProvidedIdentifiers.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/UserProvidedIdentifiers.cs @@ -16,5 +16,7 @@ public partial class UserProvidedIdentifiers : IUserProvidedIdentifiers public string Sku { get; set; } public ILocalizedString Slug { get; set; } + + public IContainerAndKey ContainerAndKey { get; set; } } } diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/OrderEdits/IStagedOrderAddDeliveryAction.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/OrderEdits/IStagedOrderAddDeliveryAction.cs index 36afc581d24..1363cfa7abb 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/OrderEdits/IStagedOrderAddDeliveryAction.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/OrderEdits/IStagedOrderAddDeliveryAction.cs @@ -1,5 +1,6 @@ using commercetools.Api.Models.Common; using commercetools.Api.Models.Orders; +using commercetools.Api.Models.Types; using System.Collections.Generic; using commercetools.Base.CustomAttributes; @@ -14,5 +15,7 @@ public partial interface IStagedOrderAddDeliveryAction : IStagedOrderUpdateActio IBaseAddress Address { get; set; } List Parcels { get; set; } + + ICustomFields Custom { get; set; } } } diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/OrderEdits/IStagedOrderSetDeliveryCustomFieldAction.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/OrderEdits/IStagedOrderSetDeliveryCustomFieldAction.cs new file mode 100644 index 00000000000..885d8c62ca2 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/OrderEdits/IStagedOrderSetDeliveryCustomFieldAction.cs @@ -0,0 +1,15 @@ +using commercetools.Api.Models.Orders; +using System; +using commercetools.Base.CustomAttributes; + + +namespace commercetools.Api.Models.OrderEdits +{ + [DeserializeAs(typeof(commercetools.Api.Models.OrderEdits.StagedOrderSetDeliveryCustomFieldAction))] + public partial interface IStagedOrderSetDeliveryCustomFieldAction : IStagedOrderUpdateAction + { + string Name { get; set; } + + Object Value { get; set; } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/OrderEdits/IStagedOrderSetDeliveryCustomTypeAction.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/OrderEdits/IStagedOrderSetDeliveryCustomTypeAction.cs new file mode 100644 index 00000000000..1764272089f --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/OrderEdits/IStagedOrderSetDeliveryCustomTypeAction.cs @@ -0,0 +1,16 @@ +using commercetools.Api.Models.Orders; +using commercetools.Api.Models.Types; +using System; +using commercetools.Base.CustomAttributes; + + +namespace commercetools.Api.Models.OrderEdits +{ + [DeserializeAs(typeof(commercetools.Api.Models.OrderEdits.StagedOrderSetDeliveryCustomTypeAction))] + public partial interface IStagedOrderSetDeliveryCustomTypeAction : IStagedOrderUpdateAction + { + ITypeResourceIdentifier Type { get; set; } + + Object Fields { get; set; } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/OrderEdits/StagedOrderAddDeliveryAction.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/OrderEdits/StagedOrderAddDeliveryAction.cs index d40e7f2fb5f..14d86b5d565 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/OrderEdits/StagedOrderAddDeliveryAction.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/OrderEdits/StagedOrderAddDeliveryAction.cs @@ -1,5 +1,6 @@ using commercetools.Api.Models.Common; using commercetools.Api.Models.Orders; +using commercetools.Api.Models.Types; using System.Collections.Generic; @@ -14,6 +15,8 @@ public partial class StagedOrderAddDeliveryAction : IStagedOrderAddDeliveryActio public IBaseAddress Address { get; set; } public List Parcels { get; set; } + + public ICustomFields Custom { get; set; } public StagedOrderAddDeliveryAction() { this.Action = "addDelivery"; diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/OrderEdits/StagedOrderSetDeliveryCustomFieldAction.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/OrderEdits/StagedOrderSetDeliveryCustomFieldAction.cs new file mode 100644 index 00000000000..ce4ed834384 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/OrderEdits/StagedOrderSetDeliveryCustomFieldAction.cs @@ -0,0 +1,18 @@ +using System; + + +namespace commercetools.Api.Models.OrderEdits +{ + public partial class StagedOrderSetDeliveryCustomFieldAction : IStagedOrderSetDeliveryCustomFieldAction + { + public string Action { get; set; } + + public string Name { get; set; } + + public Object Value { get; set; } + public StagedOrderSetDeliveryCustomFieldAction() + { + this.Action = "setDeliveryCustomField"; + } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/OrderEdits/StagedOrderSetDeliveryCustomTypeAction.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/OrderEdits/StagedOrderSetDeliveryCustomTypeAction.cs new file mode 100644 index 00000000000..2544f4c7b77 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/OrderEdits/StagedOrderSetDeliveryCustomTypeAction.cs @@ -0,0 +1,19 @@ +using commercetools.Api.Models.Types; +using System; + + +namespace commercetools.Api.Models.OrderEdits +{ + public partial class StagedOrderSetDeliveryCustomTypeAction : IStagedOrderSetDeliveryCustomTypeAction + { + public string Action { get; set; } + + public ITypeResourceIdentifier Type { get; set; } + + public Object Fields { get; set; } + public StagedOrderSetDeliveryCustomTypeAction() + { + this.Action = "setDeliveryCustomType"; + } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Orders/Delivery.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Orders/Delivery.cs index 067f07fbc63..04c5f7c2d49 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Orders/Delivery.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Orders/Delivery.cs @@ -1,4 +1,5 @@ using commercetools.Api.Models.Common; +using commercetools.Api.Models.Types; using System; using System.Collections.Generic; @@ -16,5 +17,7 @@ public partial class Delivery : IDelivery public List Parcels { get; set; } public IAddress Address { get; set; } + + public ICustomFields Custom { get; set; } } } diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Orders/Hit.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Orders/Hit.cs new file mode 100644 index 00000000000..498ca7594e2 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Orders/Hit.cs @@ -0,0 +1,11 @@ +namespace commercetools.Api.Models.Orders +{ + public partial class Hit : IHit + { + public string Id { get; set; } + + public long Version { get; set; } + + public double Relevance { get; set; } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Orders/IDelivery.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Orders/IDelivery.cs index 8a34c0db8c0..914481aee34 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Orders/IDelivery.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Orders/IDelivery.cs @@ -1,4 +1,5 @@ using commercetools.Api.Models.Common; +using commercetools.Api.Models.Types; using System; using System.Collections.Generic; using commercetools.Base.CustomAttributes; @@ -18,5 +19,7 @@ public partial interface IDelivery List Parcels { get; set; } IAddress Address { get; set; } + + ICustomFields Custom { get; set; } } } diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Orders/IHit.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Orders/IHit.cs new file mode 100644 index 00000000000..985a6935489 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Orders/IHit.cs @@ -0,0 +1,15 @@ +using commercetools.Base.CustomAttributes; + + +namespace commercetools.Api.Models.Orders +{ + [DeserializeAs(typeof(commercetools.Api.Models.Orders.Hit))] + public partial interface IHit + { + string Id { get; set; } + + long Version { get; set; } + + double Relevance { get; set; } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Orders/IOrderAddDeliveryAction.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Orders/IOrderAddDeliveryAction.cs index 271e0254790..76f7edf48af 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Orders/IOrderAddDeliveryAction.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Orders/IOrderAddDeliveryAction.cs @@ -1,4 +1,5 @@ using commercetools.Api.Models.Common; +using commercetools.Api.Models.Types; using System.Collections.Generic; using commercetools.Base.CustomAttributes; @@ -13,5 +14,7 @@ public partial interface IOrderAddDeliveryAction : IOrderUpdateAction IBaseAddress Address { get; set; } List Parcels { get; set; } + + ICustomFields Custom { get; set; } } } diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Orders/IOrderPagedSearchResponse.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Orders/IOrderPagedSearchResponse.cs new file mode 100644 index 00000000000..daa18c8c64b --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Orders/IOrderPagedSearchResponse.cs @@ -0,0 +1,18 @@ +using System.Collections.Generic; +using commercetools.Base.CustomAttributes; + + +namespace commercetools.Api.Models.Orders +{ + [DeserializeAs(typeof(commercetools.Api.Models.Orders.OrderPagedSearchResponse))] + public partial interface IOrderPagedSearchResponse + { + long Total { get; set; } + + long? Offset { get; set; } + + long? Limit { get; set; } + + List Hits { get; set; } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Orders/IOrderSearchRequest.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Orders/IOrderSearchRequest.cs new file mode 100644 index 00000000000..94d36040d8f --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Orders/IOrderSearchRequest.cs @@ -0,0 +1,17 @@ +using commercetools.Base.CustomAttributes; + + +namespace commercetools.Api.Models.Orders +{ + [DeserializeAs(typeof(commercetools.Api.Models.Orders.OrderSearchRequest))] + public partial interface IOrderSearchRequest + { + string Query { get; set; } + + string Sort { get; set; } + + int? Limit { get; set; } + + int? Offset { get; set; } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Orders/IOrderSetDeliveryCustomFieldAction.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Orders/IOrderSetDeliveryCustomFieldAction.cs new file mode 100644 index 00000000000..b21031e69ab --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Orders/IOrderSetDeliveryCustomFieldAction.cs @@ -0,0 +1,14 @@ +using System; +using commercetools.Base.CustomAttributes; + + +namespace commercetools.Api.Models.Orders +{ + [DeserializeAs(typeof(commercetools.Api.Models.Orders.OrderSetDeliveryCustomFieldAction))] + public partial interface IOrderSetDeliveryCustomFieldAction : IOrderUpdateAction + { + string Name { get; set; } + + Object Value { get; set; } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Orders/IOrderSetDeliveryCustomTypeAction.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Orders/IOrderSetDeliveryCustomTypeAction.cs new file mode 100644 index 00000000000..be198477463 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Orders/IOrderSetDeliveryCustomTypeAction.cs @@ -0,0 +1,14 @@ +using commercetools.Api.Models.Types; +using commercetools.Base.CustomAttributes; + + +namespace commercetools.Api.Models.Orders +{ + [DeserializeAs(typeof(commercetools.Api.Models.Orders.OrderSetDeliveryCustomTypeAction))] + public partial interface IOrderSetDeliveryCustomTypeAction : IOrderUpdateAction + { + ITypeResourceIdentifier Type { get; set; } + + IFieldContainer Fields { get; set; } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Orders/IOrderUpdateAction.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Orders/IOrderUpdateAction.cs index 60ef646e35e..ea999579efe 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Orders/IOrderUpdateAction.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Orders/IOrderUpdateAction.cs @@ -32,6 +32,8 @@ namespace commercetools.Api.Models.Orders [SubTypeDiscriminator("setDeliveryAddress", typeof(commercetools.Api.Models.Orders.OrderSetDeliveryAddressAction))] [SubTypeDiscriminator("setDeliveryAddressCustomField", typeof(commercetools.Api.Models.Orders.OrderSetDeliveryAddressCustomFieldAction))] [SubTypeDiscriminator("setDeliveryAddressCustomType", typeof(commercetools.Api.Models.Orders.OrderSetDeliveryAddressCustomTypeAction))] + [SubTypeDiscriminator("setDeliveryCustomField", typeof(commercetools.Api.Models.Orders.OrderSetDeliveryCustomFieldAction))] + [SubTypeDiscriminator("setDeliveryCustomType", typeof(commercetools.Api.Models.Orders.OrderSetDeliveryCustomTypeAction))] [SubTypeDiscriminator("setDeliveryItems", typeof(commercetools.Api.Models.Orders.OrderSetDeliveryItemsAction))] [SubTypeDiscriminator("setItemShippingAddressCustomField", typeof(commercetools.Api.Models.Orders.OrderSetItemShippingAddressCustomFieldAction))] [SubTypeDiscriminator("setItemShippingAddressCustomType", typeof(commercetools.Api.Models.Orders.OrderSetItemShippingAddressCustomTypeAction))] diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Orders/IStagedOrderUpdateAction.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Orders/IStagedOrderUpdateAction.cs index 9762dfa2b98..124f9e4ef9b 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Orders/IStagedOrderUpdateAction.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Orders/IStagedOrderUpdateAction.cs @@ -50,6 +50,8 @@ namespace commercetools.Api.Models.Orders [SubTypeDiscriminator("setDeliveryAddress", typeof(commercetools.Api.Models.OrderEdits.StagedOrderSetDeliveryAddressAction))] [SubTypeDiscriminator("setDeliveryAddressCustomField", typeof(commercetools.Api.Models.OrderEdits.StagedOrderSetDeliveryAddressCustomFieldAction))] [SubTypeDiscriminator("setDeliveryAddressCustomType", typeof(commercetools.Api.Models.OrderEdits.StagedOrderSetDeliveryAddressCustomTypeAction))] + [SubTypeDiscriminator("setDeliveryCustomField", typeof(commercetools.Api.Models.OrderEdits.StagedOrderSetDeliveryCustomFieldAction))] + [SubTypeDiscriminator("setDeliveryCustomType", typeof(commercetools.Api.Models.OrderEdits.StagedOrderSetDeliveryCustomTypeAction))] [SubTypeDiscriminator("setDeliveryItems", typeof(commercetools.Api.Models.OrderEdits.StagedOrderSetDeliveryItemsAction))] [SubTypeDiscriminator("setItemShippingAddressCustomField", typeof(commercetools.Api.Models.OrderEdits.StagedOrderSetItemShippingAddressCustomFieldAction))] [SubTypeDiscriminator("setItemShippingAddressCustomType", typeof(commercetools.Api.Models.OrderEdits.StagedOrderSetItemShippingAddressCustomTypeAction))] diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Orders/OrderAddDeliveryAction.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Orders/OrderAddDeliveryAction.cs index 8877caa5b08..d4aca799cb6 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Orders/OrderAddDeliveryAction.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Orders/OrderAddDeliveryAction.cs @@ -1,4 +1,5 @@ using commercetools.Api.Models.Common; +using commercetools.Api.Models.Types; using System.Collections.Generic; @@ -13,6 +14,8 @@ public partial class OrderAddDeliveryAction : IOrderAddDeliveryAction public IBaseAddress Address { get; set; } public List Parcels { get; set; } + + public ICustomFields Custom { get; set; } public OrderAddDeliveryAction() { this.Action = "addDelivery"; diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Orders/OrderPagedSearchResponse.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Orders/OrderPagedSearchResponse.cs new file mode 100644 index 00000000000..dddca7b124d --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Orders/OrderPagedSearchResponse.cs @@ -0,0 +1,16 @@ +using System.Collections.Generic; + + +namespace commercetools.Api.Models.Orders +{ + public partial class OrderPagedSearchResponse : IOrderPagedSearchResponse + { + public long Total { get; set; } + + public long? Offset { get; set; } + + public long? Limit { get; set; } + + public List Hits { get; set; } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Orders/OrderSearchRequest.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Orders/OrderSearchRequest.cs new file mode 100644 index 00000000000..3761fb504ce --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Orders/OrderSearchRequest.cs @@ -0,0 +1,13 @@ +namespace commercetools.Api.Models.Orders +{ + public partial class OrderSearchRequest : IOrderSearchRequest + { + public string Query { get; set; } + + public string Sort { get; set; } + + public int? Limit { get; set; } + + public int? Offset { get; set; } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Orders/OrderSetDeliveryCustomFieldAction.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Orders/OrderSetDeliveryCustomFieldAction.cs new file mode 100644 index 00000000000..1d3abc08062 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Orders/OrderSetDeliveryCustomFieldAction.cs @@ -0,0 +1,18 @@ +using System; + + +namespace commercetools.Api.Models.Orders +{ + public partial class OrderSetDeliveryCustomFieldAction : IOrderSetDeliveryCustomFieldAction + { + public string Action { get; set; } + + public string Name { get; set; } + + public Object Value { get; set; } + public OrderSetDeliveryCustomFieldAction() + { + this.Action = "setDeliveryCustomField"; + } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Orders/OrderSetDeliveryCustomTypeAction.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Orders/OrderSetDeliveryCustomTypeAction.cs new file mode 100644 index 00000000000..c293e552380 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Orders/OrderSetDeliveryCustomTypeAction.cs @@ -0,0 +1,18 @@ +using commercetools.Api.Models.Types; + + +namespace commercetools.Api.Models.Orders +{ + public partial class OrderSetDeliveryCustomTypeAction : IOrderSetDeliveryCustomTypeAction + { + public string Action { get; set; } + + public ITypeResourceIdentifier Type { get; set; } + + public IFieldContainer Fields { get; set; } + public OrderSetDeliveryCustomTypeAction() + { + this.Action = "setDeliveryCustomType"; + } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Payments/IPaymentSetTransactionCustomFieldAction.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Payments/IPaymentSetTransactionCustomFieldAction.cs new file mode 100644 index 00000000000..0f38fdd02f8 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Payments/IPaymentSetTransactionCustomFieldAction.cs @@ -0,0 +1,14 @@ +using System; +using commercetools.Base.CustomAttributes; + + +namespace commercetools.Api.Models.Payments +{ + [DeserializeAs(typeof(commercetools.Api.Models.Payments.PaymentSetTransactionCustomFieldAction))] + public partial interface IPaymentSetTransactionCustomFieldAction : IPaymentUpdateAction + { + string Name { get; set; } + + Object Value { get; set; } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Payments/IPaymentSetTransactionCustomTypeAction.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Payments/IPaymentSetTransactionCustomTypeAction.cs new file mode 100644 index 00000000000..b1b9df3d45d --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Payments/IPaymentSetTransactionCustomTypeAction.cs @@ -0,0 +1,14 @@ +using commercetools.Api.Models.Types; +using commercetools.Base.CustomAttributes; + + +namespace commercetools.Api.Models.Payments +{ + [DeserializeAs(typeof(commercetools.Api.Models.Payments.PaymentSetTransactionCustomTypeAction))] + public partial interface IPaymentSetTransactionCustomTypeAction : IPaymentUpdateAction + { + ITypeResourceIdentifier Type { get; set; } + + IFieldContainer Fields { get; set; } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Payments/IPaymentUpdateAction.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Payments/IPaymentUpdateAction.cs index bfc80aa6fb5..6a58980b211 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Payments/IPaymentUpdateAction.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Payments/IPaymentUpdateAction.cs @@ -26,6 +26,8 @@ namespace commercetools.Api.Models.Payments [SubTypeDiscriminator("setMethodInfoName", typeof(commercetools.Api.Models.Payments.PaymentSetMethodInfoNameAction))] [SubTypeDiscriminator("setStatusInterfaceCode", typeof(commercetools.Api.Models.Payments.PaymentSetStatusInterfaceCodeAction))] [SubTypeDiscriminator("setStatusInterfaceText", typeof(commercetools.Api.Models.Payments.PaymentSetStatusInterfaceTextAction))] + [SubTypeDiscriminator("setTransactionCustomField", typeof(commercetools.Api.Models.Payments.PaymentSetTransactionCustomFieldAction))] + [SubTypeDiscriminator("setTransactionCustomType", typeof(commercetools.Api.Models.Payments.PaymentSetTransactionCustomTypeAction))] [SubTypeDiscriminator("transitionState", typeof(commercetools.Api.Models.Payments.PaymentTransitionStateAction))] public partial interface IPaymentUpdateAction { diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Payments/ITransaction.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Payments/ITransaction.cs index 3f57689703f..806f9931397 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Payments/ITransaction.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Payments/ITransaction.cs @@ -1,4 +1,5 @@ using commercetools.Api.Models.Common; +using commercetools.Api.Models.Types; using System; using commercetools.Base.CustomAttributes; @@ -19,5 +20,7 @@ public partial interface ITransaction string InteractionId { get; set; } ITransactionState State { get; set; } + + ICustomFields Custom { get; set; } } } diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Payments/ITransactionDraft.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Payments/ITransactionDraft.cs index fdc7b763a64..fed862b0b65 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Payments/ITransactionDraft.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Payments/ITransactionDraft.cs @@ -1,4 +1,5 @@ using commercetools.Api.Models.Common; +using commercetools.Api.Models.Types; using System; using commercetools.Base.CustomAttributes; @@ -17,5 +18,7 @@ public partial interface ITransactionDraft string InteractionId { get; set; } ITransactionState State { get; set; } + + ICustomFields Custom { get; set; } } } diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Payments/PaymentSetTransactionCustomFieldAction.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Payments/PaymentSetTransactionCustomFieldAction.cs new file mode 100644 index 00000000000..510cd3cc7f9 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Payments/PaymentSetTransactionCustomFieldAction.cs @@ -0,0 +1,18 @@ +using System; + + +namespace commercetools.Api.Models.Payments +{ + public partial class PaymentSetTransactionCustomFieldAction : IPaymentSetTransactionCustomFieldAction + { + public string Action { get; set; } + + public string Name { get; set; } + + public Object Value { get; set; } + public PaymentSetTransactionCustomFieldAction() + { + this.Action = "setTransactionCustomField"; + } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Payments/PaymentSetTransactionCustomTypeAction.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Payments/PaymentSetTransactionCustomTypeAction.cs new file mode 100644 index 00000000000..2ce5489fe30 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Payments/PaymentSetTransactionCustomTypeAction.cs @@ -0,0 +1,18 @@ +using commercetools.Api.Models.Types; + + +namespace commercetools.Api.Models.Payments +{ + public partial class PaymentSetTransactionCustomTypeAction : IPaymentSetTransactionCustomTypeAction + { + public string Action { get; set; } + + public ITypeResourceIdentifier Type { get; set; } + + public IFieldContainer Fields { get; set; } + public PaymentSetTransactionCustomTypeAction() + { + this.Action = "setTransactionCustomType"; + } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Payments/Transaction.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Payments/Transaction.cs index 312df6da0e8..562b29e606c 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Payments/Transaction.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Payments/Transaction.cs @@ -1,4 +1,5 @@ using commercetools.Api.Models.Common; +using commercetools.Api.Models.Types; using System; @@ -17,5 +18,7 @@ public partial class Transaction : ITransaction public string InteractionId { get; set; } public ITransactionState State { get; set; } + + public ICustomFields Custom { get; set; } } } diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Payments/TransactionDraft.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Payments/TransactionDraft.cs index 635a0b353cf..b14f7c8537e 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Payments/TransactionDraft.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Payments/TransactionDraft.cs @@ -1,4 +1,5 @@ using commercetools.Api.Models.Common; +using commercetools.Api.Models.Types; using System; @@ -15,5 +16,7 @@ public partial class TransactionDraft : ITransactionDraft public string InteractionId { get; set; } public ITransactionState State { get; set; } + + public ICustomFields Custom { get; set; } } } diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Projects/IProjectChangeCartsConfiguration.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Projects/IProjectChangeCartsConfigurationAction.cs similarity index 64% rename from commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Projects/IProjectChangeCartsConfiguration.cs rename to commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Projects/IProjectChangeCartsConfigurationAction.cs index b4d914d19ee..6b282b7779d 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Projects/IProjectChangeCartsConfiguration.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Projects/IProjectChangeCartsConfigurationAction.cs @@ -3,8 +3,8 @@ namespace commercetools.Api.Models.Projects { - [DeserializeAs(typeof(commercetools.Api.Models.Projects.ProjectChangeCartsConfiguration))] - public partial interface IProjectChangeCartsConfiguration : IProjectUpdateAction + [DeserializeAs(typeof(commercetools.Api.Models.Projects.ProjectChangeCartsConfigurationAction))] + public partial interface IProjectChangeCartsConfigurationAction : IProjectUpdateAction { ICartsConfiguration CartsConfiguration { get; set; } } diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Projects/IProjectChangeOrderSearchStatusAction.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Projects/IProjectChangeOrderSearchStatusAction.cs new file mode 100644 index 00000000000..d01d12a5644 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Projects/IProjectChangeOrderSearchStatusAction.cs @@ -0,0 +1,11 @@ +using commercetools.Base.CustomAttributes; + + +namespace commercetools.Api.Models.Projects +{ + [DeserializeAs(typeof(commercetools.Api.Models.Projects.ProjectChangeOrderSearchStatusAction))] + public partial interface IProjectChangeOrderSearchStatusAction : IProjectUpdateAction + { + IOrderSearchStatus Status { get; set; } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Projects/IProjectChangeShoppingListsConfiguration.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Projects/IProjectChangeShoppingListsConfigurationAction.cs similarity index 79% rename from commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Projects/IProjectChangeShoppingListsConfiguration.cs rename to commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Projects/IProjectChangeShoppingListsConfigurationAction.cs index a544342e81e..aa3f432a81b 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Projects/IProjectChangeShoppingListsConfiguration.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Projects/IProjectChangeShoppingListsConfigurationAction.cs @@ -3,8 +3,8 @@ namespace commercetools.Api.Models.Projects { - [DeserializeAs(typeof(commercetools.Api.Models.Projects.ProjectChangeShoppingListsConfiguration))] - public partial interface IProjectChangeShoppingListsConfiguration : IProjectUpdateAction + [DeserializeAs(typeof(commercetools.Api.Models.Projects.ProjectChangeShoppingListsConfigurationAction))] + public partial interface IProjectChangeShoppingListsConfigurationAction : IProjectUpdateAction { IShoppingListsConfiguration ShoppingListsConfiguration { get; set; } } diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Projects/IProjectUpdateAction.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Projects/IProjectUpdateAction.cs index 48da5978176..243e3309771 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Projects/IProjectUpdateAction.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Projects/IProjectUpdateAction.cs @@ -5,7 +5,7 @@ namespace commercetools.Api.Models.Projects { [TypeDiscriminator(nameof(Action))] [DefaultTypeDiscriminator(typeof(commercetools.Api.Models.Projects.ProjectUpdateAction))] - [SubTypeDiscriminator("changeCartsConfiguration", typeof(commercetools.Api.Models.Projects.ProjectChangeCartsConfiguration))] + [SubTypeDiscriminator("changeCartsConfiguration", typeof(commercetools.Api.Models.Projects.ProjectChangeCartsConfigurationAction))] [SubTypeDiscriminator("changeCountries", typeof(commercetools.Api.Models.Projects.ProjectChangeCountriesAction))] [SubTypeDiscriminator("changeCountryTaxRateFallbackEnabled", typeof(commercetools.Api.Models.Projects.ProjectChangeCountryTaxRateFallbackEnabledAction))] [SubTypeDiscriminator("changeCurrencies", typeof(commercetools.Api.Models.Projects.ProjectChangeCurrenciesAction))] @@ -13,8 +13,9 @@ namespace commercetools.Api.Models.Projects [SubTypeDiscriminator("changeMessagesConfiguration", typeof(commercetools.Api.Models.Projects.ProjectChangeMessagesConfigurationAction))] [SubTypeDiscriminator("changeMessagesEnabled", typeof(commercetools.Api.Models.Projects.ProjectChangeMessagesEnabledAction))] [SubTypeDiscriminator("changeName", typeof(commercetools.Api.Models.Projects.ProjectChangeNameAction))] + [SubTypeDiscriminator("changeOrderSearchStatus", typeof(commercetools.Api.Models.Projects.ProjectChangeOrderSearchStatusAction))] [SubTypeDiscriminator("changeProductSearchIndexingEnabled", typeof(commercetools.Api.Models.Projects.ProjectChangeProductSearchIndexingEnabledAction))] - [SubTypeDiscriminator("changeShoppingListsConfiguration", typeof(commercetools.Api.Models.Projects.ProjectChangeShoppingListsConfiguration))] + [SubTypeDiscriminator("changeShoppingListsConfiguration", typeof(commercetools.Api.Models.Projects.ProjectChangeShoppingListsConfigurationAction))] [SubTypeDiscriminator("setExternalOAuth", typeof(commercetools.Api.Models.Projects.ProjectSetExternalOAuthAction))] [SubTypeDiscriminator("setShippingRateInputType", typeof(commercetools.Api.Models.Projects.ProjectSetShippingRateInputTypeAction))] public partial interface IProjectUpdateAction diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Projects/ISearchIndexingConfiguration.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Projects/ISearchIndexingConfiguration.cs index 6452f93a8b8..f0597aed6db 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Projects/ISearchIndexingConfiguration.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Projects/ISearchIndexingConfiguration.cs @@ -7,5 +7,7 @@ namespace commercetools.Api.Models.Projects public partial interface ISearchIndexingConfiguration { ISearchIndexingConfigurationValues Products { get; set; } + + ISearchIndexingConfigurationValues Orders { get; set; } } } diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Projects/OrderSearchStatus.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Projects/OrderSearchStatus.cs new file mode 100644 index 00000000000..ba210149fc0 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Projects/OrderSearchStatus.cs @@ -0,0 +1,50 @@ +using System.ComponentModel; +using System.Linq; +using commercetools.Base.CustomAttributes; +using commercetools.Base.Models; +namespace commercetools.Api.Models.Projects +{ + public enum OrderSearchStatus + { + [Description("Activated")] + Activated, + + [Description("Deactivated")] + Deactivated + } + + public class OrderSearchStatusWrapper : IOrderSearchStatus + { + public string JsonName { get; internal set; } + public OrderSearchStatus? Value { get; internal set; } + public override string ToString() + { + return JsonName; + } + } + + [EnumInterfaceCreator(typeof(IOrderSearchStatus), "FindEnum")] + public interface IOrderSearchStatus : IJsonName + { + public static IOrderSearchStatus Activated = new OrderSearchStatusWrapper + { Value = OrderSearchStatus.Activated, JsonName = "Activated" }; + + public static IOrderSearchStatus Deactivated = new OrderSearchStatusWrapper + { Value = OrderSearchStatus.Deactivated, JsonName = "Deactivated" }; + + OrderSearchStatus? Value { get; } + + static IOrderSearchStatus[] Values() + { + return new[] + { + Activated , + Deactivated + }; + } + static IOrderSearchStatus FindEnum(string value) + { + return Values().FirstOrDefault(origin => origin.JsonName == value) ?? new OrderSearchStatusWrapper() { JsonName = value }; + } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Projects/ProjectChangeCartsConfiguration.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Projects/ProjectChangeCartsConfigurationAction.cs similarity index 60% rename from commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Projects/ProjectChangeCartsConfiguration.cs rename to commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Projects/ProjectChangeCartsConfigurationAction.cs index a79332bf992..0d1c1bb7ea2 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Projects/ProjectChangeCartsConfiguration.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Projects/ProjectChangeCartsConfigurationAction.cs @@ -1,11 +1,11 @@ namespace commercetools.Api.Models.Projects { - public partial class ProjectChangeCartsConfiguration : IProjectChangeCartsConfiguration + public partial class ProjectChangeCartsConfigurationAction : IProjectChangeCartsConfigurationAction { public string Action { get; set; } public ICartsConfiguration CartsConfiguration { get; set; } - public ProjectChangeCartsConfiguration() + public ProjectChangeCartsConfigurationAction() { this.Action = "changeCartsConfiguration"; } diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Projects/ProjectChangeOrderSearchStatusAction.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Projects/ProjectChangeOrderSearchStatusAction.cs new file mode 100644 index 00000000000..7c0d6edbcd9 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Projects/ProjectChangeOrderSearchStatusAction.cs @@ -0,0 +1,13 @@ +namespace commercetools.Api.Models.Projects +{ + public partial class ProjectChangeOrderSearchStatusAction : IProjectChangeOrderSearchStatusAction + { + public string Action { get; set; } + + public IOrderSearchStatus Status { get; set; } + public ProjectChangeOrderSearchStatusAction() + { + this.Action = "changeOrderSearchStatus"; + } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Projects/ProjectChangeShoppingListsConfiguration.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Projects/ProjectChangeShoppingListsConfigurationAction.cs similarity index 73% rename from commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Projects/ProjectChangeShoppingListsConfiguration.cs rename to commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Projects/ProjectChangeShoppingListsConfigurationAction.cs index 4792e00a548..46aa8e7a5cb 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Projects/ProjectChangeShoppingListsConfiguration.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Projects/ProjectChangeShoppingListsConfigurationAction.cs @@ -1,11 +1,11 @@ namespace commercetools.Api.Models.Projects { - public partial class ProjectChangeShoppingListsConfiguration : IProjectChangeShoppingListsConfiguration + public partial class ProjectChangeShoppingListsConfigurationAction : IProjectChangeShoppingListsConfigurationAction { public string Action { get; set; } public IShoppingListsConfiguration ShoppingListsConfiguration { get; set; } - public ProjectChangeShoppingListsConfiguration() + public ProjectChangeShoppingListsConfigurationAction() { this.Action = "changeShoppingListsConfiguration"; } diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Projects/SearchIndexingConfiguration.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Projects/SearchIndexingConfiguration.cs index 81c3a0a63dc..e6bfe72231e 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Projects/SearchIndexingConfiguration.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Projects/SearchIndexingConfiguration.cs @@ -3,5 +3,7 @@ namespace commercetools.Api.Models.Projects public partial class SearchIndexingConfiguration : ISearchIndexingConfiguration { public ISearchIndexingConfigurationValues Products { get; set; } + + public ISearchIndexingConfigurationValues Orders { get; set; } } } diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Subscriptions/EventBridgeDestination.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Subscriptions/EventBridgeDestination.cs new file mode 100644 index 00000000000..e4e8bba9cff --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Subscriptions/EventBridgeDestination.cs @@ -0,0 +1,15 @@ +namespace commercetools.Api.Models.Subscriptions +{ + public partial class EventBridgeDestination : IEventBridgeDestination + { + public string Type { get; set; } + + public string Region { get; set; } + + public string AccountId { get; set; } + public EventBridgeDestination() + { + this.Type = "EventBridge"; + } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Subscriptions/IDestination.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Subscriptions/IDestination.cs index 7202504f690..d5b04dc3fd6 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Subscriptions/IDestination.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Subscriptions/IDestination.cs @@ -6,6 +6,7 @@ namespace commercetools.Api.Models.Subscriptions [TypeDiscriminator(nameof(Type))] [DefaultTypeDiscriminator(typeof(commercetools.Api.Models.Subscriptions.Destination))] [SubTypeDiscriminator("AzureServiceBus", typeof(commercetools.Api.Models.Subscriptions.AzureServiceBusDestination))] + [SubTypeDiscriminator("EventBridge", typeof(commercetools.Api.Models.Subscriptions.EventBridgeDestination))] [SubTypeDiscriminator("EventGrid", typeof(commercetools.Api.Models.Subscriptions.AzureEventGridDestination))] [SubTypeDiscriminator("GoogleCloudPubSub", typeof(commercetools.Api.Models.Subscriptions.GoogleCloudPubSubDestination))] [SubTypeDiscriminator("IronMQ", typeof(commercetools.Api.Models.Subscriptions.IronMqDestination))] diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Subscriptions/IEventBridgeDestination.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Subscriptions/IEventBridgeDestination.cs new file mode 100644 index 00000000000..3cc52f94fea --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Subscriptions/IEventBridgeDestination.cs @@ -0,0 +1,13 @@ +using commercetools.Base.CustomAttributes; + + +namespace commercetools.Api.Models.Subscriptions +{ + [DeserializeAs(typeof(commercetools.Api.Models.Subscriptions.EventBridgeDestination))] + public partial interface IEventBridgeDestination : IDestination + { + string Region { get; set; } + + string AccountId { get; set; } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/Models/ChangeHistoryResourceType.cs b/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/Models/ChangeHistoryResourceType.cs index c769ae4d63e..8bb16f97737 100644 --- a/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/Models/ChangeHistoryResourceType.cs +++ b/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/Models/ChangeHistoryResourceType.cs @@ -27,6 +27,9 @@ public enum ChangeHistoryResourceType [Description("inventory-entry")] InventoryEntry, + [Description("key-value-document")] + KeyValueDocument, + [Description("order")] Order, @@ -98,6 +101,9 @@ public interface IChangeHistoryResourceType : IJsonName public static IChangeHistoryResourceType InventoryEntry = new ChangeHistoryResourceTypeWrapper { Value = ChangeHistoryResourceType.InventoryEntry, JsonName = "inventory-entry" }; + public static IChangeHistoryResourceType KeyValueDocument = new ChangeHistoryResourceTypeWrapper + { Value = ChangeHistoryResourceType.KeyValueDocument, JsonName = "key-value-document" }; + public static IChangeHistoryResourceType Order = new ChangeHistoryResourceTypeWrapper { Value = ChangeHistoryResourceType.Order, JsonName = "order" }; @@ -147,6 +153,7 @@ static IChangeHistoryResourceType[] Values() CustomerGroup , DiscountCode , InventoryEntry , + KeyValueDocument , Order , Payment , Product , diff --git a/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/Models/Changes/AddPropertyChange.cs b/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/Models/Changes/AddPropertyChange.cs new file mode 100644 index 00000000000..53c4c91b4f6 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/Models/Changes/AddPropertyChange.cs @@ -0,0 +1,20 @@ +using System; + + +namespace commercetools.HistoryApi.Models.Changes +{ + public partial class AddPropertyChange : IAddPropertyChange + { + public string Type { get; set; } + + public string Change { get; set; } + + public string Path { get; set; } + + public Object NextValue { get; set; } + public AddPropertyChange() + { + this.Type = "AddPropertyChange"; + } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/Models/Changes/IAddPropertyChange.cs b/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/Models/Changes/IAddPropertyChange.cs new file mode 100644 index 00000000000..1565c9a820d --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/Models/Changes/IAddPropertyChange.cs @@ -0,0 +1,18 @@ +using System; +using commercetools.Base.CustomAttributes; + + +namespace commercetools.HistoryApi.Models.Changes +{ + [DeserializeAs(typeof(commercetools.HistoryApi.Models.Changes.AddPropertyChange))] + public partial interface IAddPropertyChange : IChange + { + new string Type { get; set; } + + new string Change { get; set; } + + string Path { get; set; } + + Object NextValue { get; set; } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/Models/Changes/IChange.cs b/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/Models/Changes/IChange.cs index ce07c6c67da..a3f813f6f43 100644 --- a/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/Models/Changes/IChange.cs +++ b/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/Models/Changes/IChange.cs @@ -25,6 +25,7 @@ namespace commercetools.HistoryApi.Models.Changes [SubTypeDiscriminator("AddPaymentChange", typeof(commercetools.HistoryApi.Models.Changes.AddPaymentChange))] [SubTypeDiscriminator("AddPlainEnumValueChange", typeof(commercetools.HistoryApi.Models.Changes.AddPlainEnumValueChange))] [SubTypeDiscriminator("AddPriceChange", typeof(commercetools.HistoryApi.Models.Changes.AddPriceChange))] + [SubTypeDiscriminator("AddPropertyChange", typeof(commercetools.HistoryApi.Models.Changes.AddPropertyChange))] [SubTypeDiscriminator("AddReturnInfoChange", typeof(commercetools.HistoryApi.Models.Changes.AddReturnInfoChange))] [SubTypeDiscriminator("AddShippingAddressIdChange", typeof(commercetools.HistoryApi.Models.Changes.AddShippingAddressIdChange))] [SubTypeDiscriminator("AddShoppingListLineItemChange", typeof(commercetools.HistoryApi.Models.Changes.AddShoppingListLineItemChange))] @@ -113,6 +114,7 @@ namespace commercetools.HistoryApi.Models.Changes [SubTypeDiscriminator("RemoveParcelFromDeliveryChange", typeof(commercetools.HistoryApi.Models.Changes.RemoveParcelFromDeliveryChange))] [SubTypeDiscriminator("RemovePaymentChange", typeof(commercetools.HistoryApi.Models.Changes.RemovePaymentChange))] [SubTypeDiscriminator("RemovePriceChange", typeof(commercetools.HistoryApi.Models.Changes.RemovePriceChange))] + [SubTypeDiscriminator("RemovePropertyChange", typeof(commercetools.HistoryApi.Models.Changes.RemovePropertyChange))] [SubTypeDiscriminator("RemoveShippingAddressIdChange", typeof(commercetools.HistoryApi.Models.Changes.RemoveShippingAddressIdChange))] [SubTypeDiscriminator("RemoveShoppingListLineItemChange", typeof(commercetools.HistoryApi.Models.Changes.RemoveShoppingListLineItemChange))] [SubTypeDiscriminator("RemoveStateRolesChange", typeof(commercetools.HistoryApi.Models.Changes.RemoveStateRolesChange))] @@ -208,6 +210,7 @@ namespace commercetools.HistoryApi.Models.Changes [SubTypeDiscriminator("SetProductPriceCustomFieldChange", typeof(commercetools.HistoryApi.Models.Changes.SetProductPriceCustomFieldChange))] [SubTypeDiscriminator("SetProductPriceCustomTypeChange", typeof(commercetools.HistoryApi.Models.Changes.SetProductPriceCustomTypeChange))] [SubTypeDiscriminator("SetProductVariantKeyChange", typeof(commercetools.HistoryApi.Models.Changes.SetProductVariantKeyChange))] + [SubTypeDiscriminator("SetPropertyChange", typeof(commercetools.HistoryApi.Models.Changes.SetPropertyChange))] [SubTypeDiscriminator("SetRatingChange", typeof(commercetools.HistoryApi.Models.Changes.SetRatingChange))] [SubTypeDiscriminator("SetReservationsChange", typeof(commercetools.HistoryApi.Models.Changes.SetReservationsChange))] [SubTypeDiscriminator("SetRestockableInDaysChange", typeof(commercetools.HistoryApi.Models.Changes.SetRestockableInDaysChange))] @@ -245,6 +248,7 @@ namespace commercetools.HistoryApi.Models.Changes [SubTypeDiscriminator("SetValidFromAndUntilChange", typeof(commercetools.HistoryApi.Models.Changes.SetValidFromAndUntilChange))] [SubTypeDiscriminator("SetValidFromChange", typeof(commercetools.HistoryApi.Models.Changes.SetValidFromChange))] [SubTypeDiscriminator("SetValidUntilChange", typeof(commercetools.HistoryApi.Models.Changes.SetValidUntilChange))] + [SubTypeDiscriminator("SetValueChange", typeof(commercetools.HistoryApi.Models.Changes.SetValueChange))] [SubTypeDiscriminator("SetVariantAvailabilityChange", typeof(commercetools.HistoryApi.Models.Changes.SetVariantAvailabilityChange))] [SubTypeDiscriminator("SetVatIdChange", typeof(commercetools.HistoryApi.Models.Changes.SetVatIdChange))] [SubTypeDiscriminator("TransitionCustomLineItemStateChange", typeof(commercetools.HistoryApi.Models.Changes.TransitionCustomLineItemStateChange))] diff --git a/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/Models/Changes/IRemovePropertyChange.cs b/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/Models/Changes/IRemovePropertyChange.cs new file mode 100644 index 00000000000..635aa0d8c06 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/Models/Changes/IRemovePropertyChange.cs @@ -0,0 +1,18 @@ +using System; +using commercetools.Base.CustomAttributes; + + +namespace commercetools.HistoryApi.Models.Changes +{ + [DeserializeAs(typeof(commercetools.HistoryApi.Models.Changes.RemovePropertyChange))] + public partial interface IRemovePropertyChange : IChange + { + new string Type { get; set; } + + new string Change { get; set; } + + string Path { get; set; } + + Object PreviousValue { get; set; } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/Models/Changes/ISetCustomLineItemCustomFieldChange.cs b/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/Models/Changes/ISetCustomLineItemCustomFieldChange.cs index 4bf7addf4d2..1eaa69c6895 100644 --- a/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/Models/Changes/ISetCustomLineItemCustomFieldChange.cs +++ b/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/Models/Changes/ISetCustomLineItemCustomFieldChange.cs @@ -16,6 +16,8 @@ public partial interface ISetCustomLineItemCustomFieldChange : IChange ILocalizedString CustomLineItem { get; set; } + string CustomLineItemId { get; set; } + Object NextValue { get; set; } Object PreviousValue { get; set; } diff --git a/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/Models/Changes/ISetCustomLineItemCustomTypeChange.cs b/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/Models/Changes/ISetCustomLineItemCustomTypeChange.cs index b72f2b2a401..0de25cd16ac 100644 --- a/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/Models/Changes/ISetCustomLineItemCustomTypeChange.cs +++ b/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/Models/Changes/ISetCustomLineItemCustomTypeChange.cs @@ -13,6 +13,8 @@ public partial interface ISetCustomLineItemCustomTypeChange : IChange ILocalizedString CustomLineItem { get; set; } + string CustomLineItemId { get; set; } + ICustomFields NextValue { get; set; } ICustomFields PreviousValue { get; set; } diff --git a/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/Models/Changes/ISetPropertyChange.cs b/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/Models/Changes/ISetPropertyChange.cs new file mode 100644 index 00000000000..adcb3a16c55 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/Models/Changes/ISetPropertyChange.cs @@ -0,0 +1,20 @@ +using System; +using commercetools.Base.CustomAttributes; + + +namespace commercetools.HistoryApi.Models.Changes +{ + [DeserializeAs(typeof(commercetools.HistoryApi.Models.Changes.SetPropertyChange))] + public partial interface ISetPropertyChange : IChange + { + new string Type { get; set; } + + new string Change { get; set; } + + string Path { get; set; } + + Object NextValue { get; set; } + + Object PreviousValue { get; set; } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/Models/Changes/ISetValueChange.cs b/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/Models/Changes/ISetValueChange.cs new file mode 100644 index 00000000000..8234786530f --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/Models/Changes/ISetValueChange.cs @@ -0,0 +1,18 @@ +using System; +using commercetools.Base.CustomAttributes; + + +namespace commercetools.HistoryApi.Models.Changes +{ + [DeserializeAs(typeof(commercetools.HistoryApi.Models.Changes.SetValueChange))] + public partial interface ISetValueChange : IChange + { + new string Type { get; set; } + + new string Change { get; set; } + + Object NextValue { get; set; } + + Object PreviousValue { get; set; } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/Models/Changes/RemovePropertyChange.cs b/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/Models/Changes/RemovePropertyChange.cs new file mode 100644 index 00000000000..ec394536a11 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/Models/Changes/RemovePropertyChange.cs @@ -0,0 +1,20 @@ +using System; + + +namespace commercetools.HistoryApi.Models.Changes +{ + public partial class RemovePropertyChange : IRemovePropertyChange + { + public string Type { get; set; } + + public string Change { get; set; } + + public string Path { get; set; } + + public Object PreviousValue { get; set; } + public RemovePropertyChange() + { + this.Type = "RemovePropertyChange"; + } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/Models/Changes/SetCustomLineItemCustomFieldChange.cs b/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/Models/Changes/SetCustomLineItemCustomFieldChange.cs index dc94697a7aa..be9718ae99f 100644 --- a/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/Models/Changes/SetCustomLineItemCustomFieldChange.cs +++ b/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/Models/Changes/SetCustomLineItemCustomFieldChange.cs @@ -14,6 +14,8 @@ public partial class SetCustomLineItemCustomFieldChange : ISetCustomLineItemCust public ILocalizedString CustomLineItem { get; set; } + public string CustomLineItemId { get; set; } + public Object NextValue { get; set; } public Object PreviousValue { get; set; } diff --git a/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/Models/Changes/SetCustomLineItemCustomTypeChange.cs b/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/Models/Changes/SetCustomLineItemCustomTypeChange.cs index 91ff547e2a3..32dc6387248 100644 --- a/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/Models/Changes/SetCustomLineItemCustomTypeChange.cs +++ b/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/Models/Changes/SetCustomLineItemCustomTypeChange.cs @@ -11,6 +11,8 @@ public partial class SetCustomLineItemCustomTypeChange : ISetCustomLineItemCusto public ILocalizedString CustomLineItem { get; set; } + public string CustomLineItemId { get; set; } + public ICustomFields NextValue { get; set; } public ICustomFields PreviousValue { get; set; } diff --git a/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/Models/Changes/SetPropertyChange.cs b/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/Models/Changes/SetPropertyChange.cs new file mode 100644 index 00000000000..3b7abefb42d --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/Models/Changes/SetPropertyChange.cs @@ -0,0 +1,22 @@ +using System; + + +namespace commercetools.HistoryApi.Models.Changes +{ + public partial class SetPropertyChange : ISetPropertyChange + { + public string Type { get; set; } + + public string Change { get; set; } + + public string Path { get; set; } + + public Object NextValue { get; set; } + + public Object PreviousValue { get; set; } + public SetPropertyChange() + { + this.Type = "SetPropertyChange"; + } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/Models/Changes/SetValueChange.cs b/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/Models/Changes/SetValueChange.cs new file mode 100644 index 00000000000..511d02a329a --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/Models/Changes/SetValueChange.cs @@ -0,0 +1,20 @@ +using System; + + +namespace commercetools.HistoryApi.Models.Changes +{ + public partial class SetValueChange : ISetValueChange + { + public string Type { get; set; } + + public string Change { get; set; } + + public Object NextValue { get; set; } + + public Object PreviousValue { get; set; } + public SetValueChange() + { + this.Type = "SetValueChange"; + } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/Models/Common/Delivery.cs b/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/Models/Common/Delivery.cs index f296de4cce2..f94fc4e9c1a 100644 --- a/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/Models/Common/Delivery.cs +++ b/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/Models/Common/Delivery.cs @@ -14,5 +14,7 @@ public partial class Delivery : IDelivery public List Parcels { get; set; } public IAddress Address { get; set; } + + public ICustomFields Custom { get; set; } } } diff --git a/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/Models/Common/IDelivery.cs b/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/Models/Common/IDelivery.cs index fb5573e931a..67d257417ab 100644 --- a/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/Models/Common/IDelivery.cs +++ b/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/Models/Common/IDelivery.cs @@ -16,5 +16,7 @@ public partial interface IDelivery List Parcels { get; set; } IAddress Address { get; set; } + + ICustomFields Custom { get; set; } } } diff --git a/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/Models/Labels/CustomObjectLabel.cs b/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/Models/Labels/CustomObjectLabel.cs new file mode 100644 index 00000000000..c256e2f0e09 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/Models/Labels/CustomObjectLabel.cs @@ -0,0 +1,15 @@ +namespace commercetools.HistoryApi.Models.Labels +{ + public partial class CustomObjectLabel : ICustomObjectLabel + { + public string Type { get; set; } + + public string Key { get; set; } + + public string Container { get; set; } + public CustomObjectLabel() + { + this.Type = "CustomObjectLabel"; + } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/Models/Labels/ICustomObjectLabel.cs b/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/Models/Labels/ICustomObjectLabel.cs new file mode 100644 index 00000000000..437c91e8fb3 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/Models/Labels/ICustomObjectLabel.cs @@ -0,0 +1,15 @@ +using commercetools.Base.CustomAttributes; + + +namespace commercetools.HistoryApi.Models.Labels +{ + [DeserializeAs(typeof(commercetools.HistoryApi.Models.Labels.CustomObjectLabel))] + public partial interface ICustomObjectLabel : ILabel + { + new string Type { get; set; } + + string Key { get; set; } + + string Container { get; set; } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/Models/Labels/ILabel.cs b/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/Models/Labels/ILabel.cs index efa53bffed2..73dbcdd25bc 100644 --- a/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/Models/Labels/ILabel.cs +++ b/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/Models/Labels/ILabel.cs @@ -6,6 +6,7 @@ namespace commercetools.HistoryApi.Models.Labels [TypeDiscriminator(nameof(Type))] [DefaultTypeDiscriminator(typeof(commercetools.HistoryApi.Models.Labels.Label))] [SubTypeDiscriminator("CustomerLabel", typeof(commercetools.HistoryApi.Models.Labels.CustomerLabel))] + [SubTypeDiscriminator("CustomObjectLabel", typeof(commercetools.HistoryApi.Models.Labels.CustomObjectLabel))] [SubTypeDiscriminator("LocalizedLabel", typeof(commercetools.HistoryApi.Models.Labels.LocalizedLabel))] [SubTypeDiscriminator("OrderLabel", typeof(commercetools.HistoryApi.Models.Labels.OrderLabel))] [SubTypeDiscriminator("PaymentLabel", typeof(commercetools.HistoryApi.Models.Labels.PaymentLabel))] diff --git a/commercetools.Sdk/commercetools.Sdk.ImportApi/Generated/Client/RequestBuilders/Inventories/ByProjectKeyInventoriesImportContainersByImportContainerKeyPost.cs b/commercetools.Sdk/commercetools.Sdk.ImportApi/Generated/Client/RequestBuilders/Inventories/ByProjectKeyInventoriesImportContainersByImportContainerKeyPost.cs deleted file mode 100644 index 577a5de6a6f..00000000000 --- a/commercetools.Sdk/commercetools.Sdk.ImportApi/Generated/Client/RequestBuilders/Inventories/ByProjectKeyInventoriesImportContainersByImportContainerKeyPost.cs +++ /dev/null @@ -1,59 +0,0 @@ -using System.Net.Http; -using System.Text; -using System.Threading.Tasks; -using commercetools.Base.Client; -using commercetools.Base.Serialization; - - -namespace commercetools.ImportApi.Client.RequestBuilders.Inventories -{ - public partial class ByProjectKeyInventoriesImportContainersByImportContainerKeyPost : ApiMethod - { - - - private ISerializerService SerializerService { get; } - - private IClient ApiHttpClient { get; } - - public override HttpMethod Method => HttpMethod.Post; - - private string ProjectKey { get; } - - private string ImportContainerKey { get; } - - private commercetools.ImportApi.Models.Importrequests.IInventoryImportRequest InventoryImportRequest; - - public ByProjectKeyInventoriesImportContainersByImportContainerKeyPost(IClient apiHttpClient, ISerializerService serializerService, string projectKey, string importContainerKey, commercetools.ImportApi.Models.Importrequests.IInventoryImportRequest inventoryImportRequest) - { - this.ApiHttpClient = apiHttpClient; - this.SerializerService = serializerService; - this.ProjectKey = projectKey; - this.ImportContainerKey = importContainerKey; - this.InventoryImportRequest = inventoryImportRequest; - this.RequestUrl = $"/{ProjectKey}/inventories/import-containers/{ImportContainerKey}"; - } - - - - - public async Task ExecuteAsync() - { - var requestMessage = Build(); - return await ApiHttpClient.ExecuteAsync(requestMessage); - } - public override HttpRequestMessage Build() - { - var request = base.Build(); - if (SerializerService != null) - { - var body = this.SerializerService.Serialize(InventoryImportRequest); - if (!string.IsNullOrEmpty(body)) - { - request.Content = new StringContent(body, Encoding.UTF8, "application/json"); - } - } - return request; - } - - } -} diff --git a/commercetools.Sdk/commercetools.Sdk.ImportApi/Generated/Client/RequestBuilders/Inventories/ByProjectKeyInventoriesImportContainersByImportContainerKeyRequestBuilder.cs b/commercetools.Sdk/commercetools.Sdk.ImportApi/Generated/Client/RequestBuilders/Inventories/ByProjectKeyInventoriesImportContainersByImportContainerKeyRequestBuilder.cs deleted file mode 100644 index 56a912ee34b..00000000000 --- a/commercetools.Sdk/commercetools.Sdk.ImportApi/Generated/Client/RequestBuilders/Inventories/ByProjectKeyInventoriesImportContainersByImportContainerKeyRequestBuilder.cs +++ /dev/null @@ -1,32 +0,0 @@ -using commercetools.Base.Client; -using commercetools.Base.Serialization; - -namespace commercetools.ImportApi.Client.RequestBuilders.Inventories -{ - - public class ByProjectKeyInventoriesImportContainersByImportContainerKeyRequestBuilder - { - - private IClient ApiHttpClient { get; } - - private ISerializerService SerializerService { get; } - - private string ProjectKey { get; } - - private string ImportContainerKey { get; } - - public ByProjectKeyInventoriesImportContainersByImportContainerKeyRequestBuilder(IClient apiHttpClient, ISerializerService serializerService, string projectKey, string importContainerKey) - { - this.ApiHttpClient = apiHttpClient; - this.SerializerService = serializerService; - this.ProjectKey = projectKey; - this.ImportContainerKey = importContainerKey; - } - - public ByProjectKeyInventoriesImportContainersByImportContainerKeyPost Post(commercetools.ImportApi.Models.Importrequests.IInventoryImportRequest inventoryImportRequest) - { - return new ByProjectKeyInventoriesImportContainersByImportContainerKeyPost(ApiHttpClient, SerializerService, ProjectKey, ImportContainerKey, inventoryImportRequest); - } - - } -} diff --git a/commercetools.Sdk/commercetools.Sdk.ImportApi/Generated/Client/RequestBuilders/Inventories/ByProjectKeyInventoriesImportContainersRequestBuilder.cs b/commercetools.Sdk/commercetools.Sdk.ImportApi/Generated/Client/RequestBuilders/Inventories/ByProjectKeyInventoriesImportContainersRequestBuilder.cs deleted file mode 100644 index 6f4dc28c0a5..00000000000 --- a/commercetools.Sdk/commercetools.Sdk.ImportApi/Generated/Client/RequestBuilders/Inventories/ByProjectKeyInventoriesImportContainersRequestBuilder.cs +++ /dev/null @@ -1,30 +0,0 @@ -using commercetools.Base.Client; -using commercetools.Base.Serialization; - -namespace commercetools.ImportApi.Client.RequestBuilders.Inventories -{ - - public class ByProjectKeyInventoriesImportContainersRequestBuilder - { - - private IClient ApiHttpClient { get; } - - private ISerializerService SerializerService { get; } - - private string ProjectKey { get; } - - public ByProjectKeyInventoriesImportContainersRequestBuilder(IClient apiHttpClient, ISerializerService serializerService, string projectKey) - { - this.ApiHttpClient = apiHttpClient; - this.SerializerService = serializerService; - this.ProjectKey = projectKey; - } - - - - public ByProjectKeyInventoriesImportContainersByImportContainerKeyRequestBuilder WithImportContainerKeyValue(string importContainerKey) - { - return new ByProjectKeyInventoriesImportContainersByImportContainerKeyRequestBuilder(ApiHttpClient, SerializerService, ProjectKey, importContainerKey); - } - } -} diff --git a/commercetools.Sdk/commercetools.Sdk.ImportApi/Generated/Client/RequestBuilders/Inventories/ByProjectKeyInventoriesImportSinkKeyByImportSinkKeyImportOperationsByIdGet.cs b/commercetools.Sdk/commercetools.Sdk.ImportApi/Generated/Client/RequestBuilders/Inventories/ByProjectKeyInventoriesImportSinkKeyByImportSinkKeyImportOperationsByIdGet.cs deleted file mode 100644 index 015d6ff5a38..00000000000 --- a/commercetools.Sdk/commercetools.Sdk.ImportApi/Generated/Client/RequestBuilders/Inventories/ByProjectKeyInventoriesImportSinkKeyByImportSinkKeyImportOperationsByIdGet.cs +++ /dev/null @@ -1,42 +0,0 @@ -using System.Net.Http; -using System.Threading.Tasks; -using commercetools.Base.Client; - - -namespace commercetools.ImportApi.Client.RequestBuilders.Inventories -{ - public partial class ByProjectKeyInventoriesImportSinkKeyByImportSinkKeyImportOperationsByIdGet : ApiMethod - { - - - private IClient ApiHttpClient { get; } - - public override HttpMethod Method => HttpMethod.Get; - - private string ProjectKey { get; } - - private string ImportSinkKey { get; } - - private string Id { get; } - - - public ByProjectKeyInventoriesImportSinkKeyByImportSinkKeyImportOperationsByIdGet(IClient apiHttpClient, string projectKey, string importSinkKey, string id) - { - this.ApiHttpClient = apiHttpClient; - this.ProjectKey = projectKey; - this.ImportSinkKey = importSinkKey; - this.Id = id; - this.RequestUrl = $"/{ProjectKey}/inventories/importSinkKey={ImportSinkKey}/import-operations/{Id}"; - } - - - - - public async Task ExecuteAsync() - { - var requestMessage = Build(); - return await ApiHttpClient.ExecuteAsync(requestMessage); - } - - } -} diff --git a/commercetools.Sdk/commercetools.Sdk.ImportApi/Generated/Client/RequestBuilders/Inventories/ByProjectKeyInventoriesImportSinkKeyByImportSinkKeyImportOperationsByIdRequestBuilder.cs b/commercetools.Sdk/commercetools.Sdk.ImportApi/Generated/Client/RequestBuilders/Inventories/ByProjectKeyInventoriesImportSinkKeyByImportSinkKeyImportOperationsByIdRequestBuilder.cs deleted file mode 100644 index ca0c3044e8e..00000000000 --- a/commercetools.Sdk/commercetools.Sdk.ImportApi/Generated/Client/RequestBuilders/Inventories/ByProjectKeyInventoriesImportSinkKeyByImportSinkKeyImportOperationsByIdRequestBuilder.cs +++ /dev/null @@ -1,35 +0,0 @@ -using commercetools.Base.Client; -using commercetools.Base.Serialization; - -namespace commercetools.ImportApi.Client.RequestBuilders.Inventories -{ - - public class ByProjectKeyInventoriesImportSinkKeyByImportSinkKeyImportOperationsByIdRequestBuilder - { - - private IClient ApiHttpClient { get; } - - private ISerializerService SerializerService { get; } - - private string ProjectKey { get; } - - private string ImportSinkKey { get; } - - private string Id { get; } - - public ByProjectKeyInventoriesImportSinkKeyByImportSinkKeyImportOperationsByIdRequestBuilder(IClient apiHttpClient, ISerializerService serializerService, string projectKey, string importSinkKey, string id) - { - this.ApiHttpClient = apiHttpClient; - this.SerializerService = serializerService; - this.ProjectKey = projectKey; - this.ImportSinkKey = importSinkKey; - this.Id = id; - } - - public ByProjectKeyInventoriesImportSinkKeyByImportSinkKeyImportOperationsByIdGet Get() - { - return new ByProjectKeyInventoriesImportSinkKeyByImportSinkKeyImportOperationsByIdGet(ApiHttpClient, ProjectKey, ImportSinkKey, Id); - } - - } -} diff --git a/commercetools.Sdk/commercetools.Sdk.ImportApi/Generated/Client/RequestBuilders/Inventories/ByProjectKeyInventoriesImportSinkKeyByImportSinkKeyImportOperationsGet.cs b/commercetools.Sdk/commercetools.Sdk.ImportApi/Generated/Client/RequestBuilders/Inventories/ByProjectKeyInventoriesImportSinkKeyByImportSinkKeyImportOperationsGet.cs deleted file mode 100644 index 27171e9acf6..00000000000 --- a/commercetools.Sdk/commercetools.Sdk.ImportApi/Generated/Client/RequestBuilders/Inventories/ByProjectKeyInventoriesImportSinkKeyByImportSinkKeyImportOperationsGet.cs +++ /dev/null @@ -1,98 +0,0 @@ -using System.Collections.Generic; -using System.Net.Http; -using System.Threading.Tasks; -using commercetools.Base.Client; -using commercetools.ImportApi.Models.Common; - -namespace commercetools.ImportApi.Client.RequestBuilders.Inventories -{ - public partial class ByProjectKeyInventoriesImportSinkKeyByImportSinkKeyImportOperationsGet : ApiMethod - { - - - private IClient ApiHttpClient { get; } - - public override HttpMethod Method => HttpMethod.Get; - - private string ProjectKey { get; } - - private string ImportSinkKey { get; } - - - public ByProjectKeyInventoriesImportSinkKeyByImportSinkKeyImportOperationsGet(IClient apiHttpClient, string projectKey, string importSinkKey) - { - this.ApiHttpClient = apiHttpClient; - this.ProjectKey = projectKey; - this.ImportSinkKey = importSinkKey; - this.RequestUrl = $"/{ProjectKey}/inventories/importSinkKey={ImportSinkKey}/import-operations"; - } - - public List GetLimit() - { - return this.GetQueryParam("limit"); - } - - public List GetOffset() - { - return this.GetQueryParam("offset"); - } - - public List GetSort() - { - return this.GetQueryParam("sort"); - } - - public List GetResourceKey() - { - return this.GetQueryParam("resourceKey"); - } - - public List GetState() - { - return this.GetQueryParam("state"); - } - - public List GetDebug() - { - return this.GetQueryParam("debug"); - } - - public ByProjectKeyInventoriesImportSinkKeyByImportSinkKeyImportOperationsGet WithLimit(double limit) - { - return this.AddQueryParam("limit", limit.ToString()); - } - - public ByProjectKeyInventoriesImportSinkKeyByImportSinkKeyImportOperationsGet WithOffset(double offset) - { - return this.AddQueryParam("offset", offset.ToString()); - } - - public ByProjectKeyInventoriesImportSinkKeyByImportSinkKeyImportOperationsGet WithSort(string sort) - { - return this.AddQueryParam("sort", sort); - } - - public ByProjectKeyInventoriesImportSinkKeyByImportSinkKeyImportOperationsGet WithResourceKey(string resourceKey) - { - return this.AddQueryParam("resourceKey", resourceKey); - } - - public ByProjectKeyInventoriesImportSinkKeyByImportSinkKeyImportOperationsGet WithState(IProcessingState state) - { - return this.AddQueryParam("state", state.JsonName); - } - - public ByProjectKeyInventoriesImportSinkKeyByImportSinkKeyImportOperationsGet WithDebug(bool debug) - { - return this.AddQueryParam("debug", debug.ToString()); - } - - - public async Task ExecuteAsync() - { - var requestMessage = Build(); - return await ApiHttpClient.ExecuteAsync(requestMessage); - } - - } -} diff --git a/commercetools.Sdk/commercetools.Sdk.ImportApi/Generated/Client/RequestBuilders/Inventories/ByProjectKeyInventoriesImportSinkKeyByImportSinkKeyImportOperationsRequestBuilder.cs b/commercetools.Sdk/commercetools.Sdk.ImportApi/Generated/Client/RequestBuilders/Inventories/ByProjectKeyInventoriesImportSinkKeyByImportSinkKeyImportOperationsRequestBuilder.cs deleted file mode 100644 index a1445349bac..00000000000 --- a/commercetools.Sdk/commercetools.Sdk.ImportApi/Generated/Client/RequestBuilders/Inventories/ByProjectKeyInventoriesImportSinkKeyByImportSinkKeyImportOperationsRequestBuilder.cs +++ /dev/null @@ -1,37 +0,0 @@ -using commercetools.Base.Client; -using commercetools.Base.Serialization; - -namespace commercetools.ImportApi.Client.RequestBuilders.Inventories -{ - - public class ByProjectKeyInventoriesImportSinkKeyByImportSinkKeyImportOperationsRequestBuilder - { - - private IClient ApiHttpClient { get; } - - private ISerializerService SerializerService { get; } - - private string ProjectKey { get; } - - private string ImportSinkKey { get; } - - public ByProjectKeyInventoriesImportSinkKeyByImportSinkKeyImportOperationsRequestBuilder(IClient apiHttpClient, ISerializerService serializerService, string projectKey, string importSinkKey) - { - this.ApiHttpClient = apiHttpClient; - this.SerializerService = serializerService; - this.ProjectKey = projectKey; - this.ImportSinkKey = importSinkKey; - } - - public ByProjectKeyInventoriesImportSinkKeyByImportSinkKeyImportOperationsGet Get() - { - return new ByProjectKeyInventoriesImportSinkKeyByImportSinkKeyImportOperationsGet(ApiHttpClient, ProjectKey, ImportSinkKey); - } - - - public ByProjectKeyInventoriesImportSinkKeyByImportSinkKeyImportOperationsByIdRequestBuilder WithIdValue(string id) - { - return new ByProjectKeyInventoriesImportSinkKeyByImportSinkKeyImportOperationsByIdRequestBuilder(ApiHttpClient, SerializerService, ProjectKey, ImportSinkKey, id); - } - } -} diff --git a/commercetools.Sdk/commercetools.Sdk.ImportApi/Generated/Client/RequestBuilders/Inventories/ByProjectKeyInventoriesImportSinkKeyByImportSinkKeyPost.cs b/commercetools.Sdk/commercetools.Sdk.ImportApi/Generated/Client/RequestBuilders/Inventories/ByProjectKeyInventoriesImportSinkKeyByImportSinkKeyPost.cs deleted file mode 100644 index 249148b17c1..00000000000 --- a/commercetools.Sdk/commercetools.Sdk.ImportApi/Generated/Client/RequestBuilders/Inventories/ByProjectKeyInventoriesImportSinkKeyByImportSinkKeyPost.cs +++ /dev/null @@ -1,59 +0,0 @@ -using System.Net.Http; -using System.Text; -using System.Threading.Tasks; -using commercetools.Base.Client; -using commercetools.Base.Serialization; - - -namespace commercetools.ImportApi.Client.RequestBuilders.Inventories -{ - public partial class ByProjectKeyInventoriesImportSinkKeyByImportSinkKeyPost : ApiMethod - { - - - private ISerializerService SerializerService { get; } - - private IClient ApiHttpClient { get; } - - public override HttpMethod Method => HttpMethod.Post; - - private string ProjectKey { get; } - - private string ImportSinkKey { get; } - - private commercetools.ImportApi.Models.Importrequests.IInventoryImportRequest InventoryImportRequest; - - public ByProjectKeyInventoriesImportSinkKeyByImportSinkKeyPost(IClient apiHttpClient, ISerializerService serializerService, string projectKey, string importSinkKey, commercetools.ImportApi.Models.Importrequests.IInventoryImportRequest inventoryImportRequest) - { - this.ApiHttpClient = apiHttpClient; - this.SerializerService = serializerService; - this.ProjectKey = projectKey; - this.ImportSinkKey = importSinkKey; - this.InventoryImportRequest = inventoryImportRequest; - this.RequestUrl = $"/{ProjectKey}/inventories/importSinkKey={ImportSinkKey}"; - } - - - - - public async Task ExecuteAsync() - { - var requestMessage = Build(); - return await ApiHttpClient.ExecuteAsync(requestMessage); - } - public override HttpRequestMessage Build() - { - var request = base.Build(); - if (SerializerService != null) - { - var body = this.SerializerService.Serialize(InventoryImportRequest); - if (!string.IsNullOrEmpty(body)) - { - request.Content = new StringContent(body, Encoding.UTF8, "application/json"); - } - } - return request; - } - - } -} diff --git a/commercetools.Sdk/commercetools.Sdk.ImportApi/Generated/Client/RequestBuilders/Inventories/ByProjectKeyInventoriesImportSinkKeyByImportSinkKeyRequestBuilder.cs b/commercetools.Sdk/commercetools.Sdk.ImportApi/Generated/Client/RequestBuilders/Inventories/ByProjectKeyInventoriesImportSinkKeyByImportSinkKeyRequestBuilder.cs deleted file mode 100644 index 3122138aa35..00000000000 --- a/commercetools.Sdk/commercetools.Sdk.ImportApi/Generated/Client/RequestBuilders/Inventories/ByProjectKeyInventoriesImportSinkKeyByImportSinkKeyRequestBuilder.cs +++ /dev/null @@ -1,38 +0,0 @@ -using System; -using commercetools.Base.Client; -using commercetools.Base.Serialization; - -namespace commercetools.ImportApi.Client.RequestBuilders.Inventories -{ - [Obsolete("usage of this endpoint has been deprecated.", false)] - public class ByProjectKeyInventoriesImportSinkKeyByImportSinkKeyRequestBuilder - { - - private IClient ApiHttpClient { get; } - - private ISerializerService SerializerService { get; } - - private string ProjectKey { get; } - - private string ImportSinkKey { get; } - - public ByProjectKeyInventoriesImportSinkKeyByImportSinkKeyRequestBuilder(IClient apiHttpClient, ISerializerService serializerService, string projectKey, string importSinkKey) - { - this.ApiHttpClient = apiHttpClient; - this.SerializerService = serializerService; - this.ProjectKey = projectKey; - this.ImportSinkKey = importSinkKey; - } - - public ByProjectKeyInventoriesImportSinkKeyByImportSinkKeyPost Post(commercetools.ImportApi.Models.Importrequests.IInventoryImportRequest inventoryImportRequest) - { - return new ByProjectKeyInventoriesImportSinkKeyByImportSinkKeyPost(ApiHttpClient, SerializerService, ProjectKey, ImportSinkKey, inventoryImportRequest); - } - - - public ByProjectKeyInventoriesImportSinkKeyByImportSinkKeyImportOperationsRequestBuilder ImportOperations() - { - return new ByProjectKeyInventoriesImportSinkKeyByImportSinkKeyImportOperationsRequestBuilder(ApiHttpClient, SerializerService, ProjectKey, ImportSinkKey); - } - } -} diff --git a/commercetools.Sdk/commercetools.Sdk.ImportApi/Generated/Client/RequestBuilders/Inventories/ByProjectKeyInventoriesRequestBuilder.cs b/commercetools.Sdk/commercetools.Sdk.ImportApi/Generated/Client/RequestBuilders/Inventories/ByProjectKeyInventoriesRequestBuilder.cs deleted file mode 100644 index 067c61f34b2..00000000000 --- a/commercetools.Sdk/commercetools.Sdk.ImportApi/Generated/Client/RequestBuilders/Inventories/ByProjectKeyInventoriesRequestBuilder.cs +++ /dev/null @@ -1,36 +0,0 @@ -using System; -using commercetools.Base.Client; -using commercetools.Base.Serialization; - -namespace commercetools.ImportApi.Client.RequestBuilders.Inventories -{ - - public class ByProjectKeyInventoriesRequestBuilder - { - - private IClient ApiHttpClient { get; } - - private ISerializerService SerializerService { get; } - - private string ProjectKey { get; } - - public ByProjectKeyInventoriesRequestBuilder(IClient apiHttpClient, ISerializerService serializerService, string projectKey) - { - this.ApiHttpClient = apiHttpClient; - this.SerializerService = serializerService; - this.ProjectKey = projectKey; - } - - - - public ByProjectKeyInventoriesImportContainersRequestBuilder ImportContainers() - { - return new ByProjectKeyInventoriesImportContainersRequestBuilder(ApiHttpClient, SerializerService, ProjectKey); - } - [Obsolete("usage of this endpoint has been deprecated.", false)] - public ByProjectKeyInventoriesImportSinkKeyByImportSinkKeyRequestBuilder ImportSinkKeyWithImportSinkKeyValue(string importSinkKey) - { - return new ByProjectKeyInventoriesImportSinkKeyByImportSinkKeyRequestBuilder(ApiHttpClient, SerializerService, ProjectKey, importSinkKey); - } - } -} diff --git a/commercetools.Sdk/commercetools.Sdk.ImportApi/Generated/Client/RequestBuilders/Projects/ByProjectKeyRequestBuilder.cs b/commercetools.Sdk/commercetools.Sdk.ImportApi/Generated/Client/RequestBuilders/Projects/ByProjectKeyRequestBuilder.cs index b2b8c29c31c..d7ad24a176e 100644 --- a/commercetools.Sdk/commercetools.Sdk.ImportApi/Generated/Client/RequestBuilders/Projects/ByProjectKeyRequestBuilder.cs +++ b/commercetools.Sdk/commercetools.Sdk.ImportApi/Generated/Client/RequestBuilders/Projects/ByProjectKeyRequestBuilder.cs @@ -15,7 +15,6 @@ using commercetools.ImportApi.Client.RequestBuilders.Orders; using commercetools.ImportApi.Client.RequestBuilders.OrderPatches; using commercetools.ImportApi.Client.RequestBuilders.Customers; -using commercetools.ImportApi.Client.RequestBuilders.Inventories; namespace commercetools.ImportApi.Client.RequestBuilders.Projects { @@ -107,10 +106,5 @@ public ByProjectKeyCustomersRequestBuilder Customers() { return new ByProjectKeyCustomersRequestBuilder(ApiHttpClient, SerializerService, ProjectKey); } - - public ByProjectKeyInventoriesRequestBuilder Inventories() - { - return new ByProjectKeyInventoriesRequestBuilder(ApiHttpClient, SerializerService, ProjectKey); - } } } diff --git a/commercetools.Sdk/commercetools.Sdk.ImportApi/Generated/Models/Common/ImportResourceType.cs b/commercetools.Sdk/commercetools.Sdk.ImportApi/Generated/Models/Common/ImportResourceType.cs index 52197fe782e..444f04e5115 100644 --- a/commercetools.Sdk/commercetools.Sdk.ImportApi/Generated/Models/Common/ImportResourceType.cs +++ b/commercetools.Sdk/commercetools.Sdk.ImportApi/Generated/Models/Common/ImportResourceType.cs @@ -34,10 +34,7 @@ public enum ImportResourceType ProductVariantPatch, [Description("customer")] - Customer, - - [Description("inventory")] - Inventory + Customer } public class ImportResourceTypeWrapper : IImportResourceType @@ -83,9 +80,6 @@ public interface IImportResourceType : IJsonName public static IImportResourceType Customer = new ImportResourceTypeWrapper { Value = ImportResourceType.Customer, JsonName = "customer" }; - public static IImportResourceType Inventory = new ImportResourceTypeWrapper - { Value = ImportResourceType.Inventory, JsonName = "inventory" }; - ImportResourceType? Value { get; } static IImportResourceType[] Values() @@ -101,8 +95,7 @@ static IImportResourceType[] Values() ProductType , ProductVariant , ProductVariantPatch , - Customer , - Inventory + Customer }; } static IImportResourceType FindEnum(string value) diff --git a/commercetools.Sdk/commercetools.Sdk.ImportApi/Generated/Models/Importrequests/IImportRequest.cs b/commercetools.Sdk/commercetools.Sdk.ImportApi/Generated/Models/Importrequests/IImportRequest.cs index cf2451728c8..adbc3a9fafd 100644 --- a/commercetools.Sdk/commercetools.Sdk.ImportApi/Generated/Models/Importrequests/IImportRequest.cs +++ b/commercetools.Sdk/commercetools.Sdk.ImportApi/Generated/Models/Importrequests/IImportRequest.cs @@ -8,7 +8,6 @@ namespace commercetools.ImportApi.Models.Importrequests [DefaultTypeDiscriminator(typeof(commercetools.ImportApi.Models.Importrequests.ImportRequest))] [SubTypeDiscriminator("category", typeof(commercetools.ImportApi.Models.Importrequests.CategoryImportRequest))] [SubTypeDiscriminator("customer", typeof(commercetools.ImportApi.Models.Importrequests.CustomerImportRequest))] - [SubTypeDiscriminator("inventory", typeof(commercetools.ImportApi.Models.Importrequests.InventoryImportRequest))] [SubTypeDiscriminator("order", typeof(commercetools.ImportApi.Models.Importrequests.OrderImportRequest))] [SubTypeDiscriminator("order-patch", typeof(commercetools.ImportApi.Models.Importrequests.OrderPatchImportRequest))] [SubTypeDiscriminator("price", typeof(commercetools.ImportApi.Models.Importrequests.PriceImportRequest))] diff --git a/commercetools.Sdk/commercetools.Sdk.ImportApi/Generated/Models/Importrequests/IInventoryImportRequest.cs b/commercetools.Sdk/commercetools.Sdk.ImportApi/Generated/Models/Importrequests/IInventoryImportRequest.cs deleted file mode 100644 index 410b894462d..00000000000 --- a/commercetools.Sdk/commercetools.Sdk.ImportApi/Generated/Models/Importrequests/IInventoryImportRequest.cs +++ /dev/null @@ -1,13 +0,0 @@ -using commercetools.ImportApi.Models.Inventories; -using System.Collections.Generic; -using commercetools.Base.CustomAttributes; - - -namespace commercetools.ImportApi.Models.Importrequests -{ - [DeserializeAs(typeof(commercetools.ImportApi.Models.Importrequests.InventoryImportRequest))] - public partial interface IInventoryImportRequest : IImportRequest - { - List Resources { get; set; } - } -} diff --git a/commercetools.Sdk/commercetools.Sdk.ImportApi/Generated/Models/Importrequests/InventoryImportRequest.cs b/commercetools.Sdk/commercetools.Sdk.ImportApi/Generated/Models/Importrequests/InventoryImportRequest.cs deleted file mode 100644 index d696f5d0567..00000000000 --- a/commercetools.Sdk/commercetools.Sdk.ImportApi/Generated/Models/Importrequests/InventoryImportRequest.cs +++ /dev/null @@ -1,18 +0,0 @@ -using commercetools.ImportApi.Models.Common; -using commercetools.ImportApi.Models.Inventories; -using System.Collections.Generic; - - -namespace commercetools.ImportApi.Models.Importrequests -{ - public partial class InventoryImportRequest : IInventoryImportRequest - { - public IImportResourceType Type { get; set; } - - public List Resources { get; set; } - public InventoryImportRequest() - { - this.Type = IImportResourceType.FindEnum("inventory"); - } - } -} diff --git a/commercetools.Sdk/commercetools.Sdk.ImportApi/Generated/Models/Inventories/IInventoryImport.cs b/commercetools.Sdk/commercetools.Sdk.ImportApi/Generated/Models/Inventories/IInventoryImport.cs deleted file mode 100644 index 21b0fe79072..00000000000 --- a/commercetools.Sdk/commercetools.Sdk.ImportApi/Generated/Models/Inventories/IInventoryImport.cs +++ /dev/null @@ -1,24 +0,0 @@ -using commercetools.ImportApi.Models.Common; -using commercetools.ImportApi.Models.Customfields; -using System; -using commercetools.Base.CustomAttributes; - - -namespace commercetools.ImportApi.Models.Inventories -{ - [DeserializeAs(typeof(commercetools.ImportApi.Models.Inventories.InventoryImport))] - public partial interface IInventoryImport : IImportResource - { - string Sku { get; set; } - - double QuantityOnStock { get; set; } - - double? RestockableInDays { get; set; } - - DateTime? ExpectedDelivery { get; set; } - - IChannelKeyReference SupplyChannel { get; set; } - - ICustom Custom { get; set; } - } -} diff --git a/commercetools.Sdk/commercetools.Sdk.ImportApi/Generated/Models/Inventories/InventoryImport.cs b/commercetools.Sdk/commercetools.Sdk.ImportApi/Generated/Models/Inventories/InventoryImport.cs deleted file mode 100644 index a5884ca0794..00000000000 --- a/commercetools.Sdk/commercetools.Sdk.ImportApi/Generated/Models/Inventories/InventoryImport.cs +++ /dev/null @@ -1,24 +0,0 @@ -using commercetools.ImportApi.Models.Common; -using commercetools.ImportApi.Models.Customfields; -using System; - - -namespace commercetools.ImportApi.Models.Inventories -{ - public partial class InventoryImport : IInventoryImport - { - public string Key { get; set; } - - public string Sku { get; set; } - - public double QuantityOnStock { get; set; } - - public double? RestockableInDays { get; set; } - - public DateTime? ExpectedDelivery { get; set; } - - public IChannelKeyReference SupplyChannel { get; set; } - - public ICustom Custom { get; set; } - } -}