Skip to content

Commit 4fcaafe

Browse files
committed
build(codegen): updating SDK
1 parent 191e959 commit 4fcaafe

11 files changed

+94
-93
lines changed

commercetools.Sdk/Tests/commercetools.Sdk.Api.Tests/Generated/Client/RequestBuilders/ProductSelections/ByProjectKeyProductSelectionsByIDProductsTest.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@ public static IEnumerable<object[]> GetData()
3838
.WithId("test_ID")
3939
.Products()
4040
.Get()
41-
.WithExpand("expand")
41+
.WithWithTotal(true)
4242
.Build(),
4343
"Get",
44-
"/test_projectKey/product-selections/test_ID/products?expand=expand",
44+
"/test_projectKey/product-selections/test_ID/products?withTotal=true",
4545
},
4646
new Object[] {
4747
ApiRoot
@@ -50,10 +50,10 @@ public static IEnumerable<object[]> GetData()
5050
.WithId("test_ID")
5151
.Products()
5252
.Get()
53-
.WithLimit(7)
53+
.WithExpand("expand")
5454
.Build(),
5555
"Get",
56-
"/test_projectKey/product-selections/test_ID/products?limit=7",
56+
"/test_projectKey/product-selections/test_ID/products?expand=expand",
5757
},
5858
new Object[] {
5959
ApiRoot
@@ -62,10 +62,10 @@ public static IEnumerable<object[]> GetData()
6262
.WithId("test_ID")
6363
.Products()
6464
.Get()
65-
.WithOffset(3)
65+
.WithLimit(7)
6666
.Build(),
6767
"Get",
68-
"/test_projectKey/product-selections/test_ID/products?offset=3",
68+
"/test_projectKey/product-selections/test_ID/products?limit=7",
6969
},
7070
new Object[] {
7171
ApiRoot
@@ -74,10 +74,10 @@ public static IEnumerable<object[]> GetData()
7474
.WithId("test_ID")
7575
.Products()
7676
.Get()
77-
.WithWithTotal(true)
77+
.WithOffset(3)
7878
.Build(),
7979
"Get",
80-
"/test_projectKey/product-selections/test_ID/products?withTotal=true",
80+
"/test_projectKey/product-selections/test_ID/products?offset=3",
8181
},
8282
new Object[] {
8383
ApiRoot

commercetools.Sdk/Tests/commercetools.Sdk.Api.Tests/Generated/Client/RequestBuilders/ProductSelections/ByProjectKeyProductSelectionsKeyByKeyProductsTest.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@ public static IEnumerable<object[]> GetData()
3838
.WithKey("test_key")
3939
.Products()
4040
.Get()
41-
.WithExpand("expand")
41+
.WithWithTotal(true)
4242
.Build(),
4343
"Get",
44-
"/test_projectKey/product-selections/key=test_key/products?expand=expand",
44+
"/test_projectKey/product-selections/key=test_key/products?withTotal=true",
4545
},
4646
new Object[] {
4747
ApiRoot
@@ -50,10 +50,10 @@ public static IEnumerable<object[]> GetData()
5050
.WithKey("test_key")
5151
.Products()
5252
.Get()
53-
.WithLimit(7)
53+
.WithExpand("expand")
5454
.Build(),
5555
"Get",
56-
"/test_projectKey/product-selections/key=test_key/products?limit=7",
56+
"/test_projectKey/product-selections/key=test_key/products?expand=expand",
5757
},
5858
new Object[] {
5959
ApiRoot
@@ -62,10 +62,10 @@ public static IEnumerable<object[]> GetData()
6262
.WithKey("test_key")
6363
.Products()
6464
.Get()
65-
.WithOffset(3)
65+
.WithLimit(7)
6666
.Build(),
6767
"Get",
68-
"/test_projectKey/product-selections/key=test_key/products?offset=3",
68+
"/test_projectKey/product-selections/key=test_key/products?limit=7",
6969
},
7070
new Object[] {
7171
ApiRoot
@@ -74,10 +74,10 @@ public static IEnumerable<object[]> GetData()
7474
.WithKey("test_key")
7575
.Products()
7676
.Get()
77-
.WithWithTotal(true)
77+
.WithOffset(3)
7878
.Build(),
7979
"Get",
80-
"/test_projectKey/product-selections/key=test_key/products?withTotal=true",
80+
"/test_projectKey/product-selections/key=test_key/products?offset=3",
8181
},
8282
new Object[] {
8383
ApiRoot

commercetools.Sdk/Tests/commercetools.Sdk.Api.Tests/Generated/Client/RequestBuilders/ProductTailoring/ByProjectKeyProductTailoringTest.cs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -24,50 +24,50 @@ public static IEnumerable<object[]> GetData()
2424
.WithProjectKey("test_projectKey")
2525
.ProductTailoring()
2626
.Get()
27-
.WithExpand("expand")
27+
.WithWithTotal(true)
2828
.Build(),
2929
"Get",
30-
"/test_projectKey/product-tailoring?expand=expand",
30+
"/test_projectKey/product-tailoring?withTotal=true",
3131
},
3232
new Object[] {
3333
ApiRoot
3434
.WithProjectKey("test_projectKey")
3535
.ProductTailoring()
3636
.Get()
37-
.WithSort("sort")
37+
.WithExpand("expand")
3838
.Build(),
3939
"Get",
40-
"/test_projectKey/product-tailoring?sort=sort",
40+
"/test_projectKey/product-tailoring?expand=expand",
4141
},
4242
new Object[] {
4343
ApiRoot
4444
.WithProjectKey("test_projectKey")
4545
.ProductTailoring()
4646
.Get()
47-
.WithLimit(7)
47+
.WithSort("sort")
4848
.Build(),
4949
"Get",
50-
"/test_projectKey/product-tailoring?limit=7",
50+
"/test_projectKey/product-tailoring?sort=sort",
5151
},
5252
new Object[] {
5353
ApiRoot
5454
.WithProjectKey("test_projectKey")
5555
.ProductTailoring()
5656
.Get()
57-
.WithOffset(3)
57+
.WithLimit(7)
5858
.Build(),
5959
"Get",
60-
"/test_projectKey/product-tailoring?offset=3",
60+
"/test_projectKey/product-tailoring?limit=7",
6161
},
6262
new Object[] {
6363
ApiRoot
6464
.WithProjectKey("test_projectKey")
6565
.ProductTailoring()
6666
.Get()
67-
.WithWithTotal(true)
67+
.WithOffset(3)
6868
.Build(),
6969
"Get",
70-
"/test_projectKey/product-tailoring?withTotal=true",
70+
"/test_projectKey/product-tailoring?offset=3",
7171
},
7272
new Object[] {
7373
ApiRoot

commercetools.Sdk/Tests/commercetools.Sdk.Api.Tests/Generated/Client/RequestBuilders/Products/ByProjectKeyProductsByIDProductSelectionsTest.cs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ public static IEnumerable<object[]> GetData()
2626
.WithId("test_ID")
2727
.ProductSelections()
2828
.Get()
29-
.WithExpand("expand")
29+
.WithWithTotal(true)
3030
.Build(),
3131
"Get",
32-
"/test_projectKey/products/test_ID/product-selections?expand=expand",
32+
"/test_projectKey/products/test_ID/product-selections?withTotal=true",
3333
},
3434
new Object[] {
3535
ApiRoot
@@ -38,10 +38,10 @@ public static IEnumerable<object[]> GetData()
3838
.WithId("test_ID")
3939
.ProductSelections()
4040
.Get()
41-
.WithSort("sort")
41+
.WithExpand("expand")
4242
.Build(),
4343
"Get",
44-
"/test_projectKey/products/test_ID/product-selections?sort=sort",
44+
"/test_projectKey/products/test_ID/product-selections?expand=expand",
4545
},
4646
new Object[] {
4747
ApiRoot
@@ -50,10 +50,10 @@ public static IEnumerable<object[]> GetData()
5050
.WithId("test_ID")
5151
.ProductSelections()
5252
.Get()
53-
.WithLimit(7)
53+
.WithSort("sort")
5454
.Build(),
5555
"Get",
56-
"/test_projectKey/products/test_ID/product-selections?limit=7",
56+
"/test_projectKey/products/test_ID/product-selections?sort=sort",
5757
},
5858
new Object[] {
5959
ApiRoot
@@ -62,10 +62,10 @@ public static IEnumerable<object[]> GetData()
6262
.WithId("test_ID")
6363
.ProductSelections()
6464
.Get()
65-
.WithOffset(3)
65+
.WithLimit(7)
6666
.Build(),
6767
"Get",
68-
"/test_projectKey/products/test_ID/product-selections?offset=3",
68+
"/test_projectKey/products/test_ID/product-selections?limit=7",
6969
},
7070
new Object[] {
7171
ApiRoot
@@ -74,10 +74,10 @@ public static IEnumerable<object[]> GetData()
7474
.WithId("test_ID")
7575
.ProductSelections()
7676
.Get()
77-
.WithWithTotal(true)
77+
.WithOffset(3)
7878
.Build(),
7979
"Get",
80-
"/test_projectKey/products/test_ID/product-selections?withTotal=true",
80+
"/test_projectKey/products/test_ID/product-selections?offset=3",
8181
},
8282
new Object[] {
8383
ApiRoot

commercetools.Sdk/Tests/commercetools.Sdk.Api.Tests/Generated/Client/RequestBuilders/Products/ByProjectKeyProductsKeyByKeyProductSelectionsTest.cs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ public static IEnumerable<object[]> GetData()
2626
.WithKey("test_key")
2727
.ProductSelections()
2828
.Get()
29-
.WithExpand("expand")
29+
.WithWithTotal(true)
3030
.Build(),
3131
"Get",
32-
"/test_projectKey/products/key=test_key/product-selections?expand=expand",
32+
"/test_projectKey/products/key=test_key/product-selections?withTotal=true",
3333
},
3434
new Object[] {
3535
ApiRoot
@@ -38,10 +38,10 @@ public static IEnumerable<object[]> GetData()
3838
.WithKey("test_key")
3939
.ProductSelections()
4040
.Get()
41-
.WithSort("sort")
41+
.WithExpand("expand")
4242
.Build(),
4343
"Get",
44-
"/test_projectKey/products/key=test_key/product-selections?sort=sort",
44+
"/test_projectKey/products/key=test_key/product-selections?expand=expand",
4545
},
4646
new Object[] {
4747
ApiRoot
@@ -50,10 +50,10 @@ public static IEnumerable<object[]> GetData()
5050
.WithKey("test_key")
5151
.ProductSelections()
5252
.Get()
53-
.WithLimit(7)
53+
.WithSort("sort")
5454
.Build(),
5555
"Get",
56-
"/test_projectKey/products/key=test_key/product-selections?limit=7",
56+
"/test_projectKey/products/key=test_key/product-selections?sort=sort",
5757
},
5858
new Object[] {
5959
ApiRoot
@@ -62,10 +62,10 @@ public static IEnumerable<object[]> GetData()
6262
.WithKey("test_key")
6363
.ProductSelections()
6464
.Get()
65-
.WithOffset(3)
65+
.WithLimit(7)
6666
.Build(),
6767
"Get",
68-
"/test_projectKey/products/key=test_key/product-selections?offset=3",
68+
"/test_projectKey/products/key=test_key/product-selections?limit=7",
6969
},
7070
new Object[] {
7171
ApiRoot
@@ -74,10 +74,10 @@ public static IEnumerable<object[]> GetData()
7474
.WithKey("test_key")
7575
.ProductSelections()
7676
.Get()
77-
.WithWithTotal(true)
77+
.WithOffset(3)
7878
.Build(),
7979
"Get",
80-
"/test_projectKey/products/key=test_key/product-selections?withTotal=true",
80+
"/test_projectKey/products/key=test_key/product-selections?offset=3",
8181
},
8282
new Object[] {
8383
ApiRoot

commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/ProductSelections/ByProjectKeyProductSelectionsByIDProductsGet.cs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,11 @@ public List<string> GetWhere()
3636
return this.GetQueryParam("where");
3737
}
3838

