Skip to content

Commit

Permalink
build(codegen): updating SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
ct-sdks[bot] committed Jan 22, 2025
1 parent 50e857b commit 9484948
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
1 change: 1 addition & 0 deletions changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<details>
<summary>Changed Property(s)</summary>

- :warning: changed property `discount` of type `DiscountedTotalPricePortion` from type `CartDiscountReference` to `Reference`
- :warning: changed property `exact` of type `SearchExactExpression` from type `SearchAnyValue` to `SearchExactValue`
</details>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using commercetools.Sdk.Api.Models.CartDiscounts;
using commercetools.Sdk.Api.Models.Common;


Expand All @@ -7,7 +6,7 @@ namespace commercetools.Sdk.Api.Models.Carts

public partial class DiscountedTotalPricePortion : IDiscountedTotalPricePortion
{
public ICartDiscountReference Discount { get; set; }
public IReference Discount { get; set; }

public ITypedMoney DiscountedAmount { get; set; }
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using commercetools.Sdk.Api.Models.CartDiscounts;
using commercetools.Sdk.Api.Models.Common;
using commercetools.Base.CustomAttributes;
// ReSharper disable CheckNamespace
Expand All @@ -7,7 +6,7 @@ namespace commercetools.Sdk.Api.Models.Carts
[DeserializeAs(typeof(commercetools.Sdk.Api.Models.Carts.DiscountedTotalPricePortion))]
public partial interface IDiscountedTotalPricePortion
{
ICartDiscountReference Discount { get; set; }
IReference Discount { get; set; }

ITypedMoney DiscountedAmount { get; set; }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ public static DiscountedTotalPricePortionQueryBuilderDsl Of()
}

public CombinationQueryPredicate<DiscountedTotalPricePortionQueryBuilderDsl> Discount(
Func<commercetools.Sdk.Api.Predicates.Query.CartDiscounts.CartDiscountReferenceQueryBuilderDsl, CombinationQueryPredicate<commercetools.Sdk.Api.Predicates.Query.CartDiscounts.CartDiscountReferenceQueryBuilderDsl>> fn)
Func<commercetools.Sdk.Api.Predicates.Query.Common.ReferenceQueryBuilderDsl, CombinationQueryPredicate<commercetools.Sdk.Api.Predicates.Query.Common.ReferenceQueryBuilderDsl>> fn)
{
return new CombinationQueryPredicate<DiscountedTotalPricePortionQueryBuilderDsl>(ContainerQueryPredicate.Of()
.Parent(ConstantQueryPredicate.Of().Constant("discount"))
.Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.CartDiscounts.CartDiscountReferenceQueryBuilderDsl.Of())),
.Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Common.ReferenceQueryBuilderDsl.Of())),
DiscountedTotalPricePortionQueryBuilderDsl.Of);
}

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

0 comments on commit 9484948

Please sign in to comment.