INPUT_OBJECT

VoucherUpdateInput

link GraphQL Schema definition

1input VoucherUpdateInput {
2
3name: String
4
5status: Status
6
7startAt: DateTimeTz
8
9stopAt: DateTimeTz
10
11method: VoucherMethod
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
24combineWithOtherVouchers: Boolean
25
26reuse: Boolean
27
28type: VoucherType
29
30entryPointStrategy: VoucherEntryPointStrategy
31
32conversionHTML: String
33
34# Required permission: Voucher.attributes:write
35assignMappedAttributes: [MappedAttributeAssignInput!]
36
37# Required permission: Voucher.attributes:write
38unassignMappedAttributes: [MappedAttributeUnassignInput!]
39
40# Required permission: Voucher.attributes:write
41assignDynamicAttributes: [DynamicAttributeAssignInput!]
42
43# Required permission: Voucher.attributes:write
44unassignDynamicAttributes: [DynamicAttributeUnassignInput!]
45
46# Exactly one input field should be provided
47addMarkets: [MarketInput!]
48
49# Exactly one input field should be provided
50removeMarkets: [MarketInput!]
51
52# Assign an external ID to reference this object by it later
53externalId: String
54}

link Required by