Skip to content

Commit

Permalink
Update generated SDKs (#124)
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 Jan 14, 2022
1 parent 38f5026 commit 4133235
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 45 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,6 @@ public void WithMethods(HttpRequestMessage request, string httpMethod, string ur
public static IEnumerable<object[]> GetData()
{
return new List<object[]> {
new Object[] {
ApiRoot
.WithProjectKey("test_projectKey")
.Carts()
.Get()
.WithCustomerId("customerId")
.Build(),
"Get",
"/test_projectKey/carts?customerId=customerId",
},
new Object[] {
ApiRoot
.WithProjectKey("test_projectKey")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,6 @@ public void WithMethods(HttpRequestMessage request, string httpMethod, string ur
public static IEnumerable<object[]> GetData()
{
return new List<object[]> {
new Object[] {
ApiRoot
.WithProjectKey("test_projectKey")
.InStoreKeyWithStoreKeyValue("test_storeKey")
.Carts()
.Get()
.WithCustomerId("customerId")
.Build(),
"Get",
"/test_projectKey/in-store/key=test_storeKey/carts?customerId=customerId",
},
new Object[] {
ApiRoot
.WithProjectKey("test_projectKey")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,6 @@ public ByProjectKeyCartsGet(IClient apiHttpClient, string projectKey)
this.RequestUrl = $"/{ProjectKey}/carts";
}

public List<string> GetCustomerId()
{
return this.GetQueryParam("customerId");
}

public List<string> GetExpand()
{
return this.GetQueryParam("expand");
Expand Down Expand Up @@ -59,11 +54,6 @@ public List<string> GetWhere()
return this.GetQueryParam("where");
}

public ByProjectKeyCartsGet WithCustomerId(string customerId)
{
return this.AddQueryParam("customerId", customerId);
}

public ByProjectKeyCartsGet WithExpand(string expand)
{
return this.AddQueryParam("expand", expand);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using System;
using System.Collections.Generic;
using System.Net.Http;
using System.Threading.Tasks;
Expand Down Expand Up @@ -28,11 +27,6 @@ public ByProjectKeyInStoreKeyByStoreKeyCartsGet(IClient apiHttpClient, string pr
this.RequestUrl = $"/{ProjectKey}/in-store/key={StoreKey}/carts";
}

public List<string> GetCustomerId()
{
return this.GetQueryParam("customerId");
}

public List<string> GetExpand()
{
return this.GetQueryParam("expand");
Expand Down Expand Up @@ -63,11 +57,6 @@ public List<string> GetWhere()
return this.GetQueryParam("where");
}

public ByProjectKeyInStoreKeyByStoreKeyCartsGet WithCustomerId(string customerId)
{
return this.AddQueryParam("customerId", customerId);
}

public ByProjectKeyInStoreKeyByStoreKeyCartsGet WithExpand(string expand)
{
return this.AddQueryParam("expand", expand);
Expand Down Expand Up @@ -103,10 +92,10 @@ public ByProjectKeyInStoreKeyByStoreKeyCartsGet WithPredicateVar(string varName,
return this.AddQueryParam($"var.{varName}", predicateVar);
}

public async Task<Object> ExecuteAsync()
public async Task<commercetools.Api.Models.Carts.ICartPagedQueryResponse> ExecuteAsync()
{
var requestMessage = Build();
return await ApiHttpClient.ExecuteAsync<Object>(requestMessage);
return await ApiHttpClient.ExecuteAsync<commercetools.Api.Models.Carts.ICartPagedQueryResponse>(requestMessage);
}

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

namespace commercetools.Sdk.Api.Serialization.JsonConverters
{
public class MessageDeliveryConverter: JsonConverter<MessageDelivery>
public class MessageDeliveryConverter : JsonConverter<MessageDelivery>
{
private readonly ISerializerService _serializerService;

Expand Down

0 comments on commit 4133235

Please sign in to comment.