All Release Notes
User defined key attribute on Product Discount
4 June 2019
Enhancement
GraphQLPricing and DiscountsProduct Catalog
Product Discounts now have a user defined key
attribute. You can use the key
attribute when querying, updating, or deleting a ProductDiscount
.
- [API] Added the
key
attribute on theProductDiscount
andProductDiscountDraft
representations. - [API] You can now get, update, and delete a Product Discount by its key.
- [GraphQL API] Added the following types to the GraphQL schema:
SetProductDiscountKey
. - [GraphQL API] Changed the
ProductDiscount
type:- Added the
key
field to theProductDiscount
type.
- Added the
- [GraphQL API] Changed the
ProductDiscountUpdateAction
type:- Input field
setKey
was added toProductDiscountUpdateAction
type
- Input field
- [GraphQL API] Changed the
Mutation
type:Mutation.updateProductDiscount(id)
description is changed- Argument
key
was added toMutation.updateProductDiscount
field Mutation.deleteProductDiscount(id)
description is changedMutation.updateProductDiscount(id)
type changed fromString!
toString
Mutation.deleteProductDiscount(id)
type changed fromString!
toString
- Argument
key
was added toMutation.deleteProductDiscount
field
Introduced the following changes to the GraphQL schema (in SDL format):
extend type ProductDiscount {key: String}extend input ProductDiscountUpdateAction {setKey: SetProductDiscountKey}extend input ProductDiscountDraft {key: String}input SetProductDiscountKey {key: String}