INPUT_OBJECT

DiscountCreateInput

link GraphQL Schema definition

1input DiscountCreateInput {
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
34store: StoreInput!
35
36# Exactly one input field should be provided
37addMarkets: [MarketInput!]
38}

link Required by