Skip to content

Update generated SDKs #395

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 22, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ public partial interface IProductSearchResult
{
string Id { get; set; }

IProductProjection ProductProjection { get; set; }

IProductSearchMatchingVariants MatchingVariants { get; set; }

IProductProjection ProductProjection { get; set; }

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ public partial class ProductSearchResult : IProductSearchResult
{
public string Id { get; set; }

public IProductProjection ProductProjection { get; set; }

public IProductSearchMatchingVariants MatchingVariants { get; set; }

public IProductProjection ProductProjection { get; set; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,21 +21,21 @@ public IComparisonPredicateBuilder<ProductSearchResultQueryBuilderDsl, string> I
p => new CombinationQueryPredicate<ProductSearchResultQueryBuilderDsl>(p, ProductSearchResultQueryBuilderDsl.Of),
PredicateFormatter.Format);
}
public CombinationQueryPredicate<ProductSearchResultQueryBuilderDsl> ProductProjection(
Func<commercetools.Sdk.Api.Predicates.Query.Products.ProductProjectionQueryBuilderDsl, CombinationQueryPredicate<commercetools.Sdk.Api.Predicates.Query.Products.ProductProjectionQueryBuilderDsl>> fn)
public CombinationQueryPredicate<ProductSearchResultQueryBuilderDsl> MatchingVariants(
Func<commercetools.Sdk.Api.Predicates.Query.ProductSearches.ProductSearchMatchingVariantsQueryBuilderDsl, CombinationQueryPredicate<commercetools.Sdk.Api.Predicates.Query.ProductSearches.ProductSearchMatchingVariantsQueryBuilderDsl>> fn)
{
return new CombinationQueryPredicate<ProductSearchResultQueryBuilderDsl>(ContainerQueryPredicate.Of()
.Parent(ConstantQueryPredicate.Of().Constant("productProjection"))
.Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Products.ProductProjectionQueryBuilderDsl.Of())),
.Parent(ConstantQueryPredicate.Of().Constant("matchingVariants"))
.Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.ProductSearches.ProductSearchMatchingVariantsQueryBuilderDsl.Of())),
ProductSearchResultQueryBuilderDsl.Of);
}

public CombinationQueryPredicate<ProductSearchResultQueryBuilderDsl> MatchingVariants(
Func<commercetools.Sdk.Api.Predicates.Query.ProductSearches.ProductSearchMatchingVariantsQueryBuilderDsl, CombinationQueryPredicate<commercetools.Sdk.Api.Predicates.Query.ProductSearches.ProductSearchMatchingVariantsQueryBuilderDsl>> fn)
public CombinationQueryPredicate<ProductSearchResultQueryBuilderDsl> ProductProjection(
Func<commercetools.Sdk.Api.Predicates.Query.Products.ProductProjectionQueryBuilderDsl, CombinationQueryPredicate<commercetools.Sdk.Api.Predicates.Query.Products.ProductProjectionQueryBuilderDsl>> fn)
{
return new CombinationQueryPredicate<ProductSearchResultQueryBuilderDsl>(ContainerQueryPredicate.Of()
.Parent(ConstantQueryPredicate.Of().Constant("matchingVariants"))
.Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.ProductSearches.ProductSearchMatchingVariantsQueryBuilderDsl.Of())),
.Parent(ConstantQueryPredicate.Of().Constant("productProjection"))
.Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Products.ProductProjectionQueryBuilderDsl.Of())),
ProductSearchResultQueryBuilderDsl.Of);
}

Expand Down
1 change: 1 addition & 0 deletions reference.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
f28a1461a4122eed74c423156f1969ba204e6948
1 change: 1 addition & 0 deletions references.txt
Original file line number Diff line number Diff line change
Expand Up @@ -308,3 +308,4 @@ e3d5bc9cb69146c5d1dd755ed5e8cf2f54566b3a
2cad0e3daf32cb4eacc6b08feef37acb27065b0b
64c89a7773b97bd6425a82d7d8cee1a9f0f3e6e2
f28a1461a4122eed74c423156f1969ba204e6948
e18cd8073ea975fe92c1bad4dea957b16ee0b1c4
Loading