Last active
October 25, 2019 03:59
-
-
Save OlegIlyenko/048244aa1adac27b7e4886f920529037 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extend type Mutation { | |
createDiscountCode(draft: DiscountCodeDraft!): DiscountCode | |
updateDiscountCode( | |
id: String!, | |
version: Long!, | |
actions: [DiscountCodeUpdateAction!]!): DiscountCode | |
deleteDiscountCode(id: String!, version: Long!): DiscountCode | |
} | |
input DiscountCodeDraft { | |
code: String! | |
name: [LocalizedStringInput!] | |
description: [LocalizedStringInput!] | |
cartDiscounts: [ReferenceInput!]! | |
isActive: Boolean = true | |
custom: CustomFieldsDraft | |
# ... | |
} | |
input CustomFieldsDraft { | |
typeId: String | |
typeKey: String | |
type: ResourceIdentifierInput | |
fields: [CustomFieldInput!] | |
} | |
input LocalizedStringInput { | |
locale: Locale! | |
value: String! | |
} | |
input ReferenceInput { | |
typeId: String! | |
id: String! | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment