From aa4d5b609254d4e1629d758821eb63ee52ce9794 Mon Sep 17 00:00:00 2001 From: Auto Mation Date: Mon, 2 Oct 2023 08:58:55 +0000 Subject: [PATCH] TASK: Updating SDK --- changes.md | 10 ++++ ...itKeyByBusinessUnitKeyApprovalRulesTest.cs | 46 +++++++-------- ...nitKeyByBusinessUnitKeyApprovalFlowsGet.cs | 11 ++-- ...nitKeyByBusinessUnitKeyApprovalRulesGet.cs | 11 ++-- ...inessUnitKeyApprovalRulesRequestBuilder.cs | 8 +-- .../ApprovalFlowPagedQueryResponse.cs | 22 +++++++ .../IApprovalFlowPagedQueryResponse.cs | 24 ++++++++ .../ApprovalRulePagedQueryResponse.cs | 22 +++++++ .../IApprovalRulePagedQueryResponse.cs | 24 ++++++++ ...alFlowPagedQueryResponseQueryBuilderDsl.cs | 57 +++++++++++++++++++ ...alRulePagedQueryResponseQueryBuilderDsl.cs | 57 +++++++++++++++++++ references.txt | 1 + 12 files changed, 254 insertions(+), 39 deletions(-) create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/ApprovalFlows/ApprovalFlowPagedQueryResponse.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/ApprovalFlows/IApprovalFlowPagedQueryResponse.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/ApprovalRules/ApprovalRulePagedQueryResponse.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/ApprovalRules/IApprovalRulePagedQueryResponse.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/ApprovalFlows/ApprovalFlowPagedQueryResponseQueryBuilderDsl.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/ApprovalRules/ApprovalRulePagedQueryResponseQueryBuilderDsl.cs diff --git a/changes.md b/changes.md index f0720a8f819..2e4fa9c0859 100644 --- a/changes.md +++ b/changes.md @@ -11,9 +11,19 @@ +
+Changed MethodResponseBody(s) + +- :warning: changed response body for `200: application/json` of method `get /{projectKey}/as-associate/{associateId}/in-business-unit/key={businessUnitKey}/approval-rules` from type `<>` to `ApprovalRulePagedQueryResponse` +- :warning: changed response body for `200: application/json` of method `get /{projectKey}/as-associate/{associateId}/in-business-unit/key={businessUnitKey}/approval-flows` from type `<>` to `ApprovalFlowPagedQueryResponse` +
+ +
Added Type(s) +- added type `ApprovalFlowPagedQueryResponse` +- added type `ApprovalRulePagedQueryResponse` - added type `CartDiscountTotalPriceTarget` - added type `DiscountOnTotalPrice` - added type `DiscountedTotalPricePortion` diff --git a/commercetools.Sdk/Tests/commercetools.Sdk.Api.Tests/Generated/Client/RequestBuilders/AsAssociate/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyApprovalRulesTest.cs b/commercetools.Sdk/Tests/commercetools.Sdk.Api.Tests/Generated/Client/RequestBuilders/AsAssociate/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyApprovalRulesTest.cs index a18c36abf7e..1e856e67f71 100644 --- a/commercetools.Sdk/Tests/commercetools.Sdk.Api.Tests/Generated/Client/RequestBuilders/AsAssociate/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyApprovalRulesTest.cs +++ b/commercetools.Sdk/Tests/commercetools.Sdk.Api.Tests/Generated/Client/RequestBuilders/AsAssociate/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyApprovalRulesTest.cs @@ -26,10 +26,10 @@ public static IEnumerable GetData() .WithAssociateIdValue("test_associateId") .InBusinessUnitKeyWithBusinessUnitKeyValue("test_businessUnitKey") .ApprovalRules() - .Post(null) + .Get() .WithExpand("expand") .Build(), - "Post", + "Get", "/test_projectKey/as-associate/test_associateId/in-business-unit/key=test_businessUnitKey/approval-rules?expand=expand", }, new Object[] { @@ -39,10 +39,11 @@ public static IEnumerable GetData() .WithAssociateIdValue("test_associateId") .InBusinessUnitKeyWithBusinessUnitKeyValue("test_businessUnitKey") .ApprovalRules() - .Post(null) + .Get() + .WithSort("sort") .Build(), - "Post", - "/test_projectKey/as-associate/test_associateId/in-business-unit/key=test_businessUnitKey/approval-rules", + "Get", + "/test_projectKey/as-associate/test_associateId/in-business-unit/key=test_businessUnitKey/approval-rules?sort=sort", }, new Object[] { ApiRoot @@ -52,10 +53,10 @@ public static IEnumerable GetData() .InBusinessUnitKeyWithBusinessUnitKeyValue("test_businessUnitKey") .ApprovalRules() .Get() - .WithExpand("expand") + .WithLimit(7) .Build(), "Get", - "/test_projectKey/as-associate/test_associateId/in-business-unit/key=test_businessUnitKey/approval-rules?expand=expand", + "/test_projectKey/as-associate/test_associateId/in-business-unit/key=test_businessUnitKey/approval-rules?limit=7", }, new Object[] { ApiRoot @@ -65,10 +66,10 @@ public static IEnumerable GetData() .InBusinessUnitKeyWithBusinessUnitKeyValue("test_businessUnitKey") .ApprovalRules() .Get() - .WithSort("sort") + .WithOffset(3) .Build(), "Get", - "/test_projectKey/as-associate/test_associateId/in-business-unit/key=test_businessUnitKey/approval-rules?sort=sort", + "/test_projectKey/as-associate/test_associateId/in-business-unit/key=test_businessUnitKey/approval-rules?offset=3", }, new Object[] { ApiRoot @@ -78,10 +79,10 @@ public static IEnumerable GetData() .InBusinessUnitKeyWithBusinessUnitKeyValue("test_businessUnitKey") .ApprovalRules() .Get() - .WithLimit(7) + .WithWithTotal(true) .Build(), "Get", - "/test_projectKey/as-associate/test_associateId/in-business-unit/key=test_businessUnitKey/approval-rules?limit=7", + "/test_projectKey/as-associate/test_associateId/in-business-unit/key=test_businessUnitKey/approval-rules?withTotal=true", }, new Object[] { ApiRoot @@ -91,10 +92,10 @@ public static IEnumerable GetData() .InBusinessUnitKeyWithBusinessUnitKeyValue("test_businessUnitKey") .ApprovalRules() .Get() - .WithOffset(3) + .WithWhere("where") .Build(), "Get", - "/test_projectKey/as-associate/test_associateId/in-business-unit/key=test_businessUnitKey/approval-rules?offset=3", + "/test_projectKey/as-associate/test_associateId/in-business-unit/key=test_businessUnitKey/approval-rules?where=where", }, new Object[] { ApiRoot @@ -104,10 +105,10 @@ public static IEnumerable GetData() .InBusinessUnitKeyWithBusinessUnitKeyValue("test_businessUnitKey") .ApprovalRules() .Get() - .WithWithTotal(true) + .WithPredicateVar("varName", "var.varName") .Build(), "Get", - "/test_projectKey/as-associate/test_associateId/in-business-unit/key=test_businessUnitKey/approval-rules?withTotal=true", + "/test_projectKey/as-associate/test_associateId/in-business-unit/key=test_businessUnitKey/approval-rules?var.varName=var.varName", }, new Object[] { ApiRoot @@ -117,10 +118,9 @@ public static IEnumerable GetData() .InBusinessUnitKeyWithBusinessUnitKeyValue("test_businessUnitKey") .ApprovalRules() .Get() - .WithWhere("where") .Build(), "Get", - "/test_projectKey/as-associate/test_associateId/in-business-unit/key=test_businessUnitKey/approval-rules?where=where", + "/test_projectKey/as-associate/test_associateId/in-business-unit/key=test_businessUnitKey/approval-rules", }, new Object[] { ApiRoot @@ -129,11 +129,11 @@ public static IEnumerable GetData() .WithAssociateIdValue("test_associateId") .InBusinessUnitKeyWithBusinessUnitKeyValue("test_businessUnitKey") .ApprovalRules() - .Get() - .WithPredicateVar("varName", "var.varName") + .Post(null) + .WithExpand("expand") .Build(), - "Get", - "/test_projectKey/as-associate/test_associateId/in-business-unit/key=test_businessUnitKey/approval-rules?var.varName=var.varName", + "Post", + "/test_projectKey/as-associate/test_associateId/in-business-unit/key=test_businessUnitKey/approval-rules?expand=expand", }, new Object[] { ApiRoot @@ -142,9 +142,9 @@ public static IEnumerable GetData() .WithAssociateIdValue("test_associateId") .InBusinessUnitKeyWithBusinessUnitKeyValue("test_businessUnitKey") .ApprovalRules() - .Get() + .Post(null) .Build(), - "Get", + "Post", "/test_projectKey/as-associate/test_associateId/in-business-unit/key=test_businessUnitKey/approval-rules", } }; diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/AsAssociate/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyApprovalFlowsGet.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/AsAssociate/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyApprovalFlowsGet.cs index 7b3649aa9c6..1117746a19c 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/AsAssociate/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyApprovalFlowsGet.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/AsAssociate/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyApprovalFlowsGet.cs @@ -1,4 +1,3 @@ -using System; using System.Globalization; using System.Collections.Generic; using System.Net.Http; @@ -11,7 +10,7 @@ namespace commercetools.Sdk.Api.Client.RequestBuilders.AsAssociate { - public partial class ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyApprovalFlowsGet : ApiMethod, IApiMethod, commercetools.Sdk.Api.Client.IExpandableTrait, commercetools.Sdk.Api.Client.ISortableTrait, commercetools.Sdk.Api.Client.IPagingTrait, commercetools.Sdk.Api.Client.IQueryTrait, commercetools.Sdk.Api.Client.IErrorableTrait, commercetools.Sdk.Api.Client.IDeprecatable200Trait + public partial class ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyApprovalFlowsGet : ApiMethod, IApiMethod, commercetools.Sdk.Api.Client.IExpandableTrait, commercetools.Sdk.Api.Client.ISortableTrait, commercetools.Sdk.Api.Client.IPagingTrait, commercetools.Sdk.Api.Client.IQueryTrait, commercetools.Sdk.Api.Client.IErrorableTrait, commercetools.Sdk.Api.Client.IDeprecatable200Trait { @@ -100,11 +99,11 @@ public ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyApp return this.AddQueryParam($"var.{varName}", predicateVar); } - public async Task ExecuteAsync(CancellationToken cancellationToken = default) + public async Task ExecuteAsync(CancellationToken cancellationToken = default) { var requestMessage = Build(); - return await ApiHttpClient.ExecuteAsync(requestMessage, cancellationToken); + return await ApiHttpClient.ExecuteAsync(requestMessage, cancellationToken); } @@ -114,11 +113,11 @@ public async Task ExecuteAsJsonAsync(CancellationToken cancellationToken return await ApiHttpClient.ExecuteAsJsonAsync(requestMessage, cancellationToken); } - public async Task> SendAsync(CancellationToken cancellationToken = default) + public async Task> SendAsync(CancellationToken cancellationToken = default) { var requestMessage = Build(); - return await ApiHttpClient.SendAsync(requestMessage, cancellationToken); + return await ApiHttpClient.SendAsync(requestMessage, cancellationToken); } diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/AsAssociate/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyApprovalRulesGet.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/AsAssociate/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyApprovalRulesGet.cs index 9c8f5ed1bb2..96e9a7fdb3c 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/AsAssociate/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyApprovalRulesGet.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/AsAssociate/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyApprovalRulesGet.cs @@ -1,4 +1,3 @@ -using System; using System.Globalization; using System.Collections.Generic; using System.Net.Http; @@ -11,7 +10,7 @@ namespace commercetools.Sdk.Api.Client.RequestBuilders.AsAssociate { - public partial class ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyApprovalRulesGet : ApiMethod, IApiMethod, commercetools.Sdk.Api.Client.IExpandableTrait, commercetools.Sdk.Api.Client.ISortableTrait, commercetools.Sdk.Api.Client.IPagingTrait, commercetools.Sdk.Api.Client.IQueryTrait, commercetools.Sdk.Api.Client.IErrorableTrait, commercetools.Sdk.Api.Client.IDeprecatable200Trait + public partial class ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyApprovalRulesGet : ApiMethod, IApiMethod, commercetools.Sdk.Api.Client.IExpandableTrait, commercetools.Sdk.Api.Client.ISortableTrait, commercetools.Sdk.Api.Client.IPagingTrait, commercetools.Sdk.Api.Client.IQueryTrait, commercetools.Sdk.Api.Client.IErrorableTrait, commercetools.Sdk.Api.Client.IDeprecatable200Trait { @@ -100,11 +99,11 @@ public ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyApp return this.AddQueryParam($"var.{varName}", predicateVar); } - public async Task ExecuteAsync(CancellationToken cancellationToken = default) + public async Task ExecuteAsync(CancellationToken cancellationToken = default) { var requestMessage = Build(); - return await ApiHttpClient.ExecuteAsync(requestMessage, cancellationToken); + return await ApiHttpClient.ExecuteAsync(requestMessage, cancellationToken); } @@ -114,11 +113,11 @@ public async Task ExecuteAsJsonAsync(CancellationToken cancellationToken return await ApiHttpClient.ExecuteAsJsonAsync(requestMessage, cancellationToken); } - public async Task> SendAsync(CancellationToken cancellationToken = default) + public async Task> SendAsync(CancellationToken cancellationToken = default) { var requestMessage = Build(); - return await ApiHttpClient.SendAsync(requestMessage, cancellationToken); + return await ApiHttpClient.SendAsync(requestMessage, cancellationToken); } diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/AsAssociate/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyApprovalRulesRequestBuilder.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/AsAssociate/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyApprovalRulesRequestBuilder.cs index 38799ec7805..26b7a15a729 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/AsAssociate/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyApprovalRulesRequestBuilder.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/AsAssociate/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyApprovalRulesRequestBuilder.cs @@ -27,14 +27,14 @@ public ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyApp this.BusinessUnitKey = businessUnitKey; } - public ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyApprovalRulesPost Post(commercetools.Sdk.Api.Models.ApprovalRules.IApprovalRuleDraft approvalRuleDraft) + public ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyApprovalRulesGet Get() { - return new ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyApprovalRulesPost(ApiHttpClient, SerializerService, ProjectKey, AssociateId, BusinessUnitKey, approvalRuleDraft); + return new ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyApprovalRulesGet(ApiHttpClient, ProjectKey, AssociateId, BusinessUnitKey); } - public ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyApprovalRulesGet Get() + public ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyApprovalRulesPost Post(commercetools.Sdk.Api.Models.ApprovalRules.IApprovalRuleDraft approvalRuleDraft) { - return new ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyApprovalRulesGet(ApiHttpClient, ProjectKey, AssociateId, BusinessUnitKey); + return new ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyApprovalRulesPost(ApiHttpClient, SerializerService, ProjectKey, AssociateId, BusinessUnitKey, approvalRuleDraft); } diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/ApprovalFlows/ApprovalFlowPagedQueryResponse.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/ApprovalFlows/ApprovalFlowPagedQueryResponse.cs new file mode 100644 index 00000000000..2a14d0ac8df --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/ApprovalFlows/ApprovalFlowPagedQueryResponse.cs @@ -0,0 +1,22 @@ +using System.Collections.Generic; +using System.Linq; + + +namespace commercetools.Sdk.Api.Models.ApprovalFlows +{ + + public partial class ApprovalFlowPagedQueryResponse : IApprovalFlowPagedQueryResponse + { + public long Limit { get; set; } + + public long Offset { get; set; } + + public long Count { get; set; } + + public long? Total { get; set; } + + public IList Results { get; set; } + public IEnumerable ResultsEnumerable { set => Results = value.ToList(); } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/ApprovalFlows/IApprovalFlowPagedQueryResponse.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/ApprovalFlows/IApprovalFlowPagedQueryResponse.cs new file mode 100644 index 00000000000..d5f043edec1 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/ApprovalFlows/IApprovalFlowPagedQueryResponse.cs @@ -0,0 +1,24 @@ +using System.Collections.Generic; +using System.Linq; +using commercetools.Base.CustomAttributes; + +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Models.ApprovalFlows +{ + [DeserializeAs(typeof(commercetools.Sdk.Api.Models.ApprovalFlows.ApprovalFlowPagedQueryResponse))] + public partial interface IApprovalFlowPagedQueryResponse + { + long Limit { get; set; } + + long Offset { get; set; } + + long Count { get; set; } + + long? Total { get; set; } + + IList Results { get; set; } + IEnumerable ResultsEnumerable { set => Results = value.ToList(); } + + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/ApprovalRules/ApprovalRulePagedQueryResponse.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/ApprovalRules/ApprovalRulePagedQueryResponse.cs new file mode 100644 index 00000000000..25ce4892872 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/ApprovalRules/ApprovalRulePagedQueryResponse.cs @@ -0,0 +1,22 @@ +using System.Collections.Generic; +using System.Linq; + + +namespace commercetools.Sdk.Api.Models.ApprovalRules +{ + + public partial class ApprovalRulePagedQueryResponse : IApprovalRulePagedQueryResponse + { + public long Limit { get; set; } + + public long Offset { get; set; } + + public long Count { get; set; } + + public long? Total { get; set; } + + public IList Results { get; set; } + public IEnumerable ResultsEnumerable { set => Results = value.ToList(); } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/ApprovalRules/IApprovalRulePagedQueryResponse.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/ApprovalRules/IApprovalRulePagedQueryResponse.cs new file mode 100644 index 00000000000..0e2ed4dba50 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/ApprovalRules/IApprovalRulePagedQueryResponse.cs @@ -0,0 +1,24 @@ +using System.Collections.Generic; +using System.Linq; +using commercetools.Base.CustomAttributes; + +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Models.ApprovalRules +{ + [DeserializeAs(typeof(commercetools.Sdk.Api.Models.ApprovalRules.ApprovalRulePagedQueryResponse))] + public partial interface IApprovalRulePagedQueryResponse + { + long Limit { get; set; } + + long Offset { get; set; } + + long Count { get; set; } + + long? Total { get; set; } + + IList Results { get; set; } + IEnumerable ResultsEnumerable { set => Results = value.ToList(); } + + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/ApprovalFlows/ApprovalFlowPagedQueryResponseQueryBuilderDsl.cs b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/ApprovalFlows/ApprovalFlowPagedQueryResponseQueryBuilderDsl.cs new file mode 100644 index 00000000000..9fa33513fd5 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/ApprovalFlows/ApprovalFlowPagedQueryResponseQueryBuilderDsl.cs @@ -0,0 +1,57 @@ +using System; + +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Predicates.Query.ApprovalFlows +{ + + public partial class ApprovalFlowPagedQueryResponseQueryBuilderDsl + { + public ApprovalFlowPagedQueryResponseQueryBuilderDsl() + { + } + + public static ApprovalFlowPagedQueryResponseQueryBuilderDsl Of() + { + return new ApprovalFlowPagedQueryResponseQueryBuilderDsl(); + } + + public IComparisonPredicateBuilder Limit() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("limit")), + p => new CombinationQueryPredicate(p, ApprovalFlowPagedQueryResponseQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder Offset() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("offset")), + p => new CombinationQueryPredicate(p, ApprovalFlowPagedQueryResponseQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder Count() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("count")), + p => new CombinationQueryPredicate(p, ApprovalFlowPagedQueryResponseQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder Total() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("total")), + p => new CombinationQueryPredicate(p, ApprovalFlowPagedQueryResponseQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public CombinationQueryPredicate Results( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("results")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.ApprovalFlows.ApprovalFlowQueryBuilderDsl.Of())), + ApprovalFlowPagedQueryResponseQueryBuilderDsl.Of); + } + public ICollectionPredicateBuilder Results() + { + return new CollectionPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("results")), + p => new CombinationQueryPredicate(p, ApprovalFlowPagedQueryResponseQueryBuilderDsl.Of)); + } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/ApprovalRules/ApprovalRulePagedQueryResponseQueryBuilderDsl.cs b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/ApprovalRules/ApprovalRulePagedQueryResponseQueryBuilderDsl.cs new file mode 100644 index 00000000000..c4b1310d623 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/ApprovalRules/ApprovalRulePagedQueryResponseQueryBuilderDsl.cs @@ -0,0 +1,57 @@ +using System; + +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Predicates.Query.ApprovalRules +{ + + public partial class ApprovalRulePagedQueryResponseQueryBuilderDsl + { + public ApprovalRulePagedQueryResponseQueryBuilderDsl() + { + } + + public static ApprovalRulePagedQueryResponseQueryBuilderDsl Of() + { + return new ApprovalRulePagedQueryResponseQueryBuilderDsl(); + } + + public IComparisonPredicateBuilder Limit() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("limit")), + p => new CombinationQueryPredicate(p, ApprovalRulePagedQueryResponseQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder Offset() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("offset")), + p => new CombinationQueryPredicate(p, ApprovalRulePagedQueryResponseQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder Count() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("count")), + p => new CombinationQueryPredicate(p, ApprovalRulePagedQueryResponseQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder Total() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("total")), + p => new CombinationQueryPredicate(p, ApprovalRulePagedQueryResponseQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public CombinationQueryPredicate Results( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("results")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.ApprovalRules.ApprovalRuleQueryBuilderDsl.Of())), + ApprovalRulePagedQueryResponseQueryBuilderDsl.Of); + } + public ICollectionPredicateBuilder Results() + { + return new CollectionPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("results")), + p => new CombinationQueryPredicate(p, ApprovalRulePagedQueryResponseQueryBuilderDsl.Of)); + } + + } +} diff --git a/references.txt b/references.txt index da8cae39b4e..655d845d4d0 100644 --- a/references.txt +++ b/references.txt @@ -141,3 +141,4 @@ a44de0c2cd0321800d70ff1ad49e7840348eb67f 587bcbd88d61bb33cc14e6cf42904cf8886c20ae a5a20f0153fbf5ac4d41c0d64e5eb1c3e7a5a167 d4256aba3d29f5f6c44d449e9f450f3c0a936867 +017da3f9321bfcc5ca12023eb1c42fa0be8ad5ee