Add Gift Card Expiration Config and Webhook Name

2/5/2026, 12:00:52 AM

The schema now includes a new enum GiftCardConfigurationExpirationUnit with values DAYS, MONTHS, and YEARS. An object type GiftCardExpirationConfiguration exposes two non‑null fields: expirationUnit and expirationValue. GiftCardConfiguration is extended with a nullable field expirationConfiguration that returns a GiftCardExpirationConfiguration if the shop has set a default expiration. The GiftCardConfiguration structure is unchanged otherwise, enabling reading or updating the default expiration settings through the new field. WebhookSubscription receives a new string field name, providing a human‑readable identifier for each subscription. Existing queries, mutations, and directives remain unchanged; only these added fields affect data retrieval and mutation logic.

Type Changes

➕ Added Types (2)

📋GiftCardConfigurationExpirationUnit➕ AddedENUM

The supported units for gift card expiration.

Values: DAYS, MONTHS, YEARS
🏗️GiftCardExpirationConfiguration➕ AddedOBJECT

Represents the default expiration configuration of gift cards on the shop.

Fields: expirationUnit, expirationValue

🔄 Modified Types (2)

🏗️GiftCardConfiguration🔄 Modified
Field added: expirationConfiguration

The default expiration configuration of gift cards on the shop. This field is null if the shop hasn't set a default expiration for gift cards.

🏗️WebhookSubscription🔄 Modified
Field added: name

A human-readable name for the webhook subscription.