39+
public List<string> GetWithTotal()
40+
{
41+
return this.GetQueryParam("withTotal");
42+
}
43+
3944
public List<string> GetExpand()
4045
{
4146
return this.GetQueryParam("expand");
@@ -51,11 +56,6 @@ public List<string> GetOffset()
5156
return this.GetQueryParam("offset");
5257
}
5358

54-
public List<string> GetWithTotal()
55-
{
56-
return this.GetQueryParam("withTotal");
57-
}
58-
5959
public List<string> GetSort()
6060
{
6161
return this.GetQueryParam("sort");
@@ -66,6 +66,11 @@ public ByProjectKeyProductSelectionsByIDProductsGet WithWhere(string where)
6666
return this.AddQueryParam("where", where);
6767
}
6868

69+
public ByProjectKeyProductSelectionsByIDProductsGet WithWithTotal(bool withTotal)
70+
{
71+
return this.AddQueryParam("withTotal", withTotal.ToString());
72+
}
73+
6974
public ByProjectKeyProductSelectionsByIDProductsGet WithExpand(string expand)
7075
{
7176
return this.AddQueryParam("expand", expand);
@@ -81,11 +86,6 @@ public ByProjectKeyProductSelectionsByIDProductsGet WithOffset(long offset)
8186
return this.AddQueryParam("offset", offset.ToString(CultureInfo.InvariantCulture));
8287
}
8388

