From d205076e8dccf49262fc240b5188516eb9c89ea3 Mon Sep 17 00:00:00 2001 From: Lukasz Ostrowski Date: Tue, 10 Feb 2026 18:50:03 +0100 Subject: [PATCH 01/10] add reasons for lines and returns --- schema-main.graphql | 4544 +++++++++-------- src/fragments/orders.ts | 19 + src/graphql/hooks.generated.ts | 24 +- src/graphql/typePolicies.generated.ts | 37 +- src/graphql/types.generated.ts | 359 +- .../OrderFulfillmentCard.tsx | 20 + .../OrderGrantRefundPage.tsx | 80 +- .../components/OrderGrantRefundPage/form.ts | 2 + .../components/OrderGrantRefundPage/utils.ts | 10 +- .../OrderReturnPage/OrderReturnPage.tsx | 134 +- .../components/OrderReturnPage/form.tsx | 4 + .../OrderTransactionRefundPage.tsx | 10 +- .../OrderTransactionReasonModal.tsx | 68 +- .../OrderTransactionRefundTableLine.tsx | 2 + .../formDefaults.ts | 3 + .../OrderTransactionRefundPage/utils.test.ts | 8 + .../OrderTransactionRefundPage/utils.ts | 8 +- src/orders/fixtures.ts | 12 + src/orders/fixtures/OrderFixture.ts | 4 + src/orders/mutations.ts | 2 + src/orders/utils/data.test.ts | 22 + .../OrderEditGrantRefund.tsx | 7 + .../OrderGrantRefund/OrderGrantRefund.tsx | 7 + src/orders/views/OrderReturn/OrderReturn.tsx | 5 + .../OrderReturn/useRefundWithinReturn.ts | 3 +- src/orders/views/OrderReturn/utils.tsx | 4 + .../OrderTransactionRefundCreate/handlers.ts | 1 + 27 files changed, 3184 insertions(+), 2215 deletions(-) diff --git a/schema-main.graphql b/schema-main.graphql index e82ef38ddfb..a753d863557 100644 --- a/schema-main.graphql +++ b/schema-main.graphql @@ -1,9 +1,3 @@ -schema { - query: Query - mutation: Mutation - subscription: Subscription -} - """Groups fields and operations into named groups.""" directive @doc( """Name of the grouping category""" @@ -26,14 +20,14 @@ type Query { webhook( """ID of the webhook.""" id: ID! - ): Webhook @doc(category: "Webhooks") + ): Webhook """ List of all available webhook events. Requires one of the following permissions: MANAGE_APPS. """ - webhookEvents: [WebhookEvent!] @doc(category: "Webhooks") @deprecated(reason: "Use `WebhookEventTypeAsyncEnum` and `WebhookEventTypeSyncEnum` to get available event types.") + webhookEvents: [WebhookEvent!] @deprecated(reason: "Use `WebhookEventTypeAsyncEnum` and `WebhookEventTypeSyncEnum` to get available event types.") """ Retrieve a sample payload for a given webhook event based on real data. It can be useful for some integrations where sample payload is required. @@ -41,7 +35,7 @@ type Query { webhookSamplePayload( """Name of the requested event type.""" eventType: WebhookSampleEventTypeEnum! - ): JSONString @doc(category: "Webhooks") + ): JSONString """ Look up a warehouse by ID. @@ -54,7 +48,7 @@ type Query { """External ID of a warehouse.""" externalReference: String - ): Warehouse @doc(category: "Products") + ): Warehouse """ List of warehouses. @@ -80,7 +74,7 @@ type Query { Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query. """ last: Int - ): WarehouseCountableConnection @doc(category: "Products") + ): WarehouseCountableConnection """ Returns a list of all translatable items of a given kind. @@ -129,7 +123,7 @@ type Query { taxConfiguration( """ID of a tax configuration.""" id: ID! - ): TaxConfiguration @doc(category: "Taxes") + ): TaxConfiguration """ List of tax configurations. @@ -155,7 +149,7 @@ type Query { Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query. """ last: Int - ): TaxConfigurationCountableConnection @doc(category: "Taxes") + ): TaxConfigurationCountableConnection """ Look up a tax class. @@ -165,7 +159,7 @@ type Query { taxClass( """ID of a tax class.""" id: ID! - ): TaxClass @doc(category: "Taxes") + ): TaxClass """ List of tax classes. @@ -194,7 +188,7 @@ type Query { Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query. """ last: Int - ): TaxClassCountableConnection @doc(category: "Taxes") + ): TaxClassCountableConnection """ Tax class rates grouped by country. @@ -204,10 +198,10 @@ type Query { taxCountryConfiguration( """Country for which to return tax class rates.""" countryCode: CountryCode! - ): TaxCountryConfiguration @doc(category: "Taxes") + ): TaxCountryConfiguration - "\\n\\nRequires one of the following permissions: AUTHENTICATED_STAFF_USER, AUTHENTICATED_APP." - taxCountryConfigurations: [TaxCountryConfiguration!] @doc(category: "Taxes") + "\n\nRequires one of the following permissions: AUTHENTICATED_STAFF_USER, AUTHENTICATED_APP." + taxCountryConfigurations: [TaxCountryConfiguration!] """ Look up a stock by ID @@ -217,7 +211,7 @@ type Query { stock( """ID of a stock""" id: ID! - ): Stock @doc(category: "Products") + ): Stock """ List of stocks. @@ -242,7 +236,7 @@ type Query { Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query. """ last: Int - ): StockCountableConnection @doc(category: "Products") + ): StockCountableConnection """Return information about the shop.""" shop: Shop! @@ -252,19 +246,19 @@ type Query { Requires one of the following permissions: MANAGE_ORDERS. """ - orderSettings: OrderSettings @doc(category: "Orders") @deprecated(reason: "Use the `channel` query to fetch the `orderSettings` field instead.") + orderSettings: OrderSettings @deprecated(reason: "Use the `channel` query to fetch the `orderSettings` field instead.") """ Gift card related settings from site settings. Requires one of the following permissions: MANAGE_GIFT_CARD. """ - giftCardSettings: GiftCardSettings! @doc(category: "Gift cards") + giftCardSettings: GiftCardSettings! """ Refunds related settings. Returns `RefundSettings` configuration, global for the entire shop. """ - refundSettings: RefundSettings! @doc(category: "Shop") + refundSettings: RefundSettings! """ Look up a shipping zone by ID. @@ -277,7 +271,7 @@ type Query { """Slug of a channel for which the data should be returned.""" channel: String - ): ShippingZone @doc(category: "Shipping") + ): ShippingZone """ List of the shop's shipping zones. @@ -306,7 +300,7 @@ type Query { Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query. """ last: Int - ): ShippingZoneCountableConnection @doc(category: "Shipping") + ): ShippingZoneCountableConnection """ Look up digital content by ID. @@ -316,7 +310,7 @@ type Query { digitalContent( """ID of the digital content.""" id: ID! - ): DigitalContent @doc(category: "Products") + ): DigitalContent """ List of digital content. @@ -339,7 +333,7 @@ type Query { Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query. """ last: Int - ): DigitalContentCountableConnection @doc(category: "Products") + ): DigitalContentCountableConnection """List of the shop's categories.""" categories( @@ -370,7 +364,7 @@ type Query { Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query. """ last: Int - ): CategoryCountableConnection @doc(category: "Products") + ): CategoryCountableConnection """Look up a category by ID or slug.""" category( @@ -386,7 +380,7 @@ type Query { Added in Saleor 3.21. """ slugLanguageCode: LanguageCodeEnum - ): Category @doc(category: "Products") + ): Category """ Look up a collection by ID or slug. If slugLanguageCode is provided, category will be fetched by slug translation. Requires one of the following permissions to include the unpublished items: MANAGE_ORDERS, MANAGE_DISCOUNTS, MANAGE_PRODUCTS. @@ -407,7 +401,7 @@ type Query { """Slug of a channel for which the data should be returned.""" channel: String - ): Collection @doc(category: "Products") + ): Collection """ List of the shop's collections. Requires one of the following permissions to include the unpublished items: MANAGE_ORDERS, MANAGE_DISCOUNTS, MANAGE_PRODUCTS. @@ -440,7 +434,7 @@ type Query { Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query. """ last: Int - ): CollectionCountableConnection @doc(category: "Products") + ): CollectionCountableConnection """ Look up a product by ID. Requires one of the following permissions to include the unpublished items: MANAGE_ORDERS, MANAGE_DISCOUNTS, MANAGE_PRODUCTS. @@ -464,14 +458,18 @@ type Query { """Slug of a channel for which the data should be returned.""" channel: String - ): Product @doc(category: "Products") + ): Product """ List of the shop's products. Requires one of the following permissions to include the unpublished items: MANAGE_ORDERS, MANAGE_DISCOUNTS, MANAGE_PRODUCTS. """ products( - """Filtering options for products.""" - filter: ProductFilterInput @deprecated(reason: "Use `where` filter instead.") + """ + Filtering options for products. + + DEPRECATED: this field will be removed. Use `where` filter instead. + """ + filter: ProductFilterInput """Where filtering options for products.""" where: ProductWhereInput @@ -500,13 +498,13 @@ type Query { Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query. """ last: Int - ): ProductCountableConnection @doc(category: "Products") + ): ProductCountableConnection """Look up a product type by ID.""" productType( """ID of the product type.""" id: ID! - ): ProductType @doc(category: "Products") + ): ProductType """List of the shop's product types.""" productTypes( @@ -531,7 +529,7 @@ type Query { Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query. """ last: Int - ): ProductTypeCountableConnection @doc(category: "Products") + ): ProductTypeCountableConnection """ Look up a product variant by ID or SKU. Requires one of the following permissions to include the unpublished items: MANAGE_ORDERS, MANAGE_DISCOUNTS, MANAGE_PRODUCTS. @@ -548,7 +546,7 @@ type Query { """Slug of a channel for which the data should be returned.""" channel: String - ): ProductVariant @doc(category: "Products") + ): ProductVariant """ List of product variants. Requires one of the following permissions to include the unpublished items: MANAGE_ORDERS, MANAGE_DISCOUNTS, MANAGE_PRODUCTS. @@ -560,8 +558,12 @@ type Query { """Slug of a channel for which the data should be returned.""" channel: String - """Filtering options for product variants.""" - filter: ProductVariantFilterInput @deprecated(reason: "Use `where` filter instead.") + """ + Filtering options for product variants. + + DEPRECATED: this field will be removed. Use `where` filter instead. + """ + filter: ProductVariantFilterInput """Where filtering options for product variants.""" where: ProductVariantWhereInput @@ -591,7 +593,7 @@ type Query { Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query. """ last: Int - ): ProductVariantCountableConnection @doc(category: "Products") + ): ProductVariantCountableConnection """ List of top selling products. @@ -620,7 +622,7 @@ type Query { Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query. """ last: Int - ): ProductVariantCountableConnection @doc(category: "Products") @deprecated + ): ProductVariantCountableConnection @deprecated """ Look up a payment by ID. @@ -630,7 +632,7 @@ type Query { payment( """ID of the payment.""" id: ID! - ): Payment @doc(category: "Payments") + ): Payment """ List of payments. @@ -656,12 +658,12 @@ type Query { Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query. """ last: Int - ): PaymentCountableConnection @doc(category: "Payments") + ): PaymentCountableConnection """ Look up a transaction by ID. - Requires one of the following permissions: HANDLE_PAYMENTS. + Requires one of the following permissions: HANDLE_PAYMENTS, MANAGE_ORDERS. """ transaction( """ @@ -673,7 +675,35 @@ type Query { Token of a transaction. Either it or ID is required to fetch the transaction data. """ token: UUID - ): TransactionItem @doc(category: "Payments") + ): TransactionItem + + """ + List of transactions. For apps with `MANAGE_ORDERS` permission, returns all transactions. For apps with just `HANDLE_PAYMENTS` permission, returns only transactions created by that app. For staff users, returns transactions from orders and checkouts in channels they have access to. + + Added in Saleor 3.22. + + Requires one of the following permissions: HANDLE_PAYMENTS, MANAGE_ORDERS. + """ + transactions( + """Where filtering options for transactions.""" + where: TransactionWhereInput + + """Return the elements in the list that come before the specified cursor.""" + before: String + + """Return the elements in the list that come after the specified cursor.""" + after: String + + """ + Retrieve the first n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query. + """ + first: Int + + """ + Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query. + """ + last: Int + ): TransactionCountableConnection """Look up a page by ID or slug.""" page( @@ -696,15 +726,19 @@ type Query { Added in Saleor 3.22. """ channel: String - ): Page @doc(category: "Pages") + ): Page """List of the shop's pages.""" pages( """Sort pages.""" sortBy: PageSortingInput - """Filtering options for pages.""" - filter: PageFilterInput @deprecated(reason: "+ Use `where` and `search` instead.") + """ + Filtering options for pages. + + DEPRECATED: this field will be removed. + Use `where` and `search` instead. + """ + filter: PageFilterInput """ Search pages. Overrides filter.search input. @@ -742,13 +776,13 @@ type Query { Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query. """ last: Int - ): PageCountableConnection @doc(category: "Pages") + ): PageCountableConnection """Look up a page type by ID.""" pageType( """ID of the page type.""" id: ID! - ): PageType @doc(category: "Pages") + ): PageType """List of the page types.""" pageTypes( @@ -773,7 +807,7 @@ type Query { Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query. """ last: Int - ): PageTypeCountableConnection @doc(category: "Pages") + ): PageTypeCountableConnection """ List of activity events to display on homepage (at the moment it only contains order-events). @@ -796,7 +830,7 @@ type Query { Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query. """ last: Int - ): OrderEventCountableConnection @doc(category: "Orders") @deprecated + ): OrderEventCountableConnection @deprecated """Look up an order by ID or external reference.""" order( @@ -809,7 +843,7 @@ type Query { Requires one of the following permissions: MANAGE_ORDERS. """ externalReference: String - ): Order @doc(category: "Orders") + ): Order """ List of orders. The query will not initiate any external requests, including filtering available shipping methods, or performing external tax calculations. @@ -820,8 +854,12 @@ type Query { """Sort orders.""" sortBy: OrderSortingInput - """Filtering options for orders.""" - filter: OrderFilterInput @deprecated(reason: "Use `where` filter instead.") + """ + Filtering options for orders. + + DEPRECATED: this field will be removed. Use `where` filter instead. + """ + filter: OrderFilterInput """ Where filtering options for orders. @@ -855,7 +893,7 @@ type Query { Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query. """ last: Int - ): OrderCountableConnection @doc(category: "Orders") + ): OrderCountableConnection """ List of draft orders. The query will not initiate any external requests, including filtering available shipping methods, or performing external tax calculations. @@ -866,8 +904,12 @@ type Query { """Sort draft orders.""" sortBy: OrderSortingInput - """Filtering options for draft orders.""" - filter: OrderDraftFilterInput @deprecated(reason: "Use `where` filter instead.") + """ + Filtering options for draft orders. + + DEPRECATED: this field will be removed. Use `where` filter instead. + """ + filter: OrderDraftFilterInput """ Where filtering options for draft orders. @@ -898,7 +940,7 @@ type Query { Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query. """ last: Int - ): OrderCountableConnection @doc(category: "Orders") + ): OrderCountableConnection """ Return the total sales amount from a specific period. @@ -911,13 +953,13 @@ type Query { """Slug of a channel for which the data should be returned.""" channel: String - ): TaxedMoney @doc(category: "Orders") @deprecated + ): TaxedMoney @deprecated """Look up an order by token.""" orderByToken( """The order's token.""" token: UUID! - ): Order @doc(category: "Orders") @deprecated + ): Order @deprecated """Look up a navigation menu by ID or name.""" menu( @@ -932,7 +974,7 @@ type Query { """The menu's slug.""" slug: String - ): Menu @doc(category: "Menu") + ): Menu """List of the storefront's menus.""" menus( @@ -964,7 +1006,7 @@ type Query { Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query. """ last: Int - ): MenuCountableConnection @doc(category: "Menu") + ): MenuCountableConnection """Look up a menu item by ID.""" menuItem( @@ -973,7 +1015,7 @@ type Query { """Slug of a channel for which the data should be returned.""" channel: String - ): MenuItem @doc(category: "Menu") + ): MenuItem """List of the storefronts's menu items.""" menuItems( @@ -1001,7 +1043,7 @@ type Query { Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query. """ last: Int - ): MenuItemCountableConnection @doc(category: "Menu") + ): MenuItemCountableConnection """ Look up a gift card by ID. @@ -1011,7 +1053,7 @@ type Query { giftCard( """ID of the gift card.""" id: ID! - ): GiftCard @doc(category: "Gift cards") + ): GiftCard """ List of gift cards. @@ -1045,14 +1087,14 @@ type Query { Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query. """ last: Int - ): GiftCardCountableConnection @doc(category: "Gift cards") + ): GiftCardCountableConnection """ List of gift card currencies. Requires one of the following permissions: MANAGE_GIFT_CARD. """ - giftCardCurrencies: [String!]! @doc(category: "Gift cards") + giftCardCurrencies: [String!]! """ List of gift card tags. @@ -1078,7 +1120,7 @@ type Query { Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query. """ last: Int - ): GiftCardTagCountableConnection @doc(category: "Gift cards") + ): GiftCardTagCountableConnection """ Look up a plugin by ID. @@ -1130,7 +1172,7 @@ type Query { """Slug of a channel for which the data should be returned.""" channel: String - ): Sale @doc(category: "Discounts") @deprecated(reason: "Use the `promotion` query instead.") + ): Sale @deprecated(reason: "Use the `promotion` query instead.") """ List of the shop's sales. @@ -1144,8 +1186,12 @@ type Query { """Sort sales.""" sortBy: SaleSortingInput - """Search sales by name, value or type.""" - query: String @deprecated(reason: "Use `filter.search` input instead.") + """ + Search sales by name, value or type. + + DEPRECATED: this field will be removed. Use `filter.search` input instead. + """ + query: String """Slug of a channel for which the data should be returned.""" channel: String @@ -1165,7 +1211,7 @@ type Query { Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query. """ last: Int - ): SaleCountableConnection @doc(category: "Discounts") @deprecated(reason: "Use the `promotions` query instead.") + ): SaleCountableConnection @deprecated(reason: "Use the `promotions` query instead.") """ Look up a voucher by ID. @@ -1178,7 +1224,7 @@ type Query { """Slug of a channel for which the data should be returned.""" channel: String - ): Voucher @doc(category: "Discounts") + ): Voucher """ List of the shop's vouchers. @@ -1192,8 +1238,12 @@ type Query { """Sort voucher.""" sortBy: VoucherSortingInput - """Search vouchers by name or code.""" - query: String @deprecated(reason: "Use `filter.search` input instead.") + """ + Search vouchers by name or code. + + DEPRECATED: this field will be removed. Use `filter.search` input instead. + """ + query: String """Slug of a channel for which the data should be returned.""" channel: String @@ -1213,7 +1263,7 @@ type Query { Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query. """ last: Int - ): VoucherCountableConnection @doc(category: "Discounts") + ): VoucherCountableConnection """ Look up a promotion by ID. @@ -1223,7 +1273,7 @@ type Query { promotion( """ID of the promotion.""" id: ID! - ): Promotion @doc(category: "Discounts") + ): Promotion """ List of the promotions. @@ -1252,7 +1302,7 @@ type Query { Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query. """ last: Int - ): PromotionCountableConnection @doc(category: "Discounts") + ): PromotionCountableConnection """ Look up a export file by ID. @@ -1294,20 +1344,24 @@ type Query { ): ExportFileCountableConnection """List of all tax rates available from tax gateway.""" - taxTypes: [TaxType!] @doc(category: "Taxes") @deprecated(reason: "Use `taxClasses` field instead.") + taxTypes: [TaxType!] @deprecated(reason: "Use `taxClasses` field instead.") """ Look up a checkout by id. - Requires one of the following permissions to query a checkout, if a checkout is in inactive channel: MANAGE_CHECKOUTS, IMPERSONATE_USER, HANDLE_PAYMENTS. + Requires one of the following permissions to query a checkout, if a checkout is in inactive channel: MANAGE_CHECKOUTS, IMPERSONATE_USER, HANDLE_PAYMENTS. """ checkout( """The checkout's ID.""" id: ID - """The checkout's token.""" - token: UUID @deprecated(reason: "Use `id` instead.") - ): Checkout @doc(category: "Checkout") + """ + The checkout's token. + + DEPRECATED: this field will be removed. Use `id` instead. + """ + token: UUID + ): Checkout """ List of checkouts. The query will not initiate any external requests, including fetching external shipping methods, filtering available shipping methods, or performing external tax calculations. @@ -1339,7 +1393,7 @@ type Query { Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query. """ last: Int - ): CheckoutCountableConnection @doc(category: "Checkout") + ): CheckoutCountableConnection """ List of checkout lines. The query will not initiate any external requests, including fetching external shipping methods, filtering available shipping methods, or performing external tax calculations. @@ -1362,7 +1416,7 @@ type Query { Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query. """ last: Int - ): CheckoutLineCountableConnection @doc(category: "Checkout") + ): CheckoutLineCountableConnection """Look up a channel by ID or slug.""" channel( @@ -1371,19 +1425,23 @@ type Query { """Slug of the channel.""" slug: String - ): Channel @doc(category: "Channels") + ): Channel """ List of all channels. Requires one of the following permissions: AUTHENTICATED_APP, AUTHENTICATED_STAFF_USER. """ - channels: [Channel!] @doc(category: "Channels") + channels: [Channel!] """List of the shop's attributes.""" attributes( - """Filtering options for attributes.""" - filter: AttributeFilterInput @deprecated(reason: "Use `where` filter instead.") + """ + Filtering options for attributes. + + DEPRECATED: this field will be removed. Use `where` filter instead. + """ + filter: AttributeFilterInput """Where filtering options for attributes.""" where: AttributeWhereInput @@ -1412,7 +1470,7 @@ type Query { Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query. """ last: Int - ): AttributeCountableConnection @doc(category: "Attributes") + ): AttributeCountableConnection """Look up an attribute by ID, slug or external reference.""" attribute( @@ -1424,14 +1482,14 @@ type Query { """External ID of the attribute.""" externalReference: String - ): Attribute @doc(category: "Attributes") + ): Attribute """ List of all apps installations Requires one of the following permissions: MANAGE_APPS. """ - appsInstallations: [AppInstallation!]! @doc(category: "Apps") + appsInstallations: [AppInstallation!]! """ List of the apps. @@ -1460,7 +1518,7 @@ type Query { Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query. """ last: Int - ): AppCountableConnection @doc(category: "Apps") + ): AppCountableConnection """ Look up an app by ID. If ID is not provided, return the currently authenticated app. @@ -1470,7 +1528,7 @@ type Query { app( """ID of the app.""" id: ID - ): App @doc(category: "Apps") + ): App """ List of all extensions. @@ -1496,7 +1554,7 @@ type Query { Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query. """ last: Int - ): AppExtensionCountableConnection @doc(category: "Apps") + ): AppExtensionCountableConnection """ Look up an app extension by ID. @@ -1506,7 +1564,7 @@ type Query { appExtension( """ID of the app extension.""" id: ID! - ): AppExtension @doc(category: "Apps") + ): AppExtension """Returns address validation rules.""" addressValidationRules( @@ -1521,7 +1579,7 @@ type Query { """Sublocality like a district.""" cityArea: String - ): AddressValidationData @doc(category: "Users") + ): AddressValidationData """ Look up an address by ID. @@ -1531,7 +1589,7 @@ type Query { address( """ID of an address.""" id: ID! - ): Address @doc(category: "Users") + ): Address """ List of the shop's customers. This list includes all users who registered through the accountRegister mutation. Additionally, staff users who have placed an order using their account will also appear in this list. @@ -1539,8 +1597,12 @@ type Query { Requires one of the following permissions: MANAGE_ORDERS, MANAGE_USERS. """ customers( - """Filtering options for customers.""" - filter: CustomerFilterInput @deprecated(reason: "Use `where` filter instead.") + """ + Filtering options for customers. + + DEPRECATED: this field will be removed. Use `where` filter instead. + """ + filter: CustomerFilterInput """ Where filtering options for customers. @@ -1574,7 +1636,7 @@ type Query { Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query. """ last: Int - ): UserCountableConnection @doc(category: "Users") + ): UserCountableConnection """ List of permission groups. @@ -1603,7 +1665,7 @@ type Query { Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query. """ last: Int - ): GroupCountableConnection @doc(category: "Users") + ): GroupCountableConnection """ Look up permission group by ID. @@ -1613,10 +1675,10 @@ type Query { permissionGroup( """ID of the group.""" id: ID! - ): Group @doc(category: "Users") + ): Group """Return the currently authenticated user.""" - me: User @doc(category: "Users") + me: User """ List of the shop's staff users. @@ -1645,7 +1707,7 @@ type Query { Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query. """ last: Int - ): UserCountableConnection @doc(category: "Users") + ): UserCountableConnection """ Look up a user by ID or email address. @@ -1661,13 +1723,13 @@ type Query { """External ID of the user.""" externalReference: String - ): User @doc(category: "Users") + ): User _entities(representations: [_Any]): [_Entity] _service: _Service } """Webhook.""" -type Webhook implements Node @doc(category: "Webhooks") { +type Webhook implements Node { """The ID of webhook.""" id: ID! @@ -1734,7 +1796,7 @@ interface Node { } """Webhook event.""" -type WebhookEvent @doc(category: "Webhooks") { +type WebhookEvent { """Display name of the event.""" name: String! @@ -1743,7 +1805,7 @@ type WebhookEvent @doc(category: "Webhooks") { } """Enum determining type of webhook.""" -enum WebhookEventTypeEnum @doc(category: "Webhooks") { +enum WebhookEventTypeEnum { """All the events.""" ANY_EVENTS @deprecated @@ -2244,7 +2306,7 @@ enum WebhookEventTypeEnum @doc(category: "Webhooks") { } """Synchronous webhook event.""" -type WebhookEventSync @doc(category: "Webhooks") { +type WebhookEventSync { """Display name of the event.""" name: String! @@ -2253,7 +2315,7 @@ type WebhookEventSync @doc(category: "Webhooks") { } """Enum determining type of webhook.""" -enum WebhookEventTypeSyncEnum @doc(category: "Webhooks") { +enum WebhookEventTypeSyncEnum { """Listing available payment gateways.""" PAYMENT_LIST_GATEWAYS @@ -2309,7 +2371,7 @@ enum WebhookEventTypeSyncEnum @doc(category: "Webhooks") { } """Asynchronous webhook event.""" -type WebhookEventAsync @doc(category: "Webhooks") { +type WebhookEventAsync { """Display name of the event.""" name: String! @@ -2318,7 +2380,7 @@ type WebhookEventAsync @doc(category: "Webhooks") { } """Enum determining type of webhook.""" -enum WebhookEventTypeAsyncEnum @doc(category: "Webhooks") { +enum WebhookEventTypeAsyncEnum { """All the events.""" ANY_EVENTS @deprecated @@ -2766,7 +2828,7 @@ enum WebhookEventTypeAsyncEnum @doc(category: "Webhooks") { } """Represents app data.""" -type App implements Node & ObjectWithMetadata @doc(category: "Apps") { +type App implements Node & ObjectWithMetadata { """The ID of the app.""" id: ID! @@ -2944,7 +3006,7 @@ Example: scalar Metadata """Represents a permission object in a friendly form.""" -type Permission @doc(category: "Authentication") { +type Permission { """Internal code for permission.""" code: PermissionEnum! @@ -2952,7 +3014,7 @@ type Permission @doc(category: "Authentication") { name: String! } -enum PermissionEnum @doc(category: "Users") { +enum PermissionEnum { MANAGE_USERS MANAGE_STAFF IMPERSONATE_USER @@ -2987,7 +3049,7 @@ value as specified by scalar DateTime """Enum determining type of your App.""" -enum AppTypeEnum @doc(category: "Apps") { +enum AppTypeEnum { """ Local Saleor App. The app is fully manageable from dashboard. You can change assigned permissions, add webhooks, or authentication token """ @@ -3000,7 +3062,7 @@ enum AppTypeEnum @doc(category: "Apps") { } """Represents token data.""" -type AppToken implements Node @doc(category: "Apps") { +type AppToken implements Node { """The ID of the app token.""" id: ID! @@ -3012,7 +3074,7 @@ type AppToken implements Node @doc(category: "Apps") { } """Represents app data.""" -type AppExtension implements Node @doc(category: "Apps") { +type AppExtension implements Node { """The ID of the app extension.""" id: ID! @@ -3067,7 +3129,7 @@ type AppExtension implements Node @doc(category: "Apps") { } """All places where app extension can be mounted.""" -enum AppExtensionMountEnum @doc(category: "Apps") { +enum AppExtensionMountEnum { CATEGORY_OVERVIEW_CREATE CATEGORY_OVERVIEW_MORE_ACTIONS CATEGORY_DETAILS_MORE_ACTIONS @@ -3120,13 +3182,8 @@ enum AppExtensionMountEnum @doc(category: "Apps") { TRANSLATIONS_MORE_ACTIONS } -""" -All available ways of opening an app extension. - - POPUP - app's extension will be mounted as a popup window - APP_PAGE - redirect to app's page -""" -enum AppExtensionTargetEnum @doc(category: "Apps") { +"All available ways of opening an app extension.\n\n POPUP - app's extension will be mounted as a popup window\n APP_PAGE - redirect to app's page\n " +enum AppExtensionTargetEnum { POPUP APP_PAGE NEW_TAB @@ -3138,13 +3195,13 @@ scalar JSON union AppExtensionPossibleOptions = AppExtensionOptionsWidget | AppExtensionOptionsNewTab """Represents the options for an app extension.""" -type AppExtensionOptionsWidget @doc(category: "Apps") { +type AppExtensionOptionsWidget { """Options for displaying a Widget""" widgetTarget: WidgetTargetOptions @deprecated(reason: "Use `settings` field directly.") } """Represents the WIDGET target options for an app extension.""" -type WidgetTargetOptions @doc(category: "Apps") { +type WidgetTargetOptions { """HTTP method for Widget target (GET or POST)""" method: HttpMethod! @deprecated(reason: "Use `settings` field directly.") } @@ -3155,25 +3212,25 @@ enum HttpMethod { } """Represents the options for an app extension.""" -type AppExtensionOptionsNewTab @doc(category: "Apps") { +type AppExtensionOptionsNewTab { """Options controlling behavior of the NEW_TAB extension target""" newTabTarget: NewTabTargetOptions @deprecated(reason: "Use `settings` field directly.") } """Represents the NEW_TAB target options for an app extension.""" -type NewTabTargetOptions @doc(category: "Apps") { +type NewTabTargetOptions { """HTTP method for New Tab target (GET or POST)""" method: HttpMethod! @deprecated(reason: "Use `settings` field directly.") } """Represents the app's brand data.""" -type AppBrand @doc(category: "Apps") { +type AppBrand { """App's logos details.""" logo: AppBrandLogo! } """Represents the app's brand logo data.""" -type AppBrandLogo @doc(category: "Apps") { +type AppBrandLogo { """URL to the default logo image.""" default( """ @@ -3184,7 +3241,7 @@ type AppBrandLogo @doc(category: "Apps") { """ The format of the image. When not provided, format of the original image will be used. """ - format: IconThumbnailFormatEnum = ORIGINAL + format: IconThumbnailFormatEnum ): String! } @@ -3195,7 +3252,7 @@ enum IconThumbnailFormatEnum { } """Enum determining the state of a circuit breaker.""" -enum CircuitBreakerStateEnum @doc(category: "Apps") { +enum CircuitBreakerStateEnum { """The breaker is conducting (requests are passing through).""" CLOSED @@ -3284,7 +3341,7 @@ type EventDelivery implements Node { payload: String } -enum EventDeliveryStatusEnum @doc(category: "Webhooks") { +enum EventDeliveryStatusEnum { PENDING SUCCESS FAILED @@ -3308,7 +3365,7 @@ type EventDeliveryAttemptCountableEdge { } """Event delivery attempts.""" -type EventDeliveryAttempt implements Node @doc(category: "Webhooks") { +type EventDeliveryAttempt implements Node { """The ID of Event Delivery Attempt.""" id: ID! @@ -3337,7 +3394,7 @@ type EventDeliveryAttempt implements Node @doc(category: "Webhooks") { status: EventDeliveryStatusEnum! } -input EventDeliveryAttemptSortingInput @doc(category: "Webhooks") { +input EventDeliveryAttemptSortingInput { """Specifies the direction in which to sort attempts.""" direction: OrderDirection! @@ -3353,12 +3410,12 @@ enum OrderDirection { DESC } -enum EventDeliveryAttemptSortField @doc(category: "Webhooks") { +enum EventDeliveryAttemptSortField { """Sort event delivery attempts by created at.""" CREATED_AT } -input EventDeliverySortingInput @doc(category: "Webhooks") { +input EventDeliverySortingInput { """Specifies the direction in which to sort deliveries.""" direction: OrderDirection! @@ -3366,7 +3423,7 @@ input EventDeliverySortingInput @doc(category: "Webhooks") { field: EventDeliverySortField! } -enum EventDeliverySortField @doc(category: "Webhooks") { +enum EventDeliverySortField { """Sort event deliveries by created at.""" CREATED_AT } @@ -3378,7 +3435,7 @@ input EventDeliveryFilterInput { scalar JSONString -enum WebhookSampleEventTypeEnum @doc(category: "Webhooks") { +enum WebhookSampleEventTypeEnum { ACCOUNT_CONFIRMATION_REQUESTED ACCOUNT_CHANGE_EMAIL_REQUESTED ACCOUNT_EMAIL_CHANGED @@ -3524,7 +3581,7 @@ enum WebhookSampleEventTypeEnum @doc(category: "Webhooks") { } """Represents warehouse.""" -type Warehouse implements Node & ObjectWithMetadata @doc(category: "Products") { +type Warehouse implements Node & ObjectWithMetadata { """The ID of the warehouse.""" id: ID! @@ -3628,7 +3685,7 @@ type Warehouse implements Node & ObjectWithMetadata @doc(category: "Products") { } """Represents user address data.""" -type Address implements Node & ObjectWithMetadata @doc(category: "Users") { +type Address implements Node & ObjectWithMetadata { """The ID of the address.""" id: ID! @@ -3714,7 +3771,7 @@ type CountryDisplay { } """Represents a VAT rate for a country.""" -type VAT @doc(category: "Taxes") { +type VAT { """Country code.""" countryCode: String! @@ -3726,7 +3783,7 @@ type VAT @doc(category: "Taxes") { } """Represents a reduced VAT rate for a particular type of goods.""" -type ReducedRate @doc(category: "Taxes") { +type ReducedRate { """Reduced VAT rate in percent.""" rate: Float! @@ -3734,13 +3791,13 @@ type ReducedRate @doc(category: "Taxes") { rateType: String! } -enum WarehouseClickAndCollectOptionEnum @doc(category: "Products") { +enum WarehouseClickAndCollectOptionEnum { DISABLED LOCAL ALL } -type ShippingZoneCountableConnection @doc(category: "Shipping") { +type ShippingZoneCountableConnection { """Pagination data for this connection.""" pageInfo: PageInfo! edges: [ShippingZoneCountableEdge!]! @@ -3749,7 +3806,7 @@ type ShippingZoneCountableConnection @doc(category: "Shipping") { totalCount: Int } -type ShippingZoneCountableEdge @doc(category: "Shipping") { +type ShippingZoneCountableEdge { """The item at the end of the edge.""" node: ShippingZone! @@ -3760,7 +3817,7 @@ type ShippingZoneCountableEdge @doc(category: "Shipping") { """ Represents a shipping zone in the shop. Zones are the concept used only for grouping shipping methods in the dashboard, and are never exposed to the customers directly. """ -type ShippingZone implements Node & ObjectWithMetadata @doc(category: "Shipping") { +type ShippingZone implements Node & ObjectWithMetadata { """The ID of shipping zone.""" id: ID! @@ -3850,7 +3907,7 @@ type Money { """ Shipping method are the methods you'll use to get customer's orders to them. They are directly exposed to the customers. """ -type ShippingMethodType implements Node & ObjectWithMetadata @doc(category: "Shipping") { +type ShippingMethodType implements Node & ObjectWithMetadata { """Shipping method ID.""" id: ID! @@ -3964,13 +4021,13 @@ type ShippingMethodType implements Node & ObjectWithMetadata @doc(category: "Shi taxClass: TaxClass } -enum ShippingMethodTypeEnum @doc(category: "Shipping") { +enum ShippingMethodTypeEnum { PRICE WEIGHT } """Represents shipping method translations.""" -type ShippingMethodTranslation implements Node @doc(category: "Shipping") { +type ShippingMethodTranslation implements Node { """The ID of the shipping method translation.""" id: ID! @@ -4784,7 +4841,7 @@ enum LanguageCodeEnum { """ Represents shipping method's original translatable fields and related translations. """ -type ShippingMethodTranslatableContent implements Node @doc(category: "Shipping") { +type ShippingMethodTranslatableContent implements Node { """The ID of the shipping method translatable content.""" id: ID! @@ -4816,7 +4873,7 @@ type ShippingMethodTranslatableContent implements Node @doc(category: "Shipping" } """Represents shipping method channel listing.""" -type ShippingMethodChannelListing implements Node @doc(category: "Shipping") { +type ShippingMethodChannelListing implements Node { """The ID of shipping method channel listing.""" id: ID! @@ -4834,7 +4891,7 @@ type ShippingMethodChannelListing implements Node @doc(category: "Shipping") { } """Represents channel.""" -type Channel implements Node & ObjectWithMetadata @doc(category: "Channels") { +type Channel implements Node & ObjectWithMetadata { """The ID of the channel.""" id: ID! @@ -4958,7 +5015,7 @@ type Channel implements Node & ObjectWithMetadata @doc(category: "Channels") { } """List of shipping methods available for the country.""" -type ShippingMethodsPerCountry @doc(category: "Shipping") { +type ShippingMethodsPerCountry { """The country code.""" countryCode: CountryCode! @@ -5228,7 +5285,7 @@ enum CountryCode { """ Shipping methods that can be used as means of shipping for orders and checkouts. """ -type ShippingMethod implements Node & ObjectWithMetadata @doc(category: "Shipping") { +type ShippingMethod implements Node & ObjectWithMetadata { """Unique ID of ShippingMethod available for Order.""" id: ID! @@ -5327,22 +5384,15 @@ enum WeightUnitsEnum { } """Represents the channel stock settings.""" -type StockSettings @doc(category: "Products") { +type StockSettings { """ Allocation strategy defines the preference of warehouses for allocations and reservations. """ allocationStrategy: AllocationStrategyEnum! } -""" -Determine the allocation strategy for the channel. - - PRIORITIZE_SORTING_ORDER - allocate stocks according to the warehouses' order - within the channel - - PRIORITIZE_HIGH_STOCK - allocate stock in a warehouse with the most stock -""" -enum AllocationStrategyEnum @doc(category: "Products") { +"Determine the allocation strategy for the channel.\n\n PRIORITIZE_SORTING_ORDER - allocate stocks according to the warehouses' order\n within the channel\n\n PRIORITIZE_HIGH_STOCK - allocate stock in a warehouse with the most stock\n " +enum AllocationStrategyEnum { PRIORITIZE_SORTING_ORDER PRIORITIZE_HIGH_STOCK } @@ -5413,16 +5463,8 @@ The `Minute` scalar type represents number of minutes by integer value. """ scalar Minute -""" -Determine the mark as paid strategy for the channel. - - TRANSACTION_FLOW - new orders marked as paid will receive a - `TransactionItem` object, that will cover the `order.total`. - - PAYMENT_FLOW - new orders marked as paid will receive a - `Payment` object, that will cover the `order.total`. -""" -enum MarkAsPaidStrategyEnum @doc(category: "Channels") { +"Determine the mark as paid strategy for the channel.\n\n TRANSACTION_FLOW - new orders marked as paid will receive a\n `TransactionItem` object, that will cover the `order.total`.\n\n PAYMENT_FLOW - new orders marked as paid will receive a\n `Payment` object, that will cover the `order.total`.\n\n " +enum MarkAsPaidStrategyEnum { TRANSACTION_FLOW PAYMENT_FLOW } @@ -5437,6 +5479,8 @@ scalar Hour type CheckoutSettings { """ Default `true`. Determines if the checkout mutations should use legacy error flow. In legacy flow, all mutations can raise an exception unrelated to the requested action - (e.g. out-of-stock exception when updating checkoutShippingAddress.) If `false`, the errors will be aggregated in `checkout.problems` field. Some of the `problems` can block the finalizing checkout process. The legacy flow will be removed in Saleor 4.0. The flow with `checkout.problems` will be the default one. + + DEPRECATED: this field will be removed. """ useLegacyErrorFlow: Boolean! @@ -5491,19 +5535,14 @@ type PaymentSettings { checkoutReleaseFundsCutOffDate: DateTime } -""" -Determine the transaction flow strategy. - - AUTHORIZATION - the processed transaction should be only authorized - CHARGE - the processed transaction should be charged. -""" -enum TransactionFlowStrategyEnum @doc(category: "Payments") { +"Determine the transaction flow strategy.\n\n AUTHORIZATION - the processed transaction should be only authorized\n CHARGE - the processed transaction should be charged.\n " +enum TransactionFlowStrategyEnum { AUTHORIZATION CHARGE } """Channel-specific tax configuration.""" -type TaxConfiguration implements Node & ObjectWithMetadata @doc(category: "Taxes") { +type TaxConfiguration implements Node & ObjectWithMetadata { """The ID of the object.""" id: ID! @@ -5572,13 +5611,13 @@ type TaxConfiguration implements Node & ObjectWithMetadata @doc(category: "Taxes useWeightedTaxForShipping: Boolean } -enum TaxCalculationStrategy @doc(category: "Taxes") { +enum TaxCalculationStrategy { FLAT_RATES TAX_APP } """Country-specific exceptions of a channel's tax configuration.""" -type TaxConfigurationPerCountry @doc(category: "Taxes") { +type TaxConfigurationPerCountry { """Country in which this configuration applies.""" country: CountryDisplay! @@ -5611,7 +5650,7 @@ type TaxConfigurationPerCountry @doc(category: "Taxes") { } """Represents shipping method postal code rule.""" -type ShippingMethodPostalCodeRule implements Node @doc(category: "Shipping") { +type ShippingMethodPostalCodeRule implements Node { """The ID of the object.""" id: ID! @@ -5625,12 +5664,12 @@ type ShippingMethodPostalCodeRule implements Node @doc(category: "Shipping") { inclusionType: PostalCodeRuleInclusionTypeEnum } -enum PostalCodeRuleInclusionTypeEnum @doc(category: "Shipping") { +enum PostalCodeRuleInclusionTypeEnum { INCLUDE EXCLUDE } -type ProductCountableConnection @doc(category: "Products") { +type ProductCountableConnection { """Pagination data for this connection.""" pageInfo: PageInfo! edges: [ProductCountableEdge!]! @@ -5639,7 +5678,7 @@ type ProductCountableConnection @doc(category: "Products") { totalCount: Int } -type ProductCountableEdge @doc(category: "Products") { +type ProductCountableEdge { """The item at the end of the edge.""" node: Product! @@ -5648,7 +5687,7 @@ type ProductCountableEdge @doc(category: "Products") { } """Represents an individual item for sale in the storefront.""" -type Product implements Node & ObjectWithMetadata & ObjectWithAttributes @doc(category: "Products") { +type Product implements Node & ObjectWithMetadata & ObjectWithAttributes { """The ID of the product.""" id: ID! @@ -5763,7 +5802,7 @@ type Product implements Node & ObjectWithMetadata & ObjectWithAttributes @doc(ca """ The format of the image. When not provided, format of the original image will be used. """ - format: ThumbnailFormatEnum = ORIGINAL + format: ThumbnailFormatEnum ): Image """ @@ -5837,8 +5876,12 @@ type Product implements Node & ObjectWithMetadata & ObjectWithAttributes @doc(ca Added in Saleor 3.21. """ productVariants( - """Filtering options for product variant.""" - filter: ProductVariantFilterInput @deprecated(reason: "Use `where` filter instead.") + """ + Filtering options for product variant. + + DEPRECATED: this field will be removed. Use `where` filter instead. + """ + filter: ProductVariantFilterInput """Where filtering options for product variants.""" where: ProductVariantWhereInput @@ -5910,7 +5953,7 @@ An object with attributes. Added in Saleor 3.22. """ -interface ObjectWithAttributes @doc(category: "Attributes") { +interface ObjectWithAttributes { """ Get a single attribute attached to the object by attribute slug. @@ -5919,7 +5962,7 @@ interface ObjectWithAttributes @doc(category: "Attributes") { assignedAttribute( """Slug of the attribute""" slug: String! - ): AssignedAttribute @doc(category: "Attributes") + ): AssignedAttribute """ List of attributes assigned to the object. @@ -5937,7 +5980,7 @@ Represents an attribute assigned to an object. Added in Saleor 3.22. """ -interface AssignedAttribute @doc(category: "Attributes") { +interface AssignedAttribute { """Attribute assigned to an object.""" attribute: Attribute! } @@ -5945,7 +5988,7 @@ interface AssignedAttribute @doc(category: "Attributes") { """ Custom attribute of a product. Attributes can be assigned to products and variants at the product type level. """ -type Attribute implements Node & ObjectWithMetadata @doc(category: "Attributes") { +type Attribute implements Node & ObjectWithMetadata { """The ID of the attribute.""" id: ID! @@ -6016,8 +6059,12 @@ type Attribute implements Node & ObjectWithMetadata @doc(category: "Attributes") """Sort attribute choices.""" sortBy: AttributeChoicesSortingInput - """Filtering options for attribute choices.""" - filter: AttributeValueFilterInput @deprecated(reason: "Use `where` filter instead.") + """ + Filtering options for attribute choices. + + DEPRECATED: this field will be removed. Use `where` filter instead. + """ + filter: AttributeValueFilterInput """ Where filtering options for attribute choices. @@ -6135,7 +6182,7 @@ type Attribute implements Node & ObjectWithMetadata @doc(category: "Attributes") externalReference: String } -enum AttributeInputTypeEnum @doc(category: "Attributes") { +enum AttributeInputTypeEnum { DROPDOWN MULTISELECT FILE @@ -6150,7 +6197,7 @@ enum AttributeInputTypeEnum @doc(category: "Attributes") { DATE_TIME } -enum AttributeEntityTypeEnum @doc(category: "Attributes") { +enum AttributeEntityTypeEnum { PAGE PRODUCT PRODUCT_VARIANT @@ -6168,7 +6215,7 @@ union ReferenceType = ProductType | PageType """ Represents a type of product. It defines what attributes are available to products of this type. """ -type ProductType implements Node & ObjectWithMetadata @doc(category: "Products") { +type ProductType implements Node & ObjectWithMetadata { """The ID of the product type.""" id: ID! @@ -6278,8 +6325,12 @@ type ProductType implements Node & ObjectWithMetadata @doc(category: "Products") Requires one of the following permissions: MANAGE_PRODUCTS. """ availableAttributes( - """Filtering options for attributes of this product type.""" - filter: AttributeFilterInput @deprecated(reason: "Use `where` filter instead.") + """ + Filtering options for attributes of this product type. + + DEPRECATED: this field will be removed. Use `where` filter instead. + """ + filter: AttributeFilterInput """Where filtering options for attributes of this product type.""" where: AttributeWhereInput @@ -6305,13 +6356,13 @@ type ProductType implements Node & ObjectWithMetadata @doc(category: "Products") ): AttributeCountableConnection } -enum ProductTypeKindEnum @doc(category: "Products") { +enum ProductTypeKindEnum { NORMAL GIFT_CARD } """Representation of tax types fetched from tax gateway.""" -type TaxType @doc(category: "Taxes") { +type TaxType { """Description of the tax type.""" description: String @@ -6322,7 +6373,7 @@ type TaxType @doc(category: "Taxes") { """ Tax class is a named object used to define tax rates per country. Tax class can be assigned to product types, products and shipping methods to define their tax rates. """ -type TaxClass implements Node & ObjectWithMetadata @doc(category: "Taxes") { +type TaxClass implements Node & ObjectWithMetadata { """The ID of the object.""" id: ID! @@ -6366,7 +6417,7 @@ type TaxClass implements Node & ObjectWithMetadata @doc(category: "Taxes") { """ Tax rate for a country. When tax class is null, it represents the default tax rate for that country; otherwise it's a country tax rate specific to the given tax class. """ -type TaxClassCountryRate @doc(category: "Taxes") { +type TaxClassCountryRate { """Country in which this tax rate applies.""" country: CountryDisplay! @@ -6377,7 +6428,7 @@ type TaxClassCountryRate @doc(category: "Taxes") { taxClass: TaxClass } -enum VariantAttributeScope @doc(category: "Products") { +enum VariantAttributeScope { ALL VARIANT_SELECTION NOT_VARIANT_SELECTION @@ -6386,7 +6437,7 @@ enum VariantAttributeScope @doc(category: "Products") { """ Represents assigned attribute to variant with variant selection attached. """ -type AssignedVariantAttribute @doc(category: "Attributes") { +type AssignedVariantAttribute { """Attribute assigned to variant.""" attribute: Attribute! @@ -6396,7 +6447,7 @@ type AssignedVariantAttribute @doc(category: "Attributes") { variantSelection: Boolean! } -type AttributeCountableConnection @doc(category: "Attributes") { +type AttributeCountableConnection { """Pagination data for this connection.""" pageInfo: PageInfo! edges: [AttributeCountableEdge!]! @@ -6405,7 +6456,7 @@ type AttributeCountableConnection @doc(category: "Attributes") { totalCount: Int } -type AttributeCountableEdge @doc(category: "Attributes") { +type AttributeCountableEdge { """The item at the end of the edge.""" node: Attribute! @@ -6413,7 +6464,7 @@ type AttributeCountableEdge @doc(category: "Attributes") { cursor: String! } -input AttributeFilterInput @doc(category: "Attributes") { +input AttributeFilterInput { valueRequired: Boolean isVariantOnly: Boolean visibleInStorefront: Boolean @@ -6428,8 +6479,12 @@ input AttributeFilterInput @doc(category: "Attributes") { inCategory: ID slugs: [String!] - """Specifies the channel by which the data should be filtered.""" - channel: String @deprecated(reason: "Use root-level channel argument instead.") + """ + Specifies the channel by which the data should be filtered. + + DEPRECATED: this field will be removed. Use root-level channel argument instead. + """ + channel: String } input MetadataFilter { @@ -6440,13 +6495,13 @@ input MetadataFilter { value: String } -enum AttributeTypeEnum @doc(category: "Attributes") { +enum AttributeTypeEnum { PRODUCT_TYPE PAGE_TYPE } """Where filtering options.""" -input AttributeWhereInput @doc(category: "Attributes") { +input AttributeWhereInput { metadata: [MetadataFilter!] ids: [ID!] name: StringFilterInput @@ -6478,7 +6533,7 @@ input StringFilterInput { oneOf: [String!] } -input AttributeInputTypeEnumFilterInput @doc(category: "Attributes") { +input AttributeInputTypeEnumFilterInput { """The value equal to.""" eq: AttributeInputTypeEnum @@ -6486,7 +6541,7 @@ input AttributeInputTypeEnumFilterInput @doc(category: "Attributes") { oneOf: [AttributeInputTypeEnum!] } -input AttributeEntityTypeEnumFilterInput @doc(category: "Attributes") { +input AttributeEntityTypeEnumFilterInput { """The value equal to.""" eq: AttributeEntityTypeEnum @@ -6494,7 +6549,7 @@ input AttributeEntityTypeEnumFilterInput @doc(category: "Attributes") { oneOf: [AttributeEntityTypeEnum!] } -input AttributeTypeEnumFilterInput @doc(category: "Attributes") { +input AttributeTypeEnumFilterInput { """The value equal to.""" eq: AttributeTypeEnum @@ -6502,7 +6557,7 @@ input AttributeTypeEnumFilterInput @doc(category: "Attributes") { oneOf: [AttributeTypeEnum!] } -input MeasurementUnitsEnumFilterInput @doc(category: "Attributes") { +input MeasurementUnitsEnumFilterInput { """The value equal to.""" eq: MeasurementUnitsEnum @@ -6550,7 +6605,7 @@ enum MeasurementUnitsEnum { """ Represents a type of page. It defines what attributes are available to pages of this type. """ -type PageType implements Node & ObjectWithMetadata @doc(category: "Pages") { +type PageType implements Node & ObjectWithMetadata { """ID of the page type.""" id: ID! @@ -6599,8 +6654,12 @@ type PageType implements Node & ObjectWithMetadata @doc(category: "Pages") { Requires one of the following permissions: MANAGE_PAGES, MANAGE_PAGE_TYPES_AND_ATTRIBUTES. """ availableAttributes( - """Filtering options for attributes.""" - filter: AttributeFilterInput @deprecated(reason: "Use `where` filter instead.") + """ + Filtering options for attributes. + + DEPRECATED: this field will be removed. Use `where` filter instead. + """ + filter: AttributeFilterInput """Where filtering options for attributes.""" where: AttributeWhereInput @@ -6640,7 +6699,7 @@ Should be used in places where value must be positive (greater than 0). """ scalar PositiveInt -type AttributeValueCountableConnection @doc(category: "Attributes") { +type AttributeValueCountableConnection { """Pagination data for this connection.""" pageInfo: PageInfo! edges: [AttributeValueCountableEdge!]! @@ -6649,7 +6708,7 @@ type AttributeValueCountableConnection @doc(category: "Attributes") { totalCount: Int } -type AttributeValueCountableEdge @doc(category: "Attributes") { +type AttributeValueCountableEdge { """The item at the end of the edge.""" node: AttributeValue! @@ -6658,7 +6717,7 @@ type AttributeValueCountableEdge @doc(category: "Attributes") { } """Represents a value of an attribute.""" -type AttributeValue implements Node @doc(category: "Attributes") { +type AttributeValue implements Node { """The ID of the attribute value.""" id: ID! @@ -6714,7 +6773,7 @@ type AttributeValue implements Node @doc(category: "Attributes") { } """Represents attribute value translations.""" -type AttributeValueTranslation implements Node @doc(category: "Attributes") { +type AttributeValueTranslation implements Node { """The ID of the attribute value translation.""" id: ID! @@ -6741,7 +6800,7 @@ type AttributeValueTranslation implements Node @doc(category: "Attributes") { """ Represents attribute value's original translatable fields and related translations. """ -type AttributeValueTranslatableContent implements Node @doc(category: "Attributes") { +type AttributeValueTranslatableContent implements Node { """The ID of the attribute value translatable content.""" id: ID! @@ -6777,7 +6836,7 @@ type AttributeValueTranslatableContent implements Node @doc(category: "Attribute """ Represents attribute's original translatable fields and related translations. """ -type AttributeTranslatableContent implements Node @doc(category: "Attributes") { +type AttributeTranslatableContent implements Node { """The ID of the attribute translatable content.""" id: ID! @@ -6798,7 +6857,7 @@ type AttributeTranslatableContent implements Node @doc(category: "Attributes") { } """Represents attribute translations.""" -type AttributeTranslation implements Node @doc(category: "Attributes") { +type AttributeTranslation implements Node { """The ID of the attribute translation.""" id: ID! @@ -6827,7 +6886,7 @@ value as specified by """ scalar Date -input AttributeChoicesSortingInput @doc(category: "Attributes") { +input AttributeChoicesSortingInput { """Specifies the direction in which to sort attribute choices.""" direction: OrderDirection! @@ -6835,7 +6894,7 @@ input AttributeChoicesSortingInput @doc(category: "Attributes") { field: AttributeChoicesSortField! } -enum AttributeChoicesSortField @doc(category: "Attributes") { +enum AttributeChoicesSortField { """Sort attribute choice by name.""" NAME @@ -6843,14 +6902,14 @@ enum AttributeChoicesSortField @doc(category: "Attributes") { SLUG } -input AttributeValueFilterInput @doc(category: "Attributes") { +input AttributeValueFilterInput { search: String ids: [ID!] slugs: [String!] } """Where filtering options for attribute values.""" -input AttributeValueWhereInput @doc(category: "Attributes") { +input AttributeValueWhereInput { ids: [ID!] name: StringFilterInput slug: StringFilterInput @@ -6862,7 +6921,7 @@ input AttributeValueWhereInput @doc(category: "Attributes") { OR: [AttributeValueWhereInput!] } -type ProductTypeCountableConnection @doc(category: "Products") { +type ProductTypeCountableConnection { """Pagination data for this connection.""" pageInfo: PageInfo! edges: [ProductTypeCountableEdge!]! @@ -6871,7 +6930,7 @@ type ProductTypeCountableConnection @doc(category: "Products") { totalCount: Int } -type ProductTypeCountableEdge @doc(category: "Products") { +type ProductTypeCountableEdge { """The item at the end of the edge.""" node: ProductType! @@ -6882,7 +6941,7 @@ type ProductTypeCountableEdge @doc(category: "Products") { """ Represents a single category of products. Categories allow to organize products in a tree-hierarchies which can be used for navigation in the storefront. """ -type Category implements Node & ObjectWithMetadata @doc(category: "Products") { +type Category implements Node & ObjectWithMetadata { """The ID of the category.""" id: ID! @@ -6974,8 +7033,12 @@ type Category implements Node & ObjectWithMetadata @doc(category: "Products") { List of products in the category. Requires the following permissions to include the unpublished items: MANAGE_ORDERS, MANAGE_DISCOUNTS, MANAGE_PRODUCTS. """ products( - """Filtering options for products.""" - filter: ProductFilterInput @deprecated(reason: "Use `where` filter instead.") + """ + Filtering options for products. + + DEPRECATED: this field will be removed. Use `where` filter instead. + """ + filter: ProductFilterInput """Where filtering options for products.""" where: ProductWhereInput @@ -7035,7 +7098,7 @@ type Category implements Node & ObjectWithMetadata @doc(category: "Products") { """ The format of the image. When not provided, format of the original image will be used. """ - format: ThumbnailFormatEnum = ORIGINAL + format: ThumbnailFormatEnum ): Image """Returns translated category fields for the given language code.""" @@ -7045,7 +7108,7 @@ type Category implements Node & ObjectWithMetadata @doc(category: "Products") { ): CategoryTranslation } -type CategoryCountableConnection @doc(category: "Products") { +type CategoryCountableConnection { """Pagination data for this connection.""" pageInfo: PageInfo! edges: [CategoryCountableEdge!]! @@ -7054,7 +7117,7 @@ type CategoryCountableConnection @doc(category: "Products") { totalCount: Int } -type CategoryCountableEdge @doc(category: "Products") { +type CategoryCountableEdge { """The item at the end of the edge.""" node: Category! @@ -7062,7 +7125,7 @@ type CategoryCountableEdge @doc(category: "Products") { cursor: String! } -input ProductFilterInput @doc(category: "Products") { +input ProductFilterInput { isPublished: Boolean collections: [ID!] categories: [ID!] @@ -7101,41 +7164,57 @@ input ProductFilterInput @doc(category: "Products") { hasPreorderedVariants: Boolean slugs: [String!] - """Specifies the channel by which the data should be filtered.""" - channel: String @deprecated(reason: "Use root-level channel argument instead.") + """ + Specifies the channel by which the data should be filtered. + + DEPRECATED: this field will be removed. Use root-level channel argument instead. + """ + channel: String } -input AttributeInput @doc(category: "Attributes") { +input AttributeInput { """Internal representation of an attribute name.""" slug: String """ - Filter by value of the attribute. Only one value input field is allowed. If provided more than one, the error will be raised. Cannot be combined with deprecated fields of `AttributeInput`. + Filter by value of the attribute. Only one value input field is allowed. If provided more than one, the error will be raised. Cannot be combined with deprecated fields of `AttributeInput`. """ value: AssignedAttributeValueInput """ - Slugs identifying the attributeValues associated with the Attribute. When specified, it filters the results to include only records with one of the matching values. Requires `slug` to be provided. + Slugs identifying the attributeValues associated with the Attribute. When specified, it filters the results to include only records with one of the matching values. Requires `slug` to be provided. + + DEPRECATED: this field will be removed. Use `value` instead. """ - values: [String!] @deprecated(reason: "Use `value` instead.") + values: [String!] """ - The range that the returned values should be in. Requires `slug` to be provided. + The range that the returned values should be in. Requires `slug` to be provided. + + DEPRECATED: this field will be removed. Use `value` instead. """ - valuesRange: IntRangeInput @deprecated(reason: "Use `value` instead.") + valuesRange: IntRangeInput """ - The date/time range that the returned values should be in. Requires `slug` to be provided. + The date/time range that the returned values should be in. Requires `slug` to be provided. + + DEPRECATED: this field will be removed. Use `value` instead. """ - dateTime: DateTimeRangeInput @deprecated(reason: "Use `value` instead.") + dateTime: DateTimeRangeInput """ - The date range that the returned values should be in. In case of date/time attributes, the UTC midnight of the given date is used. Requires `slug` to be provided. + The date range that the returned values should be in. In case of date/time attributes, the UTC midnight of the given date is used. Requires `slug` to be provided. + + DEPRECATED: this field will be removed. Use `value` instead. """ - date: DateRangeInput @deprecated(reason: "Use `value` instead.") + date: DateRangeInput - """The boolean value of the attribute. Requires `slug` to be provided.""" - boolean: Boolean @deprecated(reason: "Use `value` instead.") + """ + The boolean value of the attribute. Requires `slug` to be provided. + + DEPRECATED: this field will be removed. Use `value` instead. + """ + boolean: Boolean } input AssignedAttributeValueInput { @@ -7256,12 +7335,12 @@ input IntRangeInput { lte: Int } -enum StockAvailability @doc(category: "Products") { +enum StockAvailability { IN_STOCK OUT_OF_STOCK } -input ProductStockFilterInput @doc(category: "Products") { +input ProductStockFilterInput { warehouseIds: [ID!] quantity: IntRangeInput } @@ -7274,7 +7353,7 @@ input PriceRangeInput { lte: Float } -input ProductWhereInput @doc(category: "Products") { +input ProductWhereInput { metadata: [MetadataFilter!] ids: [ID!] @@ -7363,12 +7442,16 @@ input DateTimeFilterInput { range: DateTimeRangeInput } -input ProductOrder @doc(category: "Products") { +input ProductOrder { """Specifies the direction in which to sort products.""" direction: OrderDirection! - """Specifies the channel in which to sort the data.""" - channel: String @deprecated(reason: "Use root-level channel argument instead.") + """ + Specifies the channel in which to sort the data. + + DEPRECATED: this field will be removed. Use root-level channel argument instead. + """ + channel: String """ Sort product by the selected attribute's values. @@ -7380,7 +7463,7 @@ input ProductOrder @doc(category: "Products") { field: ProductOrderField } -enum ProductOrderField @doc(category: "Products") { +enum ProductOrderField { """Sort products by name.""" NAME @@ -7466,7 +7549,7 @@ enum ThumbnailFormatEnum { } """Represents category translations.""" -type CategoryTranslation implements Node @doc(category: "Products") { +type CategoryTranslation implements Node { """The ID of the category translation.""" id: ID! @@ -7510,7 +7593,7 @@ type CategoryTranslation implements Node @doc(category: "Products") { """ Represents category original translatable fields and related translations. """ -type CategoryTranslatableContent implements Node @doc(category: "Products") { +type CategoryTranslatableContent implements Node { """The ID of the category translatable content.""" id: ID! @@ -7558,7 +7641,7 @@ type CategoryTranslatableContent implements Node @doc(category: "Products") { } """Represents a version of a product such as different size or color.""" -type ProductVariant implements Node & ObjectWithMetadata & ObjectWithAttributes @doc(category: "Products") { +type ProductVariant implements Node & ObjectWithMetadata & ObjectWithAttributes { """The ID of the product variant.""" id: ID! @@ -7707,8 +7790,12 @@ type ProductVariant implements Node & ObjectWithMetadata & ObjectWithAttributes """ address: AddressInput - """Two-letter ISO 3166-1 country code.""" - countryCode: CountryCode @deprecated(reason: "Use `address` argument instead.") + """ + Two-letter ISO 3166-1 country code. + + DEPRECATED: this field will be removed. Use `address` argument instead. + """ + countryCode: CountryCode ): [Stock!] """ @@ -7721,9 +7808,11 @@ type ProductVariant implements Node & ObjectWithMetadata & ObjectWithAttributes address: AddressInput """ - Two-letter ISO 3166-1 country code. When provided, the exact quantity from a warehouse operating in shipping zones that contain this country will be returned. Otherwise, it will return the maximum quantity from all shipping zones. + Two-letter ISO 3166-1 country code. When provided, the exact quantity from a warehouse operating in shipping zones that contain this country will be returned. Otherwise, it will return the maximum quantity from all shipping zones. + + DEPRECATED: this field will be removed. Use `address` argument instead. """ - countryCode: CountryCode @deprecated(reason: "Use `address` argument instead.") + countryCode: CountryCode ): Int """Preorder data for product variant.""" @@ -7740,7 +7829,7 @@ type ProductVariant implements Node & ObjectWithMetadata & ObjectWithAttributes } """Represents product variant channel listing.""" -type ProductVariantChannelListing implements Node @doc(category: "Products") { +type ProductVariantChannelListing implements Node { """The ID of the variant channel listing.""" id: ID! @@ -7772,7 +7861,7 @@ type ProductVariantChannelListing implements Node @doc(category: "Products") { } """Represents preorder variant data for channel.""" -type PreorderThreshold @doc(category: "Products") { +type PreorderThreshold { """Preorder threshold for product variant in this channel.""" quantity: Int @@ -7781,7 +7870,7 @@ type PreorderThreshold @doc(category: "Products") { } """Represents availability of a variant in the storefront.""" -type VariantPricingInfo @doc(category: "Products") { +type VariantPricingInfo { """Whether it is in sale or not.""" onSale: Boolean @@ -7896,7 +7985,7 @@ input MetadataInput { } """Represents an assigned attribute to an object.""" -type SelectedAttribute @doc(category: "Attributes") { +type SelectedAttribute { """Name of an attribute displayed in the interface.""" attribute: Attribute! @@ -7910,7 +7999,7 @@ enum ReportingPeriod { } """Represents a product image.""" -type ProductImage @doc(category: "Products") { +type ProductImage { """The ID of the image.""" id: ID! @@ -7932,12 +8021,12 @@ type ProductImage @doc(category: "Products") { """ The format of the image. When not provided, format of the original image will be used. """ - format: ThumbnailFormatEnum = ORIGINAL + format: ThumbnailFormatEnum ): String! } """Represents a product media.""" -type ProductMedia implements Node & ObjectWithMetadata @doc(category: "Products") { +type ProductMedia implements Node & ObjectWithMetadata { """The unique ID of the product media.""" id: ID! @@ -7993,20 +8082,20 @@ type ProductMedia implements Node & ObjectWithMetadata @doc(category: "Products" """ The format of the image. When not provided, format of the original image will be used. """ - format: ThumbnailFormatEnum = ORIGINAL + format: ThumbnailFormatEnum ): String! """Product id the media refers to.""" productId: ID } -enum ProductMediaType @doc(category: "Products") { +enum ProductMediaType { IMAGE VIDEO } """Represents product variant translations.""" -type ProductVariantTranslation implements Node @doc(category: "Products") { +type ProductVariantTranslation implements Node { """The ID of the product variant translation.""" id: ID! @@ -8023,7 +8112,7 @@ type ProductVariantTranslation implements Node @doc(category: "Products") { """ Represents product variant's original translatable fields and related translations. """ -type ProductVariantTranslatableContent implements Node @doc(category: "Products") { +type ProductVariantTranslatableContent implements Node { """The ID of the product variant translatable content.""" id: ID! @@ -8047,7 +8136,7 @@ type ProductVariantTranslatableContent implements Node @doc(category: "Products" } """Represents digital content associated with a product variant.""" -type DigitalContent implements Node & ObjectWithMetadata @doc(category: "Products") { +type DigitalContent implements Node & ObjectWithMetadata { """The ID of the digital content.""" id: ID! @@ -8104,7 +8193,7 @@ type DigitalContent implements Node & ObjectWithMetadata @doc(category: "Product } """Represents a URL for digital content.""" -type DigitalContentUrl implements Node @doc(category: "Products") { +type DigitalContentUrl implements Node { """The ID of the digital content URL.""" id: ID! @@ -8127,7 +8216,7 @@ type DigitalContentUrl implements Node @doc(category: "Products") { scalar UUID """Represents stock.""" -type Stock implements Node @doc(category: "Products") { +type Stock implements Node { """The ID of stock.""" id: ID! @@ -8160,7 +8249,7 @@ type Stock implements Node @doc(category: "Products") { } """Represents preorder settings for product variant.""" -type PreorderData @doc(category: "Products") { +type PreorderData { """ The global preorder threshold for product variant. @@ -8180,7 +8269,7 @@ type PreorderData @doc(category: "Products") { } """Represents availability of a product in the storefront.""" -type ProductPricingInfo @doc(category: "Products") { +type ProductPricingInfo { """Whether it is in sale or not.""" onSale: Boolean @@ -8229,7 +8318,7 @@ type TaxedMoneyRange { } """Represents product channel listing.""" -type ProductChannelListing implements Node @doc(category: "Products") { +type ProductChannelListing implements Node { """The ID of the product channel listing.""" id: ID! publicationDate: Date @deprecated(reason: "Use the `publishedAt` field to fetch the publication date.") @@ -8284,7 +8373,7 @@ type ProductChannelListing implements Node @doc(category: "Products") { } """Metadata for the Margin class.""" -type Margin @doc(category: "Products") { +type Margin { """The starting value of the margin.""" start: Int @@ -8292,7 +8381,7 @@ type Margin @doc(category: "Products") { stop: Int } -type ProductVariantCountableConnection @doc(category: "Products") { +type ProductVariantCountableConnection { """Pagination data for this connection.""" pageInfo: PageInfo! edges: [ProductVariantCountableEdge!]! @@ -8301,7 +8390,7 @@ type ProductVariantCountableConnection @doc(category: "Products") { totalCount: Int } -type ProductVariantCountableEdge @doc(category: "Products") { +type ProductVariantCountableEdge { """The item at the end of the edge.""" node: ProductVariant! @@ -8309,7 +8398,7 @@ type ProductVariantCountableEdge @doc(category: "Products") { cursor: String! } -input ProductVariantFilterInput @doc(category: "Products") { +input ProductVariantFilterInput { search: String sku: [String!] metadata: [MetadataFilter!] @@ -8317,7 +8406,7 @@ input ProductVariantFilterInput @doc(category: "Products") { updatedAt: DateTimeRangeInput } -input ProductVariantWhereInput @doc(category: "Products") { +input ProductVariantWhereInput { metadata: [MetadataFilter!] ids: [ID!] @@ -8351,7 +8440,7 @@ input AssignedAttributeWhereInput { value: AssignedAttributeValueInput } -input ProductVariantSortingInput @doc(category: "Products") { +input ProductVariantSortingInput { """Specifies the direction in which to sort productVariants.""" direction: OrderDirection! @@ -8359,12 +8448,12 @@ input ProductVariantSortingInput @doc(category: "Products") { field: ProductVariantSortField! } -enum ProductVariantSortField @doc(category: "Products") { +enum ProductVariantSortField { """Sort product variants by last modification date.""" LAST_MODIFIED_AT } -input MediaSortingInput @doc(category: "Products") { +input MediaSortingInput { """Specifies the direction in which to sort media.""" direction: OrderDirection! @@ -8372,13 +8461,13 @@ input MediaSortingInput @doc(category: "Products") { field: MediaChoicesSortField! } -enum MediaChoicesSortField @doc(category: "Products") { +enum MediaChoicesSortField { """Sort media by ID.""" ID } """Represents a collection of products.""" -type Collection implements Node & ObjectWithMetadata @doc(category: "Products") { +type Collection implements Node & ObjectWithMetadata { """The ID of the collection.""" id: ID! @@ -8445,8 +8534,12 @@ type Collection implements Node & ObjectWithMetadata @doc(category: "Products") """List of products in this collection.""" products( - """Filtering options for products.""" - filter: ProductFilterInput @deprecated(reason: "Use `where` filter instead.") + """ + Filtering options for products. + + DEPRECATED: this field will be removed. Use `where` filter instead. + """ + filter: ProductFilterInput """Where filtering options for products.""" where: ProductWhereInput @@ -8484,7 +8577,7 @@ type Collection implements Node & ObjectWithMetadata @doc(category: "Products") """ The format of the image. When not provided, format of the original image will be used. """ - format: ThumbnailFormatEnum = ORIGINAL + format: ThumbnailFormatEnum ): Image """Returns translated collection fields for the given language code.""" @@ -8502,7 +8595,7 @@ type Collection implements Node & ObjectWithMetadata @doc(category: "Products") } """Represents collection translations.""" -type CollectionTranslation implements Node @doc(category: "Products") { +type CollectionTranslation implements Node { """The ID of the collection translation.""" id: ID! @@ -8546,7 +8639,7 @@ type CollectionTranslation implements Node @doc(category: "Products") { """ Represents collection's original translatable fields and related translations. """ -type CollectionTranslatableContent implements Node @doc(category: "Products") { +type CollectionTranslatableContent implements Node { """The ID of the collection translatable content.""" id: ID! @@ -8594,7 +8687,7 @@ type CollectionTranslatableContent implements Node @doc(category: "Products") { } """Represents collection channel listing.""" -type CollectionChannelListing implements Node @doc(category: "Products") { +type CollectionChannelListing implements Node { """The ID of the collection channel listing.""" id: ID! publicationDate: Date @deprecated(reason: "Use the `publishedAt` field to fetch the publication date.") @@ -8610,7 +8703,7 @@ type CollectionChannelListing implements Node @doc(category: "Products") { } """Represents product translations.""" -type ProductTranslation implements Node @doc(category: "Products") { +type ProductTranslation implements Node { """The ID of the product translation.""" id: ID! @@ -8654,7 +8747,7 @@ type ProductTranslation implements Node @doc(category: "Products") { """ Represents product's original translatable fields and related translations. """ -type ProductTranslatableContent implements Node @doc(category: "Products") { +type ProductTranslatableContent implements Node { """The ID of the product translatable content.""" id: ID! @@ -8704,7 +8797,7 @@ type ProductTranslatableContent implements Node @doc(category: "Products") { attributeValues: [AttributeValueTranslatableContent!]! } -type StockCountableConnection @doc(category: "Products") { +type StockCountableConnection { """Pagination data for this connection.""" pageInfo: PageInfo! edges: [StockCountableEdge!]! @@ -8713,7 +8806,7 @@ type StockCountableConnection @doc(category: "Products") { totalCount: Int } -type StockCountableEdge @doc(category: "Products") { +type StockCountableEdge { """The item at the end of the edge.""" node: Stock! @@ -8721,7 +8814,7 @@ type StockCountableEdge @doc(category: "Products") { cursor: String! } -type WarehouseCountableConnection @doc(category: "Products") { +type WarehouseCountableConnection { """Pagination data for this connection.""" pageInfo: PageInfo! edges: [WarehouseCountableEdge!]! @@ -8730,7 +8823,7 @@ type WarehouseCountableConnection @doc(category: "Products") { totalCount: Int } -type WarehouseCountableEdge @doc(category: "Products") { +type WarehouseCountableEdge { """The item at the end of the edge.""" node: Warehouse! @@ -8738,7 +8831,7 @@ type WarehouseCountableEdge @doc(category: "Products") { cursor: String! } -input WarehouseFilterInput @doc(category: "Products") { +input WarehouseFilterInput { clickAndCollectOption: WarehouseClickAndCollectOptionEnum metadata: [MetadataFilter!] search: String @@ -8748,7 +8841,7 @@ input WarehouseFilterInput @doc(category: "Products") { slugs: [String!] } -input WarehouseSortingInput @doc(category: "Products") { +input WarehouseSortingInput { """Specifies the direction in which to sort warehouses.""" direction: OrderDirection! @@ -8756,7 +8849,7 @@ input WarehouseSortingInput @doc(category: "Products") { field: WarehouseSortField! } -enum WarehouseSortField @doc(category: "Products") { +enum WarehouseSortField { """Sort warehouses by name.""" NAME } @@ -8783,7 +8876,7 @@ union TranslatableItem = ProductTranslatableContent | CollectionTranslatableCont """ Represents page's original translatable fields and related translations. """ -type PageTranslatableContent implements Node @doc(category: "Pages") { +type PageTranslatableContent implements Node { """The ID of the page translatable content.""" id: ID! @@ -8836,7 +8929,7 @@ type PageTranslatableContent implements Node @doc(category: "Pages") { } """Represents page translations.""" -type PageTranslation implements Node @doc(category: "Pages") { +type PageTranslation implements Node { """The ID of the page translation.""" id: ID! @@ -8880,7 +8973,7 @@ type PageTranslation implements Node @doc(category: "Pages") { """ A static page that can be manually added by a shop operator through the dashboard. """ -type Page implements Node & ObjectWithMetadata & ObjectWithAttributes @doc(category: "Pages") { +type Page implements Node & ObjectWithMetadata & ObjectWithAttributes { """ID of the page.""" id: ID! @@ -8992,7 +9085,7 @@ type Page implements Node & ObjectWithMetadata & ObjectWithAttributes @doc(categ """ Represents voucher's original translatable fields and related translations. """ -type VoucherTranslatableContent implements Node @doc(category: "Discounts") { +type VoucherTranslatableContent implements Node { """The ID of the voucher translatable content.""" id: ID! @@ -9017,7 +9110,7 @@ type VoucherTranslatableContent implements Node @doc(category: "Discounts") { } """Represents voucher translations.""" -type VoucherTranslation implements Node @doc(category: "Discounts") { +type VoucherTranslation implements Node { """The ID of the voucher translation.""" id: ID! @@ -9034,7 +9127,7 @@ type VoucherTranslation implements Node @doc(category: "Discounts") { """ Vouchers allow giving discounts to particular customers on categories, collections or specific products. They can be used during checkout by providing valid voucher codes. """ -type Voucher implements Node & ObjectWithMetadata @doc(category: "Discounts") { +type Voucher implements Node & ObjectWithMetadata { """The ID of the voucher.""" id: ID! @@ -9094,7 +9187,11 @@ type Voucher implements Node & ObjectWithMetadata @doc(category: "Discounts") { last: Int ): VoucherCodeCountableConnection - """The code of the voucher.""" + """ + The code of the voucher. + + DEPRECATED: this field will be removed. + """ code: String """The number of times a voucher can be used.""" @@ -9254,7 +9351,7 @@ type Voucher implements Node & ObjectWithMetadata @doc(category: "Discounts") { channelListings: [VoucherChannelListing!] } -type VoucherCodeCountableConnection @doc(category: "Discounts") { +type VoucherCodeCountableConnection { """Pagination data for this connection.""" pageInfo: PageInfo! edges: [VoucherCodeCountableEdge!]! @@ -9263,7 +9360,7 @@ type VoucherCodeCountableConnection @doc(category: "Discounts") { totalCount: Int } -type VoucherCodeCountableEdge @doc(category: "Discounts") { +type VoucherCodeCountableEdge { """The item at the end of the edge.""" node: VoucherCode! @@ -9296,7 +9393,7 @@ type VoucherCode { } """Represents a connection to a list of collections.""" -type CollectionCountableConnection @doc(category: "Products") { +type CollectionCountableConnection { """Pagination data for this connection.""" pageInfo: PageInfo! edges: [CollectionCountableEdge!]! @@ -9305,7 +9402,7 @@ type CollectionCountableConnection @doc(category: "Products") { totalCount: Int } -type CollectionCountableEdge @doc(category: "Products") { +type CollectionCountableEdge { """The item at the end of the edge.""" node: Collection! @@ -9313,19 +9410,19 @@ type CollectionCountableEdge @doc(category: "Products") { cursor: String! } -enum DiscountValueTypeEnum @doc(category: "Discounts") { +enum DiscountValueTypeEnum { FIXED PERCENTAGE } -enum VoucherTypeEnum @doc(category: "Discounts") { +enum VoucherTypeEnum { SHIPPING ENTIRE_ORDER SPECIFIC_PRODUCT } """Represents voucher channel listing.""" -type VoucherChannelListing implements Node @doc(category: "Discounts") { +type VoucherChannelListing implements Node { """The ID of channel listing.""" id: ID! @@ -9345,7 +9442,7 @@ type VoucherChannelListing implements Node @doc(category: "Discounts") { """ Represents menu item's original translatable fields and related translations. """ -type MenuItemTranslatableContent implements Node @doc(category: "Menu") { +type MenuItemTranslatableContent implements Node { """The ID of the menu item translatable content.""" id: ID! @@ -9368,7 +9465,7 @@ type MenuItemTranslatableContent implements Node @doc(category: "Menu") { } """Represents menu item translations.""" -type MenuItemTranslation implements Node @doc(category: "Menu") { +type MenuItemTranslation implements Node { """The ID of the menu item translation.""" id: ID! @@ -9385,7 +9482,7 @@ type MenuItemTranslation implements Node @doc(category: "Menu") { """ Represents a single item of the related menu. Can store categories, collection or pages. """ -type MenuItem implements Node & ObjectWithMetadata @doc(category: "Menu") { +type MenuItem implements Node & ObjectWithMetadata { """The ID of the menu item.""" id: ID! @@ -9460,7 +9557,7 @@ type MenuItem implements Node & ObjectWithMetadata @doc(category: "Menu") { """ Represents a single menu - an object that is used to help navigate through the store. """ -type Menu implements Node & ObjectWithMetadata @doc(category: "Menu") { +type Menu implements Node & ObjectWithMetadata { """The ID of the menu.""" id: ID! @@ -9507,7 +9604,7 @@ type Menu implements Node & ObjectWithMetadata @doc(category: "Menu") { """ Represents promotion's original translatable fields and related translations. """ -type PromotionTranslatableContent implements Node @doc(category: "Discounts") { +type PromotionTranslatableContent implements Node { """ID of the promotion translatable content.""" id: ID! @@ -9532,7 +9629,7 @@ type PromotionTranslatableContent implements Node @doc(category: "Discounts") { } """Represents promotion translations.""" -type PromotionTranslation implements Node @doc(category: "Discounts") { +type PromotionTranslation implements Node { """ID of the promotion translation.""" id: ID! @@ -9556,7 +9653,7 @@ type PromotionTranslation implements Node @doc(category: "Discounts") { """ Represents promotion rule's original translatable fields and related translations. """ -type PromotionRuleTranslatableContent implements Node @doc(category: "Discounts") { +type PromotionRuleTranslatableContent implements Node { """ID of the promotion rule translatable content.""" id: ID! @@ -9581,7 +9678,7 @@ type PromotionRuleTranslatableContent implements Node @doc(category: "Discounts" } """Represents promotion rule translations.""" -type PromotionRuleTranslation implements Node @doc(category: "Discounts") { +type PromotionRuleTranslation implements Node { """ID of the promotion rule translation.""" id: ID! @@ -9607,7 +9704,7 @@ Represents sale's original translatable fields and related translations. DEPRECATED: this type will be removed. Use `PromotionTranslatableContent` instead. """ -type SaleTranslatableContent implements Node @doc(category: "Discounts") { +type SaleTranslatableContent implements Node { """The ID of the sale translatable content.""" id: ID! @@ -9636,7 +9733,7 @@ Represents sale translations. DEPRECATED: this type will be removed. Use `PromotionTranslation` instead. """ -type SaleTranslation implements Node @doc(category: "Discounts") { +type SaleTranslation implements Node { """The ID of the sale translation.""" id: ID! @@ -9655,7 +9752,7 @@ Sales allow creating discounts for categories, collections or products and are v DEPRECATED: this type will be removed. Use `Promotion` type instead. """ -type Sale implements Node & ObjectWithMetadata @doc(category: "Discounts") { +type Sale implements Node & ObjectWithMetadata { """The ID of the sale.""" id: ID! @@ -9815,7 +9912,7 @@ type Sale implements Node & ObjectWithMetadata @doc(category: "Discounts") { currency: String } -enum SaleType @doc(category: "Discounts") { +enum SaleType { FIXED PERCENTAGE } @@ -9825,7 +9922,7 @@ Represents sale channel listing. DEPRECATED: this type will be removed. Use `PromotionRule` type instead. """ -type SaleChannelListing implements Node @doc(category: "Discounts") { +type SaleChannelListing implements Node { """The ID of the channel listing.""" id: ID! @@ -9855,7 +9952,7 @@ enum TranslatableKinds { VOUCHER } -type TaxConfigurationCountableConnection @doc(category: "Taxes") { +type TaxConfigurationCountableConnection { """Pagination data for this connection.""" pageInfo: PageInfo! edges: [TaxConfigurationCountableEdge!]! @@ -9864,7 +9961,7 @@ type TaxConfigurationCountableConnection @doc(category: "Taxes") { totalCount: Int } -type TaxConfigurationCountableEdge @doc(category: "Taxes") { +type TaxConfigurationCountableEdge { """The item at the end of the edge.""" node: TaxConfiguration! @@ -9872,12 +9969,12 @@ type TaxConfigurationCountableEdge @doc(category: "Taxes") { cursor: String! } -input TaxConfigurationFilterInput @doc(category: "Taxes") { +input TaxConfigurationFilterInput { metadata: [MetadataFilter!] ids: [ID!] } -type TaxClassCountableConnection @doc(category: "Taxes") { +type TaxClassCountableConnection { """Pagination data for this connection.""" pageInfo: PageInfo! edges: [TaxClassCountableEdge!]! @@ -9886,7 +9983,7 @@ type TaxClassCountableConnection @doc(category: "Taxes") { totalCount: Int } -type TaxClassCountableEdge @doc(category: "Taxes") { +type TaxClassCountableEdge { """The item at the end of the edge.""" node: TaxClass! @@ -9894,7 +9991,7 @@ type TaxClassCountableEdge @doc(category: "Taxes") { cursor: String! } -input TaxClassSortingInput @doc(category: "Taxes") { +input TaxClassSortingInput { """Specifies the direction in which to sort tax classes.""" direction: OrderDirection! @@ -9902,19 +9999,19 @@ input TaxClassSortingInput @doc(category: "Taxes") { field: TaxClassSortField! } -enum TaxClassSortField @doc(category: "Taxes") { +enum TaxClassSortField { """Sort tax classes by name.""" NAME } -input TaxClassFilterInput @doc(category: "Taxes") { +input TaxClassFilterInput { metadata: [MetadataFilter!] ids: [ID!] countries: [CountryCode!] } """Tax class rates grouped by country.""" -type TaxCountryConfiguration @doc(category: "Taxes") { +type TaxCountryConfiguration { """A country for which tax class rates are grouped.""" country: CountryDisplay! @@ -9922,7 +10019,7 @@ type TaxCountryConfiguration @doc(category: "Taxes") { taxClassCountryRates: [TaxClassCountryRate!]! } -input StockFilterInput @doc(category: "Products") { +input StockFilterInput { quantity: Float search: String } @@ -9966,8 +10063,12 @@ type Shop implements ObjectWithMetadata { """List of available payment gateways.""" availablePaymentGateways( - """A currency for which gateways will be returned.""" - currency: String @deprecated(reason: "Use `channel` argument instead.") + """ + A currency for which gateways will be returned. + + DEPRECATED: this field will be removed. Use `channel` argument instead. + """ + currency: String """Slug of a channel for which the data should be returned.""" channel: String @@ -9994,8 +10095,12 @@ type Shop implements ObjectWithMetadata { """List of countries available in the shop.""" countries( - """A language code to return the translation for.""" - languageCode: LanguageCodeEnum @deprecated + """ + A language code to return the translation for. + + DEPRECATED: this field will be removed. + """ + languageCode: LanguageCodeEnum """Filtering options for countries""" filter: CountryFilterInput @@ -10174,7 +10279,7 @@ type Shop implements ObjectWithMetadata { """ Available payment gateway backend with configuration necessary to setup client. """ -type PaymentGateway @doc(category: "Payments") { +type PaymentGateway { """Payment gateway name.""" name: String! @@ -10189,7 +10294,7 @@ type PaymentGateway @doc(category: "Payments") { } """Payment gateway client configuration key and value pair.""" -type GatewayConfigLine @doc(category: "Payments") { +type GatewayConfigLine { """Gateway config key.""" field: String! @@ -10198,7 +10303,7 @@ type GatewayConfigLine @doc(category: "Payments") { } """External authentication plugin.""" -type ExternalAuthentication @doc(category: "Authentication") { +type ExternalAuthentication { """ID of external authentication plugin.""" id: String! @@ -10226,7 +10331,7 @@ type Domain { } """Represents shop translations.""" -type ShopTranslation implements Node @doc(category: "Shop") { +type ShopTranslation implements Node { """The ID of the shop translation.""" id: ID! @@ -10258,7 +10363,7 @@ type StaffNotificationRecipient implements Node { } """Represents user data.""" -type User implements Node & ObjectWithMetadata @doc(category: "Users") { +type User implements Node & ObjectWithMetadata { """The ID of the user.""" id: ID! @@ -10428,7 +10533,7 @@ type User implements Node & ObjectWithMetadata @doc(category: "Users") { """ The format of the image. When not provided, format of the original image will be used. """ - format: ThumbnailFormatEnum = ORIGINAL + format: ThumbnailFormatEnum ): Image """ @@ -10477,7 +10582,7 @@ type User implements Node & ObjectWithMetadata @doc(category: "Users") { } """Checkout object.""" -type Checkout implements Node & ObjectWithMetadata @doc(category: "Checkout") { +type Checkout implements Node & ObjectWithMetadata { """The ID of the checkout.""" id: ID! @@ -10574,7 +10679,7 @@ type Checkout implements Node & ObjectWithMetadata @doc(category: "Checkout") { - SHIPPING_LIST_METHODS_FOR_CHECKOUT (sync): Optionally triggered when cached external shipping methods are invalid. - CHECKOUT_FILTER_SHIPPING_METHODS (sync): Optionally triggered when cached filtered shipping methods are invalid. """ - availableShippingMethods: [ShippingMethod!]! @webhookEventsInfo(asyncEvents: [], syncEvents: [SHIPPING_LIST_METHODS_FOR_CHECKOUT, CHECKOUT_FILTER_SHIPPING_METHODS]) @deprecated(reason: "Use `shippingMethods` instead.") + availableShippingMethods: [ShippingMethod!]! @deprecated(reason: "Use `shippingMethods` instead.") """ Shipping methods that can be used with this checkout. @@ -10583,7 +10688,7 @@ type Checkout implements Node & ObjectWithMetadata @doc(category: "Checkout") { - SHIPPING_LIST_METHODS_FOR_CHECKOUT (sync): Optionally triggered when cached external shipping methods are invalid. - CHECKOUT_FILTER_SHIPPING_METHODS (sync): Optionally triggered when cached filtered shipping methods are invalid. """ - shippingMethods: [ShippingMethod!]! @webhookEventsInfo(asyncEvents: [], syncEvents: [SHIPPING_LIST_METHODS_FOR_CHECKOUT, CHECKOUT_FILTER_SHIPPING_METHODS]) + shippingMethods: [ShippingMethod!]! """Collection points that can be used for this order.""" availableCollectionPoints: [Warehouse!]! @@ -10594,7 +10699,7 @@ type Checkout implements Node & ObjectWithMetadata @doc(category: "Checkout") { Triggers the following webhook events: - PAYMENT_LIST_GATEWAYS (sync): Fetch payment gateways available for checkout. """ - availablePaymentGateways: [PaymentGateway!]! @webhookEventsInfo(asyncEvents: [], syncEvents: [PAYMENT_LIST_GATEWAYS]) + availablePaymentGateways: [PaymentGateway!]! """Email of a customer.""" email: String @@ -10624,7 +10729,7 @@ type Checkout implements Node & ObjectWithMetadata @doc(category: "Checkout") { Triggers the following webhook events: - CHECKOUT_CALCULATE_TAXES (sync): Optionally triggered when checkout prices are expired. """ - shippingPrice: TaxedMoney! @webhookEventsInfo(asyncEvents: [], syncEvents: [CHECKOUT_CALCULATE_TAXES]) + shippingPrice: TaxedMoney! """ The shipping method related with checkout. @@ -10633,7 +10738,7 @@ type Checkout implements Node & ObjectWithMetadata @doc(category: "Checkout") { - SHIPPING_LIST_METHODS_FOR_CHECKOUT (sync): Optionally triggered when cached external shipping methods are invalid. - CHECKOUT_FILTER_SHIPPING_METHODS (sync): Optionally triggered when cached filtered shipping methods are invalid. """ - shippingMethod: ShippingMethod @webhookEventsInfo(asyncEvents: [], syncEvents: [SHIPPING_LIST_METHODS_FOR_CHECKOUT, CHECKOUT_FILTER_SHIPPING_METHODS]) @deprecated(reason: "Use `deliveryMethod` instead.") + shippingMethod: ShippingMethod @deprecated(reason: "Use `deliveryMethod` instead.") """ The delivery method selected for this checkout. @@ -10642,7 +10747,7 @@ type Checkout implements Node & ObjectWithMetadata @doc(category: "Checkout") { - SHIPPING_LIST_METHODS_FOR_CHECKOUT (sync): Optionally triggered when cached external shipping methods are invalid. - CHECKOUT_FILTER_SHIPPING_METHODS (sync): Optionally triggered when cached filtered shipping methods are invalid. """ - deliveryMethod: DeliveryMethod @webhookEventsInfo(asyncEvents: [], syncEvents: [SHIPPING_LIST_METHODS_FOR_CHECKOUT, CHECKOUT_FILTER_SHIPPING_METHODS]) + deliveryMethod: DeliveryMethod """ The price of the checkout before shipping, with taxes included. @@ -10650,7 +10755,7 @@ type Checkout implements Node & ObjectWithMetadata @doc(category: "Checkout") { Triggers the following webhook events: - CHECKOUT_CALCULATE_TAXES (sync): Optionally triggered when checkout prices are expired. """ - subtotalPrice: TaxedMoney! @webhookEventsInfo(asyncEvents: [], syncEvents: [CHECKOUT_CALCULATE_TAXES]) + subtotalPrice: TaxedMoney! """Returns True if checkout has to be exempt from taxes.""" taxExemption: Boolean! @@ -10664,7 +10769,7 @@ type Checkout implements Node & ObjectWithMetadata @doc(category: "Checkout") { Triggers the following webhook events: - CHECKOUT_CALCULATE_TAXES (sync): Optionally triggered when checkout prices are expired. """ - totalPrice: TaxedMoney! @webhookEventsInfo(asyncEvents: [], syncEvents: [CHECKOUT_CALCULATE_TAXES]) + totalPrice: TaxedMoney! """ The difference between the paid and the checkout total amount. @@ -10672,7 +10777,7 @@ type Checkout implements Node & ObjectWithMetadata @doc(category: "Checkout") { Triggers the following webhook events: - CHECKOUT_CALCULATE_TAXES (sync): Optionally triggered when checkout prices are expired. """ - totalBalance: Money! @webhookEventsInfo(asyncEvents: [], syncEvents: [CHECKOUT_CALCULATE_TAXES]) + totalBalance: Money! """Checkout language code.""" languageCode: LanguageCodeEnum! @@ -10691,7 +10796,7 @@ type Checkout implements Node & ObjectWithMetadata @doc(category: "Checkout") { Triggers the following webhook events: - CHECKOUT_CALCULATE_TAXES (sync): Optionally triggered when checkout prices are expired. """ - authorizeStatus: CheckoutAuthorizeStatusEnum! @webhookEventsInfo(asyncEvents: [], syncEvents: [CHECKOUT_CALCULATE_TAXES]) + authorizeStatus: CheckoutAuthorizeStatusEnum! """ The charge status of the checkout. @@ -10699,7 +10804,7 @@ type Checkout implements Node & ObjectWithMetadata @doc(category: "Checkout") { Triggers the following webhook events: - CHECKOUT_CALCULATE_TAXES (sync): Optionally triggered when checkout prices are expired. """ - chargeStatus: CheckoutChargeStatusEnum! @webhookEventsInfo(asyncEvents: [], syncEvents: [CHECKOUT_CALCULATE_TAXES]) + chargeStatus: CheckoutChargeStatusEnum! """ List of user's stored payment methods that can be used in this checkout session. It uses the channel that the checkout was created in. When `amount` is not provided, `checkout.total` will be used as a default value. @@ -10716,7 +10821,7 @@ type Checkout implements Node & ObjectWithMetadata @doc(category: "Checkout") { """ A gift card is a prepaid electronic payment card accepted in stores. They can be used during checkout by providing a valid gift card codes. """ -type GiftCard implements Node & ObjectWithMetadata @doc(category: "Gift cards") { +type GiftCard implements Node & ObjectWithMetadata { """ID of the gift card.""" id: ID! @@ -10832,7 +10937,7 @@ type GiftCard implements Node & ObjectWithMetadata @doc(category: "Gift cards") } """History log of the gift card.""" -type GiftCardEvent implements Node @doc(category: "Gift cards") { +type GiftCardEvent implements Node { """ID of the event associated with a gift card.""" id: ID! @@ -10880,7 +10985,7 @@ type GiftCardEvent implements Node @doc(category: "Gift cards") { oldExpiryDate: Date } -enum GiftCardEventsEnum @doc(category: "Gift cards") { +enum GiftCardEventsEnum { ISSUED BOUGHT UPDATED @@ -10895,7 +11000,7 @@ enum GiftCardEventsEnum @doc(category: "Gift cards") { USED_IN_ORDER } -type GiftCardEventBalance @doc(category: "Gift cards") { +type GiftCardEventBalance { """Initial balance of the gift card.""" initialBalance: Money @@ -10909,13 +11014,13 @@ type GiftCardEventBalance @doc(category: "Gift cards") { oldCurrentBalance: Money } -input GiftCardEventFilterInput @doc(category: "Gift cards") { +input GiftCardEventFilterInput { type: GiftCardEventsEnum orders: [ID!] } """The gift card tag.""" -type GiftCardTag implements Node @doc(category: "Gift cards") { +type GiftCardTag implements Node { """ID of the tag associated with a gift card.""" id: ID! @@ -10924,7 +11029,7 @@ type GiftCardTag implements Node @doc(category: "Gift cards") { } """Represents an item in the checkout.""" -type CheckoutLine implements Node & ObjectWithMetadata @doc(category: "Checkout") { +type CheckoutLine implements Node & ObjectWithMetadata { """The ID of the checkout line.""" id: ID! @@ -10970,7 +11075,7 @@ type CheckoutLine implements Node & ObjectWithMetadata @doc(category: "Checkout" Triggers the following webhook events: - CHECKOUT_CALCULATE_TAXES (sync): Optionally triggered when checkout prices are expired. """ - unitPrice: TaxedMoney! @webhookEventsInfo(asyncEvents: [], syncEvents: [CHECKOUT_CALCULATE_TAXES]) + unitPrice: TaxedMoney! """The unit price of the checkout line, without discounts.""" undiscountedUnitPrice: Money! @@ -10988,7 +11093,7 @@ type CheckoutLine implements Node & ObjectWithMetadata @doc(category: "Checkout" Triggers the following webhook events: - CHECKOUT_CALCULATE_TAXES (sync): Optionally triggered when checkout prices are expired. """ - totalPrice: TaxedMoney! @webhookEventsInfo(asyncEvents: [], syncEvents: [CHECKOUT_CALCULATE_TAXES]) + totalPrice: TaxedMoney! """The sum of the checkout line price, without discounts.""" undiscountedTotalPrice: Money! @@ -11022,7 +11127,7 @@ union CheckoutLineProblem = CheckoutLineProblemInsufficientStock | CheckoutLineP """ Indicates insufficient stock for a given checkout line.Placing the order will not be possible until solving this problem. """ -type CheckoutLineProblemInsufficientStock @doc(category: "Checkout") { +type CheckoutLineProblemInsufficientStock { """Available quantity of a variant.""" availableQuantity: Int @@ -11036,7 +11141,7 @@ type CheckoutLineProblemInsufficientStock @doc(category: "Checkout") { """ The variant assigned to the checkout line is not available.Placing the order will not be possible until solving this problem. """ -type CheckoutLineProblemVariantNotAvailable @doc(category: "Checkout") { +type CheckoutLineProblemVariantNotAvailable { """The line that has variant that is not available.""" line: CheckoutLine! } @@ -11047,7 +11152,7 @@ Represents a delivery method chosen for the checkout. `Warehouse` type is used w union DeliveryMethod = Warehouse | ShippingMethod """Represents a payment transaction.""" -type TransactionItem implements Node & ObjectWithMetadata @doc(category: "Payments") { +type TransactionItem implements Node & ObjectWithMetadata { """The ID of the object.""" id: ID! @@ -11167,22 +11272,15 @@ type TransactionItem implements Node & ObjectWithMetadata @doc(category: "Paymen reasonReference: Page } -""" -Represents possible actions on payment transaction. - - The following actions are possible: - CHARGE - Represents the charge action. - REFUND - Represents a refund action. - CANCEL - Represents a cancel action. Added in Saleor 3.12. -""" -enum TransactionActionEnum @doc(category: "Payments") { +"Represents possible actions on payment transaction.\n\n The following actions are possible:\n CHARGE - Represents the charge action.\n REFUND - Represents a refund action.\n CANCEL - Represents a cancel action. Added in Saleor 3.12.\n " +enum TransactionActionEnum { CHARGE REFUND CANCEL } """Represents an order in the shop.""" -type Order implements Node & ObjectWithMetadata @doc(category: "Orders") { +type Order implements Node & ObjectWithMetadata { """ID of the order.""" id: ID! @@ -11230,7 +11328,11 @@ type Order implements Node & ObjectWithMetadata @doc(category: "Orders") { """ user: User - """Google Analytics tracking client ID.""" + """ + Google Analytics tracking client ID. + + DEPRECATED: this field will be removed. + """ trackingClientId: String! """ @@ -11391,7 +11493,7 @@ type Order implements Node & ObjectWithMetadata @doc(category: "Orders") { """Amount authorized for the order.""" totalAuthorized: Money! - """Amount captured for the order.""" + """Amount captured for the order. """ totalCaptured: Money! @deprecated(reason: "Use `totalCharged` instead.") """Amount charged for the order.""" @@ -11502,7 +11604,7 @@ type Order implements Node & ObjectWithMetadata @doc(category: "Orders") { totalRemainingGrant: Money! } -enum OrderStatus @doc(category: "Orders") { +enum OrderStatus { DRAFT UNCONFIRMED UNFULFILLED @@ -11515,7 +11617,7 @@ enum OrderStatus @doc(category: "Orders") { } """Represents order fulfillment.""" -type Fulfillment implements Node & ObjectWithMetadata @doc(category: "Orders") { +type Fulfillment implements Node & ObjectWithMetadata { """ID of the fulfillment.""" id: ID! @@ -11570,6 +11672,20 @@ type Fulfillment implements Node & ObjectWithMetadata @doc(category: "Orders") { """Warehouse from fulfillment was fulfilled.""" warehouse: Warehouse + """ + Reason for the fulfillment action. + + Added in Saleor 3.22. + """ + reason: String + + """ + Reason Model (Page) reference for this fulfillment. + + Added in Saleor 3.22. + """ + reasonReference: Page + """Amount of refunded shipping price.""" shippingRefundedAmount: Money @@ -11577,7 +11693,7 @@ type Fulfillment implements Node & ObjectWithMetadata @doc(category: "Orders") { totalRefundedAmount: Money } -enum FulfillmentStatus @doc(category: "Orders") { +enum FulfillmentStatus { FULFILLED REFUNDED RETURNED @@ -11588,7 +11704,7 @@ enum FulfillmentStatus @doc(category: "Orders") { } """Represents line of the fulfillment.""" -type FulfillmentLine implements Node @doc(category: "Orders") { +type FulfillmentLine implements Node { """ID of the fulfillment line.""" id: ID! @@ -11597,10 +11713,24 @@ type FulfillmentLine implements Node @doc(category: "Orders") { """The order line to which the fulfillment line is related.""" orderLine: OrderLine + + """ + Reason for the fulfillment line action. + + Added in Saleor 3.22. + """ + reason: String + + """ + Reason Model (Page) reference for this fulfillment line. + + Added in Saleor 3.22. + """ + reasonReference: Page } """Represents order line of particular order.""" -type OrderLine implements Node & ObjectWithMetadata @doc(category: "Orders") { +type OrderLine implements Node & ObjectWithMetadata { """ID of the order line.""" id: ID! @@ -11667,7 +11797,7 @@ type OrderLine implements Node & ObjectWithMetadata @doc(category: "Orders") { """ The format of the image. When not provided, format of the original image will be used. """ - format: ThumbnailFormatEnum = ORIGINAL + format: ThumbnailFormatEnum ): Image """ @@ -11781,7 +11911,7 @@ Should be used in places where value must be nonnegative (0 or greater). scalar PositiveDecimal """Represents allocation.""" -type Allocation implements Node @doc(category: "Products") { +type Allocation implements Node { """The ID of allocation.""" id: ID! @@ -11801,7 +11931,7 @@ type Allocation implements Node @doc(category: "Products") { } """Represent the discount applied to order line.""" -type OrderLineDiscount @doc(category: "Orders") { +type OrderLineDiscount { """The ID of discount applied.""" id: ID! @@ -11834,7 +11964,7 @@ type OrderLineDiscount @doc(category: "Orders") { unit: Money! } -enum OrderDiscountType @doc(category: "Discounts") { +enum OrderDiscountType { SALE VOUCHER MANUAL @@ -11842,7 +11972,7 @@ enum OrderDiscountType @doc(category: "Discounts") { ORDER_PROMOTION } -enum OrderAction @doc(category: "Payments") { +enum OrderAction { """Represents the capture action.""" CAPTURE @@ -11857,7 +11987,7 @@ enum OrderAction @doc(category: "Payments") { } """Represents an Invoice.""" -type Invoice implements ObjectWithMetadata & Job & Node @doc(category: "Orders") { +type Invoice implements ObjectWithMetadata & Job & Node { """List of private metadata items. Requires staff permissions to access.""" privateMetadata: [MetadataItem!]! @@ -11937,14 +12067,14 @@ enum JobStatusEnum { DELETED } -enum OrderOriginEnum @doc(category: "Orders") { +enum OrderOriginEnum { CHECKOUT DRAFT REISSUE BULK_CREATE } -enum PaymentChargeStatusEnum @doc(category: "Payments") { +enum PaymentChargeStatusEnum { NOT_CHARGED PENDING PARTIALLY_CHARGED @@ -11955,49 +12085,15 @@ enum PaymentChargeStatusEnum @doc(category: "Payments") { CANCELLED } -""" -Determine a current authorize status for order. - - We treat the order as fully authorized when the sum of authorized and charged funds - cover the `order.total`-`order.totalGrantedRefund`. - We treat the order as partially authorized when the sum of authorized and charged - funds covers only part of the `order.total`-`order.totalGrantedRefund`. - We treat the order as not authorized when the sum of authorized and charged funds is - 0. - - NONE - the funds are not authorized - PARTIAL - the funds that are authorized and charged don't cover fully the - `order.total`-`order.totalGrantedRefund` - FULL - the funds that are authorized and charged fully cover the - `order.total`-`order.totalGrantedRefund` -""" -enum OrderAuthorizeStatusEnum @doc(category: "Orders") { +"Determine a current authorize status for order.\n\n We treat the order as fully authorized when the sum of authorized and charged funds\n cover the `order.total`-`order.totalGrantedRefund`.\n We treat the order as partially authorized when the sum of authorized and charged\n funds covers only part of the `order.total`-`order.totalGrantedRefund`.\n We treat the order as not authorized when the sum of authorized and charged funds is\n 0.\n\n NONE - the funds are not authorized\n PARTIAL - the funds that are authorized and charged don't cover fully the\n `order.total`-`order.totalGrantedRefund`\n FULL - the funds that are authorized and charged fully cover the\n `order.total`-`order.totalGrantedRefund`\n " +enum OrderAuthorizeStatusEnum { NONE PARTIAL FULL } -""" -Determine the current charge status for the order. - - An order is considered overcharged when the sum of the - transactionItem's charge amounts exceeds the value of - `order.total` - `order.totalGrantedRefund`. - If the sum of the transactionItem's charge amounts equals - `order.total` - `order.totalGrantedRefund`, we consider the order to be fully - charged. - If the sum of the transactionItem's charge amounts covers a part of the - `order.total` - `order.totalGrantedRefund`, we treat the order as partially charged. - - NONE - the funds are not charged. - PARTIAL - the funds that are charged don't cover the - `order.total`-`order.totalGrantedRefund` - FULL - the funds that are charged fully cover the - `order.total`-`order.totalGrantedRefund` - OVERCHARGED - the charged funds are bigger than the - `order.total`-`order.totalGrantedRefund` -""" -enum OrderChargeStatusEnum @doc(category: "Orders") { +"Determine the current charge status for the order.\n\n An order is considered overcharged when the sum of the\n transactionItem's charge amounts exceeds the value of\n `order.total` - `order.totalGrantedRefund`.\n If the sum of the transactionItem's charge amounts equals\n `order.total` - `order.totalGrantedRefund`, we consider the order to be fully\n charged.\n If the sum of the transactionItem's charge amounts covers a part of the\n `order.total` - `order.totalGrantedRefund`, we treat the order as partially charged.\n\n NONE - the funds are not charged.\n PARTIAL - the funds that are charged don't cover the\n `order.total`-`order.totalGrantedRefund`\n FULL - the funds that are charged fully cover the\n `order.total`-`order.totalGrantedRefund`\n OVERCHARGED - the charged funds are bigger than the\n `order.total`-`order.totalGrantedRefund`\n " +enum OrderChargeStatusEnum { NONE PARTIAL FULL @@ -12005,7 +12101,7 @@ enum OrderChargeStatusEnum @doc(category: "Orders") { } """Represents a payment of a given type.""" -type Payment implements Node & ObjectWithMetadata @doc(category: "Payments") { +type Payment implements Node & ObjectWithMetadata { """ID of the payment.""" id: ID! @@ -12118,7 +12214,7 @@ type Payment implements Node & ObjectWithMetadata @doc(category: "Payments") { } """An object representing a single payment.""" -type Transaction implements Node @doc(category: "Payments") { +type Transaction implements Node { """ID of the transaction.""" id: ID! @@ -12147,7 +12243,7 @@ type Transaction implements Node @doc(category: "Payments") { amount: Money } -enum TransactionKind @doc(category: "Payments") { +enum TransactionKind { EXTERNAL AUTH PENDING @@ -12160,7 +12256,7 @@ enum TransactionKind @doc(category: "Payments") { CANCEL } -type CreditCard @doc(category: "Payments") { +type CreditCard { """Card brand.""" brand: String! @@ -12178,7 +12274,7 @@ type CreditCard @doc(category: "Payments") { } """History log of the order.""" -type OrderEvent implements Node @doc(category: "Orders") { +type OrderEvent implements Node { """ID of the event associated with an order.""" id: ID! @@ -12257,8 +12353,8 @@ type OrderEvent implements Node @doc(category: "Orders") { reference: String } -"""The different order event types.""" -enum OrderEventsEnum @doc(category: "Orders") { +"""The different order event types. """ +enum OrderEventsEnum { DRAFT_CREATED DRAFT_CREATED_FROM_REPLACE ADDED_PRODUCTS @@ -12311,7 +12407,7 @@ enum OrderEventsEnum @doc(category: "Orders") { OTHER } -enum OrderEventsEmailsEnum @doc(category: "Orders") { +enum OrderEventsEmailsEnum { PAYMENT_CONFIRMATION CONFIRMED SHIPPING_CONFIRMATION @@ -12323,7 +12419,7 @@ enum OrderEventsEmailsEnum @doc(category: "Orders") { DIGITAL_LINKS } -type OrderEventOrderLineObject @doc(category: "Orders") { +type OrderEventOrderLineObject { """The variant quantity.""" quantity: Int @@ -12337,7 +12433,7 @@ type OrderEventOrderLineObject @doc(category: "Orders") { discount: OrderEventDiscountObject } -type OrderEventDiscountObject @doc(category: "Orders") { +type OrderEventDiscountObject { """Type of the discount: fixed or percent.""" valueType: DiscountValueTypeEnum! @@ -12361,7 +12457,7 @@ type OrderEventDiscountObject @doc(category: "Orders") { } """Contains all details related to the applied discount to the order.""" -type OrderDiscount implements Node @doc(category: "Discounts") { +type OrderDiscount implements Node { """The ID of discount applied.""" id: ID! @@ -12398,7 +12494,7 @@ type OrderDiscount implements Node @doc(category: "Discounts") { total: Money! } -type OrderError @doc(category: "Orders") { +type OrderError { """ Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. """ @@ -12423,7 +12519,7 @@ type OrderError @doc(category: "Orders") { addressType: AddressTypeEnum } -enum OrderErrorCode @doc(category: "Orders") { +enum OrderErrorCode { BILLING_ADDRESS_NOT_SET CANNOT_CANCEL_FULFILLMENT CANNOT_CANCEL_ORDER @@ -12469,7 +12565,7 @@ enum AddressTypeEnum { } """The details of granted refund.""" -type OrderGrantedRefund @doc(category: "Orders") { +type OrderGrantedRefund { id: ID! """Time of creation.""" @@ -12545,17 +12641,17 @@ type OrderGrantedRefundLine { """Reason for refunding the line.""" reason: String -} -""" -Represents the status of a granted refund. + """ + Reason Model (Page) reference for this refund line. + + Added in Saleor 3.22. + """ + reasonReference: Page +} - NONE - the refund on related transactionItem is not processed - PENDING - the refund on related transactionItem is pending - FULL - the refund on related transactionItem is fully processed - FAIL - the refund on related transactionItem failed -""" -enum OrderGrantedRefundStatusEnum @doc(category: "Orders") { +"Represents the status of a granted refund.\n\n NONE - the refund on related transactionItem is not processed\n PENDING - the refund on related transactionItem is pending\n FULL - the refund on related transactionItem is fully processed\n FAIL - the refund on related transactionItem failed\n " +enum OrderGrantedRefundStatusEnum { NONE PENDING SUCCESS @@ -12563,7 +12659,7 @@ enum OrderGrantedRefundStatusEnum @doc(category: "Orders") { } """Represents transaction's event.""" -type TransactionEvent implements Node @doc(category: "Payments") { +type TransactionEvent implements Node { """The ID of the object.""" id: ID! @@ -12601,34 +12697,8 @@ type TransactionEvent implements Node @doc(category: "Payments") { idempotencyKey: String } -""" -Represents possible event types. - - Added in Saleor 3.12. - - The following types are possible: - AUTHORIZATION_SUCCESS - represents success authorization. - AUTHORIZATION_FAILURE - represents failure authorization. - AUTHORIZATION_ADJUSTMENT - represents authorization adjustment. - AUTHORIZATION_REQUEST - represents authorization request. - AUTHORIZATION_ACTION_REQUIRED - represents authorization that needs - additional actions from the customer. - CHARGE_ACTION_REQUIRED - represents charge that needs - additional actions from the customer. - CHARGE_SUCCESS - represents success charge. - CHARGE_FAILURE - represents failure charge. - CHARGE_BACK - represents chargeback. - CHARGE_REQUEST - represents charge request. - REFUND_SUCCESS - represents success refund. - REFUND_FAILURE - represents failure refund. - REFUND_REVERSE - represents reverse refund. - REFUND_REQUEST - represents refund request. - CANCEL_SUCCESS - represents success cancel. - CANCEL_FAILURE - represents failure cancel. - CANCEL_REQUEST - represents cancel request. - INFO - represents info event. -""" -enum TransactionEventTypeEnum @doc(category: "Payments") { +"Represents possible event types.\n\n Added in Saleor 3.12.\n\n The following types are possible:\n AUTHORIZATION_SUCCESS - represents success authorization.\n AUTHORIZATION_FAILURE - represents failure authorization.\n AUTHORIZATION_ADJUSTMENT - represents authorization adjustment.\n AUTHORIZATION_REQUEST - represents authorization request.\n AUTHORIZATION_ACTION_REQUIRED - represents authorization that needs\n additional actions from the customer.\n CHARGE_ACTION_REQUIRED - represents charge that needs\n additional actions from the customer.\n CHARGE_SUCCESS - represents success charge.\n CHARGE_FAILURE - represents failure charge.\n CHARGE_BACK - represents chargeback.\n CHARGE_REQUEST - represents charge request.\n REFUND_SUCCESS - represents success refund.\n REFUND_FAILURE - represents failure refund.\n REFUND_REVERSE - represents reverse refund.\n REFUND_REQUEST - represents refund request.\n CANCEL_SUCCESS - represents success cancel.\n CANCEL_FAILURE - represents failure cancel.\n CANCEL_REQUEST - represents cancel request.\n INFO - represents info event.\n " +enum TransactionEventTypeEnum { AUTHORIZATION_SUCCESS AUTHORIZATION_FAILURE AUTHORIZATION_ADJUSTMENT @@ -12661,43 +12731,15 @@ interface PaymentMethodDetails { name: String! } -""" -Determine a current authorize status for checkout. - - We treat the checkout as fully authorized when the sum of authorized and charged - funds cover the checkout.total. - We treat the checkout as partially authorized when the sum of authorized and charged - funds covers only part of the checkout.total - We treat the checkout as not authorized when the sum of authorized and charged funds - is 0. - - NONE - the funds are not authorized - PARTIAL - the cover funds don't cover fully the checkout's total - FULL - the cover funds covers the checkout's total -""" -enum CheckoutAuthorizeStatusEnum @doc(category: "Checkout") { +"Determine a current authorize status for checkout.\n\n We treat the checkout as fully authorized when the sum of authorized and charged\n funds cover the checkout.total.\n We treat the checkout as partially authorized when the sum of authorized and charged\n funds covers only part of the checkout.total\n We treat the checkout as not authorized when the sum of authorized and charged funds\n is 0.\n\n NONE - the funds are not authorized\n PARTIAL - the cover funds don't cover fully the checkout's total\n FULL - the cover funds covers the checkout's total\n " +enum CheckoutAuthorizeStatusEnum { NONE PARTIAL FULL } -""" -Determine the current charge status for the checkout. - - The checkout is considered overcharged when the sum of the transactionItem's charge - amounts exceeds the value of `checkout.total`. - If the sum of the transactionItem's charge amounts equals - `checkout.total`, we consider the checkout to be fully charged. - If the sum of the transactionItem's charge amounts covers a part of the - `checkout.total`, we treat the checkout as partially charged. - - - NONE - the funds are not charged. - PARTIAL - the funds that are charged don't cover the checkout's total - FULL - the funds that are charged fully cover the checkout's total - OVERCHARGED - the charged funds are bigger than checkout's total -""" -enum CheckoutChargeStatusEnum @doc(category: "Checkout") { +"Determine the current charge status for the checkout.\n\n The checkout is considered overcharged when the sum of the transactionItem's charge\n amounts exceeds the value of `checkout.total`.\n If the sum of the transactionItem's charge amounts equals\n `checkout.total`, we consider the checkout to be fully charged.\n If the sum of the transactionItem's charge amounts covers a part of the\n `checkout.total`, we treat the checkout as partially charged.\n\n\n NONE - the funds are not charged.\n PARTIAL - the funds that are charged don't cover the checkout's total\n FULL - the funds that are charged fully cover the checkout's total\n OVERCHARGED - the charged funds are bigger than checkout's total\n " +enum CheckoutChargeStatusEnum { NONE PARTIAL FULL @@ -12707,7 +12749,7 @@ enum CheckoutChargeStatusEnum @doc(category: "Checkout") { """ Represents a payment method stored for user (tokenized) in payment gateway. """ -type StoredPaymentMethod @doc(category: "Payments") { +type StoredPaymentMethod { """Stored payment method ID.""" id: ID! @@ -12735,21 +12777,15 @@ type StoredPaymentMethod @doc(category: "Payments") { data: JSON } -""" -Represents possible tokenized payment flows that can be used to process payment. - - The following flows are possible: - INTERACTIVE - Payment method can be used for 1 click checkout - it's prefilled in - checkout form (might require additional authentication from user) -""" -enum TokenizedPaymentFlowEnum @doc(category: "Payments") { +"Represents possible tokenized payment flows that can be used to process payment.\n\n The following flows are possible:\n INTERACTIVE - Payment method can be used for 1 click checkout - it's prefilled in\n checkout form (might require additional authentication from user)\n " +enum TokenizedPaymentFlowEnum { INTERACTIVE } """Represents an problem in the checkout.""" union CheckoutProblem = CheckoutLineProblemInsufficientStock | CheckoutLineProblemVariantNotAvailable -type CheckoutCountableConnection @doc(category: "Checkout") { +type CheckoutCountableConnection { """Pagination data for this connection.""" pageInfo: PageInfo! edges: [CheckoutCountableEdge!]! @@ -12758,7 +12794,7 @@ type CheckoutCountableConnection @doc(category: "Checkout") { totalCount: Int } -type CheckoutCountableEdge @doc(category: "Checkout") { +type CheckoutCountableEdge { """The item at the end of the edge.""" node: Checkout! @@ -12766,7 +12802,7 @@ type CheckoutCountableEdge @doc(category: "Checkout") { cursor: String! } -type GiftCardCountableConnection @doc(category: "Gift cards") { +type GiftCardCountableConnection { """Pagination data for this connection.""" pageInfo: PageInfo! edges: [GiftCardCountableEdge!]! @@ -12775,7 +12811,7 @@ type GiftCardCountableConnection @doc(category: "Gift cards") { totalCount: Int } -type GiftCardCountableEdge @doc(category: "Gift cards") { +type GiftCardCountableEdge { """The item at the end of the edge.""" node: GiftCard! @@ -12783,7 +12819,7 @@ type GiftCardCountableEdge @doc(category: "Gift cards") { cursor: String! } -type OrderCountableConnection @doc(category: "Orders") { +type OrderCountableConnection { """Pagination data for this connection.""" pageInfo: PageInfo! edges: [OrderCountableEdge!]! @@ -12792,7 +12828,7 @@ type OrderCountableConnection @doc(category: "Orders") { totalCount: Int } -type OrderCountableEdge @doc(category: "Orders") { +type OrderCountableEdge { """The item at the end of the edge.""" node: Order! @@ -12801,7 +12837,7 @@ type OrderCountableEdge @doc(category: "Orders") { } """Represents user's permissions.""" -type UserPermission @doc(category: "Users") { +type UserPermission { """Internal code for permission.""" code: PermissionEnum! @@ -12816,7 +12852,7 @@ type UserPermission @doc(category: "Users") { } """Represents permission group data.""" -type Group implements Node @doc(category: "Users") { +type Group implements Node { """The ID of the group.""" id: ID! @@ -12846,7 +12882,7 @@ type Group implements Node @doc(category: "Users") { } """History log of the customer.""" -type CustomerEvent implements Node @doc(category: "Users") { +type CustomerEvent implements Node { """The ID of the customer event.""" id: ID! @@ -12875,7 +12911,7 @@ type CustomerEvent implements Node @doc(category: "Users") { orderLine: OrderLine } -enum CustomerEventsEnum @doc(category: "Users") { +enum CustomerEventsEnum { ACCOUNT_CREATED ACCOUNT_ACTIVATED ACCOUNT_DEACTIVATED @@ -12896,7 +12932,7 @@ enum CustomerEventsEnum @doc(category: "Users") { """ Represents a payment source stored for user in payment gateway, such as credit card. """ -type PaymentSource @doc(category: "Payments") { +type PaymentSource { """Payment gateway name.""" gateway: String! @@ -12941,7 +12977,7 @@ type Limits { } """Gift card related settings from site settings.""" -type GiftCardSettings @doc(category: "Gift cards") { +type GiftCardSettings { """The gift card expiry type settings.""" expiryType: GiftCardSettingsExpiryTypeEnum! @@ -12949,7 +12985,7 @@ type GiftCardSettings @doc(category: "Gift cards") { expiryPeriod: TimePeriod } -enum GiftCardSettingsExpiryTypeEnum @doc(category: "Gift cards") { +enum GiftCardSettingsExpiryTypeEnum { NEVER_EXPIRE EXPIRY_PERIOD } @@ -12974,18 +13010,18 @@ Refund related settings from site settings. Added in Saleor 3.22. """ -type RefundSettings @doc(category: "Orders") { +type RefundSettings { """Model type used for refund reasons.""" reasonReferenceType: PageType } -input ShippingZoneFilterInput @doc(category: "Shipping") { +input ShippingZoneFilterInput { search: String channels: [ID!] } """A connection to a list of digital content items.""" -type DigitalContentCountableConnection @doc(category: "Products") { +type DigitalContentCountableConnection { """Pagination data for this connection.""" pageInfo: PageInfo! edges: [DigitalContentCountableEdge!]! @@ -12994,7 +13030,7 @@ type DigitalContentCountableConnection @doc(category: "Products") { totalCount: Int } -type DigitalContentCountableEdge @doc(category: "Products") { +type DigitalContentCountableEdge { """The item at the end of the edge.""" node: DigitalContent! @@ -13002,7 +13038,7 @@ type DigitalContentCountableEdge @doc(category: "Products") { cursor: String! } -input CategoryFilterInput @doc(category: "Products") { +input CategoryFilterInput { search: String metadata: [MetadataFilter!] ids: [ID!] @@ -13012,7 +13048,7 @@ input CategoryFilterInput @doc(category: "Products") { updatedAt: DateTimeRangeInput } -input CategoryWhereInput @doc(category: "Products") { +input CategoryWhereInput { metadata: [MetadataFilter!] ids: [ID!] @@ -13023,18 +13059,22 @@ input CategoryWhereInput @doc(category: "Products") { OR: [CategoryWhereInput!] } -input CategorySortingInput @doc(category: "Products") { +input CategorySortingInput { """Specifies the direction in which to sort categories.""" direction: OrderDirection! - """Specifies the channel in which to sort the data.""" - channel: String @deprecated(reason: "Use root-level channel argument instead.") + """ + Specifies the channel in which to sort the data. + + DEPRECATED: this field will be removed. Use root-level channel argument instead. + """ + channel: String """Sort categories by the selected field.""" field: CategorySortField! } -enum CategorySortField @doc(category: "Products") { +enum CategorySortField { """Sort categories by name.""" NAME @@ -13045,23 +13085,27 @@ enum CategorySortField @doc(category: "Products") { SUBCATEGORY_COUNT } -input CollectionFilterInput @doc(category: "Products") { +input CollectionFilterInput { published: CollectionPublished search: String metadata: [MetadataFilter!] ids: [ID!] slugs: [String!] - """Specifies the channel by which the data should be filtered.""" - channel: String @deprecated(reason: "Use root-level channel argument instead.") + """ + Specifies the channel by which the data should be filtered. + + DEPRECATED: this field will be removed. Use root-level channel argument instead. + """ + channel: String } -enum CollectionPublished @doc(category: "Products") { +enum CollectionPublished { PUBLISHED HIDDEN } -input CollectionWhereInput @doc(category: "Products") { +input CollectionWhereInput { metadata: [MetadataFilter!] ids: [ID!] @@ -13072,18 +13116,22 @@ input CollectionWhereInput @doc(category: "Products") { OR: [CollectionWhereInput!] } -input CollectionSortingInput @doc(category: "Products") { +input CollectionSortingInput { """Specifies the direction in which to sort collections.""" direction: OrderDirection! - """Specifies the channel in which to sort the data.""" - channel: String @deprecated(reason: "Use root-level channel argument instead.") + """ + Specifies the channel in which to sort the data. + + DEPRECATED: this field will be removed. Use root-level channel argument instead. + """ + channel: String """Sort collections by the selected field.""" field: CollectionSortField! } -enum CollectionSortField @doc(category: "Products") { +enum CollectionSortField { """Sort collections by name.""" NAME @@ -13112,7 +13160,7 @@ enum CollectionSortField @doc(category: "Products") { PUBLISHED_AT } -input ProductTypeFilterInput @doc(category: "Products") { +input ProductTypeFilterInput { search: String configurable: ProductTypeConfigurable productType: ProductTypeEnum @@ -13122,17 +13170,17 @@ input ProductTypeFilterInput @doc(category: "Products") { slugs: [String!] } -enum ProductTypeConfigurable @doc(category: "Products") { +enum ProductTypeConfigurable { CONFIGURABLE SIMPLE } -enum ProductTypeEnum @doc(category: "Products") { +enum ProductTypeEnum { DIGITAL SHIPPABLE } -input ProductTypeSortingInput @doc(category: "Products") { +input ProductTypeSortingInput { """Specifies the direction in which to sort product types.""" direction: OrderDirection! @@ -13140,7 +13188,7 @@ input ProductTypeSortingInput @doc(category: "Products") { field: ProductTypeSortField! } -enum ProductTypeSortField @doc(category: "Products") { +enum ProductTypeSortField { """Sort products by name.""" NAME @@ -13151,7 +13199,7 @@ enum ProductTypeSortField @doc(category: "Products") { SHIPPING_REQUIRED } -type PaymentCountableConnection @doc(category: "Payments") { +type PaymentCountableConnection { """Pagination data for this connection.""" pageInfo: PageInfo! edges: [PaymentCountableEdge!]! @@ -13160,7 +13208,7 @@ type PaymentCountableConnection @doc(category: "Payments") { totalCount: Int } -type PaymentCountableEdge @doc(category: "Payments") { +type PaymentCountableEdge { """The item at the end of the edge.""" node: Payment! @@ -13168,13 +13216,46 @@ type PaymentCountableEdge @doc(category: "Payments") { cursor: String! } -input PaymentFilterInput @doc(category: "Payments") { +input PaymentFilterInput { """Filter by ids.""" ids: [ID!] checkouts: [ID!] } -type PageCountableConnection @doc(category: "Pages") { +type TransactionCountableConnection { + """Pagination data for this connection.""" + pageInfo: PageInfo! + edges: [TransactionCountableEdge!]! + + """A total count of items in the collection.""" + totalCount: Int +} + +type TransactionCountableEdge { + """The item at the end of the edge.""" + node: TransactionItem! + + """A cursor for use in pagination.""" + cursor: String! +} + +input TransactionWhereInput { + ids: [ID!] + + """Filter by PSP reference.""" + pspReference: StringFilterInput + + """Filter by app identifier.""" + appIdentifier: StringFilterInput + + """List of conditions that must be met.""" + AND: [TransactionWhereInput!] + + """A list of conditions of which at least one must be met.""" + OR: [TransactionWhereInput!] +} + +type PageCountableConnection { """Pagination data for this connection.""" pageInfo: PageInfo! edges: [PageCountableEdge!]! @@ -13183,7 +13264,7 @@ type PageCountableConnection @doc(category: "Pages") { totalCount: Int } -type PageCountableEdge @doc(category: "Pages") { +type PageCountableEdge { """The item at the end of the edge.""" node: Page! @@ -13191,7 +13272,7 @@ type PageCountableEdge @doc(category: "Pages") { cursor: String! } -input PageSortingInput @doc(category: "Pages") { +input PageSortingInput { """Specifies the direction in which to sort pages.""" direction: OrderDirection! @@ -13199,7 +13280,7 @@ input PageSortingInput @doc(category: "Pages") { field: PageSortField! } -enum PageSortField @doc(category: "Pages") { +enum PageSortField { """Sort pages by title.""" TITLE @@ -13222,7 +13303,7 @@ enum PageSortField @doc(category: "Pages") { CREATED_AT } -input PageFilterInput @doc(category: "Pages") { +input PageFilterInput { search: String metadata: [MetadataFilter!] pageTypes: [ID!] @@ -13230,7 +13311,7 @@ input PageFilterInput @doc(category: "Pages") { slugs: [String!] } -input PageWhereInput @doc(category: "Pages") { +input PageWhereInput { """Filter by metadata fields.""" metadata: MetadataFilterInput ids: [ID!] @@ -13251,17 +13332,7 @@ input PageWhereInput @doc(category: "Pages") { OR: [PageWhereInput!] } -""" -Allows filtering based on metadata key/value pairs. - - Examples: - - `{key: "size"}` - Matches objects where the metadata key "size" exists, regardless of its value. - - `{key: "color", value: {oneOf: ["blue", "green"]}}` - Matches objects where the metadata key "color" is set to either "blue" or "green". - - `{key: "status", value: {eq: "active"}}` - Matches objects where the metadata key "status" is set to "active". -""" +"Allows filtering based on metadata key/value pairs.\n\n Examples:\n - `{key: \"size\"}`\n Matches objects where the metadata key \"size\" exists, regardless of its value.\n - `{key: \"color\", value: {oneOf: [\"blue\", \"green\"]}}`\n Matches objects where the metadata key \"color\" is set to either \"blue\" or \"green\".\n - `{key: \"status\", value: {eq: \"active\"}}`\n Matches objects where the metadata key \"status\" is set to \"active\".\n " input MetadataFilterInput { """ Key to filter by. If not other fields provided - checking the existence of the key in metadata. @@ -13281,7 +13352,7 @@ input MetadataValueFilterInput { oneOf: [String!] } -type PageTypeCountableConnection @doc(category: "Pages") { +type PageTypeCountableConnection { """Pagination data for this connection.""" pageInfo: PageInfo! edges: [PageTypeCountableEdge!]! @@ -13290,7 +13361,7 @@ type PageTypeCountableConnection @doc(category: "Pages") { totalCount: Int } -type PageTypeCountableEdge @doc(category: "Pages") { +type PageTypeCountableEdge { """The item at the end of the edge.""" node: PageType! @@ -13298,7 +13369,7 @@ type PageTypeCountableEdge @doc(category: "Pages") { cursor: String! } -input PageTypeSortingInput @doc(category: "Pages") { +input PageTypeSortingInput { """Specifies the direction in which to sort page types.""" direction: OrderDirection! @@ -13306,7 +13377,7 @@ input PageTypeSortingInput @doc(category: "Pages") { field: PageTypeSortField! } -enum PageTypeSortField @doc(category: "Pages") { +enum PageTypeSortField { """Sort page types by name.""" NAME @@ -13314,12 +13385,12 @@ enum PageTypeSortField @doc(category: "Pages") { SLUG } -input PageTypeFilterInput @doc(category: "Pages") { +input PageTypeFilterInput { search: String slugs: [String!] } -type OrderEventCountableConnection @doc(category: "Orders") { +type OrderEventCountableConnection { """Pagination data for this connection.""" pageInfo: PageInfo! edges: [OrderEventCountableEdge!]! @@ -13328,7 +13399,7 @@ type OrderEventCountableConnection @doc(category: "Orders") { totalCount: Int } -type OrderEventCountableEdge @doc(category: "Orders") { +type OrderEventCountableEdge { """The item at the end of the edge.""" node: OrderEvent! @@ -13336,7 +13407,7 @@ type OrderEventCountableEdge @doc(category: "Orders") { cursor: String! } -input OrderSortingInput @doc(category: "Orders") { +input OrderSortingInput { """Specifies the direction in which to sort orders.""" direction: OrderDirection! @@ -13344,7 +13415,7 @@ input OrderSortingInput @doc(category: "Orders") { field: OrderSortField! } -enum OrderSortField @doc(category: "Orders") { +enum OrderSortField { """Sort orders by number.""" NUMBER @@ -13379,7 +13450,7 @@ enum OrderSortField @doc(category: "Orders") { STATUS } -input OrderFilterInput @doc(category: "Orders") { +input OrderFilterInput { paymentStatus: [PaymentChargeStatusEnum!] status: [OrderStatusFilter!] customer: String @@ -13400,7 +13471,7 @@ input OrderFilterInput @doc(category: "Orders") { checkoutIds: [ID!] } -enum OrderStatusFilter @doc(category: "Orders") { +enum OrderStatusFilter { READY_TO_FULFILL READY_TO_CAPTURE UNFULFILLED @@ -13410,7 +13481,7 @@ enum OrderStatusFilter @doc(category: "Orders") { CANCELED } -input OrderWhereInput @doc(category: "Orders") { +input OrderWhereInput { """Filter by metadata fields.""" metadata: MetadataFilterInput ids: [ID!] @@ -13531,7 +13602,7 @@ input IntFilterInput { } """Filter by authorize status.""" -input OrderAuthorizeStatusEnumFilterInput @doc(category: "Orders") { +input OrderAuthorizeStatusEnumFilterInput { """The value equal to.""" eq: OrderAuthorizeStatusEnum @@ -13540,7 +13611,7 @@ input OrderAuthorizeStatusEnumFilterInput @doc(category: "Orders") { } """Filter by charge status.""" -input OrderChargeStatusEnumFilterInput @doc(category: "Orders") { +input OrderChargeStatusEnumFilterInput { """The value equal to.""" eq: OrderChargeStatusEnum @@ -13549,7 +13620,7 @@ input OrderChargeStatusEnumFilterInput @doc(category: "Orders") { } """Filter by order status.""" -input OrderStatusEnumFilterInput @doc(category: "Orders") { +input OrderStatusEnumFilterInput { """The value equal to.""" eq: OrderStatus @@ -13567,13 +13638,13 @@ input UUIDFilterInput { } """Filter input for invoices.""" -input InvoiceFilterInput @doc(category: "Orders") { +input InvoiceFilterInput { """Filter invoices by creation date.""" createdAt: DateTimeRangeInput } """Filter input for order fulfillments data.""" -input FulfillmentFilterInput @doc(category: "Orders") { +input FulfillmentFilterInput { """Filter by fulfillment status.""" status: FulfillmentStatusEnumFilterInput @@ -13585,7 +13656,7 @@ input FulfillmentFilterInput @doc(category: "Orders") { } """Filter by fulfillment status.""" -input FulfillmentStatusEnumFilterInput @doc(category: "Orders") { +input FulfillmentStatusEnumFilterInput { """The value equal to.""" eq: FulfillmentStatus @@ -13594,7 +13665,7 @@ input FulfillmentStatusEnumFilterInput @doc(category: "Orders") { } """Filter input for fulfillment warehouses.""" -input FulfillmentWarehouseFilterInput @doc(category: "Orders") { +input FulfillmentWarehouseFilterInput { """Filter fulfillments by warehouse ID.""" id: GlobalIDFilterInput @@ -13606,16 +13677,23 @@ input FulfillmentWarehouseFilterInput @doc(category: "Orders") { } """Filter input for order lines data.""" -input LinesFilterInput @doc(category: "Orders") { +input LinesFilterInput { """Filter by metadata fields of order lines.""" metadata: MetadataFilterInput } """Filter input for transactions.""" -input TransactionFilterInput @doc(category: "Orders") { +input TransactionFilterInput { """Filter by payment method details used to pay for the order.""" paymentMethodDetails: PaymentMethodDetailsFilterInput + """ + Filter by PSP reference of transactions. + + Added in Saleor 3.22. + """ + pspReference: StringFilterInput + """Filter by metadata fields of transactions.""" metadata: MetadataFilterInput } @@ -13638,14 +13716,8 @@ input PaymentMethodTypeEnumFilterInput { oneOf: [PaymentMethodTypeEnum!] } -""" -Represents possible payment method types. - - The following types are possible: - CARD - represents a card payment method. - OTHER - represents any payment method that is not a card payment. -""" -enum PaymentMethodTypeEnum @doc(category: "Payments") { +"Represents possible payment method types.\n\n The following types are possible:\n CARD - represents a card payment method.\n OTHER - represents any payment method that is not a card payment.\n\n " +enum PaymentMethodTypeEnum { CARD OTHER } @@ -13664,7 +13736,7 @@ input PriceFilterInput { } """Filter input for order events data.""" -input OrderEventFilterInput @doc(category: "Orders") { +input OrderEventFilterInput { """Filter order events by date.""" date: DateTimeRangeInput @@ -13681,13 +13753,13 @@ input OrderEventTypeEnumFilterInput { } """Filtering options for addresses.""" -input AddressFilterInput @doc(category: "Users") { +input AddressFilterInput { phoneNumber: StringFilterInput country: CountryCodeEnumFilterInput } """Filter by country code.""" -input CountryCodeEnumFilterInput @doc(category: "Users") { +input CountryCodeEnumFilterInput { """The value equal to.""" eq: CountryCode @@ -13698,7 +13770,7 @@ input CountryCodeEnumFilterInput @doc(category: "Users") { notOneOf: [CountryCode!] } -input OrderDraftFilterInput @doc(category: "Orders") { +input OrderDraftFilterInput { customer: String created: DateRangeInput search: String @@ -13706,7 +13778,7 @@ input OrderDraftFilterInput @doc(category: "Orders") { channels: [ID!] } -input DraftOrderWhereInput @doc(category: "Orders") { +input DraftOrderWhereInput { """Filter by metadata fields.""" metadata: MetadataFilterInput ids: [ID!] @@ -13783,7 +13855,7 @@ input DraftOrderWhereInput @doc(category: "Orders") { OR: [DraftOrderWhereInput!] } -type MenuCountableConnection @doc(category: "Menu") { +type MenuCountableConnection { """Pagination data for this connection.""" pageInfo: PageInfo! edges: [MenuCountableEdge!]! @@ -13792,7 +13864,7 @@ type MenuCountableConnection @doc(category: "Menu") { totalCount: Int } -type MenuCountableEdge @doc(category: "Menu") { +type MenuCountableEdge { """The item at the end of the edge.""" node: Menu! @@ -13823,7 +13895,7 @@ input MenuFilterInput { slugs: [String!] } -type MenuItemCountableConnection @doc(category: "Menu") { +type MenuItemCountableConnection { """Pagination data for this connection.""" pageInfo: PageInfo! edges: [MenuItemCountableEdge!]! @@ -13832,7 +13904,7 @@ type MenuItemCountableConnection @doc(category: "Menu") { totalCount: Int } -type MenuItemCountableEdge @doc(category: "Menu") { +type MenuItemCountableEdge { """The item at the end of the edge.""" node: MenuItem! @@ -13858,7 +13930,7 @@ input MenuItemFilterInput { metadata: [MetadataFilter!] } -input GiftCardSortingInput @doc(category: "Gift cards") { +input GiftCardSortingInput { """Specifies the direction in which to sort gift cards.""" direction: OrderDirection! @@ -13866,7 +13938,7 @@ input GiftCardSortingInput @doc(category: "Gift cards") { field: GiftCardSortField! } -enum GiftCardSortField @doc(category: "Gift cards") { +enum GiftCardSortField { """Sort gift cards by product.""" PRODUCT @@ -13880,7 +13952,7 @@ enum GiftCardSortField @doc(category: "Gift cards") { CREATED_AT } -input GiftCardFilterInput @doc(category: "Gift cards") { +input GiftCardFilterInput { isActive: Boolean metadata: [MetadataFilter!] tags: [String!] @@ -13894,7 +13966,7 @@ input GiftCardFilterInput @doc(category: "Gift cards") { createdByEmail: String } -type GiftCardTagCountableConnection @doc(category: "Gift cards") { +type GiftCardTagCountableConnection { """Pagination data for this connection.""" pageInfo: PageInfo! edges: [GiftCardTagCountableEdge!]! @@ -13903,7 +13975,7 @@ type GiftCardTagCountableConnection @doc(category: "Gift cards") { totalCount: Int } -type GiftCardTagCountableEdge @doc(category: "Gift cards") { +type GiftCardTagCountableEdge { """The item at the end of the edge.""" node: GiftCardTag! @@ -13911,7 +13983,7 @@ type GiftCardTagCountableEdge @doc(category: "Gift cards") { cursor: String! } -input GiftCardTagFilterInput @doc(category: "Gift cards") { +input GiftCardTagFilterInput { search: String } @@ -14019,7 +14091,7 @@ enum PluginSortField { IS_ACTIVE } -type SaleCountableConnection @doc(category: "Discounts") { +type SaleCountableConnection { """Pagination data for this connection.""" pageInfo: PageInfo! edges: [SaleCountableEdge!]! @@ -14028,7 +14100,7 @@ type SaleCountableConnection @doc(category: "Discounts") { totalCount: Int } -type SaleCountableEdge @doc(category: "Discounts") { +type SaleCountableEdge { """The item at the end of the edge.""" node: Sale! @@ -14036,7 +14108,7 @@ type SaleCountableEdge @doc(category: "Discounts") { cursor: String! } -input SaleFilterInput @doc(category: "Discounts") { +input SaleFilterInput { status: [DiscountStatusEnum!] saleType: DiscountValueTypeEnum started: DateTimeRangeInput @@ -14045,24 +14117,28 @@ input SaleFilterInput @doc(category: "Discounts") { updatedAt: DateTimeRangeInput } -enum DiscountStatusEnum @doc(category: "Discounts") { +enum DiscountStatusEnum { ACTIVE EXPIRED SCHEDULED } -input SaleSortingInput @doc(category: "Discounts") { +input SaleSortingInput { """Specifies the direction in which to sort sales.""" direction: OrderDirection! - """Specifies the channel in which to sort the data.""" - channel: String @deprecated(reason: "Use root-level channel argument instead.") + """ + Specifies the channel in which to sort the data. + + DEPRECATED: this field will be removed. Use root-level channel argument instead. + """ + channel: String """Sort sales by the selected field.""" field: SaleSortField! } -enum SaleSortField @doc(category: "Discounts") { +enum SaleSortField { """Sort sales by name.""" NAME @@ -14089,7 +14165,7 @@ enum SaleSortField @doc(category: "Discounts") { LAST_MODIFIED_AT } -type VoucherCountableConnection @doc(category: "Discounts") { +type VoucherCountableConnection { """Pagination data for this connection.""" pageInfo: PageInfo! edges: [VoucherCountableEdge!]! @@ -14098,7 +14174,7 @@ type VoucherCountableConnection @doc(category: "Discounts") { totalCount: Int } -type VoucherCountableEdge @doc(category: "Discounts") { +type VoucherCountableEdge { """The item at the end of the edge.""" node: Voucher! @@ -14106,7 +14182,7 @@ type VoucherCountableEdge @doc(category: "Discounts") { cursor: String! } -input VoucherFilterInput @doc(category: "Discounts") { +input VoucherFilterInput { status: [DiscountStatusEnum!] timesUsed: IntRangeInput discountType: [VoucherDiscountType!] @@ -14116,18 +14192,22 @@ input VoucherFilterInput @doc(category: "Discounts") { ids: [ID!] } -enum VoucherDiscountType @doc(category: "Discounts") { +enum VoucherDiscountType { FIXED PERCENTAGE SHIPPING } -input VoucherSortingInput @doc(category: "Discounts") { +input VoucherSortingInput { """Specifies the direction in which to sort vouchers.""" direction: OrderDirection! - """Specifies the channel in which to sort the data.""" - channel: String @deprecated(reason: "Use root-level channel argument instead.") + """ + Specifies the channel in which to sort the data. + + DEPRECATED: this field will be removed. Use root-level channel argument instead. + """ + channel: String """Sort vouchers by the selected field.""" field: VoucherSortField! @@ -14174,7 +14254,7 @@ enum VoucherSortField { """ Represents the promotion that allow creating discounts based on given conditions, and is visible to all the customers. """ -type Promotion implements Node & ObjectWithMetadata @doc(category: "Discounts") { +type Promotion implements Node & ObjectWithMetadata { id: ID! """List of private metadata items. Requires staff permissions to access.""" @@ -14247,7 +14327,7 @@ type Promotion implements Node & ObjectWithMetadata @doc(category: "Discounts") events: [PromotionEvent!] } -enum PromotionTypeEnum @doc(category: "Discounts") { +enum PromotionTypeEnum { CATALOGUE ORDER } @@ -14255,7 +14335,7 @@ enum PromotionTypeEnum @doc(category: "Discounts") { """ Represents the promotion rule that specifies the conditions that must be met to apply the promotion discount. """ -type PromotionRule implements Node @doc(category: "Discounts") { +type PromotionRule implements Node { id: ID! """Name of the promotion rule.""" @@ -14341,12 +14421,12 @@ type PromotionRule implements Node @doc(category: "Discounts") { giftsLimit: Int } -enum RewardValueTypeEnum @doc(category: "Discounts") { +enum RewardValueTypeEnum { FIXED PERCENTAGE } -enum RewardTypeEnum @doc(category: "Discounts") { +enum RewardTypeEnum { SUBTOTAL_DISCOUNT GIFT } @@ -14354,7 +14434,7 @@ enum RewardTypeEnum @doc(category: "Discounts") { union PromotionEvent = PromotionCreatedEvent | PromotionUpdatedEvent | PromotionStartedEvent | PromotionEndedEvent | PromotionRuleCreatedEvent | PromotionRuleUpdatedEvent | PromotionRuleDeletedEvent """History log of the promotion created event.""" -type PromotionCreatedEvent implements Node & PromotionEventInterface @doc(category: "Discounts") { +type PromotionCreatedEvent implements Node & PromotionEventInterface { id: ID! """Date when event happened.""" @@ -14388,7 +14468,7 @@ interface PromotionEventInterface { createdBy: UserOrApp } -enum PromotionEventsEnum @doc(category: "Discounts") { +enum PromotionEventsEnum { PROMOTION_CREATED PROMOTION_UPDATED PROMOTION_STARTED @@ -14399,7 +14479,7 @@ enum PromotionEventsEnum @doc(category: "Discounts") { } """History log of the promotion updated event.""" -type PromotionUpdatedEvent implements Node & PromotionEventInterface @doc(category: "Discounts") { +type PromotionUpdatedEvent implements Node & PromotionEventInterface { id: ID! """Date when event happened.""" @@ -14417,7 +14497,7 @@ type PromotionUpdatedEvent implements Node & PromotionEventInterface @doc(catego } """History log of the promotion started event.""" -type PromotionStartedEvent implements Node & PromotionEventInterface @doc(category: "Discounts") { +type PromotionStartedEvent implements Node & PromotionEventInterface { id: ID! """Date when event happened.""" @@ -14435,7 +14515,7 @@ type PromotionStartedEvent implements Node & PromotionEventInterface @doc(catego } """History log of the promotion ended event.""" -type PromotionEndedEvent implements Node & PromotionEventInterface @doc(category: "Discounts") { +type PromotionEndedEvent implements Node & PromotionEventInterface { id: ID! """Date when event happened.""" @@ -14453,7 +14533,7 @@ type PromotionEndedEvent implements Node & PromotionEventInterface @doc(category } """History log of the promotion rule created event.""" -type PromotionRuleCreatedEvent implements Node & PromotionEventInterface & PromotionRuleEventInterface @doc(category: "Discounts") { +type PromotionRuleCreatedEvent implements Node & PromotionEventInterface & PromotionRuleEventInterface { id: ID! """Date when event happened.""" @@ -14480,7 +14560,7 @@ interface PromotionRuleEventInterface { } """History log of the promotion rule created event.""" -type PromotionRuleUpdatedEvent implements Node & PromotionEventInterface & PromotionRuleEventInterface @doc(category: "Discounts") { +type PromotionRuleUpdatedEvent implements Node & PromotionEventInterface & PromotionRuleEventInterface { id: ID! """Date when event happened.""" @@ -14501,7 +14581,7 @@ type PromotionRuleUpdatedEvent implements Node & PromotionEventInterface & Promo } """History log of the promotion rule created event.""" -type PromotionRuleDeletedEvent implements Node & PromotionEventInterface & PromotionRuleEventInterface @doc(category: "Discounts") { +type PromotionRuleDeletedEvent implements Node & PromotionEventInterface & PromotionRuleEventInterface { id: ID! """Date when event happened.""" @@ -14521,7 +14601,7 @@ type PromotionRuleDeletedEvent implements Node & PromotionEventInterface & Promo ruleId: String } -type PromotionCountableConnection @doc(category: "Discounts") { +type PromotionCountableConnection { """Pagination data for this connection.""" pageInfo: PageInfo! edges: [PromotionCountableEdge!]! @@ -14530,7 +14610,7 @@ type PromotionCountableConnection @doc(category: "Discounts") { totalCount: Int } -type PromotionCountableEdge @doc(category: "Discounts") { +type PromotionCountableEdge { """The item at the end of the edge.""" node: Promotion! @@ -14538,7 +14618,7 @@ type PromotionCountableEdge @doc(category: "Discounts") { cursor: String! } -input PromotionWhereInput @doc(category: "Discounts") { +input PromotionWhereInput { metadata: [MetadataFilter!] ids: [ID!] @@ -14560,7 +14640,7 @@ input PromotionWhereInput @doc(category: "Discounts") { OR: [PromotionWhereInput!] } -input PromotionTypeEnumFilterInput @doc(category: "Discounts") { +input PromotionTypeEnumFilterInput { """The value equal to.""" eq: PromotionTypeEnum @@ -14568,7 +14648,7 @@ input PromotionTypeEnumFilterInput @doc(category: "Discounts") { oneOf: [PromotionTypeEnum!] } -input PromotionSortingInput @doc(category: "Discounts") { +input PromotionSortingInput { """Specifies the direction in which to sort promotions.""" direction: OrderDirection! @@ -14576,7 +14656,7 @@ input PromotionSortingInput @doc(category: "Discounts") { field: PromotionSortField! } -enum PromotionSortField @doc(category: "Discounts") { +enum PromotionSortField { """Sort promotions by name.""" NAME @@ -14694,7 +14774,7 @@ enum ExportFileSortField { LAST_MODIFIED_AT } -input CheckoutSortingInput @doc(category: "Checkout") { +input CheckoutSortingInput { """Specifies the direction in which to sort checkouts.""" direction: OrderDirection! @@ -14702,7 +14782,7 @@ input CheckoutSortingInput @doc(category: "Checkout") { field: CheckoutSortField! } -enum CheckoutSortField @doc(category: "Checkout") { +enum CheckoutSortField { """Sort checkouts by creation date.""" CREATION_DATE @@ -14713,7 +14793,7 @@ enum CheckoutSortField @doc(category: "Checkout") { PAYMENT } -input CheckoutFilterInput @doc(category: "Checkout") { +input CheckoutFilterInput { customer: String created: DateRangeInput search: String @@ -14724,7 +14804,7 @@ input CheckoutFilterInput @doc(category: "Checkout") { chargeStatus: [CheckoutChargeStatusEnum!] } -type CheckoutLineCountableConnection @doc(category: "Checkout") { +type CheckoutLineCountableConnection { """Pagination data for this connection.""" pageInfo: PageInfo! edges: [CheckoutLineCountableEdge!]! @@ -14733,7 +14813,7 @@ type CheckoutLineCountableConnection @doc(category: "Checkout") { totalCount: Int } -type CheckoutLineCountableEdge @doc(category: "Checkout") { +type CheckoutLineCountableEdge { """The item at the end of the edge.""" node: CheckoutLine! @@ -14741,7 +14821,7 @@ type CheckoutLineCountableEdge @doc(category: "Checkout") { cursor: String! } -input AttributeSortingInput @doc(category: "Attributes") { +input AttributeSortingInput { """Specifies the direction in which to sort attributes.""" direction: OrderDirection! @@ -14749,7 +14829,7 @@ input AttributeSortingInput @doc(category: "Attributes") { field: AttributeSortField! } -enum AttributeSortField @doc(category: "Attributes") { +enum AttributeSortField { """Sort attributes by name""" NAME @@ -14781,7 +14861,7 @@ enum AttributeSortField @doc(category: "Attributes") { } """Represents ongoing installation of app.""" -type AppInstallation implements Node & Job @doc(category: "Apps") { +type AppInstallation implements Node & Job { """The ID of the app installation.""" id: ID! @@ -14807,7 +14887,7 @@ type AppInstallation implements Node & Job @doc(category: "Apps") { brand: AppBrand } -type AppCountableConnection @doc(category: "Apps") { +type AppCountableConnection { """Pagination data for this connection.""" pageInfo: PageInfo! edges: [AppCountableEdge!]! @@ -14816,7 +14896,7 @@ type AppCountableConnection @doc(category: "Apps") { totalCount: Int } -type AppCountableEdge @doc(category: "Apps") { +type AppCountableEdge { """The item at the end of the edge.""" node: App! @@ -14824,13 +14904,13 @@ type AppCountableEdge @doc(category: "Apps") { cursor: String! } -input AppFilterInput @doc(category: "Apps") { +input AppFilterInput { search: String isActive: Boolean type: AppTypeEnum } -input AppSortingInput @doc(category: "Apps") { +input AppSortingInput { """Specifies the direction in which to sort apps.""" direction: OrderDirection! @@ -14838,7 +14918,7 @@ input AppSortingInput @doc(category: "Apps") { field: AppSortField! } -enum AppSortField @doc(category: "Apps") { +enum AppSortField { """Sort apps by name.""" NAME @@ -14846,7 +14926,7 @@ enum AppSortField @doc(category: "Apps") { CREATION_DATE } -type AppExtensionCountableConnection @doc(category: "Apps") { +type AppExtensionCountableConnection { """Pagination data for this connection.""" pageInfo: PageInfo! edges: [AppExtensionCountableEdge!]! @@ -14855,7 +14935,7 @@ type AppExtensionCountableConnection @doc(category: "Apps") { totalCount: Int } -type AppExtensionCountableEdge @doc(category: "Apps") { +type AppExtensionCountableEdge { """The item at the end of the edge.""" node: AppExtension! @@ -14863,12 +14943,20 @@ type AppExtensionCountableEdge @doc(category: "Apps") { cursor: String! } -input AppExtensionFilterInput @doc(category: "Apps") { - """DEPRECATED: Use `mountName` instead.""" - mount: [AppExtensionMountEnum!] @deprecated +input AppExtensionFilterInput { + """ + DEPRECATED: Use `mountName` instead. + + DEPRECATED: this field will be removed. + """ + mount: [AppExtensionMountEnum!] - """DEPRECATED: Use `targetName` instead.""" - target: AppExtensionTargetEnum @deprecated + """ + DEPRECATED: Use `targetName` instead. + + DEPRECATED: this field will be removed. + """ + target: AppExtensionTargetEnum """ Plain-text mount name (case insensitive) @@ -14886,7 +14974,7 @@ input AppExtensionFilterInput @doc(category: "Apps") { } """Represents address validation rules for a country.""" -type AddressValidationData @doc(category: "Users") { +type AddressValidationData { """The country code of the address validation rule.""" countryCode: String! @@ -14983,7 +15071,7 @@ type ChoiceValue { verbose: String } -type UserCountableConnection @doc(category: "Users") { +type UserCountableConnection { """Pagination data for this connection.""" pageInfo: PageInfo! edges: [UserCountableEdge!]! @@ -14992,7 +15080,7 @@ type UserCountableConnection @doc(category: "Users") { totalCount: Int } -type UserCountableEdge @doc(category: "Users") { +type UserCountableEdge { """The item at the end of the edge.""" node: User! @@ -15000,7 +15088,7 @@ type UserCountableEdge @doc(category: "Users") { cursor: String! } -input CustomerFilterInput @doc(category: "Users") { +input CustomerFilterInput { dateJoined: DateRangeInput numberOfOrders: IntRangeInput placedOrders: DateRangeInput @@ -15012,7 +15100,7 @@ input CustomerFilterInput @doc(category: "Users") { updatedAt: DateTimeRangeInput } -input CustomerWhereInput @doc(category: "Users") { +input CustomerWhereInput { """Filter by metadata fields.""" metadata: MetadataFilterInput ids: [ID!] @@ -15051,7 +15139,7 @@ input CustomerWhereInput @doc(category: "Users") { OR: [CustomerWhereInput!] } -input UserSortingInput @doc(category: "Users") { +input UserSortingInput { """Specifies the direction in which to sort users.""" direction: OrderDirection! @@ -15059,7 +15147,7 @@ input UserSortingInput @doc(category: "Users") { field: UserSortField! } -enum UserSortField @doc(category: "Users") { +enum UserSortField { """Sort users by first name.""" FIRST_NAME @@ -15079,7 +15167,7 @@ enum UserSortField @doc(category: "Users") { LAST_MODIFIED_AT } -type GroupCountableConnection @doc(category: "Users") { +type GroupCountableConnection { """Pagination data for this connection.""" pageInfo: PageInfo! edges: [GroupCountableEdge!]! @@ -15088,7 +15176,7 @@ type GroupCountableConnection @doc(category: "Users") { totalCount: Int } -type GroupCountableEdge @doc(category: "Users") { +type GroupCountableEdge { """The item at the end of the edge.""" node: Group! @@ -15096,12 +15184,12 @@ type GroupCountableEdge @doc(category: "Users") { cursor: String! } -input PermissionGroupFilterInput @doc(category: "Users") { +input PermissionGroupFilterInput { search: String ids: [ID!] } -input PermissionGroupSortingInput @doc(category: "Users") { +input PermissionGroupSortingInput { """Specifies the direction in which to sort permission group.""" direction: OrderDirection! @@ -15110,19 +15198,19 @@ input PermissionGroupSortingInput @doc(category: "Users") { } """Sorting options for permission groups.""" -enum PermissionGroupSortField @doc(category: "Users") { +enum PermissionGroupSortField { """Sort permission group accounts by name.""" NAME } -input StaffUserInput @doc(category: "Users") { +input StaffUserInput { status: StaffMemberStatus search: String ids: [ID!] } """Represents status of a staff account.""" -enum StaffMemberStatus @doc(category: "Users") { +enum StaffMemberStatus { """User account has been activated.""" ACTIVE @@ -15139,7 +15227,7 @@ type Mutation { webhookCreate( """Fields required to create a webhook.""" input: WebhookCreateInput! - ): WebhookCreate @doc(category: "Webhooks") + ): WebhookCreate """ Deletes a webhook. Before the deletion, the webhook is deactivated to pause any deliveries that are already scheduled. The deletion might fail if delivery is in progress. In such a case, the webhook is not deleted but remains deactivated. @@ -15149,7 +15237,7 @@ type Mutation { webhookDelete( """ID of a webhook to delete.""" id: ID! - ): WebhookDelete @doc(category: "Webhooks") + ): WebhookDelete """ Updates a webhook subscription. @@ -15162,7 +15250,7 @@ type Mutation { """Fields required to update a webhook.""" input: WebhookUpdateInput! - ): WebhookUpdate @doc(category: "Webhooks") + ): WebhookUpdate """ Retries event delivery. @@ -15172,7 +15260,7 @@ type Mutation { eventDeliveryRetry( """ID of the event delivery to retry.""" id: ID! - ): EventDeliveryRetry @doc(category: "Webhooks") + ): EventDeliveryRetry """ Performs a dry run of a webhook event. Supports a single event (the first, if multiple provided in the `query`). Requires permission relevant to processed event. @@ -15185,7 +15273,7 @@ type Mutation { """The subscription query that defines the webhook event and its payload.""" query: String! - ): WebhookDryRun @doc(category: "Webhooks") + ): WebhookDryRun """ Trigger a webhook event. Supports a single event (the first, if multiple provided in the `webhook.subscription_query`). Requires permission relevant to processed event. Successfully delivered webhook returns `delivery` with status='PENDING' and empty payload. @@ -15198,7 +15286,7 @@ type Mutation { """The ID of the webhook.""" webhookId: ID! - ): WebhookTrigger @doc(category: "Webhooks") + ): WebhookTrigger """ Creates a new warehouse. @@ -15208,7 +15296,7 @@ type Mutation { createWarehouse( """Fields required to create warehouse.""" input: WarehouseCreateInput! - ): WarehouseCreate @doc(category: "Products") + ): WarehouseCreate """ Updates given warehouse. @@ -15224,7 +15312,7 @@ type Mutation { """Fields required to update warehouse.""" input: WarehouseUpdateInput! - ): WarehouseUpdate @doc(category: "Products") + ): WarehouseUpdate """ Deletes selected warehouse. @@ -15234,7 +15322,7 @@ type Mutation { deleteWarehouse( """ID of a warehouse to delete.""" id: ID! - ): WarehouseDelete @doc(category: "Products") + ): WarehouseDelete """ Add shipping zone to given warehouse. @@ -15247,7 +15335,7 @@ type Mutation { """List of shipping zone IDs.""" shippingZoneIds: [ID!]! - ): WarehouseShippingZoneAssign @doc(category: "Products") + ): WarehouseShippingZoneAssign """ Remove shipping zone from given warehouse. @@ -15260,7 +15348,7 @@ type Mutation { """List of shipping zone IDs.""" shippingZoneIds: [ID!]! - ): WarehouseShippingZoneUnassign @doc(category: "Products") + ): WarehouseShippingZoneUnassign """ Creates a tax class. @@ -15270,7 +15358,7 @@ type Mutation { taxClassCreate( """Fields required to create a tax class.""" input: TaxClassCreateInput! - ): TaxClassCreate @doc(category: "Taxes") + ): TaxClassCreate """ Deletes a tax class. After deleting the tax class any products, product types or shipping methods using it are updated to use the default tax class. @@ -15280,7 +15368,7 @@ type Mutation { taxClassDelete( """ID of a tax class to delete.""" id: ID! - ): TaxClassDelete @doc(category: "Taxes") + ): TaxClassDelete """ Updates a tax class. @@ -15293,7 +15381,7 @@ type Mutation { """Fields required to update a tax class.""" input: TaxClassUpdateInput! - ): TaxClassUpdate @doc(category: "Taxes") + ): TaxClassUpdate """ Updates tax configuration for a channel. @@ -15306,7 +15394,7 @@ type Mutation { """Fields required to update the tax configuration.""" input: TaxConfigurationUpdateInput! - ): TaxConfigurationUpdate @doc(category: "Taxes") + ): TaxConfigurationUpdate """ Updates tax class rates for a specific country. @@ -15321,7 +15409,7 @@ type Mutation { List of tax rates per tax class to update. When `{taxClass: id, rate: null`} is passed, it deletes the rate object for given taxClass ID. When `{rate: Int}` is passed without a tax class, it updates the default tax class for this country. """ updateTaxClassRates: [TaxClassRateInput!]! - ): TaxCountryConfigurationUpdate @doc(category: "Taxes") + ): TaxCountryConfigurationUpdate """ Remove all tax class rates for a specific country. @@ -15331,7 +15419,7 @@ type Mutation { taxCountryConfigurationDelete( """Country in which to update the tax class rates.""" countryCode: CountryCode! - ): TaxCountryConfigurationDelete @doc(category: "Taxes") + ): TaxCountryConfigurationDelete """ Exempt checkout or order from charging the taxes. When tax exemption is enabled, taxes won't be charged for the checkout or order. Taxes may still be calculated in cases when product prices are entered with the tax included and the net price needs to be known. @@ -15344,7 +15432,7 @@ type Mutation { """Determines if a taxes should be exempt.""" taxExemption: Boolean! - ): TaxExemptionManage @doc(category: "Taxes") + ): TaxExemptionManage """ Updates stocks for a given variant and warehouse. Variant and warehouse selectors have to be the same for all stock inputs. Is not allowed to use 'variantId' in one input and 'variantExternalReference' in another. @@ -15360,7 +15448,7 @@ type Mutation { """Input list of stocks to update.""" stocks: [StockBulkUpdateInput!]! - ): StockBulkUpdate @doc(category: "Products") @webhookEventsInfo(asyncEvents: [PRODUCT_VARIANT_STOCK_UPDATED], syncEvents: []) + ): StockBulkUpdate """ Creates a new staff notification recipient. @@ -15370,7 +15458,7 @@ type Mutation { staffNotificationRecipientCreate( """Fields required to create a staff notification recipient.""" input: StaffNotificationRecipientInput! - ): StaffNotificationRecipientCreate @doc(category: "Users") + ): StaffNotificationRecipientCreate """ Updates a staff notification recipient. @@ -15383,7 +15471,7 @@ type Mutation { """Fields required to update a staff notification recipient.""" input: StaffNotificationRecipientInput! - ): StaffNotificationRecipientUpdate @doc(category: "Users") + ): StaffNotificationRecipientUpdate """ Deletes staff notification recipient. @@ -15393,7 +15481,7 @@ type Mutation { staffNotificationRecipientDelete( """ID of a staff notification recipient to delete.""" id: ID! - ): StaffNotificationRecipientDelete @doc(category: "Users") + ): StaffNotificationRecipientDelete """ Updates site domain of the shop. @@ -15403,7 +15491,7 @@ type Mutation { shopDomainUpdate( """Fields required to update site.""" input: SiteDomainInput - ): ShopDomainUpdate @doc(category: "Shop") @deprecated(reason: "Use `PUBLIC_URL` environment variable instead.") + ): ShopDomainUpdate @deprecated(reason: "Use `PUBLIC_URL` environment variable instead.") """ Updates shop settings. @@ -15416,14 +15504,14 @@ type Mutation { shopSettingsUpdate( """Fields required to update shop settings.""" input: ShopSettingsInput! - ): ShopSettingsUpdate @doc(category: "Shop") @webhookEventsInfo(asyncEvents: [SHOP_METADATA_UPDATED], syncEvents: []) + ): ShopSettingsUpdate """ Fetch tax rates. Requires one of the following permissions: MANAGE_SETTINGS. """ - shopFetchTaxRates: ShopFetchTaxRates @doc(category: "Shop") @deprecated + shopFetchTaxRates: ShopFetchTaxRates @deprecated """ Creates/updates translations for shop settings. @@ -15436,7 +15524,7 @@ type Mutation { """Translation language code.""" languageCode: LanguageCodeEnum! - ): ShopSettingsTranslate @doc(category: "Shop") + ): ShopSettingsTranslate """ Update the shop's address. If the `null` value is passed, the currently selected address will be deleted. @@ -15446,7 +15534,7 @@ type Mutation { shopAddressUpdate( """Fields required to update shop address.""" input: AddressInput - ): ShopAddressUpdate @doc(category: "Shop") + ): ShopAddressUpdate """ Update shop order settings across all channels. Returns `orderSettings` for the first `channel` in alphabetical order. @@ -15456,7 +15544,7 @@ type Mutation { orderSettingsUpdate( """Fields required to update shop order settings.""" input: OrderSettingsUpdateInput! - ): OrderSettingsUpdate @doc(category: "Orders") @deprecated(reason: "Use `channelUpdate` mutation instead.") + ): OrderSettingsUpdate @deprecated(reason: "Use `channelUpdate` mutation instead.") """ Update gift card settings. @@ -15466,7 +15554,7 @@ type Mutation { giftCardSettingsUpdate( """Fields required to update gift card settings.""" input: GiftCardSettingsUpdateInput! - ): GiftCardSettingsUpdate @doc(category: "Gift cards") + ): GiftCardSettingsUpdate """ Update refund settings across all channels. @@ -15478,7 +15566,7 @@ type Mutation { refundSettingsUpdate( """Fields required to update refund settings.""" input: RefundSettingsUpdateInput! - ): RefundSettingsUpdate @doc(category: "Shop") + ): RefundSettingsUpdate """ Updates RefundSettings. The `Page` (Model) Type will be cleared from `reasonReferenceType`. When it's cleared, passing reason reference to refund mutations is no longer accepted and will raise error. @@ -15487,7 +15575,7 @@ type Mutation { Requires one of the following permissions: MANAGE_SETTINGS. """ - refundReasonReferenceClear: RefundReasonReferenceTypeClear @doc(category: "Orders") + refundReasonReferenceClear: RefundReasonReferenceTypeClear """ Manage shipping method's availability in channels. @@ -15500,7 +15588,7 @@ type Mutation { """Fields required to update shipping method channel listings.""" input: ShippingMethodChannelListingInput! - ): ShippingMethodChannelListingUpdate @doc(category: "Shipping") + ): ShippingMethodChannelListingUpdate """ Creates a new shipping price. @@ -15510,7 +15598,7 @@ type Mutation { shippingPriceCreate( """Fields required to create a shipping price.""" input: ShippingPriceInput! - ): ShippingPriceCreate @doc(category: "Shipping") + ): ShippingPriceCreate """ Deletes a shipping price. @@ -15520,7 +15608,7 @@ type Mutation { shippingPriceDelete( """ID of a shipping price to delete.""" id: ID! - ): ShippingPriceDelete @doc(category: "Shipping") + ): ShippingPriceDelete """ Deletes shipping prices. @@ -15530,7 +15618,7 @@ type Mutation { shippingPriceBulkDelete( """List of shipping price IDs to delete.""" ids: [ID!]! - ): ShippingPriceBulkDelete @doc(category: "Shipping") + ): ShippingPriceBulkDelete """ Updates a new shipping price. @@ -15543,7 +15631,7 @@ type Mutation { """Fields required to update a shipping price.""" input: ShippingPriceInput! - ): ShippingPriceUpdate @doc(category: "Shipping") + ): ShippingPriceUpdate """ Creates/updates translations for a shipping method. @@ -15559,7 +15647,7 @@ type Mutation { """Translation language code.""" languageCode: LanguageCodeEnum! - ): ShippingPriceTranslate @doc(category: "Shipping") + ): ShippingPriceTranslate """ Exclude products from shipping price. @@ -15572,7 +15660,7 @@ type Mutation { """Exclude products input.""" input: ShippingPriceExcludeProductsInput! - ): ShippingPriceExcludeProducts @doc(category: "Shipping") + ): ShippingPriceExcludeProducts """ Remove product from excluded list for shipping price. @@ -15585,7 +15673,7 @@ type Mutation { """List of products which will be removed from excluded list.""" products: [ID!]! - ): ShippingPriceRemoveProductFromExclude @doc(category: "Shipping") + ): ShippingPriceRemoveProductFromExclude """ Creates a new shipping zone. @@ -15595,7 +15683,7 @@ type Mutation { shippingZoneCreate( """Fields required to create a shipping zone.""" input: ShippingZoneCreateInput! - ): ShippingZoneCreate @doc(category: "Shipping") + ): ShippingZoneCreate """ Deletes a shipping zone. @@ -15605,7 +15693,7 @@ type Mutation { shippingZoneDelete( """ID of a shipping zone to delete.""" id: ID! - ): ShippingZoneDelete @doc(category: "Shipping") + ): ShippingZoneDelete """ Deletes shipping zones. @@ -15615,7 +15703,7 @@ type Mutation { shippingZoneBulkDelete( """List of shipping zone IDs to delete.""" ids: [ID!]! - ): ShippingZoneBulkDelete @doc(category: "Shipping") + ): ShippingZoneBulkDelete """ Updates a new shipping zone. @@ -15628,7 +15716,7 @@ type Mutation { """Fields required to update a shipping zone.""" input: ShippingZoneUpdateInput! - ): ShippingZoneUpdate @doc(category: "Shipping") + ): ShippingZoneUpdate """ Assign attributes to a given product type. @@ -15641,7 +15729,7 @@ type Mutation { """ID of the product type to assign the attributes into.""" productTypeId: ID! - ): ProductAttributeAssign @doc(category: "Products") + ): ProductAttributeAssign """ Update attributes assigned to product variant for given product type. @@ -15654,7 +15742,7 @@ type Mutation { """ID of the product type to assign the attributes into.""" productTypeId: ID! - ): ProductAttributeAssignmentUpdate @doc(category: "Products") + ): ProductAttributeAssignmentUpdate """ Un-assign attributes from a given product type. @@ -15667,7 +15755,7 @@ type Mutation { """ID of the product type from which the attributes should be unassigned.""" productTypeId: ID! - ): ProductAttributeUnassign @doc(category: "Products") + ): ProductAttributeUnassign """ Creates a new category. @@ -15682,7 +15770,7 @@ type Mutation { ID of the parent category. If empty, category will be top level category. """ parent: ID - ): CategoryCreate @doc(category: "Products") + ): CategoryCreate """ Deletes a category. @@ -15692,7 +15780,7 @@ type Mutation { categoryDelete( """ID of a category to delete.""" id: ID! - ): CategoryDelete @doc(category: "Products") + ): CategoryDelete """ Deletes categories. @@ -15702,7 +15790,7 @@ type Mutation { categoryBulkDelete( """List of category IDs to delete.""" ids: [ID!]! - ): CategoryBulkDelete @doc(category: "Products") + ): CategoryBulkDelete """ Updates a category. @@ -15715,7 +15803,7 @@ type Mutation { """Fields required to update a category.""" input: CategoryInput! - ): CategoryUpdate @doc(category: "Products") + ): CategoryUpdate """ Creates/updates translations for a category. @@ -15731,7 +15819,7 @@ type Mutation { """Translation language code.""" languageCode: LanguageCodeEnum! - ): CategoryTranslate @doc(category: "Products") + ): CategoryTranslate """ Adds products to a collection. @@ -15744,7 +15832,7 @@ type Mutation { """List of product IDs.""" products: [ID!]! - ): CollectionAddProducts @doc(category: "Products") + ): CollectionAddProducts """ Creates a new collection. @@ -15754,7 +15842,7 @@ type Mutation { collectionCreate( """Fields required to create a collection.""" input: CollectionCreateInput! - ): CollectionCreate @doc(category: "Products") + ): CollectionCreate """ Deletes a collection. @@ -15764,7 +15852,7 @@ type Mutation { collectionDelete( """ID of a collection to delete.""" id: ID! - ): CollectionDelete @doc(category: "Products") + ): CollectionDelete """ Reorder the products of a collection. @@ -15777,7 +15865,7 @@ type Mutation { """The collection products position operations.""" moves: [MoveProductInput!]! - ): CollectionReorderProducts @doc(category: "Products") + ): CollectionReorderProducts """ Deletes collections. @@ -15787,7 +15875,7 @@ type Mutation { collectionBulkDelete( """List of collection IDs to delete.""" ids: [ID!]! - ): CollectionBulkDelete @doc(category: "Products") + ): CollectionBulkDelete """ Remove products from a collection. @@ -15800,7 +15888,7 @@ type Mutation { """List of product IDs.""" products: [ID!]! - ): CollectionRemoveProducts @doc(category: "Products") + ): CollectionRemoveProducts """ Updates a collection. @@ -15813,7 +15901,7 @@ type Mutation { """Fields required to update a collection.""" input: CollectionInput! - ): CollectionUpdate @doc(category: "Products") + ): CollectionUpdate """ Creates/updates translations for a collection. @@ -15829,7 +15917,7 @@ type Mutation { """Translation language code.""" languageCode: LanguageCodeEnum! - ): CollectionTranslate @doc(category: "Products") + ): CollectionTranslate """ Manage collection's availability in channels. @@ -15842,7 +15930,7 @@ type Mutation { """Fields required to create or update collection channel listings.""" input: CollectionChannelListingUpdateInput! - ): CollectionChannelListingUpdate @doc(category: "Products") + ): CollectionChannelListingUpdate """ Creates a new product. @@ -15852,7 +15940,7 @@ type Mutation { productCreate( """Fields required to create a product.""" input: ProductCreateInput! - ): ProductCreate @doc(category: "Products") + ): ProductCreate """ Deletes a product. @@ -15865,7 +15953,7 @@ type Mutation { """ID of a product to delete.""" id: ID - ): ProductDelete @doc(category: "Products") + ): ProductDelete """ Creates products. @@ -15878,7 +15966,7 @@ type Mutation { """Input list of products to create.""" products: [ProductBulkCreateInput!]! - ): ProductBulkCreate @doc(category: "Products") + ): ProductBulkCreate """ Deletes products. @@ -15888,7 +15976,7 @@ type Mutation { productBulkDelete( """List of product IDs to delete.""" ids: [ID!]! - ): ProductBulkDelete @doc(category: "Products") + ): ProductBulkDelete """ Updates an existing product. @@ -15904,7 +15992,7 @@ type Mutation { """Fields required to update a product.""" input: ProductInput! - ): ProductUpdate @doc(category: "Products") + ): ProductUpdate """ Creates/updates translations for products. @@ -15921,7 +16009,7 @@ type Mutation { """List of product translations.""" translations: [ProductBulkTranslateInput!]! - ): ProductBulkTranslate @doc(category: "Products") @webhookEventsInfo(asyncEvents: [TRANSLATION_CREATED, TRANSLATION_UPDATED], syncEvents: []) + ): ProductBulkTranslate """ Creates/updates translations for a product. @@ -15937,7 +16025,7 @@ type Mutation { """Translation language code.""" languageCode: LanguageCodeEnum! - ): ProductTranslate @doc(category: "Products") + ): ProductTranslate """ Manage product's availability in channels. @@ -15950,7 +16038,7 @@ type Mutation { """Fields required to create or update product channel listings.""" input: ProductChannelListingUpdateInput! - ): ProductChannelListingUpdate @doc(category: "Products") + ): ProductChannelListingUpdate """ Create a media object (image or video URL) associated with product. For image, this mutation must be sent as a `multipart` request. More detailed specs of the upload format can be found here: https://github.com/jaydenseric/graphql-multipart-request-spec @@ -15960,7 +16048,7 @@ type Mutation { productMediaCreate( """Fields required to create a product media.""" input: ProductMediaCreateInput! - ): ProductMediaCreate @doc(category: "Products") + ): ProductMediaCreate """ Reorder the variants of a product. Mutation updates updated_at on product and triggers PRODUCT_UPDATED webhook. @@ -15973,7 +16061,7 @@ type Mutation { """Id of product that variants order will be altered.""" productId: ID! - ): ProductVariantReorder @doc(category: "Products") + ): ProductVariantReorder """ Deletes a product media. @@ -15983,7 +16071,7 @@ type Mutation { productMediaDelete( """ID of a product media to delete.""" id: ID! - ): ProductMediaDelete @doc(category: "Products") + ): ProductMediaDelete """ Deletes product media. @@ -15993,7 +16081,7 @@ type Mutation { productMediaBulkDelete( """List of product media IDs to delete.""" ids: [ID!]! - ): ProductMediaBulkDelete @doc(category: "Products") + ): ProductMediaBulkDelete """ Changes ordering of the product media. @@ -16006,7 +16094,7 @@ type Mutation { """ID of product that media order will be altered.""" productId: ID! - ): ProductMediaReorder @doc(category: "Products") + ): ProductMediaReorder """ Updates a product media. @@ -16019,7 +16107,7 @@ type Mutation { """Fields required to update a product media.""" input: ProductMediaUpdateInput! - ): ProductMediaUpdate @doc(category: "Products") + ): ProductMediaUpdate """ Creates a new product type. @@ -16029,7 +16117,7 @@ type Mutation { productTypeCreate( """Fields required to create a product type.""" input: ProductTypeInput! - ): ProductTypeCreate @doc(category: "Products") + ): ProductTypeCreate """ Deletes a product type. @@ -16039,7 +16127,7 @@ type Mutation { productTypeDelete( """ID of a product type to delete.""" id: ID! - ): ProductTypeDelete @doc(category: "Products") + ): ProductTypeDelete """ Deletes product types. @@ -16049,7 +16137,7 @@ type Mutation { productTypeBulkDelete( """List of product type IDs to delete.""" ids: [ID!]! - ): ProductTypeBulkDelete @doc(category: "Products") + ): ProductTypeBulkDelete """ Updates an existing product type. @@ -16062,7 +16150,7 @@ type Mutation { """Fields required to update a product type.""" input: ProductTypeInput! - ): ProductTypeUpdate @doc(category: "Products") + ): ProductTypeUpdate """ Reorder the attributes of a product type. @@ -16078,7 +16166,7 @@ type Mutation { """The attribute type to reorder.""" type: ProductAttributeType! - ): ProductTypeReorderAttributes @doc(category: "Products") + ): ProductTypeReorderAttributes """ Reorder product attribute values. @@ -16094,7 +16182,7 @@ type Mutation { """ID of a product.""" productId: ID! - ): ProductReorderAttributeValues @doc(category: "Products") + ): ProductReorderAttributeValues """ Create new digital content. This mutation must be sent as a `multipart` request. More detailed specs of the upload format can be found here: https://github.com/jaydenseric/graphql-multipart-request-spec @@ -16107,7 +16195,7 @@ type Mutation { """ID of a product variant to upload digital content.""" variantId: ID! - ): DigitalContentCreate @doc(category: "Products") + ): DigitalContentCreate """ Remove digital content assigned to given variant. @@ -16117,7 +16205,7 @@ type Mutation { digitalContentDelete( """ID of a product variant with digital content to remove.""" variantId: ID! - ): DigitalContentDelete @doc(category: "Products") + ): DigitalContentDelete """ Updates digital content. @@ -16130,7 +16218,7 @@ type Mutation { """ID of a product variant with digital content to update.""" variantId: ID! - ): DigitalContentUpdate @doc(category: "Products") + ): DigitalContentUpdate """ Generate new URL to digital content. @@ -16140,7 +16228,7 @@ type Mutation { digitalContentUrlCreate( """Fields required to create a new url.""" input: DigitalContentUrlCreateInput! - ): DigitalContentUrlCreate @doc(category: "Products") + ): DigitalContentUrlCreate """ Creates a new variant for a product. @@ -16150,7 +16238,7 @@ type Mutation { productVariantCreate( """Fields required to create a product variant.""" input: ProductVariantCreateInput! - ): ProductVariantCreate @doc(category: "Products") + ): ProductVariantCreate """ Deletes a product variant. @@ -16166,7 +16254,7 @@ type Mutation { """SKU of a product variant to delete.""" sku: String - ): ProductVariantDelete @doc(category: "Products") + ): ProductVariantDelete """ Creates product variants for a given product. @@ -16182,7 +16270,7 @@ type Mutation { """Input list of product variants to create.""" variants: [ProductVariantBulkCreateInput!]! - ): ProductVariantBulkCreate @doc(category: "Products") + ): ProductVariantBulkCreate """ Updates multiple product variants. @@ -16198,7 +16286,7 @@ type Mutation { """Input list of product variants to update.""" variants: [ProductVariantBulkUpdateInput!]! - ): ProductVariantBulkUpdate @doc(category: "Products") + ): ProductVariantBulkUpdate """ Deletes product variants. @@ -16211,7 +16299,7 @@ type Mutation { """List of product variant SKUs to delete.""" skus: [String!] - ): ProductVariantBulkDelete @doc(category: "Products") + ): ProductVariantBulkDelete """ Creates stocks for product variant. @@ -16224,7 +16312,7 @@ type Mutation { """ID of a product variant for which stocks will be created.""" variantId: ID! - ): ProductVariantStocksCreate @doc(category: "Products") + ): ProductVariantStocksCreate """ Deletes stocks from product variant. @@ -16240,7 +16328,7 @@ type Mutation { """Input list of warehouse IDs.""" warehouseIds: [ID!] - ): ProductVariantStocksDelete @doc(category: "Products") + ): ProductVariantStocksDelete """ Updates stocks for product variant. @@ -16256,7 +16344,7 @@ type Mutation { """ID of a product variant for which stocks will be updated.""" variantId: ID - ): ProductVariantStocksUpdate @doc(category: "Products") + ): ProductVariantStocksUpdate """ Updates an existing variant for product. @@ -16275,7 +16363,7 @@ type Mutation { """SKU of a product variant to update.""" sku: String - ): ProductVariantUpdate @doc(category: "Products") + ): ProductVariantUpdate """ Set default variant for a product. Mutation triggers PRODUCT_UPDATED webhook. @@ -16288,7 +16376,7 @@ type Mutation { """Id of a variant that will be set as default.""" variantId: ID! - ): ProductVariantSetDefault @doc(category: "Products") + ): ProductVariantSetDefault """ Creates/updates translations for a product variant. @@ -16304,7 +16392,7 @@ type Mutation { """Translation language code.""" languageCode: LanguageCodeEnum! - ): ProductVariantTranslate @doc(category: "Products") + ): ProductVariantTranslate """ Creates/updates translations for product variants. @@ -16321,7 +16409,7 @@ type Mutation { """List of product variant translations.""" translations: [ProductVariantBulkTranslateInput!]! - ): ProductVariantBulkTranslate @doc(category: "Products") @webhookEventsInfo(asyncEvents: [TRANSLATION_CREATED, TRANSLATION_UPDATED], syncEvents: []) + ): ProductVariantBulkTranslate """ Manage product variant prices in channels. @@ -16339,7 +16427,7 @@ type Mutation { """SKU of a product variant to update.""" sku: String - ): ProductVariantChannelListingUpdate @doc(category: "Products") + ): ProductVariantChannelListingUpdate """ Reorder product variant attribute values. @@ -16355,7 +16443,7 @@ type Mutation { """ID of a product variant.""" variantId: ID! - ): ProductVariantReorderAttributeValues @doc(category: "Products") + ): ProductVariantReorderAttributeValues """ Deactivates product variant preorder. It changes all preorder allocation into regular allocation. @@ -16365,7 +16453,7 @@ type Mutation { productVariantPreorderDeactivate( """ID of a variant which preorder should be deactivated.""" id: ID! - ): ProductVariantPreorderDeactivate @doc(category: "Products") + ): ProductVariantPreorderDeactivate """ Assign an media to a product variant. @@ -16378,7 +16466,7 @@ type Mutation { """ID of a product variant.""" variantId: ID! - ): VariantMediaAssign @doc(category: "Products") + ): VariantMediaAssign """ Unassign an media from a product variant. @@ -16391,7 +16479,7 @@ type Mutation { """ID of a product variant.""" variantId: ID! - ): VariantMediaUnassign @doc(category: "Products") + ): VariantMediaUnassign """ Captures the authorized payment amount. @@ -16404,7 +16492,7 @@ type Mutation { """Payment ID.""" paymentId: ID! - ): PaymentCapture @doc(category: "Payments") + ): PaymentCapture """ Refunds the captured payment amount. @@ -16417,7 +16505,7 @@ type Mutation { """Payment ID.""" paymentId: ID! - ): PaymentRefund @doc(category: "Payments") + ): PaymentRefund """ Voids the authorized payment. @@ -16427,7 +16515,7 @@ type Mutation { paymentVoid( """Payment ID.""" paymentId: ID! - ): PaymentVoid @doc(category: "Payments") + ): PaymentVoid """Initializes payment process when it is required by gateway.""" paymentInitialize( @@ -16439,13 +16527,13 @@ type Mutation { """Client-side generated data required to initialize the payment.""" paymentData: JSONString - ): PaymentInitialize @doc(category: "Payments") + ): PaymentInitialize """Check payment balance.""" paymentCheckBalance( """Fields required to check payment balance.""" input: PaymentCheckBalanceInput! - ): PaymentCheckBalance @doc(category: "Payments") + ): PaymentCheckBalance """ Creates transaction for checkout or order. @@ -16461,7 +16549,7 @@ type Mutation { """Data that defines a transaction event.""" transactionEvent: TransactionEventInput - ): TransactionCreate @doc(category: "Payments") + ): TransactionCreate """ Update transaction. @@ -16480,7 +16568,7 @@ type Mutation { """Data that defines a transaction transaction.""" transactionEvent: TransactionEventInput - ): TransactionUpdate @doc(category: "Payments") + ): TransactionUpdate """ Request an action for payment transaction. @@ -16515,7 +16603,7 @@ type Mutation { """The token of the transaction. One of field id or token is required.""" token: UUID - ): TransactionRequestAction @doc(category: "Payments") + ): TransactionRequestAction """ Request a refund for payment transaction based on granted refund. @@ -16535,7 +16623,7 @@ type Mutation { The token of the transaction. One of field id or token is required, if `transactionItem` is not already assigned to the `orderGrantedRefund`. If `transactionItem` is already assigned to the grantedRefund the field will be ignored. """ token: UUID - ): TransactionRequestRefundForGrantedRefund @doc(category: "Payments") + ): TransactionRequestRefundForGrantedRefund """ Report the event for the transaction. @@ -16607,7 +16695,7 @@ type Mutation { """Current status of the event to report.""" type: TransactionEventTypeEnum! - ): TransactionEventReport @doc(category: "Payments") @webhookEventsInfo(asyncEvents: [TRANSACTION_ITEM_METADATA_UPDATED, CHECKOUT_FULLY_PAID, ORDER_UPDATED], syncEvents: []) + ): TransactionEventReport """ Initializes a payment gateway session. It triggers the webhook `PAYMENT_GATEWAY_INITIALIZE_SESSION`, to the requested `paymentGateways`. If `paymentGateways` is not provided, the webhook will be send to all subscribed payment gateways. There is a limit of 100 transaction items per checkout / order. @@ -16623,7 +16711,7 @@ type Mutation { """List of payment gateways to initialize.""" paymentGateways: [PaymentGatewayToInitialize!] - ): PaymentGatewayInitialize @doc(category: "Payments") + ): PaymentGatewayInitialize """ Initializes a transaction session. It triggers the webhook `TRANSACTION_INITIALIZE_SESSION`, to the requested `paymentGateways`. There is a limit of 100 transaction items per checkout / order. @@ -16654,10 +16742,10 @@ type Mutation { """Payment gateway used to initialize the transaction.""" paymentGateway: PaymentGatewayToInitialize! - ): TransactionInitialize @doc(category: "Payments") + ): TransactionInitialize """ - Processes a transaction session. It triggers the webhook `TRANSACTION_PROCESS_SESSION`, to the assigned `paymentGateways`. + Processes a transaction session. It triggers the webhook `TRANSACTION_PROCESS_SESSION`, to the assigned `paymentGateways`. """ transactionProcess( """ @@ -16677,7 +16765,7 @@ type Mutation { The token of the transaction to process. One of field id or token is required. """ token: UUID - ): TransactionProcess @doc(category: "Payments") + ): TransactionProcess """ Request to delete a stored payment method on payment provider side. @@ -16693,7 +16781,7 @@ type Mutation { """The ID of the payment method.""" id: ID! - ): StoredPaymentMethodRequestDelete @doc(category: "Payments") @webhookEventsInfo(asyncEvents: [], syncEvents: [STORED_PAYMENT_METHOD_DELETE_REQUESTED]) + ): StoredPaymentMethodRequestDelete """ Initializes payment gateway for tokenizing payment method session. @@ -16712,7 +16800,7 @@ type Mutation { """The identifier of the payment gateway app to initialize tokenization.""" id: String! - ): PaymentGatewayInitializeTokenization @doc(category: "Payments") @webhookEventsInfo(asyncEvents: [], syncEvents: [PAYMENT_GATEWAY_INITIALIZE_TOKENIZATION_SESSION]) + ): PaymentGatewayInitializeTokenization """ Tokenize payment method. @@ -16736,7 +16824,7 @@ type Mutation { """The payment flow that the tokenized payment method should support.""" paymentFlowToSupport: TokenizedPaymentFlowEnum! - ): PaymentMethodInitializeTokenization @doc(category: "Payments") @webhookEventsInfo(asyncEvents: [], syncEvents: [PAYMENT_METHOD_INITIALIZE_TOKENIZATION_SESSION]) + ): PaymentMethodInitializeTokenization """ Tokenize payment method. @@ -16757,7 +16845,7 @@ type Mutation { The identifier of the payment gateway app to process payment method tokenization. """ id: String! - ): PaymentMethodProcessTokenization @doc(category: "Payments") @webhookEventsInfo(asyncEvents: [], syncEvents: [PAYMENT_METHOD_PROCESS_TOKENIZATION_SESSION]) + ): PaymentMethodProcessTokenization """ Creates a new page. @@ -16767,7 +16855,7 @@ type Mutation { pageCreate( """Fields required to create a page.""" input: PageCreateInput! - ): PageCreate @doc(category: "Pages") + ): PageCreate """ Deletes a page. @@ -16777,7 +16865,7 @@ type Mutation { pageDelete( """ID of a page to delete.""" id: ID! - ): PageDelete @doc(category: "Pages") + ): PageDelete """ Deletes pages. @@ -16787,7 +16875,7 @@ type Mutation { pageBulkDelete( """List of page IDs to delete.""" ids: [ID!]! - ): PageBulkDelete @doc(category: "Pages") + ): PageBulkDelete """ Publish pages. @@ -16800,7 +16888,7 @@ type Mutation { """Determine if pages will be published or not.""" isPublished: Boolean! - ): PageBulkPublish @doc(category: "Pages") + ): PageBulkPublish """ Updates an existing page. @@ -16813,7 +16901,7 @@ type Mutation { """Fields required to update a page.""" input: PageInput! - ): PageUpdate @doc(category: "Pages") + ): PageUpdate """ Creates/updates translations for a page. @@ -16829,7 +16917,7 @@ type Mutation { """Translation language code.""" languageCode: LanguageCodeEnum! - ): PageTranslate @doc(category: "Pages") + ): PageTranslate """ Creates a new page type. @@ -16839,7 +16927,7 @@ type Mutation { pageTypeCreate( """Fields required to create page type.""" input: PageTypeCreateInput! - ): PageTypeCreate @doc(category: "Pages") + ): PageTypeCreate """ Updates page type. @@ -16852,7 +16940,7 @@ type Mutation { """Fields required to update page type.""" input: PageTypeUpdateInput! - ): PageTypeUpdate @doc(category: "Pages") + ): PageTypeUpdate """ Deletes a page type. @@ -16862,7 +16950,7 @@ type Mutation { pageTypeDelete( """ID of the page type to delete.""" id: ID! - ): PageTypeDelete @doc(category: "Pages") + ): PageTypeDelete """ Deletes page types. @@ -16872,7 +16960,7 @@ type Mutation { pageTypeBulkDelete( """List of page type IDs to delete""" ids: [ID!]! - ): PageTypeBulkDelete @doc(category: "Pages") + ): PageTypeBulkDelete """ Assign attributes to a given page type. @@ -16885,7 +16973,7 @@ type Mutation { """ID of the page type to assign the attributes into.""" pageTypeId: ID! - ): PageAttributeAssign @doc(category: "Pages") + ): PageAttributeAssign """ Unassign attributes from a given page type. @@ -16898,7 +16986,7 @@ type Mutation { """ID of the page type from which the attributes should be unassign.""" pageTypeId: ID! - ): PageAttributeUnassign @doc(category: "Pages") + ): PageAttributeUnassign """ Reorder the attributes of a page type. @@ -16911,7 +16999,7 @@ type Mutation { """ID of a page type.""" pageTypeId: ID! - ): PageTypeReorderAttributes @doc(category: "Pages") + ): PageTypeReorderAttributes """ Reorder page attribute values. @@ -16927,7 +17015,7 @@ type Mutation { """ID of a page.""" pageId: ID! - ): PageReorderAttributeValues @doc(category: "Pages") + ): PageReorderAttributeValues """ Completes creating an order. @@ -16937,7 +17025,7 @@ type Mutation { draftOrderComplete( """ID of the order that will be completed.""" id: ID! - ): DraftOrderComplete @doc(category: "Orders") + ): DraftOrderComplete """ Creates a new draft order. @@ -16947,7 +17035,7 @@ type Mutation { draftOrderCreate( """Fields required to create an order.""" input: DraftOrderCreateInput! - ): DraftOrderCreate @doc(category: "Orders") + ): DraftOrderCreate """ Deletes a draft order. @@ -16960,7 +17048,7 @@ type Mutation { """ID of a product to delete.""" id: ID - ): DraftOrderDelete @doc(category: "Orders") + ): DraftOrderDelete """ Deletes draft orders. @@ -16970,7 +17058,7 @@ type Mutation { draftOrderBulkDelete( """List of draft order IDs to delete.""" ids: [ID!]! - ): DraftOrderBulkDelete @doc(category: "Orders") + ): DraftOrderBulkDelete """ Deletes order lines. @@ -16980,7 +17068,7 @@ type Mutation { draftOrderLinesBulkDelete( """List of order lines IDs to delete.""" ids: [ID!]! - ): DraftOrderLinesBulkDelete @doc(category: "Orders") @deprecated + ): DraftOrderLinesBulkDelete @deprecated """ Updates a draft order. @@ -16996,7 +17084,7 @@ type Mutation { """Fields required to update an order.""" input: DraftOrderInput! - ): DraftOrderUpdate @doc(category: "Orders") + ): DraftOrderUpdate """ Adds note to the order. @@ -17009,7 +17097,7 @@ type Mutation { """Fields required to create a note for the order.""" input: OrderAddNoteInput! - ): OrderAddNote @doc(category: "Orders") @deprecated(reason: "Use `orderNoteAdd` instead.") + ): OrderAddNote @deprecated(reason: "Use `orderNoteAdd` instead.") """ Cancel an order. @@ -17019,7 +17107,7 @@ type Mutation { orderCancel( """ID of the order to cancel.""" id: ID! - ): OrderCancel @doc(category: "Orders") + ): OrderCancel """ Capture an order. @@ -17032,7 +17120,7 @@ type Mutation { """ID of the order to capture.""" id: ID! - ): OrderCapture @doc(category: "Orders") + ): OrderCapture """ Confirms an unconfirmed order by changing status to unfulfilled. @@ -17042,7 +17130,7 @@ type Mutation { orderConfirm( """ID of an order to confirm.""" id: ID! - ): OrderConfirm @doc(category: "Orders") + ): OrderConfirm """ Creates new fulfillments for an order. @@ -17061,7 +17149,7 @@ type Mutation { """ID of the order to be fulfilled.""" order: ID - ): OrderFulfill @doc(category: "Orders") @webhookEventsInfo(asyncEvents: [FULFILLMENT_CREATED, ORDER_FULFILLED, FULFILLMENT_TRACKING_NUMBER_UPDATED, FULFILLMENT_APPROVED], syncEvents: []) + ): OrderFulfill """ Cancels existing fulfillment and optionally restocks items. @@ -17074,7 +17162,7 @@ type Mutation { """Fields required to cancel a fulfillment.""" input: FulfillmentCancelInput - ): FulfillmentCancel @doc(category: "Orders") + ): FulfillmentCancel """ Approve existing fulfillment. @@ -17093,7 +17181,7 @@ type Mutation { """True if confirmation email should be send.""" notifyCustomer: Boolean! - ): FulfillmentApprove @doc(category: "Orders") @webhookEventsInfo(asyncEvents: [FULFILLMENT_APPROVED], syncEvents: []) + ): FulfillmentApprove """ Updates a fulfillment for an order. @@ -17109,7 +17197,7 @@ type Mutation { """Fields required to update a fulfillment.""" input: FulfillmentUpdateTrackingInput! - ): FulfillmentUpdateTracking @doc(category: "Orders") @webhookEventsInfo(asyncEvents: [FULFILLMENT_TRACKING_NUMBER_UPDATED], syncEvents: []) + ): FulfillmentUpdateTracking """ Refund products. @@ -17122,7 +17210,7 @@ type Mutation { """ID of the order to be refunded.""" order: ID! - ): FulfillmentRefundProducts @doc(category: "Orders") + ): FulfillmentRefundProducts """ Return products. @@ -17135,7 +17223,7 @@ type Mutation { """ID of the order to be returned.""" order: ID! - ): FulfillmentReturnProducts @doc(category: "Orders") + ): FulfillmentReturnProducts """ Adds granted refund to the order. @@ -17148,7 +17236,7 @@ type Mutation { """Fields required to create a granted refund for the order.""" input: OrderGrantRefundCreateInput! - ): OrderGrantRefundCreate @doc(category: "Orders") + ): OrderGrantRefundCreate """ Updates granted refund. @@ -17161,7 +17249,7 @@ type Mutation { """Fields required to update a granted refund.""" input: OrderGrantRefundUpdateInput! - ): OrderGrantRefundUpdate @doc(category: "Orders") + ): OrderGrantRefundUpdate """ Creates order lines for an order. @@ -17174,7 +17262,7 @@ type Mutation { """Fields required to add order lines.""" input: [OrderLineCreateInput!]! - ): OrderLinesCreate @doc(category: "Orders") + ): OrderLinesCreate """ Deletes an order line from an order. @@ -17184,7 +17272,7 @@ type Mutation { orderLineDelete( """ID of the order line to delete.""" id: ID! - ): OrderLineDelete @doc(category: "Orders") + ): OrderLineDelete """ Updates an order line of an order. @@ -17197,7 +17285,7 @@ type Mutation { """Fields required to update an order line.""" input: OrderLineInput! - ): OrderLineUpdate @doc(category: "Orders") + ): OrderLineUpdate """ Adds discount to the order. @@ -17210,7 +17298,7 @@ type Mutation { """ID of an order to discount.""" orderId: ID! - ): OrderDiscountAdd @doc(category: "Orders") + ): OrderDiscountAdd """ Update discount for the order. @@ -17223,7 +17311,7 @@ type Mutation { """Fields required to update a discount for the order.""" input: OrderDiscountCommonInput! - ): OrderDiscountUpdate @doc(category: "Orders") + ): OrderDiscountUpdate """ Remove discount from the order. @@ -17233,7 +17321,7 @@ type Mutation { orderDiscountDelete( """ID of a discount to remove.""" discountId: ID! - ): OrderDiscountDelete @doc(category: "Orders") + ): OrderDiscountDelete """ Update discount for the order line. @@ -17246,7 +17334,7 @@ type Mutation { """ID of a order line to update price""" orderLineId: ID! - ): OrderLineDiscountUpdate @doc(category: "Orders") + ): OrderLineDiscountUpdate """ Remove discount applied to the order line. @@ -17256,7 +17344,7 @@ type Mutation { orderLineDiscountRemove( """ID of a order line to remove its discount""" orderLineId: ID! - ): OrderLineDiscountRemove @doc(category: "Orders") + ): OrderLineDiscountRemove """ Adds note to the order. @@ -17269,7 +17357,7 @@ type Mutation { """Fields required to create a note for the order.""" input: OrderNoteInput! - ): OrderNoteAdd @doc(category: "Orders") + ): OrderNoteAdd """ Updates note of an order. @@ -17282,7 +17370,7 @@ type Mutation { """Fields required to create a note for the order.""" input: OrderNoteInput! - ): OrderNoteUpdate @doc(category: "Orders") + ): OrderNoteUpdate """ Mark order as manually paid. @@ -17295,7 +17383,7 @@ type Mutation { """The external transaction reference.""" transactionReference: String - ): OrderMarkAsPaid @doc(category: "Orders") + ): OrderMarkAsPaid """ Refund an order. @@ -17308,7 +17396,7 @@ type Mutation { """ID of the order to refund.""" id: ID! - ): OrderRefund @doc(category: "Orders") + ): OrderRefund """ Updates an order. @@ -17324,7 +17412,7 @@ type Mutation { """Fields required to update an order.""" input: OrderUpdateInput! - ): OrderUpdate @doc(category: "Orders") + ): OrderUpdate """ Updates a shipping method of the order. Requires shipping method ID to update, when null is passed then currently assigned shipping method is removed. @@ -17337,7 +17425,7 @@ type Mutation { """Fields required to change shipping method of the order.""" input: OrderUpdateShippingInput! - ): OrderUpdateShipping @doc(category: "Orders") + ): OrderUpdateShipping """ Void an order. @@ -17347,7 +17435,7 @@ type Mutation { orderVoid( """ID of the order to void.""" id: ID! - ): OrderVoid @doc(category: "Orders") + ): OrderVoid """ Cancels orders. @@ -17357,7 +17445,7 @@ type Mutation { orderBulkCancel( """List of orders IDs to cancel.""" ids: [ID!]! - ): OrderBulkCancel @doc(category: "Orders") + ): OrderBulkCancel """ Creates multiple orders. @@ -17375,7 +17463,7 @@ type Mutation { Determine how stock should be updated, while processing the order. DEFAULT: UPDATE - Only do update, if there is enough stocks. """ stockUpdatePolicy: StockUpdatePolicyEnum - ): OrderBulkCreate @doc(category: "Orders") + ): OrderBulkCreate """ Delete metadata of an object. To use it, you need to have access to the modified object. @@ -17436,7 +17524,7 @@ type Mutation { """Type of the navigation bar to assign the menu to.""" navigationType: NavigationType! - ): AssignNavigation @doc(category: "Menu") + ): AssignNavigation """ Creates a new Menu. @@ -17449,7 +17537,7 @@ type Mutation { menuCreate( """Fields required to create a menu.""" input: MenuCreateInput! - ): MenuCreate @doc(category: "Menu") @webhookEventsInfo(asyncEvents: [MENU_CREATED], syncEvents: []) + ): MenuCreate """ Deletes a menu. @@ -17462,7 +17550,7 @@ type Mutation { menuDelete( """ID of a menu to delete.""" id: ID! - ): MenuDelete @doc(category: "Menu") @webhookEventsInfo(asyncEvents: [MENU_DELETED], syncEvents: []) + ): MenuDelete """ Deletes menus. @@ -17475,7 +17563,7 @@ type Mutation { menuBulkDelete( """List of menu IDs to delete.""" ids: [ID!]! - ): MenuBulkDelete @doc(category: "Menu") @webhookEventsInfo(asyncEvents: [MENU_DELETED], syncEvents: []) + ): MenuBulkDelete """ Updates a menu. @@ -17491,7 +17579,7 @@ type Mutation { """Fields required to update a menu.""" input: MenuInput! - ): MenuUpdate @doc(category: "Menu") @webhookEventsInfo(asyncEvents: [MENU_UPDATED], syncEvents: []) + ): MenuUpdate """ Creates a new menu item. @@ -17506,7 +17594,7 @@ type Mutation { Fields required to update a menu item. Only one of `url`, `category`, `page`, `collection` is allowed per item. """ input: MenuItemCreateInput! - ): MenuItemCreate @doc(category: "Menu") @webhookEventsInfo(asyncEvents: [MENU_ITEM_CREATED], syncEvents: []) + ): MenuItemCreate """ Deletes a menu item. @@ -17519,7 +17607,7 @@ type Mutation { menuItemDelete( """ID of a menu item to delete.""" id: ID! - ): MenuItemDelete @doc(category: "Menu") @webhookEventsInfo(asyncEvents: [MENU_ITEM_DELETED], syncEvents: []) + ): MenuItemDelete """ Deletes menu items. @@ -17532,7 +17620,7 @@ type Mutation { menuItemBulkDelete( """List of menu item IDs to delete.""" ids: [ID!]! - ): MenuItemBulkDelete @doc(category: "Menu") @webhookEventsInfo(asyncEvents: [MENU_ITEM_DELETED], syncEvents: []) + ): MenuItemBulkDelete """ Updates a menu item. @@ -17550,7 +17638,7 @@ type Mutation { Fields required to update a menu item. Only one of `url`, `category`, `page`, `collection` is allowed per item. """ input: MenuItemInput! - ): MenuItemUpdate @doc(category: "Menu") @webhookEventsInfo(asyncEvents: [MENU_ITEM_UPDATED], syncEvents: []) + ): MenuItemUpdate """ Creates/updates translations for a menu item. @@ -17566,7 +17654,7 @@ type Mutation { """Translation language code.""" languageCode: LanguageCodeEnum! - ): MenuItemTranslate @doc(category: "Menu") + ): MenuItemTranslate """ Moves items of menus. @@ -17582,7 +17670,7 @@ type Mutation { """The menu position data.""" moves: [MenuItemMoveInput!]! - ): MenuItemMove @doc(category: "Menu") @webhookEventsInfo(asyncEvents: [MENU_ITEM_UPDATED], syncEvents: []) + ): MenuItemMove """ Request an invoice for the order using plugin. @@ -17598,7 +17686,7 @@ type Mutation { """ID of the order related to invoice.""" orderId: ID! - ): InvoiceRequest @doc(category: "Orders") @webhookEventsInfo(asyncEvents: [INVOICE_REQUESTED], syncEvents: []) + ): InvoiceRequest """ Requests deletion of an invoice. @@ -17611,7 +17699,7 @@ type Mutation { invoiceRequestDelete( """ID of an invoice to request the deletion.""" id: ID! - ): InvoiceRequestDelete @doc(category: "Orders") @webhookEventsInfo(asyncEvents: [INVOICE_DELETED], syncEvents: []) + ): InvoiceRequestDelete """ Creates a ready to send invoice. @@ -17624,7 +17712,7 @@ type Mutation { """ID of the order related to invoice.""" orderId: ID! - ): InvoiceCreate @doc(category: "Orders") + ): InvoiceCreate """ Deletes an invoice. @@ -17634,7 +17722,7 @@ type Mutation { invoiceDelete( """ID of an invoice to delete.""" id: ID! - ): InvoiceDelete @doc(category: "Orders") + ): InvoiceDelete """ Updates an invoice. @@ -17647,7 +17735,7 @@ type Mutation { """Fields to use when updating an invoice.""" input: UpdateInvoiceInput! - ): InvoiceUpdate @doc(category: "Orders") + ): InvoiceUpdate """ Send an invoice notification to the customer. @@ -17661,7 +17749,7 @@ type Mutation { invoiceSendNotification( """ID of an invoice to be sent.""" id: ID! - ): InvoiceSendNotification @doc(category: "Orders") @webhookEventsInfo(asyncEvents: [INVOICE_SENT, NOTIFY_USER], syncEvents: []) + ): InvoiceSendNotification """ Activate a gift card. @@ -17674,7 +17762,7 @@ type Mutation { giftCardActivate( """ID of a gift card to activate.""" id: ID! - ): GiftCardActivate @doc(category: "Gift cards") @webhookEventsInfo(asyncEvents: [GIFT_CARD_STATUS_CHANGED], syncEvents: []) + ): GiftCardActivate """ Creates a new gift card. @@ -17688,7 +17776,7 @@ type Mutation { giftCardCreate( """Fields required to create a gift card.""" input: GiftCardCreateInput! - ): GiftCardCreate @doc(category: "Gift cards") @webhookEventsInfo(asyncEvents: [GIFT_CARD_CREATED, NOTIFY_USER], syncEvents: []) + ): GiftCardCreate """ Deletes gift card. @@ -17701,7 +17789,7 @@ type Mutation { giftCardDelete( """ID of the gift card to delete.""" id: ID! - ): GiftCardDelete @doc(category: "Gift cards") @webhookEventsInfo(asyncEvents: [GIFT_CARD_DELETED], syncEvents: []) + ): GiftCardDelete """ Deactivate a gift card. @@ -17714,7 +17802,7 @@ type Mutation { giftCardDeactivate( """ID of a gift card to deactivate.""" id: ID! - ): GiftCardDeactivate @doc(category: "Gift cards") @webhookEventsInfo(asyncEvents: [GIFT_CARD_STATUS_CHANGED], syncEvents: []) + ): GiftCardDeactivate """ Update a gift card. @@ -17730,7 +17818,7 @@ type Mutation { """Fields required to update a gift card.""" input: GiftCardUpdateInput! - ): GiftCardUpdate @doc(category: "Gift cards") @webhookEventsInfo(asyncEvents: [GIFT_CARD_UPDATED], syncEvents: []) + ): GiftCardUpdate """ Resend a gift card. @@ -17743,7 +17831,7 @@ type Mutation { giftCardResend( """Fields required to resend a gift card.""" input: GiftCardResendInput! - ): GiftCardResend @doc(category: "Gift cards") @webhookEventsInfo(asyncEvents: [NOTIFY_USER], syncEvents: []) + ): GiftCardResend """ Adds note to the gift card. @@ -17759,7 +17847,7 @@ type Mutation { """Fields required to create a note for the gift card.""" input: GiftCardAddNoteInput! - ): GiftCardAddNote @doc(category: "Gift cards") @webhookEventsInfo(asyncEvents: [GIFT_CARD_UPDATED], syncEvents: []) + ): GiftCardAddNote """ Creates gift cards. @@ -17773,7 +17861,7 @@ type Mutation { giftCardBulkCreate( """Fields required to create gift cards.""" input: GiftCardBulkCreateInput! - ): GiftCardBulkCreate @doc(category: "Gift cards") @webhookEventsInfo(asyncEvents: [GIFT_CARD_CREATED, NOTIFY_USER], syncEvents: []) + ): GiftCardBulkCreate """ Deletes gift cards. @@ -17786,7 +17874,7 @@ type Mutation { giftCardBulkDelete( """List of gift card IDs to delete.""" ids: [ID!]! - ): GiftCardBulkDelete @doc(category: "Gift cards") @webhookEventsInfo(asyncEvents: [GIFT_CARD_DELETED], syncEvents: []) + ): GiftCardBulkDelete """ Activate gift cards. @@ -17799,7 +17887,7 @@ type Mutation { giftCardBulkActivate( """List of gift card IDs to activate.""" ids: [ID!]! - ): GiftCardBulkActivate @doc(category: "Gift cards") @webhookEventsInfo(asyncEvents: [GIFT_CARD_STATUS_CHANGED], syncEvents: []) + ): GiftCardBulkActivate """ Deactivate gift cards. @@ -17812,7 +17900,7 @@ type Mutation { giftCardBulkDeactivate( """List of gift card IDs to deactivate.""" ids: [ID!]! - ): GiftCardBulkDeactivate @doc(category: "Gift cards") @webhookEventsInfo(asyncEvents: [GIFT_CARD_STATUS_CHANGED], syncEvents: []) + ): GiftCardBulkDeactivate """ Update plugin configuration. @@ -17858,7 +17946,7 @@ type Mutation { promotionCreate( """Fields requires to create a promotion.""" input: PromotionCreateInput! - ): PromotionCreate @doc(category: "Discounts") @webhookEventsInfo(asyncEvents: [PROMOTION_CREATED, PROMOTION_STARTED], syncEvents: []) + ): PromotionCreate """ Updates an existing promotion. @@ -17876,7 +17964,7 @@ type Mutation { """Fields required to update a promotion.""" input: PromotionUpdateInput! - ): PromotionUpdate @doc(category: "Discounts") @webhookEventsInfo(asyncEvents: [PROMOTION_UPDATED, PROMOTION_STARTED, PROMOTION_ENDED], syncEvents: []) + ): PromotionUpdate """ Deletes a promotion. @@ -17889,7 +17977,7 @@ type Mutation { promotionDelete( """The ID of the promotion to remove.""" id: ID! - ): PromotionDelete @doc(category: "Discounts") @webhookEventsInfo(asyncEvents: [PROMOTION_DELETED], syncEvents: []) + ): PromotionDelete """ Creates a new promotion rule. @@ -17902,7 +17990,7 @@ type Mutation { promotionRuleCreate( """Fields required to create a promotion rule.""" input: PromotionRuleCreateInput! - ): PromotionRuleCreate @doc(category: "Discounts") @webhookEventsInfo(asyncEvents: [PROMOTION_RULE_CREATED], syncEvents: []) + ): PromotionRuleCreate """ Updates an existing promotion rule. @@ -17918,7 +18006,7 @@ type Mutation { """Fields required to create a promotion rule.""" input: PromotionRuleUpdateInput! - ): PromotionRuleUpdate @doc(category: "Discounts") @webhookEventsInfo(asyncEvents: [PROMOTION_RULE_UPDATED], syncEvents: []) + ): PromotionRuleUpdate """ Deletes a promotion rule. @@ -17931,7 +18019,7 @@ type Mutation { promotionRuleDelete( """The ID of the promotion to remove.""" id: ID! - ): PromotionRuleDelete @doc(category: "Discounts") @webhookEventsInfo(asyncEvents: [PROMOTION_RULE_DELETED], syncEvents: []) + ): PromotionRuleDelete """ Creates/updates translations for a promotion. @@ -17947,7 +18035,7 @@ type Mutation { """Translation language code.""" languageCode: LanguageCodeEnum! - ): PromotionTranslate @doc(category: "Discounts") + ): PromotionTranslate """ Creates/updates translations for a promotion rule. @@ -17963,7 +18051,7 @@ type Mutation { """Translation language code.""" languageCode: LanguageCodeEnum! - ): PromotionRuleTranslate @doc(category: "Discounts") + ): PromotionRuleTranslate """ Deletes promotions. @@ -17976,7 +18064,7 @@ type Mutation { promotionBulkDelete( """List of promotion IDs to delete.""" ids: [ID!]! - ): PromotionBulkDelete @doc(category: "Discounts") @webhookEventsInfo(asyncEvents: [PROMOTION_DELETED], syncEvents: []) + ): PromotionBulkDelete """ Creates a new sale. @@ -17989,7 +18077,7 @@ type Mutation { saleCreate( """Fields required to create a sale.""" input: SaleInput! - ): SaleCreate @doc(category: "Discounts") @webhookEventsInfo(asyncEvents: [SALE_CREATED], syncEvents: []) @deprecated(reason: "Use `promotionCreate` mutation instead.") + ): SaleCreate @deprecated(reason: "Use `promotionCreate` mutation instead.") """ Deletes a sale. @@ -18002,7 +18090,7 @@ type Mutation { saleDelete( """ID of a sale to delete.""" id: ID! - ): SaleDelete @doc(category: "Discounts") @webhookEventsInfo(asyncEvents: [SALE_DELETED], syncEvents: []) @deprecated(reason: "Use `promotionDelete` mutation instead.") + ): SaleDelete @deprecated(reason: "Use `promotionDelete` mutation instead.") """ Deletes sales. @@ -18015,7 +18103,7 @@ type Mutation { saleBulkDelete( """List of sale IDs to delete.""" ids: [ID!]! - ): SaleBulkDelete @doc(category: "Discounts") @webhookEventsInfo(asyncEvents: [SALE_DELETED], syncEvents: []) + ): SaleBulkDelete """ Updates a sale. @@ -18032,7 +18120,7 @@ type Mutation { """Fields required to update a sale.""" input: SaleInput! - ): SaleUpdate @doc(category: "Discounts") @webhookEventsInfo(asyncEvents: [SALE_UPDATED, SALE_TOGGLE], syncEvents: []) @deprecated(reason: "Use `promotionUpdate` mutation instead.") + ): SaleUpdate @deprecated(reason: "Use `promotionUpdate` mutation instead.") """ Adds products, categories, collections to a sale. @@ -18048,7 +18136,7 @@ type Mutation { """Fields required to modify catalogue IDs of sale.""" input: CatalogueInput! - ): SaleAddCatalogues @doc(category: "Discounts") @webhookEventsInfo(asyncEvents: [SALE_UPDATED], syncEvents: []) @deprecated(reason: "Use `promotionRuleCreate` and `promotionRuleUpdate` mutations instead.") + ): SaleAddCatalogues @deprecated(reason: "Use `promotionRuleCreate` and `promotionRuleUpdate` mutations instead.") """ Removes products, categories, collections from a sale. @@ -18064,7 +18152,7 @@ type Mutation { """Fields required to modify catalogue IDs of sale.""" input: CatalogueInput! - ): SaleRemoveCatalogues @doc(category: "Discounts") @webhookEventsInfo(asyncEvents: [SALE_UPDATED], syncEvents: []) @deprecated(reason: "Use `promotionRuleUpdate` and `promotionRuleDelete` mutations instead.") + ): SaleRemoveCatalogues @deprecated(reason: "Use `promotionRuleUpdate` and `promotionRuleDelete` mutations instead.") """ Creates/updates translations for a sale. @@ -18080,7 +18168,7 @@ type Mutation { """Translation language code.""" languageCode: LanguageCodeEnum! - ): SaleTranslate @doc(category: "Discounts") @deprecated(reason: "Use `promotionTranslate` mutation instead.") + ): SaleTranslate @deprecated(reason: "Use `promotionTranslate` mutation instead.") """ Manage sale's availability in channels. @@ -18093,7 +18181,7 @@ type Mutation { """Fields required to update sale channel listings.""" input: SaleChannelListingInput! - ): SaleChannelListingUpdate @doc(category: "Discounts") @deprecated(reason: "Use `promotionRuleUpdate` mutation instead.") + ): SaleChannelListingUpdate @deprecated(reason: "Use `promotionRuleUpdate` mutation instead.") """ Creates a new voucher. @@ -18107,7 +18195,7 @@ type Mutation { voucherCreate( """Fields required to create a voucher.""" input: VoucherInput! - ): VoucherCreate @doc(category: "Discounts") @webhookEventsInfo(asyncEvents: [VOUCHER_CREATED, VOUCHER_CODES_CREATED], syncEvents: []) + ): VoucherCreate """ Deletes a voucher. @@ -18120,7 +18208,7 @@ type Mutation { voucherDelete( """ID of a voucher to delete.""" id: ID! - ): VoucherDelete @doc(category: "Discounts") @webhookEventsInfo(asyncEvents: [VOUCHER_DELETED], syncEvents: []) + ): VoucherDelete """ Deletes vouchers. @@ -18133,7 +18221,7 @@ type Mutation { voucherBulkDelete( """List of voucher IDs to delete.""" ids: [ID!]! - ): VoucherBulkDelete @doc(category: "Discounts") @webhookEventsInfo(asyncEvents: [VOUCHER_DELETED], syncEvents: []) + ): VoucherBulkDelete """ Updates a voucher. @@ -18150,7 +18238,7 @@ type Mutation { """Fields required to update a voucher.""" input: VoucherInput! - ): VoucherUpdate @doc(category: "Discounts") @webhookEventsInfo(asyncEvents: [VOUCHER_UPDATED, VOUCHER_CODES_CREATED], syncEvents: []) + ): VoucherUpdate """ Adds products, categories, collections to a voucher. @@ -18166,7 +18254,7 @@ type Mutation { """Fields required to modify catalogue IDs of voucher.""" input: CatalogueInput! - ): VoucherAddCatalogues @doc(category: "Discounts") @webhookEventsInfo(asyncEvents: [VOUCHER_UPDATED], syncEvents: []) + ): VoucherAddCatalogues """ Removes products, categories, collections from a voucher. @@ -18182,7 +18270,7 @@ type Mutation { """Fields required to modify catalogue IDs of voucher.""" input: CatalogueInput! - ): VoucherRemoveCatalogues @doc(category: "Discounts") @webhookEventsInfo(asyncEvents: [VOUCHER_UPDATED], syncEvents: []) + ): VoucherRemoveCatalogues """ Creates/updates translations for a voucher. @@ -18198,7 +18286,7 @@ type Mutation { """Translation language code.""" languageCode: LanguageCodeEnum! - ): VoucherTranslate @doc(category: "Discounts") + ): VoucherTranslate """ Manage voucher's availability in channels. @@ -18214,7 +18302,7 @@ type Mutation { """Fields required to update voucher channel listings.""" input: VoucherChannelListingInput! - ): VoucherChannelListingUpdate @doc(category: "Discounts") @webhookEventsInfo(asyncEvents: [VOUCHER_UPDATED], syncEvents: []) + ): VoucherChannelListingUpdate """ Deletes voucher codes. @@ -18229,7 +18317,7 @@ type Mutation { voucherCodeBulkDelete( """List of voucher codes IDs to delete.""" ids: [ID!]! - ): VoucherCodeBulkDelete @doc(category: "Discounts") @webhookEventsInfo(asyncEvents: [VOUCHER_CODES_DELETED], syncEvents: []) + ): VoucherCodeBulkDelete """ Export products to csv file. @@ -18243,7 +18331,7 @@ type Mutation { exportProducts( """Fields required to export product data.""" input: ExportProductsInput! - ): ExportProducts @doc(category: "Products") @webhookEventsInfo(asyncEvents: [NOTIFY_USER, PRODUCT_EXPORT_COMPLETED], syncEvents: []) + ): ExportProducts """ Export gift cards to csv file. @@ -18257,7 +18345,7 @@ type Mutation { exportGiftCards( """Fields required to export gift cards data.""" input: ExportGiftCardsInput! - ): ExportGiftCards @doc(category: "Gift cards") @webhookEventsInfo(asyncEvents: [NOTIFY_USER, GIFT_CARD_EXPORT_COMPLETED], syncEvents: []) + ): ExportGiftCards """ Export voucher codes to csv/xlsx file. @@ -18274,7 +18362,7 @@ type Mutation { exportVoucherCodes( """Fields required to export voucher codes.""" input: ExportVoucherCodesInput! - ): ExportVoucherCodes @doc(category: "Discounts") @webhookEventsInfo(asyncEvents: [VOUCHER_CODE_EXPORT_COMPLETED], syncEvents: []) + ): ExportVoucherCodes """ Upload a file. This mutation must be sent as a `multipart` request. More detailed specs of the upload format can be found here: https://github.com/jaydenseric/graphql-multipart-request-spec @@ -18293,8 +18381,12 @@ type Mutation { - CHECKOUT_UPDATED (async): A checkout was updated. """ checkoutAddPromoCode( - """The ID of the checkout.""" - checkoutId: ID @deprecated(reason: "Use `id` instead.") + """ + The ID of the checkout. + + DEPRECATED: this field will be removed. Use `id` instead. + """ + checkoutId: ID """The checkout's ID.""" id: ID @@ -18302,9 +18394,13 @@ type Mutation { """Gift card code or voucher code.""" promoCode: String! - """Checkout token.""" - token: UUID @deprecated(reason: "Use `id` instead.") - ): CheckoutAddPromoCode @doc(category: "Checkout") @webhookEventsInfo(asyncEvents: [CHECKOUT_UPDATED], syncEvents: []) + """ + Checkout token. + + DEPRECATED: this field will be removed. Use `id` instead. + """ + token: UUID + ): CheckoutAddPromoCode """ Updates billing address in the existing checkout. @@ -18316,8 +18412,12 @@ type Mutation { """The billing address of the checkout.""" billingAddress: AddressInput! - """The ID of the checkout.""" - checkoutId: ID @deprecated(reason: "Use `id` instead.") + """ + The ID of the checkout. + + DEPRECATED: this field will be removed. Use `id` instead. + """ + checkoutId: ID """The checkout's ID.""" id: ID @@ -18329,12 +18429,16 @@ type Mutation { """ saveAddress: Boolean = true - """Checkout token.""" - token: UUID @deprecated(reason: "Use `id` instead.") + """ + Checkout token. + + DEPRECATED: this field will be removed. Use `id` instead. + """ + token: UUID """The rules for changing validation for received billing address data.""" validationRules: CheckoutAddressValidationRules - ): CheckoutBillingAddressUpdate @doc(category: "Checkout") @webhookEventsInfo(asyncEvents: [CHECKOUT_UPDATED], syncEvents: []) + ): CheckoutBillingAddressUpdate """ Completes the checkout. As a result a new order is created. The mutation allows to create the unpaid order when setting `orderSettings.allowUnpaidOrders` for given `Channel` is set to `true`. When `orderSettings.allowUnpaidOrders` is set to `false`, checkout can be completed only when attached `Payment`/`TransactionItem`s fully cover the checkout's total. When processing the checkout with `Payment`, in case of required additional confirmation step like 3D secure, the `confirmationNeeded` flag will be set to True and no order will be created until payment is confirmed with second call of this mutation. @@ -18352,8 +18456,12 @@ type Mutation { - ORDER_CONFIRMED (async): Optionally triggered when newly created order are automatically marked as confirmed. """ checkoutComplete( - """The ID of the checkout.""" - checkoutId: ID @deprecated(reason: "Use `id` instead.") + """ + The ID of the checkout. + + DEPRECATED: this field will be removed. Use `id` instead. + """ + checkoutId: ID """The checkout's ID.""" id: ID @@ -18373,12 +18481,20 @@ type Mutation { """ redirectUrl: String - """Determines whether to store the payment source for future usage.""" - storeSource: Boolean = false @deprecated(reason: "Use checkoutPaymentCreate for this action.") + """ + Determines whether to store the payment source for future usage. + + DEPRECATED: this field will be removed. Use checkoutPaymentCreate for this action. + """ + storeSource: Boolean = false - """Checkout token.""" - token: UUID @deprecated(reason: "Use `id` instead.") - ): CheckoutComplete @doc(category: "Checkout") @webhookEventsInfo(asyncEvents: [ORDER_CREATED, NOTIFY_USER, NOTIFY_USER, ORDER_UPDATED, ORDER_PAID, ORDER_FULLY_PAID, ORDER_CONFIRMED], syncEvents: [SHIPPING_LIST_METHODS_FOR_CHECKOUT, CHECKOUT_FILTER_SHIPPING_METHODS, CHECKOUT_CALCULATE_TAXES]) + """ + Checkout token. + + DEPRECATED: this field will be removed. Use `id` instead. + """ + token: UUID + ): CheckoutComplete """ Create a new checkout. @@ -18391,13 +18507,13 @@ type Mutation { checkoutCreate( """Fields required to create checkout.""" input: CheckoutCreateInput! - ): CheckoutCreate @doc(category: "Checkout") @webhookEventsInfo(asyncEvents: [CHECKOUT_CREATED], syncEvents: []) + ): CheckoutCreate """Creates a new checkout from existing order.""" checkoutCreateFromOrder( """ID of a order that will be used to create the checkout.""" id: ID! - ): CheckoutCreateFromOrder @doc(category: "Checkout") + ): CheckoutCreateFromOrder """ Sets the customer as the owner of the checkout. @@ -18408,8 +18524,12 @@ type Mutation { - CHECKOUT_UPDATED (async): A checkout was updated. """ checkoutCustomerAttach( - """The ID of the checkout.""" - checkoutId: ID @deprecated(reason: "Use `id` instead.") + """ + The ID of the checkout. + + DEPRECATED: this field will be removed. Use `id` instead. + """ + checkoutId: ID """ ID of customer to attach to checkout. Requires IMPERSONATE_USER permission when customerId is different than the logged-in user. @@ -18419,9 +18539,13 @@ type Mutation { """The checkout's ID.""" id: ID - """Checkout token.""" - token: UUID @deprecated(reason: "Use `id` instead.") - ): CheckoutCustomerAttach @doc(category: "Checkout") @webhookEventsInfo(asyncEvents: [CHECKOUT_UPDATED], syncEvents: []) + """ + Checkout token. + + DEPRECATED: this field will be removed. Use `id` instead. + """ + token: UUID + ): CheckoutCustomerAttach """ Removes the user assigned as the owner of the checkout. @@ -18432,15 +18556,23 @@ type Mutation { - CHECKOUT_UPDATED (async): A checkout was updated. """ checkoutCustomerDetach( - """The ID of the checkout.""" - checkoutId: ID @deprecated(reason: "Use `id` instead.") + """ + The ID of the checkout. + + DEPRECATED: this field will be removed. Use `id` instead. + """ + checkoutId: ID """The checkout's ID.""" id: ID - """Checkout token.""" - token: UUID @deprecated(reason: "Use `id` instead.") - ): CheckoutCustomerDetach @doc(category: "Checkout") @webhookEventsInfo(asyncEvents: [CHECKOUT_UPDATED], syncEvents: []) + """ + Checkout token. + + DEPRECATED: this field will be removed. Use `id` instead. + """ + token: UUID + ): CheckoutCustomerDetach """ Updates customer note in the existing checkout object. @@ -18456,7 +18588,7 @@ type Mutation { """The checkout's ID.""" id: ID! - ): CheckoutCustomerNoteUpdate @doc(category: "Checkout") @webhookEventsInfo(asyncEvents: [CHECKOUT_UPDATED], syncEvents: []) + ): CheckoutCustomerNoteUpdate """ Updates email address in the existing checkout object. @@ -18465,8 +18597,12 @@ type Mutation { - CHECKOUT_UPDATED (async): A checkout was updated. """ checkoutEmailUpdate( - """The ID of the checkout.""" - checkoutId: ID @deprecated(reason: "Use `id` instead.") + """ + The ID of the checkout. + + DEPRECATED: this field will be removed. Use `id` instead. + """ + checkoutId: ID """email.""" email: String! @@ -18474,9 +18610,13 @@ type Mutation { """The checkout's ID.""" id: ID - """Checkout token.""" - token: UUID @deprecated(reason: "Use `id` instead.") - ): CheckoutEmailUpdate @doc(category: "Checkout") @webhookEventsInfo(asyncEvents: [CHECKOUT_UPDATED], syncEvents: []) + """ + Checkout token. + + DEPRECATED: this field will be removed. Use `id` instead. + """ + token: UUID + ): CheckoutEmailUpdate """ Deletes a CheckoutLine. @@ -18485,8 +18625,12 @@ type Mutation { - CHECKOUT_UPDATED (async): A checkout was updated. """ checkoutLineDelete( - """The ID of the checkout.""" - checkoutId: ID @deprecated(reason: "Use `id` instead.") + """ + The ID of the checkout. + + DEPRECATED: this field will be removed. Use `id` instead. + """ + checkoutId: ID """The checkout's ID.""" id: ID @@ -18494,9 +18638,13 @@ type Mutation { """ID of the checkout line to delete.""" lineId: ID - """Checkout token.""" - token: UUID @deprecated(reason: "Use `id` instead.") - ): CheckoutLineDelete @doc(category: "Checkout") @webhookEventsInfo(asyncEvents: [CHECKOUT_UPDATED], syncEvents: []) @deprecated(reason: "Use `checkoutLinesDelete` instead.") + """ + Checkout token. + + DEPRECATED: this field will be removed. Use `id` instead. + """ + token: UUID + ): CheckoutLineDelete @deprecated(reason: "Use `checkoutLinesDelete` instead.") """ Deletes checkout lines. @@ -18511,9 +18659,13 @@ type Mutation { """A list of checkout lines.""" linesIds: [ID!]! - """Checkout token.""" - token: UUID @deprecated(reason: "Use `id` instead.") - ): CheckoutLinesDelete @doc(category: "Checkout") @webhookEventsInfo(asyncEvents: [CHECKOUT_UPDATED], syncEvents: []) + """ + Checkout token. + + DEPRECATED: this field will be removed. Use `id` instead. + """ + token: UUID + ): CheckoutLinesDelete """ Adds a checkout line to the existing checkout.If line was already in checkout, its quantity will be increased. @@ -18522,8 +18674,12 @@ type Mutation { - CHECKOUT_UPDATED (async): A checkout was updated. """ checkoutLinesAdd( - """The ID of the checkout.""" - checkoutId: ID @deprecated(reason: "Use `id` instead.") + """ + The ID of the checkout. + + DEPRECATED: this field will be removed. Use `id` instead. + """ + checkoutId: ID """The checkout's ID.""" id: ID @@ -18533,9 +18689,13 @@ type Mutation { """ lines: [CheckoutLineInput!]! - """Checkout token.""" - token: UUID @deprecated(reason: "Use `id` instead.") - ): CheckoutLinesAdd @doc(category: "Checkout") @webhookEventsInfo(asyncEvents: [CHECKOUT_UPDATED], syncEvents: []) + """ + Checkout token. + + DEPRECATED: this field will be removed. Use `id` instead. + """ + token: UUID + ): CheckoutLinesAdd """ Updates checkout line in the existing checkout. @@ -18544,8 +18704,12 @@ type Mutation { - CHECKOUT_UPDATED (async): A checkout was updated. """ checkoutLinesUpdate( - """The ID of the checkout.""" - checkoutId: ID @deprecated(reason: "Use `id` instead.") + """ + The ID of the checkout. + + DEPRECATED: this field will be removed. Use `id` instead. + """ + checkoutId: ID """The checkout's ID.""" id: ID @@ -18555,9 +18719,13 @@ type Mutation { """ lines: [CheckoutLineUpdateInput!]! - """Checkout token.""" - token: UUID @deprecated(reason: "Use `id` instead.") - ): CheckoutLinesUpdate @doc(category: "Checkout") @webhookEventsInfo(asyncEvents: [CHECKOUT_UPDATED], syncEvents: []) + """ + Checkout token. + + DEPRECATED: this field will be removed. Use `id` instead. + """ + token: UUID + ): CheckoutLinesUpdate """ Remove a gift card or a voucher from a checkout. @@ -18566,8 +18734,12 @@ type Mutation { - CHECKOUT_UPDATED (async): A checkout was updated. """ checkoutRemovePromoCode( - """The ID of the checkout.""" - checkoutId: ID @deprecated(reason: "Use `id` instead.") + """ + The ID of the checkout. + + DEPRECATED: this field will be removed. Use `id` instead. + """ + checkoutId: ID """The checkout's ID.""" id: ID @@ -18578,14 +18750,22 @@ type Mutation { """Gift card or voucher ID.""" promoCodeId: ID - """Checkout token.""" - token: UUID @deprecated(reason: "Use `id` instead.") - ): CheckoutRemovePromoCode @doc(category: "Checkout") @webhookEventsInfo(asyncEvents: [CHECKOUT_UPDATED], syncEvents: []) + """ + Checkout token. + + DEPRECATED: this field will be removed. Use `id` instead. + """ + token: UUID + ): CheckoutRemovePromoCode """Creates a new payment for given checkout.""" checkoutPaymentCreate( - """The ID of the checkout.""" - checkoutId: ID @deprecated(reason: "Use `id` instead.") + """ + The ID of the checkout. + + DEPRECATED: this field will be removed. Use `id` instead. + """ + checkoutId: ID """The checkout's ID.""" id: ID @@ -18593,9 +18773,13 @@ type Mutation { """Data required to create a new payment.""" input: PaymentInput! - """Checkout token.""" - token: UUID @deprecated(reason: "Use `id` instead.") - ): CheckoutPaymentCreate @doc(category: "Checkout") + """ + Checkout token. + + DEPRECATED: this field will be removed. Use `id` instead. + """ + token: UUID + ): CheckoutPaymentCreate """ Updates shipping address in the existing checkout. @@ -18604,8 +18788,12 @@ type Mutation { - CHECKOUT_UPDATED (async): A checkout was updated. """ checkoutShippingAddressUpdate( - """The ID of the checkout.""" - checkoutId: ID @deprecated(reason: "Use `id` instead.") + """ + The ID of the checkout. + + DEPRECATED: this field will be removed. Use `id` instead. + """ + checkoutId: ID """The checkout's ID.""" id: ID @@ -18620,12 +18808,16 @@ type Mutation { """The mailing address to where the checkout will be shipped.""" shippingAddress: AddressInput! - """Checkout token.""" - token: UUID @deprecated(reason: "Use `id` instead.") + """ + Checkout token. + + DEPRECATED: this field will be removed. Use `id` instead. + """ + token: UUID """The rules for changing validation for received shipping address data.""" validationRules: CheckoutAddressValidationRules - ): CheckoutShippingAddressUpdate @doc(category: "Checkout") @webhookEventsInfo(asyncEvents: [CHECKOUT_UPDATED], syncEvents: []) + ): CheckoutShippingAddressUpdate """ Updates the shipping method of the checkout. @@ -18635,8 +18827,12 @@ type Mutation { - CHECKOUT_UPDATED (async): A checkout was updated. """ checkoutShippingMethodUpdate( - """The ID of the checkout.""" - checkoutId: ID @deprecated(reason: "Use `id` instead.") + """ + The ID of the checkout. + + DEPRECATED: this field will be removed. Use `id` instead. + """ + checkoutId: ID """The checkout's ID.""" id: ID @@ -18644,9 +18840,13 @@ type Mutation { """Shipping method.""" shippingMethodId: ID - """Checkout token.""" - token: UUID @deprecated(reason: "Use `id` instead.") - ): CheckoutShippingMethodUpdate @doc(category: "Checkout") @webhookEventsInfo(asyncEvents: [CHECKOUT_UPDATED], syncEvents: [SHIPPING_LIST_METHODS_FOR_CHECKOUT]) @deprecated(reason: "Use `checkoutDeliveryMethodUpdate` instead.") + """ + Checkout token. + + DEPRECATED: this field will be removed. Use `id` instead. + """ + token: UUID + ): CheckoutShippingMethodUpdate @deprecated(reason: "Use `checkoutDeliveryMethodUpdate` instead.") """ Updates the delivery method (shipping method or pick up point) of the checkout. Updates the checkout shipping_address for click and collect delivery for a warehouse address. @@ -18662,9 +18862,13 @@ type Mutation { """The checkout's ID.""" id: ID - """Checkout token.""" - token: UUID @deprecated(reason: "Use `id` instead.") - ): CheckoutDeliveryMethodUpdate @doc(category: "Checkout") @webhookEventsInfo(asyncEvents: [CHECKOUT_UPDATED], syncEvents: [SHIPPING_LIST_METHODS_FOR_CHECKOUT]) + """ + Checkout token. + + DEPRECATED: this field will be removed. Use `id` instead. + """ + token: UUID + ): CheckoutDeliveryMethodUpdate """ Updates language code in the existing checkout. @@ -18673,8 +18877,12 @@ type Mutation { - CHECKOUT_UPDATED (async): A checkout was updated. """ checkoutLanguageCodeUpdate( - """The ID of the checkout.""" - checkoutId: ID @deprecated(reason: "Use `id` instead.") + """ + The ID of the checkout. + + DEPRECATED: this field will be removed. Use `id` instead. + """ + checkoutId: ID """The checkout's ID.""" id: ID @@ -18682,9 +18890,13 @@ type Mutation { """New language code.""" languageCode: LanguageCodeEnum! - """Checkout token.""" - token: UUID @deprecated(reason: "Use `id` instead.") - ): CheckoutLanguageCodeUpdate @doc(category: "Checkout") @webhookEventsInfo(asyncEvents: [CHECKOUT_UPDATED], syncEvents: []) + """ + Checkout token. + + DEPRECATED: this field will be removed. Use `id` instead. + """ + token: UUID + ): CheckoutLanguageCodeUpdate """ Create new order from existing checkout. Requires the following permissions: AUTHENTICATED_APP and HANDLE_CHECKOUTS. @@ -18723,7 +18935,7 @@ type Mutation { Determines if checkout should be removed after creating an order. Default true. """ removeCheckout: Boolean = true - ): OrderCreateFromCheckout @doc(category: "Orders") @webhookEventsInfo(asyncEvents: [ORDER_CREATED, NOTIFY_USER, NOTIFY_USER, ORDER_UPDATED, ORDER_PAID, ORDER_FULLY_PAID, ORDER_CONFIRMED], syncEvents: [SHIPPING_LIST_METHODS_FOR_CHECKOUT, CHECKOUT_FILTER_SHIPPING_METHODS, CHECKOUT_CALCULATE_TAXES]) + ): OrderCreateFromCheckout """ Creates a new channel. @@ -18736,7 +18948,7 @@ type Mutation { channelCreate( """Fields required to create channel.""" input: ChannelCreateInput! - ): ChannelCreate @doc(category: "Channels") @webhookEventsInfo(asyncEvents: [CHANNEL_CREATED], syncEvents: []) + ): ChannelCreate """ Update a channel. @@ -18756,7 +18968,7 @@ type Mutation { """Fields required to update a channel.""" input: ChannelUpdateInput! - ): ChannelUpdate @doc(category: "Channels") @webhookEventsInfo(asyncEvents: [CHANNEL_UPDATED, CHANNEL_METADATA_UPDATED], syncEvents: []) + ): ChannelUpdate """ Deletes a channel. Orders associated with the deleted channel will be moved to the target channel. Checkouts, product availability, and pricing will be removed. @@ -18772,7 +18984,7 @@ type Mutation { """Fields required to delete a channel.""" input: ChannelDeleteInput - ): ChannelDelete @doc(category: "Channels") @webhookEventsInfo(asyncEvents: [CHANNEL_DELETED], syncEvents: []) + ): ChannelDelete """ Activate a channel. @@ -18785,7 +18997,7 @@ type Mutation { channelActivate( """ID of the channel to activate.""" id: ID! - ): ChannelActivate @doc(category: "Channels") @webhookEventsInfo(asyncEvents: [CHANNEL_STATUS_CHANGED], syncEvents: []) + ): ChannelActivate """ Deactivate a channel. @@ -18798,7 +19010,7 @@ type Mutation { channelDeactivate( """ID of the channel to deactivate.""" id: ID! - ): ChannelDeactivate @doc(category: "Channels") @webhookEventsInfo(asyncEvents: [CHANNEL_STATUS_CHANGED], syncEvents: []) + ): ChannelDeactivate """ Reorder the warehouses of a channel. @@ -18811,7 +19023,7 @@ type Mutation { """The list of reordering operations for the given channel warehouses.""" moves: [ReorderInput!]! - ): ChannelReorderWarehouses @doc(category: "Channels") + ): ChannelReorderWarehouses """ Creates an attribute. @@ -18822,7 +19034,7 @@ type Mutation { attributeCreate( """Fields required to create an attribute.""" input: AttributeCreateInput! - ): AttributeCreate @doc(category: "Attributes") @webhookEventsInfo(asyncEvents: [ATTRIBUTE_CREATED], syncEvents: []) + ): AttributeCreate """ Deletes an attribute. @@ -18838,7 +19050,7 @@ type Mutation { """ID of an attribute to delete.""" id: ID - ): AttributeDelete @doc(category: "Attributes") @webhookEventsInfo(asyncEvents: [ATTRIBUTE_DELETED], syncEvents: []) + ): AttributeDelete """ Updates attribute. @@ -18857,7 +19069,7 @@ type Mutation { """Fields required to update an attribute.""" input: AttributeUpdateInput! - ): AttributeUpdate @doc(category: "Attributes") @webhookEventsInfo(asyncEvents: [ATTRIBUTE_UPDATED], syncEvents: []) + ): AttributeUpdate """ Creates attributes. @@ -18871,7 +19083,7 @@ type Mutation { """Policies of error handling. DEFAULT: REJECT_EVERYTHING""" errorPolicy: ErrorPolicyEnum - ): AttributeBulkCreate @doc(category: "Attributes") @webhookEventsInfo(asyncEvents: [ATTRIBUTE_CREATED], syncEvents: []) + ): AttributeBulkCreate """ Updates attributes. @@ -18887,7 +19099,7 @@ type Mutation { """Policies of error handling. DEFAULT: REJECT_EVERYTHING""" errorPolicy: ErrorPolicyEnum - ): AttributeBulkUpdate @doc(category: "Attributes") @webhookEventsInfo(asyncEvents: [ATTRIBUTE_UPDATED, ATTRIBUTE_VALUE_CREATED, ATTRIBUTE_VALUE_DELETED], syncEvents: []) + ): AttributeBulkUpdate """ Creates/updates translations for an attribute. @@ -18903,7 +19115,7 @@ type Mutation { """Translation language code.""" languageCode: LanguageCodeEnum! - ): AttributeTranslate @doc(category: "Attributes") + ): AttributeTranslate """ Creates/updates translations for attributes. @@ -18916,7 +19128,7 @@ type Mutation { """List of attributes translations.""" translations: [AttributeBulkTranslateInput!]! - ): AttributeBulkTranslate @doc(category: "Attributes") + ): AttributeBulkTranslate """ Deletes attributes. @@ -18929,7 +19141,7 @@ type Mutation { attributeBulkDelete( """List of attribute IDs to delete.""" ids: [ID!]! - ): AttributeBulkDelete @doc(category: "Attributes") @webhookEventsInfo(asyncEvents: [ATTRIBUTE_DELETED], syncEvents: []) + ): AttributeBulkDelete """ Deletes values of attributes. @@ -18943,7 +19155,7 @@ type Mutation { attributeValueBulkDelete( """List of attribute value IDs to delete.""" ids: [ID!]! - ): AttributeValueBulkDelete @doc(category: "Attributes") @webhookEventsInfo(asyncEvents: [ATTRIBUTE_VALUE_DELETED, ATTRIBUTE_UPDATED], syncEvents: []) + ): AttributeValueBulkDelete """ Creates a value for an attribute. @@ -18960,7 +19172,7 @@ type Mutation { """Fields required to create an AttributeValue.""" input: AttributeValueCreateInput! - ): AttributeValueCreate @doc(category: "Attributes") @webhookEventsInfo(asyncEvents: [ATTRIBUTE_VALUE_CREATED, ATTRIBUTE_UPDATED], syncEvents: []) + ): AttributeValueCreate """ Deletes a value of an attribute. @@ -18977,7 +19189,7 @@ type Mutation { """ID of a value to delete.""" id: ID - ): AttributeValueDelete @doc(category: "Attributes") @webhookEventsInfo(asyncEvents: [ATTRIBUTE_VALUE_DELETED, ATTRIBUTE_UPDATED], syncEvents: []) + ): AttributeValueDelete """ Updates value of an attribute. @@ -18997,7 +19209,7 @@ type Mutation { """Fields required to update an AttributeValue.""" input: AttributeValueUpdateInput! - ): AttributeValueUpdate @doc(category: "Attributes") @webhookEventsInfo(asyncEvents: [ATTRIBUTE_VALUE_UPDATED, ATTRIBUTE_UPDATED], syncEvents: []) + ): AttributeValueUpdate """ Creates/updates translations for attribute values. @@ -19010,7 +19222,7 @@ type Mutation { """List of attribute values translations.""" translations: [AttributeValueBulkTranslateInput!]! - ): AttributeValueBulkTranslate @doc(category: "Attributes") + ): AttributeValueBulkTranslate """ Creates/updates translations for an attribute value. @@ -19026,7 +19238,7 @@ type Mutation { """Translation language code.""" languageCode: LanguageCodeEnum! - ): AttributeValueTranslate @doc(category: "Attributes") + ): AttributeValueTranslate """ Reorder the values of an attribute. @@ -19043,7 +19255,7 @@ type Mutation { """The list of reordering operations for given attribute values.""" moves: [ReorderInput!]! - ): AttributeReorderValues @doc(category: "Attributes") @webhookEventsInfo(asyncEvents: [ATTRIBUTE_VALUE_UPDATED, ATTRIBUTE_UPDATED], syncEvents: []) + ): AttributeReorderValues """ Creates a new app. Requires the following permissions: AUTHENTICATED_STAFF_USER and MANAGE_APPS. @@ -19054,7 +19266,7 @@ type Mutation { appCreate( """Fields required to create a new app.""" input: AppInput! - ): AppCreate @doc(category: "Apps") @webhookEventsInfo(asyncEvents: [APP_INSTALLED], syncEvents: []) + ): AppCreate """ Updates an existing app. @@ -19070,7 +19282,7 @@ type Mutation { """Fields required to update an existing app.""" input: AppInput! - ): AppUpdate @doc(category: "Apps") @webhookEventsInfo(asyncEvents: [APP_UPDATED], syncEvents: []) + ): AppUpdate """ Deletes an app. @@ -19083,7 +19295,7 @@ type Mutation { appDelete( """ID of an app to delete.""" id: ID! - ): AppDelete @doc(category: "Apps") @webhookEventsInfo(asyncEvents: [APP_DELETED], syncEvents: []) + ): AppDelete """ Creates a new token. @@ -19093,7 +19305,7 @@ type Mutation { appTokenCreate( """Fields required to create a new auth token.""" input: AppTokenInput! - ): AppTokenCreate @doc(category: "Apps") + ): AppTokenCreate """ Deletes an authentication token assigned to app. @@ -19103,13 +19315,13 @@ type Mutation { appTokenDelete( """ID of an auth token to delete.""" id: ID! - ): AppTokenDelete @doc(category: "Apps") + ): AppTokenDelete """Verify provided app token.""" appTokenVerify( """App token to verify.""" token: String! - ): AppTokenVerify @doc(category: "Apps") + ): AppTokenVerify """ Install new app by using app manifest. Requires the following permissions: AUTHENTICATED_STAFF_USER and MANAGE_APPS. @@ -19117,7 +19329,7 @@ type Mutation { appInstall( """Fields required to install a new app.""" input: AppInstallInput! - ): AppInstall @doc(category: "Apps") + ): AppInstall """ Retry failed installation of new app. @@ -19133,7 +19345,7 @@ type Mutation { """ID of failed installation.""" id: ID! - ): AppRetryInstall @doc(category: "Apps") @webhookEventsInfo(asyncEvents: [APP_INSTALLED], syncEvents: []) + ): AppRetryInstall """ Deletes failed installation. @@ -19143,7 +19355,7 @@ type Mutation { appDeleteFailedInstallation( """ID of failed installation to delete.""" id: ID! - ): AppDeleteFailedInstallation @doc(category: "Apps") + ): AppDeleteFailedInstallation """ Fetch and validate manifest. @@ -19153,7 +19365,7 @@ type Mutation { appFetchManifest( """URL to app's manifest in JSON format.""" manifestUrl: String! - ): AppFetchManifest @doc(category: "Apps") + ): AppFetchManifest """ Activate the app. @@ -19166,7 +19378,7 @@ type Mutation { appActivate( """ID of app to activate.""" id: ID! - ): AppActivate @doc(category: "Apps") @webhookEventsInfo(asyncEvents: [APP_STATUS_CHANGED], syncEvents: []) + ): AppActivate """ Deactivate the app. @@ -19179,7 +19391,7 @@ type Mutation { appDeactivate( """ID of app to deactivate.""" id: ID! - ): AppDeactivate @doc(category: "Apps") @webhookEventsInfo(asyncEvents: [APP_STATUS_CHANGED], syncEvents: []) + ): AppDeactivate """ Re-enable sync webhooks for provided app. Can be used to manually re-enable sync webhooks for the app before the cooldown period ends. @@ -19191,7 +19403,7 @@ type Mutation { appReenableSyncWebhooks( """The app ID to re-enable sync webhooks for.""" appId: ID! - ): AppReenableSyncWebhooks @doc(category: "Apps") + ): AppReenableSyncWebhooks """Create JWT token.""" tokenCreate( @@ -19205,7 +19417,7 @@ type Mutation { """Password of a user.""" password: String! - ): CreateToken @doc(category: "Authentication") + ): CreateToken """ Refresh JWT token. Mutation tries to take refreshToken from the input. If it fails it will try to take `refreshToken` from the http-only cookie `refreshToken`. `csrfToken` is required when `refreshToken` is provided as a cookie. @@ -19218,20 +19430,20 @@ type Mutation { """Refresh token.""" refreshToken: String - ): RefreshToken @doc(category: "Authentication") + ): RefreshToken """Verify JWT token.""" tokenVerify( """JWT token to validate.""" token: String! - ): VerifyToken @doc(category: "Authentication") + ): VerifyToken """ Deactivate all JWT tokens of the currently authenticated user. Requires one of the following permissions: AUTHENTICATED_USER. """ - tokensDeactivateAll: DeactivateAllUserTokens @doc(category: "Authentication") + tokensDeactivateAll: DeactivateAllUserTokens """Prepare external authentication URL for user by custom plugin.""" externalAuthenticationUrl( @@ -19240,7 +19452,7 @@ type Mutation { """The ID of the authentication plugin.""" pluginId: String! - ): ExternalAuthenticationUrl @doc(category: "Authentication") + ): ExternalAuthenticationUrl """Obtain external access tokens for user by custom plugin.""" externalObtainAccessTokens( @@ -19249,7 +19461,7 @@ type Mutation { """The ID of the authentication plugin.""" pluginId: String! - ): ExternalObtainAccessTokens @doc(category: "Authentication") + ): ExternalObtainAccessTokens """Refresh user's access by custom plugin.""" externalRefresh( @@ -19258,7 +19470,7 @@ type Mutation { """The ID of the authentication plugin.""" pluginId: String! - ): ExternalRefresh @doc(category: "Authentication") + ): ExternalRefresh """Logout user by custom plugin.""" externalLogout( @@ -19267,7 +19479,7 @@ type Mutation { """The ID of the authentication plugin.""" pluginId: String! - ): ExternalLogout @doc(category: "Authentication") + ): ExternalLogout """Verify external authentication data by plugin.""" externalVerify( @@ -19276,7 +19488,7 @@ type Mutation { """The ID of the authentication plugin.""" pluginId: String! - ): ExternalVerify @doc(category: "Authentication") + ): ExternalVerify """ Sends an email with the account password modification link. @@ -19288,7 +19500,7 @@ type Mutation { """ requestPasswordReset( """ - Slug of a channel which will be used to notify the user. It is needed for customers, if not provided, the notification may not happen. Please note that mutation will not fail if the channel is not provided. + Slug of a channel which will be used to notify the user. It is needed for customers, if not provided, the notification may not happen. Please note that mutation will not fail if the channel is not provided. """ channel: String @@ -19299,7 +19511,7 @@ type Mutation { URL of a view where users should be redirected to reset the password. URL in RFC 1808 format. """ redirectUrl: String! - ): RequestPasswordReset @doc(category: "Users") @webhookEventsInfo(asyncEvents: [NOTIFY_USER, ACCOUNT_SET_PASSWORD_REQUESTED, STAFF_SET_PASSWORD_REQUESTED], syncEvents: []) + ): RequestPasswordReset """ Sends a notification confirmation. @@ -19316,7 +19528,7 @@ type Mutation { """Base of frontend URL that will be needed to create confirmation URL.""" redirectUrl: String! - ): SendConfirmationEmail @doc(category: "Users") @webhookEventsInfo(asyncEvents: [NOTIFY_USER, ACCOUNT_CONFIRMATION_REQUESTED], syncEvents: []) + ): SendConfirmationEmail """ Confirm user account with token sent by email during registration. @@ -19330,7 +19542,7 @@ type Mutation { """A one-time token required to confirm the account.""" token: String! - ): ConfirmAccount @doc(category: "Users") @webhookEventsInfo(asyncEvents: [ACCOUNT_CONFIRMED], syncEvents: []) + ): ConfirmAccount """ Sets the user's password from the token sent by email using the RequestPasswordReset mutation. @@ -19344,7 +19556,7 @@ type Mutation { """A one-time token required to set the password.""" token: String! - ): SetPassword @doc(category: "Users") + ): SetPassword """ Change the password of the logged in user. @@ -19357,7 +19569,7 @@ type Mutation { """Current user password.""" oldPassword: String - ): PasswordChange @doc(category: "Users") + ): PasswordChange """ Request email change of the logged in user. @@ -19384,7 +19596,7 @@ type Mutation { URL of a view where users should be redirected to update the email address. URL in RFC 1808 format. """ redirectUrl: String! - ): RequestEmailChange @doc(category: "Users") @webhookEventsInfo(asyncEvents: [NOTIFY_USER, ACCOUNT_CHANGE_EMAIL_REQUESTED], syncEvents: []) + ): RequestEmailChange """ Confirm the email change of the logged-in user. @@ -19404,7 +19616,7 @@ type Mutation { """A one-time token required to change the email.""" token: String! - ): ConfirmEmailChange @doc(category: "Users") @webhookEventsInfo(asyncEvents: [CUSTOMER_UPDATED, NOTIFY_USER, ACCOUNT_EMAIL_CHANGED], syncEvents: []) + ): ConfirmEmailChange """ Create a new address for the customer. @@ -19430,7 +19642,7 @@ type Mutation { A type of address. If provided, the new address will be automatically assigned as the customer's default address of that type. """ type: AddressTypeEnum - ): AccountAddressCreate @doc(category: "Users") @webhookEventsInfo(asyncEvents: [CUSTOMER_UPDATED, ADDRESS_CREATED], syncEvents: []) + ): AccountAddressCreate """ Updates an address of the logged-in user. Requires one of the following permissions: MANAGE_USERS, IS_OWNER. @@ -19444,7 +19656,7 @@ type Mutation { """Fields required to update the address.""" input: AddressInput! - ): AccountAddressUpdate @doc(category: "Users") @webhookEventsInfo(asyncEvents: [ADDRESS_UPDATED], syncEvents: []) + ): AccountAddressUpdate """ Deletes an address of the logged-in user. Requires one of the following permissions: MANAGE_USERS, IS_OWNER. @@ -19455,7 +19667,7 @@ type Mutation { accountAddressDelete( """ID of the address to delete.""" id: ID! - ): AccountAddressDelete @doc(category: "Users") @webhookEventsInfo(asyncEvents: [ADDRESS_DELETED], syncEvents: []) + ): AccountAddressDelete """ Sets a default address for the authenticated user. @@ -19471,7 +19683,7 @@ type Mutation { """The type of address.""" type: AddressTypeEnum! - ): AccountSetDefaultAddress @doc(category: "Users") @webhookEventsInfo(asyncEvents: [CUSTOMER_UPDATED], syncEvents: []) + ): AccountSetDefaultAddress """ Register a new user. @@ -19484,7 +19696,7 @@ type Mutation { accountRegister( """Fields required to create a user.""" input: AccountRegisterInput! - ): AccountRegister @doc(category: "Users") @webhookEventsInfo(asyncEvents: [CUSTOMER_CREATED, NOTIFY_USER, ACCOUNT_CONFIRMATION_REQUESTED], syncEvents: []) + ): AccountRegister """ Updates the account of the logged-in user. @@ -19505,7 +19717,7 @@ type Mutation { """Fields required to update the account of the logged-in user.""" input: AccountInput! - ): AccountUpdate @doc(category: "Users") @webhookEventsInfo(asyncEvents: [CUSTOMER_UPDATED, CUSTOMER_METADATA_UPDATED], syncEvents: []) + ): AccountUpdate """ Sends an email with the account removal link for the logged-in user. @@ -19526,7 +19738,7 @@ type Mutation { URL of a view where users should be redirected to delete their account. URL in RFC 1808 format. """ redirectUrl: String! - ): AccountRequestDeletion @doc(category: "Users") @webhookEventsInfo(asyncEvents: [NOTIFY_USER, ACCOUNT_DELETE_REQUESTED], syncEvents: []) + ): AccountRequestDeletion """ Remove user account. @@ -19541,7 +19753,7 @@ type Mutation { A one-time token required to remove account. Sent by email using AccountRequestDeletion mutation. """ token: String! - ): AccountDelete @doc(category: "Users") @webhookEventsInfo(asyncEvents: [ACCOUNT_DELETED], syncEvents: []) + ): AccountDelete """ Creates user address. @@ -19557,7 +19769,7 @@ type Mutation { """ID of a user to create address for.""" userId: ID! - ): AddressCreate @doc(category: "Users") @webhookEventsInfo(asyncEvents: [ADDRESS_CREATED], syncEvents: []) + ): AddressCreate """ Updates an address. @@ -19573,7 +19785,7 @@ type Mutation { """Fields required to update the address.""" input: AddressInput! - ): AddressUpdate @doc(category: "Users") @webhookEventsInfo(asyncEvents: [ADDRESS_UPDATED], syncEvents: []) + ): AddressUpdate """ Deletes an address. @@ -19586,7 +19798,7 @@ type Mutation { addressDelete( """ID of the address to delete.""" id: ID! - ): AddressDelete @doc(category: "Users") @webhookEventsInfo(asyncEvents: [ADDRESS_DELETED], syncEvents: []) + ): AddressDelete """ Sets a default address for the given user. @@ -19605,7 +19817,7 @@ type Mutation { """ID of the user to change the address for.""" userId: ID! - ): AddressSetDefault @doc(category: "Users") @webhookEventsInfo(asyncEvents: [CUSTOMER_UPDATED], syncEvents: []) + ): AddressSetDefault """ Creates a new customer. @@ -19621,7 +19833,7 @@ type Mutation { customerCreate( """Fields required to create a customer.""" input: UserCreateInput! - ): CustomerCreate @doc(category: "Users") @webhookEventsInfo(asyncEvents: [CUSTOMER_CREATED, CUSTOMER_METADATA_UPDATED, NOTIFY_USER, ACCOUNT_SET_PASSWORD_REQUESTED], syncEvents: []) + ): CustomerCreate """ Updates an existing customer. @@ -19641,7 +19853,7 @@ type Mutation { """Fields required to update a customer.""" input: CustomerInput! - ): CustomerUpdate @doc(category: "Users") @webhookEventsInfo(asyncEvents: [CUSTOMER_UPDATED, CUSTOMER_METADATA_UPDATED], syncEvents: []) + ): CustomerUpdate """ Deletes a customer. @@ -19657,7 +19869,7 @@ type Mutation { """ID of a customer to delete.""" id: ID - ): CustomerDelete @doc(category: "Users") @webhookEventsInfo(asyncEvents: [CUSTOMER_DELETED], syncEvents: []) + ): CustomerDelete """ Deletes customers. @@ -19670,7 +19882,7 @@ type Mutation { customerBulkDelete( """List of user IDs to delete.""" ids: [ID!]! - ): CustomerBulkDelete @doc(category: "Users") @webhookEventsInfo(asyncEvents: [CUSTOMER_DELETED], syncEvents: []) + ): CustomerBulkDelete """ Updates customers. @@ -19687,7 +19899,7 @@ type Mutation { """Policies of error handling. DEFAULT: REJECT_EVERYTHING""" errorPolicy: ErrorPolicyEnum - ): CustomerBulkUpdate @doc(category: "Users") @webhookEventsInfo(asyncEvents: [CUSTOMER_UPDATED, CUSTOMER_METADATA_UPDATED], syncEvents: []) + ): CustomerBulkUpdate """ Creates a new staff user. Apps are not allowed to perform this mutation. @@ -19702,7 +19914,7 @@ type Mutation { staffCreate( """Fields required to create a staff user.""" input: StaffCreateInput! - ): StaffCreate @doc(category: "Users") @webhookEventsInfo(asyncEvents: [STAFF_CREATED, NOTIFY_USER, STAFF_SET_PASSWORD_REQUESTED], syncEvents: []) + ): StaffCreate """ Updates an existing staff user. Apps are not allowed to perform this mutation. @@ -19718,7 +19930,7 @@ type Mutation { """Fields required to update a staff user.""" input: StaffUpdateInput! - ): StaffUpdate @doc(category: "Users") @webhookEventsInfo(asyncEvents: [STAFF_UPDATED], syncEvents: []) + ): StaffUpdate """ Deletes a staff user. Apps are not allowed to perform this mutation. @@ -19731,7 +19943,7 @@ type Mutation { staffDelete( """ID of a staff user to delete.""" id: ID! - ): StaffDelete @doc(category: "Users") @webhookEventsInfo(asyncEvents: [STAFF_DELETED], syncEvents: []) + ): StaffDelete """ Deletes staff users. Apps are not allowed to perform this mutation. @@ -19744,7 +19956,7 @@ type Mutation { staffBulkDelete( """List of user IDs to delete.""" ids: [ID!]! - ): StaffBulkDelete @doc(category: "Users") @webhookEventsInfo(asyncEvents: [STAFF_DELETED], syncEvents: []) + ): StaffBulkDelete """ Create a user avatar. Only for staff members. This mutation must be sent as a `multipart` request. More detailed specs of the upload format can be found here: https://github.com/jaydenseric/graphql-multipart-request-spec @@ -19754,14 +19966,14 @@ type Mutation { userAvatarUpdate( """Represents an image file in a multipart request.""" image: Upload! - ): UserAvatarUpdate @doc(category: "Users") + ): UserAvatarUpdate """ Deletes a user avatar. Only for staff members. Requires one of the following permissions: AUTHENTICATED_STAFF_USER. """ - userAvatarDelete: UserAvatarDelete @doc(category: "Users") + userAvatarDelete: UserAvatarDelete """ Activate or deactivate users. @@ -19774,7 +19986,7 @@ type Mutation { """Determine if users will be set active or not.""" isActive: Boolean! - ): UserBulkSetActive @doc(category: "Users") + ): UserBulkSetActive """ Create new permission group. Apps are not allowed to perform this mutation. @@ -19787,7 +19999,7 @@ type Mutation { permissionGroupCreate( """Input fields to create permission group.""" input: PermissionGroupCreateInput! - ): PermissionGroupCreate @doc(category: "Users") @webhookEventsInfo(asyncEvents: [PERMISSION_GROUP_CREATED], syncEvents: []) + ): PermissionGroupCreate """ Update permission group. Apps are not allowed to perform this mutation. @@ -19803,7 +20015,7 @@ type Mutation { """Input fields to create permission group.""" input: PermissionGroupUpdateInput! - ): PermissionGroupUpdate @doc(category: "Users") @webhookEventsInfo(asyncEvents: [PERMISSION_GROUP_UPDATED], syncEvents: []) + ): PermissionGroupUpdate """ Delete permission group. Apps are not allowed to perform this mutation. @@ -19816,7 +20028,7 @@ type Mutation { permissionGroupDelete( """ID of the group to delete.""" id: ID! - ): PermissionGroupDelete @doc(category: "Users") @webhookEventsInfo(asyncEvents: [PERMISSION_GROUP_DELETED], syncEvents: []) + ): PermissionGroupDelete } """ @@ -19824,13 +20036,13 @@ Creates a new webhook subscription. Requires one of the following permissions: MANAGE_APPS, AUTHENTICATED_APP. """ -type WebhookCreate @doc(category: "Webhooks") { +type WebhookCreate { webhookErrors: [WebhookError!]! @deprecated(reason: "Use `errors` field instead.") errors: [WebhookError!]! webhook: Webhook } -type WebhookError @doc(category: "Webhooks") { +type WebhookError { """ Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. """ @@ -19843,7 +20055,7 @@ type WebhookError @doc(category: "Webhooks") { code: WebhookErrorCode! } -enum WebhookErrorCode @doc(category: "Webhooks") { +enum WebhookErrorCode { GRAPHQL_ERROR INVALID NOT_FOUND @@ -19858,15 +20070,19 @@ enum WebhookErrorCode @doc(category: "Webhooks") { INVALID_NOTIFY_WITH_SUBSCRIPTION } -input WebhookCreateInput @doc(category: "Webhooks") { +input WebhookCreateInput { """The name of the webhook.""" name: String """The url to receive the payload.""" targetUrl: String - """The events that webhook wants to subscribe.""" - events: [WebhookEventTypeEnum!] @deprecated(reason: "Use `asyncEvents` or `syncEvents` instead.") + """ + The events that webhook wants to subscribe. + + DEPRECATED: this field will be removed. Use `asyncEvents` or `syncEvents` instead. + """ + events: [WebhookEventTypeEnum!] """The asynchronous events that webhook wants to subscribe.""" asyncEvents: [WebhookEventTypeAsyncEnum!] @@ -19880,8 +20096,12 @@ input WebhookCreateInput @doc(category: "Webhooks") { """Determine if webhook will be set active or not.""" isActive: Boolean - """The secret key used to create a hash signature with each payload.""" - secretKey: String @deprecated(reason: "As of Saleor 3.5, webhook payloads default to signing using a verifiable JWS.") + """ + The secret key used to create a hash signature with each payload. + + DEPRECATED: this field will be removed. As of Saleor 3.5, webhook payloads default to signing using a verifiable JWS. + """ + secretKey: String """Subscription query used to define a webhook payload.""" query: String @@ -19897,7 +20117,7 @@ Deletes a webhook. Before the deletion, the webhook is deactivated to pause any Requires one of the following permissions: MANAGE_APPS, AUTHENTICATED_APP. """ -type WebhookDelete @doc(category: "Webhooks") { +type WebhookDelete { webhookErrors: [WebhookError!]! @deprecated(reason: "Use `errors` field instead.") errors: [WebhookError!]! webhook: Webhook @@ -19908,21 +20128,25 @@ Updates a webhook subscription. Requires one of the following permissions: MANAGE_APPS, AUTHENTICATED_APP. """ -type WebhookUpdate @doc(category: "Webhooks") { +type WebhookUpdate { webhookErrors: [WebhookError!]! @deprecated(reason: "Use `errors` field instead.") errors: [WebhookError!]! webhook: Webhook } -input WebhookUpdateInput @doc(category: "Webhooks") { +input WebhookUpdateInput { """The new name of the webhook.""" name: String """The url to receive the payload.""" targetUrl: String - """The events that webhook wants to subscribe.""" - events: [WebhookEventTypeEnum!] @deprecated(reason: "Use `asyncEvents` or `syncEvents` instead.") + """ + The events that webhook wants to subscribe. + + DEPRECATED: this field will be removed. Use `asyncEvents` or `syncEvents` instead. + """ + events: [WebhookEventTypeEnum!] """The asynchronous events that webhook wants to subscribe.""" asyncEvents: [WebhookEventTypeAsyncEnum!] @@ -19936,8 +20160,12 @@ input WebhookUpdateInput @doc(category: "Webhooks") { """Determine if webhook will be set active or not.""" isActive: Boolean - """Use to create a hash signature with each payload.""" - secretKey: String @deprecated(reason: "As of Saleor 3.5, webhook payloads default to signing using a verifiable JWS.") + """ + Use to create a hash signature with each payload. + + DEPRECATED: this field will be removed. As of Saleor 3.5, webhook payloads default to signing using a verifiable JWS. + """ + secretKey: String """Subscription query used to define a webhook payload.""" query: String @@ -19953,7 +20181,7 @@ Retries event delivery. Requires one of the following permissions: MANAGE_APPS. """ -type EventDeliveryRetry @doc(category: "Webhooks") { +type EventDeliveryRetry { """Event delivery.""" delivery: EventDelivery errors: [WebhookError!]! @@ -19964,13 +20192,13 @@ Performs a dry run of a webhook event. Supports a single event (the first, if mu Requires one of the following permissions: AUTHENTICATED_STAFF_USER. """ -type WebhookDryRun @doc(category: "Webhooks") { +type WebhookDryRun { """JSON payload, that would be sent out to webhook's target URL.""" payload: JSONString errors: [WebhookDryRunError!]! } -type WebhookDryRunError @doc(category: "Webhooks") { +type WebhookDryRunError { """ Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. """ @@ -19983,7 +20211,7 @@ type WebhookDryRunError @doc(category: "Webhooks") { code: WebhookDryRunErrorCode! } -enum WebhookDryRunErrorCode @doc(category: "Webhooks") { +enum WebhookDryRunErrorCode { GRAPHQL_ERROR NOT_FOUND INVALID_ID @@ -20000,12 +20228,12 @@ Trigger a webhook event. Supports a single event (the first, if multiple provide Requires one of the following permissions: AUTHENTICATED_STAFF_USER. """ -type WebhookTrigger @doc(category: "Webhooks") { +type WebhookTrigger { delivery: EventDelivery errors: [WebhookTriggerError!]! } -type WebhookTriggerError @doc(category: "Webhooks") { +type WebhookTriggerError { """ Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. """ @@ -20018,7 +20246,7 @@ type WebhookTriggerError @doc(category: "Webhooks") { code: WebhookTriggerErrorCode! } -enum WebhookTriggerErrorCode @doc(category: "Webhooks") { +enum WebhookTriggerErrorCode { GRAPHQL_ERROR NOT_FOUND INVALID_ID @@ -20036,13 +20264,13 @@ Creates a new warehouse. Requires one of the following permissions: MANAGE_PRODUCTS. """ -type WarehouseCreate @doc(category: "Products") { +type WarehouseCreate { warehouseErrors: [WarehouseError!]! @deprecated(reason: "Use `errors` field instead.") errors: [WarehouseError!]! warehouse: Warehouse } -type WarehouseError @doc(category: "Products") { +type WarehouseError { """ Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. """ @@ -20058,7 +20286,7 @@ type WarehouseError @doc(category: "Products") { shippingZones: [ID!] } -enum WarehouseErrorCode @doc(category: "Products") { +enum WarehouseErrorCode { ALREADY_EXISTS GRAPHQL_ERROR INVALID @@ -20067,7 +20295,7 @@ enum WarehouseErrorCode @doc(category: "Products") { UNIQUE } -input WarehouseCreateInput @doc(category: "Products") { +input WarehouseCreateInput { """Warehouse slug.""" slug: String @@ -20083,8 +20311,12 @@ input WarehouseCreateInput @doc(category: "Products") { """Address of the warehouse.""" address: AddressInput! - """Shipping zones supported by the warehouse.""" - shippingZones: [ID!] @deprecated(reason: "Providing the zone ids will raise a ValidationError.") + """ + Shipping zones supported by the warehouse. + + DEPRECATED: this field will be removed. Providing the zone ids will raise a ValidationError. + """ + shippingZones: [ID!] } """ @@ -20092,13 +20324,13 @@ Updates given warehouse. Requires one of the following permissions: MANAGE_PRODUCTS. """ -type WarehouseUpdate @doc(category: "Products") { +type WarehouseUpdate { warehouseErrors: [WarehouseError!]! @deprecated(reason: "Use `errors` field instead.") errors: [WarehouseError!]! warehouse: Warehouse } -input WarehouseUpdateInput @doc(category: "Products") { +input WarehouseUpdateInput { """Warehouse slug.""" slug: String @@ -20126,7 +20358,7 @@ Deletes selected warehouse. Requires one of the following permissions: MANAGE_PRODUCTS. """ -type WarehouseDelete @doc(category: "Products") { +type WarehouseDelete { warehouseErrors: [WarehouseError!]! @deprecated(reason: "Use `errors` field instead.") errors: [WarehouseError!]! warehouse: Warehouse @@ -20137,7 +20369,7 @@ Add shipping zone to given warehouse. Requires one of the following permissions: MANAGE_PRODUCTS. """ -type WarehouseShippingZoneAssign @doc(category: "Products") { +type WarehouseShippingZoneAssign { warehouseErrors: [WarehouseError!]! @deprecated(reason: "Use `errors` field instead.") errors: [WarehouseError!]! warehouse: Warehouse @@ -20148,7 +20380,7 @@ Remove shipping zone from given warehouse. Requires one of the following permissions: MANAGE_PRODUCTS. """ -type WarehouseShippingZoneUnassign @doc(category: "Products") { +type WarehouseShippingZoneUnassign { warehouseErrors: [WarehouseError!]! @deprecated(reason: "Use `errors` field instead.") errors: [WarehouseError!]! warehouse: Warehouse @@ -20159,12 +20391,12 @@ Creates a tax class. Requires one of the following permissions: MANAGE_TAXES. """ -type TaxClassCreate @doc(category: "Taxes") { +type TaxClassCreate { errors: [TaxClassCreateError!]! taxClass: TaxClass } -type TaxClassCreateError @doc(category: "Taxes") { +type TaxClassCreateError { """ Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. """ @@ -20180,13 +20412,13 @@ type TaxClassCreateError @doc(category: "Taxes") { countryCodes: [String!]! } -enum TaxClassCreateErrorCode @doc(category: "Taxes") { +enum TaxClassCreateErrorCode { GRAPHQL_ERROR INVALID NOT_FOUND } -input TaxClassCreateInput @doc(category: "Taxes") { +input TaxClassCreateInput { """Name of the tax class.""" name: String! @@ -20194,7 +20426,7 @@ input TaxClassCreateInput @doc(category: "Taxes") { createCountryRates: [CountryRateInput!] } -input CountryRateInput @doc(category: "Taxes") { +input CountryRateInput { """Country in which this rate applies.""" countryCode: CountryCode! @@ -20209,12 +20441,12 @@ Deletes a tax class. After deleting the tax class any products, product types or Requires one of the following permissions: MANAGE_TAXES. """ -type TaxClassDelete @doc(category: "Taxes") { +type TaxClassDelete { errors: [TaxClassDeleteError!]! taxClass: TaxClass } -type TaxClassDeleteError @doc(category: "Taxes") { +type TaxClassDeleteError { """ Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. """ @@ -20227,7 +20459,7 @@ type TaxClassDeleteError @doc(category: "Taxes") { code: TaxClassDeleteErrorCode! } -enum TaxClassDeleteErrorCode @doc(category: "Taxes") { +enum TaxClassDeleteErrorCode { GRAPHQL_ERROR INVALID NOT_FOUND @@ -20238,12 +20470,12 @@ Updates a tax class. Requires one of the following permissions: MANAGE_TAXES. """ -type TaxClassUpdate @doc(category: "Taxes") { +type TaxClassUpdate { errors: [TaxClassUpdateError!]! taxClass: TaxClass } -type TaxClassUpdateError @doc(category: "Taxes") { +type TaxClassUpdateError { """ Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. """ @@ -20259,14 +20491,14 @@ type TaxClassUpdateError @doc(category: "Taxes") { countryCodes: [String!]! } -enum TaxClassUpdateErrorCode @doc(category: "Taxes") { +enum TaxClassUpdateErrorCode { DUPLICATED_INPUT_ITEM GRAPHQL_ERROR INVALID NOT_FOUND } -input TaxClassUpdateInput @doc(category: "Taxes") { +input TaxClassUpdateInput { """Name of the tax class.""" name: String @@ -20281,7 +20513,7 @@ input TaxClassUpdateInput @doc(category: "Taxes") { removeCountryRates: [CountryCode!] } -input CountryRateUpdateInput @doc(category: "Taxes") { +input CountryRateUpdateInput { """Country in which this rate applies.""" countryCode: CountryCode! @@ -20296,12 +20528,12 @@ Updates tax configuration for a channel. Requires one of the following permissions: MANAGE_TAXES. """ -type TaxConfigurationUpdate @doc(category: "Taxes") { +type TaxConfigurationUpdate { errors: [TaxConfigurationUpdateError!]! taxConfiguration: TaxConfiguration } -type TaxConfigurationUpdateError @doc(category: "Taxes") { +type TaxConfigurationUpdateError { """ Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. """ @@ -20317,14 +20549,14 @@ type TaxConfigurationUpdateError @doc(category: "Taxes") { countryCodes: [String!]! } -enum TaxConfigurationUpdateErrorCode @doc(category: "Taxes") { +enum TaxConfigurationUpdateErrorCode { DUPLICATED_INPUT_ITEM GRAPHQL_ERROR INVALID NOT_FOUND } -input TaxConfigurationUpdateInput @doc(category: "Taxes") { +input TaxConfigurationUpdateInput { """Determines whether taxes are charged in the given channel.""" chargeTaxes: Boolean @@ -20362,7 +20594,7 @@ input TaxConfigurationUpdateInput @doc(category: "Taxes") { taxAppId: String } -input TaxConfigurationPerCountryInput @doc(category: "Taxes") { +input TaxConfigurationPerCountryInput { """Country in which this configuration applies.""" countryCode: CountryCode! @@ -20399,13 +20631,13 @@ Updates tax class rates for a specific country. Requires one of the following permissions: MANAGE_TAXES. """ -type TaxCountryConfigurationUpdate @doc(category: "Taxes") { +type TaxCountryConfigurationUpdate { """Updated tax class rates grouped by a country.""" taxCountryConfiguration: TaxCountryConfiguration errors: [TaxCountryConfigurationUpdateError!]! } -type TaxCountryConfigurationUpdateError @doc(category: "Taxes") { +type TaxCountryConfigurationUpdateError { """ Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. """ @@ -20421,7 +20653,7 @@ type TaxCountryConfigurationUpdateError @doc(category: "Taxes") { taxClassIds: [String!]! } -enum TaxCountryConfigurationUpdateErrorCode @doc(category: "Taxes") { +enum TaxCountryConfigurationUpdateErrorCode { GRAPHQL_ERROR INVALID NOT_FOUND @@ -20429,7 +20661,7 @@ enum TaxCountryConfigurationUpdateErrorCode @doc(category: "Taxes") { CANNOT_CREATE_NEGATIVE_RATE } -input TaxClassRateInput @doc(category: "Taxes") { +input TaxClassRateInput { """ID of a tax class for which to update the tax rate""" taxClassId: ID @@ -20442,13 +20674,13 @@ Remove all tax class rates for a specific country. Requires one of the following permissions: MANAGE_TAXES. """ -type TaxCountryConfigurationDelete @doc(category: "Taxes") { +type TaxCountryConfigurationDelete { """Updated tax class rates grouped by a country.""" taxCountryConfiguration: TaxCountryConfiguration errors: [TaxCountryConfigurationDeleteError!]! } -type TaxCountryConfigurationDeleteError @doc(category: "Taxes") { +type TaxCountryConfigurationDeleteError { """ Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. """ @@ -20461,7 +20693,7 @@ type TaxCountryConfigurationDeleteError @doc(category: "Taxes") { code: TaxCountryConfigurationDeleteErrorCode! } -enum TaxCountryConfigurationDeleteErrorCode @doc(category: "Taxes") { +enum TaxCountryConfigurationDeleteErrorCode { GRAPHQL_ERROR INVALID NOT_FOUND @@ -20472,14 +20704,14 @@ Exempt checkout or order from charging the taxes. When tax exemption is enabled, Requires one of the following permissions: MANAGE_TAXES. """ -type TaxExemptionManage @doc(category: "Taxes") { +type TaxExemptionManage { taxableObject: TaxSourceObject errors: [TaxExemptionManageError!]! } union TaxSourceObject = Checkout | Order -type TaxExemptionManageError @doc(category: "Taxes") { +type TaxExemptionManageError { """ Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. """ @@ -20492,7 +20724,7 @@ type TaxExemptionManageError @doc(category: "Taxes") { code: TaxExemptionManageErrorCode! } -enum TaxExemptionManageErrorCode @doc(category: "Taxes") { +enum TaxExemptionManageErrorCode { GRAPHQL_ERROR INVALID NOT_FOUND @@ -20507,7 +20739,7 @@ Requires one of the following permissions: MANAGE_PRODUCTS. Triggers the following webhook events: - PRODUCT_VARIANT_STOCK_UPDATED (async): A product variant stock details were updated. """ -type StockBulkUpdate @doc(category: "Products") @webhookEventsInfo(asyncEvents: [PRODUCT_VARIANT_STOCK_UPDATED], syncEvents: []) { +type StockBulkUpdate { """Returns how many objects were updated.""" count: Int! @@ -20516,7 +20748,7 @@ type StockBulkUpdate @doc(category: "Products") @webhookEventsInfo(asyncEvents: errors: [StockBulkUpdateError!]! } -type StockBulkResult @doc(category: "Products") { +type StockBulkResult { """Stock data.""" stock: Stock @@ -20524,7 +20756,7 @@ type StockBulkResult @doc(category: "Products") { errors: [StockBulkUpdateError!] } -type StockBulkUpdateError @doc(category: "Products") { +type StockBulkUpdateError { """ Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. """ @@ -20537,7 +20769,7 @@ type StockBulkUpdateError @doc(category: "Products") { code: StockBulkUpdateErrorCode! } -enum StockBulkUpdateErrorCode @doc(category: "Products") { +enum StockBulkUpdateErrorCode { GRAPHQL_ERROR INVALID NOT_FOUND @@ -20557,7 +20789,7 @@ enum ErrorPolicyEnum { REJECT_FAILED_ROWS } -input StockBulkUpdateInput @doc(category: "Products") { +input StockBulkUpdateInput { """Variant ID.""" variantId: ID @@ -20579,13 +20811,13 @@ Creates a new staff notification recipient. Requires one of the following permissions: MANAGE_SETTINGS. """ -type StaffNotificationRecipientCreate @doc(category: "Users") { +type StaffNotificationRecipientCreate { shopErrors: [ShopError!]! @deprecated(reason: "Use `errors` field instead.") errors: [ShopError!]! staffNotificationRecipient: StaffNotificationRecipient } -type ShopError @doc(category: "Shop") { +type ShopError { """ Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. """ @@ -20624,7 +20856,7 @@ Updates a staff notification recipient. Requires one of the following permissions: MANAGE_SETTINGS. """ -type StaffNotificationRecipientUpdate @doc(category: "Users") { +type StaffNotificationRecipientUpdate { shopErrors: [ShopError!]! @deprecated(reason: "Use `errors` field instead.") errors: [ShopError!]! staffNotificationRecipient: StaffNotificationRecipient @@ -20635,7 +20867,7 @@ Deletes staff notification recipient. Requires one of the following permissions: MANAGE_SETTINGS. """ -type StaffNotificationRecipientDelete @doc(category: "Users") { +type StaffNotificationRecipientDelete { shopErrors: [ShopError!]! @deprecated(reason: "Use `errors` field instead.") errors: [ShopError!]! staffNotificationRecipient: StaffNotificationRecipient @@ -20646,7 +20878,7 @@ Updates site domain of the shop. Requires one of the following permissions: MANAGE_SETTINGS. """ -type ShopDomainUpdate @doc(category: "Shop") { +type ShopDomainUpdate { """Updated shop.""" shop: Shop shopErrors: [ShopError!]! @deprecated(reason: "Use `errors` field instead.") @@ -20669,7 +20901,7 @@ Requires one of the following permissions: MANAGE_SETTINGS. Triggers the following webhook events: - SHOP_METADATA_UPDATED (async): Optionally triggered when public or private metadata is updated. """ -type ShopSettingsUpdate @doc(category: "Shop") @webhookEventsInfo(asyncEvents: [SHOP_METADATA_UPDATED], syncEvents: []) { +type ShopSettingsUpdate { """Updated shop.""" shop: Shop shopErrors: [ShopError!]! @deprecated(reason: "Use `errors` field instead.") @@ -20750,21 +20982,35 @@ input ShopSettingsInput { """ privateMetadata: [MetadataInput!] - """Include taxes in prices.""" - includeTaxesInPrices: Boolean @deprecated(reason: "Use `taxConfigurationUpdate` mutation to configure this setting per channel or country.") + """ + Include taxes in prices. + + DEPRECATED: this field will be removed. Use `taxConfigurationUpdate` mutation to configure this setting per channel or country. + """ + includeTaxesInPrices: Boolean - """Display prices with tax in store.""" - displayGrossPrices: Boolean @deprecated(reason: "Use `taxConfigurationUpdate` mutation to configure this setting per channel or country.") + """ + Display prices with tax in store. + + DEPRECATED: this field will be removed. Use `taxConfigurationUpdate` mutation to configure this setting per channel or country. + """ + displayGrossPrices: Boolean - """Charge taxes on shipping.""" - chargeTaxesOnShipping: Boolean @deprecated(reason: "To enable taxes for a shipping method, assign a tax class to the shipping method with `shippingPriceCreate` or `shippingPriceUpdate` mutations.") + """ + Charge taxes on shipping. + + DEPRECATED: this field will be removed. To enable taxes for a shipping method, assign a tax class to the shipping method with `shippingPriceCreate` or `shippingPriceUpdate` mutations. + """ + chargeTaxesOnShipping: Boolean """ Use legacy update webhook emission. When enabled, update webhooks (e.g. `customerUpdated`,`productVariantUpdated`) are sent even when only metadata changes. When disabled, update webhooks are not sent for metadata-only changes; only metadata-specific webhooks (e.g., `customerMetadataUpdated`, `productVariantMetadataUpdated`) are sent. Added in Saleor 3.22. + + DEPRECATED: this field will be removed. """ - useLegacyUpdateWebhookEmission: Boolean @deprecated + useLegacyUpdateWebhookEmission: Boolean } """ @@ -20772,7 +21018,7 @@ Fetch tax rates. Requires one of the following permissions: MANAGE_SETTINGS. """ -type ShopFetchTaxRates @doc(category: "Shop") { +type ShopFetchTaxRates { """Updated shop.""" shop: Shop shopErrors: [ShopError!]! @deprecated(reason: "Use `errors` field instead.") @@ -20784,7 +21030,7 @@ Creates/updates translations for shop settings. Requires one of the following permissions: MANAGE_TRANSLATIONS. """ -type ShopSettingsTranslate @doc(category: "Shop") { +type ShopSettingsTranslate { """Updated shop settings.""" shop: Shop translationErrors: [TranslationError!]! @deprecated(reason: "Use `errors` field instead.") @@ -20822,7 +21068,7 @@ Update the shop's address. If the `null` value is passed, the currently selected Requires one of the following permissions: MANAGE_SETTINGS. """ -type ShopAddressUpdate @doc(category: "Shop") { +type ShopAddressUpdate { """Updated shop.""" shop: Shop shopErrors: [ShopError!]! @deprecated(reason: "Use `errors` field instead.") @@ -20834,14 +21080,14 @@ Update shop order settings across all channels. Returns `orderSettings` for the Requires one of the following permissions: MANAGE_ORDERS. """ -type OrderSettingsUpdate @doc(category: "Orders") { +type OrderSettingsUpdate { """Order settings.""" orderSettings: OrderSettings orderSettingsErrors: [OrderSettingsError!]! @deprecated(reason: "Use `errors` field instead.") errors: [OrderSettingsError!]! } -type OrderSettingsError @doc(category: "Orders") { +type OrderSettingsError { """ Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. """ @@ -20854,11 +21100,11 @@ type OrderSettingsError @doc(category: "Orders") { code: OrderSettingsErrorCode! } -enum OrderSettingsErrorCode @doc(category: "Orders") { +enum OrderSettingsErrorCode { INVALID } -input OrderSettingsUpdateInput @doc(category: "Orders") { +input OrderSettingsUpdateInput { """ When disabled, all new orders from checkout will be marked as unconfirmed. When enabled orders from checkout will become unfulfilled immediately. By default set to True """ @@ -20875,13 +21121,13 @@ Update gift card settings. Requires one of the following permissions: MANAGE_GIFT_CARD. """ -type GiftCardSettingsUpdate @doc(category: "Gift cards") { +type GiftCardSettingsUpdate { """Gift card settings.""" giftCardSettings: GiftCardSettings errors: [GiftCardSettingsError!]! } -type GiftCardSettingsError @doc(category: "Gift cards") { +type GiftCardSettingsError { """ Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. """ @@ -20894,13 +21140,13 @@ type GiftCardSettingsError @doc(category: "Gift cards") { code: GiftCardSettingsErrorCode! } -enum GiftCardSettingsErrorCode @doc(category: "Gift cards") { +enum GiftCardSettingsErrorCode { INVALID REQUIRED GRAPHQL_ERROR } -input GiftCardSettingsUpdateInput @doc(category: "Gift cards") { +input GiftCardSettingsUpdateInput { """Defines gift card default expiry settings.""" expiryType: GiftCardSettingsExpiryTypeEnum @@ -20923,14 +21169,14 @@ Added in Saleor 3.22. Requires one of the following permissions: MANAGE_SETTINGS. """ -type RefundSettingsUpdate @doc(category: "Shop") { +type RefundSettingsUpdate { """Refund settings.""" refundSettings: RefundSettings! refundSettingsErrors: [RefundSettingsUpdateError!]! @deprecated(reason: "Use `errors` field instead.") errors: [RefundSettingsUpdateError!]! } -type RefundSettingsUpdateError @doc(category: "Shop") { +type RefundSettingsUpdateError { """ Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. """ @@ -20943,13 +21189,13 @@ type RefundSettingsUpdateError @doc(category: "Shop") { code: RefundSettingsErrorCode! } -enum RefundSettingsErrorCode @doc(category: "Shop") { +enum RefundSettingsErrorCode { INVALID REQUIRED GRAPHQL_ERROR } -input RefundSettingsUpdateInput @doc(category: "Shop") { +input RefundSettingsUpdateInput { """ The ID of a model type, that will be used to reference refund reasons. All models with of this type will be accepted as refund reasons. @@ -20965,14 +21211,14 @@ Added in Saleor 3.22. Requires one of the following permissions: MANAGE_SETTINGS. """ -type RefundReasonReferenceTypeClear @doc(category: "Orders") { +type RefundReasonReferenceTypeClear { """Refund settings.""" refundSettings: RefundSettings! refundSettingsErrors: [RefundReasonReferenceTypeClearError!]! @deprecated(reason: "Use `errors` field instead.") errors: [RefundReasonReferenceTypeClearError!]! } -type RefundReasonReferenceTypeClearError @doc(category: "Shop") { +type RefundReasonReferenceTypeClearError { """ Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. """ @@ -20990,14 +21236,14 @@ Manage shipping method's availability in channels. Requires one of the following permissions: MANAGE_SHIPPING. """ -type ShippingMethodChannelListingUpdate @doc(category: "Shipping") { +type ShippingMethodChannelListingUpdate { """An updated shipping method instance.""" shippingMethod: ShippingMethodType shippingErrors: [ShippingError!]! @deprecated(reason: "Use `errors` field instead.") errors: [ShippingError!]! } -type ShippingError @doc(category: "Shipping") { +type ShippingError { """ Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. """ @@ -21016,7 +21262,7 @@ type ShippingError @doc(category: "Shipping") { channels: [ID!] } -enum ShippingErrorCode @doc(category: "Shipping") { +enum ShippingErrorCode { ALREADY_EXISTS GRAPHQL_ERROR INVALID @@ -21027,7 +21273,7 @@ enum ShippingErrorCode @doc(category: "Shipping") { DUPLICATED_INPUT_ITEM } -input ShippingMethodChannelListingInput @doc(category: "Shipping") { +input ShippingMethodChannelListingInput { """List of channels to which the shipping method should be assigned.""" addChannels: [ShippingMethodChannelListingAddInput!] @@ -21035,7 +21281,7 @@ input ShippingMethodChannelListingInput @doc(category: "Shipping") { removeChannels: [ID!] } -input ShippingMethodChannelListingAddInput @doc(category: "Shipping") { +input ShippingMethodChannelListingAddInput { """ID of a channel.""" channelId: ID! @@ -21054,7 +21300,7 @@ Creates a new shipping price. Requires one of the following permissions: MANAGE_SHIPPING. """ -type ShippingPriceCreate @doc(category: "Shipping") { +type ShippingPriceCreate { """A shipping zone to which the shipping method belongs.""" shippingZone: ShippingZone shippingMethod: ShippingMethodType @@ -21062,7 +21308,7 @@ type ShippingPriceCreate @doc(category: "Shipping") { errors: [ShippingError!]! } -input ShippingPriceInput @doc(category: "Shipping") { +input ShippingPriceInput { """Name of the shipping method.""" name: String @@ -21104,7 +21350,7 @@ input ShippingPriceInput @doc(category: "Shipping") { scalar WeightScalar -input ShippingPostalCodeRulesCreateInputRange @doc(category: "Shipping") { +input ShippingPostalCodeRulesCreateInputRange { """Start range of the postal code.""" start: String! @@ -21117,7 +21363,7 @@ Deletes a shipping price. Requires one of the following permissions: MANAGE_SHIPPING. """ -type ShippingPriceDelete @doc(category: "Shipping") { +type ShippingPriceDelete { """A shipping method to delete.""" shippingMethod: ShippingMethodType @@ -21132,7 +21378,7 @@ Deletes shipping prices. Requires one of the following permissions: MANAGE_SHIPPING. """ -type ShippingPriceBulkDelete @doc(category: "Shipping") { +type ShippingPriceBulkDelete { """Returns how many objects were affected.""" count: Int! shippingErrors: [ShippingError!]! @deprecated(reason: "Use `errors` field instead.") @@ -21144,7 +21390,7 @@ Updates a new shipping price. Requires one of the following permissions: MANAGE_SHIPPING. """ -type ShippingPriceUpdate @doc(category: "Shipping") { +type ShippingPriceUpdate { """A shipping zone to which the shipping method belongs.""" shippingZone: ShippingZone shippingMethod: ShippingMethodType @@ -21157,7 +21403,7 @@ Creates/updates translations for a shipping method. Requires one of the following permissions: MANAGE_TRANSLATIONS. """ -type ShippingPriceTranslate @doc(category: "Shipping") { +type ShippingPriceTranslate { translationErrors: [TranslationError!]! @deprecated(reason: "Use `errors` field instead.") errors: [TranslationError!]! shippingMethod: ShippingMethodType @@ -21179,14 +21425,14 @@ Exclude products from shipping price. Requires one of the following permissions: MANAGE_SHIPPING. """ -type ShippingPriceExcludeProducts @doc(category: "Shipping") { +type ShippingPriceExcludeProducts { """A shipping method with new list of excluded products.""" shippingMethod: ShippingMethodType shippingErrors: [ShippingError!]! @deprecated(reason: "Use `errors` field instead.") errors: [ShippingError!]! } -input ShippingPriceExcludeProductsInput @doc(category: "Shipping") { +input ShippingPriceExcludeProductsInput { """List of products which will be excluded.""" products: [ID!]! } @@ -21196,7 +21442,7 @@ Remove product from excluded list for shipping price. Requires one of the following permissions: MANAGE_SHIPPING. """ -type ShippingPriceRemoveProductFromExclude @doc(category: "Shipping") { +type ShippingPriceRemoveProductFromExclude { """A shipping method with new list of excluded products.""" shippingMethod: ShippingMethodType shippingErrors: [ShippingError!]! @deprecated(reason: "Use `errors` field instead.") @@ -21208,13 +21454,13 @@ Creates a new shipping zone. Requires one of the following permissions: MANAGE_SHIPPING. """ -type ShippingZoneCreate @doc(category: "Shipping") { +type ShippingZoneCreate { shippingErrors: [ShippingError!]! @deprecated(reason: "Use `errors` field instead.") errors: [ShippingError!]! shippingZone: ShippingZone } -input ShippingZoneCreateInput @doc(category: "Shipping") { +input ShippingZoneCreateInput { """Shipping zone's name. Visible only to the staff.""" name: String @@ -21241,7 +21487,7 @@ Deletes a shipping zone. Requires one of the following permissions: MANAGE_SHIPPING. """ -type ShippingZoneDelete @doc(category: "Shipping") { +type ShippingZoneDelete { shippingErrors: [ShippingError!]! @deprecated(reason: "Use `errors` field instead.") errors: [ShippingError!]! shippingZone: ShippingZone @@ -21252,7 +21498,7 @@ Deletes shipping zones. Requires one of the following permissions: MANAGE_SHIPPING. """ -type ShippingZoneBulkDelete @doc(category: "Shipping") { +type ShippingZoneBulkDelete { """Returns how many objects were affected.""" count: Int! shippingErrors: [ShippingError!]! @deprecated(reason: "Use `errors` field instead.") @@ -21264,13 +21510,13 @@ Updates a new shipping zone. Requires one of the following permissions: MANAGE_SHIPPING. """ -type ShippingZoneUpdate @doc(category: "Shipping") { +type ShippingZoneUpdate { shippingErrors: [ShippingError!]! @deprecated(reason: "Use `errors` field instead.") errors: [ShippingError!]! shippingZone: ShippingZone } -input ShippingZoneUpdateInput @doc(category: "Shipping") { +input ShippingZoneUpdateInput { """Shipping zone's name. Visible only to the staff.""" name: String @@ -21303,14 +21549,14 @@ Assign attributes to a given product type. Requires one of the following permissions: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES. """ -type ProductAttributeAssign @doc(category: "Products") { +type ProductAttributeAssign { """The updated product type.""" productType: ProductType productErrors: [ProductError!]! @deprecated(reason: "Use `errors` field instead.") errors: [ProductError!]! } -type ProductError @doc(category: "Products") { +type ProductError { """ Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. """ @@ -21329,7 +21575,7 @@ type ProductError @doc(category: "Products") { values: [ID!] } -enum ProductErrorCode @doc(category: "Products") { +enum ProductErrorCode { ALREADY_EXISTS ATTRIBUTE_ALREADY_ASSIGNED ATTRIBUTE_CANNOT_BE_ASSIGNED @@ -21350,9 +21596,11 @@ enum ProductErrorCode @doc(category: "Products") { PRODUCT_NOT_ASSIGNED_TO_CHANNEL UNSUPPORTED_MEDIA_PROVIDER PREORDER_VARIANT_CANNOT_BE_DEACTIVATED + INVALID_FILE_TYPE + UNSUPPORTED_MIME_TYPE } -input ProductAttributeAssignInput @doc(category: "Products") { +input ProductAttributeAssignInput { """The ID of the attribute to assign.""" id: ID! @@ -21365,7 +21613,7 @@ input ProductAttributeAssignInput @doc(category: "Products") { variantSelection: Boolean } -enum ProductAttributeType @doc(category: "Products") { +enum ProductAttributeType { PRODUCT VARIANT } @@ -21375,14 +21623,14 @@ Update attributes assigned to product variant for given product type. Requires one of the following permissions: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES. """ -type ProductAttributeAssignmentUpdate @doc(category: "Products") { +type ProductAttributeAssignmentUpdate { """The updated product type.""" productType: ProductType productErrors: [ProductError!]! @deprecated(reason: "Use `errors` field instead.") errors: [ProductError!]! } -input ProductAttributeAssignmentUpdateInput @doc(category: "Products") { +input ProductAttributeAssignmentUpdateInput { """The ID of the attribute to assign.""" id: ID! @@ -21397,7 +21645,7 @@ Un-assign attributes from a given product type. Requires one of the following permissions: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES. """ -type ProductAttributeUnassign @doc(category: "Products") { +type ProductAttributeUnassign { """The updated product type.""" productType: ProductType productErrors: [ProductError!]! @deprecated(reason: "Use `errors` field instead.") @@ -21409,13 +21657,13 @@ Creates a new category. Requires one of the following permissions: MANAGE_PRODUCTS. """ -type CategoryCreate @doc(category: "Products") { +type CategoryCreate { productErrors: [ProductError!]! @deprecated(reason: "Use `errors` field instead.") errors: [ProductError!]! category: Category } -input CategoryInput @doc(category: "Products") { +input CategoryInput { """ Category description. @@ -21471,7 +21719,7 @@ Deletes a category. Requires one of the following permissions: MANAGE_PRODUCTS. """ -type CategoryDelete @doc(category: "Products") { +type CategoryDelete { productErrors: [ProductError!]! @deprecated(reason: "Use `errors` field instead.") errors: [ProductError!]! category: Category @@ -21482,7 +21730,7 @@ Deletes categories. Requires one of the following permissions: MANAGE_PRODUCTS. """ -type CategoryBulkDelete @doc(category: "Products") { +type CategoryBulkDelete { """Returns how many objects were affected.""" count: Int! productErrors: [ProductError!]! @deprecated(reason: "Use `errors` field instead.") @@ -21494,7 +21742,7 @@ Updates a category. Requires one of the following permissions: MANAGE_PRODUCTS. """ -type CategoryUpdate @doc(category: "Products") { +type CategoryUpdate { productErrors: [ProductError!]! @deprecated(reason: "Use `errors` field instead.") errors: [ProductError!]! category: Category @@ -21505,7 +21753,7 @@ Creates/updates translations for a category. Requires one of the following permissions: MANAGE_TRANSLATIONS. """ -type CategoryTranslate @doc(category: "Products") { +type CategoryTranslate { translationErrors: [TranslationError!]! @deprecated(reason: "Use `errors` field instead.") errors: [TranslationError!]! category: Category @@ -21530,14 +21778,14 @@ Adds products to a collection. Requires one of the following permissions: MANAGE_PRODUCTS. """ -type CollectionAddProducts @doc(category: "Products") { +type CollectionAddProducts { """Collection to which products will be added.""" collection: Collection collectionErrors: [CollectionError!]! @deprecated(reason: "Use `errors` field instead.") errors: [CollectionError!]! } -type CollectionError @doc(category: "Products") { +type CollectionError { """ Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. """ @@ -21553,7 +21801,7 @@ type CollectionError @doc(category: "Products") { code: CollectionErrorCode! } -enum CollectionErrorCode @doc(category: "Products") { +enum CollectionErrorCode { DUPLICATED_INPUT_ITEM GRAPHQL_ERROR INVALID @@ -21568,13 +21816,13 @@ Creates a new collection. Requires one of the following permissions: MANAGE_PRODUCTS. """ -type CollectionCreate @doc(category: "Products") { +type CollectionCreate { collectionErrors: [CollectionError!]! @deprecated(reason: "Use `errors` field instead.") errors: [CollectionError!]! collection: Collection } -input CollectionCreateInput @doc(category: "Products") { +input CollectionCreateInput { """Informs whether a collection is published.""" isPublished: Boolean @@ -21600,8 +21848,12 @@ input CollectionCreateInput @doc(category: "Products") { """Search engine optimization fields.""" seo: SeoInput - """Publication date. ISO 8601 standard.""" - publicationDate: Date @deprecated + """ + Publication date. ISO 8601 standard. + + DEPRECATED: this field will be removed. + """ + publicationDate: Date """ Fields required to update the collection metadata. Can be read by any API client authorized to read the object it's attached to. @@ -21626,7 +21878,7 @@ Deletes a collection. Requires one of the following permissions: MANAGE_PRODUCTS. """ -type CollectionDelete @doc(category: "Products") { +type CollectionDelete { collectionErrors: [CollectionError!]! @deprecated(reason: "Use `errors` field instead.") errors: [CollectionError!]! collection: Collection @@ -21637,14 +21889,14 @@ Reorder the products of a collection. Requires one of the following permissions: MANAGE_PRODUCTS. """ -type CollectionReorderProducts @doc(category: "Products") { +type CollectionReorderProducts { """Collection from which products are reordered.""" collection: Collection collectionErrors: [CollectionError!]! @deprecated(reason: "Use `errors` field instead.") errors: [CollectionError!]! } -input MoveProductInput @doc(category: "Products") { +input MoveProductInput { """The ID of the product to move.""" productId: ID! @@ -21659,7 +21911,7 @@ Deletes collections. Requires one of the following permissions: MANAGE_PRODUCTS. """ -type CollectionBulkDelete @doc(category: "Products") { +type CollectionBulkDelete { """Returns how many objects were affected.""" count: Int! collectionErrors: [CollectionError!]! @deprecated(reason: "Use `errors` field instead.") @@ -21671,7 +21923,7 @@ Remove products from a collection. Requires one of the following permissions: MANAGE_PRODUCTS. """ -type CollectionRemoveProducts @doc(category: "Products") { +type CollectionRemoveProducts { """Collection from which products will be removed.""" collection: Collection collectionErrors: [CollectionError!]! @deprecated(reason: "Use `errors` field instead.") @@ -21683,13 +21935,13 @@ Updates a collection. Requires one of the following permissions: MANAGE_PRODUCTS. """ -type CollectionUpdate @doc(category: "Products") { +type CollectionUpdate { collectionErrors: [CollectionError!]! @deprecated(reason: "Use `errors` field instead.") errors: [CollectionError!]! collection: Collection } -input CollectionInput @doc(category: "Products") { +input CollectionInput { """Informs whether a collection is published.""" isPublished: Boolean @@ -21715,8 +21967,12 @@ input CollectionInput @doc(category: "Products") { """Search engine optimization fields.""" seo: SeoInput - """Publication date. ISO 8601 standard.""" - publicationDate: Date @deprecated + """ + Publication date. ISO 8601 standard. + + DEPRECATED: this field will be removed. + """ + publicationDate: Date """ Fields required to update the collection metadata. Can be read by any API client authorized to read the object it's attached to. @@ -21738,7 +21994,7 @@ Creates/updates translations for a collection. Requires one of the following permissions: MANAGE_TRANSLATIONS. """ -type CollectionTranslate @doc(category: "Products") { +type CollectionTranslate { translationErrors: [TranslationError!]! @deprecated(reason: "Use `errors` field instead.") errors: [TranslationError!]! collection: Collection @@ -21749,14 +22005,14 @@ Manage collection's availability in channels. Requires one of the following permissions: MANAGE_PRODUCTS. """ -type CollectionChannelListingUpdate @doc(category: "Products") { +type CollectionChannelListingUpdate { """An updated collection instance.""" collection: Collection collectionChannelListingErrors: [CollectionChannelListingError!]! @deprecated(reason: "Use `errors` field instead.") errors: [CollectionChannelListingError!]! } -type CollectionChannelListingError @doc(category: "Products") { +type CollectionChannelListingError { """ Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. """ @@ -21778,7 +22034,7 @@ type CollectionChannelListingError @doc(category: "Products") { channels: [ID!] } -input CollectionChannelListingUpdateInput @doc(category: "Products") { +input CollectionChannelListingUpdateInput { """List of channels to which the collection should be assigned.""" addChannels: [PublishableChannelListingInput!] @@ -21786,15 +22042,19 @@ input CollectionChannelListingUpdateInput @doc(category: "Products") { removeChannels: [ID!] } -input PublishableChannelListingInput @doc(category: "Products") { +input PublishableChannelListingInput { """ID of a channel.""" channelId: ID! """Determines if object is visible to customers.""" isPublished: Boolean - """Publication date. ISO 8601 standard.""" - publicationDate: Date @deprecated(reason: "Use `publishedAt` field instead.") + """ + Publication date. ISO 8601 standard. + + DEPRECATED: this field will be removed. Use `publishedAt` field instead. + """ + publicationDate: Date """Publication date time. ISO 8601 standard.""" publishedAt: DateTime @@ -21805,21 +22065,25 @@ Creates a new product. Requires one of the following permissions: MANAGE_PRODUCTS. """ -type ProductCreate @doc(category: "Products") { +type ProductCreate { productErrors: [ProductError!]! @deprecated(reason: "Use `errors` field instead.") errors: [ProductError!]! product: Product } -input ProductCreateInput @doc(category: "Products") { +input ProductCreateInput { """List of attributes.""" attributes: [AttributeValueInput!] """ID of the product's category.""" category: ID - """Determine if taxes are being charged for the product.""" - chargeTaxes: Boolean @deprecated(reason: "Use `Channel.taxConfiguration` to configure whether tax collection is enabled.") + """ + Determine if taxes are being charged for the product. + + DEPRECATED: this field will be removed. Use `Channel.taxConfiguration` to configure whether tax collection is enabled. + """ + chargeTaxes: Boolean """List of IDs of collections that the product belongs to.""" collections: [ID!] @@ -21842,8 +22106,12 @@ input ProductCreateInput @doc(category: "Products") { """ taxClass: ID - """Tax rate for enabled tax gateway.""" - taxCode: String @deprecated(reason: "Use tax classes to control the tax calculation for a product. If taxCode is provided, Saleor will try to find a tax class with given code (codes are stored in metadata) and assign it. If no tax class is found, it would be created and assigned.") + """ + Tax rate for enabled tax gateway. + + DEPRECATED: this field will be removed. Use tax classes to control the tax calculation for a product. If taxCode is provided, Saleor will try to find a tax class with given code (codes are stored in metadata) and assign it. If no tax class is found, it would be created and assigned. + """ + taxCode: String """Search engine optimization fields.""" seo: SeoInput @@ -21875,7 +22143,7 @@ input ProductCreateInput @doc(category: "Products") { productType: ID! } -input AttributeValueInput @doc(category: "Attributes") { +input AttributeValueInput { """ID of the selected attribute.""" id: ID @@ -21883,9 +22151,11 @@ input AttributeValueInput @doc(category: "Attributes") { externalReference: String """ - The value or slug of an attribute to resolve. If the passed value is non-existent, it will be created. + The value or slug of an attribute to resolve. If the passed value is non-existent, it will be created. + + DEPRECATED: this field will be removed. """ - values: [String!] @deprecated + values: [String!] """Attribute value ID or external reference.""" dropdown: AttributeValueSelectableTypeInput @@ -21938,7 +22208,7 @@ Represents attribute value. 3. If value is provided, then attribute value will be resolved by value. If this attribute value doesn't exist, then it will be created. 4. If externalReference and value is provided then new attribute value will be created. """ -input AttributeValueSelectableTypeInput @doc(category: "Attributes") { +input AttributeValueSelectableTypeInput { """ID of an attribute value.""" id: ID @@ -21956,7 +22226,7 @@ Deletes a product. Requires one of the following permissions: MANAGE_PRODUCTS. """ -type ProductDelete @doc(category: "Products") { +type ProductDelete { productErrors: [ProductError!]! @deprecated(reason: "Use `errors` field instead.") errors: [ProductError!]! product: Product @@ -21967,7 +22237,7 @@ Creates products. Requires one of the following permissions: MANAGE_PRODUCTS. """ -type ProductBulkCreate @doc(category: "Products") { +type ProductBulkCreate { """Returns how many objects were created.""" count: Int! @@ -21976,7 +22246,7 @@ type ProductBulkCreate @doc(category: "Products") { errors: [ProductBulkCreateError!]! } -type ProductBulkResult @doc(category: "Products") { +type ProductBulkResult { """Product data.""" product: Product @@ -21984,7 +22254,7 @@ type ProductBulkResult @doc(category: "Products") { errors: [ProductBulkCreateError!] } -type ProductBulkCreateError @doc(category: "Products") { +type ProductBulkCreateError { """ Path to field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. """ @@ -22009,7 +22279,7 @@ type ProductBulkCreateError @doc(category: "Products") { channels: [ID!] } -enum ProductBulkCreateErrorCode @doc(category: "Products") { +enum ProductBulkCreateErrorCode { ATTRIBUTE_ALREADY_ASSIGNED ATTRIBUTE_CANNOT_BE_ASSIGNED ATTRIBUTE_VARIANTS_DISABLED @@ -22027,15 +22297,19 @@ enum ProductBulkCreateErrorCode @doc(category: "Products") { UNSUPPORTED_MEDIA_PROVIDER } -input ProductBulkCreateInput @doc(category: "Products") { +input ProductBulkCreateInput { """List of attributes.""" attributes: [AttributeValueInput!] """ID of the product's category.""" category: ID - """Determine if taxes are being charged for the product.""" - chargeTaxes: Boolean @deprecated(reason: "Use `Channel.taxConfiguration` to configure whether tax collection is enabled.") + """ + Determine if taxes are being charged for the product. + + DEPRECATED: this field will be removed. Use `Channel.taxConfiguration` to configure whether tax collection is enabled. + """ + chargeTaxes: Boolean """List of IDs of collections that the product belongs to.""" collections: [ID!] @@ -22058,8 +22332,12 @@ input ProductBulkCreateInput @doc(category: "Products") { """ taxClass: ID - """Tax rate for enabled tax gateway.""" - taxCode: String @deprecated(reason: "Use tax classes to control the tax calculation for a product. If taxCode is provided, Saleor will try to find a tax class with given code (codes are stored in metadata) and assign it. If no tax class is found, it would be created and assigned.") + """ + Tax rate for enabled tax gateway. + + DEPRECATED: this field will be removed. Use tax classes to control the tax calculation for a product. If taxCode is provided, Saleor will try to find a tax class with given code (codes are stored in metadata) and assign it. If no tax class is found, it would be created and assigned. + """ + taxCode: String """Search engine optimization fields.""" seo: SeoInput @@ -22111,7 +22389,7 @@ input MediaInput { mediaUrl: String } -input ProductChannelListingCreateInput @doc(category: "Products") { +input ProductChannelListingCreateInput { """ID of a channel.""" channelId: ID! @@ -22137,7 +22415,7 @@ input ProductChannelListingCreateInput @doc(category: "Products") { availableForPurchaseAt: DateTime } -input ProductVariantBulkCreateInput @doc(category: "Products") { +input ProductVariantBulkCreateInput { """List of attributes specific to this variant.""" attributes: [BulkAttributeValueInput!]! @@ -22187,7 +22465,7 @@ input ProductVariantBulkCreateInput @doc(category: "Products") { channelListings: [ProductVariantChannelListingAddInput!] } -input BulkAttributeValueInput @doc(category: "Products") { +input BulkAttributeValueInput { """ID of the selected attribute.""" id: ID @@ -22196,8 +22474,10 @@ input BulkAttributeValueInput @doc(category: "Products") { """ The value or slug of an attribute to resolve. If the passed value is non-existent, it will be created. + + DEPRECATED: this field will be removed. """ - values: [String!] @deprecated + values: [String!] """Attribute value ID.""" dropdown: AttributeValueSelectableTypeInput @@ -22245,7 +22525,7 @@ input BulkAttributeValueInput @doc(category: "Products") { dateTime: DateTime } -input PreorderSettingsInput @doc(category: "Products") { +input PreorderSettingsInput { """The global threshold for preorder variant.""" globalThreshold: Int @@ -22253,7 +22533,7 @@ input PreorderSettingsInput @doc(category: "Products") { endDate: DateTime } -input StockInput @doc(category: "Products") { +input StockInput { """Warehouse in which stock is located.""" warehouse: ID! @@ -22261,7 +22541,7 @@ input StockInput @doc(category: "Products") { quantity: Int! } -input ProductVariantChannelListingAddInput @doc(category: "Products") { +input ProductVariantChannelListingAddInput { """ID of a channel.""" channelId: ID! @@ -22287,7 +22567,7 @@ Deletes products. Requires one of the following permissions: MANAGE_PRODUCTS. """ -type ProductBulkDelete @doc(category: "Products") { +type ProductBulkDelete { """Returns how many objects were affected.""" count: Int! productErrors: [ProductError!]! @deprecated(reason: "Use `errors` field instead.") @@ -22299,21 +22579,25 @@ Updates an existing product. Requires one of the following permissions: MANAGE_PRODUCTS. """ -type ProductUpdate @doc(category: "Products") { +type ProductUpdate { productErrors: [ProductError!]! @deprecated(reason: "Use `errors` field instead.") errors: [ProductError!]! product: Product } -input ProductInput @doc(category: "Products") { +input ProductInput { """List of attributes.""" attributes: [AttributeValueInput!] """ID of the product's category.""" category: ID - """Determine if taxes are being charged for the product.""" - chargeTaxes: Boolean @deprecated(reason: "Use `Channel.taxConfiguration` to configure whether tax collection is enabled.") + """ + Determine if taxes are being charged for the product. + + DEPRECATED: this field will be removed. Use `Channel.taxConfiguration` to configure whether tax collection is enabled. + """ + chargeTaxes: Boolean """List of IDs of collections that the product belongs to.""" collections: [ID!] @@ -22336,8 +22620,12 @@ input ProductInput @doc(category: "Products") { """ taxClass: ID - """Tax rate for enabled tax gateway.""" - taxCode: String @deprecated(reason: "Use tax classes to control the tax calculation for a product. If taxCode is provided, Saleor will try to find a tax class with given code (codes are stored in metadata) and assign it. If no tax class is found, it would be created and assigned.") + """ + Tax rate for enabled tax gateway. + + DEPRECATED: this field will be removed. Use tax classes to control the tax calculation for a product. If taxCode is provided, Saleor will try to find a tax class with given code (codes are stored in metadata) and assign it. If no tax class is found, it would be created and assigned. + """ + taxCode: String """Search engine optimization fields.""" seo: SeoInput @@ -22375,7 +22663,7 @@ Triggers the following webhook events: - TRANSLATION_CREATED (async): Called when a translation was created. - TRANSLATION_UPDATED (async): Called when a translation was updated. """ -type ProductBulkTranslate @doc(category: "Products") @webhookEventsInfo(asyncEvents: [TRANSLATION_CREATED, TRANSLATION_UPDATED], syncEvents: []) { +type ProductBulkTranslate { """Returns how many translations were created/updated.""" count: Int! @@ -22384,7 +22672,7 @@ type ProductBulkTranslate @doc(category: "Products") @webhookEventsInfo(asyncEve errors: [ProductBulkTranslateError!]! } -type ProductBulkTranslateResult @doc(category: "Products") { +type ProductBulkTranslateResult { """Product translation data.""" translation: ProductTranslation @@ -22405,14 +22693,14 @@ type ProductBulkTranslateError { code: ProductTranslateErrorCode! } -enum ProductTranslateErrorCode @doc(category: "Products") { +enum ProductTranslateErrorCode { GRAPHQL_ERROR INVALID NOT_FOUND REQUIRED } -input ProductBulkTranslateInput @doc(category: "Products") { +input ProductBulkTranslateInput { """Product ID.""" id: ID @@ -22431,7 +22719,7 @@ Creates/updates translations for a product. Requires one of the following permissions: MANAGE_TRANSLATIONS. """ -type ProductTranslate @doc(category: "Products") { +type ProductTranslate { translationErrors: [TranslationError!]! @deprecated(reason: "Use `errors` field instead.") errors: [TranslationError!]! product: Product @@ -22442,14 +22730,14 @@ Manage product's availability in channels. Requires one of the following permissions: MANAGE_PRODUCTS. """ -type ProductChannelListingUpdate @doc(category: "Products") { +type ProductChannelListingUpdate { """An updated product instance.""" product: Product productChannelListingErrors: [ProductChannelListingError!]! @deprecated(reason: "Use `errors` field instead.") errors: [ProductChannelListingError!]! } -type ProductChannelListingError @doc(category: "Products") { +type ProductChannelListingError { """ Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. """ @@ -22474,7 +22762,7 @@ type ProductChannelListingError @doc(category: "Products") { variants: [ID!] } -input ProductChannelListingUpdateInput @doc(category: "Products") { +input ProductChannelListingUpdateInput { """List of channels to which the product should be assigned or updated.""" updateChannels: [ProductChannelListingAddInput!] @@ -22482,15 +22770,19 @@ input ProductChannelListingUpdateInput @doc(category: "Products") { removeChannels: [ID!] } -input ProductChannelListingAddInput @doc(category: "Products") { +input ProductChannelListingAddInput { """ID of a channel.""" channelId: ID! """Determines if object is visible to customers.""" isPublished: Boolean - """Publication date. ISO 8601 standard.""" - publicationDate: Date @deprecated(reason: "Use `publishedAt` field instead.") + """ + Publication date. ISO 8601 standard. + + DEPRECATED: this field will be removed. Use `publishedAt` field instead. + """ + publicationDate: Date """Publication date time. ISO 8601 standard.""" publishedAt: DateTime @@ -22506,9 +22798,11 @@ input ProductChannelListingAddInput @doc(category: "Products") { isAvailableForPurchase: Boolean """ - A start date from which a product will be available for purchase. When not set and isAvailable is set to True, the current day is assumed. + A start date from which a product will be available for purchase. When not set and isAvailable is set to True, the current day is assumed. + + DEPRECATED: this field will be removed. Use `availableForPurchaseAt` field instead. """ - availableForPurchaseDate: Date @deprecated(reason: "Use `availableForPurchaseAt` field instead.") + availableForPurchaseDate: Date """ A start date time from which a product will be available for purchase. When not set and `isAvailable` is set to True, the current day is assumed. @@ -22527,14 +22821,14 @@ Create a media object (image or video URL) associated with product. For image, t Requires one of the following permissions: MANAGE_PRODUCTS. """ -type ProductMediaCreate @doc(category: "Products") { +type ProductMediaCreate { product: Product media: ProductMedia productErrors: [ProductError!]! @deprecated(reason: "Use `errors` field instead.") errors: [ProductError!]! } -input ProductMediaCreateInput @doc(category: "Products") { +input ProductMediaCreateInput { """Alt text for a product media.""" alt: String @@ -22553,7 +22847,7 @@ Reorder the variants of a product. Mutation updates updated_at on product and tr Requires one of the following permissions: MANAGE_PRODUCTS. """ -type ProductVariantReorder @doc(category: "Products") { +type ProductVariantReorder { product: Product productErrors: [ProductError!]! @deprecated(reason: "Use `errors` field instead.") errors: [ProductError!]! @@ -22574,7 +22868,7 @@ Deletes a product media. Requires one of the following permissions: MANAGE_PRODUCTS. """ -type ProductMediaDelete @doc(category: "Products") { +type ProductMediaDelete { product: Product media: ProductMedia productErrors: [ProductError!]! @deprecated(reason: "Use `errors` field instead.") @@ -22586,7 +22880,7 @@ Deletes product media. Requires one of the following permissions: MANAGE_PRODUCTS. """ -type ProductMediaBulkDelete @doc(category: "Products") { +type ProductMediaBulkDelete { """Returns how many objects were affected.""" count: Int! productErrors: [ProductError!]! @deprecated(reason: "Use `errors` field instead.") @@ -22598,7 +22892,7 @@ Changes ordering of the product media. Requires one of the following permissions: MANAGE_PRODUCTS. """ -type ProductMediaReorder @doc(category: "Products") { +type ProductMediaReorder { product: Product media: [ProductMedia!] productErrors: [ProductError!]! @deprecated(reason: "Use `errors` field instead.") @@ -22610,14 +22904,14 @@ Updates a product media. Requires one of the following permissions: MANAGE_PRODUCTS. """ -type ProductMediaUpdate @doc(category: "Products") { +type ProductMediaUpdate { product: Product media: ProductMedia productErrors: [ProductError!]! @deprecated(reason: "Use `errors` field instead.") errors: [ProductError!]! } -input ProductMediaUpdateInput @doc(category: "Products") { +input ProductMediaUpdateInput { """Alt text for a product media.""" alt: String } @@ -22627,13 +22921,13 @@ Creates a new product type. Requires one of the following permissions: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES. """ -type ProductTypeCreate @doc(category: "Products") { +type ProductTypeCreate { productErrors: [ProductError!]! @deprecated(reason: "Use `errors` field instead.") errors: [ProductError!]! productType: ProductType } -input ProductTypeInput @doc(category: "Products") { +input ProductTypeInput { """Name of the product type.""" name: String @@ -22665,8 +22959,12 @@ input ProductTypeInput @doc(category: "Products") { """Weight of the ProductType items.""" weight: WeightScalar - """Tax rate for enabled tax gateway.""" - taxCode: String @deprecated(reason: "Use tax classes to control the tax calculation for a product type. If taxCode is provided, Saleor will try to find a tax class with given code (codes are stored in metadata) and assign it. If no tax class is found, it would be created and assigned.") + """ + Tax rate for enabled tax gateway. + + DEPRECATED: this field will be removed. Use tax classes to control the tax calculation for a product type. If taxCode is provided, Saleor will try to find a tax class with given code (codes are stored in metadata) and assign it. If no tax class is found, it would be created and assigned. + """ + taxCode: String """ ID of a tax class to assign to this product type. All products of this product type would use this tax class, unless it's overridden in the `Product` type. @@ -22679,7 +22977,7 @@ Deletes a product type. Requires one of the following permissions: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES. """ -type ProductTypeDelete @doc(category: "Products") { +type ProductTypeDelete { productErrors: [ProductError!]! @deprecated(reason: "Use `errors` field instead.") errors: [ProductError!]! productType: ProductType @@ -22690,7 +22988,7 @@ Deletes product types. Requires one of the following permissions: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES. """ -type ProductTypeBulkDelete @doc(category: "Products") { +type ProductTypeBulkDelete { """Returns how many objects were affected.""" count: Int! productErrors: [ProductError!]! @deprecated(reason: "Use `errors` field instead.") @@ -22702,7 +23000,7 @@ Updates an existing product type. Requires one of the following permissions: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES. """ -type ProductTypeUpdate @doc(category: "Products") { +type ProductTypeUpdate { productErrors: [ProductError!]! @deprecated(reason: "Use `errors` field instead.") errors: [ProductError!]! productType: ProductType @@ -22713,7 +23011,7 @@ Reorder the attributes of a product type. Requires one of the following permissions: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES. """ -type ProductTypeReorderAttributes @doc(category: "Products") { +type ProductTypeReorderAttributes { """Product type from which attributes are reordered.""" productType: ProductType productErrors: [ProductError!]! @deprecated(reason: "Use `errors` field instead.") @@ -22725,7 +23023,7 @@ Reorder product attribute values. Requires one of the following permissions: MANAGE_PRODUCTS. """ -type ProductReorderAttributeValues @doc(category: "Products") { +type ProductReorderAttributeValues { """Product from which attribute values are reordered.""" product: Product productErrors: [ProductError!]! @deprecated(reason: "Use `errors` field instead.") @@ -22737,14 +23035,14 @@ Create new digital content. This mutation must be sent as a `multipart` request. Requires one of the following permissions: MANAGE_PRODUCTS. """ -type DigitalContentCreate @doc(category: "Products") { +type DigitalContentCreate { variant: ProductVariant content: DigitalContent productErrors: [ProductError!]! @deprecated(reason: "Use `errors` field instead.") errors: [ProductError!]! } -input DigitalContentUploadInput @doc(category: "Products") { +input DigitalContentUploadInput { """Use default digital content settings for this product.""" useDefaultSettings: Boolean! @@ -22784,7 +23082,7 @@ Remove digital content assigned to given variant. Requires one of the following permissions: MANAGE_PRODUCTS. """ -type DigitalContentDelete @doc(category: "Products") { +type DigitalContentDelete { variant: ProductVariant productErrors: [ProductError!]! @deprecated(reason: "Use `errors` field instead.") errors: [ProductError!]! @@ -22795,14 +23093,14 @@ Updates digital content. Requires one of the following permissions: MANAGE_PRODUCTS. """ -type DigitalContentUpdate @doc(category: "Products") { +type DigitalContentUpdate { variant: ProductVariant content: DigitalContent productErrors: [ProductError!]! @deprecated(reason: "Use `errors` field instead.") errors: [ProductError!]! } -input DigitalContentInput @doc(category: "Products") { +input DigitalContentInput { """Use default digital content settings for this product.""" useDefaultSettings: Boolean! @@ -22839,13 +23137,13 @@ Generate new URL to digital content. Requires one of the following permissions: MANAGE_PRODUCTS. """ -type DigitalContentUrlCreate @doc(category: "Products") { +type DigitalContentUrlCreate { productErrors: [ProductError!]! @deprecated(reason: "Use `errors` field instead.") errors: [ProductError!]! digitalContentUrl: DigitalContentUrl } -input DigitalContentUrlCreateInput @doc(category: "Products") { +input DigitalContentUrlCreateInput { """Digital content ID which URL will belong to.""" content: ID! } @@ -22855,13 +23153,13 @@ Creates a new variant for a product. Requires one of the following permissions: MANAGE_PRODUCTS. """ -type ProductVariantCreate @doc(category: "Products") { +type ProductVariantCreate { productErrors: [ProductError!]! @deprecated(reason: "Use `errors` field instead.") errors: [ProductError!]! productVariant: ProductVariant } -input ProductVariantCreateInput @doc(category: "Products") { +input ProductVariantCreateInput { """List of attributes specific to this variant.""" attributes: [AttributeValueInput!]! @@ -22916,7 +23214,7 @@ Deletes a product variant. Requires one of the following permissions: MANAGE_PRODUCTS. """ -type ProductVariantDelete @doc(category: "Products") { +type ProductVariantDelete { productErrors: [ProductError!]! @deprecated(reason: "Use `errors` field instead.") errors: [ProductError!]! productVariant: ProductVariant @@ -22927,11 +23225,15 @@ Creates product variants for a given product. Requires one of the following permissions: MANAGE_PRODUCTS. """ -type ProductVariantBulkCreate @doc(category: "Products") { +type ProductVariantBulkCreate { """Returns how many objects were created.""" count: Int! - """List of the created variants.""" + """ + List of the created variants. + + DEPRECATED: this field will be removed. + """ productVariants: [ProductVariant!]! """List of the created variants.""" @@ -22940,7 +23242,7 @@ type ProductVariantBulkCreate @doc(category: "Products") { errors: [BulkProductError!]! } -type ProductVariantBulkResult @doc(category: "Products") { +type ProductVariantBulkResult { """Product variant data.""" productVariant: ProductVariant @@ -22948,7 +23250,7 @@ type ProductVariantBulkResult @doc(category: "Products") { errors: [ProductVariantBulkError!] } -type ProductVariantBulkError @doc(category: "Products") { +type ProductVariantBulkError { """ Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. """ @@ -22984,7 +23286,7 @@ type ProductVariantBulkError @doc(category: "Products") { channelListings: [ID!] } -enum ProductVariantBulkErrorCode @doc(category: "Products") { +enum ProductVariantBulkErrorCode { ATTRIBUTE_ALREADY_ASSIGNED ATTRIBUTE_CANNOT_BE_ASSIGNED ATTRIBUTE_VARIANTS_DISABLED @@ -23000,7 +23302,7 @@ enum ProductVariantBulkErrorCode @doc(category: "Products") { STOCK_ALREADY_EXISTS } -type BulkProductError @doc(category: "Products") { +type BulkProductError { """ Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. """ @@ -23033,7 +23335,7 @@ Updates multiple product variants. Requires one of the following permissions: MANAGE_PRODUCTS. """ -type ProductVariantBulkUpdate @doc(category: "Products") { +type ProductVariantBulkUpdate { """Returns how many objects were updated.""" count: Int! @@ -23043,7 +23345,7 @@ type ProductVariantBulkUpdate @doc(category: "Products") { } """Input fields to update product variants.""" -input ProductVariantBulkUpdateInput @doc(category: "Products") { +input ProductVariantBulkUpdateInput { """List of attributes specific to this variant.""" attributes: [BulkAttributeValueInput!] @@ -23096,7 +23398,7 @@ input ProductVariantBulkUpdateInput @doc(category: "Products") { id: ID! } -input ProductVariantStocksUpdateInput @doc(category: "Products") { +input ProductVariantStocksUpdateInput { """List of warehouses to create stocks.""" create: [StockInput!] @@ -23107,7 +23409,7 @@ input ProductVariantStocksUpdateInput @doc(category: "Products") { remove: [ID!] } -input StockUpdateInput @doc(category: "Products") { +input StockUpdateInput { """Stock.""" stock: ID! @@ -23115,7 +23417,7 @@ input StockUpdateInput @doc(category: "Products") { quantity: Int! } -input ProductVariantChannelListingUpdateInput @doc(category: "Products") { +input ProductVariantChannelListingUpdateInput { """List of channels to create variant channel listings.""" create: [ProductVariantChannelListingAddInput!] @@ -23126,7 +23428,7 @@ input ProductVariantChannelListingUpdateInput @doc(category: "Products") { remove: [ID!] } -input ChannelListingUpdateInput @doc(category: "Products") { +input ChannelListingUpdateInput { """ID of a channel listing.""" channelListing: ID! @@ -23148,7 +23450,7 @@ Deletes product variants. Requires one of the following permissions: MANAGE_PRODUCTS. """ -type ProductVariantBulkDelete @doc(category: "Products") { +type ProductVariantBulkDelete { """Returns how many objects were affected.""" count: Int! productErrors: [ProductError!]! @deprecated(reason: "Use `errors` field instead.") @@ -23160,14 +23462,14 @@ Creates stocks for product variant. Requires one of the following permissions: MANAGE_PRODUCTS. """ -type ProductVariantStocksCreate @doc(category: "Products") { +type ProductVariantStocksCreate { """Updated product variant.""" productVariant: ProductVariant bulkStockErrors: [BulkStockError!]! @deprecated(reason: "Use `errors` field instead.") errors: [BulkStockError!]! } -type BulkStockError @doc(category: "Products") { +type BulkStockError { """ Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. """ @@ -23194,14 +23496,14 @@ Deletes stocks from product variant. Requires one of the following permissions: MANAGE_PRODUCTS. """ -type ProductVariantStocksDelete @doc(category: "Products") { +type ProductVariantStocksDelete { """Updated product variant.""" productVariant: ProductVariant stockErrors: [StockError!]! @deprecated(reason: "Use `errors` field instead.") errors: [StockError!]! } -type StockError @doc(category: "Products") { +type StockError { """ Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. """ @@ -23214,7 +23516,7 @@ type StockError @doc(category: "Products") { code: StockErrorCode! } -enum StockErrorCode @doc(category: "Products") { +enum StockErrorCode { ALREADY_EXISTS GRAPHQL_ERROR INVALID @@ -23228,7 +23530,7 @@ Updates stocks for product variant. Requires one of the following permissions: MANAGE_PRODUCTS. """ -type ProductVariantStocksUpdate @doc(category: "Products") { +type ProductVariantStocksUpdate { """Updated product variant.""" productVariant: ProductVariant bulkStockErrors: [BulkStockError!]! @deprecated(reason: "Use `errors` field instead.") @@ -23240,13 +23542,13 @@ Updates an existing variant for product. Requires one of the following permissions: MANAGE_PRODUCTS. """ -type ProductVariantUpdate @doc(category: "Products") { +type ProductVariantUpdate { productErrors: [ProductError!]! @deprecated(reason: "Use `errors` field instead.") errors: [ProductError!]! productVariant: ProductVariant } -input ProductVariantInput @doc(category: "Products") { +input ProductVariantInput { """List of attributes specific to this variant.""" attributes: [AttributeValueInput!] @@ -23295,7 +23597,7 @@ Set default variant for a product. Mutation triggers PRODUCT_UPDATED webhook. Requires one of the following permissions: MANAGE_PRODUCTS. """ -type ProductVariantSetDefault @doc(category: "Products") { +type ProductVariantSetDefault { product: Product productErrors: [ProductError!]! @deprecated(reason: "Use `errors` field instead.") errors: [ProductError!]! @@ -23306,7 +23608,7 @@ Creates/updates translations for a product variant. Requires one of the following permissions: MANAGE_TRANSLATIONS. """ -type ProductVariantTranslate @doc(category: "Products") { +type ProductVariantTranslate { translationErrors: [TranslationError!]! @deprecated(reason: "Use `errors` field instead.") errors: [TranslationError!]! productVariant: ProductVariant @@ -23325,7 +23627,7 @@ Triggers the following webhook events: - TRANSLATION_CREATED (async): A translation was created. - TRANSLATION_UPDATED (async): A translation was updated. """ -type ProductVariantBulkTranslate @doc(category: "Products") @webhookEventsInfo(asyncEvents: [TRANSLATION_CREATED, TRANSLATION_UPDATED], syncEvents: []) { +type ProductVariantBulkTranslate { """Returns how many translations were created/updated.""" count: Int! @@ -23334,7 +23636,7 @@ type ProductVariantBulkTranslate @doc(category: "Products") @webhookEventsInfo(a errors: [ProductVariantBulkTranslateError!]! } -type ProductVariantBulkTranslateResult @doc(category: "Products") { +type ProductVariantBulkTranslateResult { """Product variant translation data.""" translation: ProductVariantTranslation @@ -23355,14 +23657,14 @@ type ProductVariantBulkTranslateError { code: ProductVariantTranslateErrorCode! } -enum ProductVariantTranslateErrorCode @doc(category: "Products") { +enum ProductVariantTranslateErrorCode { GRAPHQL_ERROR INVALID NOT_FOUND REQUIRED } -input ProductVariantBulkTranslateInput @doc(category: "Products") { +input ProductVariantBulkTranslateInput { """Product variant ID.""" id: ID @@ -23381,7 +23683,7 @@ Manage product variant prices in channels. Requires one of the following permissions: MANAGE_PRODUCTS. """ -type ProductVariantChannelListingUpdate @doc(category: "Products") { +type ProductVariantChannelListingUpdate { """An updated product variant instance.""" variant: ProductVariant productChannelListingErrors: [ProductChannelListingError!]! @deprecated(reason: "Use `errors` field instead.") @@ -23393,7 +23695,7 @@ Reorder product variant attribute values. Requires one of the following permissions: MANAGE_PRODUCTS. """ -type ProductVariantReorderAttributeValues @doc(category: "Products") { +type ProductVariantReorderAttributeValues { """Product variant from which attribute values are reordered.""" productVariant: ProductVariant productErrors: [ProductError!]! @deprecated(reason: "Use `errors` field instead.") @@ -23405,7 +23707,7 @@ Deactivates product variant preorder. It changes all preorder allocation into re Requires one of the following permissions: MANAGE_PRODUCTS. """ -type ProductVariantPreorderDeactivate @doc(category: "Products") { +type ProductVariantPreorderDeactivate { """Product variant with ended preorder.""" productVariant: ProductVariant errors: [ProductError!]! @@ -23416,7 +23718,7 @@ Assign an media to a product variant. Requires one of the following permissions: MANAGE_PRODUCTS. """ -type VariantMediaAssign @doc(category: "Products") { +type VariantMediaAssign { productVariant: ProductVariant media: ProductMedia productErrors: [ProductError!]! @deprecated(reason: "Use `errors` field instead.") @@ -23428,7 +23730,7 @@ Unassign an media from a product variant. Requires one of the following permissions: MANAGE_PRODUCTS. """ -type VariantMediaUnassign @doc(category: "Products") { +type VariantMediaUnassign { productVariant: ProductVariant media: ProductMedia productErrors: [ProductError!]! @deprecated(reason: "Use `errors` field instead.") @@ -23440,14 +23742,14 @@ Captures the authorized payment amount. Requires one of the following permissions: MANAGE_ORDERS. """ -type PaymentCapture @doc(category: "Payments") { +type PaymentCapture { """Updated payment.""" payment: Payment paymentErrors: [PaymentError!]! @deprecated(reason: "Use `errors` field instead.") errors: [PaymentError!]! } -type PaymentError @doc(category: "Payments") { +type PaymentError { """ Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. """ @@ -23463,7 +23765,7 @@ type PaymentError @doc(category: "Payments") { variants: [ID!] } -enum PaymentErrorCode @doc(category: "Payments") { +enum PaymentErrorCode { BILLING_ADDRESS_NOT_SET GRAPHQL_ERROR INVALID @@ -23490,7 +23792,7 @@ Refunds the captured payment amount. Requires one of the following permissions: MANAGE_ORDERS. """ -type PaymentRefund @doc(category: "Payments") { +type PaymentRefund { """Updated payment.""" payment: Payment paymentErrors: [PaymentError!]! @deprecated(reason: "Use `errors` field instead.") @@ -23502,7 +23804,7 @@ Voids the authorized payment. Requires one of the following permissions: MANAGE_ORDERS. """ -type PaymentVoid @doc(category: "Payments") { +type PaymentVoid { """Updated payment.""" payment: Payment paymentErrors: [PaymentError!]! @deprecated(reason: "Use `errors` field instead.") @@ -23510,7 +23812,7 @@ type PaymentVoid @doc(category: "Payments") { } """Initializes payment process when it is required by gateway.""" -type PaymentInitialize @doc(category: "Payments") { +type PaymentInitialize { """Payment that was initialized.""" initializedPayment: PaymentInitialized paymentErrors: [PaymentError!]! @deprecated(reason: "Use `errors` field instead.") @@ -23520,7 +23822,7 @@ type PaymentInitialize @doc(category: "Payments") { """ Server-side data generated by a payment gateway. Optional step when the payment provider requires an additional action to initialize payment session. """ -type PaymentInitialized @doc(category: "Payments") { +type PaymentInitialized { """ID of a payment gateway.""" gateway: String! @@ -23532,14 +23834,14 @@ type PaymentInitialized @doc(category: "Payments") { } """Check payment balance.""" -type PaymentCheckBalance @doc(category: "Payments") { +type PaymentCheckBalance { """Response from the gateway.""" data: JSONString paymentErrors: [PaymentError!]! @deprecated(reason: "Use `errors` field instead.") errors: [PaymentError!]! } -input PaymentCheckBalanceInput @doc(category: "Payments") { +input PaymentCheckBalanceInput { """An ID of a payment gateway to check.""" gatewayId: String! @@ -23579,12 +23881,12 @@ Creates transaction for checkout or order. Requires one of the following permissions: HANDLE_PAYMENTS. """ -type TransactionCreate @doc(category: "Payments") { +type TransactionCreate { transaction: TransactionItem errors: [TransactionCreateError!]! } -type TransactionCreateError @doc(category: "Payments") { +type TransactionCreateError { """ Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. """ @@ -23597,7 +23899,7 @@ type TransactionCreateError @doc(category: "Payments") { code: TransactionCreateErrorCode! } -enum TransactionCreateErrorCode @doc(category: "Payments") { +enum TransactionCreateErrorCode { INVALID GRAPHQL_ERROR NOT_FOUND @@ -23606,7 +23908,7 @@ enum TransactionCreateErrorCode @doc(category: "Payments") { UNIQUE } -input TransactionCreateInput @doc(category: "Payments") { +input TransactionCreateInput { """Payment name of the transaction.""" name: String @@ -23708,7 +24010,7 @@ input OtherPaymentMethodDetailsInput { name: String! } -input TransactionEventInput @doc(category: "Payments") { +input TransactionEventInput { """PSP Reference related to this action.""" pspReference: String @@ -23721,12 +24023,12 @@ Update transaction. Requires the following permissions: OWNER and HANDLE_PAYMENTS for apps, HANDLE_PAYMENTS for staff users. Staff user cannot update a transaction that is owned by the app. """ -type TransactionUpdate @doc(category: "Payments") { +type TransactionUpdate { transaction: TransactionItem errors: [TransactionUpdateError!]! } -type TransactionUpdateError @doc(category: "Payments") { +type TransactionUpdateError { """ Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. """ @@ -23739,7 +24041,7 @@ type TransactionUpdateError @doc(category: "Payments") { code: TransactionUpdateErrorCode! } -enum TransactionUpdateErrorCode @doc(category: "Payments") { +enum TransactionUpdateErrorCode { INVALID GRAPHQL_ERROR NOT_FOUND @@ -23748,7 +24050,7 @@ enum TransactionUpdateErrorCode @doc(category: "Payments") { UNIQUE } -input TransactionUpdateInput @doc(category: "Payments") { +input TransactionUpdateInput { """Payment name of the transaction.""" name: String @@ -23805,12 +24107,12 @@ Request an action for payment transaction. Requires one of the following permissions: HANDLE_PAYMENTS. """ -type TransactionRequestAction @doc(category: "Payments") { +type TransactionRequestAction { transaction: TransactionItem errors: [TransactionRequestActionError!]! } -type TransactionRequestActionError @doc(category: "Payments") { +type TransactionRequestActionError { """ Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. """ @@ -23823,7 +24125,7 @@ type TransactionRequestActionError @doc(category: "Payments") { code: TransactionRequestActionErrorCode! } -enum TransactionRequestActionErrorCode @doc(category: "Payments") { +enum TransactionRequestActionErrorCode { INVALID REQUIRED GRAPHQL_ERROR @@ -23836,12 +24138,12 @@ Request a refund for payment transaction based on granted refund. Requires one of the following permissions: HANDLE_PAYMENTS. """ -type TransactionRequestRefundForGrantedRefund @doc(category: "Payments") { +type TransactionRequestRefundForGrantedRefund { transaction: TransactionItem errors: [TransactionRequestRefundForGrantedRefundError!]! } -type TransactionRequestRefundForGrantedRefundError @doc(category: "Payments") { +type TransactionRequestRefundForGrantedRefundError { """ Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. """ @@ -23854,7 +24156,7 @@ type TransactionRequestRefundForGrantedRefundError @doc(category: "Payments") { code: TransactionRequestRefundForGrantedRefundErrorCode! } -enum TransactionRequestRefundForGrantedRefundErrorCode @doc(category: "Payments") { +enum TransactionRequestRefundForGrantedRefundErrorCode { INVALID GRAPHQL_ERROR NOT_FOUND @@ -23874,7 +24176,7 @@ Triggers the following webhook events: - CHECKOUT_FULLY_PAID (async): Optionally called when the checkout charge status changed to `FULL` or `OVERCHARGED`. - ORDER_UPDATED (async): Optionally called when the transaction is related to the order and the order was updated. """ -type TransactionEventReport @doc(category: "Payments") @webhookEventsInfo(asyncEvents: [TRANSACTION_ITEM_METADATA_UPDATED, CHECKOUT_FULLY_PAID, ORDER_UPDATED], syncEvents: []) { +type TransactionEventReport { """Defines if the reported event hasn't been processed earlier.""" alreadyProcessed: Boolean @@ -23888,7 +24190,7 @@ type TransactionEventReport @doc(category: "Payments") @webhookEventsInfo(asyncE errors: [TransactionEventReportError!]! } -type TransactionEventReportError @doc(category: "Payments") { +type TransactionEventReportError { """ Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. """ @@ -23901,7 +24203,7 @@ type TransactionEventReportError @doc(category: "Payments") { code: TransactionEventReportErrorCode! } -enum TransactionEventReportErrorCode @doc(category: "Payments") { +enum TransactionEventReportErrorCode { INVALID GRAPHQL_ERROR NOT_FOUND @@ -23913,13 +24215,13 @@ enum TransactionEventReportErrorCode @doc(category: "Payments") { """ Initializes a payment gateway session. It triggers the webhook `PAYMENT_GATEWAY_INITIALIZE_SESSION`, to the requested `paymentGateways`. If `paymentGateways` is not provided, the webhook will be send to all subscribed payment gateways. There is a limit of 100 transaction items per checkout / order. """ -type PaymentGatewayInitialize @doc(category: "Payments") { +type PaymentGatewayInitialize { """List of payment gateway configurations.""" gatewayConfigs: [PaymentGatewayConfig!] errors: [PaymentGatewayInitializeError!]! } -type PaymentGatewayConfig @doc(category: "Payments") { +type PaymentGatewayConfig { """The app identifier.""" id: String! @@ -23928,7 +24230,7 @@ type PaymentGatewayConfig @doc(category: "Payments") { errors: [PaymentGatewayConfigError!] } -type PaymentGatewayConfigError @doc(category: "Payments") { +type PaymentGatewayConfigError { """ Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. """ @@ -23941,13 +24243,13 @@ type PaymentGatewayConfigError @doc(category: "Payments") { code: PaymentGatewayConfigErrorCode! } -enum PaymentGatewayConfigErrorCode @doc(category: "Payments") { +enum PaymentGatewayConfigErrorCode { GRAPHQL_ERROR INVALID NOT_FOUND } -type PaymentGatewayInitializeError @doc(category: "Payments") { +type PaymentGatewayInitializeError { """ Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. """ @@ -23960,13 +24262,13 @@ type PaymentGatewayInitializeError @doc(category: "Payments") { code: PaymentGatewayInitializeErrorCode! } -enum PaymentGatewayInitializeErrorCode @doc(category: "Payments") { +enum PaymentGatewayInitializeErrorCode { GRAPHQL_ERROR INVALID NOT_FOUND } -input PaymentGatewayToInitialize @doc(category: "Payments") { +input PaymentGatewayToInitialize { """The identifier of the payment gateway app to initialize.""" id: String! @@ -23977,7 +24279,7 @@ input PaymentGatewayToInitialize @doc(category: "Payments") { """ Initializes a transaction session. It triggers the webhook `TRANSACTION_INITIALIZE_SESSION`, to the requested `paymentGateways`. There is a limit of 100 transaction items per checkout / order. """ -type TransactionInitialize @doc(category: "Payments") { +type TransactionInitialize { """The initialized transaction.""" transaction: TransactionItem @@ -23989,7 +24291,7 @@ type TransactionInitialize @doc(category: "Payments") { errors: [TransactionInitializeError!]! } -type TransactionInitializeError @doc(category: "Payments") { +type TransactionInitializeError { """ Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. """ @@ -24002,7 +24304,7 @@ type TransactionInitializeError @doc(category: "Payments") { code: TransactionInitializeErrorCode! } -enum TransactionInitializeErrorCode @doc(category: "Payments") { +enum TransactionInitializeErrorCode { GRAPHQL_ERROR INVALID NOT_FOUND @@ -24011,9 +24313,9 @@ enum TransactionInitializeErrorCode @doc(category: "Payments") { } """ -Processes a transaction session. It triggers the webhook `TRANSACTION_PROCESS_SESSION`, to the assigned `paymentGateways`. +Processes a transaction session. It triggers the webhook `TRANSACTION_PROCESS_SESSION`, to the assigned `paymentGateways`. """ -type TransactionProcess @doc(category: "Payments") { +type TransactionProcess { """The processed transaction.""" transaction: TransactionItem @@ -24025,7 +24327,7 @@ type TransactionProcess @doc(category: "Payments") { errors: [TransactionProcessError!]! } -type TransactionProcessError @doc(category: "Payments") { +type TransactionProcessError { """ Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. """ @@ -24038,7 +24340,7 @@ type TransactionProcessError @doc(category: "Payments") { code: TransactionProcessErrorCode! } -enum TransactionProcessErrorCode @doc(category: "Payments") { +enum TransactionProcessErrorCode { GRAPHQL_ERROR INVALID NOT_FOUND @@ -24056,28 +24358,20 @@ Requires one of the following permissions: AUTHENTICATED_USER. Triggers the following webhook events: - STORED_PAYMENT_METHOD_DELETE_REQUESTED (sync): The customer requested to delete a payment method. """ -type StoredPaymentMethodRequestDelete @doc(category: "Payments") @webhookEventsInfo(asyncEvents: [], syncEvents: [STORED_PAYMENT_METHOD_DELETE_REQUESTED]) { +type StoredPaymentMethodRequestDelete { """The result of deleting a stored payment method.""" result: StoredPaymentMethodRequestDeleteResult! errors: [PaymentMethodRequestDeleteError!]! } -""" -Result of deleting a stored payment method. - - This enum is used to determine the result of deleting a stored payment method. - SUCCESSFULLY_DELETED - The stored payment method was successfully deleted. - FAILED_TO_DELETE - The stored payment method was not deleted. - FAILED_TO_DELIVER - The request to delete the stored payment method was not - delivered. -""" -enum StoredPaymentMethodRequestDeleteResult @doc(category: "Payments") { +"Result of deleting a stored payment method.\n\n This enum is used to determine the result of deleting a stored payment method.\n SUCCESSFULLY_DELETED - The stored payment method was successfully deleted.\n FAILED_TO_DELETE - The stored payment method was not deleted.\n FAILED_TO_DELIVER - The request to delete the stored payment method was not\n delivered.\n " +enum StoredPaymentMethodRequestDeleteResult { SUCCESSFULLY_DELETED FAILED_TO_DELETE FAILED_TO_DELIVER } -type PaymentMethodRequestDeleteError @doc(category: "Payments") { +type PaymentMethodRequestDeleteError { """ Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. """ @@ -24090,7 +24384,7 @@ type PaymentMethodRequestDeleteError @doc(category: "Payments") { code: StoredPaymentMethodRequestDeleteErrorCode! } -enum StoredPaymentMethodRequestDeleteErrorCode @doc(category: "Payments") { +enum StoredPaymentMethodRequestDeleteErrorCode { GRAPHQL_ERROR INVALID NOT_FOUND @@ -24106,7 +24400,7 @@ Requires one of the following permissions: AUTHENTICATED_USER. Triggers the following webhook events: - PAYMENT_GATEWAY_INITIALIZE_TOKENIZATION_SESSION (sync): The customer requested to initialize payment gateway for tokenization. """ -type PaymentGatewayInitializeTokenization @doc(category: "Payments") @webhookEventsInfo(asyncEvents: [], syncEvents: [PAYMENT_GATEWAY_INITIALIZE_TOKENIZATION_SESSION]) { +type PaymentGatewayInitializeTokenization { """A status of the payment gateway initialization.""" result: PaymentGatewayInitializeTokenizationResult! @@ -24115,21 +24409,14 @@ type PaymentGatewayInitializeTokenization @doc(category: "Payments") @webhookEve errors: [PaymentGatewayInitializeTokenizationError!]! } -""" -Result of initialize payment gateway for tokenization of payment method. - - The result of initialize payment gateway for tokenization of payment method. - SUCCESSFULLY_INITIALIZED - The payment gateway was successfully initialized. - FAILED_TO_INITIALIZE - The payment gateway was not initialized. - FAILED_TO_DELIVER - The request to initialize payment gateway was not delivered. -""" -enum PaymentGatewayInitializeTokenizationResult @doc(category: "Payments") { +"Result of initialize payment gateway for tokenization of payment method.\n\n The result of initialize payment gateway for tokenization of payment method.\n SUCCESSFULLY_INITIALIZED - The payment gateway was successfully initialized.\n FAILED_TO_INITIALIZE - The payment gateway was not initialized.\n FAILED_TO_DELIVER - The request to initialize payment gateway was not delivered.\n " +enum PaymentGatewayInitializeTokenizationResult { SUCCESSFULLY_INITIALIZED FAILED_TO_INITIALIZE FAILED_TO_DELIVER } -type PaymentGatewayInitializeTokenizationError @doc(category: "Payments") { +type PaymentGatewayInitializeTokenizationError { """ Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. """ @@ -24142,7 +24429,7 @@ type PaymentGatewayInitializeTokenizationError @doc(category: "Payments") { code: PaymentGatewayInitializeTokenizationErrorCode! } -enum PaymentGatewayInitializeTokenizationErrorCode @doc(category: "Payments") { +enum PaymentGatewayInitializeTokenizationErrorCode { GRAPHQL_ERROR INVALID NOT_FOUND @@ -24158,7 +24445,7 @@ Requires one of the following permissions: AUTHENTICATED_USER. Triggers the following webhook events: - PAYMENT_METHOD_INITIALIZE_TOKENIZATION_SESSION (sync): The customer requested to tokenize payment method. """ -type PaymentMethodInitializeTokenization @doc(category: "Payments") @webhookEventsInfo(asyncEvents: [], syncEvents: [PAYMENT_METHOD_INITIALIZE_TOKENIZATION_SESSION]) { +type PaymentMethodInitializeTokenization { """A status of the payment method tokenization.""" result: PaymentMethodTokenizationResult! @@ -24170,17 +24457,8 @@ type PaymentMethodInitializeTokenization @doc(category: "Payments") @webhookEven errors: [PaymentMethodInitializeTokenizationError!]! } -""" -Result of tokenization of payment method. - - SUCCESSFULLY_TOKENIZED - The payment method was successfully tokenized. - ADDITIONAL_ACTION_REQUIRED - The additional action is required to tokenize payment - method. - PENDING - The payment method is pending tokenization. - FAILED_TO_TOKENIZE - The payment method was not tokenized. - FAILED_TO_DELIVER - The request to tokenize payment method was not delivered. -""" -enum PaymentMethodTokenizationResult @doc(category: "Payments") { +"Result of tokenization of payment method.\n\n SUCCESSFULLY_TOKENIZED - The payment method was successfully tokenized.\n ADDITIONAL_ACTION_REQUIRED - The additional action is required to tokenize payment\n method.\n PENDING - The payment method is pending tokenization.\n FAILED_TO_TOKENIZE - The payment method was not tokenized.\n FAILED_TO_DELIVER - The request to tokenize payment method was not delivered.\n " +enum PaymentMethodTokenizationResult { SUCCESSFULLY_TOKENIZED PENDING ADDITIONAL_ACTION_REQUIRED @@ -24188,7 +24466,7 @@ enum PaymentMethodTokenizationResult @doc(category: "Payments") { FAILED_TO_DELIVER } -type PaymentMethodInitializeTokenizationError @doc(category: "Payments") { +type PaymentMethodInitializeTokenizationError { """ Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. """ @@ -24201,7 +24479,7 @@ type PaymentMethodInitializeTokenizationError @doc(category: "Payments") { code: PaymentMethodInitializeTokenizationErrorCode! } -enum PaymentMethodInitializeTokenizationErrorCode @doc(category: "Payments") { +enum PaymentMethodInitializeTokenizationErrorCode { GRAPHQL_ERROR INVALID NOT_FOUND @@ -24217,7 +24495,7 @@ Requires one of the following permissions: AUTHENTICATED_USER. Triggers the following webhook events: - PAYMENT_METHOD_PROCESS_TOKENIZATION_SESSION (sync): The customer continues payment method tokenization. """ -type PaymentMethodProcessTokenization @doc(category: "Payments") @webhookEventsInfo(asyncEvents: [], syncEvents: [PAYMENT_METHOD_PROCESS_TOKENIZATION_SESSION]) { +type PaymentMethodProcessTokenization { """A status of the payment method tokenization.""" result: PaymentMethodTokenizationResult! @@ -24229,7 +24507,7 @@ type PaymentMethodProcessTokenization @doc(category: "Payments") @webhookEventsI errors: [PaymentMethodProcessTokenizationError!]! } -type PaymentMethodProcessTokenizationError @doc(category: "Payments") { +type PaymentMethodProcessTokenizationError { """ Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. """ @@ -24242,7 +24520,7 @@ type PaymentMethodProcessTokenizationError @doc(category: "Payments") { code: PaymentMethodProcessTokenizationErrorCode! } -enum PaymentMethodProcessTokenizationErrorCode @doc(category: "Payments") { +enum PaymentMethodProcessTokenizationErrorCode { GRAPHQL_ERROR INVALID NOT_FOUND @@ -24255,13 +24533,13 @@ Creates a new page. Requires one of the following permissions: MANAGE_PAGES. """ -type PageCreate @doc(category: "Pages") { +type PageCreate { pageErrors: [PageError!]! @deprecated(reason: "Use `errors` field instead.") errors: [PageError!]! page: Page } -type PageError @doc(category: "Pages") { +type PageError { """ Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. """ @@ -24280,7 +24558,7 @@ type PageError @doc(category: "Pages") { values: [ID!] } -enum PageErrorCode @doc(category: "Pages") { +enum PageErrorCode { GRAPHQL_ERROR INVALID NOT_FOUND @@ -24290,7 +24568,7 @@ enum PageErrorCode @doc(category: "Pages") { ATTRIBUTE_ALREADY_ASSIGNED } -input PageCreateInput @doc(category: "Pages") { +input PageCreateInput { """Page internal name.""" slug: String @@ -24310,8 +24588,12 @@ input PageCreateInput @doc(category: "Pages") { """Determines if page is visible in the storefront.""" isPublished: Boolean - """Publication date. ISO 8601 standard.""" - publicationDate: String @deprecated(reason: "Use `publishedAt` field instead.") + """ + Publication date. ISO 8601 standard. + + DEPRECATED: this field will be removed. Use `publishedAt` field instead. + """ + publicationDate: String """Publication date time. ISO 8601 standard.""" publishedAt: DateTime @@ -24328,7 +24610,7 @@ Deletes a page. Requires one of the following permissions: MANAGE_PAGES. """ -type PageDelete @doc(category: "Pages") { +type PageDelete { pageErrors: [PageError!]! @deprecated(reason: "Use `errors` field instead.") errors: [PageError!]! page: Page @@ -24339,7 +24621,7 @@ Deletes pages. Requires one of the following permissions: MANAGE_PAGES. """ -type PageBulkDelete @doc(category: "Pages") { +type PageBulkDelete { """Returns how many objects were affected.""" count: Int! pageErrors: [PageError!]! @deprecated(reason: "Use `errors` field instead.") @@ -24351,7 +24633,7 @@ Publish pages. Requires one of the following permissions: MANAGE_PAGES. """ -type PageBulkPublish @doc(category: "Pages") { +type PageBulkPublish { """Returns how many objects were affected.""" count: Int! pageErrors: [PageError!]! @deprecated(reason: "Use `errors` field instead.") @@ -24363,13 +24645,13 @@ Updates an existing page. Requires one of the following permissions: MANAGE_PAGES. """ -type PageUpdate @doc(category: "Pages") { +type PageUpdate { pageErrors: [PageError!]! @deprecated(reason: "Use `errors` field instead.") errors: [PageError!]! page: Page } -input PageInput @doc(category: "Pages") { +input PageInput { """Page internal name.""" slug: String @@ -24389,8 +24671,12 @@ input PageInput @doc(category: "Pages") { """Determines if page is visible in the storefront.""" isPublished: Boolean - """Publication date. ISO 8601 standard.""" - publicationDate: String @deprecated(reason: "Use `publishedAt` field instead.") + """ + Publication date. ISO 8601 standard. + + DEPRECATED: this field will be removed. Use `publishedAt` field instead. + """ + publicationDate: String """Publication date time. ISO 8601 standard.""" publishedAt: DateTime @@ -24404,7 +24690,7 @@ Creates/updates translations for a page. Requires one of the following permissions: MANAGE_TRANSLATIONS. """ -type PageTranslate @doc(category: "Pages") { +type PageTranslate { translationErrors: [TranslationError!]! @deprecated(reason: "Use `errors` field instead.") errors: [TranslationError!]! page: PageTranslatableContent @@ -24429,13 +24715,13 @@ Creates a new page type. Requires one of the following permissions: MANAGE_PAGE_TYPES_AND_ATTRIBUTES. """ -type PageTypeCreate @doc(category: "Pages") { +type PageTypeCreate { pageErrors: [PageError!]! @deprecated(reason: "Use `errors` field instead.") errors: [PageError!]! pageType: PageType } -input PageTypeCreateInput @doc(category: "Pages") { +input PageTypeCreateInput { """Name of the page type.""" name: String @@ -24451,13 +24737,13 @@ Updates page type. Requires one of the following permissions: MANAGE_PAGE_TYPES_AND_ATTRIBUTES. """ -type PageTypeUpdate @doc(category: "Pages") { +type PageTypeUpdate { pageErrors: [PageError!]! @deprecated(reason: "Use `errors` field instead.") errors: [PageError!]! pageType: PageType } -input PageTypeUpdateInput @doc(category: "Pages") { +input PageTypeUpdateInput { """Name of the page type.""" name: String @@ -24476,7 +24762,7 @@ Deletes a page type. Requires one of the following permissions: MANAGE_PAGE_TYPES_AND_ATTRIBUTES. """ -type PageTypeDelete @doc(category: "Pages") { +type PageTypeDelete { pageErrors: [PageError!]! @deprecated(reason: "Use `errors` field instead.") errors: [PageError!]! pageType: PageType @@ -24487,7 +24773,7 @@ Deletes page types. Requires one of the following permissions: MANAGE_PAGE_TYPES_AND_ATTRIBUTES. """ -type PageTypeBulkDelete @doc(category: "Pages") { +type PageTypeBulkDelete { """Returns how many objects were affected.""" count: Int! pageErrors: [PageError!]! @deprecated(reason: "Use `errors` field instead.") @@ -24499,7 +24785,7 @@ Assign attributes to a given page type. Requires one of the following permissions: MANAGE_PAGE_TYPES_AND_ATTRIBUTES. """ -type PageAttributeAssign @doc(category: "Pages") { +type PageAttributeAssign { """The updated page type.""" pageType: PageType pageErrors: [PageError!]! @deprecated(reason: "Use `errors` field instead.") @@ -24511,7 +24797,7 @@ Unassign attributes from a given page type. Requires one of the following permissions: MANAGE_PAGE_TYPES_AND_ATTRIBUTES. """ -type PageAttributeUnassign @doc(category: "Pages") { +type PageAttributeUnassign { """The updated page type.""" pageType: PageType pageErrors: [PageError!]! @deprecated(reason: "Use `errors` field instead.") @@ -24523,7 +24809,7 @@ Reorder the attributes of a page type. Requires one of the following permissions: MANAGE_PAGE_TYPES_AND_ATTRIBUTES. """ -type PageTypeReorderAttributes @doc(category: "Pages") { +type PageTypeReorderAttributes { """Page type from which attributes are reordered.""" pageType: PageType pageErrors: [PageError!]! @deprecated(reason: "Use `errors` field instead.") @@ -24535,7 +24821,7 @@ Reorder page attribute values. Requires one of the following permissions: MANAGE_PAGES. """ -type PageReorderAttributeValues @doc(category: "Pages") { +type PageReorderAttributeValues { """Page from which attribute values are reordered.""" page: Page pageErrors: [PageError!]! @deprecated(reason: "Use `errors` field instead.") @@ -24547,7 +24833,7 @@ Completes creating an order. Requires one of the following permissions: MANAGE_ORDERS. """ -type DraftOrderComplete @doc(category: "Orders") { +type DraftOrderComplete { """Completed order.""" order: Order orderErrors: [OrderError!]! @deprecated(reason: "Use `errors` field instead.") @@ -24559,13 +24845,13 @@ Creates a new draft order. Requires one of the following permissions: MANAGE_ORDERS. """ -type DraftOrderCreate @doc(category: "Orders") { +type DraftOrderCreate { orderErrors: [OrderError!]! @deprecated(reason: "Use `errors` field instead.") errors: [OrderError!]! order: Order } -input DraftOrderCreateInput @doc(category: "Orders") { +input DraftOrderCreateInput { """Billing address of the customer.""" billingAddress: AddressInput @@ -24582,8 +24868,12 @@ input DraftOrderCreateInput @doc(category: "Orders") { """Email address of the customer.""" userEmail: String - """Discount amount for the order.""" - discount: PositiveDecimal @deprecated(reason: "Providing a value for the field has no effect. Use `orderDiscountAdd` mutation instead.") + """ + Discount amount for the order. + + DEPRECATED: this field will be removed. Providing a value for the field has no effect. Use `orderDiscountAdd` mutation instead. + """ + discount: PositiveDecimal """Shipping address of the customer.""" shippingAddress: AddressInput @@ -24651,7 +24941,7 @@ input DraftOrderCreateInput @doc(category: "Orders") { lines: [OrderLineCreateInput!] } -input OrderLineCreateInput @doc(category: "Orders") { +input OrderLineCreateInput { """Number of variant items ordered.""" quantity: Int! @@ -24659,7 +24949,7 @@ input OrderLineCreateInput @doc(category: "Orders") { variantId: ID! """ - Flag that allow force splitting the same variant into multiple lines by skipping the matching logic. + Flag that allow force splitting the same variant into multiple lines by skipping the matching logic. """ forceNewLine: Boolean = false @@ -24674,7 +24964,7 @@ Deletes a draft order. Requires one of the following permissions: MANAGE_ORDERS. """ -type DraftOrderDelete @doc(category: "Orders") { +type DraftOrderDelete { orderErrors: [OrderError!]! @deprecated(reason: "Use `errors` field instead.") errors: [OrderError!]! order: Order @@ -24685,7 +24975,7 @@ Deletes draft orders. Requires one of the following permissions: MANAGE_ORDERS. """ -type DraftOrderBulkDelete @doc(category: "Orders") { +type DraftOrderBulkDelete { """Returns how many objects were affected.""" count: Int! orderErrors: [OrderError!]! @deprecated(reason: "Use `errors` field instead.") @@ -24697,7 +24987,7 @@ Deletes order lines. Requires one of the following permissions: MANAGE_ORDERS. """ -type DraftOrderLinesBulkDelete @doc(category: "Orders") { +type DraftOrderLinesBulkDelete { """Returns how many objects were affected.""" count: Int! orderErrors: [OrderError!]! @deprecated(reason: "Use `errors` field instead.") @@ -24709,13 +24999,13 @@ Updates a draft order. Requires one of the following permissions: MANAGE_ORDERS. """ -type DraftOrderUpdate @doc(category: "Orders") { +type DraftOrderUpdate { orderErrors: [OrderError!]! @deprecated(reason: "Use `errors` field instead.") errors: [OrderError!]! order: Order } -input DraftOrderInput @doc(category: "Orders") { +input DraftOrderInput { """Billing address of the customer.""" billingAddress: AddressInput @@ -24732,8 +25022,12 @@ input DraftOrderInput @doc(category: "Orders") { """Email address of the customer.""" userEmail: String - """Discount amount for the order.""" - discount: PositiveDecimal @deprecated(reason: "Providing a value for the field has no effect. Use `orderDiscountAdd` mutation instead.") + """ + Discount amount for the order. + + DEPRECATED: this field will be removed. Providing a value for the field has no effect. Use `orderDiscountAdd` mutation instead. + """ + discount: PositiveDecimal """Shipping address of the customer.""" shippingAddress: AddressInput @@ -24803,7 +25097,7 @@ Adds note to the order. Requires one of the following permissions: MANAGE_ORDERS. """ -type OrderAddNote @doc(category: "Orders") { +type OrderAddNote { """Order with the note added.""" order: Order @@ -24813,7 +25107,7 @@ type OrderAddNote @doc(category: "Orders") { errors: [OrderError!]! } -input OrderAddNoteInput @doc(category: "Orders") { +input OrderAddNoteInput { """Note message.""" message: String! } @@ -24823,7 +25117,7 @@ Cancel an order. Requires one of the following permissions: MANAGE_ORDERS. """ -type OrderCancel @doc(category: "Orders") { +type OrderCancel { """Canceled order.""" order: Order orderErrors: [OrderError!]! @deprecated(reason: "Use `errors` field instead.") @@ -24835,7 +25129,7 @@ Capture an order. Requires one of the following permissions: MANAGE_ORDERS. """ -type OrderCapture @doc(category: "Orders") { +type OrderCapture { """Captured order.""" order: Order orderErrors: [OrderError!]! @deprecated(reason: "Use `errors` field instead.") @@ -24847,7 +25141,7 @@ Confirms an unconfirmed order by changing status to unfulfilled. Requires one of the following permissions: MANAGE_ORDERS. """ -type OrderConfirm @doc(category: "Orders") { +type OrderConfirm { """Order which has been confirmed.""" order: Order orderErrors: [OrderError!]! @deprecated(reason: "Use `errors` field instead.") @@ -24865,7 +25159,7 @@ Triggers the following webhook events: - FULFILLMENT_TRACKING_NUMBER_UPDATED (async): Sent when fulfillment tracking number is updated. - FULFILLMENT_APPROVED (async): A fulfillment is approved. """ -type OrderFulfill @doc(category: "Orders") @webhookEventsInfo(asyncEvents: [FULFILLMENT_CREATED, ORDER_FULFILLED, FULFILLMENT_TRACKING_NUMBER_UPDATED, FULFILLMENT_APPROVED], syncEvents: []) { +type OrderFulfill { """List of created fulfillments.""" fulfillments: [Fulfillment!] @@ -24875,7 +25169,7 @@ type OrderFulfill @doc(category: "Orders") @webhookEventsInfo(asyncEvents: [FULF errors: [OrderError!]! } -input OrderFulfillInput @doc(category: "Orders") { +input OrderFulfillInput { """List of items informing how to fulfill the order.""" lines: [OrderFulfillLineInput!]! @@ -24889,7 +25183,7 @@ input OrderFulfillInput @doc(category: "Orders") { trackingNumber: String } -input OrderFulfillLineInput @doc(category: "Orders") { +input OrderFulfillLineInput { """The ID of the order line.""" orderLineId: ID @@ -24897,7 +25191,7 @@ input OrderFulfillLineInput @doc(category: "Orders") { stocks: [OrderFulfillStockInput!]! } -input OrderFulfillStockInput @doc(category: "Orders") { +input OrderFulfillStockInput { """The number of line items to be fulfilled from given warehouse.""" quantity: Int! @@ -24910,7 +25204,7 @@ Cancels existing fulfillment and optionally restocks items. Requires one of the following permissions: MANAGE_ORDERS. """ -type FulfillmentCancel @doc(category: "Orders") { +type FulfillmentCancel { """A canceled fulfillment.""" fulfillment: Fulfillment @@ -24920,7 +25214,7 @@ type FulfillmentCancel @doc(category: "Orders") { errors: [OrderError!]! } -input FulfillmentCancelInput @doc(category: "Orders") { +input FulfillmentCancelInput { """ ID of a warehouse where items will be restocked. Optional when fulfillment is in WAITING_FOR_APPROVAL state. """ @@ -24935,7 +25229,7 @@ Requires one of the following permissions: MANAGE_ORDERS. Triggers the following webhook events: - FULFILLMENT_APPROVED (async): Fulfillment is approved. """ -type FulfillmentApprove @doc(category: "Orders") @webhookEventsInfo(asyncEvents: [FULFILLMENT_APPROVED], syncEvents: []) { +type FulfillmentApprove { """An approved fulfillment.""" fulfillment: Fulfillment @@ -24953,7 +25247,7 @@ Requires one of the following permissions: MANAGE_ORDERS. Triggers the following webhook events: - FULFILLMENT_TRACKING_NUMBER_UPDATED (async): Fulfillment tracking number is updated. """ -type FulfillmentUpdateTracking @doc(category: "Orders") @webhookEventsInfo(asyncEvents: [FULFILLMENT_TRACKING_NUMBER_UPDATED], syncEvents: []) { +type FulfillmentUpdateTracking { """A fulfillment with updated tracking.""" fulfillment: Fulfillment @@ -24963,7 +25257,7 @@ type FulfillmentUpdateTracking @doc(category: "Orders") @webhookEventsInfo(async errors: [OrderError!]! } -input FulfillmentUpdateTrackingInput @doc(category: "Orders") { +input FulfillmentUpdateTrackingInput { """Fulfillment tracking number.""" trackingNumber: String @@ -24976,7 +25270,7 @@ Refund products. Requires one of the following permissions: MANAGE_ORDERS. """ -type FulfillmentRefundProducts @doc(category: "Orders") { +type FulfillmentRefundProducts { """A refunded fulfillment.""" fulfillment: Fulfillment @@ -24986,7 +25280,7 @@ type FulfillmentRefundProducts @doc(category: "Orders") { errors: [OrderError!]! } -input OrderRefundProductsInput @doc(category: "Orders") { +input OrderRefundProductsInput { """List of unfulfilled lines to refund.""" orderLines: [OrderRefundLineInput!] @@ -25002,7 +25296,7 @@ input OrderRefundProductsInput @doc(category: "Orders") { includeShippingCosts: Boolean = false } -input OrderRefundLineInput @doc(category: "Orders") { +input OrderRefundLineInput { """The ID of the order line to refund.""" orderLineId: ID! @@ -25010,7 +25304,7 @@ input OrderRefundLineInput @doc(category: "Orders") { quantity: Int! } -input OrderRefundFulfillmentLineInput @doc(category: "Orders") { +input OrderRefundFulfillmentLineInput { """The ID of the fulfillment line to refund.""" fulfillmentLineId: ID! @@ -25023,7 +25317,7 @@ Return products. Requires one of the following permissions: MANAGE_ORDERS. """ -type FulfillmentReturnProducts @doc(category: "Orders") { +type FulfillmentReturnProducts { """A return fulfillment.""" returnFulfillment: Fulfillment @@ -25039,7 +25333,7 @@ type FulfillmentReturnProducts @doc(category: "Orders") { errors: [OrderError!]! } -input OrderReturnProductsInput @doc(category: "Orders") { +input OrderReturnProductsInput { """List of unfulfilled lines to return.""" orderLines: [OrderReturnLineInput!] @@ -25056,9 +25350,23 @@ input OrderReturnProductsInput @doc(category: "Orders") { """If true, Saleor will call refund action for all lines.""" refund: Boolean = false + + """ + Global reason for the return. + + Added in Saleor 3.22. + """ + reason: String + + """ + ID of a `Page` to reference as reason for the return. Required for staff users when refund reason reference type is configured. Always optional for apps. + + Added in Saleor 3.22. + """ + reasonReference: ID } -input OrderReturnLineInput @doc(category: "Orders") { +input OrderReturnLineInput { """The ID of the order line to return.""" orderLineId: ID! @@ -25067,9 +25375,23 @@ input OrderReturnLineInput @doc(category: "Orders") { """Determines, if the line should be added to replace order.""" replace: Boolean = false + + """ + Reason for returning the line. + + Added in Saleor 3.22. + """ + reason: String + + """ + ID of a `Page` to reference as reason for returning this line. When provided, must match the configured `PageType` in refund settings. Always optional for both staff and apps. + + Added in Saleor 3.22. + """ + reasonReference: ID } -input OrderReturnFulfillmentLineInput @doc(category: "Orders") { +input OrderReturnFulfillmentLineInput { """The ID of the fulfillment line to return.""" fulfillmentLineId: ID! @@ -25078,6 +25400,20 @@ input OrderReturnFulfillmentLineInput @doc(category: "Orders") { """Determines, if the line should be added to replace order.""" replace: Boolean = false + + """ + Reason for returning the line. + + Added in Saleor 3.22. + """ + reason: String + + """ + ID of a `Page` to reference as reason for returning this line. When provided, must match the configured `PageType` in refund settings. Always optional for both staff and apps. + + Added in Saleor 3.22. + """ + reasonReference: ID } """ @@ -25085,7 +25421,7 @@ Adds granted refund to the order. Requires one of the following permissions: MANAGE_ORDERS. """ -type OrderGrantRefundCreate @doc(category: "Orders") { +type OrderGrantRefundCreate { """Order which has assigned new grant refund.""" order: Order @@ -25094,7 +25430,7 @@ type OrderGrantRefundCreate @doc(category: "Orders") { errors: [OrderGrantRefundCreateError!]! } -type OrderGrantRefundCreateError @doc(category: "Orders") { +type OrderGrantRefundCreateError { """ Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. """ @@ -25110,7 +25446,7 @@ type OrderGrantRefundCreateError @doc(category: "Orders") { lines: [OrderGrantRefundCreateLineError!] } -enum OrderGrantRefundCreateErrorCode @doc(category: "Orders") { +enum OrderGrantRefundCreateErrorCode { GRAPHQL_ERROR NOT_FOUND SHIPPING_COSTS_ALREADY_GRANTED @@ -25141,7 +25477,7 @@ enum OrderGrantRefundCreateLineErrorCode { QUANTITY_GREATER_THAN_AVAILABLE } -input OrderGrantRefundCreateInput @doc(category: "Orders") { +input OrderGrantRefundCreateInput { """ Amount of the granted refund. If not provided, the amount will be calculated automatically based on provided `lines` and `grantRefundForShipping`. """ @@ -25173,7 +25509,7 @@ input OrderGrantRefundCreateInput @doc(category: "Orders") { transactionId: ID! } -input OrderGrantRefundCreateLineInput @doc(category: "Orders") { +input OrderGrantRefundCreateLineInput { """The ID of the order line.""" id: ID! @@ -25182,6 +25518,13 @@ input OrderGrantRefundCreateLineInput @doc(category: "Orders") { """Reason of the granted refund for the line.""" reason: String + + """ + ID of a `Page` to reference as reason for this line. When provided, must match the configured `PageType` in refund settings. Always optional for both staff and apps. + + Added in Saleor 3.22. + """ + reasonReference: ID } """ @@ -25189,7 +25532,7 @@ Updates granted refund. Requires one of the following permissions: MANAGE_ORDERS. """ -type OrderGrantRefundUpdate @doc(category: "Orders") { +type OrderGrantRefundUpdate { """Order which has assigned updated grant refund.""" order: Order @@ -25198,7 +25541,7 @@ type OrderGrantRefundUpdate @doc(category: "Orders") { errors: [OrderGrantRefundUpdateError!]! } -type OrderGrantRefundUpdateError @doc(category: "Orders") { +type OrderGrantRefundUpdateError { """ Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. """ @@ -25217,7 +25560,7 @@ type OrderGrantRefundUpdateError @doc(category: "Orders") { removeLines: [OrderGrantRefundUpdateLineError!] } -enum OrderGrantRefundUpdateErrorCode @doc(category: "Orders") { +enum OrderGrantRefundUpdateErrorCode { GRAPHQL_ERROR NOT_FOUND REQUIRED @@ -25248,7 +25591,7 @@ enum OrderGrantRefundUpdateLineErrorCode { QUANTITY_GREATER_THAN_AVAILABLE } -input OrderGrantRefundUpdateInput @doc(category: "Orders") { +input OrderGrantRefundUpdateInput { """ Amount of the granted refund. if not provided and `addLines` or `removeLines` or `grantRefundForShipping` is provided, amount will be calculated automatically. """ @@ -25283,7 +25626,7 @@ input OrderGrantRefundUpdateInput @doc(category: "Orders") { transactionId: ID } -input OrderGrantRefundUpdateLineAddInput @doc(category: "Orders") { +input OrderGrantRefundUpdateLineAddInput { """The ID of the order line.""" id: ID! @@ -25292,6 +25635,13 @@ input OrderGrantRefundUpdateLineAddInput @doc(category: "Orders") { """Reason of the granted refund for the line.""" reason: String + + """ + ID of a `Page` to reference as reason for this line. When provided, must match the configured `PageType` in refund settings. Always optional for both staff and apps. + + Added in Saleor 3.22. + """ + reasonReference: ID } """ @@ -25299,7 +25649,7 @@ Creates order lines for an order. Requires one of the following permissions: MANAGE_ORDERS. """ -type OrderLinesCreate @doc(category: "Orders") { +type OrderLinesCreate { """Related order.""" order: Order @@ -25314,7 +25664,7 @@ Deletes an order line from an order. Requires one of the following permissions: MANAGE_ORDERS. """ -type OrderLineDelete @doc(category: "Orders") { +type OrderLineDelete { """A related order.""" order: Order @@ -25329,7 +25679,7 @@ Updates an order line of an order. Requires one of the following permissions: MANAGE_ORDERS. """ -type OrderLineUpdate @doc(category: "Orders") { +type OrderLineUpdate { """Related order.""" order: Order orderErrors: [OrderError!]! @deprecated(reason: "Use `errors` field instead.") @@ -25337,7 +25687,7 @@ type OrderLineUpdate @doc(category: "Orders") { orderLine: OrderLine } -input OrderLineInput @doc(category: "Orders") { +input OrderLineInput { """Number of variant items ordered.""" quantity: Int! } @@ -25347,14 +25697,14 @@ Adds discount to the order. Requires one of the following permissions: MANAGE_ORDERS. """ -type OrderDiscountAdd @doc(category: "Orders") { +type OrderDiscountAdd { """Order which has been discounted.""" order: Order orderErrors: [OrderError!]! @deprecated(reason: "Use `errors` field instead.") errors: [OrderError!]! } -input OrderDiscountCommonInput @doc(category: "Orders") { +input OrderDiscountCommonInput { """Type of the discount: fixed or percent""" valueType: DiscountValueTypeEnum! @@ -25370,7 +25720,7 @@ Update discount for the order. Requires one of the following permissions: MANAGE_ORDERS. """ -type OrderDiscountUpdate @doc(category: "Orders") { +type OrderDiscountUpdate { """Order which has been discounted.""" order: Order orderErrors: [OrderError!]! @deprecated(reason: "Use `errors` field instead.") @@ -25382,7 +25732,7 @@ Remove discount from the order. Requires one of the following permissions: MANAGE_ORDERS. """ -type OrderDiscountDelete @doc(category: "Orders") { +type OrderDiscountDelete { """Order which has removed discount.""" order: Order orderErrors: [OrderError!]! @deprecated(reason: "Use `errors` field instead.") @@ -25394,7 +25744,7 @@ Update discount for the order line. Requires one of the following permissions: MANAGE_ORDERS. """ -type OrderLineDiscountUpdate @doc(category: "Orders") { +type OrderLineDiscountUpdate { """Order line which has been discounted.""" orderLine: OrderLine @@ -25409,7 +25759,7 @@ Remove discount applied to the order line. Requires one of the following permissions: MANAGE_ORDERS. """ -type OrderLineDiscountRemove @doc(category: "Orders") { +type OrderLineDiscountRemove { """Order line which has removed discount.""" orderLine: OrderLine @@ -25424,7 +25774,7 @@ Adds note to the order. Requires one of the following permissions: MANAGE_ORDERS. """ -type OrderNoteAdd @doc(category: "Orders") { +type OrderNoteAdd { """Order with the note added.""" order: Order @@ -25433,7 +25783,7 @@ type OrderNoteAdd @doc(category: "Orders") { errors: [OrderNoteAddError!]! } -type OrderNoteAddError @doc(category: "Orders") { +type OrderNoteAddError { """ Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. """ @@ -25446,12 +25796,12 @@ type OrderNoteAddError @doc(category: "Orders") { code: OrderNoteAddErrorCode } -enum OrderNoteAddErrorCode @doc(category: "Orders") { +enum OrderNoteAddErrorCode { GRAPHQL_ERROR REQUIRED } -input OrderNoteInput @doc(category: "Orders") { +input OrderNoteInput { """Note message.""" message: String! } @@ -25461,7 +25811,7 @@ Updates note of an order. Requires one of the following permissions: MANAGE_ORDERS. """ -type OrderNoteUpdate @doc(category: "Orders") { +type OrderNoteUpdate { """Order with the note updated.""" order: Order @@ -25470,7 +25820,7 @@ type OrderNoteUpdate @doc(category: "Orders") { errors: [OrderNoteUpdateError!]! } -type OrderNoteUpdateError @doc(category: "Orders") { +type OrderNoteUpdateError { """ Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. """ @@ -25483,7 +25833,7 @@ type OrderNoteUpdateError @doc(category: "Orders") { code: OrderNoteUpdateErrorCode } -enum OrderNoteUpdateErrorCode @doc(category: "Orders") { +enum OrderNoteUpdateErrorCode { GRAPHQL_ERROR NOT_FOUND REQUIRED @@ -25494,7 +25844,7 @@ Mark order as manually paid. Requires one of the following permissions: MANAGE_ORDERS. """ -type OrderMarkAsPaid @doc(category: "Orders") { +type OrderMarkAsPaid { """Order marked as paid.""" order: Order orderErrors: [OrderError!]! @deprecated(reason: "Use `errors` field instead.") @@ -25506,7 +25856,7 @@ Refund an order. Requires one of the following permissions: MANAGE_ORDERS. """ -type OrderRefund @doc(category: "Orders") { +type OrderRefund { """A refunded order.""" order: Order orderErrors: [OrderError!]! @deprecated(reason: "Use `errors` field instead.") @@ -25518,13 +25868,13 @@ Updates an order. Requires one of the following permissions: MANAGE_ORDERS. """ -type OrderUpdate @doc(category: "Orders") { +type OrderUpdate { orderErrors: [OrderError!]! @deprecated(reason: "Use `errors` field instead.") errors: [OrderError!]! order: Order } -input OrderUpdateInput @doc(category: "Orders") { +input OrderUpdateInput { """Billing address of the customer.""" billingAddress: AddressInput @@ -25568,14 +25918,14 @@ Updates a shipping method of the order. Requires shipping method ID to update, w Requires one of the following permissions: MANAGE_ORDERS. """ -type OrderUpdateShipping @doc(category: "Orders") { +type OrderUpdateShipping { """Order with updated shipping method.""" order: Order orderErrors: [OrderError!]! @deprecated(reason: "Use `errors` field instead.") errors: [OrderError!]! } -input OrderUpdateShippingInput @doc(category: "Orders") { +input OrderUpdateShippingInput { """ ID of the selected shipping method, pass null to remove currently assigned shipping method. """ @@ -25587,7 +25937,7 @@ Void an order. Requires one of the following permissions: MANAGE_ORDERS. """ -type OrderVoid @doc(category: "Orders") { +type OrderVoid { """A voided order.""" order: Order orderErrors: [OrderError!]! @deprecated(reason: "Use `errors` field instead.") @@ -25599,7 +25949,7 @@ Cancels orders. Requires one of the following permissions: MANAGE_ORDERS. """ -type OrderBulkCancel @doc(category: "Orders") { +type OrderBulkCancel { """Returns how many objects were affected.""" count: Int! orderErrors: [OrderError!]! @deprecated(reason: "Use `errors` field instead.") @@ -25611,7 +25961,7 @@ Creates multiple orders. Requires one of the following permissions: MANAGE_ORDERS_IMPORT. """ -type OrderBulkCreate @doc(category: "Orders") { +type OrderBulkCreate { """Returns how many objects were created.""" count: Int! @@ -25620,7 +25970,7 @@ type OrderBulkCreate @doc(category: "Orders") { errors: [OrderBulkCreateError!]! } -type OrderBulkCreateResult @doc(category: "Orders") { +type OrderBulkCreateResult { """Order data.""" order: Order @@ -25628,7 +25978,7 @@ type OrderBulkCreateResult @doc(category: "Orders") { errors: [OrderBulkCreateError!] } -type OrderBulkCreateError @doc(category: "Orders") { +type OrderBulkCreateError { """ Path to field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. """ @@ -25662,7 +26012,7 @@ enum OrderBulkCreateErrorCode { INCORRECT_CURRENCY } -input OrderBulkCreateInput @doc(category: "Orders") { +input OrderBulkCreateInput { """External ID of the order.""" externalReference: String @@ -25750,7 +26100,7 @@ input OrderBulkCreateInput @doc(category: "Orders") { invoices: [OrderBulkCreateInvoiceInput!] } -input OrderBulkCreateUserInput @doc(category: "Orders") { +input OrderBulkCreateUserInput { """Customer ID associated with the order.""" id: ID @@ -25761,7 +26111,7 @@ input OrderBulkCreateUserInput @doc(category: "Orders") { externalReference: String } -input OrderBulkCreateNoteInput @doc(category: "Orders") { +input OrderBulkCreateNoteInput { """Note message. Max characters: 255.""" message: String! @@ -25781,7 +26131,7 @@ input OrderBulkCreateNoteInput @doc(category: "Orders") { appId: ID } -input OrderBulkCreateOrderLineInput @doc(category: "Orders") { +input OrderBulkCreateOrderLineInput { """The ID of the product variant.""" variantId: ID @@ -25890,7 +26240,7 @@ input OrderBulkCreateOrderLineInput @doc(category: "Orders") { taxClassPrivateMetadata: [MetadataInput!] } -input TaxedMoneyInput @doc(category: "Orders") { +input TaxedMoneyInput { """Gross value of an item.""" gross: PositiveDecimal! @@ -25898,7 +26248,7 @@ input TaxedMoneyInput @doc(category: "Orders") { net: PositiveDecimal! } -input OrderBulkCreateDeliveryMethodInput @doc(category: "Orders") { +input OrderBulkCreateDeliveryMethodInput { """The ID of the warehouse.""" warehouseId: ID @@ -25938,7 +26288,7 @@ input OrderBulkCreateDeliveryMethodInput @doc(category: "Orders") { shippingTaxClassPrivateMetadata: [MetadataInput!] } -input OrderBulkCreateFulfillmentInput @doc(category: "Orders") { +input OrderBulkCreateFulfillmentInput { """Fulfillment's tracking code.""" trackingCode: String @@ -25946,7 +26296,7 @@ input OrderBulkCreateFulfillmentInput @doc(category: "Orders") { lines: [OrderBulkCreateFulfillmentLineInput!] } -input OrderBulkCreateFulfillmentLineInput @doc(category: "Orders") { +input OrderBulkCreateFulfillmentLineInput { """The ID of the product variant.""" variantId: ID @@ -25966,7 +26316,7 @@ input OrderBulkCreateFulfillmentLineInput @doc(category: "Orders") { orderLineIndex: Int! } -input OrderBulkCreateInvoiceInput @doc(category: "Orders") { +input OrderBulkCreateInvoiceInput { """The date, when the invoice was created.""" createdAt: DateTime! @@ -25991,13 +26341,7 @@ input OrderBulkCreateInvoiceInput @doc(category: "Orders") { privateMetadata: [MetadataInput!] } -""" -Determine how stocks should be updated, while processing an order. - - SKIP - stocks are not checked and not updated. - UPDATE - only do update, if there is enough stock. - FORCE - force update, if there is not enough stock. -""" +"Determine how stocks should be updated, while processing an order.\n\n SKIP - stocks are not checked and not updated.\n UPDATE - only do update, if there is enough stock.\n FORCE - force update, if there is not enough stock.\n " enum StockUpdatePolicyEnum { SKIP UPDATE @@ -26070,14 +26414,14 @@ Assigns storefront's navigation menus. Requires one of the following permissions: MANAGE_MENUS, MANAGE_SETTINGS. """ -type AssignNavigation @doc(category: "Menu") { +type AssignNavigation { """Assigned navigation menu.""" menu: Menu menuErrors: [MenuError!]! @deprecated(reason: "Use `errors` field instead.") errors: [MenuError!]! } -type MenuError @doc(category: "Menu") { +type MenuError { """ Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. """ @@ -26118,7 +26462,7 @@ Requires one of the following permissions: MANAGE_MENUS. Triggers the following webhook events: - MENU_CREATED (async): A menu was created. """ -type MenuCreate @doc(category: "Menu") @webhookEventsInfo(asyncEvents: [MENU_CREATED], syncEvents: []) { +type MenuCreate { menuErrors: [MenuError!]! @deprecated(reason: "Use `errors` field instead.") errors: [MenuError!]! menu: Menu @@ -26160,7 +26504,7 @@ Requires one of the following permissions: MANAGE_MENUS. Triggers the following webhook events: - MENU_DELETED (async): A menu was deleted. """ -type MenuDelete @doc(category: "Menu") @webhookEventsInfo(asyncEvents: [MENU_DELETED], syncEvents: []) { +type MenuDelete { menuErrors: [MenuError!]! @deprecated(reason: "Use `errors` field instead.") errors: [MenuError!]! menu: Menu @@ -26174,7 +26518,7 @@ Requires one of the following permissions: MANAGE_MENUS. Triggers the following webhook events: - MENU_DELETED (async): A menu was deleted. """ -type MenuBulkDelete @doc(category: "Menu") @webhookEventsInfo(asyncEvents: [MENU_DELETED], syncEvents: []) { +type MenuBulkDelete { """Returns how many objects were affected.""" count: Int! menuErrors: [MenuError!]! @deprecated(reason: "Use `errors` field instead.") @@ -26189,7 +26533,7 @@ Requires one of the following permissions: MANAGE_MENUS. Triggers the following webhook events: - MENU_UPDATED (async): A menu was updated. """ -type MenuUpdate @doc(category: "Menu") @webhookEventsInfo(asyncEvents: [MENU_UPDATED], syncEvents: []) { +type MenuUpdate { menuErrors: [MenuError!]! @deprecated(reason: "Use `errors` field instead.") errors: [MenuError!]! menu: Menu @@ -26211,7 +26555,7 @@ Requires one of the following permissions: MANAGE_MENUS. Triggers the following webhook events: - MENU_ITEM_CREATED (async): A menu item was created. """ -type MenuItemCreate @doc(category: "Menu") @webhookEventsInfo(asyncEvents: [MENU_ITEM_CREATED], syncEvents: []) { +type MenuItemCreate { menuErrors: [MenuError!]! @deprecated(reason: "Use `errors` field instead.") errors: [MenuError!]! menuItem: MenuItem @@ -26248,7 +26592,7 @@ Requires one of the following permissions: MANAGE_MENUS. Triggers the following webhook events: - MENU_ITEM_DELETED (async): A menu item was deleted. """ -type MenuItemDelete @doc(category: "Menu") @webhookEventsInfo(asyncEvents: [MENU_ITEM_DELETED], syncEvents: []) { +type MenuItemDelete { menuErrors: [MenuError!]! @deprecated(reason: "Use `errors` field instead.") errors: [MenuError!]! menuItem: MenuItem @@ -26262,7 +26606,7 @@ Requires one of the following permissions: MANAGE_MENUS. Triggers the following webhook events: - MENU_ITEM_DELETED (async): A menu item was deleted. """ -type MenuItemBulkDelete @doc(category: "Menu") @webhookEventsInfo(asyncEvents: [MENU_ITEM_DELETED], syncEvents: []) { +type MenuItemBulkDelete { """Returns how many objects were affected.""" count: Int! menuErrors: [MenuError!]! @deprecated(reason: "Use `errors` field instead.") @@ -26277,7 +26621,7 @@ Requires one of the following permissions: MANAGE_MENUS. Triggers the following webhook events: - MENU_ITEM_UPDATED (async): A menu item was updated. """ -type MenuItemUpdate @doc(category: "Menu") @webhookEventsInfo(asyncEvents: [MENU_ITEM_UPDATED], syncEvents: []) { +type MenuItemUpdate { menuErrors: [MenuError!]! @deprecated(reason: "Use `errors` field instead.") errors: [MenuError!]! menuItem: MenuItem @@ -26288,7 +26632,7 @@ Creates/updates translations for a menu item. Requires one of the following permissions: MANAGE_TRANSLATIONS. """ -type MenuItemTranslate @doc(category: "Menu") { +type MenuItemTranslate { translationErrors: [TranslationError!]! @deprecated(reason: "Use `errors` field instead.") errors: [TranslationError!]! menuItem: MenuItem @@ -26302,7 +26646,7 @@ Requires one of the following permissions: MANAGE_MENUS. Triggers the following webhook events: - MENU_ITEM_UPDATED (async): Optionally triggered when sort order or parent changed for menu item. """ -type MenuItemMove @doc(category: "Menu") @webhookEventsInfo(asyncEvents: [MENU_ITEM_UPDATED], syncEvents: []) { +type MenuItemMove { """Assigned menu to move within.""" menu: Menu menuErrors: [MenuError!]! @deprecated(reason: "Use `errors` field instead.") @@ -26330,7 +26674,7 @@ Requires one of the following permissions: MANAGE_ORDERS. Triggers the following webhook events: - INVOICE_REQUESTED (async): An invoice was requested. """ -type InvoiceRequest @doc(category: "Orders") @webhookEventsInfo(asyncEvents: [INVOICE_REQUESTED], syncEvents: []) { +type InvoiceRequest { """Order related to an invoice.""" order: Order invoiceErrors: [InvoiceError!]! @deprecated(reason: "Use `errors` field instead.") @@ -26338,7 +26682,7 @@ type InvoiceRequest @doc(category: "Orders") @webhookEventsInfo(asyncEvents: [IN invoice: Invoice } -type InvoiceError @doc(category: "Orders") { +type InvoiceError { """ Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. """ @@ -26351,7 +26695,7 @@ type InvoiceError @doc(category: "Orders") { code: InvoiceErrorCode! } -enum InvoiceErrorCode @doc(category: "Orders") { +enum InvoiceErrorCode { REQUIRED NOT_READY URL_NOT_SET @@ -26370,7 +26714,7 @@ Requires one of the following permissions: MANAGE_ORDERS. Triggers the following webhook events: - INVOICE_DELETED (async): An invoice was requested to delete. """ -type InvoiceRequestDelete @doc(category: "Orders") @webhookEventsInfo(asyncEvents: [INVOICE_DELETED], syncEvents: []) { +type InvoiceRequestDelete { invoiceErrors: [InvoiceError!]! @deprecated(reason: "Use `errors` field instead.") errors: [InvoiceError!]! invoice: Invoice @@ -26381,13 +26725,13 @@ Creates a ready to send invoice. Requires one of the following permissions: MANAGE_ORDERS. """ -type InvoiceCreate @doc(category: "Orders") { +type InvoiceCreate { invoiceErrors: [InvoiceError!]! @deprecated(reason: "Use `errors` field instead.") errors: [InvoiceError!]! invoice: Invoice } -input InvoiceCreateInput @doc(category: "Orders") { +input InvoiceCreateInput { """Invoice number.""" number: String! @@ -26414,7 +26758,7 @@ Deletes an invoice. Requires one of the following permissions: MANAGE_ORDERS. """ -type InvoiceDelete @doc(category: "Orders") { +type InvoiceDelete { invoiceErrors: [InvoiceError!]! @deprecated(reason: "Use `errors` field instead.") errors: [InvoiceError!]! invoice: Invoice @@ -26425,13 +26769,13 @@ Updates an invoice. Requires one of the following permissions: MANAGE_ORDERS. """ -type InvoiceUpdate @doc(category: "Orders") { +type InvoiceUpdate { invoiceErrors: [InvoiceError!]! @deprecated(reason: "Use `errors` field instead.") errors: [InvoiceError!]! invoice: Invoice } -input UpdateInvoiceInput @doc(category: "Orders") { +input UpdateInvoiceInput { """Invoice number""" number: String @@ -26462,7 +26806,7 @@ Triggers the following webhook events: - INVOICE_SENT (async): A notification for invoice send - NOTIFY_USER (async): A notification for invoice send """ -type InvoiceSendNotification @doc(category: "Orders") @webhookEventsInfo(asyncEvents: [INVOICE_SENT, NOTIFY_USER], syncEvents: []) { +type InvoiceSendNotification { invoiceErrors: [InvoiceError!]! @deprecated(reason: "Use `errors` field instead.") errors: [InvoiceError!]! invoice: Invoice @@ -26476,14 +26820,14 @@ Requires one of the following permissions: MANAGE_GIFT_CARD. Triggers the following webhook events: - GIFT_CARD_STATUS_CHANGED (async): A gift card was activated. """ -type GiftCardActivate @doc(category: "Gift cards") @webhookEventsInfo(asyncEvents: [GIFT_CARD_STATUS_CHANGED], syncEvents: []) { +type GiftCardActivate { """Activated gift card.""" giftCard: GiftCard giftCardErrors: [GiftCardError!]! @deprecated(reason: "Use `errors` field instead.") errors: [GiftCardError!]! } -type GiftCardError @doc(category: "Gift cards") { +type GiftCardError { """ Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. """ @@ -26499,7 +26843,7 @@ type GiftCardError @doc(category: "Gift cards") { tags: [String!] } -enum GiftCardErrorCode @doc(category: "Gift cards") { +enum GiftCardErrorCode { ALREADY_EXISTS GRAPHQL_ERROR INVALID @@ -26519,13 +26863,13 @@ Triggers the following webhook events: - GIFT_CARD_CREATED (async): A gift card was created. - NOTIFY_USER (async): A notification for created gift card. """ -type GiftCardCreate @doc(category: "Gift cards") @webhookEventsInfo(asyncEvents: [GIFT_CARD_CREATED, NOTIFY_USER], syncEvents: []) { +type GiftCardCreate { giftCardErrors: [GiftCardError!]! @deprecated(reason: "Use `errors` field instead.") errors: [GiftCardError!]! giftCard: GiftCard } -input GiftCardCreateInput @doc(category: "Gift cards") { +input GiftCardCreateInput { """The gift card tags to add.""" addTags: [String!] @@ -26550,11 +26894,19 @@ input GiftCardCreateInput @doc(category: "Gift cards") { """ privateMetadata: [MetadataInput!] - """Start date of the gift card in ISO 8601 format.""" - startDate: Date @deprecated + """ + Start date of the gift card in ISO 8601 format. + + DEPRECATED: this field will be removed. + """ + startDate: Date - """End date of the gift card in ISO 8601 format.""" - endDate: Date @deprecated(reason: "Use `expiryDate` from `expirySettings` instead.") + """ + End date of the gift card in ISO 8601 format. + + DEPRECATED: this field will be removed. Use `expiryDate` from `expirySettings` instead. + """ + endDate: Date """Balance of the gift card.""" balance: PriceInput! @@ -26568,8 +26920,12 @@ input GiftCardCreateInput @doc(category: "Gift cards") { """Determine if gift card is active.""" isActive: Boolean! - """Code to use the gift card.""" - code: String @deprecated(reason: "The code is now auto generated.") + """ + Code to use the gift card. + + DEPRECATED: this field will be removed. The code is now auto generated. + """ + code: String """The gift card note from the staff member.""" note: String @@ -26591,7 +26947,7 @@ Requires one of the following permissions: MANAGE_GIFT_CARD. Triggers the following webhook events: - GIFT_CARD_DELETED (async): A gift card was deleted. """ -type GiftCardDelete @doc(category: "Gift cards") @webhookEventsInfo(asyncEvents: [GIFT_CARD_DELETED], syncEvents: []) { +type GiftCardDelete { giftCardErrors: [GiftCardError!]! @deprecated(reason: "Use `errors` field instead.") errors: [GiftCardError!]! giftCard: GiftCard @@ -26605,7 +26961,7 @@ Requires one of the following permissions: MANAGE_GIFT_CARD. Triggers the following webhook events: - GIFT_CARD_STATUS_CHANGED (async): A gift card was deactivated. """ -type GiftCardDeactivate @doc(category: "Gift cards") @webhookEventsInfo(asyncEvents: [GIFT_CARD_STATUS_CHANGED], syncEvents: []) { +type GiftCardDeactivate { """Deactivated gift card.""" giftCard: GiftCard giftCardErrors: [GiftCardError!]! @deprecated(reason: "Use `errors` field instead.") @@ -26620,13 +26976,13 @@ Requires one of the following permissions: MANAGE_GIFT_CARD. Triggers the following webhook events: - GIFT_CARD_UPDATED (async): A gift card was updated. """ -type GiftCardUpdate @doc(category: "Gift cards") @webhookEventsInfo(asyncEvents: [GIFT_CARD_UPDATED], syncEvents: []) { +type GiftCardUpdate { giftCardErrors: [GiftCardError!]! @deprecated(reason: "Use `errors` field instead.") errors: [GiftCardError!]! giftCard: GiftCard } -input GiftCardUpdateInput @doc(category: "Gift cards") { +input GiftCardUpdateInput { """The gift card tags to add.""" addTags: [String!] @@ -26651,11 +27007,19 @@ input GiftCardUpdateInput @doc(category: "Gift cards") { """ privateMetadata: [MetadataInput!] - """Start date of the gift card in ISO 8601 format.""" - startDate: Date @deprecated + """ + Start date of the gift card in ISO 8601 format. + + DEPRECATED: this field will be removed. + """ + startDate: Date - """End date of the gift card in ISO 8601 format.""" - endDate: Date @deprecated(reason: "Use `expiryDate` from `expirySettings` instead.") + """ + End date of the gift card in ISO 8601 format. + + DEPRECATED: this field will be removed. Use `expiryDate` from `expirySettings` instead. + """ + endDate: Date """The gift card tags to remove.""" removeTags: [String!] @@ -26672,13 +27036,13 @@ Requires one of the following permissions: MANAGE_GIFT_CARD. Triggers the following webhook events: - NOTIFY_USER (async): A notification for gift card resend. """ -type GiftCardResend @doc(category: "Gift cards") @webhookEventsInfo(asyncEvents: [NOTIFY_USER], syncEvents: []) { +type GiftCardResend { """Gift card which has been sent.""" giftCard: GiftCard errors: [GiftCardError!]! } -input GiftCardResendInput @doc(category: "Gift cards") { +input GiftCardResendInput { """ID of a gift card to resend.""" id: ID! @@ -26697,7 +27061,7 @@ Requires one of the following permissions: MANAGE_GIFT_CARD. Triggers the following webhook events: - GIFT_CARD_UPDATED (async): A gift card was updated. """ -type GiftCardAddNote @doc(category: "Gift cards") @webhookEventsInfo(asyncEvents: [GIFT_CARD_UPDATED], syncEvents: []) { +type GiftCardAddNote { """Gift card with the note added.""" giftCard: GiftCard @@ -26706,7 +27070,7 @@ type GiftCardAddNote @doc(category: "Gift cards") @webhookEventsInfo(asyncEvents errors: [GiftCardError!]! } -input GiftCardAddNoteInput @doc(category: "Gift cards") { +input GiftCardAddNoteInput { """Note message.""" message: String! } @@ -26720,7 +27084,7 @@ Triggers the following webhook events: - GIFT_CARD_CREATED (async): A gift card was created. - NOTIFY_USER (async): A notification for created gift card. """ -type GiftCardBulkCreate @doc(category: "Gift cards") @webhookEventsInfo(asyncEvents: [GIFT_CARD_CREATED, NOTIFY_USER], syncEvents: []) { +type GiftCardBulkCreate { """Returns how many objects were created.""" count: Int! @@ -26729,7 +27093,7 @@ type GiftCardBulkCreate @doc(category: "Gift cards") @webhookEventsInfo(asyncEve errors: [GiftCardError!]! } -input GiftCardBulkCreateInput @doc(category: "Gift cards") { +input GiftCardBulkCreateInput { """The number of cards to issue.""" count: Int! @@ -26754,7 +27118,7 @@ Requires one of the following permissions: MANAGE_GIFT_CARD. Triggers the following webhook events: - GIFT_CARD_DELETED (async): A gift card was deleted. """ -type GiftCardBulkDelete @doc(category: "Gift cards") @webhookEventsInfo(asyncEvents: [GIFT_CARD_DELETED], syncEvents: []) { +type GiftCardBulkDelete { """Returns how many objects were affected.""" count: Int! errors: [GiftCardError!]! @@ -26768,7 +27132,7 @@ Requires one of the following permissions: MANAGE_GIFT_CARD. Triggers the following webhook events: - GIFT_CARD_STATUS_CHANGED (async): A gift card was activated. """ -type GiftCardBulkActivate @doc(category: "Gift cards") @webhookEventsInfo(asyncEvents: [GIFT_CARD_STATUS_CHANGED], syncEvents: []) { +type GiftCardBulkActivate { """Returns how many objects were affected.""" count: Int! errors: [GiftCardError!]! @@ -26782,7 +27146,7 @@ Requires one of the following permissions: MANAGE_GIFT_CARD. Triggers the following webhook events: - GIFT_CARD_STATUS_CHANGED (async): A gift card was deactivated. """ -type GiftCardBulkDeactivate @doc(category: "Gift cards") @webhookEventsInfo(asyncEvents: [GIFT_CARD_STATUS_CHANGED], syncEvents: []) { +type GiftCardBulkDeactivate { """Returns how many objects were affected.""" count: Int! errors: [GiftCardError!]! @@ -26890,7 +27254,7 @@ Triggers the following webhook events: - PROMOTION_CREATED (async): A promotion was created. - PROMOTION_STARTED (async): Optionally called if promotion was started. """ -type PromotionCreate @doc(category: "Discounts") @webhookEventsInfo(asyncEvents: [PROMOTION_CREATED, PROMOTION_STARTED], syncEvents: []) { +type PromotionCreate { errors: [PromotionCreateError!]! promotion: Promotion } @@ -26936,7 +27300,7 @@ enum PromotionCreateErrorCode { INVALID_GIFT_TYPE } -input PromotionCreateInput @doc(category: "Discounts") { +input PromotionCreateInput { """Promotion description.""" description: JSON @@ -26960,7 +27324,7 @@ input PromotionCreateInput @doc(category: "Discounts") { rules: [PromotionRuleInput!] } -input PromotionRuleInput @doc(category: "Discounts") { +input PromotionRuleInput { """Promotion rule name.""" name: String @@ -27013,7 +27377,7 @@ input PromotionRuleInput @doc(category: "Discounts") { gifts: [ID!] } -input CataloguePredicateInput @doc(category: "Discounts") { +input CataloguePredicateInput { """Defines the product variant conditions to be met.""" variantPredicate: ProductVariantWhereInput @@ -27033,7 +27397,7 @@ input CataloguePredicateInput @doc(category: "Discounts") { OR: [CataloguePredicateInput!] } -input OrderPredicateInput @doc(category: "Discounts") { +input OrderPredicateInput { """Defines the conditions related to checkout and order objects.""" discountedObjectPredicate: DiscountedObjectWhereInput @@ -27044,7 +27408,7 @@ input OrderPredicateInput @doc(category: "Discounts") { OR: [OrderPredicateInput!] } -input DiscountedObjectWhereInput @doc(category: "Discounts") { +input DiscountedObjectWhereInput { """Filter by the base subtotal price.""" baseSubtotalPrice: DecimalFilterInput @@ -27068,7 +27432,7 @@ Triggers the following webhook events: - PROMOTION_STARTED (async): Optionally called if promotion was started. - PROMOTION_ENDED (async): Optionally called if promotion was ended. """ -type PromotionUpdate @doc(category: "Discounts") @webhookEventsInfo(asyncEvents: [PROMOTION_UPDATED, PROMOTION_STARTED, PROMOTION_ENDED], syncEvents: []) { +type PromotionUpdate { errors: [PromotionUpdateError!]! promotion: Promotion } @@ -27115,7 +27479,7 @@ Requires one of the following permissions: MANAGE_DISCOUNTS. Triggers the following webhook events: - PROMOTION_DELETED (async): A promotion was deleted. """ -type PromotionDelete @doc(category: "Discounts") @webhookEventsInfo(asyncEvents: [PROMOTION_DELETED], syncEvents: []) { +type PromotionDelete { errors: [PromotionDeleteError!]! promotion: Promotion } @@ -27146,7 +27510,7 @@ Requires one of the following permissions: MANAGE_DISCOUNTS. Triggers the following webhook events: - PROMOTION_RULE_CREATED (async): A promotion rule was created. """ -type PromotionRuleCreate @doc(category: "Discounts") @webhookEventsInfo(asyncEvents: [PROMOTION_RULE_CREATED], syncEvents: []) { +type PromotionRuleCreate { errors: [PromotionRuleCreateError!]! promotionRule: PromotionRule } @@ -27253,7 +27617,7 @@ Requires one of the following permissions: MANAGE_DISCOUNTS. Triggers the following webhook events: - PROMOTION_RULE_UPDATED (async): A promotion rule was updated. """ -type PromotionRuleUpdate @doc(category: "Discounts") @webhookEventsInfo(asyncEvents: [PROMOTION_RULE_UPDATED], syncEvents: []) { +type PromotionRuleUpdate { errors: [PromotionRuleUpdateError!]! promotionRule: PromotionRule } @@ -27366,7 +27730,7 @@ Requires one of the following permissions: MANAGE_DISCOUNTS. Triggers the following webhook events: - PROMOTION_RULE_DELETED (async): A promotion rule was deleted. """ -type PromotionRuleDelete @doc(category: "Discounts") @webhookEventsInfo(asyncEvents: [PROMOTION_RULE_DELETED], syncEvents: []) { +type PromotionRuleDelete { errors: [PromotionRuleDeleteError!]! promotionRule: PromotionRule } @@ -27394,7 +27758,7 @@ Creates/updates translations for a promotion. Requires one of the following permissions: MANAGE_TRANSLATIONS. """ -type PromotionTranslate @doc(category: "Discounts") { +type PromotionTranslate { errors: [TranslationError!]! promotion: Promotion } @@ -27415,7 +27779,7 @@ Creates/updates translations for a promotion rule. Requires one of the following permissions: MANAGE_TRANSLATIONS. """ -type PromotionRuleTranslate @doc(category: "Discounts") { +type PromotionRuleTranslate { errors: [TranslationError!]! promotionRule: PromotionRule } @@ -27439,13 +27803,13 @@ Requires one of the following permissions: MANAGE_DISCOUNTS. Triggers the following webhook events: - PROMOTION_DELETED (async): A promotion was deleted. """ -type PromotionBulkDelete @doc(category: "Discounts") @webhookEventsInfo(asyncEvents: [PROMOTION_DELETED], syncEvents: []) { +type PromotionBulkDelete { """Returns how many objects were affected.""" count: Int! errors: [DiscountError!]! } -type DiscountError @doc(category: "Discounts") { +type DiscountError { """ Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. """ @@ -27471,7 +27835,7 @@ type DiscountError @doc(category: "Discounts") { voucherCodes: [String!] } -enum DiscountErrorCode @doc(category: "Discounts") { +enum DiscountErrorCode { ALREADY_EXISTS GRAPHQL_ERROR INVALID @@ -27491,13 +27855,13 @@ Requires one of the following permissions: MANAGE_DISCOUNTS. Triggers the following webhook events: - SALE_CREATED (async): A sale was created. """ -type SaleCreate @doc(category: "Discounts") @webhookEventsInfo(asyncEvents: [SALE_CREATED], syncEvents: []) { +type SaleCreate { discountErrors: [DiscountError!]! @deprecated(reason: "Use `errors` field instead.") errors: [DiscountError!]! sale: Sale } -input SaleInput @doc(category: "Discounts") { +input SaleInput { """Voucher name.""" name: String @@ -27532,7 +27896,7 @@ Requires one of the following permissions: MANAGE_DISCOUNTS. Triggers the following webhook events: - SALE_DELETED (async): A sale was deleted. """ -type SaleDelete @doc(category: "Discounts") @webhookEventsInfo(asyncEvents: [SALE_DELETED], syncEvents: []) { +type SaleDelete { discountErrors: [DiscountError!]! @deprecated(reason: "Use `errors` field instead.") errors: [DiscountError!]! sale: Sale @@ -27546,7 +27910,7 @@ Requires one of the following permissions: MANAGE_DISCOUNTS. Triggers the following webhook events: - SALE_DELETED (async): A sale was deleted. """ -type SaleBulkDelete @doc(category: "Discounts") @webhookEventsInfo(asyncEvents: [SALE_DELETED], syncEvents: []) { +type SaleBulkDelete { """Returns how many objects were affected.""" count: Int! discountErrors: [DiscountError!]! @deprecated(reason: "Use `errors` field instead.") @@ -27562,7 +27926,7 @@ Triggers the following webhook events: - SALE_UPDATED (async): A sale was updated. - SALE_TOGGLE (async): Optionally triggered when a sale is started or stopped. """ -type SaleUpdate @doc(category: "Discounts") @webhookEventsInfo(asyncEvents: [SALE_UPDATED, SALE_TOGGLE], syncEvents: []) { +type SaleUpdate { discountErrors: [DiscountError!]! @deprecated(reason: "Use `errors` field instead.") errors: [DiscountError!]! sale: Sale @@ -27576,14 +27940,14 @@ Requires one of the following permissions: MANAGE_DISCOUNTS. Triggers the following webhook events: - SALE_UPDATED (async): A sale was updated. """ -type SaleAddCatalogues @doc(category: "Discounts") @webhookEventsInfo(asyncEvents: [SALE_UPDATED], syncEvents: []) { +type SaleAddCatalogues { """Sale of which catalogue IDs will be modified.""" sale: Sale discountErrors: [DiscountError!]! @deprecated(reason: "Use `errors` field instead.") errors: [DiscountError!]! } -input CatalogueInput @doc(category: "Discounts") { +input CatalogueInput { """Products related to the discount.""" products: [ID!] @@ -27605,7 +27969,7 @@ Requires one of the following permissions: MANAGE_DISCOUNTS. Triggers the following webhook events: - SALE_UPDATED (async): A sale was updated. """ -type SaleRemoveCatalogues @doc(category: "Discounts") @webhookEventsInfo(asyncEvents: [SALE_UPDATED], syncEvents: []) { +type SaleRemoveCatalogues { """Sale of which catalogue IDs will be modified.""" sale: Sale discountErrors: [DiscountError!]! @deprecated(reason: "Use `errors` field instead.") @@ -27617,7 +27981,7 @@ Creates/updates translations for a sale. Requires one of the following permissions: MANAGE_TRANSLATIONS. """ -type SaleTranslate @doc(category: "Discounts") { +type SaleTranslate { translationErrors: [TranslationError!]! @deprecated(reason: "Use `errors` field instead.") errors: [TranslationError!]! sale: Sale @@ -27628,14 +27992,14 @@ Manage sale's availability in channels. Requires one of the following permissions: MANAGE_DISCOUNTS. """ -type SaleChannelListingUpdate @doc(category: "Discounts") { +type SaleChannelListingUpdate { """An updated sale instance.""" sale: Sale discountErrors: [DiscountError!]! @deprecated(reason: "Use `errors` field instead.") errors: [DiscountError!]! } -input SaleChannelListingInput @doc(category: "Discounts") { +input SaleChannelListingInput { """List of channels to which the sale should be assigned.""" addChannels: [SaleChannelListingAddInput!] @@ -27643,7 +28007,7 @@ input SaleChannelListingInput @doc(category: "Discounts") { removeChannels: [ID!] } -input SaleChannelListingAddInput @doc(category: "Discounts") { +input SaleChannelListingAddInput { """ID of a channel.""" channelId: ID! @@ -27660,21 +28024,25 @@ Triggers the following webhook events: - VOUCHER_CREATED (async): A voucher was created. - VOUCHER_CODES_CREATED (async): A voucher codes were created. """ -type VoucherCreate @doc(category: "Discounts") @webhookEventsInfo(asyncEvents: [VOUCHER_CREATED, VOUCHER_CODES_CREATED], syncEvents: []) { +type VoucherCreate { discountErrors: [DiscountError!]! @deprecated(reason: "Use `errors` field instead.") errors: [DiscountError!]! voucher: Voucher } -input VoucherInput @doc(category: "Discounts") { +input VoucherInput { """Voucher type: PRODUCT, CATEGORY SHIPPING or ENTIRE_ORDER.""" type: VoucherTypeEnum """Voucher name.""" name: String - """Code to use the voucher.""" - code: String @deprecated(reason: "Use `addCodes` instead.") + """ + Code to use the voucher. + + DEPRECATED: this field will be removed. Use `addCodes` instead. + """ + code: String """ List of codes to add. @@ -27744,7 +28112,7 @@ Requires one of the following permissions: MANAGE_DISCOUNTS. Triggers the following webhook events: - VOUCHER_DELETED (async): A voucher was deleted. """ -type VoucherDelete @doc(category: "Discounts") @webhookEventsInfo(asyncEvents: [VOUCHER_DELETED], syncEvents: []) { +type VoucherDelete { discountErrors: [DiscountError!]! @deprecated(reason: "Use `errors` field instead.") errors: [DiscountError!]! voucher: Voucher @@ -27758,7 +28126,7 @@ Requires one of the following permissions: MANAGE_DISCOUNTS. Triggers the following webhook events: - VOUCHER_DELETED (async): A voucher was deleted. """ -type VoucherBulkDelete @doc(category: "Discounts") @webhookEventsInfo(asyncEvents: [VOUCHER_DELETED], syncEvents: []) { +type VoucherBulkDelete { """Returns how many objects were affected.""" count: Int! discountErrors: [DiscountError!]! @deprecated(reason: "Use `errors` field instead.") @@ -27774,7 +28142,7 @@ Triggers the following webhook events: - VOUCHER_UPDATED (async): A voucher was updated. - VOUCHER_CODES_CREATED (async): A voucher code was created. """ -type VoucherUpdate @doc(category: "Discounts") @webhookEventsInfo(asyncEvents: [VOUCHER_UPDATED, VOUCHER_CODES_CREATED], syncEvents: []) { +type VoucherUpdate { discountErrors: [DiscountError!]! @deprecated(reason: "Use `errors` field instead.") errors: [DiscountError!]! voucher: Voucher @@ -27788,7 +28156,7 @@ Requires one of the following permissions: MANAGE_DISCOUNTS. Triggers the following webhook events: - VOUCHER_UPDATED (async): A voucher was updated. """ -type VoucherAddCatalogues @doc(category: "Discounts") @webhookEventsInfo(asyncEvents: [VOUCHER_UPDATED], syncEvents: []) { +type VoucherAddCatalogues { """Voucher of which catalogue IDs will be modified.""" voucher: Voucher discountErrors: [DiscountError!]! @deprecated(reason: "Use `errors` field instead.") @@ -27803,7 +28171,7 @@ Requires one of the following permissions: MANAGE_DISCOUNTS. Triggers the following webhook events: - VOUCHER_UPDATED (async): A voucher was updated. """ -type VoucherRemoveCatalogues @doc(category: "Discounts") @webhookEventsInfo(asyncEvents: [VOUCHER_UPDATED], syncEvents: []) { +type VoucherRemoveCatalogues { """Voucher of which catalogue IDs will be modified.""" voucher: Voucher discountErrors: [DiscountError!]! @deprecated(reason: "Use `errors` field instead.") @@ -27815,7 +28183,7 @@ Creates/updates translations for a voucher. Requires one of the following permissions: MANAGE_TRANSLATIONS. """ -type VoucherTranslate @doc(category: "Discounts") { +type VoucherTranslate { translationErrors: [TranslationError!]! @deprecated(reason: "Use `errors` field instead.") errors: [TranslationError!]! voucher: Voucher @@ -27829,14 +28197,14 @@ Requires one of the following permissions: MANAGE_DISCOUNTS. Triggers the following webhook events: - VOUCHER_UPDATED (async): A voucher was updated. """ -type VoucherChannelListingUpdate @doc(category: "Discounts") @webhookEventsInfo(asyncEvents: [VOUCHER_UPDATED], syncEvents: []) { +type VoucherChannelListingUpdate { """An updated voucher instance.""" voucher: Voucher discountErrors: [DiscountError!]! @deprecated(reason: "Use `errors` field instead.") errors: [DiscountError!]! } -input VoucherChannelListingInput @doc(category: "Discounts") { +input VoucherChannelListingInput { """List of channels to which the voucher should be assigned.""" addChannels: [VoucherChannelListingAddInput!] @@ -27844,7 +28212,7 @@ input VoucherChannelListingInput @doc(category: "Discounts") { removeChannels: [ID!] } -input VoucherChannelListingAddInput @doc(category: "Discounts") { +input VoucherChannelListingAddInput { """ID of a channel.""" channelId: ID! @@ -27865,13 +28233,13 @@ Requires one of the following permissions: MANAGE_DISCOUNTS. Triggers the following webhook events: - VOUCHER_CODES_DELETED (async): A voucher codes were deleted. """ -type VoucherCodeBulkDelete @doc(category: "Discounts") @webhookEventsInfo(asyncEvents: [VOUCHER_CODES_DELETED], syncEvents: []) { +type VoucherCodeBulkDelete { """Returns how many codes were deleted.""" count: Int! errors: [VoucherCodeBulkDeleteError!]! } -type VoucherCodeBulkDeleteError @doc(category: "Discounts") { +type VoucherCodeBulkDeleteError { """ Path to field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. """ @@ -27887,7 +28255,7 @@ type VoucherCodeBulkDeleteError @doc(category: "Discounts") { voucherCodes: [ID!] } -enum VoucherCodeBulkDeleteErrorCode @doc(category: "Discounts") { +enum VoucherCodeBulkDeleteErrorCode { GRAPHQL_ERROR NOT_FOUND INVALID @@ -27902,7 +28270,7 @@ Triggers the following webhook events: - NOTIFY_USER (async): A notification for the exported file. - PRODUCT_EXPORT_COMPLETED (async): A notification for the exported file. """ -type ExportProducts @doc(category: "Products") @webhookEventsInfo(asyncEvents: [NOTIFY_USER, PRODUCT_EXPORT_COMPLETED], syncEvents: []) { +type ExportProducts { """ The newly created export file job which is responsible for export data. """ @@ -27931,7 +28299,7 @@ enum ExportErrorCode { REQUIRED } -input ExportProductsInput @doc(category: "Products") { +input ExportProductsInput { """Determine which products should be exported.""" scope: ExportScope! @@ -27948,7 +28316,7 @@ input ExportProductsInput @doc(category: "Products") { fileType: FileTypesEnum! } -enum ExportScope @doc(category: "Products") { +enum ExportScope { """Export all products.""" ALL @@ -27959,7 +28327,7 @@ enum ExportScope @doc(category: "Products") { FILTER } -input ExportInfoInput @doc(category: "Products") { +input ExportInfoInput { """List of attribute ids witch should be exported.""" attributes: [ID!] @@ -27973,7 +28341,7 @@ input ExportInfoInput @doc(category: "Products") { fields: [ProductFieldEnum!] } -enum ProductFieldEnum @doc(category: "Products") { +enum ProductFieldEnum { NAME DESCRIPTION PRODUCT_TYPE @@ -28002,7 +28370,7 @@ Triggers the following webhook events: - NOTIFY_USER (async): A notification for the exported file. - GIFT_CARD_EXPORT_COMPLETED (async): A notification for the exported file. """ -type ExportGiftCards @doc(category: "Gift cards") @webhookEventsInfo(asyncEvents: [NOTIFY_USER, GIFT_CARD_EXPORT_COMPLETED], syncEvents: []) { +type ExportGiftCards { """ The newly created export file job which is responsible for export data. """ @@ -28010,7 +28378,7 @@ type ExportGiftCards @doc(category: "Gift cards") @webhookEventsInfo(asyncEvents errors: [ExportError!]! } -input ExportGiftCardsInput @doc(category: "Gift cards") { +input ExportGiftCardsInput { """Determine which gift cards should be exported.""" scope: ExportScope! @@ -28036,7 +28404,7 @@ Requires one of the following permissions: MANAGE_DISCOUNTS. Triggers the following webhook events: - VOUCHER_CODE_EXPORT_COMPLETED (async): A notification for the exported file. """ -type ExportVoucherCodes @doc(category: "Discounts") @webhookEventsInfo(asyncEvents: [VOUCHER_CODE_EXPORT_COMPLETED], syncEvents: []) { +type ExportVoucherCodes { """ The newly created export file job which is responsible for export data. """ @@ -28044,7 +28412,7 @@ type ExportVoucherCodes @doc(category: "Discounts") @webhookEventsInfo(asyncEven errors: [ExportError!]! } -input ExportVoucherCodesInput @doc(category: "Discounts") { +input ExportVoucherCodesInput { """ The ID of the voucher. If provided, exports all codes belonging to the voucher. """ @@ -28083,6 +28451,8 @@ type UploadError { enum UploadErrorCode { GRAPHQL_ERROR + INVALID_FILE_TYPE + UNSUPPORTED_MIME_TYPE } """ @@ -28091,14 +28461,14 @@ Adds a gift card or a voucher to a checkout. Triggers the following webhook events: - CHECKOUT_UPDATED (async): A checkout was updated. """ -type CheckoutAddPromoCode @doc(category: "Checkout") @webhookEventsInfo(asyncEvents: [CHECKOUT_UPDATED], syncEvents: []) { +type CheckoutAddPromoCode { """The checkout with the added gift card or voucher.""" checkout: Checkout checkoutErrors: [CheckoutError!]! @deprecated(reason: "Use `errors` field instead.") errors: [CheckoutError!]! } -type CheckoutError @doc(category: "Checkout") { +type CheckoutError { """ Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. """ @@ -28120,7 +28490,7 @@ type CheckoutError @doc(category: "Checkout") { addressType: AddressTypeEnum } -enum CheckoutErrorCode @doc(category: "Checkout") { +enum CheckoutErrorCode { BILLING_ADDRESS_NOT_SET CHECKOUT_NOT_FULLY_PAID GRAPHQL_ERROR @@ -28161,14 +28531,14 @@ Updates billing address in the existing checkout. Triggers the following webhook events: - CHECKOUT_UPDATED (async): A checkout was updated. """ -type CheckoutBillingAddressUpdate @doc(category: "Checkout") @webhookEventsInfo(asyncEvents: [CHECKOUT_UPDATED], syncEvents: []) { +type CheckoutBillingAddressUpdate { """An updated checkout.""" checkout: Checkout checkoutErrors: [CheckoutError!]! @deprecated(reason: "Use `errors` field instead.") errors: [CheckoutError!]! } -input CheckoutAddressValidationRules @doc(category: "Checkout") { +input CheckoutAddressValidationRules { """ Determines if an error should be raised when the provided address doesn't have all the required fields. The list of required fields is dynamic and depends on the country code (use the `addressValidationRules` query to fetch them). Note: country code is mandatory for all addresses regardless of the rules provided in this input. """ @@ -28200,7 +28570,7 @@ Triggers the following webhook events: - ORDER_FULLY_PAID (async): Triggered when newly created order is fully paid. - ORDER_CONFIRMED (async): Optionally triggered when newly created order are automatically marked as confirmed. """ -type CheckoutComplete @doc(category: "Checkout") @webhookEventsInfo(asyncEvents: [ORDER_CREATED, NOTIFY_USER, NOTIFY_USER, ORDER_UPDATED, ORDER_PAID, ORDER_FULLY_PAID, ORDER_CONFIRMED], syncEvents: [SHIPPING_LIST_METHODS_FOR_CHECKOUT, CHECKOUT_FILTER_SHIPPING_METHODS, CHECKOUT_CALCULATE_TAXES]) { +type CheckoutComplete { """Placed order.""" order: Order @@ -28223,7 +28593,7 @@ Create a new checkout. Triggers the following webhook events: - CHECKOUT_CREATED (async): A checkout was created. """ -type CheckoutCreate @doc(category: "Checkout") @webhookEventsInfo(asyncEvents: [CHECKOUT_CREATED], syncEvents: []) { +type CheckoutCreate { """ Whether the checkout was created or the current active one was returned. Refer to checkoutLinesAdd and checkoutLinesUpdate to merge a cart with an active checkout. """ @@ -28233,7 +28603,7 @@ type CheckoutCreate @doc(category: "Checkout") @webhookEventsInfo(asyncEvents: [ checkout: Checkout } -input CheckoutCreateInput @doc(category: "Checkout") { +input CheckoutCreateInput { """Slug of a channel in which to create a checkout.""" channel: String @@ -28296,7 +28666,7 @@ input CheckoutCreateInput @doc(category: "Checkout") { privateMetadata: [MetadataInput!] } -input CheckoutLineInput @doc(category: "Checkout") { +input CheckoutLineInput { """The number of items purchased.""" quantity: Int! @@ -28309,7 +28679,7 @@ input CheckoutLineInput @doc(category: "Checkout") { price: PositiveDecimal """ - Flag that allow force splitting the same variant into multiple lines by skipping the matching logic. + Flag that allow force splitting the same variant into multiple lines by skipping the matching logic. """ forceNewLine: Boolean = false @@ -28321,7 +28691,7 @@ input CheckoutLineInput @doc(category: "Checkout") { metadata: [MetadataInput!] } -input CheckoutValidationRules @doc(category: "Checkout") { +input CheckoutValidationRules { """ The validation rules that can be applied to provided shipping address data. """ @@ -28334,7 +28704,7 @@ input CheckoutValidationRules @doc(category: "Checkout") { } """Creates a new checkout from existing order.""" -type CheckoutCreateFromOrder @doc(category: "Checkout") { +type CheckoutCreateFromOrder { """Variants that were not attached to the checkout.""" unavailableVariants: [CheckoutCreateFromOrderUnavailableVariant!] @@ -28343,7 +28713,7 @@ type CheckoutCreateFromOrder @doc(category: "Checkout") { errors: [CheckoutCreateFromOrderError!]! } -type CheckoutCreateFromOrderUnavailableVariant @doc(category: "Checkout") { +type CheckoutCreateFromOrderUnavailableVariant { """The error message.""" message: String! @@ -28357,7 +28727,7 @@ type CheckoutCreateFromOrderUnavailableVariant @doc(category: "Checkout") { lineId: ID! } -enum CheckoutCreateFromOrderUnavailableVariantErrorCode @doc(category: "Checkout") { +enum CheckoutCreateFromOrderUnavailableVariantErrorCode { NOT_FOUND PRODUCT_UNAVAILABLE_FOR_PURCHASE UNAVAILABLE_VARIANT_IN_CHANNEL @@ -28366,7 +28736,7 @@ enum CheckoutCreateFromOrderUnavailableVariantErrorCode @doc(category: "Checkout INSUFFICIENT_STOCK } -type CheckoutCreateFromOrderError @doc(category: "Checkout") { +type CheckoutCreateFromOrderError { """ Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. """ @@ -28379,7 +28749,7 @@ type CheckoutCreateFromOrderError @doc(category: "Checkout") { code: CheckoutCreateFromOrderErrorCode! } -enum CheckoutCreateFromOrderErrorCode @doc(category: "Checkout") { +enum CheckoutCreateFromOrderErrorCode { GRAPHQL_ERROR INVALID ORDER_NOT_FOUND @@ -28395,7 +28765,7 @@ Requires one of the following permissions: AUTHENTICATED_APP, AUTHENTICATED_USER Triggers the following webhook events: - CHECKOUT_UPDATED (async): A checkout was updated. """ -type CheckoutCustomerAttach @doc(category: "Checkout") @webhookEventsInfo(asyncEvents: [CHECKOUT_UPDATED], syncEvents: []) { +type CheckoutCustomerAttach { """An updated checkout.""" checkout: Checkout checkoutErrors: [CheckoutError!]! @deprecated(reason: "Use `errors` field instead.") @@ -28410,7 +28780,7 @@ Requires one of the following permissions: AUTHENTICATED_APP, AUTHENTICATED_USER Triggers the following webhook events: - CHECKOUT_UPDATED (async): A checkout was updated. """ -type CheckoutCustomerDetach @doc(category: "Checkout") @webhookEventsInfo(asyncEvents: [CHECKOUT_UPDATED], syncEvents: []) { +type CheckoutCustomerDetach { """An updated checkout.""" checkout: Checkout checkoutErrors: [CheckoutError!]! @deprecated(reason: "Use `errors` field instead.") @@ -28425,7 +28795,7 @@ Added in Saleor 3.21. Triggers the following webhook events: - CHECKOUT_UPDATED (async): A checkout was updated. """ -type CheckoutCustomerNoteUpdate @doc(category: "Checkout") @webhookEventsInfo(asyncEvents: [CHECKOUT_UPDATED], syncEvents: []) { +type CheckoutCustomerNoteUpdate { """An updated checkout.""" checkout: Checkout checkoutErrors: [CheckoutError!]! @deprecated(reason: "Use `errors` field instead.") @@ -28438,7 +28808,7 @@ Updates email address in the existing checkout object. Triggers the following webhook events: - CHECKOUT_UPDATED (async): A checkout was updated. """ -type CheckoutEmailUpdate @doc(category: "Checkout") @webhookEventsInfo(asyncEvents: [CHECKOUT_UPDATED], syncEvents: []) { +type CheckoutEmailUpdate { """An updated checkout.""" checkout: Checkout checkoutErrors: [CheckoutError!]! @deprecated(reason: "Use `errors` field instead.") @@ -28451,7 +28821,7 @@ Deletes a CheckoutLine. Triggers the following webhook events: - CHECKOUT_UPDATED (async): A checkout was updated. """ -type CheckoutLineDelete @doc(category: "Checkout") @webhookEventsInfo(asyncEvents: [CHECKOUT_UPDATED], syncEvents: []) { +type CheckoutLineDelete { """An updated checkout.""" checkout: Checkout checkoutErrors: [CheckoutError!]! @deprecated(reason: "Use `errors` field instead.") @@ -28464,7 +28834,7 @@ Deletes checkout lines. Triggers the following webhook events: - CHECKOUT_UPDATED (async): A checkout was updated. """ -type CheckoutLinesDelete @doc(category: "Checkout") @webhookEventsInfo(asyncEvents: [CHECKOUT_UPDATED], syncEvents: []) { +type CheckoutLinesDelete { """An updated checkout.""" checkout: Checkout errors: [CheckoutError!]! @@ -28476,7 +28846,7 @@ Adds a checkout line to the existing checkout.If line was already in checkout, i Triggers the following webhook events: - CHECKOUT_UPDATED (async): A checkout was updated. """ -type CheckoutLinesAdd @doc(category: "Checkout") @webhookEventsInfo(asyncEvents: [CHECKOUT_UPDATED], syncEvents: []) { +type CheckoutLinesAdd { """An updated checkout.""" checkout: Checkout checkoutErrors: [CheckoutError!]! @deprecated(reason: "Use `errors` field instead.") @@ -28489,16 +28859,20 @@ Updates checkout line in the existing checkout. Triggers the following webhook events: - CHECKOUT_UPDATED (async): A checkout was updated. """ -type CheckoutLinesUpdate @doc(category: "Checkout") @webhookEventsInfo(asyncEvents: [CHECKOUT_UPDATED], syncEvents: []) { +type CheckoutLinesUpdate { """An updated checkout.""" checkout: Checkout checkoutErrors: [CheckoutError!]! @deprecated(reason: "Use `errors` field instead.") errors: [CheckoutError!]! } -input CheckoutLineUpdateInput @doc(category: "Checkout") { - """ID of the product variant.""" - variantId: ID @deprecated(reason: "Use `lineId` instead.") +input CheckoutLineUpdateInput { + """ + ID of the product variant. + + DEPRECATED: this field will be removed. Use `lineId` instead. + """ + variantId: ID """ The number of items purchased. Optional for apps, required for any other users. @@ -28529,7 +28903,7 @@ Remove a gift card or a voucher from a checkout. Triggers the following webhook events: - CHECKOUT_UPDATED (async): A checkout was updated. """ -type CheckoutRemovePromoCode @doc(category: "Checkout") @webhookEventsInfo(asyncEvents: [CHECKOUT_UPDATED], syncEvents: []) { +type CheckoutRemovePromoCode { """The checkout with the removed gift card or voucher.""" checkout: Checkout checkoutErrors: [CheckoutError!]! @deprecated(reason: "Use `errors` field instead.") @@ -28537,7 +28911,7 @@ type CheckoutRemovePromoCode @doc(category: "Checkout") @webhookEventsInfo(async } """Creates a new payment for given checkout.""" -type CheckoutPaymentCreate @doc(category: "Checkout") { +type CheckoutPaymentCreate { """Related checkout object.""" checkout: Checkout @@ -28547,7 +28921,7 @@ type CheckoutPaymentCreate @doc(category: "Checkout") { errors: [PaymentError!]! } -input PaymentInput @doc(category: "Payments") { +input PaymentInput { """A gateway to use with that payment.""" gateway: String! @@ -28567,7 +28941,7 @@ input PaymentInput @doc(category: "Payments") { returnUrl: String """Payment store type.""" - storePaymentMethod: StorePaymentMethodEnum = NONE + storePaymentMethod: StorePaymentMethodEnum """ User public metadata. Can be read by any API client authorized to read the object it's attached to. @@ -28578,7 +28952,7 @@ input PaymentInput @doc(category: "Payments") { } """Enum representing the type of a payment storage in a gateway.""" -enum StorePaymentMethodEnum @doc(category: "Payments") { +enum StorePaymentMethodEnum { """ On session storage type. The payment is stored only to be reused when the customer is present in the checkout flow. """ @@ -28599,7 +28973,7 @@ Updates shipping address in the existing checkout. Triggers the following webhook events: - CHECKOUT_UPDATED (async): A checkout was updated. """ -type CheckoutShippingAddressUpdate @doc(category: "Checkout") @webhookEventsInfo(asyncEvents: [CHECKOUT_UPDATED], syncEvents: []) { +type CheckoutShippingAddressUpdate { """An updated checkout.""" checkout: Checkout checkoutErrors: [CheckoutError!]! @deprecated(reason: "Use `errors` field instead.") @@ -28613,7 +28987,7 @@ Triggers the following webhook events: - SHIPPING_LIST_METHODS_FOR_CHECKOUT (sync): Triggered when updating the checkout shipping method with the external one. - CHECKOUT_UPDATED (async): A checkout was updated. """ -type CheckoutShippingMethodUpdate @doc(category: "Checkout") @webhookEventsInfo(asyncEvents: [CHECKOUT_UPDATED], syncEvents: [SHIPPING_LIST_METHODS_FOR_CHECKOUT]) { +type CheckoutShippingMethodUpdate { """An updated checkout.""" checkout: Checkout checkoutErrors: [CheckoutError!]! @deprecated(reason: "Use `errors` field instead.") @@ -28627,7 +29001,7 @@ Triggers the following webhook events: - SHIPPING_LIST_METHODS_FOR_CHECKOUT (sync): Triggered when updating the checkout delivery method with the external one. - CHECKOUT_UPDATED (async): A checkout was updated. """ -type CheckoutDeliveryMethodUpdate @doc(category: "Checkout") @webhookEventsInfo(asyncEvents: [CHECKOUT_UPDATED], syncEvents: [SHIPPING_LIST_METHODS_FOR_CHECKOUT]) { +type CheckoutDeliveryMethodUpdate { """An updated checkout.""" checkout: Checkout errors: [CheckoutError!]! @@ -28639,7 +29013,7 @@ Updates language code in the existing checkout. Triggers the following webhook events: - CHECKOUT_UPDATED (async): A checkout was updated. """ -type CheckoutLanguageCodeUpdate @doc(category: "Checkout") @webhookEventsInfo(asyncEvents: [CHECKOUT_UPDATED], syncEvents: []) { +type CheckoutLanguageCodeUpdate { """An updated checkout.""" checkout: Checkout checkoutErrors: [CheckoutError!]! @deprecated(reason: "Use `errors` field instead.") @@ -28661,13 +29035,13 @@ Triggers the following webhook events: - ORDER_FULLY_PAID (async): Triggered when newly created order is fully paid. - ORDER_CONFIRMED (async): Optionally triggered when newly created order are automatically marked as confirmed. """ -type OrderCreateFromCheckout @doc(category: "Orders") @webhookEventsInfo(asyncEvents: [ORDER_CREATED, NOTIFY_USER, NOTIFY_USER, ORDER_UPDATED, ORDER_PAID, ORDER_FULLY_PAID, ORDER_CONFIRMED], syncEvents: [SHIPPING_LIST_METHODS_FOR_CHECKOUT, CHECKOUT_FILTER_SHIPPING_METHODS, CHECKOUT_CALCULATE_TAXES]) { +type OrderCreateFromCheckout { """Placed order.""" order: Order errors: [OrderCreateFromCheckoutError!]! } -type OrderCreateFromCheckoutError @doc(category: "Orders") { +type OrderCreateFromCheckoutError { """ Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. """ @@ -28686,7 +29060,7 @@ type OrderCreateFromCheckoutError @doc(category: "Orders") { lines: [ID!] } -enum OrderCreateFromCheckoutErrorCode @doc(category: "Orders") { +enum OrderCreateFromCheckoutErrorCode { GRAPHQL_ERROR CHECKOUT_NOT_FOUND CHANNEL_INACTIVE @@ -28711,13 +29085,13 @@ Requires one of the following permissions: MANAGE_CHANNELS. Triggers the following webhook events: - CHANNEL_CREATED (async): A channel was created. """ -type ChannelCreate @doc(category: "Channels") @webhookEventsInfo(asyncEvents: [CHANNEL_CREATED], syncEvents: []) { +type ChannelCreate { channelErrors: [ChannelError!]! @deprecated(reason: "Use `errors` field instead.") errors: [ChannelError!]! channel: Channel } -type ChannelError @doc(category: "Channels") { +type ChannelError { """ Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. """ @@ -28736,7 +29110,7 @@ type ChannelError @doc(category: "Channels") { warehouses: [ID!] } -enum ChannelErrorCode @doc(category: "Channels") { +enum ChannelErrorCode { ALREADY_EXISTS GRAPHQL_ERROR INVALID @@ -28748,7 +29122,7 @@ enum ChannelErrorCode @doc(category: "Channels") { DUPLICATED_INPUT_ITEM } -input ChannelCreateInput @doc(category: "Channels") { +input ChannelCreateInput { """Determine if channel will be set active or not.""" isActive: Boolean @@ -28799,14 +29173,14 @@ input ChannelCreateInput @doc(category: "Channels") { defaultCountry: CountryCode! } -input StockSettingsInput @doc(category: "Products") { +input StockSettingsInput { """ Allocation strategy options. Strategy defines the preference of warehouses for allocations and reservations. """ allocationStrategy: AllocationStrategyEnum! } -input OrderSettingsInput @doc(category: "Orders") { +input OrderSettingsInput { """ When disabled, all new orders from checkout will be marked as unconfirmed. When enabled orders from checkout will become unfulfilled immediately. By default set to True """ @@ -28870,18 +29244,22 @@ input OrderSettingsInput @doc(category: "Orders") { useLegacyLineDiscountPropagation: Boolean } -input CheckoutSettingsInput @doc(category: "Checkout") { +input CheckoutSettingsInput { """ - Default `true`. Determines if the checkout mutations should use legacy error flow. In legacy flow, all mutations can raise an exception unrelated to the requested action - (e.g. out-of-stock exception when updating checkoutShippingAddress.) If `false`, the errors will be aggregated in `checkout.problems` field. Some of the `problems` can block the finalizing checkout process. The legacy flow will be removed in Saleor 4.0. The flow with `checkout.problems` will be the default one. + Default `true`. Determines if the checkout mutations should use legacy error flow. In legacy flow, all mutations can raise an exception unrelated to the requested action - (e.g. out-of-stock exception when updating checkoutShippingAddress.) If `false`, the errors will be aggregated in `checkout.problems` field. Some of the `problems` can block the finalizing checkout process. The legacy flow will be removed in Saleor 4.0. The flow with `checkout.problems` will be the default one. + + DEPRECATED: this field will be removed. """ - useLegacyErrorFlow: Boolean @deprecated + useLegacyErrorFlow: Boolean """ Default `false`. Determines if the paid checkouts should be automatically completed. This setting applies only to checkouts where payment was processed through transactions.When enabled, the checkout will be automatically completed once the checkout `authorize_status` reaches `FULL`. This occurs when the total sum of charged and authorized transaction amounts equals or exceeds the checkout's total amount. Added in Saleor 3.20. + + DEPRECATED: this field will be removed. Use `automatic_completion` instead. """ - automaticallyCompleteFullyPaidCheckouts: Boolean @deprecated(reason: "Use `automatic_completion` instead.") + automaticallyCompleteFullyPaidCheckouts: Boolean """ Settings for automatic completion of fully paid checkouts. @@ -28891,7 +29269,7 @@ input CheckoutSettingsInput @doc(category: "Checkout") { automaticCompletion: CheckoutAutoCompleteInput } -input CheckoutAutoCompleteInput @doc(category: "Checkout") { +input CheckoutAutoCompleteInput { """ Default `false`. Determines if the paid checkouts should be automatically completed. This setting applies only to checkouts where payment was processed through transactions.When enabled, the checkout will be automatically completed once the checkout `charge_status` reaches `FULL`. This occurs when the total sum of charged and authorized transaction amounts equals or exceeds the checkout's total amount. """ @@ -28908,7 +29286,7 @@ input CheckoutAutoCompleteInput @doc(category: "Checkout") { cutOffDate: DateTime } -input PaymentSettingsInput @doc(category: "Payments") { +input PaymentSettingsInput { """ Determine the transaction flow strategy to be used. Include the selected option in the payload sent to the payment app, as a requested action for the transaction. """ @@ -28948,13 +29326,13 @@ Triggers the following webhook events: - CHANNEL_UPDATED (async): A channel was updated. - CHANNEL_METADATA_UPDATED (async): Optionally triggered when public or private metadata is updated. """ -type ChannelUpdate @doc(category: "Channels") @webhookEventsInfo(asyncEvents: [CHANNEL_UPDATED, CHANNEL_METADATA_UPDATED], syncEvents: []) { +type ChannelUpdate { channelErrors: [ChannelError!]! @deprecated(reason: "Use `errors` field instead.") errors: [ChannelError!]! channel: Channel } -input ChannelUpdateInput @doc(category: "Channels") { +input ChannelUpdateInput { """Determine if channel will be set active or not.""" isActive: Boolean @@ -29016,13 +29394,13 @@ Requires one of the following permissions: MANAGE_CHANNELS. Triggers the following webhook events: - CHANNEL_DELETED (async): A channel was deleted. """ -type ChannelDelete @doc(category: "Channels") @webhookEventsInfo(asyncEvents: [CHANNEL_DELETED], syncEvents: []) { +type ChannelDelete { channelErrors: [ChannelError!]! @deprecated(reason: "Use `errors` field instead.") errors: [ChannelError!]! channel: Channel } -input ChannelDeleteInput @doc(category: "Channels") { +input ChannelDeleteInput { """ ID of a channel to migrate orders from the origin channel. Target channel has to have the same currency as the origin. """ @@ -29037,7 +29415,7 @@ Requires one of the following permissions: MANAGE_CHANNELS. Triggers the following webhook events: - CHANNEL_STATUS_CHANGED (async): A channel was activated. """ -type ChannelActivate @doc(category: "Channels") @webhookEventsInfo(asyncEvents: [CHANNEL_STATUS_CHANGED], syncEvents: []) { +type ChannelActivate { """Activated channel.""" channel: Channel channelErrors: [ChannelError!]! @deprecated(reason: "Use `errors` field instead.") @@ -29052,7 +29430,7 @@ Requires one of the following permissions: MANAGE_CHANNELS. Triggers the following webhook events: - CHANNEL_STATUS_CHANGED (async): A channel was deactivated. """ -type ChannelDeactivate @doc(category: "Channels") @webhookEventsInfo(asyncEvents: [CHANNEL_STATUS_CHANGED], syncEvents: []) { +type ChannelDeactivate { """Deactivated channel.""" channel: Channel channelErrors: [ChannelError!]! @deprecated(reason: "Use `errors` field instead.") @@ -29064,7 +29442,7 @@ Reorder the warehouses of a channel. Requires one of the following permissions: MANAGE_CHANNELS. """ -type ChannelReorderWarehouses @doc(category: "Channels") { +type ChannelReorderWarehouses { """Channel within the warehouses are reordered.""" channel: Channel errors: [ChannelError!]! @@ -29076,14 +29454,14 @@ Creates an attribute. Triggers the following webhook events: - ATTRIBUTE_CREATED (async): An attribute was created. """ -type AttributeCreate @doc(category: "Attributes") @webhookEventsInfo(asyncEvents: [ATTRIBUTE_CREATED], syncEvents: []) { +type AttributeCreate { """The created attribute.""" attribute: Attribute attributeErrors: [AttributeError!]! @deprecated(reason: "Use `errors` field instead.") errors: [AttributeError!]! } -type AttributeError @doc(category: "Attributes") { +type AttributeError { """ Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. """ @@ -29096,7 +29474,7 @@ type AttributeError @doc(category: "Attributes") { code: AttributeErrorCode! } -enum AttributeErrorCode @doc(category: "Attributes") { +enum AttributeErrorCode { ALREADY_EXISTS GRAPHQL_ERROR INVALID @@ -29110,7 +29488,7 @@ Represents an input for create of attribute. NOTE: Deprecated fields `filterableInStorefront`, `storefrontSearchPosition` and `availableInGrid` are not supported in bulk mutations: `attributeBulkCreate`, `attributeBulkUpdate`. """ -input AttributeCreateInput @doc(category: "Attributes") { +input AttributeCreateInput { """The input type to use for entering attribute values in the dashboard.""" inputType: AttributeInputTypeEnum @@ -29141,19 +29519,29 @@ input AttributeCreateInput @doc(category: "Attributes") { """Whether the attribute should be visible or not in storefront.""" visibleInStorefront: Boolean - """Whether the attribute can be filtered in storefront.""" - filterableInStorefront: Boolean @deprecated + """ + Whether the attribute can be filtered in storefront. + + DEPRECATED: this field will be removed. + """ + filterableInStorefront: Boolean """Whether the attribute can be filtered in dashboard.""" filterableInDashboard: Boolean """ The position of the attribute in the storefront navigation (0 by default). + + DEPRECATED: this field will be removed. """ - storefrontSearchPosition: Int @deprecated + storefrontSearchPosition: Int - """Whether the attribute can be displayed in the admin product list.""" - availableInGrid: Boolean @deprecated + """ + Whether the attribute can be displayed in the admin product list. + + DEPRECATED: this field will be removed. + """ + availableInGrid: Boolean """External ID of this attribute.""" externalReference: String @@ -29168,7 +29556,7 @@ input AttributeCreateInput @doc(category: "Attributes") { referenceTypes: [ID!] } -input AttributeValueCreateInput @doc(category: "Attributes") { +input AttributeValueCreateInput { """ Represent value of the attribute value (e.g. color values for swatch attributes). """ @@ -29178,13 +29566,17 @@ input AttributeValueCreateInput @doc(category: "Attributes") { Represents the text of the attribute value, includes formatting. Rich text format. For reference see https://editorjs.io/ + + DEPRECATED: this field will be removed.The rich text attribute hasn't got predefined value, so can be specified only from instance that supports the given attribute. """ - richText: JSONString @deprecated(reason: "The rich text attribute hasn't got predefined value, so can be specified only from instance that supports the given attribute.") + richText: JSONString """ Represents the text of the attribute value, plain text without formatting. + + DEPRECATED: this field will be removed.The plain text attribute hasn't got predefined value, so can be specified only from instance that supports the given attribute. """ - plainText: String @deprecated(reason: "The plain text attribute hasn't got predefined value, so can be specified only from instance that supports the given attribute.") + plainText: String """URL of the file attribute. Every time, a new value is created.""" fileUrl: String @@ -29207,7 +29599,7 @@ Requires one of the following permissions: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES. Triggers the following webhook events: - ATTRIBUTE_DELETED (async): An attribute was deleted. """ -type AttributeDelete @doc(category: "Attributes") @webhookEventsInfo(asyncEvents: [ATTRIBUTE_DELETED], syncEvents: []) { +type AttributeDelete { attributeErrors: [AttributeError!]! @deprecated(reason: "Use `errors` field instead.") errors: [AttributeError!]! attribute: Attribute @@ -29221,7 +29613,7 @@ Requires one of the following permissions: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES. Triggers the following webhook events: - ATTRIBUTE_UPDATED (async): An attribute was updated. """ -type AttributeUpdate @doc(category: "Attributes") @webhookEventsInfo(asyncEvents: [ATTRIBUTE_UPDATED], syncEvents: []) { +type AttributeUpdate { """The updated attribute.""" attribute: Attribute attributeErrors: [AttributeError!]! @deprecated(reason: "Use `errors` field instead.") @@ -29233,7 +29625,7 @@ Represents an input for update of attribute. NOTE: Deprecated fields `filterableInStorefront`, `storefrontSearchPosition` and `availableInGrid` are not supported in bulk mutations: `attributeBulkCreate`, `attributeBulkUpdate`. """ -input AttributeUpdateInput @doc(category: "Attributes") { +input AttributeUpdateInput { """Name of an attribute displayed in the interface.""" name: String @@ -29258,19 +29650,29 @@ input AttributeUpdateInput @doc(category: "Attributes") { """Whether the attribute should be visible or not in storefront.""" visibleInStorefront: Boolean - """Whether the attribute can be filtered in storefront.""" - filterableInStorefront: Boolean @deprecated + """ + Whether the attribute can be filtered in storefront. + + DEPRECATED: this field will be removed. + """ + filterableInStorefront: Boolean """Whether the attribute can be filtered in dashboard.""" filterableInDashboard: Boolean """ The position of the attribute in the storefront navigation (0 by default). + + DEPRECATED: this field will be removed. """ - storefrontSearchPosition: Int @deprecated + storefrontSearchPosition: Int - """Whether the attribute can be displayed in the admin product list.""" - availableInGrid: Boolean @deprecated + """ + Whether the attribute can be displayed in the admin product list. + + DEPRECATED: this field will be removed. + """ + availableInGrid: Boolean """External ID of this product.""" externalReference: String @@ -29285,7 +29687,7 @@ input AttributeUpdateInput @doc(category: "Attributes") { referenceTypes: [ID!] } -input AttributeValueUpdateInput @doc(category: "Attributes") { +input AttributeValueUpdateInput { """ Represent value of the attribute value (e.g. color values for swatch attributes). """ @@ -29295,13 +29697,17 @@ input AttributeValueUpdateInput @doc(category: "Attributes") { Represents the text of the attribute value, includes formatting. Rich text format. For reference see https://editorjs.io/ + + DEPRECATED: this field will be removed.The rich text attribute hasn't got predefined value, so can be specified only from instance that supports the given attribute. """ - richText: JSONString @deprecated(reason: "The rich text attribute hasn't got predefined value, so can be specified only from instance that supports the given attribute.") + richText: JSONString """ Represents the text of the attribute value, plain text without formatting. + + DEPRECATED: this field will be removed.The plain text attribute hasn't got predefined value, so can be specified only from instance that supports the given attribute. """ - plainText: String @deprecated(reason: "The plain text attribute hasn't got predefined value, so can be specified only from instance that supports the given attribute.") + plainText: String """URL of the file attribute. Every time, a new value is created.""" fileUrl: String @@ -29322,7 +29728,7 @@ Creates attributes. Triggers the following webhook events: - ATTRIBUTE_CREATED (async): An attribute was created. """ -type AttributeBulkCreate @doc(category: "Attributes") @webhookEventsInfo(asyncEvents: [ATTRIBUTE_CREATED], syncEvents: []) { +type AttributeBulkCreate { """Returns how many objects were created.""" count: Int! @@ -29331,7 +29737,7 @@ type AttributeBulkCreate @doc(category: "Attributes") @webhookEventsInfo(asyncEv errors: [AttributeBulkCreateError!]! } -type AttributeBulkCreateResult @doc(category: "Attributes") { +type AttributeBulkCreateResult { """Attribute data.""" attribute: Attribute @@ -29339,7 +29745,7 @@ type AttributeBulkCreateResult @doc(category: "Attributes") { errors: [AttributeBulkCreateError!] } -type AttributeBulkCreateError @doc(category: "Attributes") { +type AttributeBulkCreateError { """ Path to field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. """ @@ -29352,7 +29758,7 @@ type AttributeBulkCreateError @doc(category: "Attributes") { code: AttributeBulkCreateErrorCode! } -enum AttributeBulkCreateErrorCode @doc(category: "Attributes") { +enum AttributeBulkCreateErrorCode { ALREADY_EXISTS BLANK GRAPHQL_ERROR @@ -29372,7 +29778,7 @@ Triggers the following webhook events: - ATTRIBUTE_VALUE_CREATED (async): Called optionally when an attribute value was created. - ATTRIBUTE_VALUE_DELETED (async): Called optionally when an attribute value was deleted. """ -type AttributeBulkUpdate @doc(category: "Attributes") @webhookEventsInfo(asyncEvents: [ATTRIBUTE_UPDATED, ATTRIBUTE_VALUE_CREATED, ATTRIBUTE_VALUE_DELETED], syncEvents: []) { +type AttributeBulkUpdate { """Returns how many objects were updated.""" count: Int! @@ -29381,7 +29787,7 @@ type AttributeBulkUpdate @doc(category: "Attributes") @webhookEventsInfo(asyncEv errors: [AttributeBulkUpdateError!]! } -type AttributeBulkUpdateResult @doc(category: "Attributes") { +type AttributeBulkUpdateResult { """Attribute data.""" attribute: Attribute @@ -29389,7 +29795,7 @@ type AttributeBulkUpdateResult @doc(category: "Attributes") { errors: [AttributeBulkUpdateError!] } -type AttributeBulkUpdateError @doc(category: "Attributes") { +type AttributeBulkUpdateError { """ Path to field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. """ @@ -29402,7 +29808,7 @@ type AttributeBulkUpdateError @doc(category: "Attributes") { code: AttributeBulkUpdateErrorCode! } -enum AttributeBulkUpdateErrorCode @doc(category: "Attributes") { +enum AttributeBulkUpdateErrorCode { ALREADY_EXISTS BLANK GRAPHQL_ERROR @@ -29414,7 +29820,7 @@ enum AttributeBulkUpdateErrorCode @doc(category: "Attributes") { MAX_LENGTH } -input AttributeBulkUpdateInput @doc(category: "Attributes") { +input AttributeBulkUpdateInput { """ID of an attribute to update.""" id: ID @@ -29430,7 +29836,7 @@ Creates/updates translations for an attribute. Requires one of the following permissions: MANAGE_TRANSLATIONS. """ -type AttributeTranslate @doc(category: "Attributes") { +type AttributeTranslate { translationErrors: [TranslationError!]! @deprecated(reason: "Use `errors` field instead.") errors: [TranslationError!]! attribute: Attribute @@ -29441,7 +29847,7 @@ Creates/updates translations for attributes. Requires one of the following permissions: MANAGE_TRANSLATIONS. """ -type AttributeBulkTranslate @doc(category: "Attributes") { +type AttributeBulkTranslate { """Returns how many translations were created/updated.""" count: Int! @@ -29450,7 +29856,7 @@ type AttributeBulkTranslate @doc(category: "Attributes") { errors: [AttributeBulkTranslateError!]! } -type AttributeBulkTranslateResult @doc(category: "Attributes") { +type AttributeBulkTranslateResult { """Attribute translation data.""" translation: AttributeTranslation @@ -29471,14 +29877,14 @@ type AttributeBulkTranslateError { code: AttributeTranslateErrorCode! } -enum AttributeTranslateErrorCode @doc(category: "Attributes") { +enum AttributeTranslateErrorCode { GRAPHQL_ERROR INVALID NOT_FOUND REQUIRED } -input AttributeBulkTranslateInput @doc(category: "Attributes") { +input AttributeBulkTranslateInput { """Attribute ID.""" id: ID @@ -29500,7 +29906,7 @@ Requires one of the following permissions: MANAGE_PAGE_TYPES_AND_ATTRIBUTES. Triggers the following webhook events: - ATTRIBUTE_DELETED (async): An attribute was deleted. """ -type AttributeBulkDelete @doc(category: "Attributes") @webhookEventsInfo(asyncEvents: [ATTRIBUTE_DELETED], syncEvents: []) { +type AttributeBulkDelete { """Returns how many objects were affected.""" count: Int! attributeErrors: [AttributeError!]! @deprecated(reason: "Use `errors` field instead.") @@ -29516,7 +29922,7 @@ Triggers the following webhook events: - ATTRIBUTE_VALUE_DELETED (async): An attribute value was deleted. - ATTRIBUTE_UPDATED (async): An attribute was updated. """ -type AttributeValueBulkDelete @doc(category: "Attributes") @webhookEventsInfo(asyncEvents: [ATTRIBUTE_VALUE_DELETED, ATTRIBUTE_UPDATED], syncEvents: []) { +type AttributeValueBulkDelete { """Returns how many objects were affected.""" count: Int! attributeErrors: [AttributeError!]! @deprecated(reason: "Use `errors` field instead.") @@ -29532,7 +29938,7 @@ Triggers the following webhook events: - ATTRIBUTE_VALUE_CREATED (async): An attribute value was created. - ATTRIBUTE_UPDATED (async): An attribute was updated. """ -type AttributeValueCreate @doc(category: "Attributes") @webhookEventsInfo(asyncEvents: [ATTRIBUTE_VALUE_CREATED, ATTRIBUTE_UPDATED], syncEvents: []) { +type AttributeValueCreate { """The updated attribute.""" attribute: Attribute attributeErrors: [AttributeError!]! @deprecated(reason: "Use `errors` field instead.") @@ -29549,7 +29955,7 @@ Triggers the following webhook events: - ATTRIBUTE_VALUE_DELETED (async): An attribute value was deleted. - ATTRIBUTE_UPDATED (async): An attribute was updated. """ -type AttributeValueDelete @doc(category: "Attributes") @webhookEventsInfo(asyncEvents: [ATTRIBUTE_VALUE_DELETED, ATTRIBUTE_UPDATED], syncEvents: []) { +type AttributeValueDelete { """The updated attribute.""" attribute: Attribute attributeErrors: [AttributeError!]! @deprecated(reason: "Use `errors` field instead.") @@ -29566,7 +29972,7 @@ Triggers the following webhook events: - ATTRIBUTE_VALUE_UPDATED (async): An attribute value was updated. - ATTRIBUTE_UPDATED (async): An attribute was updated. """ -type AttributeValueUpdate @doc(category: "Attributes") @webhookEventsInfo(asyncEvents: [ATTRIBUTE_VALUE_UPDATED, ATTRIBUTE_UPDATED], syncEvents: []) { +type AttributeValueUpdate { """The updated attribute.""" attribute: Attribute attributeErrors: [AttributeError!]! @deprecated(reason: "Use `errors` field instead.") @@ -29579,7 +29985,7 @@ Creates/updates translations for attribute values. Requires one of the following permissions: MANAGE_TRANSLATIONS. """ -type AttributeValueBulkTranslate @doc(category: "Attributes") { +type AttributeValueBulkTranslate { """Returns how many translations were created/updated.""" count: Int! @@ -29588,7 +29994,7 @@ type AttributeValueBulkTranslate @doc(category: "Attributes") { errors: [AttributeValueBulkTranslateError!]! } -type AttributeValueBulkTranslateResult @doc(category: "Attributes") { +type AttributeValueBulkTranslateResult { """Attribute value translation data.""" translation: AttributeValueTranslation @@ -29609,14 +30015,14 @@ type AttributeValueBulkTranslateError { code: AttributeValueTranslateErrorCode! } -enum AttributeValueTranslateErrorCode @doc(category: "Attributes") { +enum AttributeValueTranslateErrorCode { GRAPHQL_ERROR INVALID NOT_FOUND REQUIRED } -input AttributeValueBulkTranslateInput @doc(category: "Attributes") { +input AttributeValueBulkTranslateInput { """Attribute value ID.""" id: ID @@ -29649,7 +30055,7 @@ Creates/updates translations for an attribute value. Requires one of the following permissions: MANAGE_TRANSLATIONS. """ -type AttributeValueTranslate @doc(category: "Attributes") { +type AttributeValueTranslate { translationErrors: [TranslationError!]! @deprecated(reason: "Use `errors` field instead.") errors: [TranslationError!]! attributeValue: AttributeValue @@ -29664,7 +30070,7 @@ Triggers the following webhook events: - ATTRIBUTE_VALUE_UPDATED (async): An attribute value was updated. - ATTRIBUTE_UPDATED (async): An attribute was updated. """ -type AttributeReorderValues @doc(category: "Attributes") @webhookEventsInfo(asyncEvents: [ATTRIBUTE_VALUE_UPDATED, ATTRIBUTE_UPDATED], syncEvents: []) { +type AttributeReorderValues { """Attribute from which values are reordered.""" attribute: Attribute attributeErrors: [AttributeError!]! @deprecated(reason: "Use `errors` field instead.") @@ -29677,7 +30083,7 @@ Creates a new app. Requires the following permissions: AUTHENTICATED_STAFF_USER Triggers the following webhook events: - APP_INSTALLED (async): An app was installed. """ -type AppCreate @doc(category: "Apps") @webhookEventsInfo(asyncEvents: [APP_INSTALLED], syncEvents: []) { +type AppCreate { """The newly created authentication token.""" authToken: String appErrors: [AppError!]! @deprecated(reason: "Use `errors` field instead.") @@ -29685,7 +30091,7 @@ type AppCreate @doc(category: "Apps") @webhookEventsInfo(asyncEvents: [APP_INSTA app: App } -type AppError @doc(category: "Apps") { +type AppError { """ Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. """ @@ -29701,7 +30107,7 @@ type AppError @doc(category: "Apps") { permissions: [PermissionEnum!] } -enum AppErrorCode @doc(category: "Apps") { +enum AppErrorCode { FORBIDDEN GRAPHQL_ERROR INVALID @@ -29719,7 +30125,7 @@ enum AppErrorCode @doc(category: "Apps") { UNSUPPORTED_SALEOR_VERSION } -input AppInput @doc(category: "Apps") { +input AppInput { """Name of the app.""" name: String @@ -29742,7 +30148,7 @@ Requires one of the following permissions: MANAGE_APPS. Triggers the following webhook events: - APP_UPDATED (async): An app was updated. """ -type AppUpdate @doc(category: "Apps") @webhookEventsInfo(asyncEvents: [APP_UPDATED], syncEvents: []) { +type AppUpdate { appErrors: [AppError!]! @deprecated(reason: "Use `errors` field instead.") errors: [AppError!]! app: App @@ -29756,7 +30162,7 @@ Requires one of the following permissions: MANAGE_APPS. Triggers the following webhook events: - APP_DELETED (async): An app was deleted. """ -type AppDelete @doc(category: "Apps") @webhookEventsInfo(asyncEvents: [APP_DELETED], syncEvents: []) { +type AppDelete { appErrors: [AppError!]! @deprecated(reason: "Use `errors` field instead.") errors: [AppError!]! app: App @@ -29767,7 +30173,7 @@ Creates a new token. Requires one of the following permissions: MANAGE_APPS. """ -type AppTokenCreate @doc(category: "Apps") { +type AppTokenCreate { """The newly created authentication token.""" authToken: String appErrors: [AppError!]! @deprecated(reason: "Use `errors` field instead.") @@ -29775,7 +30181,7 @@ type AppTokenCreate @doc(category: "Apps") { appToken: AppToken } -input AppTokenInput @doc(category: "Apps") { +input AppTokenInput { """Name of the token.""" name: String @@ -29788,14 +30194,14 @@ Deletes an authentication token assigned to app. Requires one of the following permissions: MANAGE_APPS. """ -type AppTokenDelete @doc(category: "Apps") { +type AppTokenDelete { appErrors: [AppError!]! @deprecated(reason: "Use `errors` field instead.") errors: [AppError!]! appToken: AppToken } """Verify provided app token.""" -type AppTokenVerify @doc(category: "Apps") { +type AppTokenVerify { """Determine if token is valid or not.""" valid: Boolean! appErrors: [AppError!]! @deprecated(reason: "Use `errors` field instead.") @@ -29805,13 +30211,13 @@ type AppTokenVerify @doc(category: "Apps") { """ Install new app by using app manifest. Requires the following permissions: AUTHENTICATED_STAFF_USER and MANAGE_APPS. """ -type AppInstall @doc(category: "Apps") { +type AppInstall { appErrors: [AppError!]! @deprecated(reason: "Use `errors` field instead.") errors: [AppError!]! appInstallation: AppInstallation } -input AppInstallInput @doc(category: "Apps") { +input AppInstallInput { """Name of the app to install.""" appName: String @@ -29833,7 +30239,7 @@ Requires one of the following permissions: MANAGE_APPS. Triggers the following webhook events: - APP_INSTALLED (async): An app was installed. """ -type AppRetryInstall @doc(category: "Apps") @webhookEventsInfo(asyncEvents: [APP_INSTALLED], syncEvents: []) { +type AppRetryInstall { appErrors: [AppError!]! @deprecated(reason: "Use `errors` field instead.") errors: [AppError!]! appInstallation: AppInstallation @@ -29844,7 +30250,7 @@ Deletes failed installation. Requires one of the following permissions: MANAGE_APPS. """ -type AppDeleteFailedInstallation @doc(category: "Apps") { +type AppDeleteFailedInstallation { appErrors: [AppError!]! @deprecated(reason: "Use `errors` field instead.") errors: [AppError!]! appInstallation: AppInstallation @@ -29855,7 +30261,7 @@ Fetch and validate manifest. Requires one of the following permissions: MANAGE_APPS. """ -type AppFetchManifest @doc(category: "Apps") { +type AppFetchManifest { """The validated manifest.""" manifest: Manifest appErrors: [AppError!]! @deprecated(reason: "Use `errors` field instead.") @@ -29863,7 +30269,7 @@ type AppFetchManifest @doc(category: "Apps") { } """The manifest definition.""" -type Manifest @doc(category: "Apps") { +type Manifest { """The identifier of the manifest for the app.""" identifier: String! @@ -29923,7 +30329,7 @@ type Manifest @doc(category: "Apps") { brand: AppManifestBrand } -type AppManifestExtension @doc(category: "Apps") { +type AppManifestExtension { """List of the app extension's permissions.""" permissions: [Permission!]! @@ -29961,7 +30367,7 @@ type AppManifestExtension @doc(category: "Apps") { settings: JSON! } -type AppManifestWebhook @doc(category: "Apps") { +type AppManifestWebhook { """The name of the webhook.""" name: String! @@ -29978,7 +30384,7 @@ type AppManifestWebhook @doc(category: "Apps") { targetUrl: String! } -type AppManifestRequiredSaleorVersion @doc(category: "Apps") { +type AppManifestRequiredSaleorVersion { """Required Saleor version as semver range.""" constraint: String! @@ -29987,13 +30393,13 @@ type AppManifestRequiredSaleorVersion @doc(category: "Apps") { } """Represents the app's manifest brand data.""" -type AppManifestBrand @doc(category: "Apps") { +type AppManifestBrand { """App's logos details.""" logo: AppManifestBrandLogo! } """Represents the app's manifest brand data.""" -type AppManifestBrandLogo @doc(category: "Apps") { +type AppManifestBrandLogo { """Data URL with a base64 encoded logo image.""" default( """ @@ -30004,7 +30410,7 @@ type AppManifestBrandLogo @doc(category: "Apps") { """ The format of the image. When not provided, format of the original image will be used. """ - format: IconThumbnailFormatEnum = ORIGINAL + format: IconThumbnailFormatEnum ): String! } @@ -30016,7 +30422,7 @@ Requires one of the following permissions: MANAGE_APPS. Triggers the following webhook events: - APP_STATUS_CHANGED (async): An app was activated. """ -type AppActivate @doc(category: "Apps") @webhookEventsInfo(asyncEvents: [APP_STATUS_CHANGED], syncEvents: []) { +type AppActivate { appErrors: [AppError!]! @deprecated(reason: "Use `errors` field instead.") errors: [AppError!]! app: App @@ -30030,7 +30436,7 @@ Requires one of the following permissions: MANAGE_APPS. Triggers the following webhook events: - APP_STATUS_CHANGED (async): An app was deactivated. """ -type AppDeactivate @doc(category: "Apps") @webhookEventsInfo(asyncEvents: [APP_STATUS_CHANGED], syncEvents: []) { +type AppDeactivate { appErrors: [AppError!]! @deprecated(reason: "Use `errors` field instead.") errors: [AppError!]! app: App @@ -30043,7 +30449,7 @@ Added in Saleor 3.21. Requires one of the following permissions: MANAGE_APPS. """ -type AppReenableSyncWebhooks @doc(category: "Apps") { +type AppReenableSyncWebhooks { """App for which sync webhooks were re-enabled.""" app: App appErrors: [AppError!]! @deprecated(reason: "Use `errors` field instead.") @@ -30051,7 +30457,7 @@ type AppReenableSyncWebhooks @doc(category: "Apps") { } """Create JWT token.""" -type CreateToken @doc(category: "Authentication") { +type CreateToken { """JWT token, required to authenticate.""" token: String @@ -30068,7 +30474,7 @@ type CreateToken @doc(category: "Authentication") { } """Represents errors in account mutations.""" -type AccountError @doc(category: "Users") { +type AccountError { """ Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. """ @@ -30084,7 +30490,7 @@ type AccountError @doc(category: "Users") { addressType: AddressTypeEnum } -enum AccountErrorCode @doc(category: "Users") { +enum AccountErrorCode { ACTIVATE_OWN_ACCOUNT ACTIVATE_SUPERUSER_ACCOUNT DUPLICATED_INPUT_ITEM @@ -30126,7 +30532,7 @@ enum AccountErrorCode @doc(category: "Users") { """ Refresh JWT token. Mutation tries to take refreshToken from the input. If it fails it will try to take `refreshToken` from the http-only cookie `refreshToken`. `csrfToken` is required when `refreshToken` is provided as a cookie. """ -type RefreshToken @doc(category: "Authentication") { +type RefreshToken { """JWT token, required to authenticate.""" token: String @@ -30137,7 +30543,7 @@ type RefreshToken @doc(category: "Authentication") { } """Verify JWT token.""" -type VerifyToken @doc(category: "Authentication") { +type VerifyToken { """User assigned to token.""" user: User @@ -30162,13 +30568,13 @@ Deactivate all JWT tokens of the currently authenticated user. Requires one of the following permissions: AUTHENTICATED_USER. """ -type DeactivateAllUserTokens @doc(category: "Authentication") { +type DeactivateAllUserTokens { accountErrors: [AccountError!]! @deprecated(reason: "Use `errors` field instead.") errors: [AccountError!]! } """Prepare external authentication URL for user by custom plugin.""" -type ExternalAuthenticationUrl @doc(category: "Authentication") { +type ExternalAuthenticationUrl { """The data returned by authentication plugin.""" authenticationData: JSONString accountErrors: [AccountError!]! @deprecated(reason: "Use `errors` field instead.") @@ -30176,7 +30582,7 @@ type ExternalAuthenticationUrl @doc(category: "Authentication") { } """Obtain external access tokens for user by custom plugin.""" -type ExternalObtainAccessTokens @doc(category: "Authentication") { +type ExternalObtainAccessTokens { """The token, required to authenticate.""" token: String @@ -30193,7 +30599,7 @@ type ExternalObtainAccessTokens @doc(category: "Authentication") { } """Refresh user's access by custom plugin.""" -type ExternalRefresh @doc(category: "Authentication") { +type ExternalRefresh { """The token, required to authenticate.""" token: String @@ -30210,7 +30616,7 @@ type ExternalRefresh @doc(category: "Authentication") { } """Logout user by custom plugin.""" -type ExternalLogout @doc(category: "Authentication") { +type ExternalLogout { """The data returned by authentication plugin.""" logoutData: JSONString accountErrors: [AccountError!]! @deprecated(reason: "Use `errors` field instead.") @@ -30218,7 +30624,7 @@ type ExternalLogout @doc(category: "Authentication") { } """Verify external authentication data by plugin.""" -type ExternalVerify @doc(category: "Authentication") { +type ExternalVerify { """User assigned to data.""" user: User @@ -30239,7 +30645,7 @@ Triggers the following webhook events: - ACCOUNT_SET_PASSWORD_REQUESTED (async): Setting a new password for the account is requested. - STAFF_SET_PASSWORD_REQUESTED (async): Setting a new password for the staff account is requested. """ -type RequestPasswordReset @doc(category: "Users") @webhookEventsInfo(asyncEvents: [NOTIFY_USER, ACCOUNT_SET_PASSWORD_REQUESTED, STAFF_SET_PASSWORD_REQUESTED], syncEvents: []) { +type RequestPasswordReset { accountErrors: [AccountError!]! @deprecated(reason: "Use `errors` field instead.") errors: [AccountError!]! } @@ -30253,11 +30659,11 @@ Triggers the following webhook events: - NOTIFY_USER (async): A notification for account confirmation. - ACCOUNT_CONFIRMATION_REQUESTED (async): An account confirmation was requested. This event is always sent regardless of settings. """ -type SendConfirmationEmail @doc(category: "Users") @webhookEventsInfo(asyncEvents: [NOTIFY_USER, ACCOUNT_CONFIRMATION_REQUESTED], syncEvents: []) { +type SendConfirmationEmail { errors: [SendConfirmationEmailError!]! } -type SendConfirmationEmailError @doc(category: "Users") { +type SendConfirmationEmailError { """ Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. """ @@ -30270,7 +30676,7 @@ type SendConfirmationEmailError @doc(category: "Users") { code: SendConfirmationEmailErrorCode! } -enum SendConfirmationEmailErrorCode @doc(category: "Users") { +enum SendConfirmationEmailErrorCode { INVALID ACCOUNT_CONFIRMED CONFIRMATION_ALREADY_REQUESTED @@ -30283,7 +30689,7 @@ Confirm user account with token sent by email during registration. Triggers the following webhook events: - ACCOUNT_CONFIRMED (async): Account was confirmed. """ -type ConfirmAccount @doc(category: "Users") @webhookEventsInfo(asyncEvents: [ACCOUNT_CONFIRMED], syncEvents: []) { +type ConfirmAccount { """An activated user account.""" user: User accountErrors: [AccountError!]! @deprecated(reason: "Use `errors` field instead.") @@ -30293,7 +30699,7 @@ type ConfirmAccount @doc(category: "Users") @webhookEventsInfo(asyncEvents: [ACC """ Sets the user's password from the token sent by email using the RequestPasswordReset mutation. """ -type SetPassword @doc(category: "Users") { +type SetPassword { """JWT token, required to authenticate.""" token: String @@ -30314,7 +30720,7 @@ Change the password of the logged in user. Requires one of the following permissions: AUTHENTICATED_USER. """ -type PasswordChange @doc(category: "Users") { +type PasswordChange { """A user instance with a new password.""" user: User accountErrors: [AccountError!]! @deprecated(reason: "Use `errors` field instead.") @@ -30330,7 +30736,7 @@ Triggers the following webhook events: - NOTIFY_USER (async): A notification for account email change. - ACCOUNT_CHANGE_EMAIL_REQUESTED (async): An account email change was requested. """ -type RequestEmailChange @doc(category: "Users") @webhookEventsInfo(asyncEvents: [NOTIFY_USER, ACCOUNT_CHANGE_EMAIL_REQUESTED], syncEvents: []) { +type RequestEmailChange { """A user instance.""" user: User accountErrors: [AccountError!]! @deprecated(reason: "Use `errors` field instead.") @@ -30347,7 +30753,7 @@ Triggers the following webhook events: - NOTIFY_USER (async): A notification that account email change was confirmed. - ACCOUNT_EMAIL_CHANGED (async): An account email was changed. """ -type ConfirmEmailChange @doc(category: "Users") @webhookEventsInfo(asyncEvents: [CUSTOMER_UPDATED, NOTIFY_USER, ACCOUNT_EMAIL_CHANGED], syncEvents: []) { +type ConfirmEmailChange { """A user instance with a new email.""" user: User accountErrors: [AccountError!]! @deprecated(reason: "Use `errors` field instead.") @@ -30363,7 +30769,7 @@ Triggers the following webhook events: - CUSTOMER_UPDATED (async): A customer account was updated. - ADDRESS_CREATED (async): An address was created. """ -type AccountAddressCreate @doc(category: "Users") @webhookEventsInfo(asyncEvents: [CUSTOMER_UPDATED, ADDRESS_CREATED], syncEvents: []) { +type AccountAddressCreate { """A user instance for which the address was created.""" user: User accountErrors: [AccountError!]! @deprecated(reason: "Use `errors` field instead.") @@ -30377,7 +30783,7 @@ Updates an address of the logged-in user. Requires one of the following permissi Triggers the following webhook events: - ADDRESS_UPDATED (async): An address was updated. """ -type AccountAddressUpdate @doc(category: "Users") @webhookEventsInfo(asyncEvents: [ADDRESS_UPDATED], syncEvents: []) { +type AccountAddressUpdate { """A user object for which the address was edited.""" user: User accountErrors: [AccountError!]! @deprecated(reason: "Use `errors` field instead.") @@ -30391,7 +30797,7 @@ Deletes an address of the logged-in user. Requires one of the following permissi Triggers the following webhook events: - ADDRESS_DELETED (async): An address was deleted. """ -type AccountAddressDelete @doc(category: "Users") @webhookEventsInfo(asyncEvents: [ADDRESS_DELETED], syncEvents: []) { +type AccountAddressDelete { """A user instance for which the address was deleted.""" user: User accountErrors: [AccountError!]! @deprecated(reason: "Use `errors` field instead.") @@ -30407,7 +30813,7 @@ Requires one of the following permissions: AUTHENTICATED_USER. Triggers the following webhook events: - CUSTOMER_UPDATED (async): A customer's address was updated. """ -type AccountSetDefaultAddress @doc(category: "Users") @webhookEventsInfo(asyncEvents: [CUSTOMER_UPDATED], syncEvents: []) { +type AccountSetDefaultAddress { """An updated user instance.""" user: User accountErrors: [AccountError!]! @deprecated(reason: "Use `errors` field instead.") @@ -30422,7 +30828,7 @@ Triggers the following webhook events: - NOTIFY_USER (async): A notification for account confirmation. - ACCOUNT_CONFIRMATION_REQUESTED (async): An user confirmation was requested. This event is always sent regardless of settings. """ -type AccountRegister @doc(category: "Users") @webhookEventsInfo(asyncEvents: [CUSTOMER_CREATED, NOTIFY_USER, ACCOUNT_CONFIRMATION_REQUESTED], syncEvents: []) { +type AccountRegister { user: User @deprecated(reason: "The field always returns a `User` object constructed from the input data. The `user.id` is always empty. To determine whether the user exists in Saleor, query via an external app with the required permissions.") """Informs whether users need to confirm their email address.""" @@ -30432,7 +30838,7 @@ type AccountRegister @doc(category: "Users") @webhookEventsInfo(asyncEvents: [CU } """Fields required to create a user.""" -input AccountRegisterInput @doc(category: "Users") { +input AccountRegisterInput { """Given name.""" firstName: String @@ -30475,14 +30881,14 @@ Triggers the following webhook events: - CUSTOMER_UPDATED (async): A customer account was updated. - CUSTOMER_METADATA_UPDATED (async): Optionally called when customer's metadata was updated. """ -type AccountUpdate @doc(category: "Users") @webhookEventsInfo(asyncEvents: [CUSTOMER_UPDATED, CUSTOMER_METADATA_UPDATED], syncEvents: []) { +type AccountUpdate { accountErrors: [AccountError!]! @deprecated(reason: "Use `errors` field instead.") errors: [AccountError!]! user: User } """Fields required to update the user.""" -input AccountInput @doc(category: "Users") { +input AccountInput { """Given name.""" firstName: String @@ -30515,7 +30921,7 @@ Triggers the following webhook events: - NOTIFY_USER (async): A notification for account delete request. - ACCOUNT_DELETE_REQUESTED (async): An account delete requested. """ -type AccountRequestDeletion @doc(category: "Users") @webhookEventsInfo(asyncEvents: [NOTIFY_USER, ACCOUNT_DELETE_REQUESTED], syncEvents: []) { +type AccountRequestDeletion { accountErrors: [AccountError!]! @deprecated(reason: "Use `errors` field instead.") errors: [AccountError!]! } @@ -30528,7 +30934,7 @@ Requires one of the following permissions: AUTHENTICATED_USER. Triggers the following webhook events: - ACCOUNT_DELETED (async): Account was deleted. """ -type AccountDelete @doc(category: "Users") @webhookEventsInfo(asyncEvents: [ACCOUNT_DELETED], syncEvents: []) { +type AccountDelete { accountErrors: [AccountError!]! @deprecated(reason: "Use `errors` field instead.") errors: [AccountError!]! user: User @@ -30542,7 +30948,7 @@ Requires one of the following permissions: MANAGE_USERS. Triggers the following webhook events: - ADDRESS_CREATED (async): A new address was created. """ -type AddressCreate @doc(category: "Users") @webhookEventsInfo(asyncEvents: [ADDRESS_CREATED], syncEvents: []) { +type AddressCreate { """A user instance for which the address was created.""" user: User accountErrors: [AccountError!]! @deprecated(reason: "Use `errors` field instead.") @@ -30558,7 +30964,7 @@ Requires one of the following permissions: MANAGE_USERS. Triggers the following webhook events: - ADDRESS_UPDATED (async): An address was updated. """ -type AddressUpdate @doc(category: "Users") @webhookEventsInfo(asyncEvents: [ADDRESS_UPDATED], syncEvents: []) { +type AddressUpdate { """A user object for which the address was edited.""" user: User accountErrors: [AccountError!]! @deprecated(reason: "Use `errors` field instead.") @@ -30574,7 +30980,7 @@ Requires one of the following permissions: MANAGE_USERS. Triggers the following webhook events: - ADDRESS_DELETED (async): An address was deleted. """ -type AddressDelete @doc(category: "Users") @webhookEventsInfo(asyncEvents: [ADDRESS_DELETED], syncEvents: []) { +type AddressDelete { """A user instance for which the address was deleted.""" user: User accountErrors: [AccountError!]! @deprecated(reason: "Use `errors` field instead.") @@ -30590,7 +30996,7 @@ Requires one of the following permissions: MANAGE_USERS. Triggers the following webhook events: - CUSTOMER_UPDATED (async): A customer was updated. """ -type AddressSetDefault @doc(category: "Users") @webhookEventsInfo(asyncEvents: [CUSTOMER_UPDATED], syncEvents: []) { +type AddressSetDefault { """An updated user instance.""" user: User accountErrors: [AccountError!]! @deprecated(reason: "Use `errors` field instead.") @@ -30608,13 +31014,13 @@ Triggers the following webhook events: - NOTIFY_USER (async): A notification for setting the password. - ACCOUNT_SET_PASSWORD_REQUESTED (async): Setting a new password for the account is requested. """ -type CustomerCreate @doc(category: "Users") @webhookEventsInfo(asyncEvents: [CUSTOMER_CREATED, CUSTOMER_METADATA_UPDATED, NOTIFY_USER, ACCOUNT_SET_PASSWORD_REQUESTED], syncEvents: []) { +type CustomerCreate { accountErrors: [AccountError!]! @deprecated(reason: "Use `errors` field instead.") errors: [AccountError!]! user: User } -input UserCreateInput @doc(category: "Users") { +input UserCreateInput { """Billing address of the customer.""" defaultBillingAddress: AddressInput @@ -30656,8 +31062,14 @@ input UserCreateInput @doc(category: "Users") { """External ID of the customer.""" externalReference: String - """User account is confirmed.""" - isConfirmed: Boolean @deprecated(reason: "The user will be always set as unconfirmed. The confirmation will take place when the user sets the password.") + """ + User account is confirmed. + + DEPRECATED: this field will be removed. + + The user will be always set as unconfirmed. The confirmation will take place when the user sets the password. + """ + isConfirmed: Boolean """ URL of a view where users should be redirected to set the password. URL in RFC 1808 format. @@ -30679,13 +31091,13 @@ Triggers the following webhook events: - CUSTOMER_UPDATED (async): A new customer account was updated. - CUSTOMER_METADATA_UPDATED (async): Optionally called when customer's metadata was updated. """ -type CustomerUpdate @doc(category: "Users") @webhookEventsInfo(asyncEvents: [CUSTOMER_UPDATED, CUSTOMER_METADATA_UPDATED], syncEvents: []) { +type CustomerUpdate { accountErrors: [AccountError!]! @deprecated(reason: "Use `errors` field instead.") errors: [AccountError!]! user: User } -input CustomerInput @doc(category: "Users") { +input CustomerInput { """Billing address of the customer.""" defaultBillingAddress: AddressInput @@ -30739,7 +31151,7 @@ Requires one of the following permissions: MANAGE_USERS. Triggers the following webhook events: - CUSTOMER_DELETED (async): A customer account was deleted. """ -type CustomerDelete @doc(category: "Users") @webhookEventsInfo(asyncEvents: [CUSTOMER_DELETED], syncEvents: []) { +type CustomerDelete { accountErrors: [AccountError!]! @deprecated(reason: "Use `errors` field instead.") errors: [AccountError!]! user: User @@ -30753,7 +31165,7 @@ Requires one of the following permissions: MANAGE_USERS. Triggers the following webhook events: - CUSTOMER_DELETED (async): A customer account was deleted. """ -type CustomerBulkDelete @doc(category: "Users") @webhookEventsInfo(asyncEvents: [CUSTOMER_DELETED], syncEvents: []) { +type CustomerBulkDelete { """Returns how many objects were affected.""" count: Int! accountErrors: [AccountError!]! @deprecated(reason: "Use `errors` field instead.") @@ -30769,7 +31181,7 @@ Triggers the following webhook events: - CUSTOMER_UPDATED (async): A customer account was updated. - CUSTOMER_METADATA_UPDATED (async): Optionally called when customer's metadata was updated. """ -type CustomerBulkUpdate @doc(category: "Users") @webhookEventsInfo(asyncEvents: [CUSTOMER_UPDATED, CUSTOMER_METADATA_UPDATED], syncEvents: []) { +type CustomerBulkUpdate { """Returns how many objects were created.""" count: Int! @@ -30778,7 +31190,7 @@ type CustomerBulkUpdate @doc(category: "Users") @webhookEventsInfo(asyncEvents: errors: [CustomerBulkUpdateError!]! } -type CustomerBulkResult @doc(category: "Users") { +type CustomerBulkResult { """Customer data.""" customer: User @@ -30786,7 +31198,7 @@ type CustomerBulkResult @doc(category: "Users") { errors: [CustomerBulkUpdateError!] } -type CustomerBulkUpdateError @doc(category: "Users") { +type CustomerBulkUpdateError { """ Path to field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. """ @@ -30799,7 +31211,7 @@ type CustomerBulkUpdateError @doc(category: "Users") { code: CustomerBulkUpdateErrorCode! } -enum CustomerBulkUpdateErrorCode @doc(category: "Users") { +enum CustomerBulkUpdateErrorCode { BLANK DUPLICATED_INPUT_ITEM GRAPHQL_ERROR @@ -30810,7 +31222,7 @@ enum CustomerBulkUpdateErrorCode @doc(category: "Users") { MAX_LENGTH } -input CustomerBulkUpdateInput @doc(category: "Users") { +input CustomerBulkUpdateInput { """ID of a customer to update.""" id: ID @@ -30831,13 +31243,13 @@ Triggers the following webhook events: - NOTIFY_USER (async): A notification for setting the password. - STAFF_SET_PASSWORD_REQUESTED (async): Setting a new password for the staff account is requested. """ -type StaffCreate @doc(category: "Users") @webhookEventsInfo(asyncEvents: [STAFF_CREATED, NOTIFY_USER, STAFF_SET_PASSWORD_REQUESTED], syncEvents: []) { +type StaffCreate { staffErrors: [StaffError!]! @deprecated(reason: "Use `errors` field instead.") errors: [StaffError!]! user: User } -type StaffError @doc(category: "Users") { +type StaffError { """ Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. """ @@ -30863,7 +31275,7 @@ type StaffError @doc(category: "Users") { } """Fields required to create a staff user.""" -input StaffCreateInput @doc(category: "Users") { +input StaffCreateInput { """Given name.""" firstName: String @@ -30910,14 +31322,14 @@ Requires one of the following permissions: MANAGE_STAFF. Triggers the following webhook events: - STAFF_UPDATED (async): A staff account was updated. """ -type StaffUpdate @doc(category: "Users") @webhookEventsInfo(asyncEvents: [STAFF_UPDATED], syncEvents: []) { +type StaffUpdate { staffErrors: [StaffError!]! @deprecated(reason: "Use `errors` field instead.") errors: [StaffError!]! user: User } """Fields required to update a staff user.""" -input StaffUpdateInput @doc(category: "Users") { +input StaffUpdateInput { """Given name.""" firstName: String @@ -30962,7 +31374,7 @@ Requires one of the following permissions: MANAGE_STAFF. Triggers the following webhook events: - STAFF_DELETED (async): A staff account was deleted. """ -type StaffDelete @doc(category: "Users") @webhookEventsInfo(asyncEvents: [STAFF_DELETED], syncEvents: []) { +type StaffDelete { staffErrors: [StaffError!]! @deprecated(reason: "Use `errors` field instead.") errors: [StaffError!]! user: User @@ -30976,7 +31388,7 @@ Requires one of the following permissions: MANAGE_STAFF. Triggers the following webhook events: - STAFF_DELETED (async): A staff account was deleted. """ -type StaffBulkDelete @doc(category: "Users") @webhookEventsInfo(asyncEvents: [STAFF_DELETED], syncEvents: []) { +type StaffBulkDelete { """Returns how many objects were affected.""" count: Int! staffErrors: [StaffError!]! @deprecated(reason: "Use `errors` field instead.") @@ -30988,7 +31400,7 @@ Create a user avatar. Only for staff members. This mutation must be sent as a `m Requires one of the following permissions: AUTHENTICATED_STAFF_USER. """ -type UserAvatarUpdate @doc(category: "Users") { +type UserAvatarUpdate { """An updated user instance.""" user: User accountErrors: [AccountError!]! @deprecated(reason: "Use `errors` field instead.") @@ -31000,7 +31412,7 @@ Deletes a user avatar. Only for staff members. Requires one of the following permissions: AUTHENTICATED_STAFF_USER. """ -type UserAvatarDelete @doc(category: "Users") { +type UserAvatarDelete { """An updated user instance.""" user: User accountErrors: [AccountError!]! @deprecated(reason: "Use `errors` field instead.") @@ -31012,7 +31424,7 @@ Activate or deactivate users. Requires one of the following permissions: MANAGE_USERS. """ -type UserBulkSetActive @doc(category: "Users") { +type UserBulkSetActive { """Returns how many objects were affected.""" count: Int! accountErrors: [AccountError!]! @deprecated(reason: "Use `errors` field instead.") @@ -31027,13 +31439,13 @@ Requires one of the following permissions: MANAGE_STAFF. Triggers the following webhook events: - PERMISSION_GROUP_CREATED (async) """ -type PermissionGroupCreate @doc(category: "Users") @webhookEventsInfo(asyncEvents: [PERMISSION_GROUP_CREATED], syncEvents: []) { +type PermissionGroupCreate { permissionGroupErrors: [PermissionGroupError!]! @deprecated(reason: "Use `errors` field instead.") errors: [PermissionGroupError!]! group: Group } -type PermissionGroupError @doc(category: "Users") { +type PermissionGroupError { """ Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. """ @@ -31055,7 +31467,7 @@ type PermissionGroupError @doc(category: "Users") { channels: [ID!] } -enum PermissionGroupErrorCode @doc(category: "Users") { +enum PermissionGroupErrorCode { REQUIRED UNIQUE ASSIGN_NON_STAFF_MEMBER @@ -31067,7 +31479,7 @@ enum PermissionGroupErrorCode @doc(category: "Users") { OUT_OF_SCOPE_CHANNEL } -input PermissionGroupCreateInput @doc(category: "Users") { +input PermissionGroupCreateInput { """List of permission code names to assign to this group.""" addPermissions: [PermissionEnum!] @@ -31094,13 +31506,13 @@ Requires one of the following permissions: MANAGE_STAFF. Triggers the following webhook events: - PERMISSION_GROUP_UPDATED (async) """ -type PermissionGroupUpdate @doc(category: "Users") @webhookEventsInfo(asyncEvents: [PERMISSION_GROUP_UPDATED], syncEvents: []) { +type PermissionGroupUpdate { permissionGroupErrors: [PermissionGroupError!]! @deprecated(reason: "Use `errors` field instead.") errors: [PermissionGroupError!]! group: Group } -input PermissionGroupUpdateInput @doc(category: "Users") { +input PermissionGroupUpdateInput { """List of permission code names to assign to this group.""" addPermissions: [PermissionEnum!] @@ -31134,13 +31546,13 @@ Requires one of the following permissions: MANAGE_STAFF. Triggers the following webhook events: - PERMISSION_GROUP_DELETED (async) """ -type PermissionGroupDelete @doc(category: "Users") @webhookEventsInfo(asyncEvents: [PERMISSION_GROUP_DELETED], syncEvents: []) { +type PermissionGroupDelete { permissionGroupErrors: [PermissionGroupError!]! @deprecated(reason: "Use `errors` field instead.") errors: [PermissionGroupError!]! group: Group } -type Subscription @doc(category: "Miscellaneous") { +type Subscription { """Look up subscription event.""" event: Event @@ -31156,7 +31568,7 @@ type Subscription @doc(category: "Miscellaneous") { List of channel slugs. The event will be sent only if the object belongs to one of the provided channels. If the channel slug list is empty, objects that belong to any channel will be sent. Maximally 500 items. """ channels: [String!] - ): DraftOrderCreated @doc(category: "Orders") + ): DraftOrderCreated """ Event sent when draft order is updated. @@ -31170,7 +31582,7 @@ type Subscription @doc(category: "Miscellaneous") { List of channel slugs. The event will be sent only if the object belongs to one of the provided channels. If the channel slug list is empty, objects that belong to any channel will be sent. Maximally 500 items. """ channels: [String!] - ): DraftOrderUpdated @doc(category: "Orders") + ): DraftOrderUpdated """ Event sent when draft order is deleted. @@ -31184,7 +31596,7 @@ type Subscription @doc(category: "Miscellaneous") { List of channel slugs. The event will be sent only if the object belongs to one of the provided channels. If the channel slug list is empty, objects that belong to any channel will be sent. Maximally 500 items. """ channels: [String!] - ): DraftOrderDeleted @doc(category: "Orders") + ): DraftOrderDeleted """ Event sent when new order is created. @@ -31198,7 +31610,7 @@ type Subscription @doc(category: "Miscellaneous") { List of channel slugs. The event will be sent only if the object belongs to one of the provided channels. If the channel slug list is empty, objects that belong to any channel will be sent. Maximally 500 items. """ channels: [String!] - ): OrderCreated @doc(category: "Orders") + ): OrderCreated """ Event sent when order is updated. @@ -31212,7 +31624,7 @@ type Subscription @doc(category: "Miscellaneous") { List of channel slugs. The event will be sent only if the object belongs to one of the provided channels. If the channel slug list is empty, objects that belong to any channel will be sent. Maximally 500 items. """ channels: [String!] - ): OrderUpdated @doc(category: "Orders") + ): OrderUpdated """ Event sent when order is confirmed. @@ -31226,7 +31638,7 @@ type Subscription @doc(category: "Miscellaneous") { List of channel slugs. The event will be sent only if the object belongs to one of the provided channels. If the channel slug list is empty, objects that belong to any channel will be sent. Maximally 500 items. """ channels: [String!] - ): OrderConfirmed @doc(category: "Orders") + ): OrderConfirmed """ Payment has been made. The order may be partially or fully paid. @@ -31240,7 +31652,7 @@ type Subscription @doc(category: "Miscellaneous") { List of channel slugs. The event will be sent only if the object belongs to one of the provided channels. If the channel slug list is empty, objects that belong to any channel will be sent. Maximally 500 items. """ channels: [String!] - ): OrderPaid @doc(category: "Orders") + ): OrderPaid """ Event sent when order is fully paid. @@ -31254,7 +31666,7 @@ type Subscription @doc(category: "Miscellaneous") { List of channel slugs. The event will be sent only if the object belongs to one of the provided channels. If the channel slug list is empty, objects that belong to any channel will be sent. Maximally 500 items. """ channels: [String!] - ): OrderFullyPaid @doc(category: "Orders") + ): OrderFullyPaid """ The order received a refund. The order may be partially or fully refunded. @@ -31268,7 +31680,7 @@ type Subscription @doc(category: "Miscellaneous") { List of channel slugs. The event will be sent only if the object belongs to one of the provided channels. If the channel slug list is empty, objects that belong to any channel will be sent. Maximally 500 items. """ channels: [String!] - ): OrderRefunded @doc(category: "Orders") + ): OrderRefunded """ The order is fully refunded. @@ -31282,7 +31694,7 @@ type Subscription @doc(category: "Miscellaneous") { List of channel slugs. The event will be sent only if the object belongs to one of the provided channels. If the channel slug list is empty, objects that belong to any channel will be sent. Maximally 500 items. """ channels: [String!] - ): OrderFullyRefunded @doc(category: "Orders") + ): OrderFullyRefunded """ Event sent when order is fulfilled. @@ -31296,7 +31708,7 @@ type Subscription @doc(category: "Miscellaneous") { List of channel slugs. The event will be sent only if the object belongs to one of the provided channels. If the channel slug list is empty, objects that belong to any channel will be sent. Maximally 500 items. """ channels: [String!] - ): OrderFulfilled @doc(category: "Orders") + ): OrderFulfilled """ Event sent when order is cancelled. @@ -31310,7 +31722,7 @@ type Subscription @doc(category: "Miscellaneous") { List of channel slugs. The event will be sent only if the object belongs to one of the provided channels. If the channel slug list is empty, objects that belong to any channel will be sent. Maximally 500 items. """ channels: [String!] - ): OrderCancelled @doc(category: "Orders") + ): OrderCancelled """ Event sent when order becomes expired. @@ -31324,7 +31736,7 @@ type Subscription @doc(category: "Miscellaneous") { List of channel slugs. The event will be sent only if the object belongs to one of the provided channels. If the channel slug list is empty, objects that belong to any channel will be sent. Maximally 500 items. """ channels: [String!] - ): OrderExpired @doc(category: "Orders") + ): OrderExpired """ Event sent when order metadata is updated. @@ -31338,7 +31750,7 @@ type Subscription @doc(category: "Miscellaneous") { List of channel slugs. The event will be sent only if the object belongs to one of the provided channels. If the channel slug list is empty, objects that belong to any channel will be sent. Maximally 500 items. """ channels: [String!] - ): OrderMetadataUpdated @doc(category: "Orders") + ): OrderMetadataUpdated """ Event sent when orders are imported. @@ -31352,7 +31764,7 @@ type Subscription @doc(category: "Miscellaneous") { List of channel slugs. The event will be sent only if the object belongs to one of the provided channels. If the channel slug list is empty, objects that belong to any channel will be sent. Maximally 500 items. """ channels: [String!] - ): OrderBulkCreated @doc(category: "Orders") + ): OrderBulkCreated """ Event sent when new checkout is created. @@ -31366,7 +31778,7 @@ type Subscription @doc(category: "Miscellaneous") { List of channel slugs. The event will be sent only if the object belongs to one of the provided channels. If the channel slug list is empty, objects that belong to any channel will be sent. Maximally 500 items. """ channels: [String!] - ): CheckoutCreated @doc(category: "Checkout") + ): CheckoutCreated """ Event sent when checkout is updated. @@ -31380,7 +31792,7 @@ type Subscription @doc(category: "Miscellaneous") { List of channel slugs. The event will be sent only if the object belongs to one of the provided channels. If the channel slug list is empty, objects that belong to any channel will be sent. Maximally 500 items. """ channels: [String!] - ): CheckoutUpdated @doc(category: "Checkout") + ): CheckoutUpdated """ Event sent when checkout is fully-paid. @@ -31394,7 +31806,7 @@ type Subscription @doc(category: "Miscellaneous") { List of channel slugs. The event will be sent only if the object belongs to one of the provided channels. If the channel slug list is empty, objects that belong to any channel will be sent. Maximally 500 items. """ channels: [String!] - ): CheckoutFullyPaid @doc(category: "Checkout") + ): CheckoutFullyPaid """ Event sent when checkout is fully authorized. @@ -31408,7 +31820,7 @@ type Subscription @doc(category: "Miscellaneous") { List of channel slugs. The event will be sent only if the object belongs to one of the provided channels. If the channel slug list is empty, objects that belong to any channel will be sent. Maximally 500 items. """ channels: [String!] - ): CheckoutFullyAuthorized @doc(category: "Checkout") + ): CheckoutFullyAuthorized """ Event sent when checkout metadata is updated. @@ -31422,7 +31834,7 @@ type Subscription @doc(category: "Miscellaneous") { List of channel slugs. The event will be sent only if the object belongs to one of the provided channels. If the channel slug list is empty, objects that belong to any channel will be sent. Maximally 500 items. """ channels: [String!] - ): CheckoutMetadataUpdated @doc(category: "Checkout") + ): CheckoutMetadataUpdated } interface Event { @@ -31436,13 +31848,13 @@ interface Event { issuingPrincipal: IssuingPrincipal """The application receiving the webhook.""" - recipient: App @doc(category: "Apps") + recipient: App } union IssuingPrincipal = App | User """Event sent when new draft order is created.""" -type DraftOrderCreated implements Event @doc(category: "Orders") { +type DraftOrderCreated implements Event { """Time of the event.""" issuedAt: DateTime @@ -31460,7 +31872,7 @@ type DraftOrderCreated implements Event @doc(category: "Orders") { } """Event sent when draft order is updated.""" -type DraftOrderUpdated implements Event @doc(category: "Orders") { +type DraftOrderUpdated implements Event { """Time of the event.""" issuedAt: DateTime @@ -31478,7 +31890,7 @@ type DraftOrderUpdated implements Event @doc(category: "Orders") { } """Event sent when draft order is deleted.""" -type DraftOrderDeleted implements Event @doc(category: "Orders") { +type DraftOrderDeleted implements Event { """Time of the event.""" issuedAt: DateTime @@ -31496,7 +31908,7 @@ type DraftOrderDeleted implements Event @doc(category: "Orders") { } """Event sent when new order is created.""" -type OrderCreated implements Event @doc(category: "Orders") { +type OrderCreated implements Event { """Time of the event.""" issuedAt: DateTime @@ -31514,7 +31926,7 @@ type OrderCreated implements Event @doc(category: "Orders") { } """Event sent when order is updated.""" -type OrderUpdated implements Event @doc(category: "Orders") { +type OrderUpdated implements Event { """Time of the event.""" issuedAt: DateTime @@ -31532,7 +31944,7 @@ type OrderUpdated implements Event @doc(category: "Orders") { } """Event sent when order is confirmed.""" -type OrderConfirmed implements Event @doc(category: "Orders") { +type OrderConfirmed implements Event { """Time of the event.""" issuedAt: DateTime @@ -31550,7 +31962,7 @@ type OrderConfirmed implements Event @doc(category: "Orders") { } """Payment has been made. The order may be partially or fully paid.""" -type OrderPaid implements Event @doc(category: "Orders") { +type OrderPaid implements Event { """Time of the event.""" issuedAt: DateTime @@ -31568,7 +31980,7 @@ type OrderPaid implements Event @doc(category: "Orders") { } """Event sent when order is fully paid.""" -type OrderFullyPaid implements Event @doc(category: "Orders") { +type OrderFullyPaid implements Event { """Time of the event.""" issuedAt: DateTime @@ -31588,7 +32000,7 @@ type OrderFullyPaid implements Event @doc(category: "Orders") { """ The order received a refund. The order may be partially or fully refunded. """ -type OrderRefunded implements Event @doc(category: "Orders") { +type OrderRefunded implements Event { """Time of the event.""" issuedAt: DateTime @@ -31606,7 +32018,7 @@ type OrderRefunded implements Event @doc(category: "Orders") { } """The order is fully refunded.""" -type OrderFullyRefunded implements Event @doc(category: "Orders") { +type OrderFullyRefunded implements Event { """Time of the event.""" issuedAt: DateTime @@ -31624,7 +32036,7 @@ type OrderFullyRefunded implements Event @doc(category: "Orders") { } """Event sent when order is fulfilled.""" -type OrderFulfilled implements Event @doc(category: "Orders") { +type OrderFulfilled implements Event { """Time of the event.""" issuedAt: DateTime @@ -31642,7 +32054,7 @@ type OrderFulfilled implements Event @doc(category: "Orders") { } """Event sent when order is canceled.""" -type OrderCancelled implements Event @doc(category: "Orders") { +type OrderCancelled implements Event { """Time of the event.""" issuedAt: DateTime @@ -31660,7 +32072,7 @@ type OrderCancelled implements Event @doc(category: "Orders") { } """Event sent when order becomes expired.""" -type OrderExpired implements Event @doc(category: "Orders") { +type OrderExpired implements Event { """Time of the event.""" issuedAt: DateTime @@ -31678,7 +32090,7 @@ type OrderExpired implements Event @doc(category: "Orders") { } """Event sent when order metadata is updated.""" -type OrderMetadataUpdated implements Event @doc(category: "Orders") { +type OrderMetadataUpdated implements Event { """Time of the event.""" issuedAt: DateTime @@ -31696,7 +32108,7 @@ type OrderMetadataUpdated implements Event @doc(category: "Orders") { } """Event sent when orders are imported.""" -type OrderBulkCreated implements Event @doc(category: "Orders") { +type OrderBulkCreated implements Event { """Time of the event.""" issuedAt: DateTime @@ -31714,7 +32126,7 @@ type OrderBulkCreated implements Event @doc(category: "Orders") { } """Event sent when new checkout is created.""" -type CheckoutCreated implements Event @doc(category: "Checkout") { +type CheckoutCreated implements Event { """Time of the event.""" issuedAt: DateTime @@ -31732,7 +32144,7 @@ type CheckoutCreated implements Event @doc(category: "Checkout") { } """Event sent when checkout is updated.""" -type CheckoutUpdated implements Event @doc(category: "Checkout") { +type CheckoutUpdated implements Event { """Time of the event.""" issuedAt: DateTime @@ -31754,7 +32166,7 @@ Event sent when a checkout was fully paid. A checkout is considered fully paid w It is triggered only for checkouts whose payments are processed through the Transaction API. """ -type CheckoutFullyPaid implements Event @doc(category: "Checkout") { +type CheckoutFullyPaid implements Event { """Time of the event.""" issuedAt: DateTime @@ -31776,7 +32188,7 @@ Event sent when a checkout was fully authorized. A checkout is considered fully It is triggered only for checkouts whose payments are processed through the Transaction API. """ -type CheckoutFullyAuthorized implements Event @doc(category: "Checkout") { +type CheckoutFullyAuthorized implements Event { """Time of the event.""" issuedAt: DateTime @@ -31794,7 +32206,7 @@ type CheckoutFullyAuthorized implements Event @doc(category: "Checkout") { } """Event sent when checkout metadata is updated.""" -type CheckoutMetadataUpdated implements Event @doc(category: "Checkout") { +type CheckoutMetadataUpdated implements Event { """Time of the event.""" issuedAt: DateTime @@ -31852,7 +32264,7 @@ enum VolumeUnitsEnum { """ Event sent when account confirmation requested. This event is always sent. enableAccountConfirmationByEmail flag set to True is not required. """ -type AccountConfirmationRequested implements Event @doc(category: "Users") { +type AccountConfirmationRequested implements Event { """Time of the event.""" issuedAt: DateTime @@ -31882,7 +32294,7 @@ type AccountConfirmationRequested implements Event @doc(category: "Users") { } """Event sent when account change email is requested.""" -type AccountChangeEmailRequested implements Event @doc(category: "Users") { +type AccountChangeEmailRequested implements Event { """Time of the event.""" issuedAt: DateTime @@ -31915,7 +32327,7 @@ type AccountChangeEmailRequested implements Event @doc(category: "Users") { } """Event sent when account email is changed.""" -type AccountEmailChanged implements Event @doc(category: "Users") { +type AccountEmailChanged implements Event { """Time of the event.""" issuedAt: DateTime @@ -31948,7 +32360,7 @@ type AccountEmailChanged implements Event @doc(category: "Users") { } """Event sent when setting a new password is requested.""" -type AccountSetPasswordRequested implements Event @doc(category: "Users") { +type AccountSetPasswordRequested implements Event { """Time of the event.""" issuedAt: DateTime @@ -31978,7 +32390,7 @@ type AccountSetPasswordRequested implements Event @doc(category: "Users") { } """Event sent when account is confirmed.""" -type AccountConfirmed implements Event @doc(category: "Users") { +type AccountConfirmed implements Event { """Time of the event.""" issuedAt: DateTime @@ -32008,7 +32420,7 @@ type AccountConfirmed implements Event @doc(category: "Users") { } """Event sent when account delete is requested.""" -type AccountDeleteRequested implements Event @doc(category: "Users") { +type AccountDeleteRequested implements Event { """Time of the event.""" issuedAt: DateTime @@ -32038,7 +32450,7 @@ type AccountDeleteRequested implements Event @doc(category: "Users") { } """Event sent when account is deleted.""" -type AccountDeleted implements Event @doc(category: "Users") { +type AccountDeleted implements Event { """Time of the event.""" issuedAt: DateTime @@ -32068,7 +32480,7 @@ type AccountDeleted implements Event @doc(category: "Users") { } """Event sent when new address is created.""" -type AddressCreated implements Event @doc(category: "Users") { +type AddressCreated implements Event { """Time of the event.""" issuedAt: DateTime @@ -32086,7 +32498,7 @@ type AddressCreated implements Event @doc(category: "Users") { } """Event sent when address is updated.""" -type AddressUpdated implements Event @doc(category: "Users") { +type AddressUpdated implements Event { """Time of the event.""" issuedAt: DateTime @@ -32104,7 +32516,7 @@ type AddressUpdated implements Event @doc(category: "Users") { } """Event sent when address is deleted.""" -type AddressDeleted implements Event @doc(category: "Users") { +type AddressDeleted implements Event { """Time of the event.""" issuedAt: DateTime @@ -32122,7 +32534,7 @@ type AddressDeleted implements Event @doc(category: "Users") { } """Event sent when new app is installed.""" -type AppInstalled implements Event @doc(category: "Apps") { +type AppInstalled implements Event { """Time of the event.""" issuedAt: DateTime @@ -32140,7 +32552,7 @@ type AppInstalled implements Event @doc(category: "Apps") { } """Event sent when app is updated.""" -type AppUpdated implements Event @doc(category: "Apps") { +type AppUpdated implements Event { """Time of the event.""" issuedAt: DateTime @@ -32158,7 +32570,7 @@ type AppUpdated implements Event @doc(category: "Apps") { } """Event sent when app is deleted.""" -type AppDeleted implements Event @doc(category: "Apps") { +type AppDeleted implements Event { """Time of the event.""" issuedAt: DateTime @@ -32176,7 +32588,7 @@ type AppDeleted implements Event @doc(category: "Apps") { } """Event sent when app status has changed.""" -type AppStatusChanged implements Event @doc(category: "Apps") { +type AppStatusChanged implements Event { """Time of the event.""" issuedAt: DateTime @@ -32194,7 +32606,7 @@ type AppStatusChanged implements Event @doc(category: "Apps") { } """Event sent when new attribute is created.""" -type AttributeCreated implements Event @doc(category: "Attributes") { +type AttributeCreated implements Event { """Time of the event.""" issuedAt: DateTime @@ -32212,7 +32624,7 @@ type AttributeCreated implements Event @doc(category: "Attributes") { } """Event sent when attribute is updated.""" -type AttributeUpdated implements Event @doc(category: "Attributes") { +type AttributeUpdated implements Event { """Time of the event.""" issuedAt: DateTime @@ -32230,7 +32642,7 @@ type AttributeUpdated implements Event @doc(category: "Attributes") { } """Event sent when attribute is deleted.""" -type AttributeDeleted implements Event @doc(category: "Attributes") { +type AttributeDeleted implements Event { """Time of the event.""" issuedAt: DateTime @@ -32248,7 +32660,7 @@ type AttributeDeleted implements Event @doc(category: "Attributes") { } """Event sent when new attribute value is created.""" -type AttributeValueCreated implements Event @doc(category: "Attributes") { +type AttributeValueCreated implements Event { """Time of the event.""" issuedAt: DateTime @@ -32266,7 +32678,7 @@ type AttributeValueCreated implements Event @doc(category: "Attributes") { } """Event sent when attribute value is updated.""" -type AttributeValueUpdated implements Event @doc(category: "Attributes") { +type AttributeValueUpdated implements Event { """Time of the event.""" issuedAt: DateTime @@ -32284,7 +32696,7 @@ type AttributeValueUpdated implements Event @doc(category: "Attributes") { } """Event sent when attribute value is deleted.""" -type AttributeValueDeleted implements Event @doc(category: "Attributes") { +type AttributeValueDeleted implements Event { """Time of the event.""" issuedAt: DateTime @@ -32302,7 +32714,7 @@ type AttributeValueDeleted implements Event @doc(category: "Attributes") { } """Event sent when new category is created.""" -type CategoryCreated implements Event @doc(category: "Products") { +type CategoryCreated implements Event { """Time of the event.""" issuedAt: DateTime @@ -32320,7 +32732,7 @@ type CategoryCreated implements Event @doc(category: "Products") { } """Event sent when category is updated.""" -type CategoryUpdated implements Event @doc(category: "Products") { +type CategoryUpdated implements Event { """Time of the event.""" issuedAt: DateTime @@ -32338,7 +32750,7 @@ type CategoryUpdated implements Event @doc(category: "Products") { } """Event sent when category is deleted.""" -type CategoryDeleted implements Event @doc(category: "Products") { +type CategoryDeleted implements Event { """Time of the event.""" issuedAt: DateTime @@ -32356,7 +32768,7 @@ type CategoryDeleted implements Event @doc(category: "Products") { } """Event sent when new channel is created.""" -type ChannelCreated implements Event @doc(category: "Channels") { +type ChannelCreated implements Event { """Time of the event.""" issuedAt: DateTime @@ -32374,7 +32786,7 @@ type ChannelCreated implements Event @doc(category: "Channels") { } """Event sent when channel is updated.""" -type ChannelUpdated implements Event @doc(category: "Channels") { +type ChannelUpdated implements Event { """Time of the event.""" issuedAt: DateTime @@ -32392,7 +32804,7 @@ type ChannelUpdated implements Event @doc(category: "Channels") { } """Event sent when channel is deleted.""" -type ChannelDeleted implements Event @doc(category: "Channels") { +type ChannelDeleted implements Event { """Time of the event.""" issuedAt: DateTime @@ -32410,7 +32822,7 @@ type ChannelDeleted implements Event @doc(category: "Channels") { } """Event sent when channel status has changed.""" -type ChannelStatusChanged implements Event @doc(category: "Channels") { +type ChannelStatusChanged implements Event { """Time of the event.""" issuedAt: DateTime @@ -32428,7 +32840,7 @@ type ChannelStatusChanged implements Event @doc(category: "Channels") { } """Event sent when channel metadata is updated.""" -type ChannelMetadataUpdated implements Event @doc(category: "Channels") { +type ChannelMetadataUpdated implements Event { """Time of the event.""" issuedAt: DateTime @@ -32446,7 +32858,7 @@ type ChannelMetadataUpdated implements Event @doc(category: "Channels") { } """Event sent when new gift card is created.""" -type GiftCardCreated implements Event @doc(category: "Gift cards") { +type GiftCardCreated implements Event { """Time of the event.""" issuedAt: DateTime @@ -32464,7 +32876,7 @@ type GiftCardCreated implements Event @doc(category: "Gift cards") { } """Event sent when gift card is updated.""" -type GiftCardUpdated implements Event @doc(category: "Gift cards") { +type GiftCardUpdated implements Event { """Time of the event.""" issuedAt: DateTime @@ -32482,7 +32894,7 @@ type GiftCardUpdated implements Event @doc(category: "Gift cards") { } """Event sent when gift card is deleted.""" -type GiftCardDeleted implements Event @doc(category: "Gift cards") { +type GiftCardDeleted implements Event { """Time of the event.""" issuedAt: DateTime @@ -32500,7 +32912,7 @@ type GiftCardDeleted implements Event @doc(category: "Gift cards") { } """Event sent when gift card is e-mailed.""" -type GiftCardSent implements Event @doc(category: "Gift cards") { +type GiftCardSent implements Event { """Time of the event.""" issuedAt: DateTime @@ -32524,7 +32936,7 @@ type GiftCardSent implements Event @doc(category: "Gift cards") { } """Event sent when gift card status has changed.""" -type GiftCardStatusChanged implements Event @doc(category: "Gift cards") { +type GiftCardStatusChanged implements Event { """Time of the event.""" issuedAt: DateTime @@ -32542,7 +32954,7 @@ type GiftCardStatusChanged implements Event @doc(category: "Gift cards") { } """Event sent when gift card metadata is updated.""" -type GiftCardMetadataUpdated implements Event @doc(category: "Gift cards") { +type GiftCardMetadataUpdated implements Event { """Time of the event.""" issuedAt: DateTime @@ -32560,7 +32972,7 @@ type GiftCardMetadataUpdated implements Event @doc(category: "Gift cards") { } """Event sent when gift card export is completed.""" -type GiftCardExportCompleted implements Event @doc(category: "Gift cards") { +type GiftCardExportCompleted implements Event { """Time of the event.""" issuedAt: DateTime @@ -32578,7 +32990,7 @@ type GiftCardExportCompleted implements Event @doc(category: "Gift cards") { } """Event sent when new menu is created.""" -type MenuCreated implements Event @doc(category: "Menu") { +type MenuCreated implements Event { """Time of the event.""" issuedAt: DateTime @@ -32599,7 +33011,7 @@ type MenuCreated implements Event @doc(category: "Menu") { } """Event sent when menu is updated.""" -type MenuUpdated implements Event @doc(category: "Menu") { +type MenuUpdated implements Event { """Time of the event.""" issuedAt: DateTime @@ -32620,7 +33032,7 @@ type MenuUpdated implements Event @doc(category: "Menu") { } """Event sent when menu is deleted.""" -type MenuDeleted implements Event @doc(category: "Menu") { +type MenuDeleted implements Event { """Time of the event.""" issuedAt: DateTime @@ -32641,7 +33053,7 @@ type MenuDeleted implements Event @doc(category: "Menu") { } """Event sent when new menu item is created.""" -type MenuItemCreated implements Event @doc(category: "Menu") { +type MenuItemCreated implements Event { """Time of the event.""" issuedAt: DateTime @@ -32662,7 +33074,7 @@ type MenuItemCreated implements Event @doc(category: "Menu") { } """Event sent when menu item is updated.""" -type MenuItemUpdated implements Event @doc(category: "Menu") { +type MenuItemUpdated implements Event { """Time of the event.""" issuedAt: DateTime @@ -32683,7 +33095,7 @@ type MenuItemUpdated implements Event @doc(category: "Menu") { } """Event sent when menu item is deleted.""" -type MenuItemDeleted implements Event @doc(category: "Menu") { +type MenuItemDeleted implements Event { """Time of the event.""" issuedAt: DateTime @@ -32704,7 +33116,7 @@ type MenuItemDeleted implements Event @doc(category: "Menu") { } """Event sent when new product is created.""" -type ProductCreated implements Event @doc(category: "Products") { +type ProductCreated implements Event { """Time of the event.""" issuedAt: DateTime @@ -32728,7 +33140,7 @@ type ProductCreated implements Event @doc(category: "Products") { } """Event sent when product is updated.""" -type ProductUpdated implements Event @doc(category: "Products") { +type ProductUpdated implements Event { """Time of the event.""" issuedAt: DateTime @@ -32752,7 +33164,7 @@ type ProductUpdated implements Event @doc(category: "Products") { } """Event sent when product is deleted.""" -type ProductDeleted implements Event @doc(category: "Products") { +type ProductDeleted implements Event { """Time of the event.""" issuedAt: DateTime @@ -32776,7 +33188,7 @@ type ProductDeleted implements Event @doc(category: "Products") { } """Event sent when product metadata is updated.""" -type ProductMetadataUpdated implements Event @doc(category: "Products") { +type ProductMetadataUpdated implements Event { """Time of the event.""" issuedAt: DateTime @@ -32800,7 +33212,7 @@ type ProductMetadataUpdated implements Event @doc(category: "Products") { } """Event sent when product export is completed.""" -type ProductExportCompleted implements Event @doc(category: "Products") { +type ProductExportCompleted implements Event { """Time of the event.""" issuedAt: DateTime @@ -32818,7 +33230,7 @@ type ProductExportCompleted implements Event @doc(category: "Products") { } """Event sent when new product media is created.""" -type ProductMediaCreated implements Event @doc(category: "Products") { +type ProductMediaCreated implements Event { """Time of the event.""" issuedAt: DateTime @@ -32836,7 +33248,7 @@ type ProductMediaCreated implements Event @doc(category: "Products") { } """Event sent when product media is updated.""" -type ProductMediaUpdated implements Event @doc(category: "Products") { +type ProductMediaUpdated implements Event { """Time of the event.""" issuedAt: DateTime @@ -32854,7 +33266,7 @@ type ProductMediaUpdated implements Event @doc(category: "Products") { } """Event sent when product media is deleted.""" -type ProductMediaDeleted implements Event @doc(category: "Products") { +type ProductMediaDeleted implements Event { """Time of the event.""" issuedAt: DateTime @@ -32872,7 +33284,7 @@ type ProductMediaDeleted implements Event @doc(category: "Products") { } """Event sent when new product variant is created.""" -type ProductVariantCreated implements Event @doc(category: "Products") { +type ProductVariantCreated implements Event { """Time of the event.""" issuedAt: DateTime @@ -32893,7 +33305,7 @@ type ProductVariantCreated implements Event @doc(category: "Products") { } """Event sent when product variant is updated.""" -type ProductVariantUpdated implements Event @doc(category: "Products") { +type ProductVariantUpdated implements Event { """Time of the event.""" issuedAt: DateTime @@ -32914,7 +33326,7 @@ type ProductVariantUpdated implements Event @doc(category: "Products") { } """Event sent when product variant is out of stock.""" -type ProductVariantOutOfStock implements Event @doc(category: "Products") { +type ProductVariantOutOfStock implements Event { """Time of the event.""" issuedAt: DateTime @@ -32938,7 +33350,7 @@ type ProductVariantOutOfStock implements Event @doc(category: "Products") { } """Event sent when product variant is back in stock.""" -type ProductVariantBackInStock implements Event @doc(category: "Products") { +type ProductVariantBackInStock implements Event { """Time of the event.""" issuedAt: DateTime @@ -32962,7 +33374,7 @@ type ProductVariantBackInStock implements Event @doc(category: "Products") { } """Event sent when product variant stock is updated.""" -type ProductVariantStockUpdated implements Event @doc(category: "Products") { +type ProductVariantStockUpdated implements Event { """Time of the event.""" issuedAt: DateTime @@ -32986,7 +33398,7 @@ type ProductVariantStockUpdated implements Event @doc(category: "Products") { } """Event sent when product variant is deleted.""" -type ProductVariantDeleted implements Event @doc(category: "Products") { +type ProductVariantDeleted implements Event { """Time of the event.""" issuedAt: DateTime @@ -33007,7 +33419,7 @@ type ProductVariantDeleted implements Event @doc(category: "Products") { } """Event sent when product variant metadata is updated.""" -type ProductVariantMetadataUpdated implements Event @doc(category: "Products") { +type ProductVariantMetadataUpdated implements Event { """Time of the event.""" issuedAt: DateTime @@ -33032,7 +33444,7 @@ Event sent when new sale is created. DEPRECATED: this event will be removed. Use `PromotionCreated` event instead. """ -type SaleCreated implements Event @doc(category: "Discounts") { +type SaleCreated implements Event { """Time of the event.""" issuedAt: DateTime @@ -33057,7 +33469,7 @@ Event sent when sale is updated. DEPRECATED: this event will be removed. Use `PromotionUpdated` event instead. """ -type SaleUpdated implements Event @doc(category: "Discounts") { +type SaleUpdated implements Event { """Time of the event.""" issuedAt: DateTime @@ -33082,7 +33494,7 @@ Event sent when sale is deleted. DEPRECATED: this event will be removed. Use `PromotionDeleted` event instead. """ -type SaleDeleted implements Event @doc(category: "Discounts") { +type SaleDeleted implements Event { """Time of the event.""" issuedAt: DateTime @@ -33107,7 +33519,7 @@ The event informs about the start or end of the sale. DEPRECATED: this event will be removed. Use `PromotionStarted` and `PromotionEnded` events instead. """ -type SaleToggle implements Event @doc(category: "Discounts") { +type SaleToggle implements Event { """Time of the event.""" issuedAt: DateTime @@ -33128,7 +33540,7 @@ type SaleToggle implements Event @doc(category: "Discounts") { } """Event sent when new promotion is created.""" -type PromotionCreated implements Event @doc(category: "Discounts") { +type PromotionCreated implements Event { """Time of the event.""" issuedAt: DateTime @@ -33146,7 +33558,7 @@ type PromotionCreated implements Event @doc(category: "Discounts") { } """Event sent when promotion is updated.""" -type PromotionUpdated implements Event @doc(category: "Discounts") { +type PromotionUpdated implements Event { """Time of the event.""" issuedAt: DateTime @@ -33164,7 +33576,7 @@ type PromotionUpdated implements Event @doc(category: "Discounts") { } """Event sent when promotion is deleted.""" -type PromotionDeleted implements Event @doc(category: "Discounts") { +type PromotionDeleted implements Event { """Time of the event.""" issuedAt: DateTime @@ -33182,7 +33594,7 @@ type PromotionDeleted implements Event @doc(category: "Discounts") { } """The event informs about the start of the promotion.""" -type PromotionStarted implements Event @doc(category: "Discounts") { +type PromotionStarted implements Event { """Time of the event.""" issuedAt: DateTime @@ -33200,7 +33612,7 @@ type PromotionStarted implements Event @doc(category: "Discounts") { } """The event informs about the end of the promotion.""" -type PromotionEnded implements Event @doc(category: "Discounts") { +type PromotionEnded implements Event { """Time of the event.""" issuedAt: DateTime @@ -33218,7 +33630,7 @@ type PromotionEnded implements Event @doc(category: "Discounts") { } """Event sent when new promotion rule is created.""" -type PromotionRuleCreated implements Event @doc(category: "Discounts") { +type PromotionRuleCreated implements Event { """Time of the event.""" issuedAt: DateTime @@ -33236,7 +33648,7 @@ type PromotionRuleCreated implements Event @doc(category: "Discounts") { } """Event sent when new promotion rule is updated.""" -type PromotionRuleUpdated implements Event @doc(category: "Discounts") { +type PromotionRuleUpdated implements Event { """Time of the event.""" issuedAt: DateTime @@ -33254,7 +33666,7 @@ type PromotionRuleUpdated implements Event @doc(category: "Discounts") { } """Event sent when new promotion rule is deleted.""" -type PromotionRuleDeleted implements Event @doc(category: "Discounts") { +type PromotionRuleDeleted implements Event { """Time of the event.""" issuedAt: DateTime @@ -33272,7 +33684,7 @@ type PromotionRuleDeleted implements Event @doc(category: "Discounts") { } """Event sent when invoice is requested.""" -type InvoiceRequested implements Event @doc(category: "Orders") { +type InvoiceRequested implements Event { """Time of the event.""" issuedAt: DateTime @@ -33293,7 +33705,7 @@ type InvoiceRequested implements Event @doc(category: "Orders") { } """Event sent when invoice is deleted.""" -type InvoiceDeleted implements Event @doc(category: "Orders") { +type InvoiceDeleted implements Event { """Time of the event.""" issuedAt: DateTime @@ -33314,7 +33726,7 @@ type InvoiceDeleted implements Event @doc(category: "Orders") { } """Event sent when invoice is sent.""" -type InvoiceSent implements Event @doc(category: "Orders") { +type InvoiceSent implements Event { """Time of the event.""" issuedAt: DateTime @@ -33335,7 +33747,7 @@ type InvoiceSent implements Event @doc(category: "Orders") { } """Event sent when new fulfillment is created.""" -type FulfillmentCreated implements Event @doc(category: "Orders") { +type FulfillmentCreated implements Event { """Time of the event.""" issuedAt: DateTime @@ -33359,7 +33771,7 @@ type FulfillmentCreated implements Event @doc(category: "Orders") { } """Event sent when the tracking number is updated.""" -type FulfillmentTrackingNumberUpdated implements Event @doc(category: "Orders") { +type FulfillmentTrackingNumberUpdated implements Event { """Time of the event.""" issuedAt: DateTime @@ -33380,7 +33792,7 @@ type FulfillmentTrackingNumberUpdated implements Event @doc(category: "Orders") } """Event sent when fulfillment is canceled.""" -type FulfillmentCanceled implements Event @doc(category: "Orders") { +type FulfillmentCanceled implements Event { """Time of the event.""" issuedAt: DateTime @@ -33401,7 +33813,7 @@ type FulfillmentCanceled implements Event @doc(category: "Orders") { } """Event sent when fulfillment is approved.""" -type FulfillmentApproved implements Event @doc(category: "Orders") { +type FulfillmentApproved implements Event { """Time of the event.""" issuedAt: DateTime @@ -33425,7 +33837,7 @@ type FulfillmentApproved implements Event @doc(category: "Orders") { } """Event sent when fulfillment metadata is updated.""" -type FulfillmentMetadataUpdated implements Event @doc(category: "Orders") { +type FulfillmentMetadataUpdated implements Event { """Time of the event.""" issuedAt: DateTime @@ -33446,7 +33858,7 @@ type FulfillmentMetadataUpdated implements Event @doc(category: "Orders") { } """Event sent when new customer user is created.""" -type CustomerCreated implements Event @doc(category: "Users") { +type CustomerCreated implements Event { """Time of the event.""" issuedAt: DateTime @@ -33464,7 +33876,7 @@ type CustomerCreated implements Event @doc(category: "Users") { } """Event sent when customer user is updated.""" -type CustomerUpdated implements Event @doc(category: "Users") { +type CustomerUpdated implements Event { """Time of the event.""" issuedAt: DateTime @@ -33482,7 +33894,7 @@ type CustomerUpdated implements Event @doc(category: "Users") { } """Event sent when customer user metadata is updated.""" -type CustomerMetadataUpdated implements Event @doc(category: "Users") { +type CustomerMetadataUpdated implements Event { """Time of the event.""" issuedAt: DateTime @@ -33500,7 +33912,7 @@ type CustomerMetadataUpdated implements Event @doc(category: "Users") { } """Event sent when new collection is created.""" -type CollectionCreated implements Event @doc(category: "Products") { +type CollectionCreated implements Event { """Time of the event.""" issuedAt: DateTime @@ -33521,7 +33933,7 @@ type CollectionCreated implements Event @doc(category: "Products") { } """Event sent when collection is updated.""" -type CollectionUpdated implements Event @doc(category: "Products") { +type CollectionUpdated implements Event { """Time of the event.""" issuedAt: DateTime @@ -33542,7 +33954,7 @@ type CollectionUpdated implements Event @doc(category: "Products") { } """Event sent when collection is deleted.""" -type CollectionDeleted implements Event @doc(category: "Products") { +type CollectionDeleted implements Event { """Time of the event.""" issuedAt: DateTime @@ -33563,7 +33975,7 @@ type CollectionDeleted implements Event @doc(category: "Products") { } """Event sent when collection metadata is updated.""" -type CollectionMetadataUpdated implements Event @doc(category: "Products") { +type CollectionMetadataUpdated implements Event { """Time of the event.""" issuedAt: DateTime @@ -33584,7 +33996,7 @@ type CollectionMetadataUpdated implements Event @doc(category: "Products") { } """Event sent when new page is created.""" -type PageCreated implements Event @doc(category: "Pages") { +type PageCreated implements Event { """Time of the event.""" issuedAt: DateTime @@ -33602,7 +34014,7 @@ type PageCreated implements Event @doc(category: "Pages") { } """Event sent when page is updated.""" -type PageUpdated implements Event @doc(category: "Pages") { +type PageUpdated implements Event { """Time of the event.""" issuedAt: DateTime @@ -33620,7 +34032,7 @@ type PageUpdated implements Event @doc(category: "Pages") { } """Event sent when page is deleted.""" -type PageDeleted implements Event @doc(category: "Pages") { +type PageDeleted implements Event { """Time of the event.""" issuedAt: DateTime @@ -33638,7 +34050,7 @@ type PageDeleted implements Event @doc(category: "Pages") { } """Event sent when new page type is created.""" -type PageTypeCreated implements Event @doc(category: "Pages") { +type PageTypeCreated implements Event { """Time of the event.""" issuedAt: DateTime @@ -33656,7 +34068,7 @@ type PageTypeCreated implements Event @doc(category: "Pages") { } """Event sent when page type is updated.""" -type PageTypeUpdated implements Event @doc(category: "Pages") { +type PageTypeUpdated implements Event { """Time of the event.""" issuedAt: DateTime @@ -33674,7 +34086,7 @@ type PageTypeUpdated implements Event @doc(category: "Pages") { } """Event sent when page type is deleted.""" -type PageTypeDeleted implements Event @doc(category: "Pages") { +type PageTypeDeleted implements Event { """Time of the event.""" issuedAt: DateTime @@ -33692,7 +34104,7 @@ type PageTypeDeleted implements Event @doc(category: "Pages") { } """Event sent when new permission group is created.""" -type PermissionGroupCreated implements Event @doc(category: "Users") { +type PermissionGroupCreated implements Event { """Time of the event.""" issuedAt: DateTime @@ -33710,7 +34122,7 @@ type PermissionGroupCreated implements Event @doc(category: "Users") { } """Event sent when permission group is updated.""" -type PermissionGroupUpdated implements Event @doc(category: "Users") { +type PermissionGroupUpdated implements Event { """Time of the event.""" issuedAt: DateTime @@ -33728,7 +34140,7 @@ type PermissionGroupUpdated implements Event @doc(category: "Users") { } """Event sent when permission group is deleted.""" -type PermissionGroupDeleted implements Event @doc(category: "Users") { +type PermissionGroupDeleted implements Event { """Time of the event.""" issuedAt: DateTime @@ -33746,7 +34158,7 @@ type PermissionGroupDeleted implements Event @doc(category: "Users") { } """Event sent when new shipping price is created.""" -type ShippingPriceCreated implements Event @doc(category: "Shipping") { +type ShippingPriceCreated implements Event { """Time of the event.""" issuedAt: DateTime @@ -33773,7 +34185,7 @@ type ShippingPriceCreated implements Event @doc(category: "Shipping") { } """Event sent when shipping price is updated.""" -type ShippingPriceUpdated implements Event @doc(category: "Shipping") { +type ShippingPriceUpdated implements Event { """Time of the event.""" issuedAt: DateTime @@ -33800,7 +34212,7 @@ type ShippingPriceUpdated implements Event @doc(category: "Shipping") { } """Event sent when shipping price is deleted.""" -type ShippingPriceDeleted implements Event @doc(category: "Shipping") { +type ShippingPriceDeleted implements Event { """Time of the event.""" issuedAt: DateTime @@ -33827,7 +34239,7 @@ type ShippingPriceDeleted implements Event @doc(category: "Shipping") { } """Event sent when new shipping zone is created.""" -type ShippingZoneCreated implements Event @doc(category: "Shipping") { +type ShippingZoneCreated implements Event { """Time of the event.""" issuedAt: DateTime @@ -33848,7 +34260,7 @@ type ShippingZoneCreated implements Event @doc(category: "Shipping") { } """Event sent when shipping zone is updated.""" -type ShippingZoneUpdated implements Event @doc(category: "Shipping") { +type ShippingZoneUpdated implements Event { """Time of the event.""" issuedAt: DateTime @@ -33869,7 +34281,7 @@ type ShippingZoneUpdated implements Event @doc(category: "Shipping") { } """Event sent when shipping zone is deleted.""" -type ShippingZoneDeleted implements Event @doc(category: "Shipping") { +type ShippingZoneDeleted implements Event { """Time of the event.""" issuedAt: DateTime @@ -33890,7 +34302,7 @@ type ShippingZoneDeleted implements Event @doc(category: "Shipping") { } """Event sent when shipping zone metadata is updated.""" -type ShippingZoneMetadataUpdated implements Event @doc(category: "Shipping") { +type ShippingZoneMetadataUpdated implements Event { """Time of the event.""" issuedAt: DateTime @@ -33929,7 +34341,7 @@ type ShopMetadataUpdated implements Event { } """Event sent when new staff user is created.""" -type StaffCreated implements Event @doc(category: "Users") { +type StaffCreated implements Event { """Time of the event.""" issuedAt: DateTime @@ -33947,7 +34359,7 @@ type StaffCreated implements Event @doc(category: "Users") { } """Event sent when staff user is updated.""" -type StaffUpdated implements Event @doc(category: "Users") { +type StaffUpdated implements Event { """Time of the event.""" issuedAt: DateTime @@ -33965,7 +34377,7 @@ type StaffUpdated implements Event @doc(category: "Users") { } """Event sent when staff user is deleted.""" -type StaffDeleted implements Event @doc(category: "Users") { +type StaffDeleted implements Event { """Time of the event.""" issuedAt: DateTime @@ -33983,7 +34395,7 @@ type StaffDeleted implements Event @doc(category: "Users") { } """Event sent when setting a new password for staff is requested.""" -type StaffSetPasswordRequested implements Event @doc(category: "Users") { +type StaffSetPasswordRequested implements Event { """Time of the event.""" issuedAt: DateTime @@ -34013,7 +34425,7 @@ type StaffSetPasswordRequested implements Event @doc(category: "Users") { } """Event sent when transaction item metadata is updated.""" -type TransactionItemMetadataUpdated implements Event @doc(category: "Payments") { +type TransactionItemMetadataUpdated implements Event { """Time of the event.""" issuedAt: DateTime @@ -34031,7 +34443,7 @@ type TransactionItemMetadataUpdated implements Event @doc(category: "Payments") } """Event sent when new translation is created.""" -type TranslationCreated implements Event @doc(category: "Miscellaneous") { +type TranslationCreated implements Event { """Time of the event.""" issuedAt: DateTime @@ -34051,7 +34463,7 @@ type TranslationCreated implements Event @doc(category: "Miscellaneous") { union TranslationTypes = ProductTranslation | CollectionTranslation | CategoryTranslation | AttributeTranslation | AttributeValueTranslation | ProductVariantTranslation | PageTranslation | ShippingMethodTranslation | VoucherTranslation | MenuItemTranslation | PromotionTranslation | PromotionRuleTranslation | SaleTranslation """Event sent when translation is updated.""" -type TranslationUpdated implements Event @doc(category: "Miscellaneous") { +type TranslationUpdated implements Event { """Time of the event.""" issuedAt: DateTime @@ -34069,7 +34481,7 @@ type TranslationUpdated implements Event @doc(category: "Miscellaneous") { } """Event sent when new voucher is created.""" -type VoucherCreated implements Event @doc(category: "Discounts") { +type VoucherCreated implements Event { """Time of the event.""" issuedAt: DateTime @@ -34090,7 +34502,7 @@ type VoucherCreated implements Event @doc(category: "Discounts") { } """Event sent when voucher is updated.""" -type VoucherUpdated implements Event @doc(category: "Discounts") { +type VoucherUpdated implements Event { """Time of the event.""" issuedAt: DateTime @@ -34111,7 +34523,7 @@ type VoucherUpdated implements Event @doc(category: "Discounts") { } """Event sent when voucher is deleted.""" -type VoucherDeleted implements Event @doc(category: "Discounts") { +type VoucherDeleted implements Event { """Time of the event.""" issuedAt: DateTime @@ -34176,7 +34588,7 @@ type VoucherCodesDeleted implements Event { } """Event sent when voucher metadata is updated.""" -type VoucherMetadataUpdated implements Event @doc(category: "Discounts") { +type VoucherMetadataUpdated implements Event { """Time of the event.""" issuedAt: DateTime @@ -34201,7 +34613,7 @@ Event sent when voucher code export is completed. Added in Saleor 3.18. """ -type VoucherCodeExportCompleted implements Event @doc(category: "Discounts") { +type VoucherCodeExportCompleted implements Event { """Time of the event.""" issuedAt: DateTime @@ -34219,7 +34631,7 @@ type VoucherCodeExportCompleted implements Event @doc(category: "Discounts") { } """Event sent when new warehouse is created.""" -type WarehouseCreated implements Event @doc(category: "Products") { +type WarehouseCreated implements Event { """Time of the event.""" issuedAt: DateTime @@ -34237,7 +34649,7 @@ type WarehouseCreated implements Event @doc(category: "Products") { } """Event sent when warehouse is updated.""" -type WarehouseUpdated implements Event @doc(category: "Products") { +type WarehouseUpdated implements Event { """Time of the event.""" issuedAt: DateTime @@ -34255,7 +34667,7 @@ type WarehouseUpdated implements Event @doc(category: "Products") { } """Event sent when warehouse is deleted.""" -type WarehouseDeleted implements Event @doc(category: "Products") { +type WarehouseDeleted implements Event { """Time of the event.""" issuedAt: DateTime @@ -34273,7 +34685,7 @@ type WarehouseDeleted implements Event @doc(category: "Products") { } """Event sent when warehouse metadata is updated.""" -type WarehouseMetadataUpdated implements Event @doc(category: "Products") { +type WarehouseMetadataUpdated implements Event { """Time of the event.""" issuedAt: DateTime @@ -34291,7 +34703,7 @@ type WarehouseMetadataUpdated implements Event @doc(category: "Products") { } """Event sent when thumbnail is created.""" -type ThumbnailCreated implements Event @doc(category: "Miscellaneous") { +type ThumbnailCreated implements Event { """Time of the event.""" issuedAt: DateTime @@ -34318,7 +34730,7 @@ type ThumbnailCreated implements Event @doc(category: "Miscellaneous") { } """Authorize payment.""" -type PaymentAuthorize implements Event @doc(category: "Payments") { +type PaymentAuthorize implements Event { """Time of the event.""" issuedAt: DateTime @@ -34336,7 +34748,7 @@ type PaymentAuthorize implements Event @doc(category: "Payments") { } """Capture payment.""" -type PaymentCaptureEvent implements Event @doc(category: "Payments") { +type PaymentCaptureEvent implements Event { """Time of the event.""" issuedAt: DateTime @@ -34354,7 +34766,7 @@ type PaymentCaptureEvent implements Event @doc(category: "Payments") { } """Refund payment.""" -type PaymentRefundEvent implements Event @doc(category: "Payments") { +type PaymentRefundEvent implements Event { """Time of the event.""" issuedAt: DateTime @@ -34372,7 +34784,7 @@ type PaymentRefundEvent implements Event @doc(category: "Payments") { } """Void payment.""" -type PaymentVoidEvent implements Event @doc(category: "Payments") { +type PaymentVoidEvent implements Event { """Time of the event.""" issuedAt: DateTime @@ -34390,7 +34802,7 @@ type PaymentVoidEvent implements Event @doc(category: "Payments") { } """Confirm payment.""" -type PaymentConfirmEvent implements Event @doc(category: "Payments") { +type PaymentConfirmEvent implements Event { """Time of the event.""" issuedAt: DateTime @@ -34408,7 +34820,7 @@ type PaymentConfirmEvent implements Event @doc(category: "Payments") { } """Process payment.""" -type PaymentProcessEvent implements Event @doc(category: "Payments") { +type PaymentProcessEvent implements Event { """Time of the event.""" issuedAt: DateTime @@ -34426,7 +34838,7 @@ type PaymentProcessEvent implements Event @doc(category: "Payments") { } """List payment gateways.""" -type PaymentListGateways implements Event @doc(category: "Payments") { +type PaymentListGateways implements Event { """Time of the event.""" issuedAt: DateTime @@ -34444,7 +34856,7 @@ type PaymentListGateways implements Event @doc(category: "Payments") { } """Event sent when transaction cancelation is requested.""" -type TransactionCancelationRequested implements Event @doc(category: "Payments") { +type TransactionCancelationRequested implements Event { """Time of the event.""" issuedAt: DateTime @@ -34464,7 +34876,7 @@ type TransactionCancelationRequested implements Event @doc(category: "Payments") action: TransactionAction! } -type TransactionAction @doc(category: "Payments") { +type TransactionAction { """Determines the action type.""" actionType: TransactionActionEnum! @@ -34476,7 +34888,7 @@ type TransactionAction @doc(category: "Payments") { } """Event sent when transaction charge is requested.""" -type TransactionChargeRequested implements Event @doc(category: "Payments") { +type TransactionChargeRequested implements Event { """Time of the event.""" issuedAt: DateTime @@ -34497,7 +34909,7 @@ type TransactionChargeRequested implements Event @doc(category: "Payments") { } """Event sent when transaction refund is requested.""" -type TransactionRefundRequested implements Event @doc(category: "Payments") { +type TransactionRefundRequested implements Event { """Time of the event.""" issuedAt: DateTime @@ -34525,7 +34937,7 @@ type TransactionRefundRequested implements Event @doc(category: "Payments") { } """Filter shipping methods for order.""" -type OrderFilterShippingMethods implements Event @doc(category: "Orders") { +type OrderFilterShippingMethods implements Event { """Time of the event.""" issuedAt: DateTime @@ -34546,7 +34958,7 @@ type OrderFilterShippingMethods implements Event @doc(category: "Orders") { } """Filter shipping methods for checkout.""" -type CheckoutFilterShippingMethods implements Event @doc(category: "Checkout") { +type CheckoutFilterShippingMethods implements Event { """Time of the event.""" issuedAt: DateTime @@ -34567,7 +34979,7 @@ type CheckoutFilterShippingMethods implements Event @doc(category: "Checkout") { } """List shipping methods for checkout.""" -type ShippingListMethodsForCheckout implements Event @doc(category: "Checkout") { +type ShippingListMethodsForCheckout implements Event { """Time of the event.""" issuedAt: DateTime @@ -34588,7 +35000,7 @@ type ShippingListMethodsForCheckout implements Event @doc(category: "Checkout") } """Synchronous webhook for calculating checkout/order taxes.""" -type CalculateTaxes implements Event @doc(category: "Taxes") { +type CalculateTaxes implements Event { """Time of the event.""" issuedAt: DateTime @@ -34604,7 +35016,7 @@ type CalculateTaxes implements Event @doc(category: "Taxes") { } """Taxable object.""" -type TaxableObject @doc(category: "Taxes") { +type TaxableObject { """The source object related to this tax object.""" sourceObject: TaxSourceObject! @@ -34631,7 +35043,7 @@ type TaxableObject @doc(category: "Taxes") { } """Taxable object discount.""" -type TaxableObjectDiscount @doc(category: "Taxes") { +type TaxableObjectDiscount { """The name of the discount.""" name: String @@ -34647,12 +35059,12 @@ type TaxableObjectDiscount @doc(category: "Taxes") { """ Indicates which part of the order the discount should affect: SUBTOTAL or SHIPPING. """ -enum TaxableObjectDiscountTypeEnum @doc(category: "Taxes") { +enum TaxableObjectDiscountTypeEnum { SUBTOTAL SHIPPING } -type TaxableObjectLine @doc(category: "Taxes") { +type TaxableObjectLine { """The source line related to this tax line.""" sourceLine: TaxSourceLine! @@ -34685,7 +35097,7 @@ type TaxableObjectLine @doc(category: "Taxes") { union TaxSourceLine = CheckoutLine | OrderLine """Event sent when user wants to initialize the payment gateway.""" -type PaymentGatewayInitializeSession implements Event @doc(category: "Payments") { +type PaymentGatewayInitializeSession implements Event { """Time of the event.""" issuedAt: DateTime @@ -34711,7 +35123,7 @@ type PaymentGatewayInitializeSession implements Event @doc(category: "Payments") union OrderOrCheckout = Checkout | Order """Event sent when user starts processing the payment.""" -type TransactionInitializeSession implements Event @doc(category: "Payments") { +type TransactionInitializeSession implements Event { """Time of the event.""" issuedAt: DateTime @@ -34748,7 +35160,7 @@ type TransactionInitializeSession implements Event @doc(category: "Payments") { idempotencyKey: String! } -type TransactionProcessAction @doc(category: "Payments") { +type TransactionProcessAction { """Transaction amount to process.""" amount: PositiveDecimal! @@ -34758,7 +35170,7 @@ type TransactionProcessAction @doc(category: "Payments") { } """Event sent when user has additional payment action to process.""" -type TransactionProcessSession implements Event @doc(category: "Payments") { +type TransactionProcessSession implements Event { """Time of the event.""" issuedAt: DateTime @@ -34797,7 +35209,7 @@ List payment methods stored for the user by payment gateway. Note: this API is currently in Feature Preview and can be subject to changes at later point. """ -type ListStoredPaymentMethods implements Event @doc(category: "Payments") { +type ListStoredPaymentMethods implements Event { """Time of the event.""" issuedAt: DateTime @@ -34820,7 +35232,7 @@ type ListStoredPaymentMethods implements Event @doc(category: "Payments") { } """Event sent when user requests to delete a payment method.""" -type StoredPaymentMethodDeleteRequested implements Event @doc(category: "Payments") { +type StoredPaymentMethodDeleteRequested implements Event { """Time of the event.""" issuedAt: DateTime @@ -34848,9 +35260,9 @@ type StoredPaymentMethodDeleteRequested implements Event @doc(category: "Payment } """ -Event sent to initialize a new session in payment gateway to store the payment method. +Event sent to initialize a new session in payment gateway to store the payment method. """ -type PaymentGatewayInitializeTokenizationSession implements Event @doc(category: "Payments") { +type PaymentGatewayInitializeTokenizationSession implements Event { """Time of the event.""" issuedAt: DateTime @@ -34874,7 +35286,7 @@ type PaymentGatewayInitializeTokenizationSession implements Event @doc(category: } """Event sent when user requests a tokenization of payment method.""" -type PaymentMethodInitializeTokenizationSession implements Event @doc(category: "Payments") { +type PaymentMethodInitializeTokenizationSession implements Event { """Time of the event.""" issuedAt: DateTime @@ -34901,7 +35313,7 @@ type PaymentMethodInitializeTokenizationSession implements Event @doc(category: } """Event sent when user continues a tokenization of payment method.""" -type PaymentMethodProcessTokenizationSession implements Event @doc(category: "Payments") { +type PaymentMethodProcessTokenizationSession implements Event { """Time of the event.""" issuedAt: DateTime @@ -34969,7 +35381,7 @@ Represents a numeric value of an attribute. Added in Saleor 3.22. """ -type AssignedNumericAttribute implements AssignedAttribute @doc(category: "Attributes") { +type AssignedNumericAttribute implements AssignedAttribute { """Attribute assigned to an object.""" attribute: Attribute! @@ -34982,7 +35394,7 @@ Represents text attribute. Added in Saleor 3.22. """ -type AssignedTextAttribute implements AssignedAttribute @doc(category: "Attributes") { +type AssignedTextAttribute implements AssignedAttribute { """Attribute assigned to an object.""" attribute: Attribute! @@ -34998,7 +35410,7 @@ Represents plain text attribute. Added in Saleor 3.22. """ -type AssignedPlainTextAttribute implements AssignedAttribute @doc(category: "Attributes") { +type AssignedPlainTextAttribute implements AssignedAttribute { """Attribute assigned to an object.""" attribute: Attribute! @@ -35014,7 +35426,7 @@ Represents file attribute. Added in Saleor 3.22. """ -type AssignedFileAttribute implements AssignedAttribute @doc(category: "Attributes") { +type AssignedFileAttribute implements AssignedAttribute { """Attribute assigned to an object.""" attribute: Attribute! @@ -35027,7 +35439,7 @@ Represents a single choice attribute. Added in Saleor 3.22. """ -type AssignedSingleChoiceAttribute implements AssignedAttribute @doc(category: "Attributes") { +type AssignedSingleChoiceAttribute implements AssignedAttribute { """Attribute assigned to an object.""" attribute: Attribute! @@ -35040,7 +35452,7 @@ Represents a single choice value of the attribute. Added in Saleor 3.22. """ -type AssignedChoiceAttributeValue @doc(category: "Attributes") { +type AssignedChoiceAttributeValue { """Name of a value displayed in the interface.""" name: String @@ -35056,7 +35468,7 @@ Represents a multi choice attribute. Added in Saleor 3.22. """ -type AssignedMultiChoiceAttribute implements AssignedAttribute @doc(category: "Attributes") { +type AssignedMultiChoiceAttribute implements AssignedAttribute { """Attribute assigned to an object.""" attribute: Attribute! @@ -35072,7 +35484,7 @@ Represents a swatch attribute. Added in Saleor 3.22. """ -type AssignedSwatchAttribute implements AssignedAttribute @doc(category: "Attributes") { +type AssignedSwatchAttribute implements AssignedAttribute { """Attribute assigned to an object.""" attribute: Attribute! @@ -35085,8 +35497,8 @@ Represents a single swatch value. Added in Saleor 3.22. """ -type AssignedSwatchAttributeValue @doc(category: "Attributes") { - """Name of the selected swatch value.""" +type AssignedSwatchAttributeValue { + """Name of the selected swatch value. """ name: String """Slug of the selected swatch value.""" @@ -35104,7 +35516,7 @@ Represents a boolean attribute. Added in Saleor 3.22. """ -type AssignedBooleanAttribute implements AssignedAttribute @doc(category: "Attributes") { +type AssignedBooleanAttribute implements AssignedAttribute { """Attribute assigned to an object.""" attribute: Attribute! @@ -35117,7 +35529,7 @@ Represents a date attribute. Added in Saleor 3.22. """ -type AssignedDateAttribute implements AssignedAttribute @doc(category: "Attributes") { +type AssignedDateAttribute implements AssignedAttribute { """Attribute assigned to an object.""" attribute: Attribute! @@ -35130,7 +35542,7 @@ Represents a date time attribute. Added in Saleor 3.22. """ -type AssignedDateTimeAttribute implements AssignedAttribute @doc(category: "Attributes") { +type AssignedDateTimeAttribute implements AssignedAttribute { """Attribute assigned to an object.""" attribute: Attribute! @@ -35143,7 +35555,7 @@ Represents single page reference attribute. Added in Saleor 3.22. """ -type AssignedSinglePageReferenceAttribute implements AssignedAttribute @doc(category: "Attributes") { +type AssignedSinglePageReferenceAttribute implements AssignedAttribute { """Attribute assigned to an object.""" attribute: Attribute! @@ -35156,7 +35568,7 @@ Represents single product reference attribute. Added in Saleor 3.22. """ -type AssignedSingleProductReferenceAttribute implements AssignedAttribute @doc(category: "Attributes") { +type AssignedSingleProductReferenceAttribute implements AssignedAttribute { """Attribute assigned to an object.""" attribute: Attribute! @@ -35169,7 +35581,7 @@ Represents single product variant reference attribute. Added in Saleor 3.22. """ -type AssignedSingleProductVariantReferenceAttribute implements AssignedAttribute @doc(category: "Attributes") { +type AssignedSingleProductVariantReferenceAttribute implements AssignedAttribute { """Attribute assigned to an object.""" attribute: Attribute! @@ -35182,7 +35594,7 @@ Represents single category reference attribute. Added in Saleor 3.22. """ -type AssignedSingleCategoryReferenceAttribute implements AssignedAttribute @doc(category: "Attributes") { +type AssignedSingleCategoryReferenceAttribute implements AssignedAttribute { """Attribute assigned to an object.""" attribute: Attribute! @@ -35195,7 +35607,7 @@ Represents single collection reference attribute. Added in Saleor 3.22. """ -type AssignedSingleCollectionReferenceAttribute implements AssignedAttribute @doc(category: "Attributes") { +type AssignedSingleCollectionReferenceAttribute implements AssignedAttribute { """Attribute assigned to an object.""" attribute: Attribute! @@ -35208,7 +35620,7 @@ Represents multi page reference attribute. Added in Saleor 3.22. """ -type AssignedMultiPageReferenceAttribute implements AssignedAttribute @doc(category: "Attributes") { +type AssignedMultiPageReferenceAttribute implements AssignedAttribute { """Attribute assigned to an object.""" attribute: Attribute! @@ -35224,7 +35636,7 @@ Represents multi product reference attribute. Added in Saleor 3.22. """ -type AssignedMultiProductReferenceAttribute implements AssignedAttribute @doc(category: "Attributes") { +type AssignedMultiProductReferenceAttribute implements AssignedAttribute { """Attribute assigned to an object.""" attribute: Attribute! @@ -35240,7 +35652,7 @@ Represents multi product variant reference attribute. Added in Saleor 3.22. """ -type AssignedMultiProductVariantReferenceAttribute implements AssignedAttribute @doc(category: "Attributes") { +type AssignedMultiProductVariantReferenceAttribute implements AssignedAttribute { """Attribute assigned to an object.""" attribute: Attribute! @@ -35258,7 +35670,7 @@ Represents multi category reference attribute. Added in Saleor 3.22. """ -type AssignedMultiCategoryReferenceAttribute implements AssignedAttribute @doc(category: "Attributes") { +type AssignedMultiCategoryReferenceAttribute implements AssignedAttribute { """Attribute assigned to an object.""" attribute: Attribute! @@ -35274,7 +35686,7 @@ Represents multi collection reference attribute. Added in Saleor 3.22. """ -type AssignedMultiCollectionReferenceAttribute implements AssignedAttribute @doc(category: "Attributes") { +type AssignedMultiCollectionReferenceAttribute implements AssignedAttribute { """Attribute assigned to an object.""" attribute: Attribute! @@ -35294,4 +35706,4 @@ union _Entity = App | PageType | Address | User | Group | ProductVariant | Produ """_Service manifest as defined by Federation spec.""" type _Service { sdl: String -} +} \ No newline at end of file diff --git a/src/fragments/orders.ts b/src/fragments/orders.ts index 54daf714137..4a7c0f5f16c 100644 --- a/src/fragments/orders.ts +++ b/src/fragments/orders.ts @@ -288,6 +288,11 @@ export const fulfillmentFragment = gql` orderLine { ...OrderLine } + reason + reasonReference { + id + title + } } fulfillmentOrder status @@ -296,6 +301,11 @@ export const fulfillmentFragment = gql` id name } + reason + reasonReference { + id + title + } } `; @@ -763,6 +773,11 @@ export const fragmentOrderGrantedRefunds = gql` orderLine { id } + reason + reasonReference { + id + title + } } } `; @@ -805,6 +820,10 @@ export const orderDetailsGrantedRefund = gql` id quantity reason + reasonReference { + id + title + } orderLine { ...OrderLine } diff --git a/src/graphql/hooks.generated.ts b/src/graphql/hooks.generated.ts index 47f2fc9e849..18477fe5afb 100644 --- a/src/graphql/hooks.generated.ts +++ b/src/graphql/hooks.generated.ts @@ -1984,6 +1984,11 @@ export const OrderGrantedRefundFragmentDoc = gql` orderLine { id } + reason + reasonReference { + id + title + } } } ${UserBaseAvatarFragmentDoc}`; @@ -2078,6 +2083,11 @@ export const FulfillmentFragmentDoc = gql` orderLine { ...OrderLine } + reason + reasonReference { + id + title + } } fulfillmentOrder status @@ -2086,6 +2096,11 @@ export const FulfillmentFragmentDoc = gql` id name } + reason + reasonReference { + id + title + } } ${MetadataFragmentDoc} ${OrderLineFragmentDoc}`; @@ -2422,6 +2437,10 @@ export const OrderDetailsGrantedRefundFragmentDoc = gql` id quantity reason + reasonReference { + id + title + } orderLine { ...OrderLine } @@ -12904,10 +12923,10 @@ export type OrderGrantRefundAddMutationHookResult = ReturnType; export type OrderGrantRefundAddMutationOptions = Apollo.BaseMutationOptions; export const OrderGrantRefundAddWithOrderDocument = gql` - mutation OrderGrantRefundAddWithOrder($orderId: ID!, $amount: Decimal, $reason: String, $lines: [OrderGrantRefundCreateLineInput!], $grantRefundForShipping: Boolean, $transactionId: ID!) { + mutation OrderGrantRefundAddWithOrder($orderId: ID!, $amount: Decimal, $reason: String, $reasonReferenceId: ID, $lines: [OrderGrantRefundCreateLineInput!], $grantRefundForShipping: Boolean, $transactionId: ID!) { orderGrantRefundCreate( id: $orderId - input: {amount: $amount, reason: $reason, lines: $lines, grantRefundForShipping: $grantRefundForShipping, transactionId: $transactionId} + input: {amount: $amount, reason: $reason, reasonReference: $reasonReferenceId, lines: $lines, grantRefundForShipping: $grantRefundForShipping, transactionId: $transactionId} ) { errors { ...OrderGrantRefundCreateError @@ -12940,6 +12959,7 @@ export type OrderGrantRefundAddWithOrderMutationFn = Apollo.MutationFunction | FieldReadFunction, uploadedFile?: FieldPolicy | FieldReadFunction }; -export type FulfillmentKeySpecifier = ('created' | 'fulfillmentOrder' | 'id' | 'lines' | 'metadata' | 'metafield' | 'metafields' | 'privateMetadata' | 'privateMetafield' | 'privateMetafields' | 'shippingRefundedAmount' | 'status' | 'statusDisplay' | 'totalRefundedAmount' | 'trackingNumber' | 'warehouse' | FulfillmentKeySpecifier)[]; +export type FulfillmentKeySpecifier = ('created' | 'fulfillmentOrder' | 'id' | 'lines' | 'metadata' | 'metafield' | 'metafields' | 'privateMetadata' | 'privateMetafield' | 'privateMetafields' | 'reason' | 'reasonReference' | 'shippingRefundedAmount' | 'status' | 'statusDisplay' | 'totalRefundedAmount' | 'trackingNumber' | 'warehouse' | FulfillmentKeySpecifier)[]; export type FulfillmentFieldPolicy = { created?: FieldPolicy | FieldReadFunction, fulfillmentOrder?: FieldPolicy | FieldReadFunction, @@ -2107,6 +2107,8 @@ export type FulfillmentFieldPolicy = { privateMetadata?: FieldPolicy | FieldReadFunction, privateMetafield?: FieldPolicy | FieldReadFunction, privateMetafields?: FieldPolicy | FieldReadFunction, + reason?: FieldPolicy | FieldReadFunction, + reasonReference?: FieldPolicy | FieldReadFunction, shippingRefundedAmount?: FieldPolicy | FieldReadFunction, status?: FieldPolicy | FieldReadFunction, statusDisplay?: FieldPolicy | FieldReadFunction, @@ -2157,11 +2159,13 @@ export type FulfillmentCreatedFieldPolicy = { recipient?: FieldPolicy | FieldReadFunction, version?: FieldPolicy | FieldReadFunction }; -export type FulfillmentLineKeySpecifier = ('id' | 'orderLine' | 'quantity' | FulfillmentLineKeySpecifier)[]; +export type FulfillmentLineKeySpecifier = ('id' | 'orderLine' | 'quantity' | 'reason' | 'reasonReference' | FulfillmentLineKeySpecifier)[]; export type FulfillmentLineFieldPolicy = { id?: FieldPolicy | FieldReadFunction, orderLine?: FieldPolicy | FieldReadFunction, - quantity?: FieldPolicy | FieldReadFunction + quantity?: FieldPolicy | FieldReadFunction, + reason?: FieldPolicy | FieldReadFunction, + reasonReference?: FieldPolicy | FieldReadFunction }; export type FulfillmentMetadataUpdatedKeySpecifier = ('fulfillment' | 'issuedAt' | 'issuingPrincipal' | 'order' | 'recipient' | 'version' | FulfillmentMetadataUpdatedKeySpecifier)[]; export type FulfillmentMetadataUpdatedFieldPolicy = { @@ -3558,12 +3562,13 @@ export type OrderGrantedRefundFieldPolicy = { updatedAt?: FieldPolicy | FieldReadFunction, user?: FieldPolicy | FieldReadFunction }; -export type OrderGrantedRefundLineKeySpecifier = ('id' | 'orderLine' | 'quantity' | 'reason' | OrderGrantedRefundLineKeySpecifier)[]; +export type OrderGrantedRefundLineKeySpecifier = ('id' | 'orderLine' | 'quantity' | 'reason' | 'reasonReference' | OrderGrantedRefundLineKeySpecifier)[]; export type OrderGrantedRefundLineFieldPolicy = { id?: FieldPolicy | FieldReadFunction, orderLine?: FieldPolicy | FieldReadFunction, quantity?: FieldPolicy | FieldReadFunction, - reason?: FieldPolicy | FieldReadFunction + reason?: FieldPolicy | FieldReadFunction, + reasonReference?: FieldPolicy | FieldReadFunction }; export type OrderLineKeySpecifier = ('allocations' | 'digitalContentUrl' | 'discounts' | 'id' | 'isGift' | 'isPriceOverridden' | 'isShippingRequired' | 'metadata' | 'metafield' | 'metafields' | 'privateMetadata' | 'privateMetafield' | 'privateMetafields' | 'productName' | 'productSku' | 'productVariantId' | 'quantity' | 'quantityFulfilled' | 'quantityToFulfill' | 'saleId' | 'taxClass' | 'taxClassMetadata' | 'taxClassName' | 'taxClassPrivateMetadata' | 'taxRate' | 'thumbnail' | 'totalPrice' | 'translatedProductName' | 'translatedVariantName' | 'undiscountedTotalPrice' | 'undiscountedUnitPrice' | 'unitDiscount' | 'unitDiscountReason' | 'unitDiscountType' | 'unitDiscountValue' | 'unitPrice' | 'variant' | 'variantName' | 'voucherCode' | OrderLineKeySpecifier)[]; export type OrderLineFieldPolicy = { @@ -5363,7 +5368,7 @@ export type PromotionUpdatedEventFieldPolicy = { id?: FieldPolicy | FieldReadFunction, type?: FieldPolicy | FieldReadFunction }; -export type QueryKeySpecifier = ('_entities' | '_service' | 'address' | 'addressValidationRules' | 'app' | 'appExtension' | 'appExtensions' | 'apps' | 'appsInstallations' | 'attribute' | 'attributes' | 'categories' | 'category' | 'channel' | 'channels' | 'checkout' | 'checkoutLines' | 'checkouts' | 'collection' | 'collections' | 'customers' | 'digitalContent' | 'digitalContents' | 'draftOrders' | 'exportFile' | 'exportFiles' | 'giftCard' | 'giftCardCurrencies' | 'giftCardSettings' | 'giftCardTags' | 'giftCards' | 'homepageEvents' | 'me' | 'menu' | 'menuItem' | 'menuItems' | 'menus' | 'order' | 'orderByToken' | 'orderSettings' | 'orders' | 'ordersTotal' | 'page' | 'pageType' | 'pageTypes' | 'pages' | 'payment' | 'payments' | 'permissionGroup' | 'permissionGroups' | 'plugin' | 'plugins' | 'product' | 'productType' | 'productTypes' | 'productVariant' | 'productVariants' | 'products' | 'promotion' | 'promotions' | 'refundSettings' | 'reportProductSales' | 'sale' | 'sales' | 'shippingZone' | 'shippingZones' | 'shop' | 'staffUsers' | 'stock' | 'stocks' | 'taxClass' | 'taxClasses' | 'taxConfiguration' | 'taxConfigurations' | 'taxCountryConfiguration' | 'taxCountryConfigurations' | 'taxTypes' | 'transaction' | 'translation' | 'translations' | 'user' | 'voucher' | 'vouchers' | 'warehouse' | 'warehouses' | 'webhook' | 'webhookEvents' | 'webhookSamplePayload' | QueryKeySpecifier)[]; +export type QueryKeySpecifier = ('_entities' | '_service' | 'address' | 'addressValidationRules' | 'app' | 'appExtension' | 'appExtensions' | 'apps' | 'appsInstallations' | 'attribute' | 'attributes' | 'categories' | 'category' | 'channel' | 'channels' | 'checkout' | 'checkoutLines' | 'checkouts' | 'collection' | 'collections' | 'customers' | 'digitalContent' | 'digitalContents' | 'draftOrders' | 'exportFile' | 'exportFiles' | 'giftCard' | 'giftCardCurrencies' | 'giftCardSettings' | 'giftCardTags' | 'giftCards' | 'homepageEvents' | 'me' | 'menu' | 'menuItem' | 'menuItems' | 'menus' | 'order' | 'orderByToken' | 'orderSettings' | 'orders' | 'ordersTotal' | 'page' | 'pageType' | 'pageTypes' | 'pages' | 'payment' | 'payments' | 'permissionGroup' | 'permissionGroups' | 'plugin' | 'plugins' | 'product' | 'productType' | 'productTypes' | 'productVariant' | 'productVariants' | 'products' | 'promotion' | 'promotions' | 'refundSettings' | 'reportProductSales' | 'sale' | 'sales' | 'shippingZone' | 'shippingZones' | 'shop' | 'staffUsers' | 'stock' | 'stocks' | 'taxClass' | 'taxClasses' | 'taxConfiguration' | 'taxConfigurations' | 'taxCountryConfiguration' | 'taxCountryConfigurations' | 'taxTypes' | 'transaction' | 'transactions' | 'translation' | 'translations' | 'user' | 'voucher' | 'vouchers' | 'warehouse' | 'warehouses' | 'webhook' | 'webhookEvents' | 'webhookSamplePayload' | QueryKeySpecifier)[]; export type QueryFieldPolicy = { _entities?: FieldPolicy | FieldReadFunction, _service?: FieldPolicy | FieldReadFunction, @@ -5443,6 +5448,7 @@ export type QueryFieldPolicy = { taxCountryConfigurations?: FieldPolicy | FieldReadFunction, taxTypes?: FieldPolicy | FieldReadFunction, transaction?: FieldPolicy | FieldReadFunction, + transactions?: FieldPolicy | FieldReadFunction, translation?: FieldPolicy | FieldReadFunction, translations?: FieldPolicy | FieldReadFunction, user?: FieldPolicy | FieldReadFunction, @@ -6472,6 +6478,17 @@ export type TransactionChargeRequestedFieldPolicy = { transaction?: FieldPolicy | FieldReadFunction, version?: FieldPolicy | FieldReadFunction }; +export type TransactionCountableConnectionKeySpecifier = ('edges' | 'pageInfo' | 'totalCount' | TransactionCountableConnectionKeySpecifier)[]; +export type TransactionCountableConnectionFieldPolicy = { + edges?: FieldPolicy | FieldReadFunction, + pageInfo?: FieldPolicy | FieldReadFunction, + totalCount?: FieldPolicy | FieldReadFunction +}; +export type TransactionCountableEdgeKeySpecifier = ('cursor' | 'node' | TransactionCountableEdgeKeySpecifier)[]; +export type TransactionCountableEdgeFieldPolicy = { + cursor?: FieldPolicy | FieldReadFunction, + node?: FieldPolicy | FieldReadFunction +}; export type TransactionCreateKeySpecifier = ('errors' | 'transaction' | TransactionCreateKeySpecifier)[]; export type TransactionCreateFieldPolicy = { errors?: FieldPolicy | FieldReadFunction, @@ -10330,6 +10347,14 @@ export type StrictTypedTypePolicies = { keyFields?: false | TransactionChargeRequestedKeySpecifier | (() => undefined | TransactionChargeRequestedKeySpecifier), fields?: TransactionChargeRequestedFieldPolicy, }, + TransactionCountableConnection?: Omit & { + keyFields?: false | TransactionCountableConnectionKeySpecifier | (() => undefined | TransactionCountableConnectionKeySpecifier), + fields?: TransactionCountableConnectionFieldPolicy, + }, + TransactionCountableEdge?: Omit & { + keyFields?: false | TransactionCountableEdgeKeySpecifier | (() => undefined | TransactionCountableEdgeKeySpecifier), + fields?: TransactionCountableEdgeFieldPolicy, + }, TransactionCreate?: Omit & { keyFields?: false | TransactionCreateKeySpecifier | (() => undefined | TransactionCreateKeySpecifier), fields?: TransactionCreateFieldPolicy, diff --git a/src/graphql/types.generated.ts b/src/graphql/types.generated.ts index 8107bd1f443..01b3b96ec87 100644 --- a/src/graphql/types.generated.ts +++ b/src/graphql/types.generated.ts @@ -219,6 +219,7 @@ export enum AddressTypeEnum { * within the channel * * PRIORITIZE_HIGH_STOCK - allocate stock in a warehouse with the most stock + * */ export enum AllocationStrategyEnum { PRIORITIZE_HIGH_STOCK = 'PRIORITIZE_HIGH_STOCK', @@ -246,7 +247,8 @@ export enum AppErrorCode { export type AppExtensionFilterInput = { /** * DEPRECATED: Use `mountName` instead. - * @deprecated Field no longer supported + * + * DEPRECATED: this field will be removed. */ mount?: InputMaybe>; /** @@ -257,7 +259,8 @@ export type AppExtensionFilterInput = { mountName?: InputMaybe>; /** * DEPRECATED: Use `targetName` instead. - * @deprecated Field no longer supported + * + * DEPRECATED: this field will be removed. */ target?: InputMaybe; /** @@ -327,6 +330,7 @@ export enum AppExtensionMountEnum { * * POPUP - app's extension will be mounted as a popup window * APP_PAGE - redirect to app's page + * */ export enum AppExtensionTargetEnum { APP_PAGE = 'APP_PAGE', @@ -510,7 +514,8 @@ export type AttributeChoicesSortingInput = { export type AttributeCreateInput = { /** * Whether the attribute can be displayed in the admin product list. - * @deprecated Field no longer supported + * + * DEPRECATED: this field will be removed. */ availableInGrid?: InputMaybe; /** The entity type which can be used as a reference. */ @@ -521,7 +526,8 @@ export type AttributeCreateInput = { filterableInDashboard?: InputMaybe; /** * Whether the attribute can be filtered in storefront. - * @deprecated Field no longer supported + * + * DEPRECATED: this field will be removed. */ filterableInStorefront?: InputMaybe; /** The input type to use for entering attribute values in the dashboard. */ @@ -542,7 +548,8 @@ export type AttributeCreateInput = { slug?: InputMaybe; /** * The position of the attribute in the storefront navigation (0 by default). - * @deprecated Field no longer supported + * + * DEPRECATED: this field will be removed. */ storefrontSearchPosition?: InputMaybe; /** The attribute type. */ @@ -585,7 +592,8 @@ export type AttributeFilterInput = { availableInGrid?: InputMaybe; /** * Specifies the channel by which the data should be filtered. - * @deprecated Use root-level channel argument instead. + * + * DEPRECATED: this field will be removed. Use root-level channel argument instead. */ channel?: InputMaybe; filterableInDashboard?: InputMaybe; @@ -605,31 +613,36 @@ export type AttributeFilterInput = { export type AttributeInput = { /** * The boolean value of the attribute. Requires `slug` to be provided. - * @deprecated Use `value` instead. + * + * DEPRECATED: this field will be removed. Use `value` instead. */ boolean?: InputMaybe; /** * The date range that the returned values should be in. In case of date/time attributes, the UTC midnight of the given date is used. Requires `slug` to be provided. - * @deprecated Use `value` instead. + * + * DEPRECATED: this field will be removed. Use `value` instead. */ date?: InputMaybe; /** * The date/time range that the returned values should be in. Requires `slug` to be provided. - * @deprecated Use `value` instead. + * + * DEPRECATED: this field will be removed. Use `value` instead. */ dateTime?: InputMaybe; /** Internal representation of an attribute name. */ slug?: InputMaybe; - /** Filter by value of the attribute. Only one value input field is allowed. If provided more than one, the error will be raised. Cannot be combined with deprecated fields of `AttributeInput`. */ + /** Filter by value of the attribute. Only one value input field is allowed. If provided more than one, the error will be raised. Cannot be combined with deprecated fields of `AttributeInput`. */ value?: InputMaybe; /** * Slugs identifying the attributeValues associated with the Attribute. When specified, it filters the results to include only records with one of the matching values. Requires `slug` to be provided. - * @deprecated Use `value` instead. + * + * DEPRECATED: this field will be removed. Use `value` instead. */ values?: InputMaybe>; /** * The range that the returned values should be in. Requires `slug` to be provided. - * @deprecated Use `value` instead. + * + * DEPRECATED: this field will be removed. Use `value` instead. */ valuesRange?: InputMaybe; }; @@ -713,7 +726,8 @@ export type AttributeUpdateInput = { addValues?: InputMaybe>; /** * Whether the attribute can be displayed in the admin product list. - * @deprecated Field no longer supported + * + * DEPRECATED: this field will be removed. */ availableInGrid?: InputMaybe; /** External ID of this product. */ @@ -722,7 +736,8 @@ export type AttributeUpdateInput = { filterableInDashboard?: InputMaybe; /** * Whether the attribute can be filtered in storefront. - * @deprecated Field no longer supported + * + * DEPRECATED: this field will be removed. */ filterableInStorefront?: InputMaybe; /** Whether the attribute is for variants only. */ @@ -743,7 +758,8 @@ export type AttributeUpdateInput = { slug?: InputMaybe; /** * The position of the attribute in the storefront navigation (0 by default). - * @deprecated Field no longer supported + * + * DEPRECATED: this field will be removed. */ storefrontSearchPosition?: InputMaybe; /** The unit of attribute values. */ @@ -776,14 +792,16 @@ export type AttributeValueCreateInput = { name: Scalars['String']; /** * Represents the text of the attribute value, plain text without formatting. - * @deprecated The plain text attribute hasn't got predefined value, so can be specified only from instance that supports the given attribute. + * + * DEPRECATED: this field will be removed.The plain text attribute hasn't got predefined value, so can be specified only from instance that supports the given attribute. */ plainText?: InputMaybe; /** * Represents the text of the attribute value, includes formatting. * * Rich text format. For reference see https://editorjs.io/ - * @deprecated The rich text attribute hasn't got predefined value, so can be specified only from instance that supports the given attribute. + * + * DEPRECATED: this field will be removed.The rich text attribute hasn't got predefined value, so can be specified only from instance that supports the given attribute. */ richText?: InputMaybe; /** Represent value of the attribute value (e.g. color values for swatch attributes). */ @@ -833,7 +851,8 @@ export type AttributeValueInput = { swatch?: InputMaybe; /** * The value or slug of an attribute to resolve. If the passed value is non-existent, it will be created. - * @deprecated Field no longer supported + * + * DEPRECATED: this field will be removed. */ values?: InputMaybe>; }; @@ -884,14 +903,16 @@ export type AttributeValueUpdateInput = { name?: InputMaybe; /** * Represents the text of the attribute value, plain text without formatting. - * @deprecated The plain text attribute hasn't got predefined value, so can be specified only from instance that supports the given attribute. + * + * DEPRECATED: this field will be removed.The plain text attribute hasn't got predefined value, so can be specified only from instance that supports the given attribute. */ plainText?: InputMaybe; /** * Represents the text of the attribute value, includes formatting. * * Rich text format. For reference see https://editorjs.io/ - * @deprecated The rich text attribute hasn't got predefined value, so can be specified only from instance that supports the given attribute. + * + * DEPRECATED: this field will be removed.The rich text attribute hasn't got predefined value, so can be specified only from instance that supports the given attribute. */ richText?: InputMaybe; /** Represent value of the attribute value (e.g. color values for swatch attributes). */ @@ -968,7 +989,8 @@ export type BulkAttributeValueInput = { swatch?: InputMaybe; /** * The value or slug of an attribute to resolve. If the passed value is non-existent, it will be created. - * @deprecated Field no longer supported + * + * DEPRECATED: this field will be removed. */ values?: InputMaybe>; }; @@ -1075,7 +1097,8 @@ export enum CategorySortField { export type CategorySortingInput = { /** * Specifies the channel in which to sort the data. - * @deprecated Use root-level channel argument instead. + * + * DEPRECATED: this field will be removed. Use root-level channel argument instead. */ channel?: InputMaybe; /** Specifies the direction in which to sort categories. */ @@ -1221,6 +1244,7 @@ export type CheckoutAddressValidationRules = { * NONE - the funds are not authorized * PARTIAL - the cover funds don't cover fully the checkout's total * FULL - the cover funds covers the checkout's total + * */ export enum CheckoutAuthorizeStatusEnum { FULL = 'FULL', @@ -1252,6 +1276,7 @@ export type CheckoutAutoCompleteInput = { * PARTIAL - the funds that are charged don't cover the checkout's total * FULL - the funds that are charged fully cover the checkout's total * OVERCHARGED - the charged funds are bigger than checkout's total + * */ export enum CheckoutChargeStatusEnum { FULL = 'FULL', @@ -1371,7 +1396,7 @@ export type CheckoutFilterInput = { }; export type CheckoutLineInput = { - /** Flag that allow force splitting the same variant into multiple lines by skipping the matching logic. */ + /** Flag that allow force splitting the same variant into multiple lines by skipping the matching logic. */ forceNewLine?: InputMaybe; /** * Fields required to update the object's metadata. Can be read by any API client authorized to read the object it's attached to. @@ -1404,7 +1429,8 @@ export type CheckoutLineUpdateInput = { quantity?: InputMaybe; /** * ID of the product variant. - * @deprecated Use `lineId` instead. + * + * DEPRECATED: this field will be removed. Use `lineId` instead. */ variantId?: InputMaybe; }; @@ -1420,12 +1446,14 @@ export type CheckoutSettingsInput = { * Default `false`. Determines if the paid checkouts should be automatically completed. This setting applies only to checkouts where payment was processed through transactions.When enabled, the checkout will be automatically completed once the checkout `authorize_status` reaches `FULL`. This occurs when the total sum of charged and authorized transaction amounts equals or exceeds the checkout's total amount. * * Added in Saleor 3.20. - * @deprecated Use `automatic_completion` instead. + * + * DEPRECATED: this field will be removed. Use `automatic_completion` instead. */ automaticallyCompleteFullyPaidCheckouts?: InputMaybe; /** * Default `true`. Determines if the checkout mutations should use legacy error flow. In legacy flow, all mutations can raise an exception unrelated to the requested action - (e.g. out-of-stock exception when updating checkoutShippingAddress.) If `false`, the errors will be aggregated in `checkout.problems` field. Some of the `problems` can block the finalizing checkout process. The legacy flow will be removed in Saleor 4.0. The flow with `checkout.problems` will be the default one. - * @deprecated Field no longer supported + * + * DEPRECATED: this field will be removed. */ useLegacyErrorFlow?: InputMaybe; }; @@ -1501,7 +1529,8 @@ export type CollectionCreateInput = { products?: InputMaybe>; /** * Publication date. ISO 8601 standard. - * @deprecated Field no longer supported + * + * DEPRECATED: this field will be removed. */ publicationDate?: InputMaybe; /** Search engine optimization fields. */ @@ -1523,7 +1552,8 @@ export enum CollectionErrorCode { export type CollectionFilterInput = { /** * Specifies the channel by which the data should be filtered. - * @deprecated Use root-level channel argument instead. + * + * DEPRECATED: this field will be removed. Use root-level channel argument instead. */ channel?: InputMaybe; ids?: InputMaybe>; @@ -1562,7 +1592,8 @@ export type CollectionInput = { privateMetadata?: InputMaybe>; /** * Publication date. ISO 8601 standard. - * @deprecated Field no longer supported + * + * DEPRECATED: this field will be removed. */ publicationDate?: InputMaybe; /** Search engine optimization fields. */ @@ -1605,7 +1636,8 @@ export enum CollectionSortField { export type CollectionSortingInput = { /** * Specifies the channel in which to sort the data. - * @deprecated Use root-level channel argument instead. + * + * DEPRECATED: this field will be removed. Use root-level channel argument instead. */ channel?: InputMaybe; /** Specifies the direction in which to sort collections. */ @@ -2196,7 +2228,8 @@ export type DraftOrderCreateInput = { customerNote?: InputMaybe; /** * Discount amount for the order. - * @deprecated Providing a value for the field has no effect. Use `orderDiscountAdd` mutation instead. + * + * DEPRECATED: this field will be removed. Providing a value for the field has no effect. Use `orderDiscountAdd` mutation instead. */ discount?: InputMaybe; /** External ID of this order. */ @@ -2266,7 +2299,8 @@ export type DraftOrderInput = { customerNote?: InputMaybe; /** * Discount amount for the order. - * @deprecated Providing a value for the field has no effect. Use `orderDiscountAdd` mutation instead. + * + * DEPRECATED: this field will be removed. Providing a value for the field has no effect. Use `orderDiscountAdd` mutation instead. */ discount?: InputMaybe; /** External ID of this order. */ @@ -2607,12 +2641,14 @@ export type GiftCardCreateInput = { channel?: InputMaybe; /** * Code to use the gift card. - * @deprecated The code is now auto generated. + * + * DEPRECATED: this field will be removed. The code is now auto generated. */ code?: InputMaybe; /** * End date of the gift card in ISO 8601 format. - * @deprecated Use `expiryDate` from `expirySettings` instead. + * + * DEPRECATED: this field will be removed. Use `expiryDate` from `expirySettings` instead. */ endDate?: InputMaybe; /** The gift card expiry date. */ @@ -2639,7 +2675,8 @@ export type GiftCardCreateInput = { privateMetadata?: InputMaybe>; /** * Start date of the gift card in ISO 8601 format. - * @deprecated Field no longer supported + * + * DEPRECATED: this field will be removed. */ startDate?: InputMaybe; /** Email of the customer to whom gift card will be sent. */ @@ -2747,7 +2784,8 @@ export type GiftCardUpdateInput = { balanceAmount?: InputMaybe; /** * End date of the gift card in ISO 8601 format. - * @deprecated Use `expiryDate` from `expirySettings` instead. + * + * DEPRECATED: this field will be removed. Use `expiryDate` from `expirySettings` instead. */ endDate?: InputMaybe; /** The gift card expiry date. */ @@ -2772,7 +2810,8 @@ export type GiftCardUpdateInput = { removeTags?: InputMaybe>; /** * Start date of the gift card in ISO 8601 format. - * @deprecated Field no longer supported + * + * DEPRECATED: this field will be removed. */ startDate?: InputMaybe; }; @@ -3652,6 +3691,8 @@ export type LinesFilterInput = { * * PAYMENT_FLOW - new orders marked as paid will receive a * `Payment` object, that will cover the `order.total`. + * + * */ export enum MarkAsPaidStrategyEnum { PAYMENT_FLOW = 'PAYMENT_FLOW', @@ -3853,6 +3894,7 @@ export type MetadataFilter = { * Matches objects where the metadata key "color" is set to either "blue" or "green". * - `{key: "status", value: {eq: "active"}}` * Matches objects where the metadata key "status" is set to "active". + * */ export type MetadataFilterInput = { /** Key to filter by. If not other fields provided - checking the existence of the key in metadata. */ @@ -3932,6 +3974,7 @@ export type OrderAddNoteInput = { * `order.total`-`order.totalGrantedRefund` * FULL - the funds that are authorized and charged fully cover the * `order.total`-`order.totalGrantedRefund` + * */ export enum OrderAuthorizeStatusEnum { FULL = 'FULL', @@ -4233,6 +4276,7 @@ export type OrderBulkCreateUserInput = { * `order.total`-`order.totalGrantedRefund` * OVERCHARGED - the charged funds are bigger than the * `order.total`-`order.totalGrantedRefund` + * */ export enum OrderChargeStatusEnum { FULL = 'FULL', @@ -4365,7 +4409,7 @@ export enum OrderEventsEmailsEnum { TRACKING_UPDATED = 'TRACKING_UPDATED' } -/** The different order event types. */ +/** The different order event types. */ export enum OrderEventsEnum { ADDED_PRODUCTS = 'ADDED_PRODUCTS', CANCELED = 'CANCELED', @@ -4512,6 +4556,12 @@ export type OrderGrantRefundCreateLineInput = { quantity: Scalars['Int']; /** Reason of the granted refund for the line. */ reason?: InputMaybe; + /** + * ID of a `Page` to reference as reason for this line. When provided, must match the configured `PageType` in refund settings. Always optional for both staff and apps. + * + * Added in Saleor 3.22. + */ + reasonReference?: InputMaybe; }; export enum OrderGrantRefundUpdateErrorCode { @@ -4557,6 +4607,12 @@ export type OrderGrantRefundUpdateLineAddInput = { quantity: Scalars['Int']; /** Reason of the granted refund for the line. */ reason?: InputMaybe; + /** + * ID of a `Page` to reference as reason for this line. When provided, must match the configured `PageType` in refund settings. Always optional for both staff and apps. + * + * Added in Saleor 3.22. + */ + reasonReference?: InputMaybe; }; export enum OrderGrantRefundUpdateLineErrorCode { @@ -4572,6 +4628,7 @@ export enum OrderGrantRefundUpdateLineErrorCode { * PENDING - the refund on related transactionItem is pending * FULL - the refund on related transactionItem is fully processed * FAIL - the refund on related transactionItem failed + * */ export enum OrderGrantedRefundStatusEnum { FAILURE = 'FAILURE', @@ -4581,7 +4638,7 @@ export enum OrderGrantedRefundStatusEnum { } export type OrderLineCreateInput = { - /** Flag that allow force splitting the same variant into multiple lines by skipping the matching logic. */ + /** Flag that allow force splitting the same variant into multiple lines by skipping the matching logic. */ forceNewLine?: InputMaybe; /** Custom price of the item.When the line with the same variant will be provided multiple times, the last price will be used. */ price?: InputMaybe; @@ -4658,6 +4715,18 @@ export type OrderReturnFulfillmentLineInput = { fulfillmentLineId: Scalars['ID']; /** The number of items to be returned. */ quantity: Scalars['Int']; + /** + * Reason for returning the line. + * + * Added in Saleor 3.22. + */ + reason?: InputMaybe; + /** + * ID of a `Page` to reference as reason for returning this line. When provided, must match the configured `PageType` in refund settings. Always optional for both staff and apps. + * + * Added in Saleor 3.22. + */ + reasonReference?: InputMaybe; /** Determines, if the line should be added to replace order. */ replace?: InputMaybe; }; @@ -4667,6 +4736,18 @@ export type OrderReturnLineInput = { orderLineId: Scalars['ID']; /** The number of items to be returned. */ quantity: Scalars['Int']; + /** + * Reason for returning the line. + * + * Added in Saleor 3.22. + */ + reason?: InputMaybe; + /** + * ID of a `Page` to reference as reason for returning this line. When provided, must match the configured `PageType` in refund settings. Always optional for both staff and apps. + * + * Added in Saleor 3.22. + */ + reasonReference?: InputMaybe; /** Determines, if the line should be added to replace order. */ replace?: InputMaybe; }; @@ -4680,6 +4761,18 @@ export type OrderReturnProductsInput = { includeShippingCosts?: InputMaybe; /** List of unfulfilled lines to return. */ orderLines?: InputMaybe>; + /** + * Global reason for the return. + * + * Added in Saleor 3.22. + */ + reason?: InputMaybe; + /** + * ID of a `Page` to reference as reason for the return. Required for staff users when refund reason reference type is configured. Always optional for apps. + * + * Added in Saleor 3.22. + */ + reasonReference?: InputMaybe; /** If true, Saleor will call refund action for all lines. */ refund?: InputMaybe; }; @@ -4933,7 +5026,8 @@ export type PageCreateInput = { pageType: Scalars['ID']; /** * Publication date. ISO 8601 standard. - * @deprecated Use `publishedAt` field instead. + * + * DEPRECATED: this field will be removed. Use `publishedAt` field instead. */ publicationDate?: InputMaybe; /** Publication date time. ISO 8601 standard. */ @@ -4977,7 +5071,8 @@ export type PageInput = { isPublished?: InputMaybe; /** * Publication date. ISO 8601 standard. - * @deprecated Use `publishedAt` field instead. + * + * DEPRECATED: this field will be removed. Use `publishedAt` field instead. */ publicationDate?: InputMaybe; /** Publication date time. ISO 8601 standard. */ @@ -5165,6 +5260,7 @@ export enum PaymentGatewayInitializeTokenizationErrorCode { * SUCCESSFULLY_INITIALIZED - The payment gateway was successfully initialized. * FAILED_TO_INITIALIZE - The payment gateway was not initialized. * FAILED_TO_DELIVER - The request to initialize payment gateway was not delivered. + * */ export enum PaymentGatewayInitializeTokenizationResult { FAILED_TO_DELIVER = 'FAILED_TO_DELIVER', @@ -5247,6 +5343,7 @@ export enum PaymentMethodProcessTokenizationErrorCode { * PENDING - The payment method is pending tokenization. * FAILED_TO_TOKENIZE - The payment method was not tokenized. * FAILED_TO_DELIVER - The request to tokenize payment method was not delivered. + * */ export enum PaymentMethodTokenizationResult { ADDITIONAL_ACTION_REQUIRED = 'ADDITIONAL_ACTION_REQUIRED', @@ -5262,6 +5359,8 @@ export enum PaymentMethodTokenizationResult { * The following types are possible: * CARD - represents a card payment method. * OTHER - represents any payment method that is not a card payment. + * + * */ export enum PaymentMethodTypeEnum { CARD = 'CARD', @@ -5512,7 +5611,8 @@ export type ProductBulkCreateInput = { channelListings?: InputMaybe>; /** * Determine if taxes are being charged for the product. - * @deprecated Use `Channel.taxConfiguration` to configure whether tax collection is enabled. + * + * DEPRECATED: this field will be removed. Use `Channel.taxConfiguration` to configure whether tax collection is enabled. */ chargeTaxes?: InputMaybe; /** List of IDs of collections that the product belongs to. */ @@ -5553,7 +5653,8 @@ export type ProductBulkCreateInput = { taxClass?: InputMaybe; /** * Tax rate for enabled tax gateway. - * @deprecated Use tax classes to control the tax calculation for a product. If taxCode is provided, Saleor will try to find a tax class with given code (codes are stored in metadata) and assign it. If no tax class is found, it would be created and assigned. + * + * DEPRECATED: this field will be removed. Use tax classes to control the tax calculation for a product. If taxCode is provided, Saleor will try to find a tax class with given code (codes are stored in metadata) and assign it. If no tax class is found, it would be created and assigned. */ taxCode?: InputMaybe; /** Input list of product variants to create. */ @@ -5580,7 +5681,8 @@ export type ProductChannelListingAddInput = { availableForPurchaseAt?: InputMaybe; /** * A start date from which a product will be available for purchase. When not set and isAvailable is set to True, the current day is assumed. - * @deprecated Use `availableForPurchaseAt` field instead. + * + * DEPRECATED: this field will be removed. Use `availableForPurchaseAt` field instead. */ availableForPurchaseDate?: InputMaybe; /** ID of a channel. */ @@ -5591,7 +5693,8 @@ export type ProductChannelListingAddInput = { isPublished?: InputMaybe; /** * Publication date. ISO 8601 standard. - * @deprecated Use `publishedAt` field instead. + * + * DEPRECATED: this field will be removed. Use `publishedAt` field instead. */ publicationDate?: InputMaybe; /** Publication date time. ISO 8601 standard. */ @@ -5631,7 +5734,8 @@ export type ProductCreateInput = { category?: InputMaybe; /** * Determine if taxes are being charged for the product. - * @deprecated Use `Channel.taxConfiguration` to configure whether tax collection is enabled. + * + * DEPRECATED: this field will be removed. Use `Channel.taxConfiguration` to configure whether tax collection is enabled. */ chargeTaxes?: InputMaybe; /** List of IDs of collections that the product belongs to. */ @@ -5670,7 +5774,8 @@ export type ProductCreateInput = { taxClass?: InputMaybe; /** * Tax rate for enabled tax gateway. - * @deprecated Use tax classes to control the tax calculation for a product. If taxCode is provided, Saleor will try to find a tax class with given code (codes are stored in metadata) and assign it. If no tax class is found, it would be created and assigned. + * + * DEPRECATED: this field will be removed. Use tax classes to control the tax calculation for a product. If taxCode is provided, Saleor will try to find a tax class with given code (codes are stored in metadata) and assign it. If no tax class is found, it would be created and assigned. */ taxCode?: InputMaybe; /** Weight of the Product. */ @@ -5686,6 +5791,7 @@ export enum ProductErrorCode { DUPLICATED_INPUT_ITEM = 'DUPLICATED_INPUT_ITEM', GRAPHQL_ERROR = 'GRAPHQL_ERROR', INVALID = 'INVALID', + INVALID_FILE_TYPE = 'INVALID_FILE_TYPE', INVALID_PRICE = 'INVALID_PRICE', MEDIA_ALREADY_ASSIGNED = 'MEDIA_ALREADY_ASSIGNED', NOT_FOUND = 'NOT_FOUND', @@ -5697,6 +5803,7 @@ export enum ProductErrorCode { REQUIRED = 'REQUIRED', UNIQUE = 'UNIQUE', UNSUPPORTED_MEDIA_PROVIDER = 'UNSUPPORTED_MEDIA_PROVIDER', + UNSUPPORTED_MIME_TYPE = 'UNSUPPORTED_MIME_TYPE', VARIANT_NO_DIGITAL_CONTENT = 'VARIANT_NO_DIGITAL_CONTENT' } @@ -5722,7 +5829,8 @@ export type ProductFilterInput = { categories?: InputMaybe>; /** * Specifies the channel by which the data should be filtered. - * @deprecated Use root-level channel argument instead. + * + * DEPRECATED: this field will be removed. Use root-level channel argument instead. */ channel?: InputMaybe; collections?: InputMaybe>; @@ -5759,7 +5867,8 @@ export type ProductInput = { category?: InputMaybe; /** * Determine if taxes are being charged for the product. - * @deprecated Use `Channel.taxConfiguration` to configure whether tax collection is enabled. + * + * DEPRECATED: this field will be removed. Use `Channel.taxConfiguration` to configure whether tax collection is enabled. */ chargeTaxes?: InputMaybe; /** List of IDs of collections that the product belongs to. */ @@ -5796,7 +5905,8 @@ export type ProductInput = { taxClass?: InputMaybe; /** * Tax rate for enabled tax gateway. - * @deprecated Use tax classes to control the tax calculation for a product. If taxCode is provided, Saleor will try to find a tax class with given code (codes are stored in metadata) and assign it. If no tax class is found, it would be created and assigned. + * + * DEPRECATED: this field will be removed. Use tax classes to control the tax calculation for a product. If taxCode is provided, Saleor will try to find a tax class with given code (codes are stored in metadata) and assign it. If no tax class is found, it would be created and assigned. */ taxCode?: InputMaybe; /** Weight of the Product. */ @@ -5832,7 +5942,8 @@ export type ProductOrder = { attributeId?: InputMaybe; /** * Specifies the channel in which to sort the data. - * @deprecated Use root-level channel argument instead. + * + * DEPRECATED: this field will be removed. Use root-level channel argument instead. */ channel?: InputMaybe; /** Specifies the direction in which to sort products. */ @@ -5954,7 +6065,8 @@ export type ProductTypeInput = { taxClass?: InputMaybe; /** * Tax rate for enabled tax gateway. - * @deprecated Use tax classes to control the tax calculation for a product type. If taxCode is provided, Saleor will try to find a tax class with given code (codes are stored in metadata) and assign it. If no tax class is found, it would be created and assigned. + * + * DEPRECATED: this field will be removed. Use tax classes to control the tax calculation for a product type. If taxCode is provided, Saleor will try to find a tax class with given code (codes are stored in metadata) and assign it. If no tax class is found, it would be created and assigned. */ taxCode?: InputMaybe; /** List of attributes used to distinguish between different variants of a product. */ @@ -6577,7 +6689,8 @@ export type PublishableChannelListingInput = { isPublished?: InputMaybe; /** * Publication date. ISO 8601 standard. - * @deprecated Use `publishedAt` field instead. + * + * DEPRECATED: this field will be removed. Use `publishedAt` field instead. */ publicationDate?: InputMaybe; /** Publication date time. ISO 8601 standard. */ @@ -6688,7 +6801,8 @@ export enum SaleSortField { export type SaleSortingInput = { /** * Specifies the channel in which to sort the data. - * @deprecated Use root-level channel argument instead. + * + * DEPRECATED: this field will be removed. Use root-level channel argument instead. */ channel?: InputMaybe; /** Specifies the direction in which to sort sales. */ @@ -6855,7 +6969,8 @@ export type ShopSettingsInput = { automaticFulfillmentDigitalProducts?: InputMaybe; /** * Charge taxes on shipping. - * @deprecated To enable taxes for a shipping method, assign a tax class to the shipping method with `shippingPriceCreate` or `shippingPriceUpdate` mutations. + * + * DEPRECATED: this field will be removed. To enable taxes for a shipping method, assign a tax class to the shipping method with `shippingPriceCreate` or `shippingPriceUpdate` mutations. */ chargeTaxesOnShipping?: InputMaybe; /** URL of a view where customers can set their password. */ @@ -6874,7 +6989,8 @@ export type ShopSettingsInput = { description?: InputMaybe; /** * Display prices with tax in store. - * @deprecated Use `taxConfigurationUpdate` mutation to configure this setting per channel or country. + * + * DEPRECATED: this field will be removed. Use `taxConfigurationUpdate` mutation to configure this setting per channel or country. */ displayGrossPrices?: InputMaybe; /** Enable automatic account confirmation by email. */ @@ -6887,7 +7003,8 @@ export type ShopSettingsInput = { headerText?: InputMaybe; /** * Include taxes in prices. - * @deprecated Use `taxConfigurationUpdate` mutation to configure this setting per channel or country. + * + * DEPRECATED: this field will be removed. Use `taxConfigurationUpdate` mutation to configure this setting per channel or country. */ includeTaxesInPrices?: InputMaybe; /** Default number of maximum line quantity in single checkout. Minimum possible value is 1, default value is 50. */ @@ -6914,7 +7031,8 @@ export type ShopSettingsInput = { * Use legacy update webhook emission. When enabled, update webhooks (e.g. `customerUpdated`,`productVariantUpdated`) are sent even when only metadata changes. When disabled, update webhooks are not sent for metadata-only changes; only metadata-specific webhooks (e.g., `customerMetadataUpdated`, `productVariantMetadataUpdated`) are sent. * * Added in Saleor 3.22. - * @deprecated Field no longer supported + * + * DEPRECATED: this field will be removed. */ useLegacyUpdateWebhookEmission?: InputMaybe; }; @@ -7078,6 +7196,7 @@ export type StockUpdateInput = { * SKIP - stocks are not checked and not updated. * UPDATE - only do update, if there is enough stock. * FORCE - force update, if there is not enough stock. + * */ export enum StockUpdatePolicyEnum { FORCE = 'FORCE', @@ -7111,6 +7230,7 @@ export enum StoredPaymentMethodRequestDeleteErrorCode { * FAILED_TO_DELETE - The stored payment method was not deleted. * FAILED_TO_DELIVER - The request to delete the stored payment method was not * delivered. + * */ export enum StoredPaymentMethodRequestDeleteResult { FAILED_TO_DELETE = 'FAILED_TO_DELETE', @@ -7313,6 +7433,7 @@ export enum TimePeriodTypeEnum { * The following flows are possible: * INTERACTIVE - Payment method can be used for 1 click checkout - it's prefilled in * checkout form (might require additional authentication from user) + * */ export enum TokenizedPaymentFlowEnum { INTERACTIVE = 'INTERACTIVE' @@ -7325,6 +7446,7 @@ export enum TokenizedPaymentFlowEnum { * CHARGE - Represents the charge action. * REFUND - Represents a refund action. * CANCEL - Represents a cancel action. Added in Saleor 3.12. + * */ export enum TransactionActionEnum { CANCEL = 'CANCEL', @@ -7422,6 +7544,7 @@ export enum TransactionEventReportErrorCode { * CANCEL_FAILURE - represents failure cancel. * CANCEL_REQUEST - represents cancel request. * INFO - represents info event. + * */ export enum TransactionEventTypeEnum { AUTHORIZATION_ACTION_REQUIRED = 'AUTHORIZATION_ACTION_REQUIRED', @@ -7450,6 +7573,12 @@ export type TransactionFilterInput = { metadata?: InputMaybe; /** Filter by payment method details used to pay for the order. */ paymentMethodDetails?: InputMaybe; + /** + * Filter by PSP reference of transactions. + * + * Added in Saleor 3.22. + */ + pspReference?: InputMaybe; }; /** @@ -7457,6 +7586,7 @@ export type TransactionFilterInput = { * * AUTHORIZATION - the processed transaction should be only authorized * CHARGE - the processed transaction should be charged. + * */ export enum TransactionFlowStrategyEnum { AUTHORIZATION = 'AUTHORIZATION', @@ -7560,6 +7690,18 @@ export type TransactionUpdateInput = { pspReference?: InputMaybe; }; +export type TransactionWhereInput = { + /** List of conditions that must be met. */ + AND?: InputMaybe>; + /** A list of conditions of which at least one must be met. */ + OR?: InputMaybe>; + /** Filter by app identifier. */ + appIdentifier?: InputMaybe; + ids?: InputMaybe>; + /** Filter by PSP reference. */ + pspReference?: InputMaybe; +}; + export enum TranslatableKinds { ATTRIBUTE = 'ATTRIBUTE', ATTRIBUTE_VALUE = 'ATTRIBUTE_VALUE', @@ -7625,7 +7767,9 @@ export type UpdateInvoiceInput = { }; export enum UploadErrorCode { - GRAPHQL_ERROR = 'GRAPHQL_ERROR' + GRAPHQL_ERROR = 'GRAPHQL_ERROR', + INVALID_FILE_TYPE = 'INVALID_FILE_TYPE', + UNSUPPORTED_MIME_TYPE = 'UNSUPPORTED_MIME_TYPE' } export type UserCreateInput = { @@ -7645,7 +7789,10 @@ export type UserCreateInput = { isActive?: InputMaybe; /** * User account is confirmed. - * @deprecated The user will be always set as unconfirmed. The confirmation will take place when the user sets the password. + * + * DEPRECATED: this field will be removed. + * + * The user will be always set as unconfirmed. The confirmation will take place when the user sets the password. */ isConfirmed?: InputMaybe; /** User language code. */ @@ -7769,7 +7916,8 @@ export type VoucherInput = { categories?: InputMaybe>; /** * Code to use the voucher. - * @deprecated Use `addCodes` instead. + * + * DEPRECATED: this field will be removed. Use `addCodes` instead. */ code?: InputMaybe; /** Collections discounted by the voucher. */ @@ -7845,7 +7993,8 @@ export enum VoucherSortField { export type VoucherSortingInput = { /** * Specifies the channel in which to sort the data. - * @deprecated Use root-level channel argument instead. + * + * DEPRECATED: this field will be removed. Use root-level channel argument instead. */ channel?: InputMaybe; /** Specifies the direction in which to sort vouchers. */ @@ -7877,7 +8026,8 @@ export type WarehouseCreateInput = { name: Scalars['String']; /** * Shipping zones supported by the warehouse. - * @deprecated Providing the zone ids will raise a ValidationError. + * + * DEPRECATED: this field will be removed. Providing the zone ids will raise a ValidationError. */ shippingZones?: InputMaybe>; /** Warehouse slug. */ @@ -7941,7 +8091,8 @@ export type WebhookCreateInput = { customHeaders?: InputMaybe; /** * The events that webhook wants to subscribe. - * @deprecated Use `asyncEvents` or `syncEvents` instead. + * + * DEPRECATED: this field will be removed. Use `asyncEvents` or `syncEvents` instead. */ events?: InputMaybe>; /** Determine if webhook will be set active or not. */ @@ -7952,7 +8103,8 @@ export type WebhookCreateInput = { query?: InputMaybe; /** * The secret key used to create a hash signature with each payload. - * @deprecated As of Saleor 3.5, webhook payloads default to signing using a verifiable JWS. + * + * DEPRECATED: this field will be removed. As of Saleor 3.5, webhook payloads default to signing using a verifiable JWS. */ secretKey?: InputMaybe; /** The synchronous events that webhook wants to subscribe. */ @@ -8845,7 +8997,8 @@ export type WebhookUpdateInput = { customHeaders?: InputMaybe; /** * The events that webhook wants to subscribe. - * @deprecated Use `asyncEvents` or `syncEvents` instead. + * + * DEPRECATED: this field will be removed. Use `asyncEvents` or `syncEvents` instead. */ events?: InputMaybe>; /** Determine if webhook will be set active or not. */ @@ -8856,7 +9009,8 @@ export type WebhookUpdateInput = { query?: InputMaybe; /** * Use to create a hash signature with each payload. - * @deprecated As of Saleor 3.5, webhook payloads default to signing using a verifiable JWS. + * + * DEPRECATED: this field will be removed. As of Saleor 3.5, webhook payloads default to signing using a verifiable JWS. */ secretKey?: InputMaybe; /** The synchronous events that webhook wants to subscribe. */ @@ -10377,17 +10531,17 @@ export type OrderLineWithMetadataFragment = { __typename: 'OrderLine', id: strin export type RefundOrderLineFragment = { __typename: 'OrderLine', id: string, productName: string, quantity: number, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }; -export type FulfillmentFragment = { __typename: 'Fulfillment', id: string, created: any, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; +export type FulfillmentFragment = { __typename: 'Fulfillment', id: string, created: any, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, reason: string | null, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, reason: string | null, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } | null, reasonReference: { __typename: 'Page', id: string, title: string } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null, reasonReference: { __typename: 'Page', id: string, title: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; -export type FulfillmentWithMetadataFragment = { __typename: 'Fulfillment', id: string, created: any, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata?: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; +export type FulfillmentWithMetadataFragment = { __typename: 'Fulfillment', id: string, created: any, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, reason: string | null, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, reason: string | null, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata?: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null, reasonReference: { __typename: 'Page', id: string, title: string } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null, reasonReference: { __typename: 'Page', id: string, title: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; export type InvoiceFragment = { __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }; export type OrderDiscountFragment = { __typename: 'OrderDiscount', id: string, type: OrderDiscountType, name: string | null, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }; -export type OrderDetailsFragment = { __typename: 'Order', id: string, displayGrossPrices: boolean, isShippingRequired: boolean, canFinalize: boolean, created: any, customerNote: string, number: string, isPaid: boolean, paymentStatus: PaymentChargeStatusEnum, shippingMethodName: string | null, collectionPointName: string | null, status: OrderStatus, actions: Array, userEmail: string | null, chargeStatus: OrderChargeStatusEnum, authorizeStatus: OrderAuthorizeStatusEnum, billingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, transactions: Array<{ __typename: 'TransactionItem', pspReference: string, externalUrl: string, createdAt: any, id: string, name: string, actions: Array, events: Array<{ __typename: 'TransactionEvent', externalUrl: string, id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, createdBy: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, amount: { __typename: 'Money', amount: number, currency: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } }>, payments: Array<{ __typename: 'Payment', id: string, isActive: boolean, actions: Array, gateway: string, paymentMethodType: string, modified: any, availableCaptureAmount: { __typename: 'Money', amount: number, currency: string } | null, capturedAmount: { __typename: 'Money', amount: number, currency: string } | null, total: { __typename: 'Money', amount: number, currency: string } | null, availableRefundAmount: { __typename: 'Money', amount: number, currency: string } | null, transactions: Array<{ __typename: 'Transaction', id: string, token: string, created: any, kind: TransactionKind, isSuccess: boolean }> | null }>, giftCards: Array<{ __typename: 'GiftCard', id: string, last4CodeChars: string, events: Array<{ __typename: 'GiftCardEvent', id: string, type: GiftCardEventsEnum | null, orderId: string | null, date: any | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }> }>, grantedRefunds: Array<{ __typename: 'OrderGrantedRefund', id: string, createdAt: any, shippingCostsIncluded: boolean, status: OrderGrantedRefundStatusEnum, reason: string | null, amount: { __typename: 'Money', currency: string, amount: number }, transactionEvents: Array<{ __typename: 'TransactionEvent', id: string }> | null, reasonReference: { __typename: 'Page', id: string, title: string } | null, user: { __typename: 'User', id: string, firstName: string, lastName: string, email: string, avatar: { __typename: 'Image', url: string, alt: string | null } | null } | null, app: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderGrantedRefundLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string } }> | null }>, discounts: Array<{ __typename: 'OrderDiscount', id: string, type: OrderDiscountType, name: string | null, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }>, events: Array<{ __typename: 'OrderEvent', id: string, amount: number | null, shippingCostsIncluded: boolean | null, date: any | null, email: string | null, emailType: OrderEventsEmailsEnum | null, invoiceNumber: string | null, message: string | null, quantity: number | null, transactionReference: string | null, type: OrderEventsEnum | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, relatedOrder: { __typename: 'Order', id: string, number: string } | null, related: { __typename: 'OrderEvent', id: string } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, app: { __typename: 'App', id: string, name: string | null, appUrl: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderEventOrderLineObject', quantity: number | null, itemName: string | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, orderLine: { __typename: 'OrderLine', id: string, productName: string, variantName: string } | null }> | null }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, created: any, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }>, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, shippingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, deliveryMethod: { __typename: 'ShippingMethod', id: string } | { __typename: 'Warehouse', id: string, clickAndCollectOption: WarehouseClickAndCollectOptionEnum } | null, shippingMethod: { __typename: 'ShippingMethod', id: string } | null, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, subtotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string }, tax: { __typename: 'Money', amount: number, currency: string } }, totalRemainingGrant: { __typename: 'Money', amount: number, currency: string }, totalGrantedRefund: { __typename: 'Money', amount: number, currency: string }, totalRefundPending: { __typename: 'Money', amount: number, currency: string }, totalRefunded: { __typename: 'Money', amount: number, currency: string }, totalAuthorizePending: { __typename: 'Money', amount: number, currency: string }, totalAuthorized: { __typename: 'Money', amount: number, currency: string }, totalCaptured: { __typename: 'Money', amount: number, currency: string }, totalCharged: { __typename: 'Money', amount: number, currency: string }, totalChargePending: { __typename: 'Money', amount: number, currency: string }, totalCanceled: { __typename: 'Money', amount: number, currency: string }, totalCancelPending: { __typename: 'Money', amount: number, currency: string }, totalBalance: { __typename: 'Money', amount: number, currency: string }, undiscountedTotal: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, user: { __typename: 'User', id: string, email: string } | null, shippingMethods: Array<{ __typename: 'ShippingMethod', id: string, name: string, active: boolean, message: string | null, price: { __typename: 'Money', amount: number, currency: string } }>, invoices: Array<{ __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }>, channel: { __typename: 'Channel', isActive: boolean, id: string, name: string, currencyCode: string, slug: string, defaultCountry: { __typename: 'CountryDisplay', code: string }, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum } }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; +export type OrderDetailsFragment = { __typename: 'Order', id: string, displayGrossPrices: boolean, isShippingRequired: boolean, canFinalize: boolean, created: any, customerNote: string, number: string, isPaid: boolean, paymentStatus: PaymentChargeStatusEnum, shippingMethodName: string | null, collectionPointName: string | null, status: OrderStatus, actions: Array, userEmail: string | null, chargeStatus: OrderChargeStatusEnum, authorizeStatus: OrderAuthorizeStatusEnum, billingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, transactions: Array<{ __typename: 'TransactionItem', pspReference: string, externalUrl: string, createdAt: any, id: string, name: string, actions: Array, events: Array<{ __typename: 'TransactionEvent', externalUrl: string, id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, createdBy: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, amount: { __typename: 'Money', amount: number, currency: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } }>, payments: Array<{ __typename: 'Payment', id: string, isActive: boolean, actions: Array, gateway: string, paymentMethodType: string, modified: any, availableCaptureAmount: { __typename: 'Money', amount: number, currency: string } | null, capturedAmount: { __typename: 'Money', amount: number, currency: string } | null, total: { __typename: 'Money', amount: number, currency: string } | null, availableRefundAmount: { __typename: 'Money', amount: number, currency: string } | null, transactions: Array<{ __typename: 'Transaction', id: string, token: string, created: any, kind: TransactionKind, isSuccess: boolean }> | null }>, giftCards: Array<{ __typename: 'GiftCard', id: string, last4CodeChars: string, events: Array<{ __typename: 'GiftCardEvent', id: string, type: GiftCardEventsEnum | null, orderId: string | null, date: any | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }> }>, grantedRefunds: Array<{ __typename: 'OrderGrantedRefund', id: string, createdAt: any, shippingCostsIncluded: boolean, status: OrderGrantedRefundStatusEnum, reason: string | null, amount: { __typename: 'Money', currency: string, amount: number }, transactionEvents: Array<{ __typename: 'TransactionEvent', id: string }> | null, reasonReference: { __typename: 'Page', id: string, title: string } | null, user: { __typename: 'User', id: string, firstName: string, lastName: string, email: string, avatar: { __typename: 'Image', url: string, alt: string | null } | null } | null, app: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderGrantedRefundLine', id: string, quantity: number, reason: string | null, orderLine: { __typename: 'OrderLine', id: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }> | null }>, discounts: Array<{ __typename: 'OrderDiscount', id: string, type: OrderDiscountType, name: string | null, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }>, events: Array<{ __typename: 'OrderEvent', id: string, amount: number | null, shippingCostsIncluded: boolean | null, date: any | null, email: string | null, emailType: OrderEventsEmailsEnum | null, invoiceNumber: string | null, message: string | null, quantity: number | null, transactionReference: string | null, type: OrderEventsEnum | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, relatedOrder: { __typename: 'Order', id: string, number: string } | null, related: { __typename: 'OrderEvent', id: string } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, app: { __typename: 'App', id: string, name: string | null, appUrl: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderEventOrderLineObject', quantity: number | null, itemName: string | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, orderLine: { __typename: 'OrderLine', id: string, productName: string, variantName: string } | null }> | null }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, created: any, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, reason: string | null, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, reason: string | null, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } | null, reasonReference: { __typename: 'Page', id: string, title: string } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null, reasonReference: { __typename: 'Page', id: string, title: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }>, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, shippingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, deliveryMethod: { __typename: 'ShippingMethod', id: string } | { __typename: 'Warehouse', id: string, clickAndCollectOption: WarehouseClickAndCollectOptionEnum } | null, shippingMethod: { __typename: 'ShippingMethod', id: string } | null, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, subtotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string }, tax: { __typename: 'Money', amount: number, currency: string } }, totalRemainingGrant: { __typename: 'Money', amount: number, currency: string }, totalGrantedRefund: { __typename: 'Money', amount: number, currency: string }, totalRefundPending: { __typename: 'Money', amount: number, currency: string }, totalRefunded: { __typename: 'Money', amount: number, currency: string }, totalAuthorizePending: { __typename: 'Money', amount: number, currency: string }, totalAuthorized: { __typename: 'Money', amount: number, currency: string }, totalCaptured: { __typename: 'Money', amount: number, currency: string }, totalCharged: { __typename: 'Money', amount: number, currency: string }, totalChargePending: { __typename: 'Money', amount: number, currency: string }, totalCanceled: { __typename: 'Money', amount: number, currency: string }, totalCancelPending: { __typename: 'Money', amount: number, currency: string }, totalBalance: { __typename: 'Money', amount: number, currency: string }, undiscountedTotal: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, user: { __typename: 'User', id: string, email: string } | null, shippingMethods: Array<{ __typename: 'ShippingMethod', id: string, name: string, active: boolean, message: string | null, price: { __typename: 'Money', amount: number, currency: string } }>, invoices: Array<{ __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }>, channel: { __typename: 'Channel', isActive: boolean, id: string, name: string, currencyCode: string, slug: string, defaultCountry: { __typename: 'CountryDisplay', code: string }, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum } }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; -export type OrderDetailsWithMetadataFragment = { __typename: 'Order', id: string, displayGrossPrices: boolean, isShippingRequired: boolean, canFinalize: boolean, created: any, customerNote: string, number: string, isPaid: boolean, paymentStatus: PaymentChargeStatusEnum, shippingMethodName: string | null, collectionPointName: string | null, status: OrderStatus, actions: Array, userEmail: string | null, chargeStatus: OrderChargeStatusEnum, authorizeStatus: OrderAuthorizeStatusEnum, fulfillments: Array<{ __typename: 'Fulfillment', id: string, created: any, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata?: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }>, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, billingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, transactions: Array<{ __typename: 'TransactionItem', pspReference: string, externalUrl: string, createdAt: any, id: string, name: string, actions: Array, events: Array<{ __typename: 'TransactionEvent', externalUrl: string, id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, createdBy: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, amount: { __typename: 'Money', amount: number, currency: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } }>, payments: Array<{ __typename: 'Payment', id: string, isActive: boolean, actions: Array, gateway: string, paymentMethodType: string, modified: any, availableCaptureAmount: { __typename: 'Money', amount: number, currency: string } | null, capturedAmount: { __typename: 'Money', amount: number, currency: string } | null, total: { __typename: 'Money', amount: number, currency: string } | null, availableRefundAmount: { __typename: 'Money', amount: number, currency: string } | null, transactions: Array<{ __typename: 'Transaction', id: string, token: string, created: any, kind: TransactionKind, isSuccess: boolean }> | null }>, giftCards: Array<{ __typename: 'GiftCard', id: string, last4CodeChars: string, events: Array<{ __typename: 'GiftCardEvent', id: string, type: GiftCardEventsEnum | null, orderId: string | null, date: any | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }> }>, grantedRefunds: Array<{ __typename: 'OrderGrantedRefund', id: string, createdAt: any, shippingCostsIncluded: boolean, status: OrderGrantedRefundStatusEnum, reason: string | null, amount: { __typename: 'Money', currency: string, amount: number }, transactionEvents: Array<{ __typename: 'TransactionEvent', id: string }> | null, reasonReference: { __typename: 'Page', id: string, title: string } | null, user: { __typename: 'User', id: string, firstName: string, lastName: string, email: string, avatar: { __typename: 'Image', url: string, alt: string | null } | null } | null, app: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderGrantedRefundLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string } }> | null }>, discounts: Array<{ __typename: 'OrderDiscount', id: string, type: OrderDiscountType, name: string | null, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }>, events: Array<{ __typename: 'OrderEvent', id: string, amount: number | null, shippingCostsIncluded: boolean | null, date: any | null, email: string | null, emailType: OrderEventsEmailsEnum | null, invoiceNumber: string | null, message: string | null, quantity: number | null, transactionReference: string | null, type: OrderEventsEnum | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, relatedOrder: { __typename: 'Order', id: string, number: string } | null, related: { __typename: 'OrderEvent', id: string } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, app: { __typename: 'App', id: string, name: string | null, appUrl: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderEventOrderLineObject', quantity: number | null, itemName: string | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, orderLine: { __typename: 'OrderLine', id: string, productName: string, variantName: string } | null }> | null }>, shippingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, deliveryMethod: { __typename: 'ShippingMethod', id: string } | { __typename: 'Warehouse', id: string, clickAndCollectOption: WarehouseClickAndCollectOptionEnum } | null, shippingMethod: { __typename: 'ShippingMethod', id: string } | null, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, subtotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string }, tax: { __typename: 'Money', amount: number, currency: string } }, totalRemainingGrant: { __typename: 'Money', amount: number, currency: string }, totalGrantedRefund: { __typename: 'Money', amount: number, currency: string }, totalRefundPending: { __typename: 'Money', amount: number, currency: string }, totalRefunded: { __typename: 'Money', amount: number, currency: string }, totalAuthorizePending: { __typename: 'Money', amount: number, currency: string }, totalAuthorized: { __typename: 'Money', amount: number, currency: string }, totalCaptured: { __typename: 'Money', amount: number, currency: string }, totalCharged: { __typename: 'Money', amount: number, currency: string }, totalChargePending: { __typename: 'Money', amount: number, currency: string }, totalCanceled: { __typename: 'Money', amount: number, currency: string }, totalCancelPending: { __typename: 'Money', amount: number, currency: string }, totalBalance: { __typename: 'Money', amount: number, currency: string }, undiscountedTotal: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, user: { __typename: 'User', id: string, email: string } | null, shippingMethods: Array<{ __typename: 'ShippingMethod', id: string, name: string, active: boolean, message: string | null, price: { __typename: 'Money', amount: number, currency: string } }>, invoices: Array<{ __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }>, channel: { __typename: 'Channel', isActive: boolean, id: string, name: string, currencyCode: string, slug: string, defaultCountry: { __typename: 'CountryDisplay', code: string }, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum } }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; +export type OrderDetailsWithMetadataFragment = { __typename: 'Order', id: string, displayGrossPrices: boolean, isShippingRequired: boolean, canFinalize: boolean, created: any, customerNote: string, number: string, isPaid: boolean, paymentStatus: PaymentChargeStatusEnum, shippingMethodName: string | null, collectionPointName: string | null, status: OrderStatus, actions: Array, userEmail: string | null, chargeStatus: OrderChargeStatusEnum, authorizeStatus: OrderAuthorizeStatusEnum, fulfillments: Array<{ __typename: 'Fulfillment', id: string, created: any, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, reason: string | null, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, reason: string | null, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata?: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null, reasonReference: { __typename: 'Page', id: string, title: string } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null, reasonReference: { __typename: 'Page', id: string, title: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }>, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, billingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, transactions: Array<{ __typename: 'TransactionItem', pspReference: string, externalUrl: string, createdAt: any, id: string, name: string, actions: Array, events: Array<{ __typename: 'TransactionEvent', externalUrl: string, id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, createdBy: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, amount: { __typename: 'Money', amount: number, currency: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } }>, payments: Array<{ __typename: 'Payment', id: string, isActive: boolean, actions: Array, gateway: string, paymentMethodType: string, modified: any, availableCaptureAmount: { __typename: 'Money', amount: number, currency: string } | null, capturedAmount: { __typename: 'Money', amount: number, currency: string } | null, total: { __typename: 'Money', amount: number, currency: string } | null, availableRefundAmount: { __typename: 'Money', amount: number, currency: string } | null, transactions: Array<{ __typename: 'Transaction', id: string, token: string, created: any, kind: TransactionKind, isSuccess: boolean }> | null }>, giftCards: Array<{ __typename: 'GiftCard', id: string, last4CodeChars: string, events: Array<{ __typename: 'GiftCardEvent', id: string, type: GiftCardEventsEnum | null, orderId: string | null, date: any | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }> }>, grantedRefunds: Array<{ __typename: 'OrderGrantedRefund', id: string, createdAt: any, shippingCostsIncluded: boolean, status: OrderGrantedRefundStatusEnum, reason: string | null, amount: { __typename: 'Money', currency: string, amount: number }, transactionEvents: Array<{ __typename: 'TransactionEvent', id: string }> | null, reasonReference: { __typename: 'Page', id: string, title: string } | null, user: { __typename: 'User', id: string, firstName: string, lastName: string, email: string, avatar: { __typename: 'Image', url: string, alt: string | null } | null } | null, app: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderGrantedRefundLine', id: string, quantity: number, reason: string | null, orderLine: { __typename: 'OrderLine', id: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }> | null }>, discounts: Array<{ __typename: 'OrderDiscount', id: string, type: OrderDiscountType, name: string | null, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }>, events: Array<{ __typename: 'OrderEvent', id: string, amount: number | null, shippingCostsIncluded: boolean | null, date: any | null, email: string | null, emailType: OrderEventsEmailsEnum | null, invoiceNumber: string | null, message: string | null, quantity: number | null, transactionReference: string | null, type: OrderEventsEnum | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, relatedOrder: { __typename: 'Order', id: string, number: string } | null, related: { __typename: 'OrderEvent', id: string } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, app: { __typename: 'App', id: string, name: string | null, appUrl: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderEventOrderLineObject', quantity: number | null, itemName: string | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, orderLine: { __typename: 'OrderLine', id: string, productName: string, variantName: string } | null }> | null }>, shippingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, deliveryMethod: { __typename: 'ShippingMethod', id: string } | { __typename: 'Warehouse', id: string, clickAndCollectOption: WarehouseClickAndCollectOptionEnum } | null, shippingMethod: { __typename: 'ShippingMethod', id: string } | null, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, subtotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string }, tax: { __typename: 'Money', amount: number, currency: string } }, totalRemainingGrant: { __typename: 'Money', amount: number, currency: string }, totalGrantedRefund: { __typename: 'Money', amount: number, currency: string }, totalRefundPending: { __typename: 'Money', amount: number, currency: string }, totalRefunded: { __typename: 'Money', amount: number, currency: string }, totalAuthorizePending: { __typename: 'Money', amount: number, currency: string }, totalAuthorized: { __typename: 'Money', amount: number, currency: string }, totalCaptured: { __typename: 'Money', amount: number, currency: string }, totalCharged: { __typename: 'Money', amount: number, currency: string }, totalChargePending: { __typename: 'Money', amount: number, currency: string }, totalCanceled: { __typename: 'Money', amount: number, currency: string }, totalCancelPending: { __typename: 'Money', amount: number, currency: string }, totalBalance: { __typename: 'Money', amount: number, currency: string }, undiscountedTotal: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, user: { __typename: 'User', id: string, email: string } | null, shippingMethods: Array<{ __typename: 'ShippingMethod', id: string, name: string, active: boolean, message: string | null, price: { __typename: 'Money', amount: number, currency: string } }>, invoices: Array<{ __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }>, channel: { __typename: 'Channel', isActive: boolean, id: string, name: string, currencyCode: string, slug: string, defaultCountry: { __typename: 'CountryDisplay', code: string }, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum } }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; export type OrderSettingsFragment = { __typename: 'OrderSettings', automaticallyConfirmAllNewOrders: boolean, automaticallyFulfillNonShippableGiftCard: boolean }; @@ -10411,15 +10565,15 @@ export type OrderGiftCardFragment = { __typename: 'GiftCard', id: string, last4C export type OrderGiftCardEventBalanceFragment = { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null }; -export type OrderGrantedRefundFragment = { __typename: 'OrderGrantedRefund', id: string, createdAt: any, shippingCostsIncluded: boolean, status: OrderGrantedRefundStatusEnum, reason: string | null, amount: { __typename: 'Money', currency: string, amount: number }, transactionEvents: Array<{ __typename: 'TransactionEvent', id: string }> | null, reasonReference: { __typename: 'Page', id: string, title: string } | null, user: { __typename: 'User', id: string, firstName: string, lastName: string, email: string, avatar: { __typename: 'Image', url: string, alt: string | null } | null } | null, app: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderGrantedRefundLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string } }> | null }; +export type OrderGrantedRefundFragment = { __typename: 'OrderGrantedRefund', id: string, createdAt: any, shippingCostsIncluded: boolean, status: OrderGrantedRefundStatusEnum, reason: string | null, amount: { __typename: 'Money', currency: string, amount: number }, transactionEvents: Array<{ __typename: 'TransactionEvent', id: string }> | null, reasonReference: { __typename: 'Page', id: string, title: string } | null, user: { __typename: 'User', id: string, firstName: string, lastName: string, email: string, avatar: { __typename: 'Image', url: string, alt: string | null } | null } | null, app: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderGrantedRefundLine', id: string, quantity: number, reason: string | null, orderLine: { __typename: 'OrderLine', id: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }> | null }; export type OrderLineGrantRefundFragment = { __typename: 'OrderLine', id: string, productName: string, quantity: number, quantityToFulfill: number, variantName: string, thumbnail: { __typename: 'Image', url: string } | null, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } } }; -export type OrderDetailsGrantedRefundFragment = { __typename: 'OrderGrantedRefund', id: string, reason: string | null, shippingCostsIncluded: boolean, status: OrderGrantedRefundStatusEnum, reasonReference: { __typename: 'Page', id: string, title: string } | null, amount: { __typename: 'Money', amount: number, currency: string }, transaction: { __typename: 'TransactionItem', id: string } | null, lines: Array<{ __typename: 'OrderGrantedRefundLine', id: string, quantity: number, reason: string | null, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } }> | null }; +export type OrderDetailsGrantedRefundFragment = { __typename: 'OrderGrantedRefund', id: string, reason: string | null, shippingCostsIncluded: boolean, status: OrderGrantedRefundStatusEnum, reasonReference: { __typename: 'Page', id: string, title: string } | null, amount: { __typename: 'Money', amount: number, currency: string }, transaction: { __typename: 'TransactionItem', id: string } | null, lines: Array<{ __typename: 'OrderGrantedRefundLine', id: string, quantity: number, reason: string | null, reasonReference: { __typename: 'Page', id: string, title: string } | null, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } }> | null }; export type OrderFulfillmentGrantRefundFragment = { __typename: 'Fulfillment', id: string, fulfillmentOrder: number, status: FulfillmentStatus, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, productName: string, quantity: number, quantityToFulfill: number, variantName: string, thumbnail: { __typename: 'Image', url: string } | null, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } } } | null }> | null }; -export type OrderDetailsGrantRefundFragment = { __typename: 'Order', id: string, number: string, lines: Array<{ __typename: 'OrderLine', id: string, productName: string, quantity: number, quantityToFulfill: number, variantName: string, thumbnail: { __typename: 'Image', url: string } | null, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } } }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, fulfillmentOrder: number, status: FulfillmentStatus, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, productName: string, quantity: number, quantityToFulfill: number, variantName: string, thumbnail: { __typename: 'Image', url: string } | null, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } } } | null }> | null }>, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, grantedRefunds: Array<{ __typename: 'OrderGrantedRefund', id: string, reason: string | null, shippingCostsIncluded: boolean, status: OrderGrantedRefundStatusEnum, reasonReference: { __typename: 'Page', id: string, title: string } | null, amount: { __typename: 'Money', amount: number, currency: string }, transaction: { __typename: 'TransactionItem', id: string } | null, lines: Array<{ __typename: 'OrderGrantedRefundLine', id: string, quantity: number, reason: string | null, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } }> | null }>, transactions: Array<{ __typename: 'TransactionItem', pspReference: string, externalUrl: string, createdAt: any, id: string, name: string, actions: Array, events: Array<{ __typename: 'TransactionEvent', externalUrl: string, id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, createdBy: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, amount: { __typename: 'Money', amount: number, currency: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } }> }; +export type OrderDetailsGrantRefundFragment = { __typename: 'Order', id: string, number: string, lines: Array<{ __typename: 'OrderLine', id: string, productName: string, quantity: number, quantityToFulfill: number, variantName: string, thumbnail: { __typename: 'Image', url: string } | null, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } } }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, fulfillmentOrder: number, status: FulfillmentStatus, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, productName: string, quantity: number, quantityToFulfill: number, variantName: string, thumbnail: { __typename: 'Image', url: string } | null, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } } } | null }> | null }>, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, grantedRefunds: Array<{ __typename: 'OrderGrantedRefund', id: string, reason: string | null, shippingCostsIncluded: boolean, status: OrderGrantedRefundStatusEnum, reasonReference: { __typename: 'Page', id: string, title: string } | null, amount: { __typename: 'Money', amount: number, currency: string }, transaction: { __typename: 'TransactionItem', id: string } | null, lines: Array<{ __typename: 'OrderGrantedRefundLine', id: string, quantity: number, reason: string | null, reasonReference: { __typename: 'Page', id: string, title: string } | null, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } }> | null }>, transactions: Array<{ __typename: 'TransactionItem', pspReference: string, externalUrl: string, createdAt: any, id: string, name: string, actions: Array, events: Array<{ __typename: 'TransactionEvent', externalUrl: string, id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, createdBy: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, amount: { __typename: 'Money', amount: number, currency: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } }> }; export type ActivitiesFragment = { __typename: 'OrderEvent', date: any | null, email: string | null, message: string | null, orderNumber: string | null, type: OrderEventsEnum | null, user: { __typename: 'User', email: string } | null }; @@ -10900,7 +11054,7 @@ export type OrderCancelMutationVariables = Exact<{ }>; -export type OrderCancelMutation = { __typename: 'Mutation', orderCancel: { __typename: 'OrderCancel', errors: Array<{ __typename: 'OrderError', code: OrderErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null, orderLines: Array | null }>, order: { __typename: 'Order', id: string, displayGrossPrices: boolean, isShippingRequired: boolean, canFinalize: boolean, created: any, customerNote: string, number: string, isPaid: boolean, paymentStatus: PaymentChargeStatusEnum, shippingMethodName: string | null, collectionPointName: string | null, status: OrderStatus, actions: Array, userEmail: string | null, chargeStatus: OrderChargeStatusEnum, authorizeStatus: OrderAuthorizeStatusEnum, billingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, transactions: Array<{ __typename: 'TransactionItem', pspReference: string, externalUrl: string, createdAt: any, id: string, name: string, actions: Array, events: Array<{ __typename: 'TransactionEvent', externalUrl: string, id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, createdBy: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, amount: { __typename: 'Money', amount: number, currency: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } }>, payments: Array<{ __typename: 'Payment', id: string, isActive: boolean, actions: Array, gateway: string, paymentMethodType: string, modified: any, availableCaptureAmount: { __typename: 'Money', amount: number, currency: string } | null, capturedAmount: { __typename: 'Money', amount: number, currency: string } | null, total: { __typename: 'Money', amount: number, currency: string } | null, availableRefundAmount: { __typename: 'Money', amount: number, currency: string } | null, transactions: Array<{ __typename: 'Transaction', id: string, token: string, created: any, kind: TransactionKind, isSuccess: boolean }> | null }>, giftCards: Array<{ __typename: 'GiftCard', id: string, last4CodeChars: string, events: Array<{ __typename: 'GiftCardEvent', id: string, type: GiftCardEventsEnum | null, orderId: string | null, date: any | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }> }>, grantedRefunds: Array<{ __typename: 'OrderGrantedRefund', id: string, createdAt: any, shippingCostsIncluded: boolean, status: OrderGrantedRefundStatusEnum, reason: string | null, amount: { __typename: 'Money', currency: string, amount: number }, transactionEvents: Array<{ __typename: 'TransactionEvent', id: string }> | null, reasonReference: { __typename: 'Page', id: string, title: string } | null, user: { __typename: 'User', id: string, firstName: string, lastName: string, email: string, avatar: { __typename: 'Image', url: string, alt: string | null } | null } | null, app: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderGrantedRefundLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string } }> | null }>, discounts: Array<{ __typename: 'OrderDiscount', id: string, type: OrderDiscountType, name: string | null, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }>, events: Array<{ __typename: 'OrderEvent', id: string, amount: number | null, shippingCostsIncluded: boolean | null, date: any | null, email: string | null, emailType: OrderEventsEmailsEnum | null, invoiceNumber: string | null, message: string | null, quantity: number | null, transactionReference: string | null, type: OrderEventsEnum | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, relatedOrder: { __typename: 'Order', id: string, number: string } | null, related: { __typename: 'OrderEvent', id: string } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, app: { __typename: 'App', id: string, name: string | null, appUrl: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderEventOrderLineObject', quantity: number | null, itemName: string | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, orderLine: { __typename: 'OrderLine', id: string, productName: string, variantName: string } | null }> | null }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, created: any, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }>, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, shippingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, deliveryMethod: { __typename: 'ShippingMethod', id: string } | { __typename: 'Warehouse', id: string, clickAndCollectOption: WarehouseClickAndCollectOptionEnum } | null, shippingMethod: { __typename: 'ShippingMethod', id: string } | null, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, subtotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string }, tax: { __typename: 'Money', amount: number, currency: string } }, totalRemainingGrant: { __typename: 'Money', amount: number, currency: string }, totalGrantedRefund: { __typename: 'Money', amount: number, currency: string }, totalRefundPending: { __typename: 'Money', amount: number, currency: string }, totalRefunded: { __typename: 'Money', amount: number, currency: string }, totalAuthorizePending: { __typename: 'Money', amount: number, currency: string }, totalAuthorized: { __typename: 'Money', amount: number, currency: string }, totalCaptured: { __typename: 'Money', amount: number, currency: string }, totalCharged: { __typename: 'Money', amount: number, currency: string }, totalChargePending: { __typename: 'Money', amount: number, currency: string }, totalCanceled: { __typename: 'Money', amount: number, currency: string }, totalCancelPending: { __typename: 'Money', amount: number, currency: string }, totalBalance: { __typename: 'Money', amount: number, currency: string }, undiscountedTotal: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, user: { __typename: 'User', id: string, email: string } | null, shippingMethods: Array<{ __typename: 'ShippingMethod', id: string, name: string, active: boolean, message: string | null, price: { __typename: 'Money', amount: number, currency: string } }>, invoices: Array<{ __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }>, channel: { __typename: 'Channel', isActive: boolean, id: string, name: string, currencyCode: string, slug: string, defaultCountry: { __typename: 'CountryDisplay', code: string }, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum } }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; +export type OrderCancelMutation = { __typename: 'Mutation', orderCancel: { __typename: 'OrderCancel', errors: Array<{ __typename: 'OrderError', code: OrderErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null, orderLines: Array | null }>, order: { __typename: 'Order', id: string, displayGrossPrices: boolean, isShippingRequired: boolean, canFinalize: boolean, created: any, customerNote: string, number: string, isPaid: boolean, paymentStatus: PaymentChargeStatusEnum, shippingMethodName: string | null, collectionPointName: string | null, status: OrderStatus, actions: Array, userEmail: string | null, chargeStatus: OrderChargeStatusEnum, authorizeStatus: OrderAuthorizeStatusEnum, billingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, transactions: Array<{ __typename: 'TransactionItem', pspReference: string, externalUrl: string, createdAt: any, id: string, name: string, actions: Array, events: Array<{ __typename: 'TransactionEvent', externalUrl: string, id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, createdBy: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, amount: { __typename: 'Money', amount: number, currency: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } }>, payments: Array<{ __typename: 'Payment', id: string, isActive: boolean, actions: Array, gateway: string, paymentMethodType: string, modified: any, availableCaptureAmount: { __typename: 'Money', amount: number, currency: string } | null, capturedAmount: { __typename: 'Money', amount: number, currency: string } | null, total: { __typename: 'Money', amount: number, currency: string } | null, availableRefundAmount: { __typename: 'Money', amount: number, currency: string } | null, transactions: Array<{ __typename: 'Transaction', id: string, token: string, created: any, kind: TransactionKind, isSuccess: boolean }> | null }>, giftCards: Array<{ __typename: 'GiftCard', id: string, last4CodeChars: string, events: Array<{ __typename: 'GiftCardEvent', id: string, type: GiftCardEventsEnum | null, orderId: string | null, date: any | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }> }>, grantedRefunds: Array<{ __typename: 'OrderGrantedRefund', id: string, createdAt: any, shippingCostsIncluded: boolean, status: OrderGrantedRefundStatusEnum, reason: string | null, amount: { __typename: 'Money', currency: string, amount: number }, transactionEvents: Array<{ __typename: 'TransactionEvent', id: string }> | null, reasonReference: { __typename: 'Page', id: string, title: string } | null, user: { __typename: 'User', id: string, firstName: string, lastName: string, email: string, avatar: { __typename: 'Image', url: string, alt: string | null } | null } | null, app: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderGrantedRefundLine', id: string, quantity: number, reason: string | null, orderLine: { __typename: 'OrderLine', id: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }> | null }>, discounts: Array<{ __typename: 'OrderDiscount', id: string, type: OrderDiscountType, name: string | null, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }>, events: Array<{ __typename: 'OrderEvent', id: string, amount: number | null, shippingCostsIncluded: boolean | null, date: any | null, email: string | null, emailType: OrderEventsEmailsEnum | null, invoiceNumber: string | null, message: string | null, quantity: number | null, transactionReference: string | null, type: OrderEventsEnum | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, relatedOrder: { __typename: 'Order', id: string, number: string } | null, related: { __typename: 'OrderEvent', id: string } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, app: { __typename: 'App', id: string, name: string | null, appUrl: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderEventOrderLineObject', quantity: number | null, itemName: string | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, orderLine: { __typename: 'OrderLine', id: string, productName: string, variantName: string } | null }> | null }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, created: any, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, reason: string | null, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, reason: string | null, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } | null, reasonReference: { __typename: 'Page', id: string, title: string } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null, reasonReference: { __typename: 'Page', id: string, title: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }>, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, shippingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, deliveryMethod: { __typename: 'ShippingMethod', id: string } | { __typename: 'Warehouse', id: string, clickAndCollectOption: WarehouseClickAndCollectOptionEnum } | null, shippingMethod: { __typename: 'ShippingMethod', id: string } | null, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, subtotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string }, tax: { __typename: 'Money', amount: number, currency: string } }, totalRemainingGrant: { __typename: 'Money', amount: number, currency: string }, totalGrantedRefund: { __typename: 'Money', amount: number, currency: string }, totalRefundPending: { __typename: 'Money', amount: number, currency: string }, totalRefunded: { __typename: 'Money', amount: number, currency: string }, totalAuthorizePending: { __typename: 'Money', amount: number, currency: string }, totalAuthorized: { __typename: 'Money', amount: number, currency: string }, totalCaptured: { __typename: 'Money', amount: number, currency: string }, totalCharged: { __typename: 'Money', amount: number, currency: string }, totalChargePending: { __typename: 'Money', amount: number, currency: string }, totalCanceled: { __typename: 'Money', amount: number, currency: string }, totalCancelPending: { __typename: 'Money', amount: number, currency: string }, totalBalance: { __typename: 'Money', amount: number, currency: string }, undiscountedTotal: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, user: { __typename: 'User', id: string, email: string } | null, shippingMethods: Array<{ __typename: 'ShippingMethod', id: string, name: string, active: boolean, message: string | null, price: { __typename: 'Money', amount: number, currency: string } }>, invoices: Array<{ __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }>, channel: { __typename: 'Channel', isActive: boolean, id: string, name: string, currencyCode: string, slug: string, defaultCountry: { __typename: 'CountryDisplay', code: string }, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum } }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; export type OrderDiscountAddMutationVariables = Exact<{ input: OrderDiscountCommonInput; @@ -10908,21 +11062,21 @@ export type OrderDiscountAddMutationVariables = Exact<{ }>; -export type OrderDiscountAddMutation = { __typename: 'Mutation', orderDiscountAdd: { __typename: 'OrderDiscountAdd', errors: Array<{ __typename: 'OrderError', code: OrderErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null, orderLines: Array | null }>, order: { __typename: 'Order', id: string, displayGrossPrices: boolean, isShippingRequired: boolean, canFinalize: boolean, created: any, customerNote: string, number: string, isPaid: boolean, paymentStatus: PaymentChargeStatusEnum, shippingMethodName: string | null, collectionPointName: string | null, status: OrderStatus, actions: Array, userEmail: string | null, chargeStatus: OrderChargeStatusEnum, authorizeStatus: OrderAuthorizeStatusEnum, billingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, transactions: Array<{ __typename: 'TransactionItem', pspReference: string, externalUrl: string, createdAt: any, id: string, name: string, actions: Array, events: Array<{ __typename: 'TransactionEvent', externalUrl: string, id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, createdBy: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, amount: { __typename: 'Money', amount: number, currency: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } }>, payments: Array<{ __typename: 'Payment', id: string, isActive: boolean, actions: Array, gateway: string, paymentMethodType: string, modified: any, availableCaptureAmount: { __typename: 'Money', amount: number, currency: string } | null, capturedAmount: { __typename: 'Money', amount: number, currency: string } | null, total: { __typename: 'Money', amount: number, currency: string } | null, availableRefundAmount: { __typename: 'Money', amount: number, currency: string } | null, transactions: Array<{ __typename: 'Transaction', id: string, token: string, created: any, kind: TransactionKind, isSuccess: boolean }> | null }>, giftCards: Array<{ __typename: 'GiftCard', id: string, last4CodeChars: string, events: Array<{ __typename: 'GiftCardEvent', id: string, type: GiftCardEventsEnum | null, orderId: string | null, date: any | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }> }>, grantedRefunds: Array<{ __typename: 'OrderGrantedRefund', id: string, createdAt: any, shippingCostsIncluded: boolean, status: OrderGrantedRefundStatusEnum, reason: string | null, amount: { __typename: 'Money', currency: string, amount: number }, transactionEvents: Array<{ __typename: 'TransactionEvent', id: string }> | null, reasonReference: { __typename: 'Page', id: string, title: string } | null, user: { __typename: 'User', id: string, firstName: string, lastName: string, email: string, avatar: { __typename: 'Image', url: string, alt: string | null } | null } | null, app: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderGrantedRefundLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string } }> | null }>, discounts: Array<{ __typename: 'OrderDiscount', id: string, type: OrderDiscountType, name: string | null, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }>, events: Array<{ __typename: 'OrderEvent', id: string, amount: number | null, shippingCostsIncluded: boolean | null, date: any | null, email: string | null, emailType: OrderEventsEmailsEnum | null, invoiceNumber: string | null, message: string | null, quantity: number | null, transactionReference: string | null, type: OrderEventsEnum | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, relatedOrder: { __typename: 'Order', id: string, number: string } | null, related: { __typename: 'OrderEvent', id: string } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, app: { __typename: 'App', id: string, name: string | null, appUrl: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderEventOrderLineObject', quantity: number | null, itemName: string | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, orderLine: { __typename: 'OrderLine', id: string, productName: string, variantName: string } | null }> | null }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, created: any, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }>, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, shippingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, deliveryMethod: { __typename: 'ShippingMethod', id: string } | { __typename: 'Warehouse', id: string, clickAndCollectOption: WarehouseClickAndCollectOptionEnum } | null, shippingMethod: { __typename: 'ShippingMethod', id: string } | null, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, subtotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string }, tax: { __typename: 'Money', amount: number, currency: string } }, totalRemainingGrant: { __typename: 'Money', amount: number, currency: string }, totalGrantedRefund: { __typename: 'Money', amount: number, currency: string }, totalRefundPending: { __typename: 'Money', amount: number, currency: string }, totalRefunded: { __typename: 'Money', amount: number, currency: string }, totalAuthorizePending: { __typename: 'Money', amount: number, currency: string }, totalAuthorized: { __typename: 'Money', amount: number, currency: string }, totalCaptured: { __typename: 'Money', amount: number, currency: string }, totalCharged: { __typename: 'Money', amount: number, currency: string }, totalChargePending: { __typename: 'Money', amount: number, currency: string }, totalCanceled: { __typename: 'Money', amount: number, currency: string }, totalCancelPending: { __typename: 'Money', amount: number, currency: string }, totalBalance: { __typename: 'Money', amount: number, currency: string }, undiscountedTotal: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, user: { __typename: 'User', id: string, email: string } | null, shippingMethods: Array<{ __typename: 'ShippingMethod', id: string, name: string, active: boolean, message: string | null, price: { __typename: 'Money', amount: number, currency: string } }>, invoices: Array<{ __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }>, channel: { __typename: 'Channel', isActive: boolean, id: string, name: string, currencyCode: string, slug: string, defaultCountry: { __typename: 'CountryDisplay', code: string }, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum } }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; +export type OrderDiscountAddMutation = { __typename: 'Mutation', orderDiscountAdd: { __typename: 'OrderDiscountAdd', errors: Array<{ __typename: 'OrderError', code: OrderErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null, orderLines: Array | null }>, order: { __typename: 'Order', id: string, displayGrossPrices: boolean, isShippingRequired: boolean, canFinalize: boolean, created: any, customerNote: string, number: string, isPaid: boolean, paymentStatus: PaymentChargeStatusEnum, shippingMethodName: string | null, collectionPointName: string | null, status: OrderStatus, actions: Array, userEmail: string | null, chargeStatus: OrderChargeStatusEnum, authorizeStatus: OrderAuthorizeStatusEnum, billingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, transactions: Array<{ __typename: 'TransactionItem', pspReference: string, externalUrl: string, createdAt: any, id: string, name: string, actions: Array, events: Array<{ __typename: 'TransactionEvent', externalUrl: string, id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, createdBy: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, amount: { __typename: 'Money', amount: number, currency: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } }>, payments: Array<{ __typename: 'Payment', id: string, isActive: boolean, actions: Array, gateway: string, paymentMethodType: string, modified: any, availableCaptureAmount: { __typename: 'Money', amount: number, currency: string } | null, capturedAmount: { __typename: 'Money', amount: number, currency: string } | null, total: { __typename: 'Money', amount: number, currency: string } | null, availableRefundAmount: { __typename: 'Money', amount: number, currency: string } | null, transactions: Array<{ __typename: 'Transaction', id: string, token: string, created: any, kind: TransactionKind, isSuccess: boolean }> | null }>, giftCards: Array<{ __typename: 'GiftCard', id: string, last4CodeChars: string, events: Array<{ __typename: 'GiftCardEvent', id: string, type: GiftCardEventsEnum | null, orderId: string | null, date: any | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }> }>, grantedRefunds: Array<{ __typename: 'OrderGrantedRefund', id: string, createdAt: any, shippingCostsIncluded: boolean, status: OrderGrantedRefundStatusEnum, reason: string | null, amount: { __typename: 'Money', currency: string, amount: number }, transactionEvents: Array<{ __typename: 'TransactionEvent', id: string }> | null, reasonReference: { __typename: 'Page', id: string, title: string } | null, user: { __typename: 'User', id: string, firstName: string, lastName: string, email: string, avatar: { __typename: 'Image', url: string, alt: string | null } | null } | null, app: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderGrantedRefundLine', id: string, quantity: number, reason: string | null, orderLine: { __typename: 'OrderLine', id: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }> | null }>, discounts: Array<{ __typename: 'OrderDiscount', id: string, type: OrderDiscountType, name: string | null, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }>, events: Array<{ __typename: 'OrderEvent', id: string, amount: number | null, shippingCostsIncluded: boolean | null, date: any | null, email: string | null, emailType: OrderEventsEmailsEnum | null, invoiceNumber: string | null, message: string | null, quantity: number | null, transactionReference: string | null, type: OrderEventsEnum | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, relatedOrder: { __typename: 'Order', id: string, number: string } | null, related: { __typename: 'OrderEvent', id: string } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, app: { __typename: 'App', id: string, name: string | null, appUrl: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderEventOrderLineObject', quantity: number | null, itemName: string | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, orderLine: { __typename: 'OrderLine', id: string, productName: string, variantName: string } | null }> | null }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, created: any, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, reason: string | null, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, reason: string | null, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } | null, reasonReference: { __typename: 'Page', id: string, title: string } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null, reasonReference: { __typename: 'Page', id: string, title: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }>, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, shippingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, deliveryMethod: { __typename: 'ShippingMethod', id: string } | { __typename: 'Warehouse', id: string, clickAndCollectOption: WarehouseClickAndCollectOptionEnum } | null, shippingMethod: { __typename: 'ShippingMethod', id: string } | null, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, subtotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string }, tax: { __typename: 'Money', amount: number, currency: string } }, totalRemainingGrant: { __typename: 'Money', amount: number, currency: string }, totalGrantedRefund: { __typename: 'Money', amount: number, currency: string }, totalRefundPending: { __typename: 'Money', amount: number, currency: string }, totalRefunded: { __typename: 'Money', amount: number, currency: string }, totalAuthorizePending: { __typename: 'Money', amount: number, currency: string }, totalAuthorized: { __typename: 'Money', amount: number, currency: string }, totalCaptured: { __typename: 'Money', amount: number, currency: string }, totalCharged: { __typename: 'Money', amount: number, currency: string }, totalChargePending: { __typename: 'Money', amount: number, currency: string }, totalCanceled: { __typename: 'Money', amount: number, currency: string }, totalCancelPending: { __typename: 'Money', amount: number, currency: string }, totalBalance: { __typename: 'Money', amount: number, currency: string }, undiscountedTotal: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, user: { __typename: 'User', id: string, email: string } | null, shippingMethods: Array<{ __typename: 'ShippingMethod', id: string, name: string, active: boolean, message: string | null, price: { __typename: 'Money', amount: number, currency: string } }>, invoices: Array<{ __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }>, channel: { __typename: 'Channel', isActive: boolean, id: string, name: string, currencyCode: string, slug: string, defaultCountry: { __typename: 'CountryDisplay', code: string }, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum } }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; export type OrderDiscountDeleteMutationVariables = Exact<{ discountId: Scalars['ID']; }>; -export type OrderDiscountDeleteMutation = { __typename: 'Mutation', orderDiscountDelete: { __typename: 'OrderDiscountDelete', errors: Array<{ __typename: 'OrderError', code: OrderErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null, orderLines: Array | null }>, order: { __typename: 'Order', id: string, displayGrossPrices: boolean, isShippingRequired: boolean, canFinalize: boolean, created: any, customerNote: string, number: string, isPaid: boolean, paymentStatus: PaymentChargeStatusEnum, shippingMethodName: string | null, collectionPointName: string | null, status: OrderStatus, actions: Array, userEmail: string | null, chargeStatus: OrderChargeStatusEnum, authorizeStatus: OrderAuthorizeStatusEnum, billingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, transactions: Array<{ __typename: 'TransactionItem', pspReference: string, externalUrl: string, createdAt: any, id: string, name: string, actions: Array, events: Array<{ __typename: 'TransactionEvent', externalUrl: string, id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, createdBy: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, amount: { __typename: 'Money', amount: number, currency: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } }>, payments: Array<{ __typename: 'Payment', id: string, isActive: boolean, actions: Array, gateway: string, paymentMethodType: string, modified: any, availableCaptureAmount: { __typename: 'Money', amount: number, currency: string } | null, capturedAmount: { __typename: 'Money', amount: number, currency: string } | null, total: { __typename: 'Money', amount: number, currency: string } | null, availableRefundAmount: { __typename: 'Money', amount: number, currency: string } | null, transactions: Array<{ __typename: 'Transaction', id: string, token: string, created: any, kind: TransactionKind, isSuccess: boolean }> | null }>, giftCards: Array<{ __typename: 'GiftCard', id: string, last4CodeChars: string, events: Array<{ __typename: 'GiftCardEvent', id: string, type: GiftCardEventsEnum | null, orderId: string | null, date: any | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }> }>, grantedRefunds: Array<{ __typename: 'OrderGrantedRefund', id: string, createdAt: any, shippingCostsIncluded: boolean, status: OrderGrantedRefundStatusEnum, reason: string | null, amount: { __typename: 'Money', currency: string, amount: number }, transactionEvents: Array<{ __typename: 'TransactionEvent', id: string }> | null, reasonReference: { __typename: 'Page', id: string, title: string } | null, user: { __typename: 'User', id: string, firstName: string, lastName: string, email: string, avatar: { __typename: 'Image', url: string, alt: string | null } | null } | null, app: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderGrantedRefundLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string } }> | null }>, discounts: Array<{ __typename: 'OrderDiscount', id: string, type: OrderDiscountType, name: string | null, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }>, events: Array<{ __typename: 'OrderEvent', id: string, amount: number | null, shippingCostsIncluded: boolean | null, date: any | null, email: string | null, emailType: OrderEventsEmailsEnum | null, invoiceNumber: string | null, message: string | null, quantity: number | null, transactionReference: string | null, type: OrderEventsEnum | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, relatedOrder: { __typename: 'Order', id: string, number: string } | null, related: { __typename: 'OrderEvent', id: string } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, app: { __typename: 'App', id: string, name: string | null, appUrl: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderEventOrderLineObject', quantity: number | null, itemName: string | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, orderLine: { __typename: 'OrderLine', id: string, productName: string, variantName: string } | null }> | null }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, created: any, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }>, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, shippingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, deliveryMethod: { __typename: 'ShippingMethod', id: string } | { __typename: 'Warehouse', id: string, clickAndCollectOption: WarehouseClickAndCollectOptionEnum } | null, shippingMethod: { __typename: 'ShippingMethod', id: string } | null, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, subtotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string }, tax: { __typename: 'Money', amount: number, currency: string } }, totalRemainingGrant: { __typename: 'Money', amount: number, currency: string }, totalGrantedRefund: { __typename: 'Money', amount: number, currency: string }, totalRefundPending: { __typename: 'Money', amount: number, currency: string }, totalRefunded: { __typename: 'Money', amount: number, currency: string }, totalAuthorizePending: { __typename: 'Money', amount: number, currency: string }, totalAuthorized: { __typename: 'Money', amount: number, currency: string }, totalCaptured: { __typename: 'Money', amount: number, currency: string }, totalCharged: { __typename: 'Money', amount: number, currency: string }, totalChargePending: { __typename: 'Money', amount: number, currency: string }, totalCanceled: { __typename: 'Money', amount: number, currency: string }, totalCancelPending: { __typename: 'Money', amount: number, currency: string }, totalBalance: { __typename: 'Money', amount: number, currency: string }, undiscountedTotal: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, user: { __typename: 'User', id: string, email: string } | null, shippingMethods: Array<{ __typename: 'ShippingMethod', id: string, name: string, active: boolean, message: string | null, price: { __typename: 'Money', amount: number, currency: string } }>, invoices: Array<{ __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }>, channel: { __typename: 'Channel', isActive: boolean, id: string, name: string, currencyCode: string, slug: string, defaultCountry: { __typename: 'CountryDisplay', code: string }, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum } }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; +export type OrderDiscountDeleteMutation = { __typename: 'Mutation', orderDiscountDelete: { __typename: 'OrderDiscountDelete', errors: Array<{ __typename: 'OrderError', code: OrderErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null, orderLines: Array | null }>, order: { __typename: 'Order', id: string, displayGrossPrices: boolean, isShippingRequired: boolean, canFinalize: boolean, created: any, customerNote: string, number: string, isPaid: boolean, paymentStatus: PaymentChargeStatusEnum, shippingMethodName: string | null, collectionPointName: string | null, status: OrderStatus, actions: Array, userEmail: string | null, chargeStatus: OrderChargeStatusEnum, authorizeStatus: OrderAuthorizeStatusEnum, billingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, transactions: Array<{ __typename: 'TransactionItem', pspReference: string, externalUrl: string, createdAt: any, id: string, name: string, actions: Array, events: Array<{ __typename: 'TransactionEvent', externalUrl: string, id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, createdBy: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, amount: { __typename: 'Money', amount: number, currency: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } }>, payments: Array<{ __typename: 'Payment', id: string, isActive: boolean, actions: Array, gateway: string, paymentMethodType: string, modified: any, availableCaptureAmount: { __typename: 'Money', amount: number, currency: string } | null, capturedAmount: { __typename: 'Money', amount: number, currency: string } | null, total: { __typename: 'Money', amount: number, currency: string } | null, availableRefundAmount: { __typename: 'Money', amount: number, currency: string } | null, transactions: Array<{ __typename: 'Transaction', id: string, token: string, created: any, kind: TransactionKind, isSuccess: boolean }> | null }>, giftCards: Array<{ __typename: 'GiftCard', id: string, last4CodeChars: string, events: Array<{ __typename: 'GiftCardEvent', id: string, type: GiftCardEventsEnum | null, orderId: string | null, date: any | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }> }>, grantedRefunds: Array<{ __typename: 'OrderGrantedRefund', id: string, createdAt: any, shippingCostsIncluded: boolean, status: OrderGrantedRefundStatusEnum, reason: string | null, amount: { __typename: 'Money', currency: string, amount: number }, transactionEvents: Array<{ __typename: 'TransactionEvent', id: string }> | null, reasonReference: { __typename: 'Page', id: string, title: string } | null, user: { __typename: 'User', id: string, firstName: string, lastName: string, email: string, avatar: { __typename: 'Image', url: string, alt: string | null } | null } | null, app: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderGrantedRefundLine', id: string, quantity: number, reason: string | null, orderLine: { __typename: 'OrderLine', id: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }> | null }>, discounts: Array<{ __typename: 'OrderDiscount', id: string, type: OrderDiscountType, name: string | null, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }>, events: Array<{ __typename: 'OrderEvent', id: string, amount: number | null, shippingCostsIncluded: boolean | null, date: any | null, email: string | null, emailType: OrderEventsEmailsEnum | null, invoiceNumber: string | null, message: string | null, quantity: number | null, transactionReference: string | null, type: OrderEventsEnum | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, relatedOrder: { __typename: 'Order', id: string, number: string } | null, related: { __typename: 'OrderEvent', id: string } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, app: { __typename: 'App', id: string, name: string | null, appUrl: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderEventOrderLineObject', quantity: number | null, itemName: string | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, orderLine: { __typename: 'OrderLine', id: string, productName: string, variantName: string } | null }> | null }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, created: any, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, reason: string | null, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, reason: string | null, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } | null, reasonReference: { __typename: 'Page', id: string, title: string } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null, reasonReference: { __typename: 'Page', id: string, title: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }>, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, shippingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, deliveryMethod: { __typename: 'ShippingMethod', id: string } | { __typename: 'Warehouse', id: string, clickAndCollectOption: WarehouseClickAndCollectOptionEnum } | null, shippingMethod: { __typename: 'ShippingMethod', id: string } | null, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, subtotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string }, tax: { __typename: 'Money', amount: number, currency: string } }, totalRemainingGrant: { __typename: 'Money', amount: number, currency: string }, totalGrantedRefund: { __typename: 'Money', amount: number, currency: string }, totalRefundPending: { __typename: 'Money', amount: number, currency: string }, totalRefunded: { __typename: 'Money', amount: number, currency: string }, totalAuthorizePending: { __typename: 'Money', amount: number, currency: string }, totalAuthorized: { __typename: 'Money', amount: number, currency: string }, totalCaptured: { __typename: 'Money', amount: number, currency: string }, totalCharged: { __typename: 'Money', amount: number, currency: string }, totalChargePending: { __typename: 'Money', amount: number, currency: string }, totalCanceled: { __typename: 'Money', amount: number, currency: string }, totalCancelPending: { __typename: 'Money', amount: number, currency: string }, totalBalance: { __typename: 'Money', amount: number, currency: string }, undiscountedTotal: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, user: { __typename: 'User', id: string, email: string } | null, shippingMethods: Array<{ __typename: 'ShippingMethod', id: string, name: string, active: boolean, message: string | null, price: { __typename: 'Money', amount: number, currency: string } }>, invoices: Array<{ __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }>, channel: { __typename: 'Channel', isActive: boolean, id: string, name: string, currencyCode: string, slug: string, defaultCountry: { __typename: 'CountryDisplay', code: string }, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum } }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; export type OrderLineDiscountRemoveMutationVariables = Exact<{ orderLineId: Scalars['ID']; }>; -export type OrderLineDiscountRemoveMutation = { __typename: 'Mutation', orderLineDiscountRemove: { __typename: 'OrderLineDiscountRemove', errors: Array<{ __typename: 'OrderError', code: OrderErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null, orderLines: Array | null }>, order: { __typename: 'Order', id: string, displayGrossPrices: boolean, isShippingRequired: boolean, canFinalize: boolean, created: any, customerNote: string, number: string, isPaid: boolean, paymentStatus: PaymentChargeStatusEnum, shippingMethodName: string | null, collectionPointName: string | null, status: OrderStatus, actions: Array, userEmail: string | null, chargeStatus: OrderChargeStatusEnum, authorizeStatus: OrderAuthorizeStatusEnum, billingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, transactions: Array<{ __typename: 'TransactionItem', pspReference: string, externalUrl: string, createdAt: any, id: string, name: string, actions: Array, events: Array<{ __typename: 'TransactionEvent', externalUrl: string, id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, createdBy: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, amount: { __typename: 'Money', amount: number, currency: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } }>, payments: Array<{ __typename: 'Payment', id: string, isActive: boolean, actions: Array, gateway: string, paymentMethodType: string, modified: any, availableCaptureAmount: { __typename: 'Money', amount: number, currency: string } | null, capturedAmount: { __typename: 'Money', amount: number, currency: string } | null, total: { __typename: 'Money', amount: number, currency: string } | null, availableRefundAmount: { __typename: 'Money', amount: number, currency: string } | null, transactions: Array<{ __typename: 'Transaction', id: string, token: string, created: any, kind: TransactionKind, isSuccess: boolean }> | null }>, giftCards: Array<{ __typename: 'GiftCard', id: string, last4CodeChars: string, events: Array<{ __typename: 'GiftCardEvent', id: string, type: GiftCardEventsEnum | null, orderId: string | null, date: any | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }> }>, grantedRefunds: Array<{ __typename: 'OrderGrantedRefund', id: string, createdAt: any, shippingCostsIncluded: boolean, status: OrderGrantedRefundStatusEnum, reason: string | null, amount: { __typename: 'Money', currency: string, amount: number }, transactionEvents: Array<{ __typename: 'TransactionEvent', id: string }> | null, reasonReference: { __typename: 'Page', id: string, title: string } | null, user: { __typename: 'User', id: string, firstName: string, lastName: string, email: string, avatar: { __typename: 'Image', url: string, alt: string | null } | null } | null, app: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderGrantedRefundLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string } }> | null }>, discounts: Array<{ __typename: 'OrderDiscount', id: string, type: OrderDiscountType, name: string | null, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }>, events: Array<{ __typename: 'OrderEvent', id: string, amount: number | null, shippingCostsIncluded: boolean | null, date: any | null, email: string | null, emailType: OrderEventsEmailsEnum | null, invoiceNumber: string | null, message: string | null, quantity: number | null, transactionReference: string | null, type: OrderEventsEnum | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, relatedOrder: { __typename: 'Order', id: string, number: string } | null, related: { __typename: 'OrderEvent', id: string } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, app: { __typename: 'App', id: string, name: string | null, appUrl: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderEventOrderLineObject', quantity: number | null, itemName: string | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, orderLine: { __typename: 'OrderLine', id: string, productName: string, variantName: string } | null }> | null }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, created: any, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }>, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, shippingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, deliveryMethod: { __typename: 'ShippingMethod', id: string } | { __typename: 'Warehouse', id: string, clickAndCollectOption: WarehouseClickAndCollectOptionEnum } | null, shippingMethod: { __typename: 'ShippingMethod', id: string } | null, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, subtotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string }, tax: { __typename: 'Money', amount: number, currency: string } }, totalRemainingGrant: { __typename: 'Money', amount: number, currency: string }, totalGrantedRefund: { __typename: 'Money', amount: number, currency: string }, totalRefundPending: { __typename: 'Money', amount: number, currency: string }, totalRefunded: { __typename: 'Money', amount: number, currency: string }, totalAuthorizePending: { __typename: 'Money', amount: number, currency: string }, totalAuthorized: { __typename: 'Money', amount: number, currency: string }, totalCaptured: { __typename: 'Money', amount: number, currency: string }, totalCharged: { __typename: 'Money', amount: number, currency: string }, totalChargePending: { __typename: 'Money', amount: number, currency: string }, totalCanceled: { __typename: 'Money', amount: number, currency: string }, totalCancelPending: { __typename: 'Money', amount: number, currency: string }, totalBalance: { __typename: 'Money', amount: number, currency: string }, undiscountedTotal: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, user: { __typename: 'User', id: string, email: string } | null, shippingMethods: Array<{ __typename: 'ShippingMethod', id: string, name: string, active: boolean, message: string | null, price: { __typename: 'Money', amount: number, currency: string } }>, invoices: Array<{ __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }>, channel: { __typename: 'Channel', isActive: boolean, id: string, name: string, currencyCode: string, slug: string, defaultCountry: { __typename: 'CountryDisplay', code: string }, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum } }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; +export type OrderLineDiscountRemoveMutation = { __typename: 'Mutation', orderLineDiscountRemove: { __typename: 'OrderLineDiscountRemove', errors: Array<{ __typename: 'OrderError', code: OrderErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null, orderLines: Array | null }>, order: { __typename: 'Order', id: string, displayGrossPrices: boolean, isShippingRequired: boolean, canFinalize: boolean, created: any, customerNote: string, number: string, isPaid: boolean, paymentStatus: PaymentChargeStatusEnum, shippingMethodName: string | null, collectionPointName: string | null, status: OrderStatus, actions: Array, userEmail: string | null, chargeStatus: OrderChargeStatusEnum, authorizeStatus: OrderAuthorizeStatusEnum, billingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, transactions: Array<{ __typename: 'TransactionItem', pspReference: string, externalUrl: string, createdAt: any, id: string, name: string, actions: Array, events: Array<{ __typename: 'TransactionEvent', externalUrl: string, id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, createdBy: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, amount: { __typename: 'Money', amount: number, currency: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } }>, payments: Array<{ __typename: 'Payment', id: string, isActive: boolean, actions: Array, gateway: string, paymentMethodType: string, modified: any, availableCaptureAmount: { __typename: 'Money', amount: number, currency: string } | null, capturedAmount: { __typename: 'Money', amount: number, currency: string } | null, total: { __typename: 'Money', amount: number, currency: string } | null, availableRefundAmount: { __typename: 'Money', amount: number, currency: string } | null, transactions: Array<{ __typename: 'Transaction', id: string, token: string, created: any, kind: TransactionKind, isSuccess: boolean }> | null }>, giftCards: Array<{ __typename: 'GiftCard', id: string, last4CodeChars: string, events: Array<{ __typename: 'GiftCardEvent', id: string, type: GiftCardEventsEnum | null, orderId: string | null, date: any | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }> }>, grantedRefunds: Array<{ __typename: 'OrderGrantedRefund', id: string, createdAt: any, shippingCostsIncluded: boolean, status: OrderGrantedRefundStatusEnum, reason: string | null, amount: { __typename: 'Money', currency: string, amount: number }, transactionEvents: Array<{ __typename: 'TransactionEvent', id: string }> | null, reasonReference: { __typename: 'Page', id: string, title: string } | null, user: { __typename: 'User', id: string, firstName: string, lastName: string, email: string, avatar: { __typename: 'Image', url: string, alt: string | null } | null } | null, app: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderGrantedRefundLine', id: string, quantity: number, reason: string | null, orderLine: { __typename: 'OrderLine', id: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }> | null }>, discounts: Array<{ __typename: 'OrderDiscount', id: string, type: OrderDiscountType, name: string | null, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }>, events: Array<{ __typename: 'OrderEvent', id: string, amount: number | null, shippingCostsIncluded: boolean | null, date: any | null, email: string | null, emailType: OrderEventsEmailsEnum | null, invoiceNumber: string | null, message: string | null, quantity: number | null, transactionReference: string | null, type: OrderEventsEnum | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, relatedOrder: { __typename: 'Order', id: string, number: string } | null, related: { __typename: 'OrderEvent', id: string } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, app: { __typename: 'App', id: string, name: string | null, appUrl: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderEventOrderLineObject', quantity: number | null, itemName: string | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, orderLine: { __typename: 'OrderLine', id: string, productName: string, variantName: string } | null }> | null }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, created: any, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, reason: string | null, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, reason: string | null, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } | null, reasonReference: { __typename: 'Page', id: string, title: string } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null, reasonReference: { __typename: 'Page', id: string, title: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }>, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, shippingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, deliveryMethod: { __typename: 'ShippingMethod', id: string } | { __typename: 'Warehouse', id: string, clickAndCollectOption: WarehouseClickAndCollectOptionEnum } | null, shippingMethod: { __typename: 'ShippingMethod', id: string } | null, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, subtotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string }, tax: { __typename: 'Money', amount: number, currency: string } }, totalRemainingGrant: { __typename: 'Money', amount: number, currency: string }, totalGrantedRefund: { __typename: 'Money', amount: number, currency: string }, totalRefundPending: { __typename: 'Money', amount: number, currency: string }, totalRefunded: { __typename: 'Money', amount: number, currency: string }, totalAuthorizePending: { __typename: 'Money', amount: number, currency: string }, totalAuthorized: { __typename: 'Money', amount: number, currency: string }, totalCaptured: { __typename: 'Money', amount: number, currency: string }, totalCharged: { __typename: 'Money', amount: number, currency: string }, totalChargePending: { __typename: 'Money', amount: number, currency: string }, totalCanceled: { __typename: 'Money', amount: number, currency: string }, totalCancelPending: { __typename: 'Money', amount: number, currency: string }, totalBalance: { __typename: 'Money', amount: number, currency: string }, undiscountedTotal: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, user: { __typename: 'User', id: string, email: string } | null, shippingMethods: Array<{ __typename: 'ShippingMethod', id: string, name: string, active: boolean, message: string | null, price: { __typename: 'Money', amount: number, currency: string } }>, invoices: Array<{ __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }>, channel: { __typename: 'Channel', isActive: boolean, id: string, name: string, currencyCode: string, slug: string, defaultCountry: { __typename: 'CountryDisplay', code: string }, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum } }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; export type OrderLineDiscountUpdateMutationVariables = Exact<{ input: OrderDiscountCommonInput; @@ -10930,7 +11084,7 @@ export type OrderLineDiscountUpdateMutationVariables = Exact<{ }>; -export type OrderLineDiscountUpdateMutation = { __typename: 'Mutation', orderLineDiscountUpdate: { __typename: 'OrderLineDiscountUpdate', errors: Array<{ __typename: 'OrderError', code: OrderErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null, orderLines: Array | null }>, order: { __typename: 'Order', id: string, displayGrossPrices: boolean, isShippingRequired: boolean, canFinalize: boolean, created: any, customerNote: string, number: string, isPaid: boolean, paymentStatus: PaymentChargeStatusEnum, shippingMethodName: string | null, collectionPointName: string | null, status: OrderStatus, actions: Array, userEmail: string | null, chargeStatus: OrderChargeStatusEnum, authorizeStatus: OrderAuthorizeStatusEnum, billingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, transactions: Array<{ __typename: 'TransactionItem', pspReference: string, externalUrl: string, createdAt: any, id: string, name: string, actions: Array, events: Array<{ __typename: 'TransactionEvent', externalUrl: string, id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, createdBy: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, amount: { __typename: 'Money', amount: number, currency: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } }>, payments: Array<{ __typename: 'Payment', id: string, isActive: boolean, actions: Array, gateway: string, paymentMethodType: string, modified: any, availableCaptureAmount: { __typename: 'Money', amount: number, currency: string } | null, capturedAmount: { __typename: 'Money', amount: number, currency: string } | null, total: { __typename: 'Money', amount: number, currency: string } | null, availableRefundAmount: { __typename: 'Money', amount: number, currency: string } | null, transactions: Array<{ __typename: 'Transaction', id: string, token: string, created: any, kind: TransactionKind, isSuccess: boolean }> | null }>, giftCards: Array<{ __typename: 'GiftCard', id: string, last4CodeChars: string, events: Array<{ __typename: 'GiftCardEvent', id: string, type: GiftCardEventsEnum | null, orderId: string | null, date: any | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }> }>, grantedRefunds: Array<{ __typename: 'OrderGrantedRefund', id: string, createdAt: any, shippingCostsIncluded: boolean, status: OrderGrantedRefundStatusEnum, reason: string | null, amount: { __typename: 'Money', currency: string, amount: number }, transactionEvents: Array<{ __typename: 'TransactionEvent', id: string }> | null, reasonReference: { __typename: 'Page', id: string, title: string } | null, user: { __typename: 'User', id: string, firstName: string, lastName: string, email: string, avatar: { __typename: 'Image', url: string, alt: string | null } | null } | null, app: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderGrantedRefundLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string } }> | null }>, discounts: Array<{ __typename: 'OrderDiscount', id: string, type: OrderDiscountType, name: string | null, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }>, events: Array<{ __typename: 'OrderEvent', id: string, amount: number | null, shippingCostsIncluded: boolean | null, date: any | null, email: string | null, emailType: OrderEventsEmailsEnum | null, invoiceNumber: string | null, message: string | null, quantity: number | null, transactionReference: string | null, type: OrderEventsEnum | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, relatedOrder: { __typename: 'Order', id: string, number: string } | null, related: { __typename: 'OrderEvent', id: string } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, app: { __typename: 'App', id: string, name: string | null, appUrl: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderEventOrderLineObject', quantity: number | null, itemName: string | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, orderLine: { __typename: 'OrderLine', id: string, productName: string, variantName: string } | null }> | null }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, created: any, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }>, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, shippingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, deliveryMethod: { __typename: 'ShippingMethod', id: string } | { __typename: 'Warehouse', id: string, clickAndCollectOption: WarehouseClickAndCollectOptionEnum } | null, shippingMethod: { __typename: 'ShippingMethod', id: string } | null, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, subtotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string }, tax: { __typename: 'Money', amount: number, currency: string } }, totalRemainingGrant: { __typename: 'Money', amount: number, currency: string }, totalGrantedRefund: { __typename: 'Money', amount: number, currency: string }, totalRefundPending: { __typename: 'Money', amount: number, currency: string }, totalRefunded: { __typename: 'Money', amount: number, currency: string }, totalAuthorizePending: { __typename: 'Money', amount: number, currency: string }, totalAuthorized: { __typename: 'Money', amount: number, currency: string }, totalCaptured: { __typename: 'Money', amount: number, currency: string }, totalCharged: { __typename: 'Money', amount: number, currency: string }, totalChargePending: { __typename: 'Money', amount: number, currency: string }, totalCanceled: { __typename: 'Money', amount: number, currency: string }, totalCancelPending: { __typename: 'Money', amount: number, currency: string }, totalBalance: { __typename: 'Money', amount: number, currency: string }, undiscountedTotal: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, user: { __typename: 'User', id: string, email: string } | null, shippingMethods: Array<{ __typename: 'ShippingMethod', id: string, name: string, active: boolean, message: string | null, price: { __typename: 'Money', amount: number, currency: string } }>, invoices: Array<{ __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }>, channel: { __typename: 'Channel', isActive: boolean, id: string, name: string, currencyCode: string, slug: string, defaultCountry: { __typename: 'CountryDisplay', code: string }, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum } }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; +export type OrderLineDiscountUpdateMutation = { __typename: 'Mutation', orderLineDiscountUpdate: { __typename: 'OrderLineDiscountUpdate', errors: Array<{ __typename: 'OrderError', code: OrderErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null, orderLines: Array | null }>, order: { __typename: 'Order', id: string, displayGrossPrices: boolean, isShippingRequired: boolean, canFinalize: boolean, created: any, customerNote: string, number: string, isPaid: boolean, paymentStatus: PaymentChargeStatusEnum, shippingMethodName: string | null, collectionPointName: string | null, status: OrderStatus, actions: Array, userEmail: string | null, chargeStatus: OrderChargeStatusEnum, authorizeStatus: OrderAuthorizeStatusEnum, billingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, transactions: Array<{ __typename: 'TransactionItem', pspReference: string, externalUrl: string, createdAt: any, id: string, name: string, actions: Array, events: Array<{ __typename: 'TransactionEvent', externalUrl: string, id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, createdBy: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, amount: { __typename: 'Money', amount: number, currency: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } }>, payments: Array<{ __typename: 'Payment', id: string, isActive: boolean, actions: Array, gateway: string, paymentMethodType: string, modified: any, availableCaptureAmount: { __typename: 'Money', amount: number, currency: string } | null, capturedAmount: { __typename: 'Money', amount: number, currency: string } | null, total: { __typename: 'Money', amount: number, currency: string } | null, availableRefundAmount: { __typename: 'Money', amount: number, currency: string } | null, transactions: Array<{ __typename: 'Transaction', id: string, token: string, created: any, kind: TransactionKind, isSuccess: boolean }> | null }>, giftCards: Array<{ __typename: 'GiftCard', id: string, last4CodeChars: string, events: Array<{ __typename: 'GiftCardEvent', id: string, type: GiftCardEventsEnum | null, orderId: string | null, date: any | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }> }>, grantedRefunds: Array<{ __typename: 'OrderGrantedRefund', id: string, createdAt: any, shippingCostsIncluded: boolean, status: OrderGrantedRefundStatusEnum, reason: string | null, amount: { __typename: 'Money', currency: string, amount: number }, transactionEvents: Array<{ __typename: 'TransactionEvent', id: string }> | null, reasonReference: { __typename: 'Page', id: string, title: string } | null, user: { __typename: 'User', id: string, firstName: string, lastName: string, email: string, avatar: { __typename: 'Image', url: string, alt: string | null } | null } | null, app: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderGrantedRefundLine', id: string, quantity: number, reason: string | null, orderLine: { __typename: 'OrderLine', id: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }> | null }>, discounts: Array<{ __typename: 'OrderDiscount', id: string, type: OrderDiscountType, name: string | null, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }>, events: Array<{ __typename: 'OrderEvent', id: string, amount: number | null, shippingCostsIncluded: boolean | null, date: any | null, email: string | null, emailType: OrderEventsEmailsEnum | null, invoiceNumber: string | null, message: string | null, quantity: number | null, transactionReference: string | null, type: OrderEventsEnum | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, relatedOrder: { __typename: 'Order', id: string, number: string } | null, related: { __typename: 'OrderEvent', id: string } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, app: { __typename: 'App', id: string, name: string | null, appUrl: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderEventOrderLineObject', quantity: number | null, itemName: string | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, orderLine: { __typename: 'OrderLine', id: string, productName: string, variantName: string } | null }> | null }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, created: any, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, reason: string | null, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, reason: string | null, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } | null, reasonReference: { __typename: 'Page', id: string, title: string } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null, reasonReference: { __typename: 'Page', id: string, title: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }>, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, shippingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, deliveryMethod: { __typename: 'ShippingMethod', id: string } | { __typename: 'Warehouse', id: string, clickAndCollectOption: WarehouseClickAndCollectOptionEnum } | null, shippingMethod: { __typename: 'ShippingMethod', id: string } | null, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, subtotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string }, tax: { __typename: 'Money', amount: number, currency: string } }, totalRemainingGrant: { __typename: 'Money', amount: number, currency: string }, totalGrantedRefund: { __typename: 'Money', amount: number, currency: string }, totalRefundPending: { __typename: 'Money', amount: number, currency: string }, totalRefunded: { __typename: 'Money', amount: number, currency: string }, totalAuthorizePending: { __typename: 'Money', amount: number, currency: string }, totalAuthorized: { __typename: 'Money', amount: number, currency: string }, totalCaptured: { __typename: 'Money', amount: number, currency: string }, totalCharged: { __typename: 'Money', amount: number, currency: string }, totalChargePending: { __typename: 'Money', amount: number, currency: string }, totalCanceled: { __typename: 'Money', amount: number, currency: string }, totalCancelPending: { __typename: 'Money', amount: number, currency: string }, totalBalance: { __typename: 'Money', amount: number, currency: string }, undiscountedTotal: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, user: { __typename: 'User', id: string, email: string } | null, shippingMethods: Array<{ __typename: 'ShippingMethod', id: string, name: string, active: boolean, message: string | null, price: { __typename: 'Money', amount: number, currency: string } }>, invoices: Array<{ __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }>, channel: { __typename: 'Channel', isActive: boolean, id: string, name: string, currencyCode: string, slug: string, defaultCountry: { __typename: 'CountryDisplay', code: string }, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum } }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; export type OrderDiscountUpdateMutationVariables = Exact<{ input: OrderDiscountCommonInput; @@ -10938,14 +11092,14 @@ export type OrderDiscountUpdateMutationVariables = Exact<{ }>; -export type OrderDiscountUpdateMutation = { __typename: 'Mutation', orderDiscountUpdate: { __typename: 'OrderDiscountUpdate', errors: Array<{ __typename: 'OrderError', code: OrderErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null, orderLines: Array | null }>, order: { __typename: 'Order', id: string, displayGrossPrices: boolean, isShippingRequired: boolean, canFinalize: boolean, created: any, customerNote: string, number: string, isPaid: boolean, paymentStatus: PaymentChargeStatusEnum, shippingMethodName: string | null, collectionPointName: string | null, status: OrderStatus, actions: Array, userEmail: string | null, chargeStatus: OrderChargeStatusEnum, authorizeStatus: OrderAuthorizeStatusEnum, billingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, transactions: Array<{ __typename: 'TransactionItem', pspReference: string, externalUrl: string, createdAt: any, id: string, name: string, actions: Array, events: Array<{ __typename: 'TransactionEvent', externalUrl: string, id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, createdBy: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, amount: { __typename: 'Money', amount: number, currency: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } }>, payments: Array<{ __typename: 'Payment', id: string, isActive: boolean, actions: Array, gateway: string, paymentMethodType: string, modified: any, availableCaptureAmount: { __typename: 'Money', amount: number, currency: string } | null, capturedAmount: { __typename: 'Money', amount: number, currency: string } | null, total: { __typename: 'Money', amount: number, currency: string } | null, availableRefundAmount: { __typename: 'Money', amount: number, currency: string } | null, transactions: Array<{ __typename: 'Transaction', id: string, token: string, created: any, kind: TransactionKind, isSuccess: boolean }> | null }>, giftCards: Array<{ __typename: 'GiftCard', id: string, last4CodeChars: string, events: Array<{ __typename: 'GiftCardEvent', id: string, type: GiftCardEventsEnum | null, orderId: string | null, date: any | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }> }>, grantedRefunds: Array<{ __typename: 'OrderGrantedRefund', id: string, createdAt: any, shippingCostsIncluded: boolean, status: OrderGrantedRefundStatusEnum, reason: string | null, amount: { __typename: 'Money', currency: string, amount: number }, transactionEvents: Array<{ __typename: 'TransactionEvent', id: string }> | null, reasonReference: { __typename: 'Page', id: string, title: string } | null, user: { __typename: 'User', id: string, firstName: string, lastName: string, email: string, avatar: { __typename: 'Image', url: string, alt: string | null } | null } | null, app: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderGrantedRefundLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string } }> | null }>, discounts: Array<{ __typename: 'OrderDiscount', id: string, type: OrderDiscountType, name: string | null, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }>, events: Array<{ __typename: 'OrderEvent', id: string, amount: number | null, shippingCostsIncluded: boolean | null, date: any | null, email: string | null, emailType: OrderEventsEmailsEnum | null, invoiceNumber: string | null, message: string | null, quantity: number | null, transactionReference: string | null, type: OrderEventsEnum | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, relatedOrder: { __typename: 'Order', id: string, number: string } | null, related: { __typename: 'OrderEvent', id: string } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, app: { __typename: 'App', id: string, name: string | null, appUrl: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderEventOrderLineObject', quantity: number | null, itemName: string | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, orderLine: { __typename: 'OrderLine', id: string, productName: string, variantName: string } | null }> | null }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, created: any, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }>, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, shippingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, deliveryMethod: { __typename: 'ShippingMethod', id: string } | { __typename: 'Warehouse', id: string, clickAndCollectOption: WarehouseClickAndCollectOptionEnum } | null, shippingMethod: { __typename: 'ShippingMethod', id: string } | null, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, subtotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string }, tax: { __typename: 'Money', amount: number, currency: string } }, totalRemainingGrant: { __typename: 'Money', amount: number, currency: string }, totalGrantedRefund: { __typename: 'Money', amount: number, currency: string }, totalRefundPending: { __typename: 'Money', amount: number, currency: string }, totalRefunded: { __typename: 'Money', amount: number, currency: string }, totalAuthorizePending: { __typename: 'Money', amount: number, currency: string }, totalAuthorized: { __typename: 'Money', amount: number, currency: string }, totalCaptured: { __typename: 'Money', amount: number, currency: string }, totalCharged: { __typename: 'Money', amount: number, currency: string }, totalChargePending: { __typename: 'Money', amount: number, currency: string }, totalCanceled: { __typename: 'Money', amount: number, currency: string }, totalCancelPending: { __typename: 'Money', amount: number, currency: string }, totalBalance: { __typename: 'Money', amount: number, currency: string }, undiscountedTotal: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, user: { __typename: 'User', id: string, email: string } | null, shippingMethods: Array<{ __typename: 'ShippingMethod', id: string, name: string, active: boolean, message: string | null, price: { __typename: 'Money', amount: number, currency: string } }>, invoices: Array<{ __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }>, channel: { __typename: 'Channel', isActive: boolean, id: string, name: string, currencyCode: string, slug: string, defaultCountry: { __typename: 'CountryDisplay', code: string }, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum } }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; +export type OrderDiscountUpdateMutation = { __typename: 'Mutation', orderDiscountUpdate: { __typename: 'OrderDiscountUpdate', errors: Array<{ __typename: 'OrderError', code: OrderErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null, orderLines: Array | null }>, order: { __typename: 'Order', id: string, displayGrossPrices: boolean, isShippingRequired: boolean, canFinalize: boolean, created: any, customerNote: string, number: string, isPaid: boolean, paymentStatus: PaymentChargeStatusEnum, shippingMethodName: string | null, collectionPointName: string | null, status: OrderStatus, actions: Array, userEmail: string | null, chargeStatus: OrderChargeStatusEnum, authorizeStatus: OrderAuthorizeStatusEnum, billingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, transactions: Array<{ __typename: 'TransactionItem', pspReference: string, externalUrl: string, createdAt: any, id: string, name: string, actions: Array, events: Array<{ __typename: 'TransactionEvent', externalUrl: string, id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, createdBy: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, amount: { __typename: 'Money', amount: number, currency: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } }>, payments: Array<{ __typename: 'Payment', id: string, isActive: boolean, actions: Array, gateway: string, paymentMethodType: string, modified: any, availableCaptureAmount: { __typename: 'Money', amount: number, currency: string } | null, capturedAmount: { __typename: 'Money', amount: number, currency: string } | null, total: { __typename: 'Money', amount: number, currency: string } | null, availableRefundAmount: { __typename: 'Money', amount: number, currency: string } | null, transactions: Array<{ __typename: 'Transaction', id: string, token: string, created: any, kind: TransactionKind, isSuccess: boolean }> | null }>, giftCards: Array<{ __typename: 'GiftCard', id: string, last4CodeChars: string, events: Array<{ __typename: 'GiftCardEvent', id: string, type: GiftCardEventsEnum | null, orderId: string | null, date: any | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }> }>, grantedRefunds: Array<{ __typename: 'OrderGrantedRefund', id: string, createdAt: any, shippingCostsIncluded: boolean, status: OrderGrantedRefundStatusEnum, reason: string | null, amount: { __typename: 'Money', currency: string, amount: number }, transactionEvents: Array<{ __typename: 'TransactionEvent', id: string }> | null, reasonReference: { __typename: 'Page', id: string, title: string } | null, user: { __typename: 'User', id: string, firstName: string, lastName: string, email: string, avatar: { __typename: 'Image', url: string, alt: string | null } | null } | null, app: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderGrantedRefundLine', id: string, quantity: number, reason: string | null, orderLine: { __typename: 'OrderLine', id: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }> | null }>, discounts: Array<{ __typename: 'OrderDiscount', id: string, type: OrderDiscountType, name: string | null, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }>, events: Array<{ __typename: 'OrderEvent', id: string, amount: number | null, shippingCostsIncluded: boolean | null, date: any | null, email: string | null, emailType: OrderEventsEmailsEnum | null, invoiceNumber: string | null, message: string | null, quantity: number | null, transactionReference: string | null, type: OrderEventsEnum | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, relatedOrder: { __typename: 'Order', id: string, number: string } | null, related: { __typename: 'OrderEvent', id: string } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, app: { __typename: 'App', id: string, name: string | null, appUrl: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderEventOrderLineObject', quantity: number | null, itemName: string | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, orderLine: { __typename: 'OrderLine', id: string, productName: string, variantName: string } | null }> | null }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, created: any, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, reason: string | null, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, reason: string | null, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } | null, reasonReference: { __typename: 'Page', id: string, title: string } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null, reasonReference: { __typename: 'Page', id: string, title: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }>, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, shippingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, deliveryMethod: { __typename: 'ShippingMethod', id: string } | { __typename: 'Warehouse', id: string, clickAndCollectOption: WarehouseClickAndCollectOptionEnum } | null, shippingMethod: { __typename: 'ShippingMethod', id: string } | null, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, subtotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string }, tax: { __typename: 'Money', amount: number, currency: string } }, totalRemainingGrant: { __typename: 'Money', amount: number, currency: string }, totalGrantedRefund: { __typename: 'Money', amount: number, currency: string }, totalRefundPending: { __typename: 'Money', amount: number, currency: string }, totalRefunded: { __typename: 'Money', amount: number, currency: string }, totalAuthorizePending: { __typename: 'Money', amount: number, currency: string }, totalAuthorized: { __typename: 'Money', amount: number, currency: string }, totalCaptured: { __typename: 'Money', amount: number, currency: string }, totalCharged: { __typename: 'Money', amount: number, currency: string }, totalChargePending: { __typename: 'Money', amount: number, currency: string }, totalCanceled: { __typename: 'Money', amount: number, currency: string }, totalCancelPending: { __typename: 'Money', amount: number, currency: string }, totalBalance: { __typename: 'Money', amount: number, currency: string }, undiscountedTotal: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, user: { __typename: 'User', id: string, email: string } | null, shippingMethods: Array<{ __typename: 'ShippingMethod', id: string, name: string, active: boolean, message: string | null, price: { __typename: 'Money', amount: number, currency: string } }>, invoices: Array<{ __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }>, channel: { __typename: 'Channel', isActive: boolean, id: string, name: string, currencyCode: string, slug: string, defaultCountry: { __typename: 'CountryDisplay', code: string }, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum } }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; export type OrderDraftCancelMutationVariables = Exact<{ id: Scalars['ID']; }>; -export type OrderDraftCancelMutation = { __typename: 'Mutation', draftOrderDelete: { __typename: 'DraftOrderDelete', errors: Array<{ __typename: 'OrderError', code: OrderErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null, orderLines: Array | null }>, order: { __typename: 'Order', id: string, displayGrossPrices: boolean, isShippingRequired: boolean, canFinalize: boolean, created: any, customerNote: string, number: string, isPaid: boolean, paymentStatus: PaymentChargeStatusEnum, shippingMethodName: string | null, collectionPointName: string | null, status: OrderStatus, actions: Array, userEmail: string | null, chargeStatus: OrderChargeStatusEnum, authorizeStatus: OrderAuthorizeStatusEnum, billingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, transactions: Array<{ __typename: 'TransactionItem', pspReference: string, externalUrl: string, createdAt: any, id: string, name: string, actions: Array, events: Array<{ __typename: 'TransactionEvent', externalUrl: string, id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, createdBy: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, amount: { __typename: 'Money', amount: number, currency: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } }>, payments: Array<{ __typename: 'Payment', id: string, isActive: boolean, actions: Array, gateway: string, paymentMethodType: string, modified: any, availableCaptureAmount: { __typename: 'Money', amount: number, currency: string } | null, capturedAmount: { __typename: 'Money', amount: number, currency: string } | null, total: { __typename: 'Money', amount: number, currency: string } | null, availableRefundAmount: { __typename: 'Money', amount: number, currency: string } | null, transactions: Array<{ __typename: 'Transaction', id: string, token: string, created: any, kind: TransactionKind, isSuccess: boolean }> | null }>, giftCards: Array<{ __typename: 'GiftCard', id: string, last4CodeChars: string, events: Array<{ __typename: 'GiftCardEvent', id: string, type: GiftCardEventsEnum | null, orderId: string | null, date: any | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }> }>, grantedRefunds: Array<{ __typename: 'OrderGrantedRefund', id: string, createdAt: any, shippingCostsIncluded: boolean, status: OrderGrantedRefundStatusEnum, reason: string | null, amount: { __typename: 'Money', currency: string, amount: number }, transactionEvents: Array<{ __typename: 'TransactionEvent', id: string }> | null, reasonReference: { __typename: 'Page', id: string, title: string } | null, user: { __typename: 'User', id: string, firstName: string, lastName: string, email: string, avatar: { __typename: 'Image', url: string, alt: string | null } | null } | null, app: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderGrantedRefundLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string } }> | null }>, discounts: Array<{ __typename: 'OrderDiscount', id: string, type: OrderDiscountType, name: string | null, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }>, events: Array<{ __typename: 'OrderEvent', id: string, amount: number | null, shippingCostsIncluded: boolean | null, date: any | null, email: string | null, emailType: OrderEventsEmailsEnum | null, invoiceNumber: string | null, message: string | null, quantity: number | null, transactionReference: string | null, type: OrderEventsEnum | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, relatedOrder: { __typename: 'Order', id: string, number: string } | null, related: { __typename: 'OrderEvent', id: string } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, app: { __typename: 'App', id: string, name: string | null, appUrl: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderEventOrderLineObject', quantity: number | null, itemName: string | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, orderLine: { __typename: 'OrderLine', id: string, productName: string, variantName: string } | null }> | null }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, created: any, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }>, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, shippingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, deliveryMethod: { __typename: 'ShippingMethod', id: string } | { __typename: 'Warehouse', id: string, clickAndCollectOption: WarehouseClickAndCollectOptionEnum } | null, shippingMethod: { __typename: 'ShippingMethod', id: string } | null, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, subtotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string }, tax: { __typename: 'Money', amount: number, currency: string } }, totalRemainingGrant: { __typename: 'Money', amount: number, currency: string }, totalGrantedRefund: { __typename: 'Money', amount: number, currency: string }, totalRefundPending: { __typename: 'Money', amount: number, currency: string }, totalRefunded: { __typename: 'Money', amount: number, currency: string }, totalAuthorizePending: { __typename: 'Money', amount: number, currency: string }, totalAuthorized: { __typename: 'Money', amount: number, currency: string }, totalCaptured: { __typename: 'Money', amount: number, currency: string }, totalCharged: { __typename: 'Money', amount: number, currency: string }, totalChargePending: { __typename: 'Money', amount: number, currency: string }, totalCanceled: { __typename: 'Money', amount: number, currency: string }, totalCancelPending: { __typename: 'Money', amount: number, currency: string }, totalBalance: { __typename: 'Money', amount: number, currency: string }, undiscountedTotal: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, user: { __typename: 'User', id: string, email: string } | null, shippingMethods: Array<{ __typename: 'ShippingMethod', id: string, name: string, active: boolean, message: string | null, price: { __typename: 'Money', amount: number, currency: string } }>, invoices: Array<{ __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }>, channel: { __typename: 'Channel', isActive: boolean, id: string, name: string, currencyCode: string, slug: string, defaultCountry: { __typename: 'CountryDisplay', code: string }, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum } }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; +export type OrderDraftCancelMutation = { __typename: 'Mutation', draftOrderDelete: { __typename: 'DraftOrderDelete', errors: Array<{ __typename: 'OrderError', code: OrderErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null, orderLines: Array | null }>, order: { __typename: 'Order', id: string, displayGrossPrices: boolean, isShippingRequired: boolean, canFinalize: boolean, created: any, customerNote: string, number: string, isPaid: boolean, paymentStatus: PaymentChargeStatusEnum, shippingMethodName: string | null, collectionPointName: string | null, status: OrderStatus, actions: Array, userEmail: string | null, chargeStatus: OrderChargeStatusEnum, authorizeStatus: OrderAuthorizeStatusEnum, billingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, transactions: Array<{ __typename: 'TransactionItem', pspReference: string, externalUrl: string, createdAt: any, id: string, name: string, actions: Array, events: Array<{ __typename: 'TransactionEvent', externalUrl: string, id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, createdBy: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, amount: { __typename: 'Money', amount: number, currency: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } }>, payments: Array<{ __typename: 'Payment', id: string, isActive: boolean, actions: Array, gateway: string, paymentMethodType: string, modified: any, availableCaptureAmount: { __typename: 'Money', amount: number, currency: string } | null, capturedAmount: { __typename: 'Money', amount: number, currency: string } | null, total: { __typename: 'Money', amount: number, currency: string } | null, availableRefundAmount: { __typename: 'Money', amount: number, currency: string } | null, transactions: Array<{ __typename: 'Transaction', id: string, token: string, created: any, kind: TransactionKind, isSuccess: boolean }> | null }>, giftCards: Array<{ __typename: 'GiftCard', id: string, last4CodeChars: string, events: Array<{ __typename: 'GiftCardEvent', id: string, type: GiftCardEventsEnum | null, orderId: string | null, date: any | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }> }>, grantedRefunds: Array<{ __typename: 'OrderGrantedRefund', id: string, createdAt: any, shippingCostsIncluded: boolean, status: OrderGrantedRefundStatusEnum, reason: string | null, amount: { __typename: 'Money', currency: string, amount: number }, transactionEvents: Array<{ __typename: 'TransactionEvent', id: string }> | null, reasonReference: { __typename: 'Page', id: string, title: string } | null, user: { __typename: 'User', id: string, firstName: string, lastName: string, email: string, avatar: { __typename: 'Image', url: string, alt: string | null } | null } | null, app: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderGrantedRefundLine', id: string, quantity: number, reason: string | null, orderLine: { __typename: 'OrderLine', id: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }> | null }>, discounts: Array<{ __typename: 'OrderDiscount', id: string, type: OrderDiscountType, name: string | null, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }>, events: Array<{ __typename: 'OrderEvent', id: string, amount: number | null, shippingCostsIncluded: boolean | null, date: any | null, email: string | null, emailType: OrderEventsEmailsEnum | null, invoiceNumber: string | null, message: string | null, quantity: number | null, transactionReference: string | null, type: OrderEventsEnum | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, relatedOrder: { __typename: 'Order', id: string, number: string } | null, related: { __typename: 'OrderEvent', id: string } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, app: { __typename: 'App', id: string, name: string | null, appUrl: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderEventOrderLineObject', quantity: number | null, itemName: string | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, orderLine: { __typename: 'OrderLine', id: string, productName: string, variantName: string } | null }> | null }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, created: any, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, reason: string | null, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, reason: string | null, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } | null, reasonReference: { __typename: 'Page', id: string, title: string } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null, reasonReference: { __typename: 'Page', id: string, title: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }>, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, shippingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, deliveryMethod: { __typename: 'ShippingMethod', id: string } | { __typename: 'Warehouse', id: string, clickAndCollectOption: WarehouseClickAndCollectOptionEnum } | null, shippingMethod: { __typename: 'ShippingMethod', id: string } | null, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, subtotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string }, tax: { __typename: 'Money', amount: number, currency: string } }, totalRemainingGrant: { __typename: 'Money', amount: number, currency: string }, totalGrantedRefund: { __typename: 'Money', amount: number, currency: string }, totalRefundPending: { __typename: 'Money', amount: number, currency: string }, totalRefunded: { __typename: 'Money', amount: number, currency: string }, totalAuthorizePending: { __typename: 'Money', amount: number, currency: string }, totalAuthorized: { __typename: 'Money', amount: number, currency: string }, totalCaptured: { __typename: 'Money', amount: number, currency: string }, totalCharged: { __typename: 'Money', amount: number, currency: string }, totalChargePending: { __typename: 'Money', amount: number, currency: string }, totalCanceled: { __typename: 'Money', amount: number, currency: string }, totalCancelPending: { __typename: 'Money', amount: number, currency: string }, totalBalance: { __typename: 'Money', amount: number, currency: string }, undiscountedTotal: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, user: { __typename: 'User', id: string, email: string } | null, shippingMethods: Array<{ __typename: 'ShippingMethod', id: string, name: string, active: boolean, message: string | null, price: { __typename: 'Money', amount: number, currency: string } }>, invoices: Array<{ __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }>, channel: { __typename: 'Channel', isActive: boolean, id: string, name: string, currencyCode: string, slug: string, defaultCountry: { __typename: 'CountryDisplay', code: string }, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum } }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; export type OrderDraftBulkCancelMutationVariables = Exact<{ ids: Array | Scalars['ID']; @@ -10959,14 +11113,14 @@ export type OrderConfirmMutationVariables = Exact<{ }>; -export type OrderConfirmMutation = { __typename: 'Mutation', orderConfirm: { __typename: 'OrderConfirm', errors: Array<{ __typename: 'OrderError', code: OrderErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null, orderLines: Array | null }>, order: { __typename: 'Order', id: string, displayGrossPrices: boolean, isShippingRequired: boolean, canFinalize: boolean, created: any, customerNote: string, number: string, isPaid: boolean, paymentStatus: PaymentChargeStatusEnum, shippingMethodName: string | null, collectionPointName: string | null, status: OrderStatus, actions: Array, userEmail: string | null, chargeStatus: OrderChargeStatusEnum, authorizeStatus: OrderAuthorizeStatusEnum, billingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, transactions: Array<{ __typename: 'TransactionItem', pspReference: string, externalUrl: string, createdAt: any, id: string, name: string, actions: Array, events: Array<{ __typename: 'TransactionEvent', externalUrl: string, id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, createdBy: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, amount: { __typename: 'Money', amount: number, currency: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } }>, payments: Array<{ __typename: 'Payment', id: string, isActive: boolean, actions: Array, gateway: string, paymentMethodType: string, modified: any, availableCaptureAmount: { __typename: 'Money', amount: number, currency: string } | null, capturedAmount: { __typename: 'Money', amount: number, currency: string } | null, total: { __typename: 'Money', amount: number, currency: string } | null, availableRefundAmount: { __typename: 'Money', amount: number, currency: string } | null, transactions: Array<{ __typename: 'Transaction', id: string, token: string, created: any, kind: TransactionKind, isSuccess: boolean }> | null }>, giftCards: Array<{ __typename: 'GiftCard', id: string, last4CodeChars: string, events: Array<{ __typename: 'GiftCardEvent', id: string, type: GiftCardEventsEnum | null, orderId: string | null, date: any | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }> }>, grantedRefunds: Array<{ __typename: 'OrderGrantedRefund', id: string, createdAt: any, shippingCostsIncluded: boolean, status: OrderGrantedRefundStatusEnum, reason: string | null, amount: { __typename: 'Money', currency: string, amount: number }, transactionEvents: Array<{ __typename: 'TransactionEvent', id: string }> | null, reasonReference: { __typename: 'Page', id: string, title: string } | null, user: { __typename: 'User', id: string, firstName: string, lastName: string, email: string, avatar: { __typename: 'Image', url: string, alt: string | null } | null } | null, app: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderGrantedRefundLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string } }> | null }>, discounts: Array<{ __typename: 'OrderDiscount', id: string, type: OrderDiscountType, name: string | null, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }>, events: Array<{ __typename: 'OrderEvent', id: string, amount: number | null, shippingCostsIncluded: boolean | null, date: any | null, email: string | null, emailType: OrderEventsEmailsEnum | null, invoiceNumber: string | null, message: string | null, quantity: number | null, transactionReference: string | null, type: OrderEventsEnum | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, relatedOrder: { __typename: 'Order', id: string, number: string } | null, related: { __typename: 'OrderEvent', id: string } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, app: { __typename: 'App', id: string, name: string | null, appUrl: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderEventOrderLineObject', quantity: number | null, itemName: string | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, orderLine: { __typename: 'OrderLine', id: string, productName: string, variantName: string } | null }> | null }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, created: any, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }>, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, shippingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, deliveryMethod: { __typename: 'ShippingMethod', id: string } | { __typename: 'Warehouse', id: string, clickAndCollectOption: WarehouseClickAndCollectOptionEnum } | null, shippingMethod: { __typename: 'ShippingMethod', id: string } | null, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, subtotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string }, tax: { __typename: 'Money', amount: number, currency: string } }, totalRemainingGrant: { __typename: 'Money', amount: number, currency: string }, totalGrantedRefund: { __typename: 'Money', amount: number, currency: string }, totalRefundPending: { __typename: 'Money', amount: number, currency: string }, totalRefunded: { __typename: 'Money', amount: number, currency: string }, totalAuthorizePending: { __typename: 'Money', amount: number, currency: string }, totalAuthorized: { __typename: 'Money', amount: number, currency: string }, totalCaptured: { __typename: 'Money', amount: number, currency: string }, totalCharged: { __typename: 'Money', amount: number, currency: string }, totalChargePending: { __typename: 'Money', amount: number, currency: string }, totalCanceled: { __typename: 'Money', amount: number, currency: string }, totalCancelPending: { __typename: 'Money', amount: number, currency: string }, totalBalance: { __typename: 'Money', amount: number, currency: string }, undiscountedTotal: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, user: { __typename: 'User', id: string, email: string } | null, shippingMethods: Array<{ __typename: 'ShippingMethod', id: string, name: string, active: boolean, message: string | null, price: { __typename: 'Money', amount: number, currency: string } }>, invoices: Array<{ __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }>, channel: { __typename: 'Channel', isActive: boolean, id: string, name: string, currencyCode: string, slug: string, defaultCountry: { __typename: 'CountryDisplay', code: string }, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum } }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; +export type OrderConfirmMutation = { __typename: 'Mutation', orderConfirm: { __typename: 'OrderConfirm', errors: Array<{ __typename: 'OrderError', code: OrderErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null, orderLines: Array | null }>, order: { __typename: 'Order', id: string, displayGrossPrices: boolean, isShippingRequired: boolean, canFinalize: boolean, created: any, customerNote: string, number: string, isPaid: boolean, paymentStatus: PaymentChargeStatusEnum, shippingMethodName: string | null, collectionPointName: string | null, status: OrderStatus, actions: Array, userEmail: string | null, chargeStatus: OrderChargeStatusEnum, authorizeStatus: OrderAuthorizeStatusEnum, billingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, transactions: Array<{ __typename: 'TransactionItem', pspReference: string, externalUrl: string, createdAt: any, id: string, name: string, actions: Array, events: Array<{ __typename: 'TransactionEvent', externalUrl: string, id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, createdBy: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, amount: { __typename: 'Money', amount: number, currency: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } }>, payments: Array<{ __typename: 'Payment', id: string, isActive: boolean, actions: Array, gateway: string, paymentMethodType: string, modified: any, availableCaptureAmount: { __typename: 'Money', amount: number, currency: string } | null, capturedAmount: { __typename: 'Money', amount: number, currency: string } | null, total: { __typename: 'Money', amount: number, currency: string } | null, availableRefundAmount: { __typename: 'Money', amount: number, currency: string } | null, transactions: Array<{ __typename: 'Transaction', id: string, token: string, created: any, kind: TransactionKind, isSuccess: boolean }> | null }>, giftCards: Array<{ __typename: 'GiftCard', id: string, last4CodeChars: string, events: Array<{ __typename: 'GiftCardEvent', id: string, type: GiftCardEventsEnum | null, orderId: string | null, date: any | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }> }>, grantedRefunds: Array<{ __typename: 'OrderGrantedRefund', id: string, createdAt: any, shippingCostsIncluded: boolean, status: OrderGrantedRefundStatusEnum, reason: string | null, amount: { __typename: 'Money', currency: string, amount: number }, transactionEvents: Array<{ __typename: 'TransactionEvent', id: string }> | null, reasonReference: { __typename: 'Page', id: string, title: string } | null, user: { __typename: 'User', id: string, firstName: string, lastName: string, email: string, avatar: { __typename: 'Image', url: string, alt: string | null } | null } | null, app: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderGrantedRefundLine', id: string, quantity: number, reason: string | null, orderLine: { __typename: 'OrderLine', id: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }> | null }>, discounts: Array<{ __typename: 'OrderDiscount', id: string, type: OrderDiscountType, name: string | null, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }>, events: Array<{ __typename: 'OrderEvent', id: string, amount: number | null, shippingCostsIncluded: boolean | null, date: any | null, email: string | null, emailType: OrderEventsEmailsEnum | null, invoiceNumber: string | null, message: string | null, quantity: number | null, transactionReference: string | null, type: OrderEventsEnum | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, relatedOrder: { __typename: 'Order', id: string, number: string } | null, related: { __typename: 'OrderEvent', id: string } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, app: { __typename: 'App', id: string, name: string | null, appUrl: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderEventOrderLineObject', quantity: number | null, itemName: string | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, orderLine: { __typename: 'OrderLine', id: string, productName: string, variantName: string } | null }> | null }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, created: any, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, reason: string | null, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, reason: string | null, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } | null, reasonReference: { __typename: 'Page', id: string, title: string } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null, reasonReference: { __typename: 'Page', id: string, title: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }>, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, shippingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, deliveryMethod: { __typename: 'ShippingMethod', id: string } | { __typename: 'Warehouse', id: string, clickAndCollectOption: WarehouseClickAndCollectOptionEnum } | null, shippingMethod: { __typename: 'ShippingMethod', id: string } | null, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, subtotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string }, tax: { __typename: 'Money', amount: number, currency: string } }, totalRemainingGrant: { __typename: 'Money', amount: number, currency: string }, totalGrantedRefund: { __typename: 'Money', amount: number, currency: string }, totalRefundPending: { __typename: 'Money', amount: number, currency: string }, totalRefunded: { __typename: 'Money', amount: number, currency: string }, totalAuthorizePending: { __typename: 'Money', amount: number, currency: string }, totalAuthorized: { __typename: 'Money', amount: number, currency: string }, totalCaptured: { __typename: 'Money', amount: number, currency: string }, totalCharged: { __typename: 'Money', amount: number, currency: string }, totalChargePending: { __typename: 'Money', amount: number, currency: string }, totalCanceled: { __typename: 'Money', amount: number, currency: string }, totalCancelPending: { __typename: 'Money', amount: number, currency: string }, totalBalance: { __typename: 'Money', amount: number, currency: string }, undiscountedTotal: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, user: { __typename: 'User', id: string, email: string } | null, shippingMethods: Array<{ __typename: 'ShippingMethod', id: string, name: string, active: boolean, message: string | null, price: { __typename: 'Money', amount: number, currency: string } }>, invoices: Array<{ __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }>, channel: { __typename: 'Channel', isActive: boolean, id: string, name: string, currencyCode: string, slug: string, defaultCountry: { __typename: 'CountryDisplay', code: string }, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum } }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; export type OrderDraftFinalizeMutationVariables = Exact<{ id: Scalars['ID']; }>; -export type OrderDraftFinalizeMutation = { __typename: 'Mutation', draftOrderComplete: { __typename: 'DraftOrderComplete', errors: Array<{ __typename: 'OrderError', code: OrderErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null, orderLines: Array | null }>, order: { __typename: 'Order', id: string, displayGrossPrices: boolean, isShippingRequired: boolean, canFinalize: boolean, created: any, customerNote: string, number: string, isPaid: boolean, paymentStatus: PaymentChargeStatusEnum, shippingMethodName: string | null, collectionPointName: string | null, status: OrderStatus, actions: Array, userEmail: string | null, chargeStatus: OrderChargeStatusEnum, authorizeStatus: OrderAuthorizeStatusEnum, billingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, transactions: Array<{ __typename: 'TransactionItem', pspReference: string, externalUrl: string, createdAt: any, id: string, name: string, actions: Array, events: Array<{ __typename: 'TransactionEvent', externalUrl: string, id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, createdBy: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, amount: { __typename: 'Money', amount: number, currency: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } }>, payments: Array<{ __typename: 'Payment', id: string, isActive: boolean, actions: Array, gateway: string, paymentMethodType: string, modified: any, availableCaptureAmount: { __typename: 'Money', amount: number, currency: string } | null, capturedAmount: { __typename: 'Money', amount: number, currency: string } | null, total: { __typename: 'Money', amount: number, currency: string } | null, availableRefundAmount: { __typename: 'Money', amount: number, currency: string } | null, transactions: Array<{ __typename: 'Transaction', id: string, token: string, created: any, kind: TransactionKind, isSuccess: boolean }> | null }>, giftCards: Array<{ __typename: 'GiftCard', id: string, last4CodeChars: string, events: Array<{ __typename: 'GiftCardEvent', id: string, type: GiftCardEventsEnum | null, orderId: string | null, date: any | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }> }>, grantedRefunds: Array<{ __typename: 'OrderGrantedRefund', id: string, createdAt: any, shippingCostsIncluded: boolean, status: OrderGrantedRefundStatusEnum, reason: string | null, amount: { __typename: 'Money', currency: string, amount: number }, transactionEvents: Array<{ __typename: 'TransactionEvent', id: string }> | null, reasonReference: { __typename: 'Page', id: string, title: string } | null, user: { __typename: 'User', id: string, firstName: string, lastName: string, email: string, avatar: { __typename: 'Image', url: string, alt: string | null } | null } | null, app: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderGrantedRefundLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string } }> | null }>, discounts: Array<{ __typename: 'OrderDiscount', id: string, type: OrderDiscountType, name: string | null, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }>, events: Array<{ __typename: 'OrderEvent', id: string, amount: number | null, shippingCostsIncluded: boolean | null, date: any | null, email: string | null, emailType: OrderEventsEmailsEnum | null, invoiceNumber: string | null, message: string | null, quantity: number | null, transactionReference: string | null, type: OrderEventsEnum | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, relatedOrder: { __typename: 'Order', id: string, number: string } | null, related: { __typename: 'OrderEvent', id: string } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, app: { __typename: 'App', id: string, name: string | null, appUrl: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderEventOrderLineObject', quantity: number | null, itemName: string | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, orderLine: { __typename: 'OrderLine', id: string, productName: string, variantName: string } | null }> | null }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, created: any, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }>, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, shippingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, deliveryMethod: { __typename: 'ShippingMethod', id: string } | { __typename: 'Warehouse', id: string, clickAndCollectOption: WarehouseClickAndCollectOptionEnum } | null, shippingMethod: { __typename: 'ShippingMethod', id: string } | null, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, subtotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string }, tax: { __typename: 'Money', amount: number, currency: string } }, totalRemainingGrant: { __typename: 'Money', amount: number, currency: string }, totalGrantedRefund: { __typename: 'Money', amount: number, currency: string }, totalRefundPending: { __typename: 'Money', amount: number, currency: string }, totalRefunded: { __typename: 'Money', amount: number, currency: string }, totalAuthorizePending: { __typename: 'Money', amount: number, currency: string }, totalAuthorized: { __typename: 'Money', amount: number, currency: string }, totalCaptured: { __typename: 'Money', amount: number, currency: string }, totalCharged: { __typename: 'Money', amount: number, currency: string }, totalChargePending: { __typename: 'Money', amount: number, currency: string }, totalCanceled: { __typename: 'Money', amount: number, currency: string }, totalCancelPending: { __typename: 'Money', amount: number, currency: string }, totalBalance: { __typename: 'Money', amount: number, currency: string }, undiscountedTotal: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, user: { __typename: 'User', id: string, email: string } | null, shippingMethods: Array<{ __typename: 'ShippingMethod', id: string, name: string, active: boolean, message: string | null, price: { __typename: 'Money', amount: number, currency: string } }>, invoices: Array<{ __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }>, channel: { __typename: 'Channel', isActive: boolean, id: string, name: string, currencyCode: string, slug: string, defaultCountry: { __typename: 'CountryDisplay', code: string }, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum } }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; +export type OrderDraftFinalizeMutation = { __typename: 'Mutation', draftOrderComplete: { __typename: 'DraftOrderComplete', errors: Array<{ __typename: 'OrderError', code: OrderErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null, orderLines: Array | null }>, order: { __typename: 'Order', id: string, displayGrossPrices: boolean, isShippingRequired: boolean, canFinalize: boolean, created: any, customerNote: string, number: string, isPaid: boolean, paymentStatus: PaymentChargeStatusEnum, shippingMethodName: string | null, collectionPointName: string | null, status: OrderStatus, actions: Array, userEmail: string | null, chargeStatus: OrderChargeStatusEnum, authorizeStatus: OrderAuthorizeStatusEnum, billingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, transactions: Array<{ __typename: 'TransactionItem', pspReference: string, externalUrl: string, createdAt: any, id: string, name: string, actions: Array, events: Array<{ __typename: 'TransactionEvent', externalUrl: string, id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, createdBy: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, amount: { __typename: 'Money', amount: number, currency: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } }>, payments: Array<{ __typename: 'Payment', id: string, isActive: boolean, actions: Array, gateway: string, paymentMethodType: string, modified: any, availableCaptureAmount: { __typename: 'Money', amount: number, currency: string } | null, capturedAmount: { __typename: 'Money', amount: number, currency: string } | null, total: { __typename: 'Money', amount: number, currency: string } | null, availableRefundAmount: { __typename: 'Money', amount: number, currency: string } | null, transactions: Array<{ __typename: 'Transaction', id: string, token: string, created: any, kind: TransactionKind, isSuccess: boolean }> | null }>, giftCards: Array<{ __typename: 'GiftCard', id: string, last4CodeChars: string, events: Array<{ __typename: 'GiftCardEvent', id: string, type: GiftCardEventsEnum | null, orderId: string | null, date: any | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }> }>, grantedRefunds: Array<{ __typename: 'OrderGrantedRefund', id: string, createdAt: any, shippingCostsIncluded: boolean, status: OrderGrantedRefundStatusEnum, reason: string | null, amount: { __typename: 'Money', currency: string, amount: number }, transactionEvents: Array<{ __typename: 'TransactionEvent', id: string }> | null, reasonReference: { __typename: 'Page', id: string, title: string } | null, user: { __typename: 'User', id: string, firstName: string, lastName: string, email: string, avatar: { __typename: 'Image', url: string, alt: string | null } | null } | null, app: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderGrantedRefundLine', id: string, quantity: number, reason: string | null, orderLine: { __typename: 'OrderLine', id: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }> | null }>, discounts: Array<{ __typename: 'OrderDiscount', id: string, type: OrderDiscountType, name: string | null, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }>, events: Array<{ __typename: 'OrderEvent', id: string, amount: number | null, shippingCostsIncluded: boolean | null, date: any | null, email: string | null, emailType: OrderEventsEmailsEnum | null, invoiceNumber: string | null, message: string | null, quantity: number | null, transactionReference: string | null, type: OrderEventsEnum | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, relatedOrder: { __typename: 'Order', id: string, number: string } | null, related: { __typename: 'OrderEvent', id: string } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, app: { __typename: 'App', id: string, name: string | null, appUrl: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderEventOrderLineObject', quantity: number | null, itemName: string | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, orderLine: { __typename: 'OrderLine', id: string, productName: string, variantName: string } | null }> | null }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, created: any, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, reason: string | null, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, reason: string | null, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } | null, reasonReference: { __typename: 'Page', id: string, title: string } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null, reasonReference: { __typename: 'Page', id: string, title: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }>, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, shippingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, deliveryMethod: { __typename: 'ShippingMethod', id: string } | { __typename: 'Warehouse', id: string, clickAndCollectOption: WarehouseClickAndCollectOptionEnum } | null, shippingMethod: { __typename: 'ShippingMethod', id: string } | null, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, subtotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string }, tax: { __typename: 'Money', amount: number, currency: string } }, totalRemainingGrant: { __typename: 'Money', amount: number, currency: string }, totalGrantedRefund: { __typename: 'Money', amount: number, currency: string }, totalRefundPending: { __typename: 'Money', amount: number, currency: string }, totalRefunded: { __typename: 'Money', amount: number, currency: string }, totalAuthorizePending: { __typename: 'Money', amount: number, currency: string }, totalAuthorized: { __typename: 'Money', amount: number, currency: string }, totalCaptured: { __typename: 'Money', amount: number, currency: string }, totalCharged: { __typename: 'Money', amount: number, currency: string }, totalChargePending: { __typename: 'Money', amount: number, currency: string }, totalCanceled: { __typename: 'Money', amount: number, currency: string }, totalCancelPending: { __typename: 'Money', amount: number, currency: string }, totalBalance: { __typename: 'Money', amount: number, currency: string }, undiscountedTotal: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, user: { __typename: 'User', id: string, email: string } | null, shippingMethods: Array<{ __typename: 'ShippingMethod', id: string, name: string, active: boolean, message: string | null, price: { __typename: 'Money', amount: number, currency: string } }>, invoices: Array<{ __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }>, channel: { __typename: 'Channel', isActive: boolean, id: string, name: string, currencyCode: string, slug: string, defaultCountry: { __typename: 'CountryDisplay', code: string }, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum } }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; export type FulfillmentReturnProductsMutationVariables = Exact<{ id: Scalars['ID']; @@ -10974,7 +11128,7 @@ export type FulfillmentReturnProductsMutationVariables = Exact<{ }>; -export type FulfillmentReturnProductsMutation = { __typename: 'Mutation', orderFulfillmentReturnProducts: { __typename: 'FulfillmentReturnProducts', errors: Array<{ __typename: 'OrderError', code: OrderErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null, orderLines: Array | null }>, order: { __typename: 'Order', id: string, displayGrossPrices: boolean, isShippingRequired: boolean, canFinalize: boolean, created: any, customerNote: string, number: string, isPaid: boolean, paymentStatus: PaymentChargeStatusEnum, shippingMethodName: string | null, collectionPointName: string | null, status: OrderStatus, actions: Array, userEmail: string | null, chargeStatus: OrderChargeStatusEnum, authorizeStatus: OrderAuthorizeStatusEnum, billingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, transactions: Array<{ __typename: 'TransactionItem', pspReference: string, externalUrl: string, createdAt: any, id: string, name: string, actions: Array, events: Array<{ __typename: 'TransactionEvent', externalUrl: string, id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, createdBy: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, amount: { __typename: 'Money', amount: number, currency: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } }>, payments: Array<{ __typename: 'Payment', id: string, isActive: boolean, actions: Array, gateway: string, paymentMethodType: string, modified: any, availableCaptureAmount: { __typename: 'Money', amount: number, currency: string } | null, capturedAmount: { __typename: 'Money', amount: number, currency: string } | null, total: { __typename: 'Money', amount: number, currency: string } | null, availableRefundAmount: { __typename: 'Money', amount: number, currency: string } | null, transactions: Array<{ __typename: 'Transaction', id: string, token: string, created: any, kind: TransactionKind, isSuccess: boolean }> | null }>, giftCards: Array<{ __typename: 'GiftCard', id: string, last4CodeChars: string, events: Array<{ __typename: 'GiftCardEvent', id: string, type: GiftCardEventsEnum | null, orderId: string | null, date: any | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }> }>, grantedRefunds: Array<{ __typename: 'OrderGrantedRefund', id: string, createdAt: any, shippingCostsIncluded: boolean, status: OrderGrantedRefundStatusEnum, reason: string | null, amount: { __typename: 'Money', currency: string, amount: number }, transactionEvents: Array<{ __typename: 'TransactionEvent', id: string }> | null, reasonReference: { __typename: 'Page', id: string, title: string } | null, user: { __typename: 'User', id: string, firstName: string, lastName: string, email: string, avatar: { __typename: 'Image', url: string, alt: string | null } | null } | null, app: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderGrantedRefundLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string } }> | null }>, discounts: Array<{ __typename: 'OrderDiscount', id: string, type: OrderDiscountType, name: string | null, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }>, events: Array<{ __typename: 'OrderEvent', id: string, amount: number | null, shippingCostsIncluded: boolean | null, date: any | null, email: string | null, emailType: OrderEventsEmailsEnum | null, invoiceNumber: string | null, message: string | null, quantity: number | null, transactionReference: string | null, type: OrderEventsEnum | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, relatedOrder: { __typename: 'Order', id: string, number: string } | null, related: { __typename: 'OrderEvent', id: string } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, app: { __typename: 'App', id: string, name: string | null, appUrl: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderEventOrderLineObject', quantity: number | null, itemName: string | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, orderLine: { __typename: 'OrderLine', id: string, productName: string, variantName: string } | null }> | null }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, created: any, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }>, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, shippingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, deliveryMethod: { __typename: 'ShippingMethod', id: string } | { __typename: 'Warehouse', id: string, clickAndCollectOption: WarehouseClickAndCollectOptionEnum } | null, shippingMethod: { __typename: 'ShippingMethod', id: string } | null, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, subtotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string }, tax: { __typename: 'Money', amount: number, currency: string } }, totalRemainingGrant: { __typename: 'Money', amount: number, currency: string }, totalGrantedRefund: { __typename: 'Money', amount: number, currency: string }, totalRefundPending: { __typename: 'Money', amount: number, currency: string }, totalRefunded: { __typename: 'Money', amount: number, currency: string }, totalAuthorizePending: { __typename: 'Money', amount: number, currency: string }, totalAuthorized: { __typename: 'Money', amount: number, currency: string }, totalCaptured: { __typename: 'Money', amount: number, currency: string }, totalCharged: { __typename: 'Money', amount: number, currency: string }, totalChargePending: { __typename: 'Money', amount: number, currency: string }, totalCanceled: { __typename: 'Money', amount: number, currency: string }, totalCancelPending: { __typename: 'Money', amount: number, currency: string }, totalBalance: { __typename: 'Money', amount: number, currency: string }, undiscountedTotal: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, user: { __typename: 'User', id: string, email: string } | null, shippingMethods: Array<{ __typename: 'ShippingMethod', id: string, name: string, active: boolean, message: string | null, price: { __typename: 'Money', amount: number, currency: string } }>, invoices: Array<{ __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }>, channel: { __typename: 'Channel', isActive: boolean, id: string, name: string, currencyCode: string, slug: string, defaultCountry: { __typename: 'CountryDisplay', code: string }, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum } }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null, replaceOrder: { __typename: 'Order', id: string } | null } | null }; +export type FulfillmentReturnProductsMutation = { __typename: 'Mutation', orderFulfillmentReturnProducts: { __typename: 'FulfillmentReturnProducts', errors: Array<{ __typename: 'OrderError', code: OrderErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null, orderLines: Array | null }>, order: { __typename: 'Order', id: string, displayGrossPrices: boolean, isShippingRequired: boolean, canFinalize: boolean, created: any, customerNote: string, number: string, isPaid: boolean, paymentStatus: PaymentChargeStatusEnum, shippingMethodName: string | null, collectionPointName: string | null, status: OrderStatus, actions: Array, userEmail: string | null, chargeStatus: OrderChargeStatusEnum, authorizeStatus: OrderAuthorizeStatusEnum, billingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, transactions: Array<{ __typename: 'TransactionItem', pspReference: string, externalUrl: string, createdAt: any, id: string, name: string, actions: Array, events: Array<{ __typename: 'TransactionEvent', externalUrl: string, id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, createdBy: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, amount: { __typename: 'Money', amount: number, currency: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } }>, payments: Array<{ __typename: 'Payment', id: string, isActive: boolean, actions: Array, gateway: string, paymentMethodType: string, modified: any, availableCaptureAmount: { __typename: 'Money', amount: number, currency: string } | null, capturedAmount: { __typename: 'Money', amount: number, currency: string } | null, total: { __typename: 'Money', amount: number, currency: string } | null, availableRefundAmount: { __typename: 'Money', amount: number, currency: string } | null, transactions: Array<{ __typename: 'Transaction', id: string, token: string, created: any, kind: TransactionKind, isSuccess: boolean }> | null }>, giftCards: Array<{ __typename: 'GiftCard', id: string, last4CodeChars: string, events: Array<{ __typename: 'GiftCardEvent', id: string, type: GiftCardEventsEnum | null, orderId: string | null, date: any | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }> }>, grantedRefunds: Array<{ __typename: 'OrderGrantedRefund', id: string, createdAt: any, shippingCostsIncluded: boolean, status: OrderGrantedRefundStatusEnum, reason: string | null, amount: { __typename: 'Money', currency: string, amount: number }, transactionEvents: Array<{ __typename: 'TransactionEvent', id: string }> | null, reasonReference: { __typename: 'Page', id: string, title: string } | null, user: { __typename: 'User', id: string, firstName: string, lastName: string, email: string, avatar: { __typename: 'Image', url: string, alt: string | null } | null } | null, app: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderGrantedRefundLine', id: string, quantity: number, reason: string | null, orderLine: { __typename: 'OrderLine', id: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }> | null }>, discounts: Array<{ __typename: 'OrderDiscount', id: string, type: OrderDiscountType, name: string | null, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }>, events: Array<{ __typename: 'OrderEvent', id: string, amount: number | null, shippingCostsIncluded: boolean | null, date: any | null, email: string | null, emailType: OrderEventsEmailsEnum | null, invoiceNumber: string | null, message: string | null, quantity: number | null, transactionReference: string | null, type: OrderEventsEnum | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, relatedOrder: { __typename: 'Order', id: string, number: string } | null, related: { __typename: 'OrderEvent', id: string } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, app: { __typename: 'App', id: string, name: string | null, appUrl: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderEventOrderLineObject', quantity: number | null, itemName: string | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, orderLine: { __typename: 'OrderLine', id: string, productName: string, variantName: string } | null }> | null }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, created: any, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, reason: string | null, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, reason: string | null, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } | null, reasonReference: { __typename: 'Page', id: string, title: string } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null, reasonReference: { __typename: 'Page', id: string, title: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }>, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, shippingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, deliveryMethod: { __typename: 'ShippingMethod', id: string } | { __typename: 'Warehouse', id: string, clickAndCollectOption: WarehouseClickAndCollectOptionEnum } | null, shippingMethod: { __typename: 'ShippingMethod', id: string } | null, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, subtotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string }, tax: { __typename: 'Money', amount: number, currency: string } }, totalRemainingGrant: { __typename: 'Money', amount: number, currency: string }, totalGrantedRefund: { __typename: 'Money', amount: number, currency: string }, totalRefundPending: { __typename: 'Money', amount: number, currency: string }, totalRefunded: { __typename: 'Money', amount: number, currency: string }, totalAuthorizePending: { __typename: 'Money', amount: number, currency: string }, totalAuthorized: { __typename: 'Money', amount: number, currency: string }, totalCaptured: { __typename: 'Money', amount: number, currency: string }, totalCharged: { __typename: 'Money', amount: number, currency: string }, totalChargePending: { __typename: 'Money', amount: number, currency: string }, totalCanceled: { __typename: 'Money', amount: number, currency: string }, totalCancelPending: { __typename: 'Money', amount: number, currency: string }, totalBalance: { __typename: 'Money', amount: number, currency: string }, undiscountedTotal: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, user: { __typename: 'User', id: string, email: string } | null, shippingMethods: Array<{ __typename: 'ShippingMethod', id: string, name: string, active: boolean, message: string | null, price: { __typename: 'Money', amount: number, currency: string } }>, invoices: Array<{ __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }>, channel: { __typename: 'Channel', isActive: boolean, id: string, name: string, currencyCode: string, slug: string, defaultCountry: { __typename: 'CountryDisplay', code: string }, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum } }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null, replaceOrder: { __typename: 'Order', id: string } | null } | null }; export type OrderRefundMutationVariables = Exact<{ id: Scalars['ID']; @@ -10982,7 +11136,7 @@ export type OrderRefundMutationVariables = Exact<{ }>; -export type OrderRefundMutation = { __typename: 'Mutation', orderRefund: { __typename: 'OrderRefund', errors: Array<{ __typename: 'OrderError', code: OrderErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null, orderLines: Array | null }>, order: { __typename: 'Order', id: string, displayGrossPrices: boolean, isShippingRequired: boolean, canFinalize: boolean, created: any, customerNote: string, number: string, isPaid: boolean, paymentStatus: PaymentChargeStatusEnum, shippingMethodName: string | null, collectionPointName: string | null, status: OrderStatus, actions: Array, userEmail: string | null, chargeStatus: OrderChargeStatusEnum, authorizeStatus: OrderAuthorizeStatusEnum, billingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, transactions: Array<{ __typename: 'TransactionItem', pspReference: string, externalUrl: string, createdAt: any, id: string, name: string, actions: Array, events: Array<{ __typename: 'TransactionEvent', externalUrl: string, id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, createdBy: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, amount: { __typename: 'Money', amount: number, currency: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } }>, payments: Array<{ __typename: 'Payment', id: string, isActive: boolean, actions: Array, gateway: string, paymentMethodType: string, modified: any, availableCaptureAmount: { __typename: 'Money', amount: number, currency: string } | null, capturedAmount: { __typename: 'Money', amount: number, currency: string } | null, total: { __typename: 'Money', amount: number, currency: string } | null, availableRefundAmount: { __typename: 'Money', amount: number, currency: string } | null, transactions: Array<{ __typename: 'Transaction', id: string, token: string, created: any, kind: TransactionKind, isSuccess: boolean }> | null }>, giftCards: Array<{ __typename: 'GiftCard', id: string, last4CodeChars: string, events: Array<{ __typename: 'GiftCardEvent', id: string, type: GiftCardEventsEnum | null, orderId: string | null, date: any | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }> }>, grantedRefunds: Array<{ __typename: 'OrderGrantedRefund', id: string, createdAt: any, shippingCostsIncluded: boolean, status: OrderGrantedRefundStatusEnum, reason: string | null, amount: { __typename: 'Money', currency: string, amount: number }, transactionEvents: Array<{ __typename: 'TransactionEvent', id: string }> | null, reasonReference: { __typename: 'Page', id: string, title: string } | null, user: { __typename: 'User', id: string, firstName: string, lastName: string, email: string, avatar: { __typename: 'Image', url: string, alt: string | null } | null } | null, app: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderGrantedRefundLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string } }> | null }>, discounts: Array<{ __typename: 'OrderDiscount', id: string, type: OrderDiscountType, name: string | null, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }>, events: Array<{ __typename: 'OrderEvent', id: string, amount: number | null, shippingCostsIncluded: boolean | null, date: any | null, email: string | null, emailType: OrderEventsEmailsEnum | null, invoiceNumber: string | null, message: string | null, quantity: number | null, transactionReference: string | null, type: OrderEventsEnum | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, relatedOrder: { __typename: 'Order', id: string, number: string } | null, related: { __typename: 'OrderEvent', id: string } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, app: { __typename: 'App', id: string, name: string | null, appUrl: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderEventOrderLineObject', quantity: number | null, itemName: string | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, orderLine: { __typename: 'OrderLine', id: string, productName: string, variantName: string } | null }> | null }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, created: any, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }>, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, shippingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, deliveryMethod: { __typename: 'ShippingMethod', id: string } | { __typename: 'Warehouse', id: string, clickAndCollectOption: WarehouseClickAndCollectOptionEnum } | null, shippingMethod: { __typename: 'ShippingMethod', id: string } | null, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, subtotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string }, tax: { __typename: 'Money', amount: number, currency: string } }, totalRemainingGrant: { __typename: 'Money', amount: number, currency: string }, totalGrantedRefund: { __typename: 'Money', amount: number, currency: string }, totalRefundPending: { __typename: 'Money', amount: number, currency: string }, totalRefunded: { __typename: 'Money', amount: number, currency: string }, totalAuthorizePending: { __typename: 'Money', amount: number, currency: string }, totalAuthorized: { __typename: 'Money', amount: number, currency: string }, totalCaptured: { __typename: 'Money', amount: number, currency: string }, totalCharged: { __typename: 'Money', amount: number, currency: string }, totalChargePending: { __typename: 'Money', amount: number, currency: string }, totalCanceled: { __typename: 'Money', amount: number, currency: string }, totalCancelPending: { __typename: 'Money', amount: number, currency: string }, totalBalance: { __typename: 'Money', amount: number, currency: string }, undiscountedTotal: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, user: { __typename: 'User', id: string, email: string } | null, shippingMethods: Array<{ __typename: 'ShippingMethod', id: string, name: string, active: boolean, message: string | null, price: { __typename: 'Money', amount: number, currency: string } }>, invoices: Array<{ __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }>, channel: { __typename: 'Channel', isActive: boolean, id: string, name: string, currencyCode: string, slug: string, defaultCountry: { __typename: 'CountryDisplay', code: string }, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum } }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; +export type OrderRefundMutation = { __typename: 'Mutation', orderRefund: { __typename: 'OrderRefund', errors: Array<{ __typename: 'OrderError', code: OrderErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null, orderLines: Array | null }>, order: { __typename: 'Order', id: string, displayGrossPrices: boolean, isShippingRequired: boolean, canFinalize: boolean, created: any, customerNote: string, number: string, isPaid: boolean, paymentStatus: PaymentChargeStatusEnum, shippingMethodName: string | null, collectionPointName: string | null, status: OrderStatus, actions: Array, userEmail: string | null, chargeStatus: OrderChargeStatusEnum, authorizeStatus: OrderAuthorizeStatusEnum, billingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, transactions: Array<{ __typename: 'TransactionItem', pspReference: string, externalUrl: string, createdAt: any, id: string, name: string, actions: Array, events: Array<{ __typename: 'TransactionEvent', externalUrl: string, id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, createdBy: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, amount: { __typename: 'Money', amount: number, currency: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } }>, payments: Array<{ __typename: 'Payment', id: string, isActive: boolean, actions: Array, gateway: string, paymentMethodType: string, modified: any, availableCaptureAmount: { __typename: 'Money', amount: number, currency: string } | null, capturedAmount: { __typename: 'Money', amount: number, currency: string } | null, total: { __typename: 'Money', amount: number, currency: string } | null, availableRefundAmount: { __typename: 'Money', amount: number, currency: string } | null, transactions: Array<{ __typename: 'Transaction', id: string, token: string, created: any, kind: TransactionKind, isSuccess: boolean }> | null }>, giftCards: Array<{ __typename: 'GiftCard', id: string, last4CodeChars: string, events: Array<{ __typename: 'GiftCardEvent', id: string, type: GiftCardEventsEnum | null, orderId: string | null, date: any | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }> }>, grantedRefunds: Array<{ __typename: 'OrderGrantedRefund', id: string, createdAt: any, shippingCostsIncluded: boolean, status: OrderGrantedRefundStatusEnum, reason: string | null, amount: { __typename: 'Money', currency: string, amount: number }, transactionEvents: Array<{ __typename: 'TransactionEvent', id: string }> | null, reasonReference: { __typename: 'Page', id: string, title: string } | null, user: { __typename: 'User', id: string, firstName: string, lastName: string, email: string, avatar: { __typename: 'Image', url: string, alt: string | null } | null } | null, app: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderGrantedRefundLine', id: string, quantity: number, reason: string | null, orderLine: { __typename: 'OrderLine', id: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }> | null }>, discounts: Array<{ __typename: 'OrderDiscount', id: string, type: OrderDiscountType, name: string | null, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }>, events: Array<{ __typename: 'OrderEvent', id: string, amount: number | null, shippingCostsIncluded: boolean | null, date: any | null, email: string | null, emailType: OrderEventsEmailsEnum | null, invoiceNumber: string | null, message: string | null, quantity: number | null, transactionReference: string | null, type: OrderEventsEnum | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, relatedOrder: { __typename: 'Order', id: string, number: string } | null, related: { __typename: 'OrderEvent', id: string } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, app: { __typename: 'App', id: string, name: string | null, appUrl: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderEventOrderLineObject', quantity: number | null, itemName: string | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, orderLine: { __typename: 'OrderLine', id: string, productName: string, variantName: string } | null }> | null }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, created: any, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, reason: string | null, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, reason: string | null, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } | null, reasonReference: { __typename: 'Page', id: string, title: string } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null, reasonReference: { __typename: 'Page', id: string, title: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }>, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, shippingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, deliveryMethod: { __typename: 'ShippingMethod', id: string } | { __typename: 'Warehouse', id: string, clickAndCollectOption: WarehouseClickAndCollectOptionEnum } | null, shippingMethod: { __typename: 'ShippingMethod', id: string } | null, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, subtotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string }, tax: { __typename: 'Money', amount: number, currency: string } }, totalRemainingGrant: { __typename: 'Money', amount: number, currency: string }, totalGrantedRefund: { __typename: 'Money', amount: number, currency: string }, totalRefundPending: { __typename: 'Money', amount: number, currency: string }, totalRefunded: { __typename: 'Money', amount: number, currency: string }, totalAuthorizePending: { __typename: 'Money', amount: number, currency: string }, totalAuthorized: { __typename: 'Money', amount: number, currency: string }, totalCaptured: { __typename: 'Money', amount: number, currency: string }, totalCharged: { __typename: 'Money', amount: number, currency: string }, totalChargePending: { __typename: 'Money', amount: number, currency: string }, totalCanceled: { __typename: 'Money', amount: number, currency: string }, totalCancelPending: { __typename: 'Money', amount: number, currency: string }, totalBalance: { __typename: 'Money', amount: number, currency: string }, undiscountedTotal: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, user: { __typename: 'User', id: string, email: string } | null, shippingMethods: Array<{ __typename: 'ShippingMethod', id: string, name: string, active: boolean, message: string | null, price: { __typename: 'Money', amount: number, currency: string } }>, invoices: Array<{ __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }>, channel: { __typename: 'Channel', isActive: boolean, id: string, name: string, currencyCode: string, slug: string, defaultCountry: { __typename: 'CountryDisplay', code: string }, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum } }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; export type OrderFulfillmentRefundProductsMutationVariables = Exact<{ input: OrderRefundProductsInput; @@ -10990,14 +11144,14 @@ export type OrderFulfillmentRefundProductsMutationVariables = Exact<{ }>; -export type OrderFulfillmentRefundProductsMutation = { __typename: 'Mutation', orderFulfillmentRefundProducts: { __typename: 'FulfillmentRefundProducts', errors: Array<{ __typename: 'OrderError', code: OrderErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null, orderLines: Array | null }>, fulfillment: { __typename: 'Fulfillment', id: string, created: any, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null, order: { __typename: 'Order', id: string, displayGrossPrices: boolean, isShippingRequired: boolean, canFinalize: boolean, created: any, customerNote: string, number: string, isPaid: boolean, paymentStatus: PaymentChargeStatusEnum, shippingMethodName: string | null, collectionPointName: string | null, status: OrderStatus, actions: Array, userEmail: string | null, chargeStatus: OrderChargeStatusEnum, authorizeStatus: OrderAuthorizeStatusEnum, billingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, transactions: Array<{ __typename: 'TransactionItem', pspReference: string, externalUrl: string, createdAt: any, id: string, name: string, actions: Array, events: Array<{ __typename: 'TransactionEvent', externalUrl: string, id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, createdBy: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, amount: { __typename: 'Money', amount: number, currency: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } }>, payments: Array<{ __typename: 'Payment', id: string, isActive: boolean, actions: Array, gateway: string, paymentMethodType: string, modified: any, availableCaptureAmount: { __typename: 'Money', amount: number, currency: string } | null, capturedAmount: { __typename: 'Money', amount: number, currency: string } | null, total: { __typename: 'Money', amount: number, currency: string } | null, availableRefundAmount: { __typename: 'Money', amount: number, currency: string } | null, transactions: Array<{ __typename: 'Transaction', id: string, token: string, created: any, kind: TransactionKind, isSuccess: boolean }> | null }>, giftCards: Array<{ __typename: 'GiftCard', id: string, last4CodeChars: string, events: Array<{ __typename: 'GiftCardEvent', id: string, type: GiftCardEventsEnum | null, orderId: string | null, date: any | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }> }>, grantedRefunds: Array<{ __typename: 'OrderGrantedRefund', id: string, createdAt: any, shippingCostsIncluded: boolean, status: OrderGrantedRefundStatusEnum, reason: string | null, amount: { __typename: 'Money', currency: string, amount: number }, transactionEvents: Array<{ __typename: 'TransactionEvent', id: string }> | null, reasonReference: { __typename: 'Page', id: string, title: string } | null, user: { __typename: 'User', id: string, firstName: string, lastName: string, email: string, avatar: { __typename: 'Image', url: string, alt: string | null } | null } | null, app: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderGrantedRefundLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string } }> | null }>, discounts: Array<{ __typename: 'OrderDiscount', id: string, type: OrderDiscountType, name: string | null, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }>, events: Array<{ __typename: 'OrderEvent', id: string, amount: number | null, shippingCostsIncluded: boolean | null, date: any | null, email: string | null, emailType: OrderEventsEmailsEnum | null, invoiceNumber: string | null, message: string | null, quantity: number | null, transactionReference: string | null, type: OrderEventsEnum | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, relatedOrder: { __typename: 'Order', id: string, number: string } | null, related: { __typename: 'OrderEvent', id: string } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, app: { __typename: 'App', id: string, name: string | null, appUrl: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderEventOrderLineObject', quantity: number | null, itemName: string | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, orderLine: { __typename: 'OrderLine', id: string, productName: string, variantName: string } | null }> | null }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, created: any, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }>, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, shippingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, deliveryMethod: { __typename: 'ShippingMethod', id: string } | { __typename: 'Warehouse', id: string, clickAndCollectOption: WarehouseClickAndCollectOptionEnum } | null, shippingMethod: { __typename: 'ShippingMethod', id: string } | null, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, subtotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string }, tax: { __typename: 'Money', amount: number, currency: string } }, totalRemainingGrant: { __typename: 'Money', amount: number, currency: string }, totalGrantedRefund: { __typename: 'Money', amount: number, currency: string }, totalRefundPending: { __typename: 'Money', amount: number, currency: string }, totalRefunded: { __typename: 'Money', amount: number, currency: string }, totalAuthorizePending: { __typename: 'Money', amount: number, currency: string }, totalAuthorized: { __typename: 'Money', amount: number, currency: string }, totalCaptured: { __typename: 'Money', amount: number, currency: string }, totalCharged: { __typename: 'Money', amount: number, currency: string }, totalChargePending: { __typename: 'Money', amount: number, currency: string }, totalCanceled: { __typename: 'Money', amount: number, currency: string }, totalCancelPending: { __typename: 'Money', amount: number, currency: string }, totalBalance: { __typename: 'Money', amount: number, currency: string }, undiscountedTotal: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, user: { __typename: 'User', id: string, email: string } | null, shippingMethods: Array<{ __typename: 'ShippingMethod', id: string, name: string, active: boolean, message: string | null, price: { __typename: 'Money', amount: number, currency: string } }>, invoices: Array<{ __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }>, channel: { __typename: 'Channel', isActive: boolean, id: string, name: string, currencyCode: string, slug: string, defaultCountry: { __typename: 'CountryDisplay', code: string }, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum } }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; +export type OrderFulfillmentRefundProductsMutation = { __typename: 'Mutation', orderFulfillmentRefundProducts: { __typename: 'FulfillmentRefundProducts', errors: Array<{ __typename: 'OrderError', code: OrderErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null, orderLines: Array | null }>, fulfillment: { __typename: 'Fulfillment', id: string, created: any, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, reason: string | null, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, reason: string | null, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } | null, reasonReference: { __typename: 'Page', id: string, title: string } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null, reasonReference: { __typename: 'Page', id: string, title: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null, order: { __typename: 'Order', id: string, displayGrossPrices: boolean, isShippingRequired: boolean, canFinalize: boolean, created: any, customerNote: string, number: string, isPaid: boolean, paymentStatus: PaymentChargeStatusEnum, shippingMethodName: string | null, collectionPointName: string | null, status: OrderStatus, actions: Array, userEmail: string | null, chargeStatus: OrderChargeStatusEnum, authorizeStatus: OrderAuthorizeStatusEnum, billingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, transactions: Array<{ __typename: 'TransactionItem', pspReference: string, externalUrl: string, createdAt: any, id: string, name: string, actions: Array, events: Array<{ __typename: 'TransactionEvent', externalUrl: string, id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, createdBy: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, amount: { __typename: 'Money', amount: number, currency: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } }>, payments: Array<{ __typename: 'Payment', id: string, isActive: boolean, actions: Array, gateway: string, paymentMethodType: string, modified: any, availableCaptureAmount: { __typename: 'Money', amount: number, currency: string } | null, capturedAmount: { __typename: 'Money', amount: number, currency: string } | null, total: { __typename: 'Money', amount: number, currency: string } | null, availableRefundAmount: { __typename: 'Money', amount: number, currency: string } | null, transactions: Array<{ __typename: 'Transaction', id: string, token: string, created: any, kind: TransactionKind, isSuccess: boolean }> | null }>, giftCards: Array<{ __typename: 'GiftCard', id: string, last4CodeChars: string, events: Array<{ __typename: 'GiftCardEvent', id: string, type: GiftCardEventsEnum | null, orderId: string | null, date: any | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }> }>, grantedRefunds: Array<{ __typename: 'OrderGrantedRefund', id: string, createdAt: any, shippingCostsIncluded: boolean, status: OrderGrantedRefundStatusEnum, reason: string | null, amount: { __typename: 'Money', currency: string, amount: number }, transactionEvents: Array<{ __typename: 'TransactionEvent', id: string }> | null, reasonReference: { __typename: 'Page', id: string, title: string } | null, user: { __typename: 'User', id: string, firstName: string, lastName: string, email: string, avatar: { __typename: 'Image', url: string, alt: string | null } | null } | null, app: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderGrantedRefundLine', id: string, quantity: number, reason: string | null, orderLine: { __typename: 'OrderLine', id: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }> | null }>, discounts: Array<{ __typename: 'OrderDiscount', id: string, type: OrderDiscountType, name: string | null, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }>, events: Array<{ __typename: 'OrderEvent', id: string, amount: number | null, shippingCostsIncluded: boolean | null, date: any | null, email: string | null, emailType: OrderEventsEmailsEnum | null, invoiceNumber: string | null, message: string | null, quantity: number | null, transactionReference: string | null, type: OrderEventsEnum | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, relatedOrder: { __typename: 'Order', id: string, number: string } | null, related: { __typename: 'OrderEvent', id: string } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, app: { __typename: 'App', id: string, name: string | null, appUrl: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderEventOrderLineObject', quantity: number | null, itemName: string | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, orderLine: { __typename: 'OrderLine', id: string, productName: string, variantName: string } | null }> | null }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, created: any, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, reason: string | null, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, reason: string | null, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } | null, reasonReference: { __typename: 'Page', id: string, title: string } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null, reasonReference: { __typename: 'Page', id: string, title: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }>, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, shippingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, deliveryMethod: { __typename: 'ShippingMethod', id: string } | { __typename: 'Warehouse', id: string, clickAndCollectOption: WarehouseClickAndCollectOptionEnum } | null, shippingMethod: { __typename: 'ShippingMethod', id: string } | null, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, subtotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string }, tax: { __typename: 'Money', amount: number, currency: string } }, totalRemainingGrant: { __typename: 'Money', amount: number, currency: string }, totalGrantedRefund: { __typename: 'Money', amount: number, currency: string }, totalRefundPending: { __typename: 'Money', amount: number, currency: string }, totalRefunded: { __typename: 'Money', amount: number, currency: string }, totalAuthorizePending: { __typename: 'Money', amount: number, currency: string }, totalAuthorized: { __typename: 'Money', amount: number, currency: string }, totalCaptured: { __typename: 'Money', amount: number, currency: string }, totalCharged: { __typename: 'Money', amount: number, currency: string }, totalChargePending: { __typename: 'Money', amount: number, currency: string }, totalCanceled: { __typename: 'Money', amount: number, currency: string }, totalCancelPending: { __typename: 'Money', amount: number, currency: string }, totalBalance: { __typename: 'Money', amount: number, currency: string }, undiscountedTotal: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, user: { __typename: 'User', id: string, email: string } | null, shippingMethods: Array<{ __typename: 'ShippingMethod', id: string, name: string, active: boolean, message: string | null, price: { __typename: 'Money', amount: number, currency: string } }>, invoices: Array<{ __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }>, channel: { __typename: 'Channel', isActive: boolean, id: string, name: string, currencyCode: string, slug: string, defaultCountry: { __typename: 'CountryDisplay', code: string }, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum } }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; export type OrderVoidMutationVariables = Exact<{ id: Scalars['ID']; }>; -export type OrderVoidMutation = { __typename: 'Mutation', orderVoid: { __typename: 'OrderVoid', errors: Array<{ __typename: 'OrderError', code: OrderErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null, orderLines: Array | null }>, order: { __typename: 'Order', id: string, displayGrossPrices: boolean, isShippingRequired: boolean, canFinalize: boolean, created: any, customerNote: string, number: string, isPaid: boolean, paymentStatus: PaymentChargeStatusEnum, shippingMethodName: string | null, collectionPointName: string | null, status: OrderStatus, actions: Array, userEmail: string | null, chargeStatus: OrderChargeStatusEnum, authorizeStatus: OrderAuthorizeStatusEnum, billingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, transactions: Array<{ __typename: 'TransactionItem', pspReference: string, externalUrl: string, createdAt: any, id: string, name: string, actions: Array, events: Array<{ __typename: 'TransactionEvent', externalUrl: string, id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, createdBy: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, amount: { __typename: 'Money', amount: number, currency: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } }>, payments: Array<{ __typename: 'Payment', id: string, isActive: boolean, actions: Array, gateway: string, paymentMethodType: string, modified: any, availableCaptureAmount: { __typename: 'Money', amount: number, currency: string } | null, capturedAmount: { __typename: 'Money', amount: number, currency: string } | null, total: { __typename: 'Money', amount: number, currency: string } | null, availableRefundAmount: { __typename: 'Money', amount: number, currency: string } | null, transactions: Array<{ __typename: 'Transaction', id: string, token: string, created: any, kind: TransactionKind, isSuccess: boolean }> | null }>, giftCards: Array<{ __typename: 'GiftCard', id: string, last4CodeChars: string, events: Array<{ __typename: 'GiftCardEvent', id: string, type: GiftCardEventsEnum | null, orderId: string | null, date: any | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }> }>, grantedRefunds: Array<{ __typename: 'OrderGrantedRefund', id: string, createdAt: any, shippingCostsIncluded: boolean, status: OrderGrantedRefundStatusEnum, reason: string | null, amount: { __typename: 'Money', currency: string, amount: number }, transactionEvents: Array<{ __typename: 'TransactionEvent', id: string }> | null, reasonReference: { __typename: 'Page', id: string, title: string } | null, user: { __typename: 'User', id: string, firstName: string, lastName: string, email: string, avatar: { __typename: 'Image', url: string, alt: string | null } | null } | null, app: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderGrantedRefundLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string } }> | null }>, discounts: Array<{ __typename: 'OrderDiscount', id: string, type: OrderDiscountType, name: string | null, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }>, events: Array<{ __typename: 'OrderEvent', id: string, amount: number | null, shippingCostsIncluded: boolean | null, date: any | null, email: string | null, emailType: OrderEventsEmailsEnum | null, invoiceNumber: string | null, message: string | null, quantity: number | null, transactionReference: string | null, type: OrderEventsEnum | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, relatedOrder: { __typename: 'Order', id: string, number: string } | null, related: { __typename: 'OrderEvent', id: string } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, app: { __typename: 'App', id: string, name: string | null, appUrl: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderEventOrderLineObject', quantity: number | null, itemName: string | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, orderLine: { __typename: 'OrderLine', id: string, productName: string, variantName: string } | null }> | null }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, created: any, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }>, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, shippingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, deliveryMethod: { __typename: 'ShippingMethod', id: string } | { __typename: 'Warehouse', id: string, clickAndCollectOption: WarehouseClickAndCollectOptionEnum } | null, shippingMethod: { __typename: 'ShippingMethod', id: string } | null, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, subtotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string }, tax: { __typename: 'Money', amount: number, currency: string } }, totalRemainingGrant: { __typename: 'Money', amount: number, currency: string }, totalGrantedRefund: { __typename: 'Money', amount: number, currency: string }, totalRefundPending: { __typename: 'Money', amount: number, currency: string }, totalRefunded: { __typename: 'Money', amount: number, currency: string }, totalAuthorizePending: { __typename: 'Money', amount: number, currency: string }, totalAuthorized: { __typename: 'Money', amount: number, currency: string }, totalCaptured: { __typename: 'Money', amount: number, currency: string }, totalCharged: { __typename: 'Money', amount: number, currency: string }, totalChargePending: { __typename: 'Money', amount: number, currency: string }, totalCanceled: { __typename: 'Money', amount: number, currency: string }, totalCancelPending: { __typename: 'Money', amount: number, currency: string }, totalBalance: { __typename: 'Money', amount: number, currency: string }, undiscountedTotal: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, user: { __typename: 'User', id: string, email: string } | null, shippingMethods: Array<{ __typename: 'ShippingMethod', id: string, name: string, active: boolean, message: string | null, price: { __typename: 'Money', amount: number, currency: string } }>, invoices: Array<{ __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }>, channel: { __typename: 'Channel', isActive: boolean, id: string, name: string, currencyCode: string, slug: string, defaultCountry: { __typename: 'CountryDisplay', code: string }, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum } }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; +export type OrderVoidMutation = { __typename: 'Mutation', orderVoid: { __typename: 'OrderVoid', errors: Array<{ __typename: 'OrderError', code: OrderErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null, orderLines: Array | null }>, order: { __typename: 'Order', id: string, displayGrossPrices: boolean, isShippingRequired: boolean, canFinalize: boolean, created: any, customerNote: string, number: string, isPaid: boolean, paymentStatus: PaymentChargeStatusEnum, shippingMethodName: string | null, collectionPointName: string | null, status: OrderStatus, actions: Array, userEmail: string | null, chargeStatus: OrderChargeStatusEnum, authorizeStatus: OrderAuthorizeStatusEnum, billingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, transactions: Array<{ __typename: 'TransactionItem', pspReference: string, externalUrl: string, createdAt: any, id: string, name: string, actions: Array, events: Array<{ __typename: 'TransactionEvent', externalUrl: string, id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, createdBy: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, amount: { __typename: 'Money', amount: number, currency: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } }>, payments: Array<{ __typename: 'Payment', id: string, isActive: boolean, actions: Array, gateway: string, paymentMethodType: string, modified: any, availableCaptureAmount: { __typename: 'Money', amount: number, currency: string } | null, capturedAmount: { __typename: 'Money', amount: number, currency: string } | null, total: { __typename: 'Money', amount: number, currency: string } | null, availableRefundAmount: { __typename: 'Money', amount: number, currency: string } | null, transactions: Array<{ __typename: 'Transaction', id: string, token: string, created: any, kind: TransactionKind, isSuccess: boolean }> | null }>, giftCards: Array<{ __typename: 'GiftCard', id: string, last4CodeChars: string, events: Array<{ __typename: 'GiftCardEvent', id: string, type: GiftCardEventsEnum | null, orderId: string | null, date: any | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }> }>, grantedRefunds: Array<{ __typename: 'OrderGrantedRefund', id: string, createdAt: any, shippingCostsIncluded: boolean, status: OrderGrantedRefundStatusEnum, reason: string | null, amount: { __typename: 'Money', currency: string, amount: number }, transactionEvents: Array<{ __typename: 'TransactionEvent', id: string }> | null, reasonReference: { __typename: 'Page', id: string, title: string } | null, user: { __typename: 'User', id: string, firstName: string, lastName: string, email: string, avatar: { __typename: 'Image', url: string, alt: string | null } | null } | null, app: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderGrantedRefundLine', id: string, quantity: number, reason: string | null, orderLine: { __typename: 'OrderLine', id: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }> | null }>, discounts: Array<{ __typename: 'OrderDiscount', id: string, type: OrderDiscountType, name: string | null, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }>, events: Array<{ __typename: 'OrderEvent', id: string, amount: number | null, shippingCostsIncluded: boolean | null, date: any | null, email: string | null, emailType: OrderEventsEmailsEnum | null, invoiceNumber: string | null, message: string | null, quantity: number | null, transactionReference: string | null, type: OrderEventsEnum | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, relatedOrder: { __typename: 'Order', id: string, number: string } | null, related: { __typename: 'OrderEvent', id: string } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, app: { __typename: 'App', id: string, name: string | null, appUrl: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderEventOrderLineObject', quantity: number | null, itemName: string | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, orderLine: { __typename: 'OrderLine', id: string, productName: string, variantName: string } | null }> | null }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, created: any, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, reason: string | null, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, reason: string | null, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } | null, reasonReference: { __typename: 'Page', id: string, title: string } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null, reasonReference: { __typename: 'Page', id: string, title: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }>, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, shippingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, deliveryMethod: { __typename: 'ShippingMethod', id: string } | { __typename: 'Warehouse', id: string, clickAndCollectOption: WarehouseClickAndCollectOptionEnum } | null, shippingMethod: { __typename: 'ShippingMethod', id: string } | null, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, subtotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string }, tax: { __typename: 'Money', amount: number, currency: string } }, totalRemainingGrant: { __typename: 'Money', amount: number, currency: string }, totalGrantedRefund: { __typename: 'Money', amount: number, currency: string }, totalRefundPending: { __typename: 'Money', amount: number, currency: string }, totalRefunded: { __typename: 'Money', amount: number, currency: string }, totalAuthorizePending: { __typename: 'Money', amount: number, currency: string }, totalAuthorized: { __typename: 'Money', amount: number, currency: string }, totalCaptured: { __typename: 'Money', amount: number, currency: string }, totalCharged: { __typename: 'Money', amount: number, currency: string }, totalChargePending: { __typename: 'Money', amount: number, currency: string }, totalCanceled: { __typename: 'Money', amount: number, currency: string }, totalCancelPending: { __typename: 'Money', amount: number, currency: string }, totalBalance: { __typename: 'Money', amount: number, currency: string }, undiscountedTotal: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, user: { __typename: 'User', id: string, email: string } | null, shippingMethods: Array<{ __typename: 'ShippingMethod', id: string, name: string, active: boolean, message: string | null, price: { __typename: 'Money', amount: number, currency: string } }>, invoices: Array<{ __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }>, channel: { __typename: 'Channel', isActive: boolean, id: string, name: string, currencyCode: string, slug: string, defaultCountry: { __typename: 'CountryDisplay', code: string }, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum } }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; export type OrderMarkAsPaidMutationVariables = Exact<{ id: Scalars['ID']; @@ -11005,7 +11159,7 @@ export type OrderMarkAsPaidMutationVariables = Exact<{ }>; -export type OrderMarkAsPaidMutation = { __typename: 'Mutation', orderMarkAsPaid: { __typename: 'OrderMarkAsPaid', errors: Array<{ __typename: 'OrderError', code: OrderErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null, orderLines: Array | null }>, order: { __typename: 'Order', id: string, displayGrossPrices: boolean, isShippingRequired: boolean, canFinalize: boolean, created: any, customerNote: string, number: string, isPaid: boolean, paymentStatus: PaymentChargeStatusEnum, shippingMethodName: string | null, collectionPointName: string | null, status: OrderStatus, actions: Array, userEmail: string | null, chargeStatus: OrderChargeStatusEnum, authorizeStatus: OrderAuthorizeStatusEnum, billingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, transactions: Array<{ __typename: 'TransactionItem', pspReference: string, externalUrl: string, createdAt: any, id: string, name: string, actions: Array, events: Array<{ __typename: 'TransactionEvent', externalUrl: string, id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, createdBy: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, amount: { __typename: 'Money', amount: number, currency: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } }>, payments: Array<{ __typename: 'Payment', id: string, isActive: boolean, actions: Array, gateway: string, paymentMethodType: string, modified: any, availableCaptureAmount: { __typename: 'Money', amount: number, currency: string } | null, capturedAmount: { __typename: 'Money', amount: number, currency: string } | null, total: { __typename: 'Money', amount: number, currency: string } | null, availableRefundAmount: { __typename: 'Money', amount: number, currency: string } | null, transactions: Array<{ __typename: 'Transaction', id: string, token: string, created: any, kind: TransactionKind, isSuccess: boolean }> | null }>, giftCards: Array<{ __typename: 'GiftCard', id: string, last4CodeChars: string, events: Array<{ __typename: 'GiftCardEvent', id: string, type: GiftCardEventsEnum | null, orderId: string | null, date: any | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }> }>, grantedRefunds: Array<{ __typename: 'OrderGrantedRefund', id: string, createdAt: any, shippingCostsIncluded: boolean, status: OrderGrantedRefundStatusEnum, reason: string | null, amount: { __typename: 'Money', currency: string, amount: number }, transactionEvents: Array<{ __typename: 'TransactionEvent', id: string }> | null, reasonReference: { __typename: 'Page', id: string, title: string } | null, user: { __typename: 'User', id: string, firstName: string, lastName: string, email: string, avatar: { __typename: 'Image', url: string, alt: string | null } | null } | null, app: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderGrantedRefundLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string } }> | null }>, discounts: Array<{ __typename: 'OrderDiscount', id: string, type: OrderDiscountType, name: string | null, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }>, events: Array<{ __typename: 'OrderEvent', id: string, amount: number | null, shippingCostsIncluded: boolean | null, date: any | null, email: string | null, emailType: OrderEventsEmailsEnum | null, invoiceNumber: string | null, message: string | null, quantity: number | null, transactionReference: string | null, type: OrderEventsEnum | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, relatedOrder: { __typename: 'Order', id: string, number: string } | null, related: { __typename: 'OrderEvent', id: string } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, app: { __typename: 'App', id: string, name: string | null, appUrl: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderEventOrderLineObject', quantity: number | null, itemName: string | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, orderLine: { __typename: 'OrderLine', id: string, productName: string, variantName: string } | null }> | null }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, created: any, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }>, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, shippingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, deliveryMethod: { __typename: 'ShippingMethod', id: string } | { __typename: 'Warehouse', id: string, clickAndCollectOption: WarehouseClickAndCollectOptionEnum } | null, shippingMethod: { __typename: 'ShippingMethod', id: string } | null, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, subtotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string }, tax: { __typename: 'Money', amount: number, currency: string } }, totalRemainingGrant: { __typename: 'Money', amount: number, currency: string }, totalGrantedRefund: { __typename: 'Money', amount: number, currency: string }, totalRefundPending: { __typename: 'Money', amount: number, currency: string }, totalRefunded: { __typename: 'Money', amount: number, currency: string }, totalAuthorizePending: { __typename: 'Money', amount: number, currency: string }, totalAuthorized: { __typename: 'Money', amount: number, currency: string }, totalCaptured: { __typename: 'Money', amount: number, currency: string }, totalCharged: { __typename: 'Money', amount: number, currency: string }, totalChargePending: { __typename: 'Money', amount: number, currency: string }, totalCanceled: { __typename: 'Money', amount: number, currency: string }, totalCancelPending: { __typename: 'Money', amount: number, currency: string }, totalBalance: { __typename: 'Money', amount: number, currency: string }, undiscountedTotal: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, user: { __typename: 'User', id: string, email: string } | null, shippingMethods: Array<{ __typename: 'ShippingMethod', id: string, name: string, active: boolean, message: string | null, price: { __typename: 'Money', amount: number, currency: string } }>, invoices: Array<{ __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }>, channel: { __typename: 'Channel', isActive: boolean, id: string, name: string, currencyCode: string, slug: string, defaultCountry: { __typename: 'CountryDisplay', code: string }, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum } }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; +export type OrderMarkAsPaidMutation = { __typename: 'Mutation', orderMarkAsPaid: { __typename: 'OrderMarkAsPaid', errors: Array<{ __typename: 'OrderError', code: OrderErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null, orderLines: Array | null }>, order: { __typename: 'Order', id: string, displayGrossPrices: boolean, isShippingRequired: boolean, canFinalize: boolean, created: any, customerNote: string, number: string, isPaid: boolean, paymentStatus: PaymentChargeStatusEnum, shippingMethodName: string | null, collectionPointName: string | null, status: OrderStatus, actions: Array, userEmail: string | null, chargeStatus: OrderChargeStatusEnum, authorizeStatus: OrderAuthorizeStatusEnum, billingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, transactions: Array<{ __typename: 'TransactionItem', pspReference: string, externalUrl: string, createdAt: any, id: string, name: string, actions: Array, events: Array<{ __typename: 'TransactionEvent', externalUrl: string, id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, createdBy: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, amount: { __typename: 'Money', amount: number, currency: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } }>, payments: Array<{ __typename: 'Payment', id: string, isActive: boolean, actions: Array, gateway: string, paymentMethodType: string, modified: any, availableCaptureAmount: { __typename: 'Money', amount: number, currency: string } | null, capturedAmount: { __typename: 'Money', amount: number, currency: string } | null, total: { __typename: 'Money', amount: number, currency: string } | null, availableRefundAmount: { __typename: 'Money', amount: number, currency: string } | null, transactions: Array<{ __typename: 'Transaction', id: string, token: string, created: any, kind: TransactionKind, isSuccess: boolean }> | null }>, giftCards: Array<{ __typename: 'GiftCard', id: string, last4CodeChars: string, events: Array<{ __typename: 'GiftCardEvent', id: string, type: GiftCardEventsEnum | null, orderId: string | null, date: any | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }> }>, grantedRefunds: Array<{ __typename: 'OrderGrantedRefund', id: string, createdAt: any, shippingCostsIncluded: boolean, status: OrderGrantedRefundStatusEnum, reason: string | null, amount: { __typename: 'Money', currency: string, amount: number }, transactionEvents: Array<{ __typename: 'TransactionEvent', id: string }> | null, reasonReference: { __typename: 'Page', id: string, title: string } | null, user: { __typename: 'User', id: string, firstName: string, lastName: string, email: string, avatar: { __typename: 'Image', url: string, alt: string | null } | null } | null, app: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderGrantedRefundLine', id: string, quantity: number, reason: string | null, orderLine: { __typename: 'OrderLine', id: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }> | null }>, discounts: Array<{ __typename: 'OrderDiscount', id: string, type: OrderDiscountType, name: string | null, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }>, events: Array<{ __typename: 'OrderEvent', id: string, amount: number | null, shippingCostsIncluded: boolean | null, date: any | null, email: string | null, emailType: OrderEventsEmailsEnum | null, invoiceNumber: string | null, message: string | null, quantity: number | null, transactionReference: string | null, type: OrderEventsEnum | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, relatedOrder: { __typename: 'Order', id: string, number: string } | null, related: { __typename: 'OrderEvent', id: string } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, app: { __typename: 'App', id: string, name: string | null, appUrl: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderEventOrderLineObject', quantity: number | null, itemName: string | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, orderLine: { __typename: 'OrderLine', id: string, productName: string, variantName: string } | null }> | null }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, created: any, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, reason: string | null, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, reason: string | null, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } | null, reasonReference: { __typename: 'Page', id: string, title: string } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null, reasonReference: { __typename: 'Page', id: string, title: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }>, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, shippingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, deliveryMethod: { __typename: 'ShippingMethod', id: string } | { __typename: 'Warehouse', id: string, clickAndCollectOption: WarehouseClickAndCollectOptionEnum } | null, shippingMethod: { __typename: 'ShippingMethod', id: string } | null, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, subtotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string }, tax: { __typename: 'Money', amount: number, currency: string } }, totalRemainingGrant: { __typename: 'Money', amount: number, currency: string }, totalGrantedRefund: { __typename: 'Money', amount: number, currency: string }, totalRefundPending: { __typename: 'Money', amount: number, currency: string }, totalRefunded: { __typename: 'Money', amount: number, currency: string }, totalAuthorizePending: { __typename: 'Money', amount: number, currency: string }, totalAuthorized: { __typename: 'Money', amount: number, currency: string }, totalCaptured: { __typename: 'Money', amount: number, currency: string }, totalCharged: { __typename: 'Money', amount: number, currency: string }, totalChargePending: { __typename: 'Money', amount: number, currency: string }, totalCanceled: { __typename: 'Money', amount: number, currency: string }, totalCancelPending: { __typename: 'Money', amount: number, currency: string }, totalBalance: { __typename: 'Money', amount: number, currency: string }, undiscountedTotal: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, user: { __typename: 'User', id: string, email: string } | null, shippingMethods: Array<{ __typename: 'ShippingMethod', id: string, name: string, active: boolean, message: string | null, price: { __typename: 'Money', amount: number, currency: string } }>, invoices: Array<{ __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }>, channel: { __typename: 'Channel', isActive: boolean, id: string, name: string, currencyCode: string, slug: string, defaultCountry: { __typename: 'CountryDisplay', code: string }, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum } }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; export type OrderCaptureMutationVariables = Exact<{ id: Scalars['ID']; @@ -11013,7 +11167,7 @@ export type OrderCaptureMutationVariables = Exact<{ }>; -export type OrderCaptureMutation = { __typename: 'Mutation', orderCapture: { __typename: 'OrderCapture', errors: Array<{ __typename: 'OrderError', code: OrderErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null, orderLines: Array | null }>, order: { __typename: 'Order', id: string, displayGrossPrices: boolean, isShippingRequired: boolean, canFinalize: boolean, created: any, customerNote: string, number: string, isPaid: boolean, paymentStatus: PaymentChargeStatusEnum, shippingMethodName: string | null, collectionPointName: string | null, status: OrderStatus, actions: Array, userEmail: string | null, chargeStatus: OrderChargeStatusEnum, authorizeStatus: OrderAuthorizeStatusEnum, billingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, transactions: Array<{ __typename: 'TransactionItem', pspReference: string, externalUrl: string, createdAt: any, id: string, name: string, actions: Array, events: Array<{ __typename: 'TransactionEvent', externalUrl: string, id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, createdBy: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, amount: { __typename: 'Money', amount: number, currency: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } }>, payments: Array<{ __typename: 'Payment', id: string, isActive: boolean, actions: Array, gateway: string, paymentMethodType: string, modified: any, availableCaptureAmount: { __typename: 'Money', amount: number, currency: string } | null, capturedAmount: { __typename: 'Money', amount: number, currency: string } | null, total: { __typename: 'Money', amount: number, currency: string } | null, availableRefundAmount: { __typename: 'Money', amount: number, currency: string } | null, transactions: Array<{ __typename: 'Transaction', id: string, token: string, created: any, kind: TransactionKind, isSuccess: boolean }> | null }>, giftCards: Array<{ __typename: 'GiftCard', id: string, last4CodeChars: string, events: Array<{ __typename: 'GiftCardEvent', id: string, type: GiftCardEventsEnum | null, orderId: string | null, date: any | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }> }>, grantedRefunds: Array<{ __typename: 'OrderGrantedRefund', id: string, createdAt: any, shippingCostsIncluded: boolean, status: OrderGrantedRefundStatusEnum, reason: string | null, amount: { __typename: 'Money', currency: string, amount: number }, transactionEvents: Array<{ __typename: 'TransactionEvent', id: string }> | null, reasonReference: { __typename: 'Page', id: string, title: string } | null, user: { __typename: 'User', id: string, firstName: string, lastName: string, email: string, avatar: { __typename: 'Image', url: string, alt: string | null } | null } | null, app: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderGrantedRefundLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string } }> | null }>, discounts: Array<{ __typename: 'OrderDiscount', id: string, type: OrderDiscountType, name: string | null, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }>, events: Array<{ __typename: 'OrderEvent', id: string, amount: number | null, shippingCostsIncluded: boolean | null, date: any | null, email: string | null, emailType: OrderEventsEmailsEnum | null, invoiceNumber: string | null, message: string | null, quantity: number | null, transactionReference: string | null, type: OrderEventsEnum | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, relatedOrder: { __typename: 'Order', id: string, number: string } | null, related: { __typename: 'OrderEvent', id: string } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, app: { __typename: 'App', id: string, name: string | null, appUrl: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderEventOrderLineObject', quantity: number | null, itemName: string | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, orderLine: { __typename: 'OrderLine', id: string, productName: string, variantName: string } | null }> | null }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, created: any, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }>, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, shippingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, deliveryMethod: { __typename: 'ShippingMethod', id: string } | { __typename: 'Warehouse', id: string, clickAndCollectOption: WarehouseClickAndCollectOptionEnum } | null, shippingMethod: { __typename: 'ShippingMethod', id: string } | null, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, subtotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string }, tax: { __typename: 'Money', amount: number, currency: string } }, totalRemainingGrant: { __typename: 'Money', amount: number, currency: string }, totalGrantedRefund: { __typename: 'Money', amount: number, currency: string }, totalRefundPending: { __typename: 'Money', amount: number, currency: string }, totalRefunded: { __typename: 'Money', amount: number, currency: string }, totalAuthorizePending: { __typename: 'Money', amount: number, currency: string }, totalAuthorized: { __typename: 'Money', amount: number, currency: string }, totalCaptured: { __typename: 'Money', amount: number, currency: string }, totalCharged: { __typename: 'Money', amount: number, currency: string }, totalChargePending: { __typename: 'Money', amount: number, currency: string }, totalCanceled: { __typename: 'Money', amount: number, currency: string }, totalCancelPending: { __typename: 'Money', amount: number, currency: string }, totalBalance: { __typename: 'Money', amount: number, currency: string }, undiscountedTotal: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, user: { __typename: 'User', id: string, email: string } | null, shippingMethods: Array<{ __typename: 'ShippingMethod', id: string, name: string, active: boolean, message: string | null, price: { __typename: 'Money', amount: number, currency: string } }>, invoices: Array<{ __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }>, channel: { __typename: 'Channel', isActive: boolean, id: string, name: string, currencyCode: string, slug: string, defaultCountry: { __typename: 'CountryDisplay', code: string }, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum } }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; +export type OrderCaptureMutation = { __typename: 'Mutation', orderCapture: { __typename: 'OrderCapture', errors: Array<{ __typename: 'OrderError', code: OrderErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null, orderLines: Array | null }>, order: { __typename: 'Order', id: string, displayGrossPrices: boolean, isShippingRequired: boolean, canFinalize: boolean, created: any, customerNote: string, number: string, isPaid: boolean, paymentStatus: PaymentChargeStatusEnum, shippingMethodName: string | null, collectionPointName: string | null, status: OrderStatus, actions: Array, userEmail: string | null, chargeStatus: OrderChargeStatusEnum, authorizeStatus: OrderAuthorizeStatusEnum, billingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, transactions: Array<{ __typename: 'TransactionItem', pspReference: string, externalUrl: string, createdAt: any, id: string, name: string, actions: Array, events: Array<{ __typename: 'TransactionEvent', externalUrl: string, id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, createdBy: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, amount: { __typename: 'Money', amount: number, currency: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } }>, payments: Array<{ __typename: 'Payment', id: string, isActive: boolean, actions: Array, gateway: string, paymentMethodType: string, modified: any, availableCaptureAmount: { __typename: 'Money', amount: number, currency: string } | null, capturedAmount: { __typename: 'Money', amount: number, currency: string } | null, total: { __typename: 'Money', amount: number, currency: string } | null, availableRefundAmount: { __typename: 'Money', amount: number, currency: string } | null, transactions: Array<{ __typename: 'Transaction', id: string, token: string, created: any, kind: TransactionKind, isSuccess: boolean }> | null }>, giftCards: Array<{ __typename: 'GiftCard', id: string, last4CodeChars: string, events: Array<{ __typename: 'GiftCardEvent', id: string, type: GiftCardEventsEnum | null, orderId: string | null, date: any | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }> }>, grantedRefunds: Array<{ __typename: 'OrderGrantedRefund', id: string, createdAt: any, shippingCostsIncluded: boolean, status: OrderGrantedRefundStatusEnum, reason: string | null, amount: { __typename: 'Money', currency: string, amount: number }, transactionEvents: Array<{ __typename: 'TransactionEvent', id: string }> | null, reasonReference: { __typename: 'Page', id: string, title: string } | null, user: { __typename: 'User', id: string, firstName: string, lastName: string, email: string, avatar: { __typename: 'Image', url: string, alt: string | null } | null } | null, app: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderGrantedRefundLine', id: string, quantity: number, reason: string | null, orderLine: { __typename: 'OrderLine', id: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }> | null }>, discounts: Array<{ __typename: 'OrderDiscount', id: string, type: OrderDiscountType, name: string | null, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }>, events: Array<{ __typename: 'OrderEvent', id: string, amount: number | null, shippingCostsIncluded: boolean | null, date: any | null, email: string | null, emailType: OrderEventsEmailsEnum | null, invoiceNumber: string | null, message: string | null, quantity: number | null, transactionReference: string | null, type: OrderEventsEnum | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, relatedOrder: { __typename: 'Order', id: string, number: string } | null, related: { __typename: 'OrderEvent', id: string } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, app: { __typename: 'App', id: string, name: string | null, appUrl: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderEventOrderLineObject', quantity: number | null, itemName: string | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, orderLine: { __typename: 'OrderLine', id: string, productName: string, variantName: string } | null }> | null }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, created: any, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, reason: string | null, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, reason: string | null, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } | null, reasonReference: { __typename: 'Page', id: string, title: string } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null, reasonReference: { __typename: 'Page', id: string, title: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }>, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, shippingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, deliveryMethod: { __typename: 'ShippingMethod', id: string } | { __typename: 'Warehouse', id: string, clickAndCollectOption: WarehouseClickAndCollectOptionEnum } | null, shippingMethod: { __typename: 'ShippingMethod', id: string } | null, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, subtotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string }, tax: { __typename: 'Money', amount: number, currency: string } }, totalRemainingGrant: { __typename: 'Money', amount: number, currency: string }, totalGrantedRefund: { __typename: 'Money', amount: number, currency: string }, totalRefundPending: { __typename: 'Money', amount: number, currency: string }, totalRefunded: { __typename: 'Money', amount: number, currency: string }, totalAuthorizePending: { __typename: 'Money', amount: number, currency: string }, totalAuthorized: { __typename: 'Money', amount: number, currency: string }, totalCaptured: { __typename: 'Money', amount: number, currency: string }, totalCharged: { __typename: 'Money', amount: number, currency: string }, totalChargePending: { __typename: 'Money', amount: number, currency: string }, totalCanceled: { __typename: 'Money', amount: number, currency: string }, totalCancelPending: { __typename: 'Money', amount: number, currency: string }, totalBalance: { __typename: 'Money', amount: number, currency: string }, undiscountedTotal: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, user: { __typename: 'User', id: string, email: string } | null, shippingMethods: Array<{ __typename: 'ShippingMethod', id: string, name: string, active: boolean, message: string | null, price: { __typename: 'Money', amount: number, currency: string } }>, invoices: Array<{ __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }>, channel: { __typename: 'Channel', isActive: boolean, id: string, name: string, currencyCode: string, slug: string, defaultCountry: { __typename: 'CountryDisplay', code: string }, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum } }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; export type OrderFulfillmentUpdateTrackingMutationVariables = Exact<{ id: Scalars['ID']; @@ -11021,7 +11175,7 @@ export type OrderFulfillmentUpdateTrackingMutationVariables = Exact<{ }>; -export type OrderFulfillmentUpdateTrackingMutation = { __typename: 'Mutation', orderFulfillmentUpdateTracking: { __typename: 'FulfillmentUpdateTracking', errors: Array<{ __typename: 'OrderError', code: OrderErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null, orderLines: Array | null }>, order: { __typename: 'Order', id: string, displayGrossPrices: boolean, isShippingRequired: boolean, canFinalize: boolean, created: any, customerNote: string, number: string, isPaid: boolean, paymentStatus: PaymentChargeStatusEnum, shippingMethodName: string | null, collectionPointName: string | null, status: OrderStatus, actions: Array, userEmail: string | null, chargeStatus: OrderChargeStatusEnum, authorizeStatus: OrderAuthorizeStatusEnum, billingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, transactions: Array<{ __typename: 'TransactionItem', pspReference: string, externalUrl: string, createdAt: any, id: string, name: string, actions: Array, events: Array<{ __typename: 'TransactionEvent', externalUrl: string, id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, createdBy: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, amount: { __typename: 'Money', amount: number, currency: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } }>, payments: Array<{ __typename: 'Payment', id: string, isActive: boolean, actions: Array, gateway: string, paymentMethodType: string, modified: any, availableCaptureAmount: { __typename: 'Money', amount: number, currency: string } | null, capturedAmount: { __typename: 'Money', amount: number, currency: string } | null, total: { __typename: 'Money', amount: number, currency: string } | null, availableRefundAmount: { __typename: 'Money', amount: number, currency: string } | null, transactions: Array<{ __typename: 'Transaction', id: string, token: string, created: any, kind: TransactionKind, isSuccess: boolean }> | null }>, giftCards: Array<{ __typename: 'GiftCard', id: string, last4CodeChars: string, events: Array<{ __typename: 'GiftCardEvent', id: string, type: GiftCardEventsEnum | null, orderId: string | null, date: any | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }> }>, grantedRefunds: Array<{ __typename: 'OrderGrantedRefund', id: string, createdAt: any, shippingCostsIncluded: boolean, status: OrderGrantedRefundStatusEnum, reason: string | null, amount: { __typename: 'Money', currency: string, amount: number }, transactionEvents: Array<{ __typename: 'TransactionEvent', id: string }> | null, reasonReference: { __typename: 'Page', id: string, title: string } | null, user: { __typename: 'User', id: string, firstName: string, lastName: string, email: string, avatar: { __typename: 'Image', url: string, alt: string | null } | null } | null, app: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderGrantedRefundLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string } }> | null }>, discounts: Array<{ __typename: 'OrderDiscount', id: string, type: OrderDiscountType, name: string | null, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }>, events: Array<{ __typename: 'OrderEvent', id: string, amount: number | null, shippingCostsIncluded: boolean | null, date: any | null, email: string | null, emailType: OrderEventsEmailsEnum | null, invoiceNumber: string | null, message: string | null, quantity: number | null, transactionReference: string | null, type: OrderEventsEnum | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, relatedOrder: { __typename: 'Order', id: string, number: string } | null, related: { __typename: 'OrderEvent', id: string } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, app: { __typename: 'App', id: string, name: string | null, appUrl: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderEventOrderLineObject', quantity: number | null, itemName: string | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, orderLine: { __typename: 'OrderLine', id: string, productName: string, variantName: string } | null }> | null }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, created: any, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }>, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, shippingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, deliveryMethod: { __typename: 'ShippingMethod', id: string } | { __typename: 'Warehouse', id: string, clickAndCollectOption: WarehouseClickAndCollectOptionEnum } | null, shippingMethod: { __typename: 'ShippingMethod', id: string } | null, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, subtotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string }, tax: { __typename: 'Money', amount: number, currency: string } }, totalRemainingGrant: { __typename: 'Money', amount: number, currency: string }, totalGrantedRefund: { __typename: 'Money', amount: number, currency: string }, totalRefundPending: { __typename: 'Money', amount: number, currency: string }, totalRefunded: { __typename: 'Money', amount: number, currency: string }, totalAuthorizePending: { __typename: 'Money', amount: number, currency: string }, totalAuthorized: { __typename: 'Money', amount: number, currency: string }, totalCaptured: { __typename: 'Money', amount: number, currency: string }, totalCharged: { __typename: 'Money', amount: number, currency: string }, totalChargePending: { __typename: 'Money', amount: number, currency: string }, totalCanceled: { __typename: 'Money', amount: number, currency: string }, totalCancelPending: { __typename: 'Money', amount: number, currency: string }, totalBalance: { __typename: 'Money', amount: number, currency: string }, undiscountedTotal: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, user: { __typename: 'User', id: string, email: string } | null, shippingMethods: Array<{ __typename: 'ShippingMethod', id: string, name: string, active: boolean, message: string | null, price: { __typename: 'Money', amount: number, currency: string } }>, invoices: Array<{ __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }>, channel: { __typename: 'Channel', isActive: boolean, id: string, name: string, currencyCode: string, slug: string, defaultCountry: { __typename: 'CountryDisplay', code: string }, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum } }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; +export type OrderFulfillmentUpdateTrackingMutation = { __typename: 'Mutation', orderFulfillmentUpdateTracking: { __typename: 'FulfillmentUpdateTracking', errors: Array<{ __typename: 'OrderError', code: OrderErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null, orderLines: Array | null }>, order: { __typename: 'Order', id: string, displayGrossPrices: boolean, isShippingRequired: boolean, canFinalize: boolean, created: any, customerNote: string, number: string, isPaid: boolean, paymentStatus: PaymentChargeStatusEnum, shippingMethodName: string | null, collectionPointName: string | null, status: OrderStatus, actions: Array, userEmail: string | null, chargeStatus: OrderChargeStatusEnum, authorizeStatus: OrderAuthorizeStatusEnum, billingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, transactions: Array<{ __typename: 'TransactionItem', pspReference: string, externalUrl: string, createdAt: any, id: string, name: string, actions: Array, events: Array<{ __typename: 'TransactionEvent', externalUrl: string, id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, createdBy: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, amount: { __typename: 'Money', amount: number, currency: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } }>, payments: Array<{ __typename: 'Payment', id: string, isActive: boolean, actions: Array, gateway: string, paymentMethodType: string, modified: any, availableCaptureAmount: { __typename: 'Money', amount: number, currency: string } | null, capturedAmount: { __typename: 'Money', amount: number, currency: string } | null, total: { __typename: 'Money', amount: number, currency: string } | null, availableRefundAmount: { __typename: 'Money', amount: number, currency: string } | null, transactions: Array<{ __typename: 'Transaction', id: string, token: string, created: any, kind: TransactionKind, isSuccess: boolean }> | null }>, giftCards: Array<{ __typename: 'GiftCard', id: string, last4CodeChars: string, events: Array<{ __typename: 'GiftCardEvent', id: string, type: GiftCardEventsEnum | null, orderId: string | null, date: any | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }> }>, grantedRefunds: Array<{ __typename: 'OrderGrantedRefund', id: string, createdAt: any, shippingCostsIncluded: boolean, status: OrderGrantedRefundStatusEnum, reason: string | null, amount: { __typename: 'Money', currency: string, amount: number }, transactionEvents: Array<{ __typename: 'TransactionEvent', id: string }> | null, reasonReference: { __typename: 'Page', id: string, title: string } | null, user: { __typename: 'User', id: string, firstName: string, lastName: string, email: string, avatar: { __typename: 'Image', url: string, alt: string | null } | null } | null, app: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderGrantedRefundLine', id: string, quantity: number, reason: string | null, orderLine: { __typename: 'OrderLine', id: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }> | null }>, discounts: Array<{ __typename: 'OrderDiscount', id: string, type: OrderDiscountType, name: string | null, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }>, events: Array<{ __typename: 'OrderEvent', id: string, amount: number | null, shippingCostsIncluded: boolean | null, date: any | null, email: string | null, emailType: OrderEventsEmailsEnum | null, invoiceNumber: string | null, message: string | null, quantity: number | null, transactionReference: string | null, type: OrderEventsEnum | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, relatedOrder: { __typename: 'Order', id: string, number: string } | null, related: { __typename: 'OrderEvent', id: string } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, app: { __typename: 'App', id: string, name: string | null, appUrl: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderEventOrderLineObject', quantity: number | null, itemName: string | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, orderLine: { __typename: 'OrderLine', id: string, productName: string, variantName: string } | null }> | null }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, created: any, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, reason: string | null, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, reason: string | null, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } | null, reasonReference: { __typename: 'Page', id: string, title: string } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null, reasonReference: { __typename: 'Page', id: string, title: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }>, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, shippingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, deliveryMethod: { __typename: 'ShippingMethod', id: string } | { __typename: 'Warehouse', id: string, clickAndCollectOption: WarehouseClickAndCollectOptionEnum } | null, shippingMethod: { __typename: 'ShippingMethod', id: string } | null, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, subtotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string }, tax: { __typename: 'Money', amount: number, currency: string } }, totalRemainingGrant: { __typename: 'Money', amount: number, currency: string }, totalGrantedRefund: { __typename: 'Money', amount: number, currency: string }, totalRefundPending: { __typename: 'Money', amount: number, currency: string }, totalRefunded: { __typename: 'Money', amount: number, currency: string }, totalAuthorizePending: { __typename: 'Money', amount: number, currency: string }, totalAuthorized: { __typename: 'Money', amount: number, currency: string }, totalCaptured: { __typename: 'Money', amount: number, currency: string }, totalCharged: { __typename: 'Money', amount: number, currency: string }, totalChargePending: { __typename: 'Money', amount: number, currency: string }, totalCanceled: { __typename: 'Money', amount: number, currency: string }, totalCancelPending: { __typename: 'Money', amount: number, currency: string }, totalBalance: { __typename: 'Money', amount: number, currency: string }, undiscountedTotal: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, user: { __typename: 'User', id: string, email: string } | null, shippingMethods: Array<{ __typename: 'ShippingMethod', id: string, name: string, active: boolean, message: string | null, price: { __typename: 'Money', amount: number, currency: string } }>, invoices: Array<{ __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }>, channel: { __typename: 'Channel', isActive: boolean, id: string, name: string, currencyCode: string, slug: string, defaultCountry: { __typename: 'CountryDisplay', code: string }, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum } }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; export type OrderFulfillmentApproveMutationVariables = Exact<{ id: Scalars['ID']; @@ -11030,7 +11184,7 @@ export type OrderFulfillmentApproveMutationVariables = Exact<{ }>; -export type OrderFulfillmentApproveMutation = { __typename: 'Mutation', orderFulfillmentApprove: { __typename: 'FulfillmentApprove', errors: Array<{ __typename: 'OrderError', code: OrderErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null, orderLines: Array | null }>, order: { __typename: 'Order', id: string, displayGrossPrices: boolean, isShippingRequired: boolean, canFinalize: boolean, created: any, customerNote: string, number: string, isPaid: boolean, paymentStatus: PaymentChargeStatusEnum, shippingMethodName: string | null, collectionPointName: string | null, status: OrderStatus, actions: Array, userEmail: string | null, chargeStatus: OrderChargeStatusEnum, authorizeStatus: OrderAuthorizeStatusEnum, billingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, transactions: Array<{ __typename: 'TransactionItem', pspReference: string, externalUrl: string, createdAt: any, id: string, name: string, actions: Array, events: Array<{ __typename: 'TransactionEvent', externalUrl: string, id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, createdBy: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, amount: { __typename: 'Money', amount: number, currency: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } }>, payments: Array<{ __typename: 'Payment', id: string, isActive: boolean, actions: Array, gateway: string, paymentMethodType: string, modified: any, availableCaptureAmount: { __typename: 'Money', amount: number, currency: string } | null, capturedAmount: { __typename: 'Money', amount: number, currency: string } | null, total: { __typename: 'Money', amount: number, currency: string } | null, availableRefundAmount: { __typename: 'Money', amount: number, currency: string } | null, transactions: Array<{ __typename: 'Transaction', id: string, token: string, created: any, kind: TransactionKind, isSuccess: boolean }> | null }>, giftCards: Array<{ __typename: 'GiftCard', id: string, last4CodeChars: string, events: Array<{ __typename: 'GiftCardEvent', id: string, type: GiftCardEventsEnum | null, orderId: string | null, date: any | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }> }>, grantedRefunds: Array<{ __typename: 'OrderGrantedRefund', id: string, createdAt: any, shippingCostsIncluded: boolean, status: OrderGrantedRefundStatusEnum, reason: string | null, amount: { __typename: 'Money', currency: string, amount: number }, transactionEvents: Array<{ __typename: 'TransactionEvent', id: string }> | null, reasonReference: { __typename: 'Page', id: string, title: string } | null, user: { __typename: 'User', id: string, firstName: string, lastName: string, email: string, avatar: { __typename: 'Image', url: string, alt: string | null } | null } | null, app: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderGrantedRefundLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string } }> | null }>, discounts: Array<{ __typename: 'OrderDiscount', id: string, type: OrderDiscountType, name: string | null, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }>, events: Array<{ __typename: 'OrderEvent', id: string, amount: number | null, shippingCostsIncluded: boolean | null, date: any | null, email: string | null, emailType: OrderEventsEmailsEnum | null, invoiceNumber: string | null, message: string | null, quantity: number | null, transactionReference: string | null, type: OrderEventsEnum | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, relatedOrder: { __typename: 'Order', id: string, number: string } | null, related: { __typename: 'OrderEvent', id: string } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, app: { __typename: 'App', id: string, name: string | null, appUrl: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderEventOrderLineObject', quantity: number | null, itemName: string | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, orderLine: { __typename: 'OrderLine', id: string, productName: string, variantName: string } | null }> | null }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, created: any, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }>, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, shippingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, deliveryMethod: { __typename: 'ShippingMethod', id: string } | { __typename: 'Warehouse', id: string, clickAndCollectOption: WarehouseClickAndCollectOptionEnum } | null, shippingMethod: { __typename: 'ShippingMethod', id: string } | null, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, subtotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string }, tax: { __typename: 'Money', amount: number, currency: string } }, totalRemainingGrant: { __typename: 'Money', amount: number, currency: string }, totalGrantedRefund: { __typename: 'Money', amount: number, currency: string }, totalRefundPending: { __typename: 'Money', amount: number, currency: string }, totalRefunded: { __typename: 'Money', amount: number, currency: string }, totalAuthorizePending: { __typename: 'Money', amount: number, currency: string }, totalAuthorized: { __typename: 'Money', amount: number, currency: string }, totalCaptured: { __typename: 'Money', amount: number, currency: string }, totalCharged: { __typename: 'Money', amount: number, currency: string }, totalChargePending: { __typename: 'Money', amount: number, currency: string }, totalCanceled: { __typename: 'Money', amount: number, currency: string }, totalCancelPending: { __typename: 'Money', amount: number, currency: string }, totalBalance: { __typename: 'Money', amount: number, currency: string }, undiscountedTotal: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, user: { __typename: 'User', id: string, email: string } | null, shippingMethods: Array<{ __typename: 'ShippingMethod', id: string, name: string, active: boolean, message: string | null, price: { __typename: 'Money', amount: number, currency: string } }>, invoices: Array<{ __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }>, channel: { __typename: 'Channel', isActive: boolean, id: string, name: string, currencyCode: string, slug: string, defaultCountry: { __typename: 'CountryDisplay', code: string }, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum } }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; +export type OrderFulfillmentApproveMutation = { __typename: 'Mutation', orderFulfillmentApprove: { __typename: 'FulfillmentApprove', errors: Array<{ __typename: 'OrderError', code: OrderErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null, orderLines: Array | null }>, order: { __typename: 'Order', id: string, displayGrossPrices: boolean, isShippingRequired: boolean, canFinalize: boolean, created: any, customerNote: string, number: string, isPaid: boolean, paymentStatus: PaymentChargeStatusEnum, shippingMethodName: string | null, collectionPointName: string | null, status: OrderStatus, actions: Array, userEmail: string | null, chargeStatus: OrderChargeStatusEnum, authorizeStatus: OrderAuthorizeStatusEnum, billingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, transactions: Array<{ __typename: 'TransactionItem', pspReference: string, externalUrl: string, createdAt: any, id: string, name: string, actions: Array, events: Array<{ __typename: 'TransactionEvent', externalUrl: string, id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, createdBy: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, amount: { __typename: 'Money', amount: number, currency: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } }>, payments: Array<{ __typename: 'Payment', id: string, isActive: boolean, actions: Array, gateway: string, paymentMethodType: string, modified: any, availableCaptureAmount: { __typename: 'Money', amount: number, currency: string } | null, capturedAmount: { __typename: 'Money', amount: number, currency: string } | null, total: { __typename: 'Money', amount: number, currency: string } | null, availableRefundAmount: { __typename: 'Money', amount: number, currency: string } | null, transactions: Array<{ __typename: 'Transaction', id: string, token: string, created: any, kind: TransactionKind, isSuccess: boolean }> | null }>, giftCards: Array<{ __typename: 'GiftCard', id: string, last4CodeChars: string, events: Array<{ __typename: 'GiftCardEvent', id: string, type: GiftCardEventsEnum | null, orderId: string | null, date: any | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }> }>, grantedRefunds: Array<{ __typename: 'OrderGrantedRefund', id: string, createdAt: any, shippingCostsIncluded: boolean, status: OrderGrantedRefundStatusEnum, reason: string | null, amount: { __typename: 'Money', currency: string, amount: number }, transactionEvents: Array<{ __typename: 'TransactionEvent', id: string }> | null, reasonReference: { __typename: 'Page', id: string, title: string } | null, user: { __typename: 'User', id: string, firstName: string, lastName: string, email: string, avatar: { __typename: 'Image', url: string, alt: string | null } | null } | null, app: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderGrantedRefundLine', id: string, quantity: number, reason: string | null, orderLine: { __typename: 'OrderLine', id: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }> | null }>, discounts: Array<{ __typename: 'OrderDiscount', id: string, type: OrderDiscountType, name: string | null, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }>, events: Array<{ __typename: 'OrderEvent', id: string, amount: number | null, shippingCostsIncluded: boolean | null, date: any | null, email: string | null, emailType: OrderEventsEmailsEnum | null, invoiceNumber: string | null, message: string | null, quantity: number | null, transactionReference: string | null, type: OrderEventsEnum | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, relatedOrder: { __typename: 'Order', id: string, number: string } | null, related: { __typename: 'OrderEvent', id: string } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, app: { __typename: 'App', id: string, name: string | null, appUrl: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderEventOrderLineObject', quantity: number | null, itemName: string | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, orderLine: { __typename: 'OrderLine', id: string, productName: string, variantName: string } | null }> | null }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, created: any, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, reason: string | null, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, reason: string | null, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } | null, reasonReference: { __typename: 'Page', id: string, title: string } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null, reasonReference: { __typename: 'Page', id: string, title: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }>, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, shippingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, deliveryMethod: { __typename: 'ShippingMethod', id: string } | { __typename: 'Warehouse', id: string, clickAndCollectOption: WarehouseClickAndCollectOptionEnum } | null, shippingMethod: { __typename: 'ShippingMethod', id: string } | null, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, subtotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string }, tax: { __typename: 'Money', amount: number, currency: string } }, totalRemainingGrant: { __typename: 'Money', amount: number, currency: string }, totalGrantedRefund: { __typename: 'Money', amount: number, currency: string }, totalRefundPending: { __typename: 'Money', amount: number, currency: string }, totalRefunded: { __typename: 'Money', amount: number, currency: string }, totalAuthorizePending: { __typename: 'Money', amount: number, currency: string }, totalAuthorized: { __typename: 'Money', amount: number, currency: string }, totalCaptured: { __typename: 'Money', amount: number, currency: string }, totalCharged: { __typename: 'Money', amount: number, currency: string }, totalChargePending: { __typename: 'Money', amount: number, currency: string }, totalCanceled: { __typename: 'Money', amount: number, currency: string }, totalCancelPending: { __typename: 'Money', amount: number, currency: string }, totalBalance: { __typename: 'Money', amount: number, currency: string }, undiscountedTotal: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, user: { __typename: 'User', id: string, email: string } | null, shippingMethods: Array<{ __typename: 'ShippingMethod', id: string, name: string, active: boolean, message: string | null, price: { __typename: 'Money', amount: number, currency: string } }>, invoices: Array<{ __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }>, channel: { __typename: 'Channel', isActive: boolean, id: string, name: string, currencyCode: string, slug: string, defaultCountry: { __typename: 'CountryDisplay', code: string }, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum } }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; export type OrderFulfillmentCancelMutationVariables = Exact<{ id: Scalars['ID']; @@ -11038,7 +11192,7 @@ export type OrderFulfillmentCancelMutationVariables = Exact<{ }>; -export type OrderFulfillmentCancelMutation = { __typename: 'Mutation', orderFulfillmentCancel: { __typename: 'FulfillmentCancel', errors: Array<{ __typename: 'OrderError', code: OrderErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null, orderLines: Array | null }>, order: { __typename: 'Order', id: string, displayGrossPrices: boolean, isShippingRequired: boolean, canFinalize: boolean, created: any, customerNote: string, number: string, isPaid: boolean, paymentStatus: PaymentChargeStatusEnum, shippingMethodName: string | null, collectionPointName: string | null, status: OrderStatus, actions: Array, userEmail: string | null, chargeStatus: OrderChargeStatusEnum, authorizeStatus: OrderAuthorizeStatusEnum, billingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, transactions: Array<{ __typename: 'TransactionItem', pspReference: string, externalUrl: string, createdAt: any, id: string, name: string, actions: Array, events: Array<{ __typename: 'TransactionEvent', externalUrl: string, id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, createdBy: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, amount: { __typename: 'Money', amount: number, currency: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } }>, payments: Array<{ __typename: 'Payment', id: string, isActive: boolean, actions: Array, gateway: string, paymentMethodType: string, modified: any, availableCaptureAmount: { __typename: 'Money', amount: number, currency: string } | null, capturedAmount: { __typename: 'Money', amount: number, currency: string } | null, total: { __typename: 'Money', amount: number, currency: string } | null, availableRefundAmount: { __typename: 'Money', amount: number, currency: string } | null, transactions: Array<{ __typename: 'Transaction', id: string, token: string, created: any, kind: TransactionKind, isSuccess: boolean }> | null }>, giftCards: Array<{ __typename: 'GiftCard', id: string, last4CodeChars: string, events: Array<{ __typename: 'GiftCardEvent', id: string, type: GiftCardEventsEnum | null, orderId: string | null, date: any | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }> }>, grantedRefunds: Array<{ __typename: 'OrderGrantedRefund', id: string, createdAt: any, shippingCostsIncluded: boolean, status: OrderGrantedRefundStatusEnum, reason: string | null, amount: { __typename: 'Money', currency: string, amount: number }, transactionEvents: Array<{ __typename: 'TransactionEvent', id: string }> | null, reasonReference: { __typename: 'Page', id: string, title: string } | null, user: { __typename: 'User', id: string, firstName: string, lastName: string, email: string, avatar: { __typename: 'Image', url: string, alt: string | null } | null } | null, app: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderGrantedRefundLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string } }> | null }>, discounts: Array<{ __typename: 'OrderDiscount', id: string, type: OrderDiscountType, name: string | null, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }>, events: Array<{ __typename: 'OrderEvent', id: string, amount: number | null, shippingCostsIncluded: boolean | null, date: any | null, email: string | null, emailType: OrderEventsEmailsEnum | null, invoiceNumber: string | null, message: string | null, quantity: number | null, transactionReference: string | null, type: OrderEventsEnum | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, relatedOrder: { __typename: 'Order', id: string, number: string } | null, related: { __typename: 'OrderEvent', id: string } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, app: { __typename: 'App', id: string, name: string | null, appUrl: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderEventOrderLineObject', quantity: number | null, itemName: string | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, orderLine: { __typename: 'OrderLine', id: string, productName: string, variantName: string } | null }> | null }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, created: any, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }>, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, shippingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, deliveryMethod: { __typename: 'ShippingMethod', id: string } | { __typename: 'Warehouse', id: string, clickAndCollectOption: WarehouseClickAndCollectOptionEnum } | null, shippingMethod: { __typename: 'ShippingMethod', id: string } | null, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, subtotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string }, tax: { __typename: 'Money', amount: number, currency: string } }, totalRemainingGrant: { __typename: 'Money', amount: number, currency: string }, totalGrantedRefund: { __typename: 'Money', amount: number, currency: string }, totalRefundPending: { __typename: 'Money', amount: number, currency: string }, totalRefunded: { __typename: 'Money', amount: number, currency: string }, totalAuthorizePending: { __typename: 'Money', amount: number, currency: string }, totalAuthorized: { __typename: 'Money', amount: number, currency: string }, totalCaptured: { __typename: 'Money', amount: number, currency: string }, totalCharged: { __typename: 'Money', amount: number, currency: string }, totalChargePending: { __typename: 'Money', amount: number, currency: string }, totalCanceled: { __typename: 'Money', amount: number, currency: string }, totalCancelPending: { __typename: 'Money', amount: number, currency: string }, totalBalance: { __typename: 'Money', amount: number, currency: string }, undiscountedTotal: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, user: { __typename: 'User', id: string, email: string } | null, shippingMethods: Array<{ __typename: 'ShippingMethod', id: string, name: string, active: boolean, message: string | null, price: { __typename: 'Money', amount: number, currency: string } }>, invoices: Array<{ __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }>, channel: { __typename: 'Channel', isActive: boolean, id: string, name: string, currencyCode: string, slug: string, defaultCountry: { __typename: 'CountryDisplay', code: string }, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum } }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; +export type OrderFulfillmentCancelMutation = { __typename: 'Mutation', orderFulfillmentCancel: { __typename: 'FulfillmentCancel', errors: Array<{ __typename: 'OrderError', code: OrderErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null, orderLines: Array | null }>, order: { __typename: 'Order', id: string, displayGrossPrices: boolean, isShippingRequired: boolean, canFinalize: boolean, created: any, customerNote: string, number: string, isPaid: boolean, paymentStatus: PaymentChargeStatusEnum, shippingMethodName: string | null, collectionPointName: string | null, status: OrderStatus, actions: Array, userEmail: string | null, chargeStatus: OrderChargeStatusEnum, authorizeStatus: OrderAuthorizeStatusEnum, billingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, transactions: Array<{ __typename: 'TransactionItem', pspReference: string, externalUrl: string, createdAt: any, id: string, name: string, actions: Array, events: Array<{ __typename: 'TransactionEvent', externalUrl: string, id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, createdBy: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, amount: { __typename: 'Money', amount: number, currency: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } }>, payments: Array<{ __typename: 'Payment', id: string, isActive: boolean, actions: Array, gateway: string, paymentMethodType: string, modified: any, availableCaptureAmount: { __typename: 'Money', amount: number, currency: string } | null, capturedAmount: { __typename: 'Money', amount: number, currency: string } | null, total: { __typename: 'Money', amount: number, currency: string } | null, availableRefundAmount: { __typename: 'Money', amount: number, currency: string } | null, transactions: Array<{ __typename: 'Transaction', id: string, token: string, created: any, kind: TransactionKind, isSuccess: boolean }> | null }>, giftCards: Array<{ __typename: 'GiftCard', id: string, last4CodeChars: string, events: Array<{ __typename: 'GiftCardEvent', id: string, type: GiftCardEventsEnum | null, orderId: string | null, date: any | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }> }>, grantedRefunds: Array<{ __typename: 'OrderGrantedRefund', id: string, createdAt: any, shippingCostsIncluded: boolean, status: OrderGrantedRefundStatusEnum, reason: string | null, amount: { __typename: 'Money', currency: string, amount: number }, transactionEvents: Array<{ __typename: 'TransactionEvent', id: string }> | null, reasonReference: { __typename: 'Page', id: string, title: string } | null, user: { __typename: 'User', id: string, firstName: string, lastName: string, email: string, avatar: { __typename: 'Image', url: string, alt: string | null } | null } | null, app: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderGrantedRefundLine', id: string, quantity: number, reason: string | null, orderLine: { __typename: 'OrderLine', id: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }> | null }>, discounts: Array<{ __typename: 'OrderDiscount', id: string, type: OrderDiscountType, name: string | null, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }>, events: Array<{ __typename: 'OrderEvent', id: string, amount: number | null, shippingCostsIncluded: boolean | null, date: any | null, email: string | null, emailType: OrderEventsEmailsEnum | null, invoiceNumber: string | null, message: string | null, quantity: number | null, transactionReference: string | null, type: OrderEventsEnum | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, relatedOrder: { __typename: 'Order', id: string, number: string } | null, related: { __typename: 'OrderEvent', id: string } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, app: { __typename: 'App', id: string, name: string | null, appUrl: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderEventOrderLineObject', quantity: number | null, itemName: string | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, orderLine: { __typename: 'OrderLine', id: string, productName: string, variantName: string } | null }> | null }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, created: any, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, reason: string | null, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, reason: string | null, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } | null, reasonReference: { __typename: 'Page', id: string, title: string } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null, reasonReference: { __typename: 'Page', id: string, title: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }>, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, shippingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, deliveryMethod: { __typename: 'ShippingMethod', id: string } | { __typename: 'Warehouse', id: string, clickAndCollectOption: WarehouseClickAndCollectOptionEnum } | null, shippingMethod: { __typename: 'ShippingMethod', id: string } | null, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, subtotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string }, tax: { __typename: 'Money', amount: number, currency: string } }, totalRemainingGrant: { __typename: 'Money', amount: number, currency: string }, totalGrantedRefund: { __typename: 'Money', amount: number, currency: string }, totalRefundPending: { __typename: 'Money', amount: number, currency: string }, totalRefunded: { __typename: 'Money', amount: number, currency: string }, totalAuthorizePending: { __typename: 'Money', amount: number, currency: string }, totalAuthorized: { __typename: 'Money', amount: number, currency: string }, totalCaptured: { __typename: 'Money', amount: number, currency: string }, totalCharged: { __typename: 'Money', amount: number, currency: string }, totalChargePending: { __typename: 'Money', amount: number, currency: string }, totalCanceled: { __typename: 'Money', amount: number, currency: string }, totalCancelPending: { __typename: 'Money', amount: number, currency: string }, totalBalance: { __typename: 'Money', amount: number, currency: string }, undiscountedTotal: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, user: { __typename: 'User', id: string, email: string } | null, shippingMethods: Array<{ __typename: 'ShippingMethod', id: string, name: string, active: boolean, message: string | null, price: { __typename: 'Money', amount: number, currency: string } }>, invoices: Array<{ __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }>, channel: { __typename: 'Channel', isActive: boolean, id: string, name: string, currencyCode: string, slug: string, defaultCountry: { __typename: 'CountryDisplay', code: string }, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum } }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; export type OrderNoteAddMutationVariables = Exact<{ order: Scalars['ID']; @@ -11062,7 +11216,7 @@ export type OrderUpdateMutationVariables = Exact<{ }>; -export type OrderUpdateMutation = { __typename: 'Mutation', orderUpdate: { __typename: 'OrderUpdate', errors: Array<{ __typename: 'OrderError', code: OrderErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null, orderLines: Array | null }>, order: { __typename: 'Order', id: string, displayGrossPrices: boolean, isShippingRequired: boolean, canFinalize: boolean, created: any, customerNote: string, number: string, isPaid: boolean, paymentStatus: PaymentChargeStatusEnum, shippingMethodName: string | null, collectionPointName: string | null, status: OrderStatus, actions: Array, userEmail: string | null, chargeStatus: OrderChargeStatusEnum, authorizeStatus: OrderAuthorizeStatusEnum, billingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, transactions: Array<{ __typename: 'TransactionItem', pspReference: string, externalUrl: string, createdAt: any, id: string, name: string, actions: Array, events: Array<{ __typename: 'TransactionEvent', externalUrl: string, id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, createdBy: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, amount: { __typename: 'Money', amount: number, currency: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } }>, payments: Array<{ __typename: 'Payment', id: string, isActive: boolean, actions: Array, gateway: string, paymentMethodType: string, modified: any, availableCaptureAmount: { __typename: 'Money', amount: number, currency: string } | null, capturedAmount: { __typename: 'Money', amount: number, currency: string } | null, total: { __typename: 'Money', amount: number, currency: string } | null, availableRefundAmount: { __typename: 'Money', amount: number, currency: string } | null, transactions: Array<{ __typename: 'Transaction', id: string, token: string, created: any, kind: TransactionKind, isSuccess: boolean }> | null }>, giftCards: Array<{ __typename: 'GiftCard', id: string, last4CodeChars: string, events: Array<{ __typename: 'GiftCardEvent', id: string, type: GiftCardEventsEnum | null, orderId: string | null, date: any | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }> }>, grantedRefunds: Array<{ __typename: 'OrderGrantedRefund', id: string, createdAt: any, shippingCostsIncluded: boolean, status: OrderGrantedRefundStatusEnum, reason: string | null, amount: { __typename: 'Money', currency: string, amount: number }, transactionEvents: Array<{ __typename: 'TransactionEvent', id: string }> | null, reasonReference: { __typename: 'Page', id: string, title: string } | null, user: { __typename: 'User', id: string, firstName: string, lastName: string, email: string, avatar: { __typename: 'Image', url: string, alt: string | null } | null } | null, app: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderGrantedRefundLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string } }> | null }>, discounts: Array<{ __typename: 'OrderDiscount', id: string, type: OrderDiscountType, name: string | null, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }>, events: Array<{ __typename: 'OrderEvent', id: string, amount: number | null, shippingCostsIncluded: boolean | null, date: any | null, email: string | null, emailType: OrderEventsEmailsEnum | null, invoiceNumber: string | null, message: string | null, quantity: number | null, transactionReference: string | null, type: OrderEventsEnum | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, relatedOrder: { __typename: 'Order', id: string, number: string } | null, related: { __typename: 'OrderEvent', id: string } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, app: { __typename: 'App', id: string, name: string | null, appUrl: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderEventOrderLineObject', quantity: number | null, itemName: string | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, orderLine: { __typename: 'OrderLine', id: string, productName: string, variantName: string } | null }> | null }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, created: any, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }>, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, shippingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, deliveryMethod: { __typename: 'ShippingMethod', id: string } | { __typename: 'Warehouse', id: string, clickAndCollectOption: WarehouseClickAndCollectOptionEnum } | null, shippingMethod: { __typename: 'ShippingMethod', id: string } | null, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, subtotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string }, tax: { __typename: 'Money', amount: number, currency: string } }, totalRemainingGrant: { __typename: 'Money', amount: number, currency: string }, totalGrantedRefund: { __typename: 'Money', amount: number, currency: string }, totalRefundPending: { __typename: 'Money', amount: number, currency: string }, totalRefunded: { __typename: 'Money', amount: number, currency: string }, totalAuthorizePending: { __typename: 'Money', amount: number, currency: string }, totalAuthorized: { __typename: 'Money', amount: number, currency: string }, totalCaptured: { __typename: 'Money', amount: number, currency: string }, totalCharged: { __typename: 'Money', amount: number, currency: string }, totalChargePending: { __typename: 'Money', amount: number, currency: string }, totalCanceled: { __typename: 'Money', amount: number, currency: string }, totalCancelPending: { __typename: 'Money', amount: number, currency: string }, totalBalance: { __typename: 'Money', amount: number, currency: string }, undiscountedTotal: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, user: { __typename: 'User', id: string, email: string } | null, shippingMethods: Array<{ __typename: 'ShippingMethod', id: string, name: string, active: boolean, message: string | null, price: { __typename: 'Money', amount: number, currency: string } }>, invoices: Array<{ __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }>, channel: { __typename: 'Channel', isActive: boolean, id: string, name: string, currencyCode: string, slug: string, defaultCountry: { __typename: 'CountryDisplay', code: string }, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum } }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; +export type OrderUpdateMutation = { __typename: 'Mutation', orderUpdate: { __typename: 'OrderUpdate', errors: Array<{ __typename: 'OrderError', code: OrderErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null, orderLines: Array | null }>, order: { __typename: 'Order', id: string, displayGrossPrices: boolean, isShippingRequired: boolean, canFinalize: boolean, created: any, customerNote: string, number: string, isPaid: boolean, paymentStatus: PaymentChargeStatusEnum, shippingMethodName: string | null, collectionPointName: string | null, status: OrderStatus, actions: Array, userEmail: string | null, chargeStatus: OrderChargeStatusEnum, authorizeStatus: OrderAuthorizeStatusEnum, billingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, transactions: Array<{ __typename: 'TransactionItem', pspReference: string, externalUrl: string, createdAt: any, id: string, name: string, actions: Array, events: Array<{ __typename: 'TransactionEvent', externalUrl: string, id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, createdBy: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, amount: { __typename: 'Money', amount: number, currency: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } }>, payments: Array<{ __typename: 'Payment', id: string, isActive: boolean, actions: Array, gateway: string, paymentMethodType: string, modified: any, availableCaptureAmount: { __typename: 'Money', amount: number, currency: string } | null, capturedAmount: { __typename: 'Money', amount: number, currency: string } | null, total: { __typename: 'Money', amount: number, currency: string } | null, availableRefundAmount: { __typename: 'Money', amount: number, currency: string } | null, transactions: Array<{ __typename: 'Transaction', id: string, token: string, created: any, kind: TransactionKind, isSuccess: boolean }> | null }>, giftCards: Array<{ __typename: 'GiftCard', id: string, last4CodeChars: string, events: Array<{ __typename: 'GiftCardEvent', id: string, type: GiftCardEventsEnum | null, orderId: string | null, date: any | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }> }>, grantedRefunds: Array<{ __typename: 'OrderGrantedRefund', id: string, createdAt: any, shippingCostsIncluded: boolean, status: OrderGrantedRefundStatusEnum, reason: string | null, amount: { __typename: 'Money', currency: string, amount: number }, transactionEvents: Array<{ __typename: 'TransactionEvent', id: string }> | null, reasonReference: { __typename: 'Page', id: string, title: string } | null, user: { __typename: 'User', id: string, firstName: string, lastName: string, email: string, avatar: { __typename: 'Image', url: string, alt: string | null } | null } | null, app: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderGrantedRefundLine', id: string, quantity: number, reason: string | null, orderLine: { __typename: 'OrderLine', id: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }> | null }>, discounts: Array<{ __typename: 'OrderDiscount', id: string, type: OrderDiscountType, name: string | null, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }>, events: Array<{ __typename: 'OrderEvent', id: string, amount: number | null, shippingCostsIncluded: boolean | null, date: any | null, email: string | null, emailType: OrderEventsEmailsEnum | null, invoiceNumber: string | null, message: string | null, quantity: number | null, transactionReference: string | null, type: OrderEventsEnum | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, relatedOrder: { __typename: 'Order', id: string, number: string } | null, related: { __typename: 'OrderEvent', id: string } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, app: { __typename: 'App', id: string, name: string | null, appUrl: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderEventOrderLineObject', quantity: number | null, itemName: string | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, orderLine: { __typename: 'OrderLine', id: string, productName: string, variantName: string } | null }> | null }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, created: any, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, reason: string | null, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, reason: string | null, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } | null, reasonReference: { __typename: 'Page', id: string, title: string } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null, reasonReference: { __typename: 'Page', id: string, title: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }>, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, shippingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, deliveryMethod: { __typename: 'ShippingMethod', id: string } | { __typename: 'Warehouse', id: string, clickAndCollectOption: WarehouseClickAndCollectOptionEnum } | null, shippingMethod: { __typename: 'ShippingMethod', id: string } | null, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, subtotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string }, tax: { __typename: 'Money', amount: number, currency: string } }, totalRemainingGrant: { __typename: 'Money', amount: number, currency: string }, totalGrantedRefund: { __typename: 'Money', amount: number, currency: string }, totalRefundPending: { __typename: 'Money', amount: number, currency: string }, totalRefunded: { __typename: 'Money', amount: number, currency: string }, totalAuthorizePending: { __typename: 'Money', amount: number, currency: string }, totalAuthorized: { __typename: 'Money', amount: number, currency: string }, totalCaptured: { __typename: 'Money', amount: number, currency: string }, totalCharged: { __typename: 'Money', amount: number, currency: string }, totalChargePending: { __typename: 'Money', amount: number, currency: string }, totalCanceled: { __typename: 'Money', amount: number, currency: string }, totalCancelPending: { __typename: 'Money', amount: number, currency: string }, totalBalance: { __typename: 'Money', amount: number, currency: string }, undiscountedTotal: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, user: { __typename: 'User', id: string, email: string } | null, shippingMethods: Array<{ __typename: 'ShippingMethod', id: string, name: string, active: boolean, message: string | null, price: { __typename: 'Money', amount: number, currency: string } }>, invoices: Array<{ __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }>, channel: { __typename: 'Channel', isActive: boolean, id: string, name: string, currencyCode: string, slug: string, defaultCountry: { __typename: 'CountryDisplay', code: string }, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum } }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; export type OrderDraftUpdateMutationVariables = Exact<{ id: Scalars['ID']; @@ -11070,7 +11224,7 @@ export type OrderDraftUpdateMutationVariables = Exact<{ }>; -export type OrderDraftUpdateMutation = { __typename: 'Mutation', draftOrderUpdate: { __typename: 'DraftOrderUpdate', errors: Array<{ __typename: 'OrderError', code: OrderErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null, orderLines: Array | null }>, order: { __typename: 'Order', id: string, displayGrossPrices: boolean, isShippingRequired: boolean, canFinalize: boolean, created: any, customerNote: string, number: string, isPaid: boolean, paymentStatus: PaymentChargeStatusEnum, shippingMethodName: string | null, collectionPointName: string | null, status: OrderStatus, actions: Array, userEmail: string | null, chargeStatus: OrderChargeStatusEnum, authorizeStatus: OrderAuthorizeStatusEnum, billingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, transactions: Array<{ __typename: 'TransactionItem', pspReference: string, externalUrl: string, createdAt: any, id: string, name: string, actions: Array, events: Array<{ __typename: 'TransactionEvent', externalUrl: string, id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, createdBy: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, amount: { __typename: 'Money', amount: number, currency: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } }>, payments: Array<{ __typename: 'Payment', id: string, isActive: boolean, actions: Array, gateway: string, paymentMethodType: string, modified: any, availableCaptureAmount: { __typename: 'Money', amount: number, currency: string } | null, capturedAmount: { __typename: 'Money', amount: number, currency: string } | null, total: { __typename: 'Money', amount: number, currency: string } | null, availableRefundAmount: { __typename: 'Money', amount: number, currency: string } | null, transactions: Array<{ __typename: 'Transaction', id: string, token: string, created: any, kind: TransactionKind, isSuccess: boolean }> | null }>, giftCards: Array<{ __typename: 'GiftCard', id: string, last4CodeChars: string, events: Array<{ __typename: 'GiftCardEvent', id: string, type: GiftCardEventsEnum | null, orderId: string | null, date: any | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }> }>, grantedRefunds: Array<{ __typename: 'OrderGrantedRefund', id: string, createdAt: any, shippingCostsIncluded: boolean, status: OrderGrantedRefundStatusEnum, reason: string | null, amount: { __typename: 'Money', currency: string, amount: number }, transactionEvents: Array<{ __typename: 'TransactionEvent', id: string }> | null, reasonReference: { __typename: 'Page', id: string, title: string } | null, user: { __typename: 'User', id: string, firstName: string, lastName: string, email: string, avatar: { __typename: 'Image', url: string, alt: string | null } | null } | null, app: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderGrantedRefundLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string } }> | null }>, discounts: Array<{ __typename: 'OrderDiscount', id: string, type: OrderDiscountType, name: string | null, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }>, events: Array<{ __typename: 'OrderEvent', id: string, amount: number | null, shippingCostsIncluded: boolean | null, date: any | null, email: string | null, emailType: OrderEventsEmailsEnum | null, invoiceNumber: string | null, message: string | null, quantity: number | null, transactionReference: string | null, type: OrderEventsEnum | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, relatedOrder: { __typename: 'Order', id: string, number: string } | null, related: { __typename: 'OrderEvent', id: string } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, app: { __typename: 'App', id: string, name: string | null, appUrl: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderEventOrderLineObject', quantity: number | null, itemName: string | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, orderLine: { __typename: 'OrderLine', id: string, productName: string, variantName: string } | null }> | null }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, created: any, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }>, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, shippingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, deliveryMethod: { __typename: 'ShippingMethod', id: string } | { __typename: 'Warehouse', id: string, clickAndCollectOption: WarehouseClickAndCollectOptionEnum } | null, shippingMethod: { __typename: 'ShippingMethod', id: string } | null, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, subtotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string }, tax: { __typename: 'Money', amount: number, currency: string } }, totalRemainingGrant: { __typename: 'Money', amount: number, currency: string }, totalGrantedRefund: { __typename: 'Money', amount: number, currency: string }, totalRefundPending: { __typename: 'Money', amount: number, currency: string }, totalRefunded: { __typename: 'Money', amount: number, currency: string }, totalAuthorizePending: { __typename: 'Money', amount: number, currency: string }, totalAuthorized: { __typename: 'Money', amount: number, currency: string }, totalCaptured: { __typename: 'Money', amount: number, currency: string }, totalCharged: { __typename: 'Money', amount: number, currency: string }, totalChargePending: { __typename: 'Money', amount: number, currency: string }, totalCanceled: { __typename: 'Money', amount: number, currency: string }, totalCancelPending: { __typename: 'Money', amount: number, currency: string }, totalBalance: { __typename: 'Money', amount: number, currency: string }, undiscountedTotal: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, user: { __typename: 'User', id: string, email: string } | null, shippingMethods: Array<{ __typename: 'ShippingMethod', id: string, name: string, active: boolean, message: string | null, price: { __typename: 'Money', amount: number, currency: string } }>, invoices: Array<{ __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }>, channel: { __typename: 'Channel', isActive: boolean, id: string, name: string, currencyCode: string, slug: string, defaultCountry: { __typename: 'CountryDisplay', code: string }, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum } }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; +export type OrderDraftUpdateMutation = { __typename: 'Mutation', draftOrderUpdate: { __typename: 'DraftOrderUpdate', errors: Array<{ __typename: 'OrderError', code: OrderErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null, orderLines: Array | null }>, order: { __typename: 'Order', id: string, displayGrossPrices: boolean, isShippingRequired: boolean, canFinalize: boolean, created: any, customerNote: string, number: string, isPaid: boolean, paymentStatus: PaymentChargeStatusEnum, shippingMethodName: string | null, collectionPointName: string | null, status: OrderStatus, actions: Array, userEmail: string | null, chargeStatus: OrderChargeStatusEnum, authorizeStatus: OrderAuthorizeStatusEnum, billingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, transactions: Array<{ __typename: 'TransactionItem', pspReference: string, externalUrl: string, createdAt: any, id: string, name: string, actions: Array, events: Array<{ __typename: 'TransactionEvent', externalUrl: string, id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, createdBy: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, amount: { __typename: 'Money', amount: number, currency: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } }>, payments: Array<{ __typename: 'Payment', id: string, isActive: boolean, actions: Array, gateway: string, paymentMethodType: string, modified: any, availableCaptureAmount: { __typename: 'Money', amount: number, currency: string } | null, capturedAmount: { __typename: 'Money', amount: number, currency: string } | null, total: { __typename: 'Money', amount: number, currency: string } | null, availableRefundAmount: { __typename: 'Money', amount: number, currency: string } | null, transactions: Array<{ __typename: 'Transaction', id: string, token: string, created: any, kind: TransactionKind, isSuccess: boolean }> | null }>, giftCards: Array<{ __typename: 'GiftCard', id: string, last4CodeChars: string, events: Array<{ __typename: 'GiftCardEvent', id: string, type: GiftCardEventsEnum | null, orderId: string | null, date: any | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }> }>, grantedRefunds: Array<{ __typename: 'OrderGrantedRefund', id: string, createdAt: any, shippingCostsIncluded: boolean, status: OrderGrantedRefundStatusEnum, reason: string | null, amount: { __typename: 'Money', currency: string, amount: number }, transactionEvents: Array<{ __typename: 'TransactionEvent', id: string }> | null, reasonReference: { __typename: 'Page', id: string, title: string } | null, user: { __typename: 'User', id: string, firstName: string, lastName: string, email: string, avatar: { __typename: 'Image', url: string, alt: string | null } | null } | null, app: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderGrantedRefundLine', id: string, quantity: number, reason: string | null, orderLine: { __typename: 'OrderLine', id: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }> | null }>, discounts: Array<{ __typename: 'OrderDiscount', id: string, type: OrderDiscountType, name: string | null, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }>, events: Array<{ __typename: 'OrderEvent', id: string, amount: number | null, shippingCostsIncluded: boolean | null, date: any | null, email: string | null, emailType: OrderEventsEmailsEnum | null, invoiceNumber: string | null, message: string | null, quantity: number | null, transactionReference: string | null, type: OrderEventsEnum | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, relatedOrder: { __typename: 'Order', id: string, number: string } | null, related: { __typename: 'OrderEvent', id: string } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, app: { __typename: 'App', id: string, name: string | null, appUrl: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderEventOrderLineObject', quantity: number | null, itemName: string | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, orderLine: { __typename: 'OrderLine', id: string, productName: string, variantName: string } | null }> | null }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, created: any, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, reason: string | null, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, reason: string | null, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } | null, reasonReference: { __typename: 'Page', id: string, title: string } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null, reasonReference: { __typename: 'Page', id: string, title: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }>, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, shippingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, deliveryMethod: { __typename: 'ShippingMethod', id: string } | { __typename: 'Warehouse', id: string, clickAndCollectOption: WarehouseClickAndCollectOptionEnum } | null, shippingMethod: { __typename: 'ShippingMethod', id: string } | null, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, subtotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string }, tax: { __typename: 'Money', amount: number, currency: string } }, totalRemainingGrant: { __typename: 'Money', amount: number, currency: string }, totalGrantedRefund: { __typename: 'Money', amount: number, currency: string }, totalRefundPending: { __typename: 'Money', amount: number, currency: string }, totalRefunded: { __typename: 'Money', amount: number, currency: string }, totalAuthorizePending: { __typename: 'Money', amount: number, currency: string }, totalAuthorized: { __typename: 'Money', amount: number, currency: string }, totalCaptured: { __typename: 'Money', amount: number, currency: string }, totalCharged: { __typename: 'Money', amount: number, currency: string }, totalChargePending: { __typename: 'Money', amount: number, currency: string }, totalCanceled: { __typename: 'Money', amount: number, currency: string }, totalCancelPending: { __typename: 'Money', amount: number, currency: string }, totalBalance: { __typename: 'Money', amount: number, currency: string }, undiscountedTotal: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, user: { __typename: 'User', id: string, email: string } | null, shippingMethods: Array<{ __typename: 'ShippingMethod', id: string, name: string, active: boolean, message: string | null, price: { __typename: 'Money', amount: number, currency: string } }>, invoices: Array<{ __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }>, channel: { __typename: 'Channel', isActive: boolean, id: string, name: string, currencyCode: string, slug: string, defaultCountry: { __typename: 'CountryDisplay', code: string }, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum } }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; export type OrderShippingMethodUpdateMutationVariables = Exact<{ id: Scalars['ID']; @@ -11078,7 +11232,7 @@ export type OrderShippingMethodUpdateMutationVariables = Exact<{ }>; -export type OrderShippingMethodUpdateMutation = { __typename: 'Mutation', orderUpdateShipping: { __typename: 'OrderUpdateShipping', errors: Array<{ __typename: 'OrderError', code: OrderErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null, orderLines: Array | null }>, order: { __typename: 'Order', id: string, shippingMethodName: string | null, displayGrossPrices: boolean, isShippingRequired: boolean, canFinalize: boolean, created: any, customerNote: string, number: string, isPaid: boolean, paymentStatus: PaymentChargeStatusEnum, collectionPointName: string | null, status: OrderStatus, actions: Array, userEmail: string | null, chargeStatus: OrderChargeStatusEnum, authorizeStatus: OrderAuthorizeStatusEnum, shippingMethods: Array<{ __typename: 'ShippingMethod', id: string, name: string, active: boolean, message: string | null, price: { __typename: 'Money', amount: number, currency: string } }>, total: { __typename: 'TaxedMoney', tax: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, shippingMethod: { __typename: 'ShippingMethod', id: string, name: string, price: { __typename: 'Money', amount: number, currency: string } } | null, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, billingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, transactions: Array<{ __typename: 'TransactionItem', pspReference: string, externalUrl: string, createdAt: any, id: string, name: string, actions: Array, events: Array<{ __typename: 'TransactionEvent', externalUrl: string, id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, createdBy: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, amount: { __typename: 'Money', amount: number, currency: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } }>, payments: Array<{ __typename: 'Payment', id: string, isActive: boolean, actions: Array, gateway: string, paymentMethodType: string, modified: any, availableCaptureAmount: { __typename: 'Money', amount: number, currency: string } | null, capturedAmount: { __typename: 'Money', amount: number, currency: string } | null, total: { __typename: 'Money', amount: number, currency: string } | null, availableRefundAmount: { __typename: 'Money', amount: number, currency: string } | null, transactions: Array<{ __typename: 'Transaction', id: string, token: string, created: any, kind: TransactionKind, isSuccess: boolean }> | null }>, giftCards: Array<{ __typename: 'GiftCard', id: string, last4CodeChars: string, events: Array<{ __typename: 'GiftCardEvent', id: string, type: GiftCardEventsEnum | null, orderId: string | null, date: any | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }> }>, grantedRefunds: Array<{ __typename: 'OrderGrantedRefund', id: string, createdAt: any, shippingCostsIncluded: boolean, status: OrderGrantedRefundStatusEnum, reason: string | null, amount: { __typename: 'Money', currency: string, amount: number }, transactionEvents: Array<{ __typename: 'TransactionEvent', id: string }> | null, reasonReference: { __typename: 'Page', id: string, title: string } | null, user: { __typename: 'User', id: string, firstName: string, lastName: string, email: string, avatar: { __typename: 'Image', url: string, alt: string | null } | null } | null, app: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderGrantedRefundLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string } }> | null }>, discounts: Array<{ __typename: 'OrderDiscount', id: string, type: OrderDiscountType, name: string | null, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }>, events: Array<{ __typename: 'OrderEvent', id: string, amount: number | null, shippingCostsIncluded: boolean | null, date: any | null, email: string | null, emailType: OrderEventsEmailsEnum | null, invoiceNumber: string | null, message: string | null, quantity: number | null, transactionReference: string | null, type: OrderEventsEnum | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, relatedOrder: { __typename: 'Order', id: string, number: string } | null, related: { __typename: 'OrderEvent', id: string } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, app: { __typename: 'App', id: string, name: string | null, appUrl: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderEventOrderLineObject', quantity: number | null, itemName: string | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, orderLine: { __typename: 'OrderLine', id: string, productName: string, variantName: string } | null }> | null }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, created: any, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }>, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, shippingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, deliveryMethod: { __typename: 'ShippingMethod', id: string } | { __typename: 'Warehouse', id: string, clickAndCollectOption: WarehouseClickAndCollectOptionEnum } | null, subtotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, totalRemainingGrant: { __typename: 'Money', amount: number, currency: string }, totalGrantedRefund: { __typename: 'Money', amount: number, currency: string }, totalRefundPending: { __typename: 'Money', amount: number, currency: string }, totalRefunded: { __typename: 'Money', amount: number, currency: string }, totalAuthorizePending: { __typename: 'Money', amount: number, currency: string }, totalAuthorized: { __typename: 'Money', amount: number, currency: string }, totalCaptured: { __typename: 'Money', amount: number, currency: string }, totalCharged: { __typename: 'Money', amount: number, currency: string }, totalChargePending: { __typename: 'Money', amount: number, currency: string }, totalCanceled: { __typename: 'Money', amount: number, currency: string }, totalCancelPending: { __typename: 'Money', amount: number, currency: string }, totalBalance: { __typename: 'Money', amount: number, currency: string }, undiscountedTotal: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, user: { __typename: 'User', id: string, email: string } | null, invoices: Array<{ __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }>, channel: { __typename: 'Channel', isActive: boolean, id: string, name: string, currencyCode: string, slug: string, defaultCountry: { __typename: 'CountryDisplay', code: string }, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum } }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; +export type OrderShippingMethodUpdateMutation = { __typename: 'Mutation', orderUpdateShipping: { __typename: 'OrderUpdateShipping', errors: Array<{ __typename: 'OrderError', code: OrderErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null, orderLines: Array | null }>, order: { __typename: 'Order', id: string, shippingMethodName: string | null, displayGrossPrices: boolean, isShippingRequired: boolean, canFinalize: boolean, created: any, customerNote: string, number: string, isPaid: boolean, paymentStatus: PaymentChargeStatusEnum, collectionPointName: string | null, status: OrderStatus, actions: Array, userEmail: string | null, chargeStatus: OrderChargeStatusEnum, authorizeStatus: OrderAuthorizeStatusEnum, shippingMethods: Array<{ __typename: 'ShippingMethod', id: string, name: string, active: boolean, message: string | null, price: { __typename: 'Money', amount: number, currency: string } }>, total: { __typename: 'TaxedMoney', tax: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, shippingMethod: { __typename: 'ShippingMethod', id: string, name: string, price: { __typename: 'Money', amount: number, currency: string } } | null, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, billingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, transactions: Array<{ __typename: 'TransactionItem', pspReference: string, externalUrl: string, createdAt: any, id: string, name: string, actions: Array, events: Array<{ __typename: 'TransactionEvent', externalUrl: string, id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, createdBy: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, amount: { __typename: 'Money', amount: number, currency: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } }>, payments: Array<{ __typename: 'Payment', id: string, isActive: boolean, actions: Array, gateway: string, paymentMethodType: string, modified: any, availableCaptureAmount: { __typename: 'Money', amount: number, currency: string } | null, capturedAmount: { __typename: 'Money', amount: number, currency: string } | null, total: { __typename: 'Money', amount: number, currency: string } | null, availableRefundAmount: { __typename: 'Money', amount: number, currency: string } | null, transactions: Array<{ __typename: 'Transaction', id: string, token: string, created: any, kind: TransactionKind, isSuccess: boolean }> | null }>, giftCards: Array<{ __typename: 'GiftCard', id: string, last4CodeChars: string, events: Array<{ __typename: 'GiftCardEvent', id: string, type: GiftCardEventsEnum | null, orderId: string | null, date: any | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }> }>, grantedRefunds: Array<{ __typename: 'OrderGrantedRefund', id: string, createdAt: any, shippingCostsIncluded: boolean, status: OrderGrantedRefundStatusEnum, reason: string | null, amount: { __typename: 'Money', currency: string, amount: number }, transactionEvents: Array<{ __typename: 'TransactionEvent', id: string }> | null, reasonReference: { __typename: 'Page', id: string, title: string } | null, user: { __typename: 'User', id: string, firstName: string, lastName: string, email: string, avatar: { __typename: 'Image', url: string, alt: string | null } | null } | null, app: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderGrantedRefundLine', id: string, quantity: number, reason: string | null, orderLine: { __typename: 'OrderLine', id: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }> | null }>, discounts: Array<{ __typename: 'OrderDiscount', id: string, type: OrderDiscountType, name: string | null, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }>, events: Array<{ __typename: 'OrderEvent', id: string, amount: number | null, shippingCostsIncluded: boolean | null, date: any | null, email: string | null, emailType: OrderEventsEmailsEnum | null, invoiceNumber: string | null, message: string | null, quantity: number | null, transactionReference: string | null, type: OrderEventsEnum | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, relatedOrder: { __typename: 'Order', id: string, number: string } | null, related: { __typename: 'OrderEvent', id: string } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, app: { __typename: 'App', id: string, name: string | null, appUrl: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderEventOrderLineObject', quantity: number | null, itemName: string | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, orderLine: { __typename: 'OrderLine', id: string, productName: string, variantName: string } | null }> | null }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, created: any, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, reason: string | null, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, reason: string | null, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } | null, reasonReference: { __typename: 'Page', id: string, title: string } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null, reasonReference: { __typename: 'Page', id: string, title: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }>, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, shippingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, deliveryMethod: { __typename: 'ShippingMethod', id: string } | { __typename: 'Warehouse', id: string, clickAndCollectOption: WarehouseClickAndCollectOptionEnum } | null, subtotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, totalRemainingGrant: { __typename: 'Money', amount: number, currency: string }, totalGrantedRefund: { __typename: 'Money', amount: number, currency: string }, totalRefundPending: { __typename: 'Money', amount: number, currency: string }, totalRefunded: { __typename: 'Money', amount: number, currency: string }, totalAuthorizePending: { __typename: 'Money', amount: number, currency: string }, totalAuthorized: { __typename: 'Money', amount: number, currency: string }, totalCaptured: { __typename: 'Money', amount: number, currency: string }, totalCharged: { __typename: 'Money', amount: number, currency: string }, totalChargePending: { __typename: 'Money', amount: number, currency: string }, totalCanceled: { __typename: 'Money', amount: number, currency: string }, totalCancelPending: { __typename: 'Money', amount: number, currency: string }, totalBalance: { __typename: 'Money', amount: number, currency: string }, undiscountedTotal: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, user: { __typename: 'User', id: string, email: string } | null, invoices: Array<{ __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }>, channel: { __typename: 'Channel', isActive: boolean, id: string, name: string, currencyCode: string, slug: string, defaultCountry: { __typename: 'CountryDisplay', code: string }, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum } }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; export type OrderDraftCreateMutationVariables = Exact<{ input: DraftOrderCreateInput; @@ -11116,7 +11270,7 @@ export type FulfillOrderMutationVariables = Exact<{ }>; -export type FulfillOrderMutation = { __typename: 'Mutation', orderFulfill: { __typename: 'OrderFulfill', errors: Array<{ __typename: 'OrderError', warehouse: string | null, code: OrderErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null, orderLines: Array | null }>, order: { __typename: 'Order', id: string, displayGrossPrices: boolean, isShippingRequired: boolean, canFinalize: boolean, created: any, customerNote: string, number: string, isPaid: boolean, paymentStatus: PaymentChargeStatusEnum, shippingMethodName: string | null, collectionPointName: string | null, status: OrderStatus, actions: Array, userEmail: string | null, chargeStatus: OrderChargeStatusEnum, authorizeStatus: OrderAuthorizeStatusEnum, billingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, transactions: Array<{ __typename: 'TransactionItem', pspReference: string, externalUrl: string, createdAt: any, id: string, name: string, actions: Array, events: Array<{ __typename: 'TransactionEvent', externalUrl: string, id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, createdBy: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, amount: { __typename: 'Money', amount: number, currency: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } }>, payments: Array<{ __typename: 'Payment', id: string, isActive: boolean, actions: Array, gateway: string, paymentMethodType: string, modified: any, availableCaptureAmount: { __typename: 'Money', amount: number, currency: string } | null, capturedAmount: { __typename: 'Money', amount: number, currency: string } | null, total: { __typename: 'Money', amount: number, currency: string } | null, availableRefundAmount: { __typename: 'Money', amount: number, currency: string } | null, transactions: Array<{ __typename: 'Transaction', id: string, token: string, created: any, kind: TransactionKind, isSuccess: boolean }> | null }>, giftCards: Array<{ __typename: 'GiftCard', id: string, last4CodeChars: string, events: Array<{ __typename: 'GiftCardEvent', id: string, type: GiftCardEventsEnum | null, orderId: string | null, date: any | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }> }>, grantedRefunds: Array<{ __typename: 'OrderGrantedRefund', id: string, createdAt: any, shippingCostsIncluded: boolean, status: OrderGrantedRefundStatusEnum, reason: string | null, amount: { __typename: 'Money', currency: string, amount: number }, transactionEvents: Array<{ __typename: 'TransactionEvent', id: string }> | null, reasonReference: { __typename: 'Page', id: string, title: string } | null, user: { __typename: 'User', id: string, firstName: string, lastName: string, email: string, avatar: { __typename: 'Image', url: string, alt: string | null } | null } | null, app: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderGrantedRefundLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string } }> | null }>, discounts: Array<{ __typename: 'OrderDiscount', id: string, type: OrderDiscountType, name: string | null, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }>, events: Array<{ __typename: 'OrderEvent', id: string, amount: number | null, shippingCostsIncluded: boolean | null, date: any | null, email: string | null, emailType: OrderEventsEmailsEnum | null, invoiceNumber: string | null, message: string | null, quantity: number | null, transactionReference: string | null, type: OrderEventsEnum | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, relatedOrder: { __typename: 'Order', id: string, number: string } | null, related: { __typename: 'OrderEvent', id: string } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, app: { __typename: 'App', id: string, name: string | null, appUrl: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderEventOrderLineObject', quantity: number | null, itemName: string | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, orderLine: { __typename: 'OrderLine', id: string, productName: string, variantName: string } | null }> | null }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, created: any, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }>, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, shippingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, deliveryMethod: { __typename: 'ShippingMethod', id: string } | { __typename: 'Warehouse', id: string, clickAndCollectOption: WarehouseClickAndCollectOptionEnum } | null, shippingMethod: { __typename: 'ShippingMethod', id: string } | null, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, subtotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string }, tax: { __typename: 'Money', amount: number, currency: string } }, totalRemainingGrant: { __typename: 'Money', amount: number, currency: string }, totalGrantedRefund: { __typename: 'Money', amount: number, currency: string }, totalRefundPending: { __typename: 'Money', amount: number, currency: string }, totalRefunded: { __typename: 'Money', amount: number, currency: string }, totalAuthorizePending: { __typename: 'Money', amount: number, currency: string }, totalAuthorized: { __typename: 'Money', amount: number, currency: string }, totalCaptured: { __typename: 'Money', amount: number, currency: string }, totalCharged: { __typename: 'Money', amount: number, currency: string }, totalChargePending: { __typename: 'Money', amount: number, currency: string }, totalCanceled: { __typename: 'Money', amount: number, currency: string }, totalCancelPending: { __typename: 'Money', amount: number, currency: string }, totalBalance: { __typename: 'Money', amount: number, currency: string }, undiscountedTotal: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, user: { __typename: 'User', id: string, email: string } | null, shippingMethods: Array<{ __typename: 'ShippingMethod', id: string, name: string, active: boolean, message: string | null, price: { __typename: 'Money', amount: number, currency: string } }>, invoices: Array<{ __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }>, channel: { __typename: 'Channel', isActive: boolean, id: string, name: string, currencyCode: string, slug: string, defaultCountry: { __typename: 'CountryDisplay', code: string }, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum } }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; +export type FulfillOrderMutation = { __typename: 'Mutation', orderFulfill: { __typename: 'OrderFulfill', errors: Array<{ __typename: 'OrderError', warehouse: string | null, code: OrderErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null, orderLines: Array | null }>, order: { __typename: 'Order', id: string, displayGrossPrices: boolean, isShippingRequired: boolean, canFinalize: boolean, created: any, customerNote: string, number: string, isPaid: boolean, paymentStatus: PaymentChargeStatusEnum, shippingMethodName: string | null, collectionPointName: string | null, status: OrderStatus, actions: Array, userEmail: string | null, chargeStatus: OrderChargeStatusEnum, authorizeStatus: OrderAuthorizeStatusEnum, billingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, transactions: Array<{ __typename: 'TransactionItem', pspReference: string, externalUrl: string, createdAt: any, id: string, name: string, actions: Array, events: Array<{ __typename: 'TransactionEvent', externalUrl: string, id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, createdBy: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, amount: { __typename: 'Money', amount: number, currency: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } }>, payments: Array<{ __typename: 'Payment', id: string, isActive: boolean, actions: Array, gateway: string, paymentMethodType: string, modified: any, availableCaptureAmount: { __typename: 'Money', amount: number, currency: string } | null, capturedAmount: { __typename: 'Money', amount: number, currency: string } | null, total: { __typename: 'Money', amount: number, currency: string } | null, availableRefundAmount: { __typename: 'Money', amount: number, currency: string } | null, transactions: Array<{ __typename: 'Transaction', id: string, token: string, created: any, kind: TransactionKind, isSuccess: boolean }> | null }>, giftCards: Array<{ __typename: 'GiftCard', id: string, last4CodeChars: string, events: Array<{ __typename: 'GiftCardEvent', id: string, type: GiftCardEventsEnum | null, orderId: string | null, date: any | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }> }>, grantedRefunds: Array<{ __typename: 'OrderGrantedRefund', id: string, createdAt: any, shippingCostsIncluded: boolean, status: OrderGrantedRefundStatusEnum, reason: string | null, amount: { __typename: 'Money', currency: string, amount: number }, transactionEvents: Array<{ __typename: 'TransactionEvent', id: string }> | null, reasonReference: { __typename: 'Page', id: string, title: string } | null, user: { __typename: 'User', id: string, firstName: string, lastName: string, email: string, avatar: { __typename: 'Image', url: string, alt: string | null } | null } | null, app: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderGrantedRefundLine', id: string, quantity: number, reason: string | null, orderLine: { __typename: 'OrderLine', id: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }> | null }>, discounts: Array<{ __typename: 'OrderDiscount', id: string, type: OrderDiscountType, name: string | null, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }>, events: Array<{ __typename: 'OrderEvent', id: string, amount: number | null, shippingCostsIncluded: boolean | null, date: any | null, email: string | null, emailType: OrderEventsEmailsEnum | null, invoiceNumber: string | null, message: string | null, quantity: number | null, transactionReference: string | null, type: OrderEventsEnum | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, relatedOrder: { __typename: 'Order', id: string, number: string } | null, related: { __typename: 'OrderEvent', id: string } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, app: { __typename: 'App', id: string, name: string | null, appUrl: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderEventOrderLineObject', quantity: number | null, itemName: string | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, orderLine: { __typename: 'OrderLine', id: string, productName: string, variantName: string } | null }> | null }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, created: any, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, reason: string | null, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, reason: string | null, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } | null, reasonReference: { __typename: 'Page', id: string, title: string } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null, reasonReference: { __typename: 'Page', id: string, title: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }>, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, shippingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, deliveryMethod: { __typename: 'ShippingMethod', id: string } | { __typename: 'Warehouse', id: string, clickAndCollectOption: WarehouseClickAndCollectOptionEnum } | null, shippingMethod: { __typename: 'ShippingMethod', id: string } | null, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, subtotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string }, tax: { __typename: 'Money', amount: number, currency: string } }, totalRemainingGrant: { __typename: 'Money', amount: number, currency: string }, totalGrantedRefund: { __typename: 'Money', amount: number, currency: string }, totalRefundPending: { __typename: 'Money', amount: number, currency: string }, totalRefunded: { __typename: 'Money', amount: number, currency: string }, totalAuthorizePending: { __typename: 'Money', amount: number, currency: string }, totalAuthorized: { __typename: 'Money', amount: number, currency: string }, totalCaptured: { __typename: 'Money', amount: number, currency: string }, totalCharged: { __typename: 'Money', amount: number, currency: string }, totalChargePending: { __typename: 'Money', amount: number, currency: string }, totalCanceled: { __typename: 'Money', amount: number, currency: string }, totalCancelPending: { __typename: 'Money', amount: number, currency: string }, totalBalance: { __typename: 'Money', amount: number, currency: string }, undiscountedTotal: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, user: { __typename: 'User', id: string, email: string } | null, shippingMethods: Array<{ __typename: 'ShippingMethod', id: string, name: string, active: boolean, message: string | null, price: { __typename: 'Money', amount: number, currency: string } }>, invoices: Array<{ __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }>, channel: { __typename: 'Channel', isActive: boolean, id: string, name: string, currencyCode: string, slug: string, defaultCountry: { __typename: 'CountryDisplay', code: string }, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum } }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; export type InvoiceRequestMutationVariables = Exact<{ orderId: Scalars['ID']; @@ -11168,13 +11322,14 @@ export type OrderGrantRefundAddWithOrderMutationVariables = Exact<{ orderId: Scalars['ID']; amount?: InputMaybe; reason?: InputMaybe; + reasonReferenceId?: InputMaybe; lines?: InputMaybe | OrderGrantRefundCreateLineInput>; grantRefundForShipping?: InputMaybe; transactionId: Scalars['ID']; }>; -export type OrderGrantRefundAddWithOrderMutation = { __typename: 'Mutation', orderGrantRefundCreate: { __typename: 'OrderGrantRefundCreate', errors: Array<{ __typename: 'OrderGrantRefundCreateError', field: string | null, message: string | null, code: OrderGrantRefundCreateErrorCode, lines: Array<{ __typename: 'OrderGrantRefundCreateLineError', field: string | null, message: string | null, code: OrderGrantRefundCreateLineErrorCode, lineId: string }> | null }>, grantedRefund: { __typename: 'OrderGrantedRefund', id: string } | null, order: { __typename: 'Order', id: string, displayGrossPrices: boolean, isShippingRequired: boolean, canFinalize: boolean, created: any, customerNote: string, number: string, isPaid: boolean, paymentStatus: PaymentChargeStatusEnum, shippingMethodName: string | null, collectionPointName: string | null, status: OrderStatus, actions: Array, userEmail: string | null, chargeStatus: OrderChargeStatusEnum, authorizeStatus: OrderAuthorizeStatusEnum, billingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, transactions: Array<{ __typename: 'TransactionItem', pspReference: string, externalUrl: string, createdAt: any, id: string, name: string, actions: Array, events: Array<{ __typename: 'TransactionEvent', externalUrl: string, id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, createdBy: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, amount: { __typename: 'Money', amount: number, currency: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } }>, payments: Array<{ __typename: 'Payment', id: string, isActive: boolean, actions: Array, gateway: string, paymentMethodType: string, modified: any, availableCaptureAmount: { __typename: 'Money', amount: number, currency: string } | null, capturedAmount: { __typename: 'Money', amount: number, currency: string } | null, total: { __typename: 'Money', amount: number, currency: string } | null, availableRefundAmount: { __typename: 'Money', amount: number, currency: string } | null, transactions: Array<{ __typename: 'Transaction', id: string, token: string, created: any, kind: TransactionKind, isSuccess: boolean }> | null }>, giftCards: Array<{ __typename: 'GiftCard', id: string, last4CodeChars: string, events: Array<{ __typename: 'GiftCardEvent', id: string, type: GiftCardEventsEnum | null, orderId: string | null, date: any | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }> }>, grantedRefunds: Array<{ __typename: 'OrderGrantedRefund', id: string, createdAt: any, shippingCostsIncluded: boolean, status: OrderGrantedRefundStatusEnum, reason: string | null, amount: { __typename: 'Money', currency: string, amount: number }, transactionEvents: Array<{ __typename: 'TransactionEvent', id: string }> | null, reasonReference: { __typename: 'Page', id: string, title: string } | null, user: { __typename: 'User', id: string, firstName: string, lastName: string, email: string, avatar: { __typename: 'Image', url: string, alt: string | null } | null } | null, app: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderGrantedRefundLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string } }> | null }>, discounts: Array<{ __typename: 'OrderDiscount', id: string, type: OrderDiscountType, name: string | null, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }>, events: Array<{ __typename: 'OrderEvent', id: string, amount: number | null, shippingCostsIncluded: boolean | null, date: any | null, email: string | null, emailType: OrderEventsEmailsEnum | null, invoiceNumber: string | null, message: string | null, quantity: number | null, transactionReference: string | null, type: OrderEventsEnum | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, relatedOrder: { __typename: 'Order', id: string, number: string } | null, related: { __typename: 'OrderEvent', id: string } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, app: { __typename: 'App', id: string, name: string | null, appUrl: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderEventOrderLineObject', quantity: number | null, itemName: string | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, orderLine: { __typename: 'OrderLine', id: string, productName: string, variantName: string } | null }> | null }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, created: any, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }>, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, shippingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, deliveryMethod: { __typename: 'ShippingMethod', id: string } | { __typename: 'Warehouse', id: string, clickAndCollectOption: WarehouseClickAndCollectOptionEnum } | null, shippingMethod: { __typename: 'ShippingMethod', id: string } | null, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, subtotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string }, tax: { __typename: 'Money', amount: number, currency: string } }, totalRemainingGrant: { __typename: 'Money', amount: number, currency: string }, totalGrantedRefund: { __typename: 'Money', amount: number, currency: string }, totalRefundPending: { __typename: 'Money', amount: number, currency: string }, totalRefunded: { __typename: 'Money', amount: number, currency: string }, totalAuthorizePending: { __typename: 'Money', amount: number, currency: string }, totalAuthorized: { __typename: 'Money', amount: number, currency: string }, totalCaptured: { __typename: 'Money', amount: number, currency: string }, totalCharged: { __typename: 'Money', amount: number, currency: string }, totalChargePending: { __typename: 'Money', amount: number, currency: string }, totalCanceled: { __typename: 'Money', amount: number, currency: string }, totalCancelPending: { __typename: 'Money', amount: number, currency: string }, totalBalance: { __typename: 'Money', amount: number, currency: string }, undiscountedTotal: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, user: { __typename: 'User', id: string, email: string } | null, shippingMethods: Array<{ __typename: 'ShippingMethod', id: string, name: string, active: boolean, message: string | null, price: { __typename: 'Money', amount: number, currency: string } }>, invoices: Array<{ __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }>, channel: { __typename: 'Channel', isActive: boolean, id: string, name: string, currencyCode: string, slug: string, defaultCountry: { __typename: 'CountryDisplay', code: string }, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum } }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; +export type OrderGrantRefundAddWithOrderMutation = { __typename: 'Mutation', orderGrantRefundCreate: { __typename: 'OrderGrantRefundCreate', errors: Array<{ __typename: 'OrderGrantRefundCreateError', field: string | null, message: string | null, code: OrderGrantRefundCreateErrorCode, lines: Array<{ __typename: 'OrderGrantRefundCreateLineError', field: string | null, message: string | null, code: OrderGrantRefundCreateLineErrorCode, lineId: string }> | null }>, grantedRefund: { __typename: 'OrderGrantedRefund', id: string } | null, order: { __typename: 'Order', id: string, displayGrossPrices: boolean, isShippingRequired: boolean, canFinalize: boolean, created: any, customerNote: string, number: string, isPaid: boolean, paymentStatus: PaymentChargeStatusEnum, shippingMethodName: string | null, collectionPointName: string | null, status: OrderStatus, actions: Array, userEmail: string | null, chargeStatus: OrderChargeStatusEnum, authorizeStatus: OrderAuthorizeStatusEnum, billingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, transactions: Array<{ __typename: 'TransactionItem', pspReference: string, externalUrl: string, createdAt: any, id: string, name: string, actions: Array, events: Array<{ __typename: 'TransactionEvent', externalUrl: string, id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, createdBy: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, amount: { __typename: 'Money', amount: number, currency: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } }>, payments: Array<{ __typename: 'Payment', id: string, isActive: boolean, actions: Array, gateway: string, paymentMethodType: string, modified: any, availableCaptureAmount: { __typename: 'Money', amount: number, currency: string } | null, capturedAmount: { __typename: 'Money', amount: number, currency: string } | null, total: { __typename: 'Money', amount: number, currency: string } | null, availableRefundAmount: { __typename: 'Money', amount: number, currency: string } | null, transactions: Array<{ __typename: 'Transaction', id: string, token: string, created: any, kind: TransactionKind, isSuccess: boolean }> | null }>, giftCards: Array<{ __typename: 'GiftCard', id: string, last4CodeChars: string, events: Array<{ __typename: 'GiftCardEvent', id: string, type: GiftCardEventsEnum | null, orderId: string | null, date: any | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }> }>, grantedRefunds: Array<{ __typename: 'OrderGrantedRefund', id: string, createdAt: any, shippingCostsIncluded: boolean, status: OrderGrantedRefundStatusEnum, reason: string | null, amount: { __typename: 'Money', currency: string, amount: number }, transactionEvents: Array<{ __typename: 'TransactionEvent', id: string }> | null, reasonReference: { __typename: 'Page', id: string, title: string } | null, user: { __typename: 'User', id: string, firstName: string, lastName: string, email: string, avatar: { __typename: 'Image', url: string, alt: string | null } | null } | null, app: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderGrantedRefundLine', id: string, quantity: number, reason: string | null, orderLine: { __typename: 'OrderLine', id: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }> | null }>, discounts: Array<{ __typename: 'OrderDiscount', id: string, type: OrderDiscountType, name: string | null, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }>, events: Array<{ __typename: 'OrderEvent', id: string, amount: number | null, shippingCostsIncluded: boolean | null, date: any | null, email: string | null, emailType: OrderEventsEmailsEnum | null, invoiceNumber: string | null, message: string | null, quantity: number | null, transactionReference: string | null, type: OrderEventsEnum | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, relatedOrder: { __typename: 'Order', id: string, number: string } | null, related: { __typename: 'OrderEvent', id: string } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, app: { __typename: 'App', id: string, name: string | null, appUrl: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderEventOrderLineObject', quantity: number | null, itemName: string | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, orderLine: { __typename: 'OrderLine', id: string, productName: string, variantName: string } | null }> | null }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, created: any, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, reason: string | null, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, reason: string | null, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } | null, reasonReference: { __typename: 'Page', id: string, title: string } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null, reasonReference: { __typename: 'Page', id: string, title: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }>, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, shippingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, deliveryMethod: { __typename: 'ShippingMethod', id: string } | { __typename: 'Warehouse', id: string, clickAndCollectOption: WarehouseClickAndCollectOptionEnum } | null, shippingMethod: { __typename: 'ShippingMethod', id: string } | null, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, subtotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string }, tax: { __typename: 'Money', amount: number, currency: string } }, totalRemainingGrant: { __typename: 'Money', amount: number, currency: string }, totalGrantedRefund: { __typename: 'Money', amount: number, currency: string }, totalRefundPending: { __typename: 'Money', amount: number, currency: string }, totalRefunded: { __typename: 'Money', amount: number, currency: string }, totalAuthorizePending: { __typename: 'Money', amount: number, currency: string }, totalAuthorized: { __typename: 'Money', amount: number, currency: string }, totalCaptured: { __typename: 'Money', amount: number, currency: string }, totalCharged: { __typename: 'Money', amount: number, currency: string }, totalChargePending: { __typename: 'Money', amount: number, currency: string }, totalCanceled: { __typename: 'Money', amount: number, currency: string }, totalCancelPending: { __typename: 'Money', amount: number, currency: string }, totalBalance: { __typename: 'Money', amount: number, currency: string }, undiscountedTotal: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, user: { __typename: 'User', id: string, email: string } | null, shippingMethods: Array<{ __typename: 'ShippingMethod', id: string, name: string, active: boolean, message: string | null, price: { __typename: 'Money', amount: number, currency: string } }>, invoices: Array<{ __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }>, channel: { __typename: 'Channel', isActive: boolean, id: string, name: string, currencyCode: string, slug: string, defaultCountry: { __typename: 'CountryDisplay', code: string }, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum } }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; export type OrderGrantRefundEditMutationVariables = Exact<{ refundId: Scalars['ID']; @@ -11188,7 +11343,7 @@ export type OrderGrantRefundEditMutationVariables = Exact<{ }>; -export type OrderGrantRefundEditMutation = { __typename: 'Mutation', orderGrantRefundUpdate: { __typename: 'OrderGrantRefundUpdate', errors: Array<{ __typename: 'OrderGrantRefundUpdateError', field: string | null, message: string | null, code: OrderGrantRefundUpdateErrorCode, addLines: Array<{ __typename: 'OrderGrantRefundUpdateLineError', field: string | null, message: string | null, code: OrderGrantRefundUpdateLineErrorCode, lineId: string }> | null, removeLines: Array<{ __typename: 'OrderGrantRefundUpdateLineError', field: string | null, message: string | null, code: OrderGrantRefundUpdateLineErrorCode, lineId: string }> | null }>, order: { __typename: 'Order', id: string, number: string, lines: Array<{ __typename: 'OrderLine', id: string, productName: string, quantity: number, quantityToFulfill: number, variantName: string, thumbnail: { __typename: 'Image', url: string } | null, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } } }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, fulfillmentOrder: number, status: FulfillmentStatus, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, productName: string, quantity: number, quantityToFulfill: number, variantName: string, thumbnail: { __typename: 'Image', url: string } | null, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } } } | null }> | null }>, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, grantedRefunds: Array<{ __typename: 'OrderGrantedRefund', id: string, reason: string | null, shippingCostsIncluded: boolean, status: OrderGrantedRefundStatusEnum, reasonReference: { __typename: 'Page', id: string, title: string } | null, amount: { __typename: 'Money', amount: number, currency: string }, transaction: { __typename: 'TransactionItem', id: string } | null, lines: Array<{ __typename: 'OrderGrantedRefundLine', id: string, quantity: number, reason: string | null, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } }> | null }>, transactions: Array<{ __typename: 'TransactionItem', pspReference: string, externalUrl: string, createdAt: any, id: string, name: string, actions: Array, events: Array<{ __typename: 'TransactionEvent', externalUrl: string, id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, createdBy: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, amount: { __typename: 'Money', amount: number, currency: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } }> } | null } | null }; +export type OrderGrantRefundEditMutation = { __typename: 'Mutation', orderGrantRefundUpdate: { __typename: 'OrderGrantRefundUpdate', errors: Array<{ __typename: 'OrderGrantRefundUpdateError', field: string | null, message: string | null, code: OrderGrantRefundUpdateErrorCode, addLines: Array<{ __typename: 'OrderGrantRefundUpdateLineError', field: string | null, message: string | null, code: OrderGrantRefundUpdateLineErrorCode, lineId: string }> | null, removeLines: Array<{ __typename: 'OrderGrantRefundUpdateLineError', field: string | null, message: string | null, code: OrderGrantRefundUpdateLineErrorCode, lineId: string }> | null }>, order: { __typename: 'Order', id: string, number: string, lines: Array<{ __typename: 'OrderLine', id: string, productName: string, quantity: number, quantityToFulfill: number, variantName: string, thumbnail: { __typename: 'Image', url: string } | null, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } } }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, fulfillmentOrder: number, status: FulfillmentStatus, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, productName: string, quantity: number, quantityToFulfill: number, variantName: string, thumbnail: { __typename: 'Image', url: string } | null, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } } } | null }> | null }>, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, grantedRefunds: Array<{ __typename: 'OrderGrantedRefund', id: string, reason: string | null, shippingCostsIncluded: boolean, status: OrderGrantedRefundStatusEnum, reasonReference: { __typename: 'Page', id: string, title: string } | null, amount: { __typename: 'Money', amount: number, currency: string }, transaction: { __typename: 'TransactionItem', id: string } | null, lines: Array<{ __typename: 'OrderGrantedRefundLine', id: string, quantity: number, reason: string | null, reasonReference: { __typename: 'Page', id: string, title: string } | null, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } }> | null }>, transactions: Array<{ __typename: 'TransactionItem', pspReference: string, externalUrl: string, createdAt: any, id: string, name: string, actions: Array, events: Array<{ __typename: 'TransactionEvent', externalUrl: string, id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, createdBy: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, amount: { __typename: 'Money', amount: number, currency: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } }> } | null } | null }; export type OrderSendRefundMutationVariables = Exact<{ amount: Scalars['PositiveDecimal']; @@ -11258,7 +11413,7 @@ export type OrderDetailsQueryVariables = Exact<{ }>; -export type OrderDetailsQuery = { __typename: 'Query', order: { __typename: 'Order', id: string, displayGrossPrices: boolean, isShippingRequired: boolean, canFinalize: boolean, created: any, customerNote: string, number: string, isPaid: boolean, paymentStatus: PaymentChargeStatusEnum, shippingMethodName: string | null, collectionPointName: string | null, status: OrderStatus, actions: Array, userEmail: string | null, chargeStatus: OrderChargeStatusEnum, authorizeStatus: OrderAuthorizeStatusEnum, billingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, transactions: Array<{ __typename: 'TransactionItem', pspReference: string, externalUrl: string, createdAt: any, id: string, name: string, actions: Array, events: Array<{ __typename: 'TransactionEvent', externalUrl: string, id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, createdBy: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, amount: { __typename: 'Money', amount: number, currency: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } }>, payments: Array<{ __typename: 'Payment', id: string, isActive: boolean, actions: Array, gateway: string, paymentMethodType: string, modified: any, availableCaptureAmount: { __typename: 'Money', amount: number, currency: string } | null, capturedAmount: { __typename: 'Money', amount: number, currency: string } | null, total: { __typename: 'Money', amount: number, currency: string } | null, availableRefundAmount: { __typename: 'Money', amount: number, currency: string } | null, transactions: Array<{ __typename: 'Transaction', id: string, token: string, created: any, kind: TransactionKind, isSuccess: boolean }> | null }>, giftCards: Array<{ __typename: 'GiftCard', id: string, last4CodeChars: string, events: Array<{ __typename: 'GiftCardEvent', id: string, type: GiftCardEventsEnum | null, orderId: string | null, date: any | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }> }>, grantedRefunds: Array<{ __typename: 'OrderGrantedRefund', id: string, createdAt: any, shippingCostsIncluded: boolean, status: OrderGrantedRefundStatusEnum, reason: string | null, amount: { __typename: 'Money', currency: string, amount: number }, transactionEvents: Array<{ __typename: 'TransactionEvent', id: string }> | null, reasonReference: { __typename: 'Page', id: string, title: string } | null, user: { __typename: 'User', id: string, firstName: string, lastName: string, email: string, avatar: { __typename: 'Image', url: string, alt: string | null } | null } | null, app: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderGrantedRefundLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string } }> | null }>, discounts: Array<{ __typename: 'OrderDiscount', id: string, type: OrderDiscountType, name: string | null, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }>, events: Array<{ __typename: 'OrderEvent', id: string, amount: number | null, shippingCostsIncluded: boolean | null, date: any | null, email: string | null, emailType: OrderEventsEmailsEnum | null, invoiceNumber: string | null, message: string | null, quantity: number | null, transactionReference: string | null, type: OrderEventsEnum | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, relatedOrder: { __typename: 'Order', id: string, number: string } | null, related: { __typename: 'OrderEvent', id: string } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, app: { __typename: 'App', id: string, name: string | null, appUrl: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderEventOrderLineObject', quantity: number | null, itemName: string | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, orderLine: { __typename: 'OrderLine', id: string, productName: string, variantName: string } | null }> | null }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, created: any, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }>, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, shippingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, deliveryMethod: { __typename: 'ShippingMethod', id: string } | { __typename: 'Warehouse', id: string, clickAndCollectOption: WarehouseClickAndCollectOptionEnum } | null, shippingMethod: { __typename: 'ShippingMethod', id: string } | null, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, subtotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string }, tax: { __typename: 'Money', amount: number, currency: string } }, totalRemainingGrant: { __typename: 'Money', amount: number, currency: string }, totalGrantedRefund: { __typename: 'Money', amount: number, currency: string }, totalRefundPending: { __typename: 'Money', amount: number, currency: string }, totalRefunded: { __typename: 'Money', amount: number, currency: string }, totalAuthorizePending: { __typename: 'Money', amount: number, currency: string }, totalAuthorized: { __typename: 'Money', amount: number, currency: string }, totalCaptured: { __typename: 'Money', amount: number, currency: string }, totalCharged: { __typename: 'Money', amount: number, currency: string }, totalChargePending: { __typename: 'Money', amount: number, currency: string }, totalCanceled: { __typename: 'Money', amount: number, currency: string }, totalCancelPending: { __typename: 'Money', amount: number, currency: string }, totalBalance: { __typename: 'Money', amount: number, currency: string }, undiscountedTotal: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, user: { __typename: 'User', id: string, email: string } | null, shippingMethods: Array<{ __typename: 'ShippingMethod', id: string, name: string, active: boolean, message: string | null, price: { __typename: 'Money', amount: number, currency: string } }>, invoices: Array<{ __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }>, channel: { __typename: 'Channel', isActive: boolean, id: string, name: string, currencyCode: string, slug: string, defaultCountry: { __typename: 'CountryDisplay', code: string }, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum } }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null, shop: { __typename: 'Shop', defaultWeightUnit: WeightUnitsEnum | null, fulfillmentAllowUnpaid: boolean, fulfillmentAutoApprove: boolean, countries: Array<{ __typename: 'CountryDisplay', code: string, country: string }>, availablePaymentGateways: Array<{ __typename: 'PaymentGateway', name: string, id: string }> } }; +export type OrderDetailsQuery = { __typename: 'Query', order: { __typename: 'Order', id: string, displayGrossPrices: boolean, isShippingRequired: boolean, canFinalize: boolean, created: any, customerNote: string, number: string, isPaid: boolean, paymentStatus: PaymentChargeStatusEnum, shippingMethodName: string | null, collectionPointName: string | null, status: OrderStatus, actions: Array, userEmail: string | null, chargeStatus: OrderChargeStatusEnum, authorizeStatus: OrderAuthorizeStatusEnum, billingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, transactions: Array<{ __typename: 'TransactionItem', pspReference: string, externalUrl: string, createdAt: any, id: string, name: string, actions: Array, events: Array<{ __typename: 'TransactionEvent', externalUrl: string, id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, createdBy: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, amount: { __typename: 'Money', amount: number, currency: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } }>, payments: Array<{ __typename: 'Payment', id: string, isActive: boolean, actions: Array, gateway: string, paymentMethodType: string, modified: any, availableCaptureAmount: { __typename: 'Money', amount: number, currency: string } | null, capturedAmount: { __typename: 'Money', amount: number, currency: string } | null, total: { __typename: 'Money', amount: number, currency: string } | null, availableRefundAmount: { __typename: 'Money', amount: number, currency: string } | null, transactions: Array<{ __typename: 'Transaction', id: string, token: string, created: any, kind: TransactionKind, isSuccess: boolean }> | null }>, giftCards: Array<{ __typename: 'GiftCard', id: string, last4CodeChars: string, events: Array<{ __typename: 'GiftCardEvent', id: string, type: GiftCardEventsEnum | null, orderId: string | null, date: any | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }> }>, grantedRefunds: Array<{ __typename: 'OrderGrantedRefund', id: string, createdAt: any, shippingCostsIncluded: boolean, status: OrderGrantedRefundStatusEnum, reason: string | null, amount: { __typename: 'Money', currency: string, amount: number }, transactionEvents: Array<{ __typename: 'TransactionEvent', id: string }> | null, reasonReference: { __typename: 'Page', id: string, title: string } | null, user: { __typename: 'User', id: string, firstName: string, lastName: string, email: string, avatar: { __typename: 'Image', url: string, alt: string | null } | null } | null, app: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderGrantedRefundLine', id: string, quantity: number, reason: string | null, orderLine: { __typename: 'OrderLine', id: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }> | null }>, discounts: Array<{ __typename: 'OrderDiscount', id: string, type: OrderDiscountType, name: string | null, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }>, events: Array<{ __typename: 'OrderEvent', id: string, amount: number | null, shippingCostsIncluded: boolean | null, date: any | null, email: string | null, emailType: OrderEventsEmailsEnum | null, invoiceNumber: string | null, message: string | null, quantity: number | null, transactionReference: string | null, type: OrderEventsEnum | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, relatedOrder: { __typename: 'Order', id: string, number: string } | null, related: { __typename: 'OrderEvent', id: string } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, app: { __typename: 'App', id: string, name: string | null, appUrl: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderEventOrderLineObject', quantity: number | null, itemName: string | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, orderLine: { __typename: 'OrderLine', id: string, productName: string, variantName: string } | null }> | null }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, created: any, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, reason: string | null, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, reason: string | null, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } | null, reasonReference: { __typename: 'Page', id: string, title: string } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null, reasonReference: { __typename: 'Page', id: string, title: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }>, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, shippingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, deliveryMethod: { __typename: 'ShippingMethod', id: string } | { __typename: 'Warehouse', id: string, clickAndCollectOption: WarehouseClickAndCollectOptionEnum } | null, shippingMethod: { __typename: 'ShippingMethod', id: string } | null, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, subtotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string }, tax: { __typename: 'Money', amount: number, currency: string } }, totalRemainingGrant: { __typename: 'Money', amount: number, currency: string }, totalGrantedRefund: { __typename: 'Money', amount: number, currency: string }, totalRefundPending: { __typename: 'Money', amount: number, currency: string }, totalRefunded: { __typename: 'Money', amount: number, currency: string }, totalAuthorizePending: { __typename: 'Money', amount: number, currency: string }, totalAuthorized: { __typename: 'Money', amount: number, currency: string }, totalCaptured: { __typename: 'Money', amount: number, currency: string }, totalCharged: { __typename: 'Money', amount: number, currency: string }, totalChargePending: { __typename: 'Money', amount: number, currency: string }, totalCanceled: { __typename: 'Money', amount: number, currency: string }, totalCancelPending: { __typename: 'Money', amount: number, currency: string }, totalBalance: { __typename: 'Money', amount: number, currency: string }, undiscountedTotal: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, user: { __typename: 'User', id: string, email: string } | null, shippingMethods: Array<{ __typename: 'ShippingMethod', id: string, name: string, active: boolean, message: string | null, price: { __typename: 'Money', amount: number, currency: string } }>, invoices: Array<{ __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }>, channel: { __typename: 'Channel', isActive: boolean, id: string, name: string, currencyCode: string, slug: string, defaultCountry: { __typename: 'CountryDisplay', code: string }, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum } }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null, shop: { __typename: 'Shop', defaultWeightUnit: WeightUnitsEnum | null, fulfillmentAllowUnpaid: boolean, fulfillmentAutoApprove: boolean, countries: Array<{ __typename: 'CountryDisplay', code: string, country: string }>, availablePaymentGateways: Array<{ __typename: 'PaymentGateway', name: string, id: string }> } }; export type OrderDetailsWithMetadataQueryVariables = Exact<{ id: Scalars['ID']; @@ -11266,7 +11421,7 @@ export type OrderDetailsWithMetadataQueryVariables = Exact<{ }>; -export type OrderDetailsWithMetadataQuery = { __typename: 'Query', order: { __typename: 'Order', id: string, displayGrossPrices: boolean, isShippingRequired: boolean, canFinalize: boolean, created: any, customerNote: string, number: string, isPaid: boolean, paymentStatus: PaymentChargeStatusEnum, shippingMethodName: string | null, collectionPointName: string | null, status: OrderStatus, actions: Array, userEmail: string | null, chargeStatus: OrderChargeStatusEnum, authorizeStatus: OrderAuthorizeStatusEnum, fulfillments: Array<{ __typename: 'Fulfillment', id: string, created: any, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata?: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }>, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, billingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, transactions: Array<{ __typename: 'TransactionItem', pspReference: string, externalUrl: string, createdAt: any, id: string, name: string, actions: Array, events: Array<{ __typename: 'TransactionEvent', externalUrl: string, id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, createdBy: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, amount: { __typename: 'Money', amount: number, currency: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } }>, payments: Array<{ __typename: 'Payment', id: string, isActive: boolean, actions: Array, gateway: string, paymentMethodType: string, modified: any, availableCaptureAmount: { __typename: 'Money', amount: number, currency: string } | null, capturedAmount: { __typename: 'Money', amount: number, currency: string } | null, total: { __typename: 'Money', amount: number, currency: string } | null, availableRefundAmount: { __typename: 'Money', amount: number, currency: string } | null, transactions: Array<{ __typename: 'Transaction', id: string, token: string, created: any, kind: TransactionKind, isSuccess: boolean }> | null }>, giftCards: Array<{ __typename: 'GiftCard', id: string, last4CodeChars: string, events: Array<{ __typename: 'GiftCardEvent', id: string, type: GiftCardEventsEnum | null, orderId: string | null, date: any | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }> }>, grantedRefunds: Array<{ __typename: 'OrderGrantedRefund', id: string, createdAt: any, shippingCostsIncluded: boolean, status: OrderGrantedRefundStatusEnum, reason: string | null, amount: { __typename: 'Money', currency: string, amount: number }, transactionEvents: Array<{ __typename: 'TransactionEvent', id: string }> | null, reasonReference: { __typename: 'Page', id: string, title: string } | null, user: { __typename: 'User', id: string, firstName: string, lastName: string, email: string, avatar: { __typename: 'Image', url: string, alt: string | null } | null } | null, app: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderGrantedRefundLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string } }> | null }>, discounts: Array<{ __typename: 'OrderDiscount', id: string, type: OrderDiscountType, name: string | null, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }>, events: Array<{ __typename: 'OrderEvent', id: string, amount: number | null, shippingCostsIncluded: boolean | null, date: any | null, email: string | null, emailType: OrderEventsEmailsEnum | null, invoiceNumber: string | null, message: string | null, quantity: number | null, transactionReference: string | null, type: OrderEventsEnum | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, relatedOrder: { __typename: 'Order', id: string, number: string } | null, related: { __typename: 'OrderEvent', id: string } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, app: { __typename: 'App', id: string, name: string | null, appUrl: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderEventOrderLineObject', quantity: number | null, itemName: string | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, orderLine: { __typename: 'OrderLine', id: string, productName: string, variantName: string } | null }> | null }>, shippingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, deliveryMethod: { __typename: 'ShippingMethod', id: string } | { __typename: 'Warehouse', id: string, clickAndCollectOption: WarehouseClickAndCollectOptionEnum } | null, shippingMethod: { __typename: 'ShippingMethod', id: string } | null, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, subtotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string }, tax: { __typename: 'Money', amount: number, currency: string } }, totalRemainingGrant: { __typename: 'Money', amount: number, currency: string }, totalGrantedRefund: { __typename: 'Money', amount: number, currency: string }, totalRefundPending: { __typename: 'Money', amount: number, currency: string }, totalRefunded: { __typename: 'Money', amount: number, currency: string }, totalAuthorizePending: { __typename: 'Money', amount: number, currency: string }, totalAuthorized: { __typename: 'Money', amount: number, currency: string }, totalCaptured: { __typename: 'Money', amount: number, currency: string }, totalCharged: { __typename: 'Money', amount: number, currency: string }, totalChargePending: { __typename: 'Money', amount: number, currency: string }, totalCanceled: { __typename: 'Money', amount: number, currency: string }, totalCancelPending: { __typename: 'Money', amount: number, currency: string }, totalBalance: { __typename: 'Money', amount: number, currency: string }, undiscountedTotal: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, user: { __typename: 'User', id: string, email: string } | null, shippingMethods: Array<{ __typename: 'ShippingMethod', id: string, name: string, active: boolean, message: string | null, price: { __typename: 'Money', amount: number, currency: string } }>, invoices: Array<{ __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }>, channel: { __typename: 'Channel', isActive: boolean, id: string, name: string, currencyCode: string, slug: string, defaultCountry: { __typename: 'CountryDisplay', code: string }, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum } }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null, shop: { __typename: 'Shop', defaultWeightUnit: WeightUnitsEnum | null, fulfillmentAllowUnpaid: boolean, fulfillmentAutoApprove: boolean, countries: Array<{ __typename: 'CountryDisplay', code: string, country: string }>, availablePaymentGateways: Array<{ __typename: 'PaymentGateway', name: string, id: string }> } }; +export type OrderDetailsWithMetadataQuery = { __typename: 'Query', order: { __typename: 'Order', id: string, displayGrossPrices: boolean, isShippingRequired: boolean, canFinalize: boolean, created: any, customerNote: string, number: string, isPaid: boolean, paymentStatus: PaymentChargeStatusEnum, shippingMethodName: string | null, collectionPointName: string | null, status: OrderStatus, actions: Array, userEmail: string | null, chargeStatus: OrderChargeStatusEnum, authorizeStatus: OrderAuthorizeStatusEnum, fulfillments: Array<{ __typename: 'Fulfillment', id: string, created: any, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, reason: string | null, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, reason: string | null, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata?: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null, reasonReference: { __typename: 'Page', id: string, title: string } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null, reasonReference: { __typename: 'Page', id: string, title: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }>, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, billingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, transactions: Array<{ __typename: 'TransactionItem', pspReference: string, externalUrl: string, createdAt: any, id: string, name: string, actions: Array, events: Array<{ __typename: 'TransactionEvent', externalUrl: string, id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, createdBy: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, amount: { __typename: 'Money', amount: number, currency: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } }>, payments: Array<{ __typename: 'Payment', id: string, isActive: boolean, actions: Array, gateway: string, paymentMethodType: string, modified: any, availableCaptureAmount: { __typename: 'Money', amount: number, currency: string } | null, capturedAmount: { __typename: 'Money', amount: number, currency: string } | null, total: { __typename: 'Money', amount: number, currency: string } | null, availableRefundAmount: { __typename: 'Money', amount: number, currency: string } | null, transactions: Array<{ __typename: 'Transaction', id: string, token: string, created: any, kind: TransactionKind, isSuccess: boolean }> | null }>, giftCards: Array<{ __typename: 'GiftCard', id: string, last4CodeChars: string, events: Array<{ __typename: 'GiftCardEvent', id: string, type: GiftCardEventsEnum | null, orderId: string | null, date: any | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }> }>, grantedRefunds: Array<{ __typename: 'OrderGrantedRefund', id: string, createdAt: any, shippingCostsIncluded: boolean, status: OrderGrantedRefundStatusEnum, reason: string | null, amount: { __typename: 'Money', currency: string, amount: number }, transactionEvents: Array<{ __typename: 'TransactionEvent', id: string }> | null, reasonReference: { __typename: 'Page', id: string, title: string } | null, user: { __typename: 'User', id: string, firstName: string, lastName: string, email: string, avatar: { __typename: 'Image', url: string, alt: string | null } | null } | null, app: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderGrantedRefundLine', id: string, quantity: number, reason: string | null, orderLine: { __typename: 'OrderLine', id: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }> | null }>, discounts: Array<{ __typename: 'OrderDiscount', id: string, type: OrderDiscountType, name: string | null, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }>, events: Array<{ __typename: 'OrderEvent', id: string, amount: number | null, shippingCostsIncluded: boolean | null, date: any | null, email: string | null, emailType: OrderEventsEmailsEnum | null, invoiceNumber: string | null, message: string | null, quantity: number | null, transactionReference: string | null, type: OrderEventsEnum | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, relatedOrder: { __typename: 'Order', id: string, number: string } | null, related: { __typename: 'OrderEvent', id: string } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, app: { __typename: 'App', id: string, name: string | null, appUrl: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderEventOrderLineObject', quantity: number | null, itemName: string | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, orderLine: { __typename: 'OrderLine', id: string, productName: string, variantName: string } | null }> | null }>, shippingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, deliveryMethod: { __typename: 'ShippingMethod', id: string } | { __typename: 'Warehouse', id: string, clickAndCollectOption: WarehouseClickAndCollectOptionEnum } | null, shippingMethod: { __typename: 'ShippingMethod', id: string } | null, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, subtotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string }, tax: { __typename: 'Money', amount: number, currency: string } }, totalRemainingGrant: { __typename: 'Money', amount: number, currency: string }, totalGrantedRefund: { __typename: 'Money', amount: number, currency: string }, totalRefundPending: { __typename: 'Money', amount: number, currency: string }, totalRefunded: { __typename: 'Money', amount: number, currency: string }, totalAuthorizePending: { __typename: 'Money', amount: number, currency: string }, totalAuthorized: { __typename: 'Money', amount: number, currency: string }, totalCaptured: { __typename: 'Money', amount: number, currency: string }, totalCharged: { __typename: 'Money', amount: number, currency: string }, totalChargePending: { __typename: 'Money', amount: number, currency: string }, totalCanceled: { __typename: 'Money', amount: number, currency: string }, totalCancelPending: { __typename: 'Money', amount: number, currency: string }, totalBalance: { __typename: 'Money', amount: number, currency: string }, undiscountedTotal: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, user: { __typename: 'User', id: string, email: string } | null, shippingMethods: Array<{ __typename: 'ShippingMethod', id: string, name: string, active: boolean, message: string | null, price: { __typename: 'Money', amount: number, currency: string } }>, invoices: Array<{ __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }>, channel: { __typename: 'Channel', isActive: boolean, id: string, name: string, currencyCode: string, slug: string, defaultCountry: { __typename: 'CountryDisplay', code: string }, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum } }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null, shop: { __typename: 'Shop', defaultWeightUnit: WeightUnitsEnum | null, fulfillmentAllowUnpaid: boolean, fulfillmentAutoApprove: boolean, countries: Array<{ __typename: 'CountryDisplay', code: string, country: string }>, availablePaymentGateways: Array<{ __typename: 'PaymentGateway', name: string, id: string }> } }; export type OrderLinesMetadataQueryVariables = Exact<{ id: Scalars['ID']; @@ -11281,14 +11436,14 @@ export type OrderDetailsGrantRefundQueryVariables = Exact<{ }>; -export type OrderDetailsGrantRefundQuery = { __typename: 'Query', order: { __typename: 'Order', id: string, number: string, lines: Array<{ __typename: 'OrderLine', id: string, productName: string, quantity: number, quantityToFulfill: number, variantName: string, thumbnail: { __typename: 'Image', url: string } | null, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } } }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, fulfillmentOrder: number, status: FulfillmentStatus, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, productName: string, quantity: number, quantityToFulfill: number, variantName: string, thumbnail: { __typename: 'Image', url: string } | null, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } } } | null }> | null }>, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, grantedRefunds: Array<{ __typename: 'OrderGrantedRefund', id: string, reason: string | null, shippingCostsIncluded: boolean, status: OrderGrantedRefundStatusEnum, reasonReference: { __typename: 'Page', id: string, title: string } | null, amount: { __typename: 'Money', amount: number, currency: string }, transaction: { __typename: 'TransactionItem', id: string } | null, lines: Array<{ __typename: 'OrderGrantedRefundLine', id: string, quantity: number, reason: string | null, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } }> | null }>, transactions: Array<{ __typename: 'TransactionItem', pspReference: string, externalUrl: string, createdAt: any, id: string, name: string, actions: Array, events: Array<{ __typename: 'TransactionEvent', externalUrl: string, id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, createdBy: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, amount: { __typename: 'Money', amount: number, currency: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } }> } | null }; +export type OrderDetailsGrantRefundQuery = { __typename: 'Query', order: { __typename: 'Order', id: string, number: string, lines: Array<{ __typename: 'OrderLine', id: string, productName: string, quantity: number, quantityToFulfill: number, variantName: string, thumbnail: { __typename: 'Image', url: string } | null, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } } }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, fulfillmentOrder: number, status: FulfillmentStatus, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, productName: string, quantity: number, quantityToFulfill: number, variantName: string, thumbnail: { __typename: 'Image', url: string } | null, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } } } | null }> | null }>, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, grantedRefunds: Array<{ __typename: 'OrderGrantedRefund', id: string, reason: string | null, shippingCostsIncluded: boolean, status: OrderGrantedRefundStatusEnum, reasonReference: { __typename: 'Page', id: string, title: string } | null, amount: { __typename: 'Money', amount: number, currency: string }, transaction: { __typename: 'TransactionItem', id: string } | null, lines: Array<{ __typename: 'OrderGrantedRefundLine', id: string, quantity: number, reason: string | null, reasonReference: { __typename: 'Page', id: string, title: string } | null, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } }> | null }>, transactions: Array<{ __typename: 'TransactionItem', pspReference: string, externalUrl: string, createdAt: any, id: string, name: string, actions: Array, events: Array<{ __typename: 'TransactionEvent', externalUrl: string, id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, createdBy: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, amount: { __typename: 'Money', amount: number, currency: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } }> } | null }; export type OrderDetailsGrantRefundEditQueryVariables = Exact<{ id: Scalars['ID']; }>; -export type OrderDetailsGrantRefundEditQuery = { __typename: 'Query', order: { __typename: 'Order', id: string, number: string, lines: Array<{ __typename: 'OrderLine', id: string, productName: string, quantity: number, quantityToFulfill: number, variantName: string, thumbnail: { __typename: 'Image', url: string } | null, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } } }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, fulfillmentOrder: number, status: FulfillmentStatus, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, productName: string, quantity: number, quantityToFulfill: number, variantName: string, thumbnail: { __typename: 'Image', url: string } | null, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } } } | null }> | null }>, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, grantedRefunds: Array<{ __typename: 'OrderGrantedRefund', id: string, reason: string | null, shippingCostsIncluded: boolean, status: OrderGrantedRefundStatusEnum, reasonReference: { __typename: 'Page', id: string, title: string } | null, amount: { __typename: 'Money', amount: number, currency: string }, transaction: { __typename: 'TransactionItem', id: string } | null, lines: Array<{ __typename: 'OrderGrantedRefundLine', id: string, quantity: number, reason: string | null, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } }> | null }>, transactions: Array<{ __typename: 'TransactionItem', pspReference: string, externalUrl: string, createdAt: any, id: string, name: string, actions: Array, events: Array<{ __typename: 'TransactionEvent', externalUrl: string, id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, createdBy: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, amount: { __typename: 'Money', amount: number, currency: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } }> } | null }; +export type OrderDetailsGrantRefundEditQuery = { __typename: 'Query', order: { __typename: 'Order', id: string, number: string, lines: Array<{ __typename: 'OrderLine', id: string, productName: string, quantity: number, quantityToFulfill: number, variantName: string, thumbnail: { __typename: 'Image', url: string } | null, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } } }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, fulfillmentOrder: number, status: FulfillmentStatus, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, productName: string, quantity: number, quantityToFulfill: number, variantName: string, thumbnail: { __typename: 'Image', url: string } | null, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } } } | null }> | null }>, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, grantedRefunds: Array<{ __typename: 'OrderGrantedRefund', id: string, reason: string | null, shippingCostsIncluded: boolean, status: OrderGrantedRefundStatusEnum, reasonReference: { __typename: 'Page', id: string, title: string } | null, amount: { __typename: 'Money', amount: number, currency: string }, transaction: { __typename: 'TransactionItem', id: string } | null, lines: Array<{ __typename: 'OrderGrantedRefundLine', id: string, quantity: number, reason: string | null, reasonReference: { __typename: 'Page', id: string, title: string } | null, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } }> | null }>, transactions: Array<{ __typename: 'TransactionItem', pspReference: string, externalUrl: string, createdAt: any, id: string, name: string, actions: Array, events: Array<{ __typename: 'TransactionEvent', externalUrl: string, id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, createdBy: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, amount: { __typename: 'Money', amount: number, currency: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } }> } | null }; export type OrderFulfillDataQueryVariables = Exact<{ orderId: Scalars['ID']; diff --git a/src/orders/components/OrderFulfillmentCard/OrderFulfillmentCard.tsx b/src/orders/components/OrderFulfillmentCard/OrderFulfillmentCard.tsx index fa049262766..564b628b8cb 100644 --- a/src/orders/components/OrderFulfillmentCard/OrderFulfillmentCard.tsx +++ b/src/orders/components/OrderFulfillmentCard/OrderFulfillmentCard.tsx @@ -142,6 +142,26 @@ export const OrderFulfillmentCard = (props: OrderFulfillmentCardProps) => { } /> + {(fulfillment.reason || fulfillment.reasonReference) && ( + + {fulfillment.reasonReference && ( + + + Reason type: + {" "} + {fulfillment.reasonReference.title} + + )} + {fulfillment.reason && ( + + + Reason: + {" "} + {fulfillment.reason} + + )} + + )} void; isEdit?: boolean; initialData?: OrderDetailsGrantedRefundFragment; + modelForRefundReasonRefId?: string | null; } const OrderGrantRefundPage = ({ @@ -54,6 +63,7 @@ const OrderGrantRefundPage = ({ onSubmit, isEdit, initialData, + modelForRefundReasonRefId, }: OrderGrantRefundPageProps) => { const intl = useIntl(); const { locale } = useLocale(); @@ -98,6 +108,30 @@ const OrderGrantRefundPage = ({ refundAmount: Number(data.amount), totalCalulatedPrice: totalSelectedPrice, }); + const permissions = useUserPermissions(); + const canManageSettings = hasPermissions(permissions ?? [], [PermissionEnum.MANAGE_SETTINGS]); + const { data: modelsData, loading: modelsLoading } = useModelsOfTypeQuery({ + variables: { + pageTypeId: modelForRefundReasonRefId ?? "", + }, + skip: !modelForRefundReasonRefId, + }); + const reasonRefOptions = React.useMemo(() => { + const options = + modelsData?.pages?.edges.map(model => ({ + value: model.node.id, + label: model.node.title, + })) ?? []; + + return [ + { + value: "", + label: intl.formatMessage({ defaultMessage: "Select a reason type", id: "vSLaZ7" }), + }, + ...options, + ]; + }, [modelsData, intl]); + const currency = order?.total?.gross?.currency ?? ""; const handleSubmit = (e: React.FormEvent) => { e.stopPropagation(); @@ -212,6 +246,50 @@ const OrderGrantRefundPage = ({ data-test-id="amountInput" /> + + + {modelsLoading ? ( + + ) : ( + + change({ + target: { + name: "reasonReference", + value: value as string, + }, + }) + } + /> + )} + + {canManageSettings && modelForRefundReasonRefId && ( + + + {intl.formatMessage(refundReasonSelectHelperMessages.manageReasons)} + + + )} + {canManageSettings && !modelForRefundReasonRefId && ( + + + {intl.formatMessage( + refundReasonSelectHelperMessages.enableReasonsInSettings, + )} + + + )} + {!canManageSettings && ( + + {intl.formatMessage(refundReasonSelectHelperMessages.noPermissionsHint)} + + )} + + + + + ) : ( ({ autoGrantRefund: false, autoSendRefund: false, transactionId: "", + reason: "", + reasonReference: "", }); function useOrderReturnForm( diff --git a/src/orders/components/OrderTransactionRefundPage/OrderTransactionRefundPage.tsx b/src/orders/components/OrderTransactionRefundPage/OrderTransactionRefundPage.tsx index 0d5e63e4ac2..c504e21df25 100644 --- a/src/orders/components/OrderTransactionRefundPage/OrderTransactionRefundPage.tsx +++ b/src/orders/components/OrderTransactionRefundPage/OrderTransactionRefundPage.tsx @@ -75,6 +75,7 @@ interface OrderTransactionRefundPageProps { export interface LineToRefund { quantity: number | string; reason: string; + reasonReference: string; } export interface OrderTransactionRefundPageFormData { @@ -243,9 +244,10 @@ const OrderTransactionRefundPage = ({ }); }; - const onReasonChange = (reason: string, index: number) => { + const onReasonChange = (reason: string, reasonReference: string, index: number) => { handleReasonChange({ reason, + reasonReference, index, linesToRefund, refundFieldsUpdate, @@ -370,9 +372,11 @@ const OrderTransactionRefundPage = ({ setEditedRefundLineIndex(null)} - onConfirm={(reason: string) => { - onReasonChange(reason, editedRefundLineIndex!); + onConfirm={(reason: string, reasonReference: string) => { + onReasonChange(reason, reasonReference, editedRefundLineIndex!); }} /> diff --git a/src/orders/components/OrderTransactionRefundPage/components/OrderTransactionReasonModal/OrderTransactionReasonModal.tsx b/src/orders/components/OrderTransactionRefundPage/components/OrderTransactionReasonModal/OrderTransactionReasonModal.tsx index a1f582aad58..80ca37a20d7 100644 --- a/src/orders/components/OrderTransactionRefundPage/components/OrderTransactionReasonModal/OrderTransactionReasonModal.tsx +++ b/src/orders/components/OrderTransactionRefundPage/components/OrderTransactionReasonModal/OrderTransactionReasonModal.tsx @@ -1,29 +1,60 @@ import { DashboardModal } from "@dashboard/components/Modal"; +import { useModelsOfTypeQuery } from "@dashboard/graphql"; import { buttonMessages } from "@dashboard/intl"; -import { Button, Textarea } from "@saleor/macaw-ui-next"; -import { useEffect, useState } from "react"; -import { FormattedMessage } from "react-intl"; +import { Box, Button, Select, Skeleton, Textarea } from "@saleor/macaw-ui-next"; +import { useEffect, useMemo, useState } from "react"; +import { FormattedMessage, useIntl } from "react-intl"; import { refundTableMessages } from "../OrderTransactionRefundTable/messages"; interface OrderTransactionReasonModalProps { open: boolean; reason: string | null; + reasonReference: string | null; + modelForRefundReasonRefId: string | null; onClose: () => void; - onConfirm: (reason: string) => void; + onConfirm: (reason: string, reasonReference: string) => void; } export const OrderTransactionReasonModal = ({ open, reason, + reasonReference, + modelForRefundReasonRefId, onClose, onConfirm, }: OrderTransactionReasonModalProps) => { + const intl = useIntl(); const [tempReason, setTempReason] = useState(reason ?? ""); + const [tempReasonReference, setTempReasonReference] = useState(reasonReference ?? ""); useEffect(() => { setTempReason(reason ?? ""); - }, [reason]); + setTempReasonReference(reasonReference ?? ""); + }, [reason, reasonReference]); + + const { data: modelsData, loading: modelsLoading } = useModelsOfTypeQuery({ + variables: { + pageTypeId: modelForRefundReasonRefId ?? "", + }, + skip: !modelForRefundReasonRefId, + }); + + const reasonRefOptions = useMemo(() => { + const options = + modelsData?.pages?.edges.map(model => ({ + value: model.node.id, + label: model.node.title, + })) ?? []; + + return [ + { + value: "", + label: intl.formatMessage({ defaultMessage: "Select a reason type", id: "vSLaZ7" }), + }, + ...options, + ]; + }, [modelsData, intl]); return ( @@ -34,12 +65,25 @@ export const OrderTransactionReasonModal = ({ /> -