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 Mar 7, 2024
1 parent b1e1f11 commit 0925e2d
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 3 deletions.
1 change: 1 addition & 0 deletions changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
<details>
<summary>Added Property(s)</summary>

- added property `taxPortions` to type `TaxedItemPrice`
- added property `totalTax` to type `TaxedPriceDraft`
- added property `id` to type `ProductVariantAvailability`
- added property `version` to type `ProductVariantAvailability`
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
using commercetools.Sdk.Api.Models.Common;
using System.Collections.Generic;
using System.Linq;
using commercetools.Base.CustomAttributes;

// ReSharper disable CheckNamespace
Expand All @@ -11,6 +13,10 @@ public partial interface ITaxedItemPrice

ICentPrecisionMoney TotalGross { get; set; }

IList<ITaxPortion> TaxPortions { get; set; }
IEnumerable<ITaxPortion> TaxPortionsEnumerable { set => TaxPortions = value.ToList(); }


ICentPrecisionMoney TotalTax { get; set; }

}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
using commercetools.Sdk.Api.Models.Common;
using System.Collections.Generic;
using System.Linq;


namespace commercetools.Sdk.Api.Models.Carts
Expand All @@ -10,6 +12,10 @@ public partial class TaxedItemPrice : ITaxedItemPrice

public ICentPrecisionMoney TotalGross { get; set; }

public IList<ITaxPortion> TaxPortions { get; set; }
public IEnumerable<ITaxPortion> TaxPortionsEnumerable { set => TaxPortions = value.ToList(); }


public ICentPrecisionMoney TotalTax { get; set; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,19 @@ public CombinationQueryPredicate<TaxedItemPriceQueryBuilderDsl> TotalGross(
TaxedItemPriceQueryBuilderDsl.Of);
}

public CombinationQueryPredicate<TaxedItemPriceQueryBuilderDsl> TaxPortions(
Func<commercetools.Sdk.Api.Predicates.Query.Carts.TaxPortionQueryBuilderDsl, CombinationQueryPredicate<commercetools.Sdk.Api.Predicates.Query.Carts.TaxPortionQueryBuilderDsl>> fn)
{
return new CombinationQueryPredicate<TaxedItemPriceQueryBuilderDsl>(ContainerQueryPredicate.Of()
.Parent(ConstantQueryPredicate.Of().Constant("taxPortions"))
.Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Carts.TaxPortionQueryBuilderDsl.Of())),
TaxedItemPriceQueryBuilderDsl.Of);
}
public ICollectionPredicateBuilder<TaxedItemPriceQueryBuilderDsl> TaxPortions()
{
return new CollectionPredicateBuilder<TaxedItemPriceQueryBuilderDsl>(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("taxPortions")),
p => new CombinationQueryPredicate<TaxedItemPriceQueryBuilderDsl>(p, TaxedItemPriceQueryBuilderDsl.Of));
}
public CombinationQueryPredicate<TaxedItemPriceQueryBuilderDsl> TotalTax(
Func<commercetools.Sdk.Api.Predicates.Query.Common.CentPrecisionMoneyQueryBuilderDsl, CombinationQueryPredicate<commercetools.Sdk.Api.Predicates.Query.Common.CentPrecisionMoneyQueryBuilderDsl>> fn)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6755,8 +6755,8 @@ type OrderLineItemDiscountSet implements MessagePayload & OrderMessagePayload {
lineItemKey: String
discountedPricePerQuantity: [DiscountedLineItemPriceForQuantity!]!
totalPrice: Money!
taxedPrice: TaxedItemPrice
taxedPricePortions: [MethodTaxedPrice!]!
taxedPrice: TaxedItemPrice
type: String!
}

Expand All @@ -6775,9 +6775,9 @@ type OrderLineItemRemoved implements MessagePayload & OrderMessagePayload {
newQuantity: Long!
newState: Set!
newTotalPrice: Money!
newTaxedPrice: TaxedItemPrice
newPrice: ProductPrice
newShippingDetails: ItemShippingDetails
newTaxedPrice: TaxedItemPrice
type: String!
}

Expand Down Expand Up @@ -12604,12 +12604,12 @@ type ShippingInfo {
taxRate: TaxRate
deliveries: [Delivery!]!
discountedPrice: DiscountedLineItemPrice
taxedPrice: TaxedItemPrice
shippingMethodState: ShippingMethodState!
shippingMethod: ShippingMethod
shippingMethodRef: Reference
taxCategory: TaxCategory
taxCategoryRef: Reference
taxedPrice: TaxedItemPrice
}

input ShippingInfoImportDraft {
Expand Down Expand Up @@ -13832,6 +13832,7 @@ input TaxRateInput {
type TaxedItemPrice {
totalNet: Money!
totalGross: Money!
taxPortions: [TaxPortion!]!
totalTax: Money
}

Expand Down
1 change: 1 addition & 0 deletions references.txt
Original file line number Diff line number Diff line change
Expand Up @@ -227,3 +227,4 @@ ffed231e91d01608e1bb08ecc1883cf00d9d9293
15f9e1d4f4595a72184d80cfb317402e5676eac9
9426f11f6f1755829c81c7db9fce597fdda6ade6
c11681240a69eb894764895d5dcfd21bf6812352
cbff068f3b95e6021ff4d76bd7684ddd6dcfce6f

0 comments on commit 0925e2d

Please sign in to comment.