84-
public ByProjectKeyProductSelectionsByIDProductsGet WithWithTotal(bool withTotal)
85-
{
86-
return this.AddQueryParam("withTotal", withTotal.ToString());
87-
}
88-
8989
public ByProjectKeyProductSelectionsByIDProductsGet WithSort(string sort)
9090
{
9191
return this.AddQueryParam("sort", sort);

commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/ProductSelections/ByProjectKeyProductSelectionsKeyByKeyProductsGet.cs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,11 @@ public List<string> GetWhere()
3636
return this.GetQueryParam("where");
3737
}
3838

39+
public List<string> GetWithTotal()
40+
{
41+
return this.GetQueryParam("withTotal");
42+
}
43+
3944
public List<string> GetExpand()
4045
{
4146
return this.GetQueryParam("expand");
@@ -51,11 +56,6 @@ public List<string> GetOffset()
5156
return this.GetQueryParam("offset");
5257
}
5358

54-
public List<string> GetWithTotal()
55-
{
56-
return this.GetQueryParam("withTotal");
57-
}
58-
5959
public List<string> GetSort()
6060
{
6161
return this.GetQueryParam("sort");
@@ -66,6 +66,11 @@ public ByProjectKeyProductSelectionsKeyByKeyProductsGet WithWhere(string where)
6666
return this.AddQueryParam("where", where);
6767
}
6868

69+
public ByProjectKeyProductSelectionsKeyByKeyProductsGet WithWithTotal(bool withTotal)
70+
{
71+
return this.AddQueryParam("withTotal", withTotal.ToString());
72+
}
73+
6974
public ByProjectKeyProductSelectionsKeyByKeyProductsGet WithExpand(string expand)
7075
{
7176
return this.AddQueryParam("expand", expand);
@@ -81,11 +86,6 @@ public ByProjectKeyProductSelectionsKeyByKeyProductsGet WithOffset(long offset)
8186
return this.AddQueryParam("offset", offset.ToString(CultureInfo.InvariantCulture));
8287
}
8388

84-
public ByProjectKeyProductSelectionsKeyByKeyProductsGet WithWithTotal(bool withTotal)
85-
{
86-
return this.AddQueryParam("withTotal", withTotal.ToString());
87-
}
88-
8989
public ByProjectKeyProductSelectionsKeyByKeyProductsGet WithSort(string sort)
9090
{
9191
return this.AddQueryParam("sort", sort);

0 commit comments

Comments
 (0)