INPUT_OBJECT

DiscountUpdateInput

link GraphQL Schema definition

1input DiscountUpdateInput {
2
3name: String
4
5status: Status
6
7startAt: DateTimeTz
8
9stopAt: DateTimeTz
10
11method: DiscountMethod
12
13# Accepted only for CODE method. If not provided, will be auto-generated.
14code: String
15
16# Required only for URL method.
17url: String
18
19priority: Int
20
21# Pass 0 to mark as unlimited, greater than 0 otherwise
22maxUsages: Int
23
24combineWithOtherDiscounts: Boolean
25
26reuse: Boolean
27
28type: DiscountType
29
30entryPointStrategy: DiscountEntryPointStrategy
31
32conversionHTML: String
33
34# Exactly one input field should be provided
35addMarkets: [MarketInput!]
36
37# Exactly one input field should be provided
38removeMarkets: [MarketInput!]
39}

link Required by