Skip to content

Commit

Permalink
Merge pull request #279 from commercetools/gen-sdk-updates
Browse files Browse the repository at this point in the history
Update generated SDKs
  • Loading branch information
kodiakhq[bot] authored Feb 22, 2024
2 parents a2704f4 + 1cbc060 commit b7d3742
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 6 deletions.
8 changes: 2 additions & 6 deletions changes.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
**Api changes**

<details>
<summary>Required Property(s)</summary>
<summary>Added Property(s)</summary>

- changed property `priceMode` of type `CustomLineItemDraft` to be optional
- changed property `oldShipmentState` of type `OrderShipmentStateChangedMessage` to be optional
- changed property `oldOrderState` of type `OrderStateChangedMessage` to be optional
- changed property `oldShipmentState` of type `OrderShipmentStateChangedMessagePayload` to be optional
- changed property `oldOrderState` of type `OrderStateChangedMessagePayload` to be optional
- added property `totalTax` to type `TaxedPriceDraft`
</details>

Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,7 @@ public partial interface ITaxedPriceDraft
IEnumerable<ITaxPortionDraft> TaxPortionsEnumerable { set => TaxPortions = value.ToList(); }


ITypedMoneyDraft TotalTax { get; set; }

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,7 @@ public partial class TaxedPriceDraft : ITaxedPriceDraft
public IList<ITaxPortionDraft> TaxPortions { get; set; }
public IEnumerable<ITaxPortionDraft> TaxPortionsEnumerable { set => TaxPortions = value.ToList(); }


public ITypedMoneyDraft TotalTax { get; set; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,15 @@ public ICollectionPredicateBuilder<TaxedPriceDraftQueryBuilderDsl> TaxPortions()
return new CollectionPredicateBuilder<TaxedPriceDraftQueryBuilderDsl>(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("taxPortions")),
p => new CombinationQueryPredicate<TaxedPriceDraftQueryBuilderDsl>(p, TaxedPriceDraftQueryBuilderDsl.Of));
}
public CombinationQueryPredicate<TaxedPriceDraftQueryBuilderDsl> TotalTax(
Func<commercetools.Sdk.Api.Predicates.Query.Common.TypedMoneyDraftQueryBuilderDsl, CombinationQueryPredicate<commercetools.Sdk.Api.Predicates.Query.Common.TypedMoneyDraftQueryBuilderDsl>> fn)
{
return new CombinationQueryPredicate<TaxedPriceDraftQueryBuilderDsl>(ContainerQueryPredicate.Of()
.Parent(ConstantQueryPredicate.Of().Constant("totalTax"))
.Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Common.TypedMoneyDraftQueryBuilderDsl.Of())),
TaxedPriceDraftQueryBuilderDsl.Of);
}


}
}
1 change: 1 addition & 0 deletions reference.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
45d710745130242337bd593c44bcdcbedd249313
1 change: 1 addition & 0 deletions references.txt
Original file line number Diff line number Diff line change
Expand Up @@ -223,3 +223,4 @@ ffed231e91d01608e1bb08ecc1883cf00d9d9293
2645451ae6aef245e333b2f30cf5cb3627f71403
65619eef7e065950cbb92467d72eaacc68004a14
65619eef7e065950cbb92467d72eaacc68004a14
48bbac8851ae864319c404607e9f10b874df0e3f

0 comments on commit b7d3742

Please sign in to comment.