-
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.
Merge pull request #366 from commercetools/gen-sdk-updates
Update generated SDKs
- Loading branch information
Showing
5 changed files
with
95 additions
and
46 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,52 +1,8 @@ | ||
**Api changes** | ||
|
||
<details> | ||
<summary>Added Property(s)</summary> | ||
<summary>Added Method(s)</summary> | ||
|
||
- added property `staged` to type `ProductVariantDeletedMessage` | ||
- added property `staged` to type `ProductVariantDeletedMessagePayload` | ||
- added property `warnings` to type `ProductTailoring` | ||
- added property `attributes` to type `ProductVariantTailoring` | ||
- added property `attributes` to type `ProductVariantTailoringDraft` | ||
- added property `attributes` to type `ProductTailoringAddVariantAction` | ||
- added property `warnings` to type `Product` | ||
- added property `customers` to type `SearchIndexingConfiguration` | ||
</details> | ||
|
||
|
||
<details> | ||
<summary>Added Type(s)</summary> | ||
|
||
- added type `SearchNotReadyError` | ||
- added type `GraphQLSearchNotReadyError` | ||
- added type `ProductTailoringAttribute` | ||
- added type `ProductTailoringSetAttributeAction` | ||
- added type `ProductTailoringSetAttributeInAllVariantsAction` | ||
- added type `ImageProcessingOngoingWarning` | ||
- added type `WarningObject` | ||
</details> | ||
|
||
|
||
<details> | ||
<summary>Removed Type(s)</summary> | ||
|
||
- :warning: removed type `ProductSearchStatus` | ||
</details> | ||
|
||
|
||
<details> | ||
<summary>Added Enum(s)</summary> | ||
|
||
- added enum `customer-group` to type `ExtensionResourceTypeId` | ||
- added enum `product-tailoring` to type `MessageSubscriptionResourceTypeId` | ||
- added enum `product-tailoring` to type `ResourceTypeId` | ||
</details> | ||
|
||
**Import changes** | ||
|
||
<details> | ||
<summary>Added Type(s)</summary> | ||
|
||
- added type `InvalidFieldsUpdateError` | ||
- added method `apiRoot.withProjectKey().productTailoring().head()` | ||
</details> | ||
|
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
68 changes: 68 additions & 0 deletions
68
...Api/Generated/Client/RequestBuilders/ProductTailoring/ByProjectKeyProductTailoringHead.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,68 @@ | ||
using System.Collections.Generic; | ||
using System.Net.Http; | ||
using System.Threading.Tasks; | ||
using System.Threading; | ||
using commercetools.Base.Client; | ||
|
||
|
||
// ReSharper disable CheckNamespace | ||
namespace commercetools.Sdk.Api.Client.RequestBuilders.ProductTailoring | ||
{ | ||
|
||
public partial class ByProjectKeyProductTailoringHead : ApiMethod<ByProjectKeyProductTailoringHead>, IApiMethod<ByProjectKeyProductTailoringHead, string>, commercetools.Sdk.Api.Client.IErrorableTrait<ByProjectKeyProductTailoringHead>, commercetools.Sdk.Api.Client.IDeprecatable200Trait<ByProjectKeyProductTailoringHead> | ||
{ | ||
|
||
|
||
private IClient ApiHttpClient { get; } | ||
|
||
public override HttpMethod Method => HttpMethod.Head; | ||
|
||
private string ProjectKey { get; } | ||
|
||
|
||
public ByProjectKeyProductTailoringHead(IClient apiHttpClient, string projectKey) | ||
{ | ||
this.ApiHttpClient = apiHttpClient; | ||
this.ProjectKey = projectKey; | ||
this.RequestUrl = $"/{ProjectKey}/product-tailoring"; | ||
} | ||
|
||
public List<string> GetWhere() | ||
{ | ||
return this.GetQueryParam("where"); | ||
} | ||
|
||
public ByProjectKeyProductTailoringHead WithWhere(string where) | ||
{ | ||
return this.AddQueryParam("where", where); | ||
} | ||
|
||
|
||
public async Task<string> ExecuteAsync(CancellationToken cancellationToken = default) | ||
{ | ||
|
||
return await ExecuteAsJsonAsync(cancellationToken); | ||
|
||
} | ||
|
||
public async Task<string> ExecuteAsJsonAsync(CancellationToken cancellationToken = default) | ||
{ | ||
var requestMessage = Build(); | ||
return await ApiHttpClient.ExecuteAsJsonAsync(requestMessage, cancellationToken); | ||
} | ||
|
||
public async Task<IApiResponse<string>> SendAsync(CancellationToken cancellationToken = default) | ||
{ | ||
|
||
return await SendAsJsonAsync(cancellationToken); | ||
|
||
} | ||
|
||
public async Task<IApiResponse<string>> SendAsJsonAsync(CancellationToken cancellationToken = default) | ||
{ | ||
var requestMessage = Build(); | ||
return await ApiHttpClient.SendAsJsonAsync(requestMessage, cancellationToken); | ||
} | ||
|
||
} | ||
} |
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
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