4 August 2023
Composable Commerce
HTTP API
Enhancement
CartsOrdersGraphQL

We introduced the taxedPricePortions field on CustomLineItem to add additional support for Carts containing multiple Shipping Methods.

Changes:

  • [API] Added the taxedPricePortions field to CustomLineItem.
  • [API] Added the shippingKey field to Set CustomLineItem TaxAmount and Set CustomLineItem TaxRate update actions on Carts.
  • [API] Added the shippingKey field to Set CustomLineItem TaxAmount and Set CustomLineItem TaxRate update actions on Order Edits.
  • [GraphQL API] Changed the CustomLineItem type:
    • Added the taxedPricePortions field to the CustomLineItem type.
  • [GraphQL API] Changed the SetCartCustomLineItemTaxAmount type:
    • Added the shippingKey field to the SetCartCustomLineItemTaxAmount type.
  • [GraphQL API] Changed the SetCartCustomLineItemTaxRate type:
    • Added the shippingKey field to the SetCartCustomLineItemTaxRate type.
  • [GraphQL API] Changed the SetStagedOrderCustomLineItemTaxAmount type:
    • Added the shippingKey field to the SetStagedOrderCustomLineItemTaxAmount type.
  • [GraphQL API] Changed the SetStagedOrderCustomLineItemTaxRate type:
    • Added the shippingKey field to the SetStagedOrderCustomLineItemTaxRate type.

The following changes were introduced in terms of GraphQL SDL:

extend type CustomLineItem {
  taxedPricePortions: [MethodTaxedPrice!]!
}

extend input SetCartCustomLineItemTaxAmount {
  shippingKey: String
}

extend input SetCartCustomLineItemTaxRate {
  shippingKey: String
}

extend input SetStagedOrderCustomLineItemTaxAmount {
  shippingKey: String
}

type SetStagedOrderCustomLineItemTaxAmountOutput implements StagedOrderUpdateActionOutput {
  type: String!
  shippingKey: String
}

extend input SetStagedOrderCustomLineItemTaxRate {
  shippingKey: String
}

type SetStagedOrderCustomLineItemTaxRateOutput implements StagedOrderUpdateActionOutput {
  type: String!
  shippingKey: String
}