-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Auto Mation <[email protected]>
- Loading branch information
1 parent
87c1710
commit 38f5026
Showing
117 changed files
with
1,029 additions
and
797 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 0 additions & 16 deletions
16
...nerated/Client/RequestBuilders/Inventories/ByProjectKeyInventoriesImportContainersTest.cs
This file was deleted.
Oops, something went wrong.
37 changes: 0 additions & 37 deletions
37
...nventories/ByProjectKeyInventoriesImportSinkKeyByImportSinkKeyImportOperationsByIdTest.cs
This file was deleted.
Oops, something went wrong.
109 changes: 0 additions & 109 deletions
109
...rs/Inventories/ByProjectKeyInventoriesImportSinkKeyByImportSinkKeyImportOperationsTest.cs
This file was deleted.
Oops, something went wrong.
35 changes: 0 additions & 35 deletions
35
...nt/RequestBuilders/Inventories/ByProjectKeyInventoriesImportSinkKeyByImportSinkKeyTest.cs
This file was deleted.
Oops, something went wrong.
16 changes: 0 additions & 16 deletions
16
...portApi.Tests/Generated/Client/RequestBuilders/Inventories/ByProjectKeyInventoriesTest.cs
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 37 additions & 0 deletions
37
...ercetools.Sdk.Api/Generated/Client/RequestBuilders/Orders/ByProjectKeyOrdersSearchHead.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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<ByProjectKeyOrdersSearchHead> | ||
{ | ||
|
||
|
||
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<JsonElement> ExecuteAsync() | ||
{ | ||
var requestMessage = Build(); | ||
return await ApiHttpClient.ExecuteAsync<JsonElement>(requestMessage); | ||
} | ||
|
||
} | ||
} |
56 changes: 56 additions & 0 deletions
56
...ercetools.Sdk.Api/Generated/Client/RequestBuilders/Orders/ByProjectKeyOrdersSearchPost.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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<ByProjectKeyOrdersSearchPost> | ||
{ | ||
|
||
|
||
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<commercetools.Api.Models.Orders.IOrderPagedSearchResponse> ExecuteAsync() | ||
{ | ||
var requestMessage = Build(); | ||
return await ApiHttpClient.ExecuteAsync<commercetools.Api.Models.Orders.IOrderPagedSearchResponse>(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; | ||
} | ||
|
||
} | ||
} |
34 changes: 34 additions & 0 deletions
34
...Sdk.Api/Generated/Client/RequestBuilders/Orders/ByProjectKeyOrdersSearchRequestBuilder.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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); | ||
} | ||
|
||
} | ||
} |
Oops, something went wrong.