From cf698cd3af3b573b675f7870116571c99d89e3fc Mon Sep 17 00:00:00 2001 From: "ct-sdks[bot]" <153784748+ct-sdks[bot]@users.noreply.github.com> Date: Mon, 4 May 2026 12:29:03 +0000 Subject: [PATCH 1/2] build(codegen): updating SDK --- .../main/resources/graphql/schema.graphqls | 23 ++++++++++++++++++- references.txt | 1 + 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a/commercetools/commercetools-graphql-api/src/main/resources/graphql/schema.graphqls b/commercetools/commercetools-graphql-api/src/main/resources/graphql/schema.graphqls index 45e2239780..5e585f37a2 100644 --- a/commercetools/commercetools-graphql-api/src/main/resources/graphql/schema.graphqls +++ b/commercetools/commercetools-graphql-api/src/main/resources/graphql/schema.graphqls @@ -3183,6 +3183,13 @@ type InStore implements CartDiscountQueryInterface & CartQueryInterface & Custom key: String ): CartDiscount cartDiscounts(where: String, sort: [String!], limit: Int, offset: Int): CartDiscountQueryResult! + discountCode( + """Queries with specified ID""" + id: String + """Queries with specified key""" + key: String + ): DiscountCode + discountCodes(where: String, sort: [String!], limit: Int, offset: Int): DiscountCodeQueryResult! product( projectExpandedProducts: Boolean = false localeProjection: [Locale!] @@ -4082,10 +4089,20 @@ type Mutation { """Queries with specified key""" key: String ): TaxCategory - createDiscountCode(draft: DiscountCodeDraft!): DiscountCode + createDiscountCode( + draft: DiscountCodeDraft! + """ + The mutation is only performed if the resource is part of the store. Can be used with store-specific OAuth permissions. + """ + storeKey: KeyReferenceInput + ): DiscountCode updateDiscountCode( version: Long! actions: [DiscountCodeUpdateAction!]! + """ + The mutation is only performed if the resource is part of the store. Can be used with store-specific OAuth permissions. + """ + storeKey: KeyReferenceInput """Queries with specified ID""" id: String """Queries with specified key""" @@ -4093,6 +4110,10 @@ type Mutation { ): DiscountCode deleteDiscountCode( version: Long! + """ + The mutation is only performed if the resource is part of the store. Can be used with store-specific OAuth permissions. + """ + storeKey: KeyReferenceInput """Queries with specified ID""" id: String """Queries with specified key""" diff --git a/references.txt b/references.txt index c5d3b691f6..f35f3d4e06 100644 --- a/references.txt +++ b/references.txt @@ -551,3 +551,4 @@ b079eb79b31912abbf6e28be6f2348e54a440110 b30881a27961c27ec2b180c43ad1a10b4e089c15 f74e542a084962a1c94f38acb28259265d218d7e 303dab396d987c4f6ed7c9013e664cd40807e948 +b08eacf0757aabb265b9ff2b4a117e06d48e175c From 2c5ae06f7f232f54935badfc676220a20f9e3079 Mon Sep 17 00:00:00 2001 From: "ct-sdks[bot]" <153784748+ct-sdks[bot]@users.noreply.github.com> Date: Fri, 8 May 2026 14:58:49 +0000 Subject: [PATCH 2/2] build(codegen): updating SDK --- .../main/resources/graphql/schema.graphqls | 19 +++++++++++++++++++ references.txt | 1 + 2 files changed, 20 insertions(+) diff --git a/commercetools/commercetools-graphql-api/src/main/resources/graphql/schema.graphqls b/commercetools/commercetools-graphql-api/src/main/resources/graphql/schema.graphqls index 5e585f37a2..b06d743a89 100644 --- a/commercetools/commercetools-graphql-api/src/main/resources/graphql/schema.graphqls +++ b/commercetools/commercetools-graphql-api/src/main/resources/graphql/schema.graphqls @@ -3014,6 +3014,10 @@ type Extension implements Versioned & ReferenceExpandable { """ BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta """ + dependenciesRef: [Reference!]! + """ + BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta + """ additionalContext: ExtensionAdditionalContext """ BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta @@ -13254,6 +13258,10 @@ input ExtensionDraft { """ BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta """ + dependencies: [ResourceIdentifierInput!] + """ + BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta + """ additionalContext: ExtensionAdditionalContextInput """ BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta @@ -13272,6 +13280,10 @@ input ExtensionUpdateAction { BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta """ setExpansionPaths: SetExtensionExpansionPaths + """ + BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta + """ + setDependencies: SetExtensionDependencies setKey: SetExtensionKey setTimeoutInMs: SetExtensionTimeoutInMs } @@ -15945,6 +15957,13 @@ input SetExtensionAdditionalContext { additionalContext: ExtensionAdditionalContextInput! } +""" +BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta +""" +input SetExtensionDependencies { + dependencies: [ResourceIdentifierInput!]! +} + """ BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta """ diff --git a/references.txt b/references.txt index f35f3d4e06..85c3f03c87 100644 --- a/references.txt +++ b/references.txt @@ -552,3 +552,4 @@ b30881a27961c27ec2b180c43ad1a10b4e089c15 f74e542a084962a1c94f38acb28259265d218d7e 303dab396d987c4f6ed7c9013e664cd40807e948 b08eacf0757aabb265b9ff2b4a117e06d48e175c +f83d94426436ce8bcb69883a6c74e92b55f684b5