Skip to content

Commit

Permalink
Update generated SDKs (#210)
Browse files Browse the repository at this point in the history
Co-authored-by: Auto Mation <[email protected]>
  • Loading branch information
github-actions[bot] and Auto Mation authored Feb 17, 2023
1 parent 6685295 commit 0e8b11b
Show file tree
Hide file tree
Showing 7 changed files with 53 additions and 41 deletions.
39 changes: 3 additions & 36 deletions changes.md
Original file line number Diff line number Diff line change
@@ -1,42 +1,9 @@
**Api changes**

<details>
<summary>Changed Property(s)</summary>
<summary>Added QueryParameter(s)</summary>

- :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[]`
</details>


<details>
<summary>Added Property(s)</summary>

- 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`
</details>


<details>
<summary>Deprecated Type(s)</summary>

- type `IronMqDestination` is removed
</details>


<details>
<summary>Added Type(s)</summary>

- 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`
</details>

Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,18 @@ public static IEnumerable<object[]> 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")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,18 @@ public static IEnumerable<object[]> 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")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -163,12 +163,12 @@ public ByProjectKeyProductTypesRequestBuilder ProductTypes()
{
return With().ProductTypes();
}

public ByProjectKeyQuotesRequestBuilder Quotes()
{
return With().Quotes();
}

public ByProjectKeyQuoteRequestsRequestBuilder QuoteRequests()
{
return With().QuoteRequests();
Expand All @@ -188,7 +188,7 @@ public ByProjectKeyShoppingListsRequestBuilder ShoppingLists()
{
return With().ShoppingLists();
}

public ByProjectKeyStagedQuotesRequestBuilder StagedQuotesRequests()
{
return With().StagedQuotes();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
namespace commercetools.Sdk.Api.Client.RequestBuilders.ProductSelections
{

public partial class ByProjectKeyProductSelectionsByIDProductsGet : ApiMethod<ByProjectKeyProductSelectionsByIDProductsGet>, IApiMethod<ByProjectKeyProductSelectionsByIDProductsGet, commercetools.Sdk.Api.Models.ProductSelections.IProductSelectionProductPagedQueryResponse>, commercetools.Sdk.Api.Client.IExpandableTrait<ByProjectKeyProductSelectionsByIDProductsGet>, commercetools.Sdk.Api.Client.IPagingTrait<ByProjectKeyProductSelectionsByIDProductsGet>, commercetools.Sdk.Api.Client.IErrorableTrait<ByProjectKeyProductSelectionsByIDProductsGet>, commercetools.Sdk.Api.Client.IDeprecatable200Trait<ByProjectKeyProductSelectionsByIDProductsGet>
public partial class ByProjectKeyProductSelectionsByIDProductsGet : ApiMethod<ByProjectKeyProductSelectionsByIDProductsGet>, IApiMethod<ByProjectKeyProductSelectionsByIDProductsGet, commercetools.Sdk.Api.Models.ProductSelections.IProductSelectionProductPagedQueryResponse>, commercetools.Sdk.Api.Client.IExpandableTrait<ByProjectKeyProductSelectionsByIDProductsGet>, commercetools.Sdk.Api.Client.IPagingTrait<ByProjectKeyProductSelectionsByIDProductsGet>, commercetools.Sdk.Api.Client.ISortableTrait<ByProjectKeyProductSelectionsByIDProductsGet>, commercetools.Sdk.Api.Client.IErrorableTrait<ByProjectKeyProductSelectionsByIDProductsGet>, commercetools.Sdk.Api.Client.IDeprecatable200Trait<ByProjectKeyProductSelectionsByIDProductsGet>
{


Expand Down Expand Up @@ -49,6 +49,11 @@ public List<string> GetWithTotal()
return this.GetQueryParam("withTotal");
}

public List<string> GetSort()
{
return this.GetQueryParam("sort");
}

public ByProjectKeyProductSelectionsByIDProductsGet WithExpand(string expand)
{
return this.AddQueryParam("expand", expand);
Expand All @@ -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<commercetools.Sdk.Api.Models.ProductSelections.IProductSelectionProductPagedQueryResponse> ExecuteAsync(CancellationToken cancellationToken = default)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
namespace commercetools.Sdk.Api.Client.RequestBuilders.ProductSelections
{

public partial class ByProjectKeyProductSelectionsKeyByKeyProductsGet : ApiMethod<ByProjectKeyProductSelectionsKeyByKeyProductsGet>, IApiMethod<ByProjectKeyProductSelectionsKeyByKeyProductsGet, commercetools.Sdk.Api.Models.ProductSelections.IProductSelectionProductPagedQueryResponse>, commercetools.Sdk.Api.Client.IExpandableTrait<ByProjectKeyProductSelectionsKeyByKeyProductsGet>, commercetools.Sdk.Api.Client.IPagingTrait<ByProjectKeyProductSelectionsKeyByKeyProductsGet>, commercetools.Sdk.Api.Client.IErrorableTrait<ByProjectKeyProductSelectionsKeyByKeyProductsGet>, commercetools.Sdk.Api.Client.IDeprecatable200Trait<ByProjectKeyProductSelectionsKeyByKeyProductsGet>
public partial class ByProjectKeyProductSelectionsKeyByKeyProductsGet : ApiMethod<ByProjectKeyProductSelectionsKeyByKeyProductsGet>, IApiMethod<ByProjectKeyProductSelectionsKeyByKeyProductsGet, commercetools.Sdk.Api.Models.ProductSelections.IProductSelectionProductPagedQueryResponse>, commercetools.Sdk.Api.Client.IExpandableTrait<ByProjectKeyProductSelectionsKeyByKeyProductsGet>, commercetools.Sdk.Api.Client.IPagingTrait<ByProjectKeyProductSelectionsKeyByKeyProductsGet>, commercetools.Sdk.Api.Client.ISortableTrait<ByProjectKeyProductSelectionsKeyByKeyProductsGet>, commercetools.Sdk.Api.Client.IErrorableTrait<ByProjectKeyProductSelectionsKeyByKeyProductsGet>, commercetools.Sdk.Api.Client.IDeprecatable200Trait<ByProjectKeyProductSelectionsKeyByKeyProductsGet>
{


Expand Down Expand Up @@ -49,6 +49,11 @@ public List<string> GetWithTotal()
return this.GetQueryParam("withTotal");
}

public List<string> GetSort()
{
return this.GetQueryParam("sort");
}

public ByProjectKeyProductSelectionsKeyByKeyProductsGet WithExpand(string expand)
{
return this.AddQueryParam("expand", expand);
Expand All @@ -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<commercetools.Sdk.Api.Models.ProductSelections.IProductSelectionProductPagedQueryResponse> ExecuteAsync(CancellationToken cancellationToken = default)
{
Expand Down
1 change: 1 addition & 0 deletions reference.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
d9461f28bd5dd57eb650e27eff053ed4b5a82964

0 comments on commit 0e8b11b

Please sign in to comment.