All Release Notes
Added 'discounted' field to 'ProductPriceDataInput' type in GraphQL
7 February 2023
Composable Commerce
HTTP API
Enhancement
GraphQLPricing and Discounts
To align with the PriceDraft object in the HTTP API we added the discounted field to the ProductPriceDataInput type in the GraphQL schema.
Furthermore, we fixed the field type for the DiscountedProductPriceValueInput type in the GraphQL API.
Changes:
- [GraphQL API] Added
discountedfield to theProductPriceDataInputtype. - [GraphQL API] Changed the
DiscountedProductPriceValueInput.discountfield type fromReferenceInput!toResourceIdentifierInput!.
The following changes were introduced in terms of GraphQL SDL:
extend input ProductPriceDataInput {discounted: DiscountedProductPriceValueInput}input DiscountedProductPriceValueInput {value: BaseMoneyInput!discount: ResourceIdentifierInput!}