13 June 2022
Pricing and DiscountsMessages/SubscriptionsGraphQL
You can now set the
discounted value of a Standalone Price via update action also. Before, it was only possible to set that value during creation of the Standalone Price.Changes:
- [API] Added SetStandalonePriceDiscountedPrice update action to Standalone Prices.
- [API] Added StandalonePriceExternalDiscountSet Message.
- [GraphQL API] Added the following types to the GraphQL schema:
SetStandalonePriceDiscountedPrice,StandalonePriceExternalDiscountSet. - [GraphQL API] Changed the
StandalonePriceUpdateActiontype:- Input field
setDiscountedPricewas added toStandalonePriceUpdateActiontype
- Input field
The following changes were introduced in terms of GraphQL SDL:
extend input StandalonePriceUpdateAction {
setDiscountedPrice: SetStandalonePriceDiscountedPrice
}
input SetStandalonePriceDiscountedPrice {
discounted: DiscountedProductPriceValueInput
}
type StandalonePriceExternalDiscountSet implements MessagePayload {
discounted: DiscountedProductPriceValue
type: String!
}