Skip to content

Commit b08eacf

Browse files
Updated GraphQL schema
1 parent 303dab3 commit b08eacf

1 file changed

Lines changed: 22 additions & 1 deletion

File tree

api-specs/graphql/schema.sdl

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3183,6 +3183,13 @@ type InStore implements CartDiscountQueryInterface & CartQueryInterface & Custom
31833183
key: String
31843184
): CartDiscount
31853185
cartDiscounts(where: String, sort: [String!], limit: Int, offset: Int): CartDiscountQueryResult!
3186+
discountCode(
3187+
"""Queries with specified ID"""
3188+
id: String
3189+
"""Queries with specified key"""
3190+
key: String
3191+
): DiscountCode
3192+
discountCodes(where: String, sort: [String!], limit: Int, offset: Int): DiscountCodeQueryResult!
31863193
product(
31873194
projectExpandedProducts: Boolean = false
31883195
localeProjection: [Locale!]
@@ -4082,17 +4089,31 @@ type Mutation {
40824089
"""Queries with specified key"""
40834090
key: String
40844091
): TaxCategory
4085-
createDiscountCode(draft: DiscountCodeDraft!): DiscountCode
4092+
createDiscountCode(
4093+
draft: DiscountCodeDraft!
4094+
"""
4095+
The mutation is only performed if the resource is part of the store. Can be used with store-specific OAuth permissions.
4096+
"""
4097+
storeKey: KeyReferenceInput
4098+
): DiscountCode
40864099
updateDiscountCode(
40874100
version: Long!
40884101
actions: [DiscountCodeUpdateAction!]!
4102+
"""
4103+
The mutation is only performed if the resource is part of the store. Can be used with store-specific OAuth permissions.
4104+
"""
4105+
storeKey: KeyReferenceInput
40894106
"""Queries with specified ID"""
40904107
id: String
40914108
"""Queries with specified key"""
40924109
key: String
40934110
): DiscountCode
40944111
deleteDiscountCode(
40954112
version: Long!
4113+
"""
4114+
The mutation is only performed if the resource is part of the store. Can be used with store-specific OAuth permissions.
4115+
"""
4116+
storeKey: KeyReferenceInput
40964117
"""Queries with specified ID"""
40974118
id: String
40984119
"""Queries with specified key"""

0 commit comments

Comments
 (0)