Skip to content

Commit

Permalink
Merge pull request #75 from commercetools/gen-sdk-updates
Browse files Browse the repository at this point in the history
Update generated SDKs
  • Loading branch information
MicheleRezk authored Aug 2, 2021
2 parents fcd35f9 + 8a8b6b7 commit 89fc0df
Show file tree
Hide file tree
Showing 33 changed files with 212 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public partial interface IOrderImportDraft

List<ILineItemImportDraft> LineItems { get; set;}

List<ICustomLineItemDraft> CustomLineItems { get; set;}
List<ICustomLineItemImportDraft> CustomLineItems { get; set;}

IMoney TotalPrice { get; set;}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public partial class OrderImportDraft : IOrderImportDraft

public List<ILineItemImportDraft> LineItems { get; set;}

public List<ICustomLineItemDraft> CustomLineItems { get; set;}
public List<ICustomLineItemImportDraft> CustomLineItems { get; set;}

public IMoney TotalPrice { get; set;}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,7 @@ public partial interface IProject
ICartsConfiguration Carts { get; set;}

ISearchIndexingConfiguration SearchIndexing { get; set;}

IShoppingListsConfiguration ShoppingLists { get; set;}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
using commercetools.Api.Models.Projects;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text.Json.Serialization;
using commercetools.Base.CustomAttributes;


