Skip to content

Commit

Permalink
Update generated SDKs (#132)
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 Feb 7, 2022
1 parent 26e4fc2 commit 83a40e9
Show file tree
Hide file tree
Showing 12 changed files with 71 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,10 @@ public ByProjectKeyProductsByIDProductSelectionsGet WithPredicateVar(string varN
return this.AddQueryParam($"var.{varName}", predicateVar);
}

public async Task<commercetools.Api.Models.ProductSelections.IProductSelectionPagedQueryResponse> ExecuteAsync()
public async Task<commercetools.Api.Models.ProductSelections.IAssignedProductSelectionPagedQueryResponse> ExecuteAsync()
{
var requestMessage = Build();
return await ApiHttpClient.ExecuteAsync<commercetools.Api.Models.ProductSelections.IProductSelectionPagedQueryResponse>(requestMessage);
return await ApiHttpClient.ExecuteAsync<commercetools.Api.Models.ProductSelections.IAssignedProductSelectionPagedQueryResponse>(requestMessage);
}

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,10 @@ public ByProjectKeyProductsKeyByKeyProductSelectionsGet WithPredicateVar(string
return this.AddQueryParam($"var.{varName}", predicateVar);
}

public async Task<commercetools.Api.Models.ProductSelections.IProductSelectionPagedQueryResponse> ExecuteAsync()
public async Task<commercetools.Api.Models.ProductSelections.IAssignedProductSelectionPagedQueryResponse> ExecuteAsync()
{
var requestMessage = Build();
return await ApiHttpClient.ExecuteAsync<commercetools.Api.Models.ProductSelections.IProductSelectionPagedQueryResponse>(requestMessage);
return await ApiHttpClient.ExecuteAsync<commercetools.Api.Models.ProductSelections.IAssignedProductSelectionPagedQueryResponse>(requestMessage);
}

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,6 @@ public partial class DiscountCode : IDiscountCode

public DateTime? ValidUntil { get; set; }

public long ApplicationVersion { get; set; }
public long? ApplicationVersion { get; set; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,6 @@ public partial interface IDiscountCode : IBaseResource

DateTime? ValidUntil { get; set; }

long ApplicationVersion { get; set; }
long? ApplicationVersion { get; set; }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
namespace commercetools.Api.Models.ProductSelections
{
public partial class AssignedProductSelection : IAssignedProductSelection
{
public IProductSelectionReference ProductSelection { get; set; }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
using System.Collections.Generic;


namespace commercetools.Api.Models.ProductSelections
{
public partial class AssignedProductSelectionPagedQueryResponse : IAssignedProductSelectionPagedQueryResponse
{
public long Limit { get; set; }

public long Offset { get; set; }

public long Count { get; set; }

public long? Total { get; set; }

public List<IAssignedProductSelection> Results { get; set; }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
using commercetools.Base.CustomAttributes;


namespace commercetools.Api.Models.ProductSelections
{
[DeserializeAs(typeof(commercetools.Api.Models.ProductSelections.AssignedProductSelection))]
public partial interface IAssignedProductSelection
{
IProductSelectionReference ProductSelection { get; set; }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
using System.Collections.Generic;
using commercetools.Base.CustomAttributes;


namespace commercetools.Api.Models.ProductSelections
{
[DeserializeAs(typeof(commercetools.Api.Models.ProductSelections.AssignedProductSelectionPagedQueryResponse))]
public partial interface IAssignedProductSelectionPagedQueryResponse
{
long Limit { get; set; }

long Offset { get; set; }

long Count { get; set; }

long? Total { get; set; }

List<IAssignedProductSelection> Results { get; set; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ public partial interface IStatePagedQueryResponse
{
long Limit { get; set; }

long Offset { get; set; }

long Count { get; set; }

long? Total { get; set; }

long Offset { get; set; }

List<IState> Results { get; set; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,7 @@ namespace commercetools.Api.Models.States
public partial interface IStateReference : IReference
{
IState Obj { get; set; }

new string Id { get; set; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,8 @@ namespace commercetools.Api.Models.States
[DeserializeAs(typeof(commercetools.Api.Models.States.StateResourceIdentifier))]
public partial interface IStateResourceIdentifier : IResourceIdentifier
{
new string Id { get; set; }

new string Key { get; set; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ public partial class StatePagedQueryResponse : IStatePagedQueryResponse
{
public long Limit { get; set; }

public long Offset { get; set; }

public long Count { get; set; }

public long? Total { get; set; }

public long Offset { get; set; }

public List<IState> Results { get; set; }
}
}

0 comments on commit 83a40e9

Please sign in to comment.