7 February 2023
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
discounted
field to theProductPriceDataInput
type. - [GraphQL API] Changed the
DiscountedProductPriceValueInput.discount
field type fromReferenceInput!
toResourceIdentifierInput!
.
The following changes were introduced in terms of GraphQL SDL:
extend input ProductPriceDataInput {
discounted: DiscountedProductPriceValueInput
}
input DiscountedProductPriceValueInput {
value: BaseMoneyInput!
discount: ResourceIdentifierInput!
}