namespace commercetools.Api.Models.Projects
{
[DeserializeAs(typeof(commercetools.Api.Models.Projects.ProjectChangeShoppingListsConfiguration))]
public partial interface IProjectChangeShoppingListsConfiguration : IProjectUpdateAction
{
IShoppingListsConfiguration ShoppingListsConfiguration { get; set;}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ namespace commercetools.Api.Models.Projects
[SubTypeDiscriminator("changeMessagesEnabled", typeof(commercetools.Api.Models.Projects.ProjectChangeMessagesEnabledAction))]
[SubTypeDiscriminator("changeName", typeof(commercetools.Api.Models.Projects.ProjectChangeNameAction))]
[SubTypeDiscriminator("changeProductSearchIndexingEnabled", typeof(commercetools.Api.Models.Projects.ProjectChangeProductSearchIndexingEnabledAction))]
[SubTypeDiscriminator("changeShoppingListsConfiguration", typeof(commercetools.Api.Models.Projects.ProjectChangeShoppingListsConfiguration))]
[SubTypeDiscriminator("setExternalOAuth", typeof(commercetools.Api.Models.Projects.ProjectSetExternalOAuthAction))]
[SubTypeDiscriminator("setShippingRateInputType", typeof(commercetools.Api.Models.Projects.ProjectSetShippingRateInputTypeAction))]
public partial interface IProjectUpdateAction
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text.Json.Serialization;
using commercetools.Base.CustomAttributes;


namespace commercetools.Api.Models.Projects
{
[DeserializeAs(typeof(commercetools.Api.Models.Projects.ShoppingListsConfiguration))]
public partial interface IShoppingListsConfiguration
{
long? DeleteDaysAfterLastModification { get; set;}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,7 @@ public partial class Project : IProject
public ICartsConfiguration Carts { get; set;}

public ISearchIndexingConfiguration SearchIndexing { get; set;}

public IShoppingListsConfiguration ShoppingLists { get; set;}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
using commercetools.Api.Models.Projects;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text.Json.Serialization;
using commercetools.Base.CustomAttributes;


namespace commercetools.Api.Models.Projects
{
public partial class ProjectChangeShoppingListsConfiguration : IProjectChangeShoppingListsConfiguration
{
public string Action { get; set;}

public IShoppingListsConfiguration ShoppingListsConfiguration { get; set;}
public ProjectChangeShoppingListsConfiguration()
{
this.Action = "changeShoppingListsConfiguration";
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text.Json.Serialization;
using commercetools.Base.CustomAttributes;


namespace commercetools.Api.Models.Projects
{
public partial class ShoppingListsConfiguration : IShoppingListsConfiguration
{
public long? DeleteDaysAfterLastModification { get; set;}
}
}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
hash=78d459a70aac5fa311136d2410d5cc41c9c97d16
hash=54444c4eae550cc5db7327b4047c36aa5f064bf7
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ public List<string> GetResourceKey() {
public List<string> GetState() {
return this.GetQueryParam("state");
}

public List<string> GetDebug() {
return this.GetQueryParam("debug");
}

public ByProjectKeyCategoriesImportSinkKeyByImportSinkKeyImportOperationsGet WithLimit(double limit){
return this.AddQueryParam("limit", limit.ToString());
Expand All @@ -69,6 +73,10 @@ public ByProjectKeyCategoriesImportSinkKeyByImportSinkKeyImportOperationsGet Wit
public ByProjectKeyCategoriesImportSinkKeyByImportSinkKeyImportOperationsGet WithState(IProcessingState state){
return this.AddQueryParam("state", state.ToString());
}

public ByProjectKeyCategoriesImportSinkKeyByImportSinkKeyImportOperationsGet WithDebug(bool debug){
return this.AddQueryParam("debug", debug.ToString());
}

public async Task<commercetools.ImportApi.Models.Importoperations.ImportOperationPagedResponse> ExecuteAsync()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ public List<string> GetResourceKey() {
public List<string> GetState() {
return this.GetQueryParam("state");
}

public List<string> GetDebug() {
return this.GetQueryParam("debug");
}

public ByProjectKeyCustomersImportSinkKeyByImportSinkKeyImportOperationsGet WithLimit(double limit){
return this.AddQueryParam("limit", limit.ToString());
Expand All @@ -69,6 +73,10 @@ public ByProjectKeyCustomersImportSinkKeyByImportSinkKeyImportOperationsGet With
public ByProjectKeyCustomersImportSinkKeyByImportSinkKeyImportOperationsGet WithState(IProcessingState state){
return this.AddQueryParam("state", state.ToString());
}

public ByProjectKeyCustomersImportSinkKeyByImportSinkKeyImportOperationsGet WithDebug(bool debug){
return this.AddQueryParam("debug", debug.ToString());
}

public async Task<commercetools.ImportApi.Models.Importoperations.ImportOperationPagedResponse> ExecuteAsync()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ public partial class ByProjectKeyImportSinksByImportSinkKeyPut : ApiMethod<ByPro

private string ImportSinkKey { get; }

private commercetools.ImportApi.Models.Importsinks.IImportSinkDraft ImportSinkDraft;
private commercetools.ImportApi.Models.Importsinks.IImportSinkUpdateDraft ImportSinkUpdateDraft;

public ByProjectKeyImportSinksByImportSinkKeyPut(IClient apiHttpClient, string projectKey, string importSinkKey, commercetools.ImportApi.Models.Importsinks.IImportSinkDraft importSinkDraft) {
public ByProjectKeyImportSinksByImportSinkKeyPut(IClient apiHttpClient, string projectKey, string importSinkKey, commercetools.ImportApi.Models.Importsinks.IImportSinkUpdateDraft importSinkUpdateDraft) {
this.ApiHttpClient = apiHttpClient;
this.ProjectKey = projectKey;
this.ImportSinkKey = importSinkKey;
this.ImportSinkDraft = importSinkDraft;
this.ImportSinkUpdateDraft = importSinkUpdateDraft;
this.RequestUrl = $"/{ProjectKey}/import-sinks/{ImportSinkKey}";
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ public ByProjectKeyImportSinksByImportSinkKeyRequestBuilder (IClient apiHttpClie
this.ImportSinkKey = importSinkKey;
}

public ByProjectKeyImportSinksByImportSinkKeyPut Put(commercetools.ImportApi.Models.Importsinks.IImportSinkDraft importSinkDraft) {
return new ByProjectKeyImportSinksByImportSinkKeyPut(ApiHttpClient, ProjectKey, ImportSinkKey, importSinkDraft);
public ByProjectKeyImportSinksByImportSinkKeyPut Put(commercetools.ImportApi.Models.Importsinks.IImportSinkUpdateDraft importSinkUpdateDraft) {
return new ByProjectKeyImportSinksByImportSinkKeyPut(ApiHttpClient, ProjectKey, ImportSinkKey, importSinkUpdateDraft);
}

public ByProjectKeyImportSinksByImportSinkKeyGet Get() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ public List<string> GetResourceKey() {
public List<string> GetState() {
return this.GetQueryParam("state");
}

public List<string> GetDebug() {
return this.GetQueryParam("debug");
}

public ByProjectKeyInventoriesImportSinkKeyByImportSinkKeyImportOperationsGet WithLimit(double limit){
return this.AddQueryParam("limit", limit.ToString());
Expand All @@ -69,6 +73,10 @@ public ByProjectKeyInventoriesImportSinkKeyByImportSinkKeyImportOperationsGet Wi
public ByProjectKeyInventoriesImportSinkKeyByImportSinkKeyImportOperationsGet WithState(IProcessingState state){
return this.AddQueryParam("state", state.ToString());
}

public ByProjectKeyInventoriesImportSinkKeyByImportSinkKeyImportOperationsGet WithDebug(bool debug){
return this.AddQueryParam("debug", debug.ToString());
}

public async Task<commercetools.ImportApi.Models.Importoperations.ImportOperationPagedResponse> ExecuteAsync()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ public List<string> GetResourceKey() {
public List<string> GetState() {
return this.GetQueryParam("state");
}

public List<string> GetDebug() {
return this.GetQueryParam("debug");
}

public ByProjectKeyOrderPatchesImportSinkKeyByImportSinkKeyImportOperationsGet WithLimit(double limit){
return this.AddQueryParam("limit", limit.ToString());
Expand All @@ -69,6 +73,10 @@ public ByProjectKeyOrderPatchesImportSinkKeyByImportSinkKeyImportOperationsGet W
public ByProjectKeyOrderPatchesImportSinkKeyByImportSinkKeyImportOperationsGet WithState(IProcessingState state){
return this.AddQueryParam("state", state.ToString());
}

public ByProjectKeyOrderPatchesImportSinkKeyByImportSinkKeyImportOperationsGet WithDebug(bool debug){
return this.AddQueryParam("debug", debug.ToString());
}

public async Task<commercetools.ImportApi.Models.Importoperations.ImportOperationPagedResponse> ExecuteAsync()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ public List<string> GetResourceKey() {
public List<string> GetState() {
return this.GetQueryParam("state");
}

public List<string> GetDebug() {
return this.GetQueryParam("debug");
}

public ByProjectKeyOrdersImportSinkKeyByImportSinkKeyImportOperationsGet WithLimit(double limit){
return this.AddQueryParam("limit", limit.ToString());
Expand All @@ -69,6 +73,10 @@ public ByProjectKeyOrdersImportSinkKeyByImportSinkKeyImportOperationsGet WithRes
public ByProjectKeyOrdersImportSinkKeyByImportSinkKeyImportOperationsGet WithState(IProcessingState state){
return this.AddQueryParam("state", state.ToString());
}

public ByProjectKeyOrdersImportSinkKeyByImportSinkKeyImportOperationsGet WithDebug(bool debug){
return this.AddQueryParam("debug", debug.ToString());
}

public async Task<commercetools.ImportApi.Models.Importoperations.ImportOperationPagedResponse> ExecuteAsync()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ public List<string> GetResourceKey() {
public List<string> GetState() {
return this.GetQueryParam("state");
}

public List<string> GetDebug() {
return this.GetQueryParam("debug");
}

public ByProjectKeyPricesImportSinkKeyByImportSinkKeyImportOperationsGet WithLimit(double limit){
return this.AddQueryParam("limit", limit.ToString());
Expand All @@ -69,6 +73,10 @@ public ByProjectKeyPricesImportSinkKeyByImportSinkKeyImportOperationsGet WithRes
public ByProjectKeyPricesImportSinkKeyByImportSinkKeyImportOperationsGet WithState(IProcessingState state){
return this.AddQueryParam("state", state.ToString());
}

public ByProjectKeyPricesImportSinkKeyByImportSinkKeyImportOperationsGet WithDebug(bool debug){
return this.AddQueryParam("debug", debug.ToString());
}

public async Task<commercetools.ImportApi.Models.Importoperations.ImportOperationPagedResponse> ExecuteAsync()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ public List<string> GetResourceKey() {
public List<string> GetState() {
return this.GetQueryParam("state");
}

public List<string> GetDebug() {
return this.GetQueryParam("debug");
}

public ByProjectKeyProductDraftsImportSinkKeyByImportSinkKeyImportOperationsGet WithLimit(double limit){
return this.AddQueryParam("limit", limit.ToString());
Expand All @@ -69,6 +73,10 @@ public ByProjectKeyProductDraftsImportSinkKeyByImportSinkKeyImportOperationsGet
public ByProjectKeyProductDraftsImportSinkKeyByImportSinkKeyImportOperationsGet WithState(IProcessingState state){
return this.AddQueryParam("state", state.ToString());
}

public ByProjectKeyProductDraftsImportSinkKeyByImportSinkKeyImportOperationsGet WithDebug(bool debug){
return this.AddQueryParam("debug", debug.ToString());
}

public async Task<commercetools.ImportApi.Models.Importoperations.ImportOperationPagedResponse> ExecuteAsync()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ public List<string> GetResourceKey() {
public List<string> GetState() {
return this.GetQueryParam("state");
}

public List<string> GetDebug() {
return this.GetQueryParam("debug");
}

public ByProjectKeyProductTypesImportSinkKeyByImportSinkKeyImportOperationsGet WithLimit(double limit){
return this.AddQueryParam("limit", limit.ToString());
Expand All @@ -69,6 +73,10 @@ public ByProjectKeyProductTypesImportSinkKeyByImportSinkKeyImportOperationsGet W
public ByProjectKeyProductTypesImportSinkKeyByImportSinkKeyImportOperationsGet WithState(IProcessingState state){
return this.AddQueryParam("state", state.ToString());
}

public ByProjectKeyProductTypesImportSinkKeyByImportSinkKeyImportOperationsGet WithDebug(bool debug){
return this.AddQueryParam("debug", debug.ToString());
}

public async Task<commercetools.ImportApi.Models.Importoperations.ImportOperationPagedResponse> ExecuteAsync()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ public List<string> GetResourceKey() {
public List<string> GetState() {
return this.GetQueryParam("state");
}

public List<string> GetDebug() {
return this.GetQueryParam("debug");
}

public ByProjectKeyProductVariantPatchesImportSinkKeyByImportSinkKeyImportOperationsGet WithLimit(double limit){
return this.AddQueryParam("limit", limit.ToString());
Expand All @@ -69,6 +73,10 @@ public ByProjectKeyProductVariantPatchesImportSinkKeyByImportSinkKeyImportOperat
public ByProjectKeyProductVariantPatchesImportSinkKeyByImportSinkKeyImportOperationsGet WithState(IProcessingState state){
return this.AddQueryParam("state", state.ToString());
}

public ByProjectKeyProductVariantPatchesImportSinkKeyByImportSinkKeyImportOperationsGet WithDebug(bool debug){
return this.AddQueryParam("debug", debug.ToString());
}

public async Task<commercetools.ImportApi.Models.Importoperations.ImportOperationPagedResponse> ExecuteAsync()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ public List<string> GetResourceKey() {
public List<string> GetState() {
return this.GetQueryParam("state");
}

public List<string> GetDebug() {
return this.GetQueryParam("debug");
}

public ByProjectKeyProductVariantsImportSinkKeyByImportSinkKeyImportOperationsGet WithLimit(double limit){
return this.AddQueryParam("limit", limit.ToString());
Expand All @@ -69,6 +73,10 @@ public ByProjectKeyProductVariantsImportSinkKeyByImportSinkKeyImportOperationsGe
public ByProjectKeyProductVariantsImportSinkKeyByImportSinkKeyImportOperationsGet WithState(IProcessingState state){
return this.AddQueryParam("state", state.ToString());
}

public ByProjectKeyProductVariantsImportSinkKeyByImportSinkKeyImportOperationsGet WithDebug(bool debug){
return this.AddQueryParam("debug", debug.ToString());
}

public async Task<commercetools.ImportApi.Models.Importoperations.ImportOperationPagedResponse> ExecuteAsync()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ public List<string> GetResourceKey() {
public List<string> GetState() {
return this.GetQueryParam("state");
}

public List<string> GetDebug() {
return this.GetQueryParam("debug");
}

public ByProjectKeyProductsImportSinkKeyByImportSinkKeyImportOperationsGet WithLimit(double limit){
return this.AddQueryParam("limit", limit.ToString());
Expand All @@ -69,6 +73,10 @@ public ByProjectKeyProductsImportSinkKeyByImportSinkKeyImportOperationsGet WithR
public ByProjectKeyProductsImportSinkKeyByImportSinkKeyImportOperationsGet WithState(IProcessingState state){
return this.AddQueryParam("state", state.ToString());
}

public ByProjectKeyProductsImportSinkKeyByImportSinkKeyImportOperationsGet WithDebug(bool debug){
return this.AddQueryParam("debug", debug.ToString());
}

public async Task<commercetools.ImportApi.Models.Importoperations.ImportOperationPagedResponse> ExecuteAsync()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ namespace commercetools.ImportApi.Models.Common
{
public partial class AssetDimensions : IAssetDimensions
{
public double W { get; set;}
public int W { get; set;}

public double H { get; set;}
public int H { get; set;}
}
}
Loading

0 comments on commit 89fc0df

Please sign in to comment.