SaleToggle
The event informs about the start or end of the sale.
Added in Saleor 3.5DEPRECATED: this event will be removed in Saleor 4.0. Use PromotionStarted
and PromotionEnded
events instead.
type SaleToggle implements Event {
issuedAt: DateTime
version: String
issuingPrincipal: IssuingPrincipal
recipient: App
sale(channel: String): Sale
}
Fields
SaleToggle.issuedAt
● DateTime
scalar miscellaneous
Time of the event.
SaleToggle.version
● String
scalar miscellaneous
Saleor version that triggered the event.
SaleToggle.issuingPrincipal
● IssuingPrincipal
union miscellaneous
The user or application that triggered the event.
SaleToggle.recipient
● App
object apps
The application receiving the webhook.
SaleToggle.sale
● Sale
object discounts
The sale the event relates to.
Added in Saleor 3.5
SaleToggle.sale.channel
●String
scalar miscellaneousSlug of a channel for which the data should be returned.