diff --git a/changes.md b/changes.md index 90ecd78bc24..10b971493ef 100644 --- a/changes.md +++ b/changes.md @@ -1,42 +1,9 @@ **Api changes**
-Changed Property(s) +Added QueryParameter(s) -- :warning: changed property `stores` of type `BusinessUnitDraft` from type `StoreKeyReference[]` to `StoreResourceIdentifier[]` -- :warning: changed property `stores` of type `CompanyDraft` from type `StoreKeyReference[]` to `StoreResourceIdentifier[]` -- :warning: changed property `stores` of type `DivisionDraft` from type `StoreKeyReference[]` to `StoreResourceIdentifier[]` -
- - -
-Added Property(s) - -- added property `oldValue` to type `StandalonePriceValueChangedMessage` -- added property `oldValue` to type `StandalonePriceValueChangedMessagePayload` -- added property `purchaseOrderNumber` to type `StagedOrder` -- added property `purchaseOrderNumber` to type `Order` -- added property `purchaseOrderNumber` to type `OrderFromCartDraft` -- added property `purchaseOrderNumber` to type `QuoteRequest` -- added property `purchaseOrderNumber` to type `QuoteRequestDraft` -- added property `purchaseOrderNumber` to type `Quote` -- added property `purchaseOrderNumber` to type `StagedQuote` -
- - -
-Deprecated Type(s) - -- type `IronMqDestination` is removed -
- - -
-Added Type(s) - -- added type `OrderPurchaseOrderNumberSetMessage` -- added type `OrderPurchaseOrderNumberSetMessagePayload` -- added type `StagedOrderSetPurchaseOrderNumberAction` -- added type `OrderSetPurchaseOrderNumberAction` +- added query parameter `sort` to method `get /{projectKey}/product-selections/key={key}/products` +- added query parameter `sort` to method `get /{projectKey}/product-selections/{ID}/products`
diff --git a/commercetools.Sdk/Tests/commercetools.Sdk.Api.Tests/Generated/Client/RequestBuilders/ProductSelections/ByProjectKeyProductSelectionsByIDProductsTest.cs b/commercetools.Sdk/Tests/commercetools.Sdk.Api.Tests/Generated/Client/RequestBuilders/ProductSelections/ByProjectKeyProductSelectionsByIDProductsTest.cs index 0101075e610..c99d75bfb6b 100644 --- a/commercetools.Sdk/Tests/commercetools.Sdk.Api.Tests/Generated/Client/RequestBuilders/ProductSelections/ByProjectKeyProductSelectionsByIDProductsTest.cs +++ b/commercetools.Sdk/Tests/commercetools.Sdk.Api.Tests/Generated/Client/RequestBuilders/ProductSelections/ByProjectKeyProductSelectionsByIDProductsTest.cs @@ -66,6 +66,18 @@ public static IEnumerable GetData() "Get", "/test_projectKey/product-selections/test_ID/products?withTotal=true", }, + new Object[] { + ApiRoot + .WithProjectKey("test_projectKey") + .ProductSelections() + .WithId("test_ID") + .Products() + .Get() + .WithSort("sort") + .Build(), + "Get", + "/test_projectKey/product-selections/test_ID/products?sort=sort", + }, new Object[] { ApiRoot .WithProjectKey("test_projectKey") diff --git a/commercetools.Sdk/Tests/commercetools.Sdk.Api.Tests/Generated/Client/RequestBuilders/ProductSelections/ByProjectKeyProductSelectionsKeyByKeyProductsTest.cs b/commercetools.Sdk/Tests/commercetools.Sdk.Api.Tests/Generated/Client/RequestBuilders/ProductSelections/ByProjectKeyProductSelectionsKeyByKeyProductsTest.cs index 576e097afae..df76eff3701 100644 --- a/commercetools.Sdk/Tests/commercetools.Sdk.Api.Tests/Generated/Client/RequestBuilders/ProductSelections/ByProjectKeyProductSelectionsKeyByKeyProductsTest.cs +++ b/commercetools.Sdk/Tests/commercetools.Sdk.Api.Tests/Generated/Client/RequestBuilders/ProductSelections/ByProjectKeyProductSelectionsKeyByKeyProductsTest.cs @@ -66,6 +66,18 @@ public static IEnumerable GetData() "Get", "/test_projectKey/product-selections/key=test_key/products?withTotal=true", }, + new Object[] { + ApiRoot + .WithProjectKey("test_projectKey") + .ProductSelections() + .WithKey("test_key") + .Products() + .Get() + .WithSort("sort") + .Build(), + "Get", + "/test_projectKey/product-selections/key=test_key/products?sort=sort", + }, new Object[] { ApiRoot .WithProjectKey("test_projectKey") diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Client/ProjectApiRoot.cs b/commercetools.Sdk/commercetools.Sdk.Api/Client/ProjectApiRoot.cs index 97756f80079..41706354096 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Client/ProjectApiRoot.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Client/ProjectApiRoot.cs @@ -163,12 +163,12 @@ public ByProjectKeyProductTypesRequestBuilder ProductTypes() { return With().ProductTypes(); } - + public ByProjectKeyQuotesRequestBuilder Quotes() { return With().Quotes(); } - + public ByProjectKeyQuoteRequestsRequestBuilder QuoteRequests() { return With().QuoteRequests(); @@ -188,7 +188,7 @@ public ByProjectKeyShoppingListsRequestBuilder ShoppingLists() { return With().ShoppingLists(); } - + public ByProjectKeyStagedQuotesRequestBuilder StagedQuotesRequests() { return With().StagedQuotes(); diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/ProductSelections/ByProjectKeyProductSelectionsByIDProductsGet.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/ProductSelections/ByProjectKeyProductSelectionsByIDProductsGet.cs index fd7a2c15342..969f001a95c 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/ProductSelections/ByProjectKeyProductSelectionsByIDProductsGet.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/ProductSelections/ByProjectKeyProductSelectionsByIDProductsGet.cs @@ -8,7 +8,7 @@ namespace commercetools.Sdk.Api.Client.RequestBuilders.ProductSelections { - public partial class ByProjectKeyProductSelectionsByIDProductsGet : ApiMethod, IApiMethod, commercetools.Sdk.Api.Client.IExpandableTrait, commercetools.Sdk.Api.Client.IPagingTrait, commercetools.Sdk.Api.Client.IErrorableTrait, commercetools.Sdk.Api.Client.IDeprecatable200Trait + public partial class ByProjectKeyProductSelectionsByIDProductsGet : ApiMethod, IApiMethod, commercetools.Sdk.Api.Client.IExpandableTrait, commercetools.Sdk.Api.Client.IPagingTrait, commercetools.Sdk.Api.Client.ISortableTrait, commercetools.Sdk.Api.Client.IErrorableTrait, commercetools.Sdk.Api.Client.IDeprecatable200Trait { @@ -49,6 +49,11 @@ public List GetWithTotal() return this.GetQueryParam("withTotal"); } + public List GetSort() + { + return this.GetQueryParam("sort"); + } + public ByProjectKeyProductSelectionsByIDProductsGet WithExpand(string expand) { return this.AddQueryParam("expand", expand); @@ -69,6 +74,11 @@ public ByProjectKeyProductSelectionsByIDProductsGet WithWithTotal(bool withTotal return this.AddQueryParam("withTotal", withTotal.ToString()); } + public ByProjectKeyProductSelectionsByIDProductsGet WithSort(string sort) + { + return this.AddQueryParam("sort", sort); + } + public async Task ExecuteAsync(CancellationToken cancellationToken = default) { diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/ProductSelections/ByProjectKeyProductSelectionsKeyByKeyProductsGet.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/ProductSelections/ByProjectKeyProductSelectionsKeyByKeyProductsGet.cs index c7d22f97ce8..ad607d7618a 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/ProductSelections/ByProjectKeyProductSelectionsKeyByKeyProductsGet.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/ProductSelections/ByProjectKeyProductSelectionsKeyByKeyProductsGet.cs @@ -8,7 +8,7 @@ namespace commercetools.Sdk.Api.Client.RequestBuilders.ProductSelections { - public partial class ByProjectKeyProductSelectionsKeyByKeyProductsGet : ApiMethod, IApiMethod, commercetools.Sdk.Api.Client.IExpandableTrait, commercetools.Sdk.Api.Client.IPagingTrait, commercetools.Sdk.Api.Client.IErrorableTrait, commercetools.Sdk.Api.Client.IDeprecatable200Trait + public partial class ByProjectKeyProductSelectionsKeyByKeyProductsGet : ApiMethod, IApiMethod, commercetools.Sdk.Api.Client.IExpandableTrait, commercetools.Sdk.Api.Client.IPagingTrait, commercetools.Sdk.Api.Client.ISortableTrait, commercetools.Sdk.Api.Client.IErrorableTrait, commercetools.Sdk.Api.Client.IDeprecatable200Trait { @@ -49,6 +49,11 @@ public List GetWithTotal() return this.GetQueryParam("withTotal"); } + public List GetSort() + { + return this.GetQueryParam("sort"); + } + public ByProjectKeyProductSelectionsKeyByKeyProductsGet WithExpand(string expand) { return this.AddQueryParam("expand", expand); @@ -69,6 +74,11 @@ public ByProjectKeyProductSelectionsKeyByKeyProductsGet WithWithTotal(bool withT return this.AddQueryParam("withTotal", withTotal.ToString()); } + public ByProjectKeyProductSelectionsKeyByKeyProductsGet WithSort(string sort) + { + return this.AddQueryParam("sort", sort); + } + public async Task ExecuteAsync(CancellationToken cancellationToken = default) { diff --git a/reference.txt b/reference.txt new file mode 100644 index 00000000000..8741fa42c4f --- /dev/null +++ b/reference.txt @@ -0,0 +1 @@ +d9461f28bd5dd57eb650e27eff053ed4b5a82964