From f058f4d01f7c04ab5431b969195f43b74e6676c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominik=20=C5=BBegle=C5=84?= Date: Thu, 11 Aug 2022 17:52:55 +0200 Subject: [PATCH] Update types (#2229) --- introspection.json | 1330 +++++++++++++++--- schema.graphql | 1713 ++++++++++++++---------- src/graphql/fragmentTypes.generated.ts | 10 + src/graphql/typePolicies.generated.ts | 123 ++ src/graphql/types.generated.ts | 50 +- 5 files changed, 2318 insertions(+), 908 deletions(-) diff --git a/introspection.json b/introspection.json index e10b9d5b0..ad209ac50 100644 --- a/introspection.json +++ b/introspection.json @@ -1425,7 +1425,7 @@ { "kind": "OBJECT", "name": "AddressCreated", - "description": null, + "description": "Event sent when new address is created.\n\nAdded in Saleor 3.5.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", "fields": [ { "name": "issuedAt", @@ -1477,7 +1477,7 @@ }, { "name": "address", - "description": "The address the event relates to.\n\nAdded in Saleor 3.5.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "The address the event relates to.", "args": [], "type": { "kind": "OBJECT", @@ -1585,7 +1585,7 @@ { "kind": "OBJECT", "name": "AddressDeleted", - "description": null, + "description": "Event sent when address is deleted.\n\nAdded in Saleor 3.5.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", "fields": [ { "name": "issuedAt", @@ -1637,7 +1637,7 @@ }, { "name": "address", - "description": "The address the event relates to.\n\nAdded in Saleor 3.5.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "The address the event relates to.", "args": [], "type": { "kind": "OBJECT", @@ -1982,7 +1982,7 @@ { "kind": "OBJECT", "name": "AddressUpdated", - "description": null, + "description": "Event sent when address is updated.\n\nAdded in Saleor 3.5.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", "fields": [ { "name": "issuedAt", @@ -2034,7 +2034,7 @@ }, { "name": "address", - "description": "The address the event relates to.\n\nAdded in Saleor 3.5.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "The address the event relates to.", "args": [], "type": { "kind": "OBJECT", @@ -3416,7 +3416,7 @@ { "kind": "OBJECT", "name": "AppDeleted", - "description": null, + "description": "Event sent when app is deleted.\n\nAdded in Saleor 3.4.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", "fields": [ { "name": "issuedAt", @@ -3468,7 +3468,7 @@ }, { "name": "app", - "description": "The application the event relates to.\n\nAdded in Saleor 3.4.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "The application the event relates to.", "args": [], "type": { "kind": "OBJECT", @@ -4504,7 +4504,7 @@ { "kind": "OBJECT", "name": "AppInstalled", - "description": null, + "description": "Event sent when new app is installed.\n\nAdded in Saleor 3.4.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", "fields": [ { "name": "issuedAt", @@ -4556,7 +4556,7 @@ }, { "name": "app", - "description": "The application the event relates to.\n\nAdded in Saleor 3.4.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "The application the event relates to.", "args": [], "type": { "kind": "OBJECT", @@ -4916,7 +4916,7 @@ { "kind": "OBJECT", "name": "AppStatusChanged", - "description": null, + "description": "Event sent when app status has changed.\n\nAdded in Saleor 3.4.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", "fields": [ { "name": "issuedAt", @@ -4968,7 +4968,7 @@ }, { "name": "app", - "description": "The application the event relates to.\n\nAdded in Saleor 3.4.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "The application the event relates to.", "args": [], "type": { "kind": "OBJECT", @@ -5412,7 +5412,7 @@ { "kind": "OBJECT", "name": "AppUpdated", - "description": null, + "description": "Event sent when app is updated.\n\nAdded in Saleor 3.4.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", "fields": [ { "name": "issuedAt", @@ -5464,7 +5464,7 @@ }, { "name": "app", - "description": "The application the event relates to.\n\nAdded in Saleor 3.4.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "The application the event relates to.", "args": [], "type": { "kind": "OBJECT", @@ -6801,7 +6801,7 @@ { "kind": "OBJECT", "name": "AttributeCreated", - "description": null, + "description": "Event sent when new attribute is created.\n\nAdded in Saleor 3.5.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", "fields": [ { "name": "issuedAt", @@ -6853,7 +6853,7 @@ }, { "name": "attribute", - "description": "The attribute the event relates to.\n\nAdded in Saleor 3.5.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "The attribute the event relates to.", "args": [], "type": { "kind": "OBJECT", @@ -6949,7 +6949,7 @@ { "kind": "OBJECT", "name": "AttributeDeleted", - "description": null, + "description": "Event sent when attribute is deleted.\n\nAdded in Saleor 3.5.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", "fields": [ { "name": "issuedAt", @@ -7001,7 +7001,7 @@ }, { "name": "attribute", - "description": "The attribute the event relates to.\n\nAdded in Saleor 3.5.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "The attribute the event relates to.", "args": [], "type": { "kind": "OBJECT", @@ -8172,7 +8172,7 @@ { "kind": "OBJECT", "name": "AttributeUpdated", - "description": null, + "description": "Event sent when attribute is updated.\n\nAdded in Saleor 3.5.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", "fields": [ { "name": "issuedAt", @@ -8224,7 +8224,7 @@ }, { "name": "attribute", - "description": "The attribute the event relates to.\n\nAdded in Saleor 3.5.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "The attribute the event relates to.", "args": [], "type": { "kind": "OBJECT", @@ -8794,7 +8794,7 @@ { "kind": "OBJECT", "name": "AttributeValueCreated", - "description": null, + "description": "Event sent when new attribute value is created.\n\nAdded in Saleor 3.5.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", "fields": [ { "name": "issuedAt", @@ -8846,7 +8846,7 @@ }, { "name": "attributeValue", - "description": "The attribute value the event relates to.\n\nAdded in Saleor 3.5.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "The attribute value the event relates to.", "args": [], "type": { "kind": "OBJECT", @@ -8954,7 +8954,7 @@ { "kind": "OBJECT", "name": "AttributeValueDeleted", - "description": null, + "description": "Event sent when attribute value is deleted.\n\nAdded in Saleor 3.5.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", "fields": [ { "name": "issuedAt", @@ -9006,7 +9006,7 @@ }, { "name": "attributeValue", - "description": "The attribute value the event relates to.\n\nAdded in Saleor 3.5.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "The attribute value the event relates to.", "args": [], "type": { "kind": "OBJECT", @@ -9708,7 +9708,7 @@ { "kind": "OBJECT", "name": "AttributeValueUpdated", - "description": null, + "description": "Event sent when attribute value is updated.\n\nAdded in Saleor 3.5.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", "fields": [ { "name": "issuedAt", @@ -9760,7 +9760,7 @@ }, { "name": "attributeValue", - "description": "The attribute value the event relates to.\n\nAdded in Saleor 3.5.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "The attribute value the event relates to.", "args": [], "type": { "kind": "OBJECT", @@ -11063,7 +11063,7 @@ { "kind": "OBJECT", "name": "CategoryCreated", - "description": null, + "description": "Event sent when new category is created.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", "fields": [ { "name": "issuedAt", @@ -11115,7 +11115,7 @@ }, { "name": "category", - "description": "The category the event relates to.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "The category the event relates to.", "args": [], "type": { "kind": "OBJECT", @@ -11211,7 +11211,7 @@ { "kind": "OBJECT", "name": "CategoryDeleted", - "description": null, + "description": "Event sent when category is deleted.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", "fields": [ { "name": "issuedAt", @@ -11263,7 +11263,7 @@ }, { "name": "category", - "description": "The category the event relates to.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "The category the event relates to.", "args": [], "type": { "kind": "OBJECT", @@ -11907,7 +11907,7 @@ { "kind": "OBJECT", "name": "CategoryUpdated", - "description": null, + "description": "Event sent when category is updated.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", "fields": [ { "name": "issuedAt", @@ -11959,7 +11959,7 @@ }, { "name": "category", - "description": "The category the event relates to.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "The category the event relates to.", "args": [], "type": { "kind": "OBJECT", @@ -12467,7 +12467,7 @@ { "kind": "OBJECT", "name": "ChannelCreated", - "description": null, + "description": "Event sent when new channel is created.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", "fields": [ { "name": "issuedAt", @@ -12519,7 +12519,7 @@ }, { "name": "channel", - "description": "The channel the event relates to.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "The channel the event relates to.", "args": [], "type": { "kind": "OBJECT", @@ -12713,7 +12713,7 @@ { "kind": "OBJECT", "name": "ChannelDeleted", - "description": null, + "description": "Event sent when channel is deleted.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", "fields": [ { "name": "issuedAt", @@ -12765,7 +12765,7 @@ }, { "name": "channel", - "description": "The channel the event relates to.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "The channel the event relates to.", "args": [], "type": { "kind": "OBJECT", @@ -12946,7 +12946,7 @@ { "kind": "OBJECT", "name": "ChannelStatusChanged", - "description": null, + "description": "Event sent when channel status has changed.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", "fields": [ { "name": "issuedAt", @@ -12998,7 +12998,7 @@ }, { "name": "channel", - "description": "The channel the event relates to.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "The channel the event relates to.", "args": [], "type": { "kind": "OBJECT", @@ -13233,7 +13233,7 @@ { "kind": "OBJECT", "name": "ChannelUpdated", - "description": null, + "description": "Event sent when channel is updated.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", "fields": [ { "name": "issuedAt", @@ -13285,7 +13285,7 @@ }, { "name": "channel", - "description": "The channel the event relates to.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "The channel the event relates to.", "args": [], "type": { "kind": "OBJECT", @@ -14576,7 +14576,7 @@ { "kind": "OBJECT", "name": "CheckoutCreated", - "description": null, + "description": "Event sent when new checkout is created.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", "fields": [ { "name": "issuedAt", @@ -14628,7 +14628,7 @@ }, { "name": "checkout", - "description": "The checkout the event relates to.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "The checkout the event relates to.", "args": [], "type": { "kind": "OBJECT", @@ -15273,6 +15273,103 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "OBJECT", + "name": "CheckoutFilterShippingMethods", + "description": "Filter shipping methods for checkout.\n\nAdded in Saleor 3.6.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "fields": [ + { + "name": "issuedAt", + "description": "Time of the event.", + "args": [], + "type": { + "kind": "SCALAR", + "name": "DateTime", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "version", + "description": "Saleor version that triggered the event.", + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "issuingPrincipal", + "description": "The user or application that triggered the event.", + "args": [], + "type": { + "kind": "UNION", + "name": "IssuingPrincipal", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "recipient", + "description": "The application receiving the webhook.", + "args": [], + "type": { + "kind": "OBJECT", + "name": "App", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "checkout", + "description": "The checkout the event relates to.", + "args": [], + "type": { + "kind": "OBJECT", + "name": "Checkout", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "shippingMethods", + "description": "Shipping methods that can be used with this checkout.\n\nAdded in Saleor 3.6.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "args": [], + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "ShippingMethod", + "ofType": null + } + } + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [ + { + "kind": "INTERFACE", + "name": "Event", + "ofType": null + } + ], + "enumValues": null, + "possibleTypes": null + }, { "kind": "OBJECT", "name": "CheckoutLanguageCodeUpdate", @@ -15892,6 +15989,18 @@ "defaultValue": null, "isDeprecated": false, "deprecationReason": null + }, + { + "name": "forceNewLine", + "description": "Flag that allow force splitting the same variant into multiple lines by skipping the matching logic. \n\nAdded in Saleor 3.6.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + }, + "defaultValue": "false", + "isDeprecated": false, + "deprecationReason": null } ], "interfaces": null, @@ -15904,6 +16013,18 @@ "description": null, "fields": null, "inputFields": [ + { + "name": "variantId", + "description": "ID of the product variant. \n\nDEPRECATED: this field will be removed in Saleor 4.0. Use `lineId` instead.", + "type": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "quantity", "description": "The number of items purchased. Optional for apps, required for any other users.", @@ -15917,27 +16038,23 @@ "deprecationReason": null }, { - "name": "variantId", - "description": "ID of the product variant.", + "name": "price", + "description": "Custom price of the item. Can be set only by apps with `HANDLE_CHECKOUTS` permission. When the line with the same variant will be provided multiple times, the last price will be used.\n\nAdded in Saleor 3.1.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } + "kind": "SCALAR", + "name": "PositiveDecimal", + "ofType": null }, "defaultValue": null, "isDeprecated": false, "deprecationReason": null }, { - "name": "price", - "description": "Custom price of the item. Can be set only by apps with `HANDLE_CHECKOUTS` permission. When the line with the same variant will be provided multiple times, the last price will be used.\n\nAdded in Saleor 3.1.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "name": "lineId", + "description": "ID of the line.\n\nAdded in Saleor 3.6.", "type": { "kind": "SCALAR", - "name": "PositiveDecimal", + "name": "ID", "ofType": null }, "defaultValue": null, @@ -16509,7 +16626,7 @@ { "kind": "OBJECT", "name": "CheckoutUpdated", - "description": null, + "description": "Event sent when checkout is updated.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", "fields": [ { "name": "issuedAt", @@ -16561,7 +16678,7 @@ }, { "name": "checkout", - "description": "The checkout the event relates to.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "The checkout the event relates to.", "args": [], "type": { "kind": "OBJECT", @@ -17901,7 +18018,7 @@ { "kind": "OBJECT", "name": "CollectionCreated", - "description": null, + "description": "Event sent when new collection is created.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", "fields": [ { "name": "issuedAt", @@ -17953,7 +18070,7 @@ }, { "name": "collection", - "description": "The collection the event relates to.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "The collection the event relates to.", "args": [ { "name": "channel", @@ -18062,7 +18179,7 @@ { "kind": "OBJECT", "name": "CollectionDeleted", - "description": null, + "description": "Event sent when collection is deleted.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", "fields": [ { "name": "issuedAt", @@ -18114,7 +18231,7 @@ }, { "name": "collection", - "description": "The collection the event relates to.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "The collection the event relates to.", "args": [ { "name": "channel", @@ -19120,7 +19237,7 @@ { "kind": "OBJECT", "name": "CollectionUpdated", - "description": null, + "description": "Event sent when collection is updated.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", "fields": [ { "name": "issuedAt", @@ -19172,7 +19289,7 @@ }, { "name": "collection", - "description": "The collection the event relates to.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "The collection the event relates to.", "args": [ { "name": "channel", @@ -21440,7 +21557,7 @@ { "kind": "OBJECT", "name": "CustomerCreated", - "description": null, + "description": "Event sent when new customer user is created.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", "fields": [ { "name": "issuedAt", @@ -21492,7 +21609,7 @@ }, { "name": "user", - "description": "The user the event relates to.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "The user the event relates to.", "args": [], "type": { "kind": "OBJECT", @@ -22087,7 +22204,7 @@ { "kind": "OBJECT", "name": "CustomerUpdated", - "description": null, + "description": "Event sent when customer user is updated.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", "fields": [ { "name": "issuedAt", @@ -22139,7 +22256,7 @@ }, { "name": "user", - "description": "The user the event relates to.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "The user the event relates to.", "args": [], "type": { "kind": "OBJECT", @@ -24162,7 +24279,7 @@ { "kind": "OBJECT", "name": "DraftOrderCreated", - "description": null, + "description": "Event sent when new draft order is created.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", "fields": [ { "name": "issuedAt", @@ -24214,7 +24331,7 @@ }, { "name": "order", - "description": "The order the event relates to.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "The order the event relates to.", "args": [], "type": { "kind": "OBJECT", @@ -24310,7 +24427,7 @@ { "kind": "OBJECT", "name": "DraftOrderDeleted", - "description": null, + "description": "Event sent when draft order is deleted.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", "fields": [ { "name": "issuedAt", @@ -24362,7 +24479,7 @@ }, { "name": "order", - "description": "The order the event relates to.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "The order the event relates to.", "args": [], "type": { "kind": "OBJECT", @@ -24664,7 +24781,7 @@ { "kind": "OBJECT", "name": "DraftOrderUpdated", - "description": null, + "description": "Event sent when draft order is updated.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", "fields": [ { "name": "issuedAt", @@ -24716,7 +24833,7 @@ }, { "name": "order", - "description": "The order the event relates to.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "The order the event relates to.", "args": [], "type": { "kind": "OBJECT", @@ -24901,6 +25018,11 @@ "name": "CheckoutCreated", "ofType": null }, + { + "kind": "OBJECT", + "name": "CheckoutFilterShippingMethods", + "ofType": null + }, { "kind": "OBJECT", "name": "CheckoutUpdated", @@ -25036,6 +25158,11 @@ "name": "OrderCreated", "ofType": null }, + { + "kind": "OBJECT", + "name": "OrderFilterShippingMethods", + "ofType": null + }, { "kind": "OBJECT", "name": "OrderFulfilled", @@ -25081,6 +25208,41 @@ "name": "PageUpdated", "ofType": null }, + { + "kind": "OBJECT", + "name": "PaymentAuthorize", + "ofType": null + }, + { + "kind": "OBJECT", + "name": "PaymentCaptureEvent", + "ofType": null + }, + { + "kind": "OBJECT", + "name": "PaymentConfirmEvent", + "ofType": null + }, + { + "kind": "OBJECT", + "name": "PaymentListGateways", + "ofType": null + }, + { + "kind": "OBJECT", + "name": "PaymentProcessEvent", + "ofType": null + }, + { + "kind": "OBJECT", + "name": "PaymentRefundEvent", + "ofType": null + }, + { + "kind": "OBJECT", + "name": "PaymentVoidEvent", + "ofType": null + }, { "kind": "OBJECT", "name": "PermissionGroupCreated", @@ -25156,6 +25318,11 @@ "name": "SaleUpdated", "ofType": null }, + { + "kind": "OBJECT", + "name": "ShippingListMethodsForCheckout", + "ofType": null + }, { "kind": "OBJECT", "name": "ShippingPriceCreated", @@ -28372,7 +28539,7 @@ { "kind": "OBJECT", "name": "FulfillmentCanceled", - "description": null, + "description": "Event sent when fulfillment is canceled.\n\nAdded in Saleor 3.4.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", "fields": [ { "name": "issuedAt", @@ -28424,7 +28591,7 @@ }, { "name": "fulfillment", - "description": "The fulfillment the event relates to.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "The fulfillment the event relates to.", "args": [], "type": { "kind": "OBJECT", @@ -28436,7 +28603,7 @@ }, { "name": "order", - "description": "The order the fulfillment belongs to.\n\nAdded in Saleor 3.4.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "The order the fulfillment belongs to.", "args": [], "type": { "kind": "OBJECT", @@ -28461,7 +28628,7 @@ { "kind": "OBJECT", "name": "FulfillmentCreated", - "description": null, + "description": "Event sent when new fulfillment is created.\n\nAdded in Saleor 3.4.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", "fields": [ { "name": "issuedAt", @@ -28513,7 +28680,7 @@ }, { "name": "fulfillment", - "description": "The fulfillment the event relates to.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "The fulfillment the event relates to.", "args": [], "type": { "kind": "OBJECT", @@ -28525,7 +28692,7 @@ }, { "name": "order", - "description": "The order the fulfillment belongs to.\n\nAdded in Saleor 3.4.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "The order the fulfillment belongs to.", "args": [], "type": { "kind": "OBJECT", @@ -29465,9 +29632,13 @@ "description": null, "args": [], "type": { - "kind": "OBJECT", - "name": "Money", - "ofType": null + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "Money", + "ofType": null + } }, "isDeprecated": false, "deprecationReason": null @@ -29477,9 +29648,13 @@ "description": null, "args": [], "type": { - "kind": "OBJECT", - "name": "Money", - "ofType": null + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "Money", + "ofType": null + } }, "isDeprecated": false, "deprecationReason": null @@ -30340,7 +30515,7 @@ { "kind": "OBJECT", "name": "GiftCardCreated", - "description": null, + "description": "Event sent when new gift card is created.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", "fields": [ { "name": "issuedAt", @@ -30392,7 +30567,7 @@ }, { "name": "giftCard", - "description": "The gift card the event relates to.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "The gift card the event relates to.", "args": [], "type": { "kind": "OBJECT", @@ -30559,7 +30734,7 @@ { "kind": "OBJECT", "name": "GiftCardDeleted", - "description": null, + "description": "Event sent when gift card is deleted.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", "fields": [ { "name": "issuedAt", @@ -30611,7 +30786,7 @@ }, { "name": "giftCard", - "description": "The gift card the event relates to.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "The gift card the event relates to.", "args": [], "type": { "kind": "OBJECT", @@ -31721,7 +31896,7 @@ { "kind": "OBJECT", "name": "GiftCardStatusChanged", - "description": null, + "description": "Event sent when gift card status has changed.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", "fields": [ { "name": "issuedAt", @@ -31773,7 +31948,7 @@ }, { "name": "giftCard", - "description": "The gift card the event relates to.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "The gift card the event relates to.", "args": [], "type": { "kind": "OBJECT", @@ -32146,7 +32321,7 @@ { "kind": "OBJECT", "name": "GiftCardUpdated", - "description": null, + "description": "Event sent when gift card is updated.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", "fields": [ { "name": "issuedAt", @@ -32198,7 +32373,7 @@ }, { "name": "giftCard", - "description": "The gift card the event relates to.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "The gift card the event relates to.", "args": [], "type": { "kind": "OBJECT", @@ -33004,7 +33179,7 @@ { "kind": "OBJECT", "name": "InvoiceDeleted", - "description": null, + "description": "Event sent when invoice is deleted.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", "fields": [ { "name": "issuedAt", @@ -33056,7 +33231,7 @@ }, { "name": "invoice", - "description": "The invoice the event relates to.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "The invoice the event relates to.", "args": [], "type": { "kind": "OBJECT", @@ -33345,7 +33520,7 @@ { "kind": "OBJECT", "name": "InvoiceRequested", - "description": null, + "description": "Event sent when invoice is requested.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", "fields": [ { "name": "issuedAt", @@ -33397,7 +33572,7 @@ }, { "name": "invoice", - "description": "The invoice the event relates to.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "The invoice the event relates to.", "args": [], "type": { "kind": "OBJECT", @@ -33493,7 +33668,7 @@ { "kind": "OBJECT", "name": "InvoiceSent", - "description": null, + "description": "Event sent when invoice is sent.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", "fields": [ { "name": "issuedAt", @@ -33545,7 +33720,7 @@ }, { "name": "invoice", - "description": "The invoice the event relates to.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "The invoice the event relates to.", "args": [], "type": { "kind": "OBJECT", @@ -39658,7 +39833,7 @@ { "kind": "OBJECT", "name": "MenuCreated", - "description": null, + "description": "Event sent when new menu is created.\n\nAdded in Saleor 3.4.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", "fields": [ { "name": "issuedAt", @@ -39710,7 +39885,7 @@ }, { "name": "menu", - "description": "The menu the event relates to.\n\nAdded in Saleor 3.4.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "The menu the event relates to.", "args": [ { "name": "channel", @@ -39819,7 +39994,7 @@ { "kind": "OBJECT", "name": "MenuDeleted", - "description": null, + "description": "Event sent when menu is deleted.\n\nAdded in Saleor 3.4.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", "fields": [ { "name": "issuedAt", @@ -39871,7 +40046,7 @@ }, { "name": "menu", - "description": "The menu the event relates to.\n\nAdded in Saleor 3.4.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "The menu the event relates to.", "args": [ { "name": "channel", @@ -40845,7 +41020,7 @@ { "kind": "OBJECT", "name": "MenuItemCreated", - "description": null, + "description": "Event sent when new menu item is created.\n\nAdded in Saleor 3.4.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", "fields": [ { "name": "issuedAt", @@ -40897,7 +41072,7 @@ }, { "name": "menuItem", - "description": "The menu item the event relates to.\n\nAdded in Saleor 3.4.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "The menu item the event relates to.", "args": [ { "name": "channel", @@ -41006,7 +41181,7 @@ { "kind": "OBJECT", "name": "MenuItemDeleted", - "description": null, + "description": "Event sent when menu item is deleted.\n\nAdded in Saleor 3.4.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", "fields": [ { "name": "issuedAt", @@ -41058,7 +41233,7 @@ }, { "name": "menuItem", - "description": "The menu item the event relates to.\n\nAdded in Saleor 3.4.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "The menu item the event relates to.", "args": [ { "name": "channel", @@ -41672,7 +41847,7 @@ { "kind": "OBJECT", "name": "MenuItemUpdated", - "description": null, + "description": "Event sent when menu item is updated.\n\nAdded in Saleor 3.4.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", "fields": [ { "name": "issuedAt", @@ -41724,7 +41899,7 @@ }, { "name": "menuItem", - "description": "The menu item the event relates to.\n\nAdded in Saleor 3.4.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "The menu item the event relates to.", "args": [ { "name": "channel", @@ -41916,7 +42091,7 @@ { "kind": "OBJECT", "name": "MenuUpdated", - "description": null, + "description": "Event sent when menu is updated.\n\nAdded in Saleor 3.4.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", "fields": [ { "name": "issuedAt", @@ -41968,7 +42143,7 @@ }, { "name": "menu", - "description": "The menu the event relates to.\n\nAdded in Saleor 3.4.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "The menu the event relates to.", "args": [ { "name": "channel", @@ -56249,7 +56424,7 @@ { "kind": "OBJECT", "name": "OrderCancelled", - "description": null, + "description": "Event sent when order is canceled.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", "fields": [ { "name": "issuedAt", @@ -56301,7 +56476,7 @@ }, { "name": "order", - "description": "The order the event relates to.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "The order the event relates to.", "args": [], "type": { "kind": "OBJECT", @@ -56503,7 +56678,7 @@ { "kind": "OBJECT", "name": "OrderConfirmed", - "description": null, + "description": "Event sent when order is confirmed.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", "fields": [ { "name": "issuedAt", @@ -56555,7 +56730,7 @@ }, { "name": "order", - "description": "The order the event relates to.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "The order the event relates to.", "args": [], "type": { "kind": "OBJECT", @@ -56919,7 +57094,7 @@ { "kind": "OBJECT", "name": "OrderCreated", - "description": null, + "description": "Event sent when new order is created.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", "fields": [ { "name": "issuedAt", @@ -56971,7 +57146,7 @@ }, { "name": "order", - "description": "The order the event relates to.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "The order the event relates to.", "args": [], "type": { "kind": "OBJECT", @@ -59077,6 +59252,103 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "OBJECT", + "name": "OrderFilterShippingMethods", + "description": "Filter shipping methods for order.\n\nAdded in Saleor 3.6.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "fields": [ + { + "name": "issuedAt", + "description": "Time of the event.", + "args": [], + "type": { + "kind": "SCALAR", + "name": "DateTime", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "version", + "description": "Saleor version that triggered the event.", + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "issuingPrincipal", + "description": "The user or application that triggered the event.", + "args": [], + "type": { + "kind": "UNION", + "name": "IssuingPrincipal", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "recipient", + "description": "The application receiving the webhook.", + "args": [], + "type": { + "kind": "OBJECT", + "name": "App", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "order", + "description": "The order the event relates to.", + "args": [], + "type": { + "kind": "OBJECT", + "name": "Order", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "shippingMethods", + "description": "Shipping methods that can be used with this checkout.\n\nAdded in Saleor 3.6.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "args": [], + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "ShippingMethod", + "ofType": null + } + } + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [ + { + "kind": "INTERFACE", + "name": "Event", + "ofType": null + } + ], + "enumValues": null, + "possibleTypes": null + }, { "kind": "OBJECT", "name": "OrderFulfill", @@ -59320,7 +59592,7 @@ { "kind": "OBJECT", "name": "OrderFulfilled", - "description": null, + "description": "Event sent when order is fulfilled.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", "fields": [ { "name": "issuedAt", @@ -59372,7 +59644,7 @@ }, { "name": "order", - "description": "The order the event relates to.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "The order the event relates to.", "args": [], "type": { "kind": "OBJECT", @@ -59397,7 +59669,7 @@ { "kind": "OBJECT", "name": "OrderFullyPaid", - "description": null, + "description": "Event sent when order is fully paid.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", "fields": [ { "name": "issuedAt", @@ -59449,7 +59721,7 @@ }, { "name": "order", - "description": "The order the event relates to.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "The order the event relates to.", "args": [], "type": { "kind": "OBJECT", @@ -60071,6 +60343,18 @@ "defaultValue": null, "isDeprecated": false, "deprecationReason": null + }, + { + "name": "forceNewLine", + "description": "Flag that allow force splitting the same variant into multiple lines by skipping the matching logic. \n\nAdded in Saleor 3.6.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + }, + "defaultValue": "false", + "isDeprecated": false, + "deprecationReason": null } ], "interfaces": null, @@ -61702,7 +61986,7 @@ { "kind": "OBJECT", "name": "OrderUpdated", - "description": null, + "description": "Event sent when order is updated.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", "fields": [ { "name": "issuedAt", @@ -61754,7 +62038,7 @@ }, { "name": "order", - "description": "The order the event relates to.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "The order the event relates to.", "args": [], "type": { "kind": "OBJECT", @@ -62869,7 +63153,7 @@ { "kind": "OBJECT", "name": "PageCreated", - "description": null, + "description": "Event sent when new page is created.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", "fields": [ { "name": "issuedAt", @@ -62921,7 +63205,7 @@ }, { "name": "page", - "description": "The page the event relates to.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "The page the event relates to.", "args": [], "type": { "kind": "OBJECT", @@ -63017,7 +63301,7 @@ { "kind": "OBJECT", "name": "PageDeleted", - "description": null, + "description": "Event sent when page is deleted.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", "fields": [ { "name": "issuedAt", @@ -63069,7 +63353,7 @@ }, { "name": "page", - "description": "The page the event relates to.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "The page the event relates to.", "args": [], "type": { "kind": "OBJECT", @@ -64719,7 +65003,7 @@ { "kind": "OBJECT", "name": "PageTypeCreated", - "description": null, + "description": "Event sent when new page type is created.\n\nAdded in Saleor 3.5.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", "fields": [ { "name": "issuedAt", @@ -64771,7 +65055,7 @@ }, { "name": "pageType", - "description": "The page type the event relates to.\n\nAdded in Saleor 3.5.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "The page type the event relates to.", "args": [], "type": { "kind": "OBJECT", @@ -64867,7 +65151,7 @@ { "kind": "OBJECT", "name": "PageTypeDeleted", - "description": null, + "description": "Event sent when page type is deleted.\n\nAdded in Saleor 3.5.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", "fields": [ { "name": "issuedAt", @@ -64919,7 +65203,7 @@ }, { "name": "pageType", - "description": "The page type the event relates to.\n\nAdded in Saleor 3.5.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "The page type the event relates to.", "args": [], "type": { "kind": "OBJECT", @@ -65250,7 +65534,7 @@ { "kind": "OBJECT", "name": "PageTypeUpdated", - "description": null, + "description": "Event sent when page type is updated.\n\nAdded in Saleor 3.5.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", "fields": [ { "name": "issuedAt", @@ -65302,7 +65586,7 @@ }, { "name": "pageType", - "description": "The page type the event relates to.\n\nAdded in Saleor 3.5.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "The page type the event relates to.", "args": [], "type": { "kind": "OBJECT", @@ -65398,7 +65682,7 @@ { "kind": "OBJECT", "name": "PageUpdated", - "description": null, + "description": "Event sent when page is updated.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", "fields": [ { "name": "issuedAt", @@ -65450,7 +65734,7 @@ }, { "name": "page", - "description": "The page the event relates to.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "The page the event relates to.", "args": [], "type": { "kind": "OBJECT", @@ -66005,6 +66289,83 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "OBJECT", + "name": "PaymentAuthorize", + "description": "Authorize payment.\n\nAdded in Saleor 3.6.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "fields": [ + { + "name": "issuedAt", + "description": "Time of the event.", + "args": [], + "type": { + "kind": "SCALAR", + "name": "DateTime", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "version", + "description": "Saleor version that triggered the event.", + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "issuingPrincipal", + "description": "The user or application that triggered the event.", + "args": [], + "type": { + "kind": "UNION", + "name": "IssuingPrincipal", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "recipient", + "description": "The application receiving the webhook.", + "args": [], + "type": { + "kind": "OBJECT", + "name": "App", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "payment", + "description": "Look up a payment.", + "args": [], + "type": { + "kind": "OBJECT", + "name": "Payment", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [ + { + "kind": "INTERFACE", + "name": "Event", + "ofType": null + } + ], + "enumValues": null, + "possibleTypes": null + }, { "kind": "OBJECT", "name": "PaymentCapture", @@ -66076,6 +66437,83 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "OBJECT", + "name": "PaymentCaptureEvent", + "description": "Capture payment.\n\nAdded in Saleor 3.6.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "fields": [ + { + "name": "issuedAt", + "description": "Time of the event.", + "args": [], + "type": { + "kind": "SCALAR", + "name": "DateTime", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "version", + "description": "Saleor version that triggered the event.", + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "issuingPrincipal", + "description": "The user or application that triggered the event.", + "args": [], + "type": { + "kind": "UNION", + "name": "IssuingPrincipal", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "recipient", + "description": "The application receiving the webhook.", + "args": [], + "type": { + "kind": "OBJECT", + "name": "App", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "payment", + "description": "Look up a payment.", + "args": [], + "type": { + "kind": "OBJECT", + "name": "Payment", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [ + { + "kind": "INTERFACE", + "name": "Event", + "ofType": null + } + ], + "enumValues": null, + "possibleTypes": null + }, { "kind": "ENUM", "name": "PaymentChargeStatusEnum", @@ -66281,6 +66719,83 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "OBJECT", + "name": "PaymentConfirmEvent", + "description": "Confirm payment.\n\nAdded in Saleor 3.6.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "fields": [ + { + "name": "issuedAt", + "description": "Time of the event.", + "args": [], + "type": { + "kind": "SCALAR", + "name": "DateTime", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "version", + "description": "Saleor version that triggered the event.", + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "issuingPrincipal", + "description": "The user or application that triggered the event.", + "args": [], + "type": { + "kind": "UNION", + "name": "IssuingPrincipal", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "recipient", + "description": "The application receiving the webhook.", + "args": [], + "type": { + "kind": "OBJECT", + "name": "App", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "payment", + "description": "Look up a payment.", + "args": [], + "type": { + "kind": "OBJECT", + "name": "Payment", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [ + { + "kind": "INTERFACE", + "name": "Event", + "ofType": null + } + ], + "enumValues": null, + "possibleTypes": null + }, { "kind": "OBJECT", "name": "PaymentCountableConnection", @@ -66914,6 +67429,160 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "OBJECT", + "name": "PaymentListGateways", + "description": "List payment gateways.\n\nAdded in Saleor 3.6.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "fields": [ + { + "name": "issuedAt", + "description": "Time of the event.", + "args": [], + "type": { + "kind": "SCALAR", + "name": "DateTime", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "version", + "description": "Saleor version that triggered the event.", + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "issuingPrincipal", + "description": "The user or application that triggered the event.", + "args": [], + "type": { + "kind": "UNION", + "name": "IssuingPrincipal", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "recipient", + "description": "The application receiving the webhook.", + "args": [], + "type": { + "kind": "OBJECT", + "name": "App", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "checkout", + "description": "The checkout the event relates to.", + "args": [], + "type": { + "kind": "OBJECT", + "name": "Checkout", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [ + { + "kind": "INTERFACE", + "name": "Event", + "ofType": null + } + ], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "PaymentProcessEvent", + "description": "Process payment.\n\nAdded in Saleor 3.6.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "fields": [ + { + "name": "issuedAt", + "description": "Time of the event.", + "args": [], + "type": { + "kind": "SCALAR", + "name": "DateTime", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "version", + "description": "Saleor version that triggered the event.", + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "issuingPrincipal", + "description": "The user or application that triggered the event.", + "args": [], + "type": { + "kind": "UNION", + "name": "IssuingPrincipal", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "recipient", + "description": "The application receiving the webhook.", + "args": [], + "type": { + "kind": "OBJECT", + "name": "App", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "payment", + "description": "Look up a payment.", + "args": [], + "type": { + "kind": "OBJECT", + "name": "Payment", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [ + { + "kind": "INTERFACE", + "name": "Event", + "ofType": null + } + ], + "enumValues": null, + "possibleTypes": null + }, { "kind": "OBJECT", "name": "PaymentRefund", @@ -66985,6 +67654,83 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "OBJECT", + "name": "PaymentRefundEvent", + "description": "Refund payment.\n\nAdded in Saleor 3.6.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "fields": [ + { + "name": "issuedAt", + "description": "Time of the event.", + "args": [], + "type": { + "kind": "SCALAR", + "name": "DateTime", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "version", + "description": "Saleor version that triggered the event.", + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "issuingPrincipal", + "description": "The user or application that triggered the event.", + "args": [], + "type": { + "kind": "UNION", + "name": "IssuingPrincipal", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "recipient", + "description": "The application receiving the webhook.", + "args": [], + "type": { + "kind": "OBJECT", + "name": "App", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "payment", + "description": "Look up a payment.", + "args": [], + "type": { + "kind": "OBJECT", + "name": "Payment", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [ + { + "kind": "INTERFACE", + "name": "Event", + "ofType": null + } + ], + "enumValues": null, + "possibleTypes": null + }, { "kind": "OBJECT", "name": "PaymentSource", @@ -67131,6 +67877,83 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "OBJECT", + "name": "PaymentVoidEvent", + "description": "Void payment.\n\nAdded in Saleor 3.6.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "fields": [ + { + "name": "issuedAt", + "description": "Time of the event.", + "args": [], + "type": { + "kind": "SCALAR", + "name": "DateTime", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "version", + "description": "Saleor version that triggered the event.", + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "issuingPrincipal", + "description": "The user or application that triggered the event.", + "args": [], + "type": { + "kind": "UNION", + "name": "IssuingPrincipal", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "recipient", + "description": "The application receiving the webhook.", + "args": [], + "type": { + "kind": "OBJECT", + "name": "App", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "payment", + "description": "Look up a payment.", + "args": [], + "type": { + "kind": "OBJECT", + "name": "Payment", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [ + { + "kind": "INTERFACE", + "name": "Event", + "ofType": null + } + ], + "enumValues": null, + "possibleTypes": null + }, { "kind": "OBJECT", "name": "Permission", @@ -67458,7 +68281,7 @@ { "kind": "OBJECT", "name": "PermissionGroupCreated", - "description": null, + "description": "Event sent when new permission group is created.\n\nAdded in Saleor 3.6.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", "fields": [ { "name": "issuedAt", @@ -67510,7 +68333,7 @@ }, { "name": "permissionGroup", - "description": "The permission group the event relates to.\n\nAdded in Saleor 3.6.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "The permission group the event relates to.", "args": [], "type": { "kind": "OBJECT", @@ -67606,7 +68429,7 @@ { "kind": "OBJECT", "name": "PermissionGroupDeleted", - "description": null, + "description": "Event sent when permission group is deleted.\n\nAdded in Saleor 3.6.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", "fields": [ { "name": "issuedAt", @@ -67658,7 +68481,7 @@ }, { "name": "permissionGroup", - "description": "The permission group the event relates to.\n\nAdded in Saleor 3.6.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "The permission group the event relates to.", "args": [], "type": { "kind": "OBJECT", @@ -68110,7 +68933,7 @@ { "kind": "OBJECT", "name": "PermissionGroupUpdated", - "description": null, + "description": "Event sent when permission group is updated.\n\nAdded in Saleor 3.6.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", "fields": [ { "name": "issuedAt", @@ -68162,7 +68985,7 @@ }, { "name": "permissionGroup", - "description": "The permission group the event relates to.\n\nAdded in Saleor 3.6.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "The permission group the event relates to.", "args": [], "type": { "kind": "OBJECT", @@ -71201,7 +72024,7 @@ { "kind": "OBJECT", "name": "ProductCreated", - "description": null, + "description": "Event sent when new product is created.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", "fields": [ { "name": "issuedAt", @@ -71253,7 +72076,7 @@ }, { "name": "product", - "description": "The product the event relates to.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "The product the event relates to.", "args": [ { "name": "channel", @@ -71278,7 +72101,7 @@ }, { "name": "category", - "description": "The category of the product.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "The category of the product.", "args": [], "type": { "kind": "OBJECT", @@ -71374,7 +72197,7 @@ { "kind": "OBJECT", "name": "ProductDeleted", - "description": null, + "description": "Event sent when product is deleted.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", "fields": [ { "name": "issuedAt", @@ -71426,7 +72249,7 @@ }, { "name": "product", - "description": "The product the event relates to.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "The product the event relates to.", "args": [ { "name": "channel", @@ -71451,7 +72274,7 @@ }, { "name": "category", - "description": "The category of the product.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "The category of the product.", "args": [], "type": { "kind": "OBJECT", @@ -75123,7 +75946,7 @@ { "kind": "OBJECT", "name": "ProductUpdated", - "description": null, + "description": "Event sent when product is updated.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", "fields": [ { "name": "issuedAt", @@ -75175,7 +75998,7 @@ }, { "name": "product", - "description": "The product the event relates to.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "The product the event relates to.", "args": [ { "name": "channel", @@ -75200,7 +76023,7 @@ }, { "name": "category", - "description": "The category of the product.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "The category of the product.", "args": [], "type": { "kind": "OBJECT", @@ -75869,7 +76692,7 @@ { "kind": "OBJECT", "name": "ProductVariantBackInStock", - "description": null, + "description": "Event sent when product variant is back in stock.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", "fields": [ { "name": "issuedAt", @@ -75921,7 +76744,7 @@ }, { "name": "productVariant", - "description": "The product variant the event relates to.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "The product variant the event relates to.", "args": [ { "name": "channel", @@ -75946,7 +76769,7 @@ }, { "name": "warehouse", - "description": "Look up a warehouse.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Look up a warehouse.", "args": [], "type": { "kind": "OBJECT", @@ -76823,7 +77646,7 @@ { "kind": "OBJECT", "name": "ProductVariantCreated", - "description": null, + "description": "Event sent when new product variant is created.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", "fields": [ { "name": "issuedAt", @@ -76875,7 +77698,7 @@ }, { "name": "productVariant", - "description": "The product variant the event relates to.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "The product variant the event relates to.", "args": [ { "name": "channel", @@ -76984,7 +77807,7 @@ { "kind": "OBJECT", "name": "ProductVariantDeleted", - "description": null, + "description": "Event sent when product variant is deleted.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", "fields": [ { "name": "issuedAt", @@ -77036,7 +77859,7 @@ }, { "name": "productVariant", - "description": "The product variant the event relates to.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "The product variant the event relates to.", "args": [ { "name": "channel", @@ -77252,7 +78075,7 @@ { "kind": "OBJECT", "name": "ProductVariantOutOfStock", - "description": null, + "description": "Event sent when product variant is out of stock.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", "fields": [ { "name": "issuedAt", @@ -77304,7 +78127,7 @@ }, { "name": "productVariant", - "description": "The product variant the event relates to.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "The product variant the event relates to.", "args": [ { "name": "channel", @@ -77329,7 +78152,7 @@ }, { "name": "warehouse", - "description": "Look up a warehouse.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Look up a warehouse.", "args": [], "type": { "kind": "OBJECT", @@ -78208,7 +79031,7 @@ { "kind": "OBJECT", "name": "ProductVariantUpdated", - "description": null, + "description": "Event sent when product variant is updated.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", "fields": [ { "name": "issuedAt", @@ -78260,7 +79083,7 @@ }, { "name": "productVariant", - "description": "The product variant the event relates to.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "The product variant the event relates to.", "args": [ { "name": "channel", @@ -84207,7 +85030,7 @@ { "kind": "OBJECT", "name": "SaleCreated", - "description": null, + "description": "Event sent when new sale is created.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", "fields": [ { "name": "issuedAt", @@ -84259,7 +85082,7 @@ }, { "name": "sale", - "description": "The sale the event relates to.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "The sale the event relates to.", "args": [ { "name": "channel", @@ -84368,7 +85191,7 @@ { "kind": "OBJECT", "name": "SaleDeleted", - "description": null, + "description": "Event sent when sale is deleted.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", "fields": [ { "name": "issuedAt", @@ -84420,7 +85243,7 @@ }, { "name": "sale", - "description": "The sale the event relates to.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "The sale the event relates to.", "args": [ { "name": "channel", @@ -85293,7 +86116,7 @@ { "kind": "OBJECT", "name": "SaleUpdated", - "description": null, + "description": "Event sent when sale is updated.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", "fields": [ { "name": "issuedAt", @@ -85345,7 +86168,7 @@ }, { "name": "sale", - "description": "The sale the event relates to.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "The sale the event relates to.", "args": [ { "name": "channel", @@ -85723,6 +86546,103 @@ ], "possibleTypes": null }, + { + "kind": "OBJECT", + "name": "ShippingListMethodsForCheckout", + "description": "List shipping methods for checkout.\n\nAdded in Saleor 3.6.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "fields": [ + { + "name": "issuedAt", + "description": "Time of the event.", + "args": [], + "type": { + "kind": "SCALAR", + "name": "DateTime", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "version", + "description": "Saleor version that triggered the event.", + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "issuingPrincipal", + "description": "The user or application that triggered the event.", + "args": [], + "type": { + "kind": "UNION", + "name": "IssuingPrincipal", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "recipient", + "description": "The application receiving the webhook.", + "args": [], + "type": { + "kind": "OBJECT", + "name": "App", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "checkout", + "description": "The checkout the event relates to.", + "args": [], + "type": { + "kind": "OBJECT", + "name": "Checkout", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "shippingMethods", + "description": "Shipping methods that can be used with this checkout.\n\nAdded in Saleor 3.6.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "args": [], + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "ShippingMethod", + "ofType": null + } + } + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [ + { + "kind": "INTERFACE", + "name": "Event", + "ofType": null + } + ], + "enumValues": null, + "possibleTypes": null + }, { "kind": "OBJECT", "name": "ShippingMethod", @@ -87354,7 +88274,7 @@ { "kind": "OBJECT", "name": "ShippingPriceCreated", - "description": null, + "description": "Event sent when new shipping price is created.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", "fields": [ { "name": "issuedAt", @@ -87406,7 +88326,7 @@ }, { "name": "shippingMethod", - "description": "The shipping method the event relates to.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "The shipping method the event relates to.", "args": [ { "name": "channel", @@ -87431,7 +88351,7 @@ }, { "name": "shippingZone", - "description": "The shipping zone the shipping method belongs to.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "The shipping zone the shipping method belongs to.", "args": [ { "name": "channel", @@ -87552,7 +88472,7 @@ { "kind": "OBJECT", "name": "ShippingPriceDeleted", - "description": null, + "description": "Event sent when shipping price is deleted.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", "fields": [ { "name": "issuedAt", @@ -87604,7 +88524,7 @@ }, { "name": "shippingMethod", - "description": "The shipping method the event relates to.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "The shipping method the event relates to.", "args": [ { "name": "channel", @@ -87629,7 +88549,7 @@ }, { "name": "shippingZone", - "description": "The shipping zone the shipping method belongs to.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "The shipping zone the shipping method belongs to.", "args": [ { "name": "channel", @@ -88192,7 +89112,7 @@ { "kind": "OBJECT", "name": "ShippingPriceUpdated", - "description": null, + "description": "Event sent when shipping price is updated.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", "fields": [ { "name": "issuedAt", @@ -88244,7 +89164,7 @@ }, { "name": "shippingMethod", - "description": "The shipping method the event relates to.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "The shipping method the event relates to.", "args": [ { "name": "channel", @@ -88269,7 +89189,7 @@ }, { "name": "shippingZone", - "description": "The shipping zone the shipping method belongs to.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "The shipping zone the shipping method belongs to.", "args": [ { "name": "channel", @@ -89024,7 +89944,7 @@ { "kind": "OBJECT", "name": "ShippingZoneCreated", - "description": null, + "description": "Event sent when new shipping zone is created.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", "fields": [ { "name": "issuedAt", @@ -89076,7 +89996,7 @@ }, { "name": "shippingZone", - "description": "The shipping zone the event relates to.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "The shipping zone the event relates to.", "args": [ { "name": "channel", @@ -89185,7 +90105,7 @@ { "kind": "OBJECT", "name": "ShippingZoneDeleted", - "description": null, + "description": "Event sent when shipping zone is deleted.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", "fields": [ { "name": "issuedAt", @@ -89237,7 +90157,7 @@ }, { "name": "shippingZone", - "description": "The shipping zone the event relates to.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "The shipping zone the event relates to.", "args": [ { "name": "channel", @@ -89536,7 +90456,7 @@ { "kind": "OBJECT", "name": "ShippingZoneUpdated", - "description": null, + "description": "Event sent when shipping zone is updated.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", "fields": [ { "name": "issuedAt", @@ -89588,7 +90508,7 @@ }, { "name": "shippingZone", - "description": "The shipping zone the event relates to.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "The shipping zone the event relates to.", "args": [ { "name": "channel", @@ -91363,7 +92283,7 @@ { "kind": "OBJECT", "name": "StaffCreated", - "description": null, + "description": "Event sent when new staff user is created.\n\nAdded in Saleor 3.5.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", "fields": [ { "name": "issuedAt", @@ -91415,7 +92335,7 @@ }, { "name": "user", - "description": "The user the event relates to.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "The user the event relates to.", "args": [], "type": { "kind": "OBJECT", @@ -91511,7 +92431,7 @@ { "kind": "OBJECT", "name": "StaffDeleted", - "description": null, + "description": "Event sent when staff user is deleted.\n\nAdded in Saleor 3.5.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", "fields": [ { "name": "issuedAt", @@ -91563,7 +92483,7 @@ }, { "name": "user", - "description": "The user the event relates to.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "The user the event relates to.", "args": [], "type": { "kind": "OBJECT", @@ -92245,7 +93165,7 @@ { "kind": "OBJECT", "name": "StaffUpdated", - "description": null, + "description": "Event sent when staff user is updated.\n\nAdded in Saleor 3.5.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", "fields": [ { "name": "issuedAt", @@ -92297,7 +93217,7 @@ }, { "name": "user", - "description": "The user the event relates to.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "The user the event relates to.", "args": [], "type": { "kind": "OBJECT", @@ -93351,7 +94271,7 @@ { "kind": "OBJECT", "name": "TransactionActionRequest", - "description": null, + "description": "Event sent when transaction action is requested.\n\nAdded in Saleor 3.4.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", "fields": [ { "name": "issuedAt", @@ -95080,7 +96000,7 @@ { "kind": "OBJECT", "name": "TranslationCreated", - "description": null, + "description": "Event sent when new translation is created.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", "fields": [ { "name": "issuedAt", @@ -95132,7 +96052,7 @@ }, { "name": "translation", - "description": "The translation the event relates to.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "The translation the event relates to.", "args": [], "type": { "kind": "UNION", @@ -95368,7 +96288,7 @@ { "kind": "OBJECT", "name": "TranslationUpdated", - "description": null, + "description": "Event sent when translation is updated.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", "fields": [ { "name": "issuedAt", @@ -95420,7 +96340,7 @@ }, { "name": "translation", - "description": "The translation the event relates to.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "The translation the event relates to.", "args": [], "type": { "kind": "UNION", @@ -98943,7 +99863,7 @@ { "kind": "OBJECT", "name": "VoucherCreated", - "description": null, + "description": "Event sent when new voucher is created.\n\nAdded in Saleor 3.4.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", "fields": [ { "name": "issuedAt", @@ -98995,7 +99915,7 @@ }, { "name": "voucher", - "description": "The voucher the event relates to.\n\nAdded in Saleor 3.4.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "The voucher the event relates to.", "args": [ { "name": "channel", @@ -99104,7 +100024,7 @@ { "kind": "OBJECT", "name": "VoucherDeleted", - "description": null, + "description": "Event sent when voucher is deleted.\n\nAdded in Saleor 3.4.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", "fields": [ { "name": "issuedAt", @@ -99156,7 +100076,7 @@ }, { "name": "voucher", - "description": "The voucher the event relates to.\n\nAdded in Saleor 3.4.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "The voucher the event relates to.", "args": [ { "name": "channel", @@ -100090,7 +101010,7 @@ { "kind": "OBJECT", "name": "VoucherUpdated", - "description": null, + "description": "Event sent when voucher is updated.\n\nAdded in Saleor 3.4.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", "fields": [ { "name": "issuedAt", @@ -100142,7 +101062,7 @@ }, { "name": "voucher", - "description": "The voucher the event relates to.\n\nAdded in Saleor 3.4.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "The voucher the event relates to.", "args": [ { "name": "channel", @@ -100860,7 +101780,7 @@ { "kind": "OBJECT", "name": "WarehouseCreated", - "description": null, + "description": "Event sent when new warehouse is created.\n\nAdded in Saleor 3.4.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", "fields": [ { "name": "issuedAt", @@ -100912,7 +101832,7 @@ }, { "name": "warehouse", - "description": "The warehouse the event relates to.\n\nAdded in Saleor 3.4.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "The warehouse the event relates to.", "args": [], "type": { "kind": "OBJECT", @@ -101008,7 +101928,7 @@ { "kind": "OBJECT", "name": "WarehouseDeleted", - "description": null, + "description": "Event sent when warehouse is deleted.\n\nAdded in Saleor 3.4.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", "fields": [ { "name": "issuedAt", @@ -101060,7 +101980,7 @@ }, { "name": "warehouse", - "description": "The warehouse the event relates to.\n\nAdded in Saleor 3.4.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "The warehouse the event relates to.", "args": [], "type": { "kind": "OBJECT", @@ -101626,7 +102546,7 @@ { "kind": "OBJECT", "name": "WarehouseUpdated", - "description": null, + "description": "Event sent when warehouse is updated.\n\nAdded in Saleor 3.4.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", "fields": [ { "name": "issuedAt", @@ -101678,7 +102598,7 @@ }, { "name": "warehouse", - "description": "The warehouse the event relates to.\n\nAdded in Saleor 3.4.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "The warehouse the event relates to.", "args": [], "type": { "kind": "OBJECT", diff --git a/schema.graphql b/schema.graphql index 0cf8f0592..374e03ab9 100644 --- a/schema.graphql +++ b/schema.graphql @@ -221,6 +221,13 @@ type AddressCreate { address: Address } +""" +Event sent when new address is created. + +Added in Saleor 3.5. + +Note: this API is currently in Feature Preview and can be subject to changes at later point. +""" type AddressCreated implements Event { """Time of the event.""" issuedAt: DateTime @@ -234,13 +241,7 @@ type AddressCreated implements Event { """The application receiving the webhook.""" recipient: App - """ - The address the event relates to. - - Added in Saleor 3.5. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ + """The address the event relates to.""" address: Address } @@ -257,6 +258,13 @@ type AddressDelete { address: Address } +""" +Event sent when address is deleted. + +Added in Saleor 3.5. + +Note: this API is currently in Feature Preview and can be subject to changes at later point. +""" type AddressDeleted implements Event { """Time of the event.""" issuedAt: DateTime @@ -270,13 +278,7 @@ type AddressDeleted implements Event { """The application receiving the webhook.""" recipient: App - """ - The address the event relates to. - - Added in Saleor 3.5. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ + """The address the event relates to.""" address: Address } @@ -346,6 +348,13 @@ type AddressUpdate { address: Address } +""" +Event sent when address is updated. + +Added in Saleor 3.5. + +Note: this API is currently in Feature Preview and can be subject to changes at later point. +""" type AddressUpdated implements Event { """Time of the event.""" issuedAt: DateTime @@ -359,13 +368,7 @@ type AddressUpdated implements Event { """The application receiving the webhook.""" recipient: App - """ - The address the event relates to. - - Added in Saleor 3.5. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ + """The address the event relates to.""" address: Address } @@ -603,6 +606,13 @@ type AppDeleteFailedInstallation { appInstallation: AppInstallation } +""" +Event sent when app is deleted. + +Added in Saleor 3.4. + +Note: this API is currently in Feature Preview and can be subject to changes at later point. +""" type AppDeleted implements Event { """Time of the event.""" issuedAt: DateTime @@ -616,13 +626,7 @@ type AppDeleted implements Event { """The application receiving the webhook.""" recipient: App - """ - The application the event relates to. - - Added in Saleor 3.4. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ + """The application the event relates to.""" app: App } @@ -803,6 +807,13 @@ type AppInstallation implements Node & Job { manifestUrl: String! } +""" +Event sent when new app is installed. + +Added in Saleor 3.4. + +Note: this API is currently in Feature Preview and can be subject to changes at later point. +""" type AppInstalled implements Event { """Time of the event.""" issuedAt: DateTime @@ -816,13 +827,7 @@ type AppInstalled implements Event { """The application receiving the webhook.""" recipient: App - """ - The application the event relates to. - - Added in Saleor 3.4. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ + """The application the event relates to.""" app: App } @@ -887,6 +892,13 @@ input AppSortingInput { field: AppSortField! } +""" +Event sent when app status has changed. + +Added in Saleor 3.4. + +Note: this API is currently in Feature Preview and can be subject to changes at later point. +""" type AppStatusChanged implements Event { """Time of the event.""" issuedAt: DateTime @@ -900,13 +912,7 @@ type AppStatusChanged implements Event { """The application receiving the webhook.""" recipient: App - """ - The application the event relates to. - - Added in Saleor 3.4. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ + """The application the event relates to.""" app: App } @@ -985,6 +991,13 @@ type AppUpdate { app: App } +""" +Event sent when app is updated. + +Added in Saleor 3.4. + +Note: this API is currently in Feature Preview and can be subject to changes at later point. +""" type AppUpdated implements Event { """Time of the event.""" issuedAt: DateTime @@ -998,13 +1011,7 @@ type AppUpdated implements Event { """The application receiving the webhook.""" recipient: App - """ - The application the event relates to. - - Added in Saleor 3.4. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ + """The application the event relates to.""" app: App } @@ -1300,6 +1307,13 @@ input AttributeCreateInput { availableInGrid: Boolean } +""" +Event sent when new attribute is created. + +Added in Saleor 3.5. + +Note: this API is currently in Feature Preview and can be subject to changes at later point. +""" type AttributeCreated implements Event { """Time of the event.""" issuedAt: DateTime @@ -1313,13 +1327,7 @@ type AttributeCreated implements Event { """The application receiving the webhook.""" recipient: App - """ - The attribute the event relates to. - - Added in Saleor 3.5. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ + """The attribute the event relates to.""" attribute: Attribute } @@ -1334,6 +1342,13 @@ type AttributeDelete { attribute: Attribute } +""" +Event sent when attribute is deleted. + +Added in Saleor 3.5. + +Note: this API is currently in Feature Preview and can be subject to changes at later point. +""" type AttributeDeleted implements Event { """Time of the event.""" issuedAt: DateTime @@ -1347,13 +1362,7 @@ type AttributeDeleted implements Event { """The application receiving the webhook.""" recipient: App - """ - The attribute the event relates to. - - Added in Saleor 3.5. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ + """The attribute the event relates to.""" attribute: Attribute } @@ -1586,6 +1595,13 @@ input AttributeUpdateInput { availableInGrid: Boolean } +""" +Event sent when attribute is updated. + +Added in Saleor 3.5. + +Note: this API is currently in Feature Preview and can be subject to changes at later point. +""" type AttributeUpdated implements Event { """Time of the event.""" issuedAt: DateTime @@ -1599,13 +1615,7 @@ type AttributeUpdated implements Event { """The application receiving the webhook.""" recipient: App - """ - The attribute the event relates to. - - Added in Saleor 3.5. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ + """The attribute the event relates to.""" attribute: Attribute } @@ -1731,6 +1741,13 @@ input AttributeValueCreateInput { name: String! } +""" +Event sent when new attribute value is created. + +Added in Saleor 3.5. + +Note: this API is currently in Feature Preview and can be subject to changes at later point. +""" type AttributeValueCreated implements Event { """Time of the event.""" issuedAt: DateTime @@ -1744,13 +1761,7 @@ type AttributeValueCreated implements Event { """The application receiving the webhook.""" recipient: App - """ - The attribute value the event relates to. - - Added in Saleor 3.5. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ + """The attribute value the event relates to.""" attributeValue: AttributeValue } @@ -1767,6 +1778,13 @@ type AttributeValueDelete { attributeValue: AttributeValue } +""" +Event sent when attribute value is deleted. + +Added in Saleor 3.5. + +Note: this API is currently in Feature Preview and can be subject to changes at later point. +""" type AttributeValueDeleted implements Event { """Time of the event.""" issuedAt: DateTime @@ -1780,13 +1798,7 @@ type AttributeValueDeleted implements Event { """The application receiving the webhook.""" recipient: App - """ - The attribute value the event relates to. - - Added in Saleor 3.5. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ + """The attribute value the event relates to.""" attributeValue: AttributeValue } @@ -1937,6 +1949,13 @@ input AttributeValueUpdateInput { name: String } +""" +Event sent when attribute value is updated. + +Added in Saleor 3.5. + +Note: this API is currently in Feature Preview and can be subject to changes at later point. +""" type AttributeValueUpdated implements Event { """Time of the event.""" issuedAt: DateTime @@ -1950,13 +1969,7 @@ type AttributeValueUpdated implements Event { """The application receiving the webhook.""" recipient: App - """ - The attribute value the event relates to. - - Added in Saleor 3.5. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ + """The attribute value the event relates to.""" attributeValue: AttributeValue } @@ -2240,6 +2253,13 @@ type CategoryCreate { category: Category } +""" +Event sent when new category is created. + +Added in Saleor 3.2. + +Note: this API is currently in Feature Preview and can be subject to changes at later point. +""" type CategoryCreated implements Event { """Time of the event.""" issuedAt: DateTime @@ -2253,13 +2273,7 @@ type CategoryCreated implements Event { """The application receiving the webhook.""" recipient: App - """ - The category the event relates to. - - Added in Saleor 3.2. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ + """The category the event relates to.""" category: Category } @@ -2274,6 +2288,13 @@ type CategoryDelete { category: Category } +""" +Event sent when category is deleted. + +Added in Saleor 3.2. + +Note: this API is currently in Feature Preview and can be subject to changes at later point. +""" type CategoryDeleted implements Event { """Time of the event.""" issuedAt: DateTime @@ -2287,13 +2308,7 @@ type CategoryDeleted implements Event { """The application receiving the webhook.""" recipient: App - """ - The category the event relates to. - - Added in Saleor 3.2. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ + """The category the event relates to.""" category: Category } @@ -2429,6 +2444,13 @@ type CategoryUpdate { category: Category } +""" +Event sent when category is updated. + +Added in Saleor 3.2. + +Note: this API is currently in Feature Preview and can be subject to changes at later point. +""" type CategoryUpdated implements Event { """Time of the event.""" issuedAt: DateTime @@ -2442,13 +2464,7 @@ type CategoryUpdated implements Event { """The application receiving the webhook.""" recipient: App - """ - The category the event relates to. - - Added in Saleor 3.2. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ + """The category the event relates to.""" category: Category } @@ -2584,6 +2600,13 @@ input ChannelCreateInput { defaultCountry: CountryCode! } +""" +Event sent when new channel is created. + +Added in Saleor 3.2. + +Note: this API is currently in Feature Preview and can be subject to changes at later point. +""" type ChannelCreated implements Event { """Time of the event.""" issuedAt: DateTime @@ -2597,13 +2620,7 @@ type ChannelCreated implements Event { """The application receiving the webhook.""" recipient: App - """ - The channel the event relates to. - - Added in Saleor 3.2. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ + """The channel the event relates to.""" channel: Channel } @@ -2635,6 +2652,13 @@ input ChannelDeleteInput { channelId: ID! } +""" +Event sent when channel is deleted. + +Added in Saleor 3.2. + +Note: this API is currently in Feature Preview and can be subject to changes at later point. +""" type ChannelDeleted implements Event { """Time of the event.""" issuedAt: DateTime @@ -2648,13 +2672,7 @@ type ChannelDeleted implements Event { """The application receiving the webhook.""" recipient: App - """ - The channel the event relates to. - - Added in Saleor 3.2. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ + """The channel the event relates to.""" channel: Channel } @@ -2690,6 +2708,13 @@ enum ChannelErrorCode { DUPLICATED_INPUT_ITEM } +""" +Event sent when channel status has changed. + +Added in Saleor 3.2. + +Note: this API is currently in Feature Preview and can be subject to changes at later point. +""" type ChannelStatusChanged implements Event { """Time of the event.""" issuedAt: DateTime @@ -2703,13 +2728,7 @@ type ChannelStatusChanged implements Event { """The application receiving the webhook.""" recipient: App - """ - The channel the event relates to. - - Added in Saleor 3.2. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ + """The channel the event relates to.""" channel: Channel } @@ -2766,6 +2785,13 @@ input ChannelUpdateInput { removeWarehouses: [ID!] } +""" +Event sent when channel is updated. + +Added in Saleor 3.2. + +Note: this API is currently in Feature Preview and can be subject to changes at later point. +""" type ChannelUpdated implements Event { """Time of the event.""" issuedAt: DateTime @@ -2779,13 +2805,7 @@ type ChannelUpdated implements Event { """The application receiving the webhook.""" recipient: App - """ - The channel the event relates to. - - Added in Saleor 3.2. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ + """The channel the event relates to.""" channel: Channel } @@ -3043,6 +3063,13 @@ input CheckoutCreateInput { validationRules: CheckoutValidationRules } +""" +Event sent when new checkout is created. + +Added in Saleor 3.2. + +Note: this API is currently in Feature Preview and can be subject to changes at later point. +""" type CheckoutCreated implements Event { """Time of the event.""" issuedAt: DateTime @@ -3056,13 +3083,7 @@ type CheckoutCreated implements Event { """The application receiving the webhook.""" recipient: App - """ - The checkout the event relates to. - - Added in Saleor 3.2. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ + """The checkout the event relates to.""" checkout: Checkout } @@ -3172,6 +3193,39 @@ input CheckoutFilterInput { channels: [ID!] } +""" +Filter shipping methods for checkout. + +Added in Saleor 3.6. + +Note: this API is currently in Feature Preview and can be subject to changes at later point. +""" +type CheckoutFilterShippingMethods implements Event { + """Time of the event.""" + issuedAt: DateTime + + """Saleor version that triggered the event.""" + version: String + + """The user or application that triggered the event.""" + issuingPrincipal: IssuingPrincipal + + """The application receiving the webhook.""" + recipient: App + + """The checkout the event relates to.""" + checkout: Checkout + + """ + Shipping methods that can be used with this checkout. + + Added in Saleor 3.6. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + shippingMethods: [ShippingMethod!] +} + """Update language code in the existing checkout.""" type CheckoutLanguageCodeUpdate { """An updated checkout.""" @@ -3288,17 +3342,30 @@ input CheckoutLineInput { Note: this API is currently in Feature Preview and can be subject to changes at later point. """ price: PositiveDecimal + + """ + Flag that allow force splitting the same variant into multiple lines by skipping the matching logic. + + Added in Saleor 3.6. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + forceNewLine: Boolean = false } input CheckoutLineUpdateInput { + """ + ID of the product variant. + + DEPRECATED: this field will be removed in Saleor 4.0. Use `lineId` instead. + """ + variantId: ID + """ The number of items purchased. Optional for apps, required for any other users. """ quantity: Int - """ID of the product variant.""" - variantId: ID! - """ Custom price of the item. Can be set only by apps with `HANDLE_CHECKOUTS` permission. When the line with the same variant will be provided multiple times, the last price will be used. @@ -3307,6 +3374,13 @@ input CheckoutLineUpdateInput { Note: this API is currently in Feature Preview and can be subject to changes at later point. """ price: PositiveDecimal + + """ + ID of the line. + + Added in Saleor 3.6. + """ + lineId: ID } """ @@ -3388,6 +3462,13 @@ input CheckoutSortingInput { field: CheckoutSortField! } +""" +Event sent when checkout is updated. + +Added in Saleor 3.2. + +Note: this API is currently in Feature Preview and can be subject to changes at later point. +""" type CheckoutUpdated implements Event { """Time of the event.""" issuedAt: DateTime @@ -3401,13 +3482,7 @@ type CheckoutUpdated implements Event { """The application receiving the webhook.""" recipient: App - """ - The checkout the event relates to. - - Added in Saleor 3.2. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ + """The checkout the event relates to.""" checkout: Checkout } @@ -3697,6 +3772,13 @@ input CollectionCreateInput { products: [ID!] } +""" +Event sent when new collection is created. + +Added in Saleor 3.2. + +Note: this API is currently in Feature Preview and can be subject to changes at later point. +""" type CollectionCreated implements Event { """Time of the event.""" issuedAt: DateTime @@ -3710,13 +3792,7 @@ type CollectionCreated implements Event { """The application receiving the webhook.""" recipient: App - """ - The collection the event relates to. - - Added in Saleor 3.2. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ + """The collection the event relates to.""" collection( """Slug of a channel for which the data should be returned.""" channel: String @@ -3734,6 +3810,13 @@ type CollectionDelete { collection: Collection } +""" +Event sent when collection is deleted. + +Added in Saleor 3.2. + +Note: this API is currently in Feature Preview and can be subject to changes at later point. +""" type CollectionDeleted implements Event { """Time of the event.""" issuedAt: DateTime @@ -3747,13 +3830,7 @@ type CollectionDeleted implements Event { """The application receiving the webhook.""" recipient: App - """ - The collection the event relates to. - - Added in Saleor 3.2. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ + """The collection the event relates to.""" collection( """Slug of a channel for which the data should be returned.""" channel: String @@ -3984,6 +4061,13 @@ type CollectionUpdate { collection: Collection } +""" +Event sent when collection is updated. + +Added in Saleor 3.2. + +Note: this API is currently in Feature Preview and can be subject to changes at later point. +""" type CollectionUpdated implements Event { """Time of the event.""" issuedAt: DateTime @@ -3997,13 +4081,7 @@ type CollectionUpdated implements Event { """The application receiving the webhook.""" recipient: App - """ - The collection the event relates to. - - Added in Saleor 3.2. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ + """The collection the event relates to.""" collection( """Slug of a channel for which the data should be returned.""" channel: String @@ -4396,6 +4474,13 @@ type CustomerCreate { user: User } +""" +Event sent when new customer user is created. + +Added in Saleor 3.2. + +Note: this API is currently in Feature Preview and can be subject to changes at later point. +""" type CustomerCreated implements Event { """Time of the event.""" issuedAt: DateTime @@ -4409,13 +4494,7 @@ type CustomerCreated implements Event { """The application receiving the webhook.""" recipient: App - """ - The user the event relates to. - - Added in Saleor 3.2. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ + """The user the event relates to.""" user: User } @@ -4524,6 +4603,13 @@ type CustomerUpdate { user: User } +""" +Event sent when customer user is updated. + +Added in Saleor 3.2. + +Note: this API is currently in Feature Preview and can be subject to changes at later point. +""" type CustomerUpdated implements Event { """Time of the event.""" issuedAt: DateTime @@ -4537,13 +4623,7 @@ type CustomerUpdated implements Event { """The application receiving the webhook.""" recipient: App - """ - The user the event relates to. - - Added in Saleor 3.2. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ + """The user the event relates to.""" user: User } @@ -4931,6 +5011,13 @@ input DraftOrderCreateInput { lines: [OrderLineCreateInput!] } +""" +Event sent when new draft order is created. + +Added in Saleor 3.2. + +Note: this API is currently in Feature Preview and can be subject to changes at later point. +""" type DraftOrderCreated implements Event { """Time of the event.""" issuedAt: DateTime @@ -4944,13 +5031,7 @@ type DraftOrderCreated implements Event { """The application receiving the webhook.""" recipient: App - """ - The order the event relates to. - - Added in Saleor 3.2. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ + """The order the event relates to.""" order: Order } @@ -4965,6 +5046,13 @@ type DraftOrderDelete { order: Order } +""" +Event sent when draft order is deleted. + +Added in Saleor 3.2. + +Note: this API is currently in Feature Preview and can be subject to changes at later point. +""" type DraftOrderDeleted implements Event { """Time of the event.""" issuedAt: DateTime @@ -4978,13 +5066,7 @@ type DraftOrderDeleted implements Event { """The application receiving the webhook.""" recipient: App - """ - The order the event relates to. - - Added in Saleor 3.2. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ + """The order the event relates to.""" order: Order } @@ -5045,6 +5127,13 @@ type DraftOrderUpdate { order: Order } +""" +Event sent when draft order is updated. + +Added in Saleor 3.2. + +Note: this API is currently in Feature Preview and can be subject to changes at later point. +""" type DraftOrderUpdated implements Event { """Time of the event.""" issuedAt: DateTime @@ -5058,13 +5147,7 @@ type DraftOrderUpdated implements Event { """The application receiving the webhook.""" recipient: App - """ - The order the event relates to. - - Added in Saleor 3.2. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ + """The order the event relates to.""" order: Order } @@ -5681,6 +5764,13 @@ input FulfillmentCancelInput { warehouseId: ID } +""" +Event sent when fulfillment is canceled. + +Added in Saleor 3.4. + +Note: this API is currently in Feature Preview and can be subject to changes at later point. +""" type FulfillmentCanceled implements Event { """Time of the event.""" issuedAt: DateTime @@ -5694,25 +5784,20 @@ type FulfillmentCanceled implements Event { """The application receiving the webhook.""" recipient: App - """ - The fulfillment the event relates to. - - Added in Saleor 3.2. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ + """The fulfillment the event relates to.""" fulfillment: Fulfillment - """ - The order the fulfillment belongs to. - - Added in Saleor 3.4. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ + """The order the fulfillment belongs to.""" order: Order } +""" +Event sent when new fulfillment is created. + +Added in Saleor 3.4. + +Note: this API is currently in Feature Preview and can be subject to changes at later point. +""" type FulfillmentCreated implements Event { """Time of the event.""" issuedAt: DateTime @@ -5726,22 +5811,10 @@ type FulfillmentCreated implements Event { """The application receiving the webhook.""" recipient: App - """ - The fulfillment the event relates to. - - Added in Saleor 3.2. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ + """The fulfillment the event relates to.""" fulfillment: Fulfillment - """ - The order the fulfillment belongs to. - - Added in Saleor 3.4. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ + """The order the fulfillment belongs to.""" order: Order } @@ -5996,8 +6069,8 @@ type GiftCard implements Node & ObjectWithMetadata { """ boughtInChannel: String isActive: Boolean! - initialBalance: Money - currentBalance: Money + initialBalance: Money! + currentBalance: Money! """The customer who bought a gift card.""" user: User @deprecated(reason: "This field will be removed in Saleor 4.0. Use `createdBy` field instead.") @@ -6226,6 +6299,13 @@ input GiftCardCreateInput { note: String } +""" +Event sent when new gift card is created. + +Added in Saleor 3.2. + +Note: this API is currently in Feature Preview and can be subject to changes at later point. +""" type GiftCardCreated implements Event { """Time of the event.""" issuedAt: DateTime @@ -6239,13 +6319,7 @@ type GiftCardCreated implements Event { """The application receiving the webhook.""" recipient: App - """ - The gift card the event relates to. - - Added in Saleor 3.2. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ + """The gift card the event relates to.""" giftCard: GiftCard } @@ -6276,6 +6350,13 @@ type GiftCardDelete { giftCard: GiftCard } +""" +Event sent when gift card is deleted. + +Added in Saleor 3.2. + +Note: this API is currently in Feature Preview and can be subject to changes at later point. +""" type GiftCardDeleted implements Event { """Time of the event.""" issuedAt: DateTime @@ -6289,13 +6370,7 @@ type GiftCardDeleted implements Event { """The application receiving the webhook.""" recipient: App - """ - The gift card the event relates to. - - Added in Saleor 3.2. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ + """The gift card the event relates to.""" giftCard: GiftCard } @@ -6528,6 +6603,13 @@ input GiftCardSortingInput { field: GiftCardSortField! } +""" +Event sent when gift card status has changed. + +Added in Saleor 3.2. + +Note: this API is currently in Feature Preview and can be subject to changes at later point. +""" type GiftCardStatusChanged implements Event { """Time of the event.""" issuedAt: DateTime @@ -6541,13 +6623,7 @@ type GiftCardStatusChanged implements Event { """The application receiving the webhook.""" recipient: App - """ - The gift card the event relates to. - - Added in Saleor 3.2. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ + """The gift card the event relates to.""" giftCard: GiftCard } @@ -6647,6 +6723,13 @@ input GiftCardUpdateInput { balanceAmount: PositiveDecimal } +""" +Event sent when gift card is updated. + +Added in Saleor 3.2. + +Note: this API is currently in Feature Preview and can be subject to changes at later point. +""" type GiftCardUpdated implements Event { """Time of the event.""" issuedAt: DateTime @@ -6660,13 +6743,7 @@ type GiftCardUpdated implements Event { """The application receiving the webhook.""" recipient: App - """ - The gift card the event relates to. - - Added in Saleor 3.2. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ + """The gift card the event relates to.""" giftCard: GiftCard } @@ -6818,6 +6895,13 @@ type InvoiceDelete { invoice: Invoice } +""" +Event sent when invoice is deleted. + +Added in Saleor 3.2. + +Note: this API is currently in Feature Preview and can be subject to changes at later point. +""" type InvoiceDeleted implements Event { """Time of the event.""" issuedAt: DateTime @@ -6831,13 +6915,7 @@ type InvoiceDeleted implements Event { """The application receiving the webhook.""" recipient: App - """ - The invoice the event relates to. - - Added in Saleor 3.2. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ + """The invoice the event relates to.""" invoice: Invoice } @@ -6890,6 +6968,13 @@ type InvoiceRequestDelete { invoice: Invoice } +""" +Event sent when invoice is requested. + +Added in Saleor 3.2. + +Note: this API is currently in Feature Preview and can be subject to changes at later point. +""" type InvoiceRequested implements Event { """Time of the event.""" issuedAt: DateTime @@ -6903,13 +6988,7 @@ type InvoiceRequested implements Event { """The application receiving the webhook.""" recipient: App - """ - The invoice the event relates to. - - Added in Saleor 3.2. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ + """The invoice the event relates to.""" invoice: Invoice } @@ -6924,6 +7003,13 @@ type InvoiceSendNotification { invoice: Invoice } +""" +Event sent when invoice is sent. + +Added in Saleor 3.2. + +Note: this API is currently in Feature Preview and can be subject to changes at later point. +""" type InvoiceSent implements Event { """Time of the event.""" issuedAt: DateTime @@ -6937,13 +7023,7 @@ type InvoiceSent implements Event { """The application receiving the webhook.""" recipient: App - """ - The invoice the event relates to. - - Added in Saleor 3.2. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ + """The invoice the event relates to.""" invoice: Invoice } @@ -7967,6 +8047,13 @@ input MenuCreateInput { items: [MenuItemInput!] } +""" +Event sent when new menu is created. + +Added in Saleor 3.4. + +Note: this API is currently in Feature Preview and can be subject to changes at later point. +""" type MenuCreated implements Event { """Time of the event.""" issuedAt: DateTime @@ -7980,13 +8067,7 @@ type MenuCreated implements Event { """The application receiving the webhook.""" recipient: App - """ - The menu the event relates to. - - Added in Saleor 3.4. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ + """The menu the event relates to.""" menu( """Slug of a channel for which the data should be returned.""" channel: String @@ -8004,6 +8085,13 @@ type MenuDelete { menu: Menu } +""" +Event sent when menu is deleted. + +Added in Saleor 3.4. + +Note: this API is currently in Feature Preview and can be subject to changes at later point. +""" type MenuDeleted implements Event { """Time of the event.""" issuedAt: DateTime @@ -8017,13 +8105,7 @@ type MenuDeleted implements Event { """The application receiving the webhook.""" recipient: App - """ - The menu the event relates to. - - Added in Saleor 3.4. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ + """The menu the event relates to.""" menu( """Slug of a channel for which the data should be returned.""" channel: String @@ -8211,6 +8293,13 @@ input MenuItemCreateInput { parent: ID } +""" +Event sent when new menu item is created. + +Added in Saleor 3.4. + +Note: this API is currently in Feature Preview and can be subject to changes at later point. +""" type MenuItemCreated implements Event { """Time of the event.""" issuedAt: DateTime @@ -8224,13 +8313,7 @@ type MenuItemCreated implements Event { """The application receiving the webhook.""" recipient: App - """ - The menu item the event relates to. - - Added in Saleor 3.4. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ + """The menu item the event relates to.""" menuItem( """Slug of a channel for which the data should be returned.""" channel: String @@ -8248,6 +8331,13 @@ type MenuItemDelete { menuItem: MenuItem } +""" +Event sent when menu item is deleted. + +Added in Saleor 3.4. + +Note: this API is currently in Feature Preview and can be subject to changes at later point. +""" type MenuItemDeleted implements Event { """Time of the event.""" issuedAt: DateTime @@ -8261,13 +8351,7 @@ type MenuItemDeleted implements Event { """The application receiving the webhook.""" recipient: App - """ - The menu item the event relates to. - - Added in Saleor 3.4. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ + """The menu item the event relates to.""" menuItem( """Slug of a channel for which the data should be returned.""" channel: String @@ -8375,6 +8459,13 @@ type MenuItemUpdate { menuItem: MenuItem } +""" +Event sent when menu item is updated. + +Added in Saleor 3.4. + +Note: this API is currently in Feature Preview and can be subject to changes at later point. +""" type MenuItemUpdated implements Event { """Time of the event.""" issuedAt: DateTime @@ -8388,13 +8479,7 @@ type MenuItemUpdated implements Event { """The application receiving the webhook.""" recipient: App - """ - The menu item the event relates to. - - Added in Saleor 3.4. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ + """The menu item the event relates to.""" menuItem( """Slug of a channel for which the data should be returned.""" channel: String @@ -8433,6 +8518,13 @@ type MenuUpdate { menu: Menu } +""" +Event sent when menu is updated. + +Added in Saleor 3.4. + +Note: this API is currently in Feature Preview and can be subject to changes at later point. +""" type MenuUpdated implements Event { """Time of the event.""" issuedAt: DateTime @@ -8446,13 +8538,7 @@ type MenuUpdated implements Event { """The application receiving the webhook.""" recipient: App - """ - The menu the event relates to. - - Added in Saleor 3.4. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ + """The menu the event relates to.""" menu( """Slug of a channel for which the data should be returned.""" channel: String @@ -12487,6 +12573,13 @@ type OrderCancel { errors: [OrderError!]! } +""" +Event sent when order is canceled. + +Added in Saleor 3.2. + +Note: this API is currently in Feature Preview and can be subject to changes at later point. +""" type OrderCancelled implements Event { """Time of the event.""" issuedAt: DateTime @@ -12500,13 +12593,7 @@ type OrderCancelled implements Event { """The application receiving the webhook.""" recipient: App - """ - The order the event relates to. - - Added in Saleor 3.2. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ + """The order the event relates to.""" order: Order } @@ -12554,6 +12641,13 @@ type OrderConfirm { errors: [OrderError!]! } +""" +Event sent when order is confirmed. + +Added in Saleor 3.2. + +Note: this API is currently in Feature Preview and can be subject to changes at later point. +""" type OrderConfirmed implements Event { """Time of the event.""" issuedAt: DateTime @@ -12567,13 +12661,7 @@ type OrderConfirmed implements Event { """The application receiving the webhook.""" recipient: App - """ - The order the event relates to. - - Added in Saleor 3.2. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ + """The order the event relates to.""" order: Order } @@ -12644,6 +12732,13 @@ enum OrderCreateFromCheckoutErrorCode { UNAVAILABLE_VARIANT_IN_CHANNEL } +""" +Event sent when new order is created. + +Added in Saleor 3.2. + +Note: this API is currently in Feature Preview and can be subject to changes at later point. +""" type OrderCreated implements Event { """Time of the event.""" issuedAt: DateTime @@ -12657,13 +12752,7 @@ type OrderCreated implements Event { """The application receiving the webhook.""" recipient: App - """ - The order the event relates to. - - Added in Saleor 3.2. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ + """The order the event relates to.""" order: Order } @@ -13036,6 +13125,39 @@ input OrderFilterInput { numbers: [String!] } +""" +Filter shipping methods for order. + +Added in Saleor 3.6. + +Note: this API is currently in Feature Preview and can be subject to changes at later point. +""" +type OrderFilterShippingMethods implements Event { + """Time of the event.""" + issuedAt: DateTime + + """Saleor version that triggered the event.""" + version: String + + """The user or application that triggered the event.""" + issuingPrincipal: IssuingPrincipal + + """The application receiving the webhook.""" + recipient: App + + """The order the event relates to.""" + order: Order + + """ + Shipping methods that can be used with this checkout. + + Added in Saleor 3.6. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + shippingMethods: [ShippingMethod!] +} + """ Creates new fulfillments for an order. @@ -13078,6 +13200,13 @@ input OrderFulfillStockInput { warehouse: ID! } +""" +Event sent when order is fulfilled. + +Added in Saleor 3.2. + +Note: this API is currently in Feature Preview and can be subject to changes at later point. +""" type OrderFulfilled implements Event { """Time of the event.""" issuedAt: DateTime @@ -13091,16 +13220,17 @@ type OrderFulfilled implements Event { """The application receiving the webhook.""" recipient: App - """ - The order the event relates to. - - Added in Saleor 3.2. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ + """The order the event relates to.""" order: Order } +""" +Event sent when order is fully paid. + +Added in Saleor 3.2. + +Note: this API is currently in Feature Preview and can be subject to changes at later point. +""" type OrderFullyPaid implements Event { """Time of the event.""" issuedAt: DateTime @@ -13114,13 +13244,7 @@ type OrderFullyPaid implements Event { """The application receiving the webhook.""" recipient: App - """ - The order the event relates to. - - Added in Saleor 3.2. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ + """The order the event relates to.""" order: Order } @@ -13251,6 +13375,15 @@ input OrderLineCreateInput { """Product variant ID.""" variantId: ID! + + """ + Flag that allow force splitting the same variant into multiple lines by skipping the matching logic. + + Added in Saleor 3.6. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + forceNewLine: Boolean = false } """ @@ -13590,6 +13723,13 @@ input OrderUpdateShippingInput { shippingMethod: ID } +""" +Event sent when order is updated. + +Added in Saleor 3.2. + +Note: this API is currently in Feature Preview and can be subject to changes at later point. +""" type OrderUpdated implements Event { """Time of the event.""" issuedAt: DateTime @@ -13603,13 +13743,7 @@ type OrderUpdated implements Event { """The application receiving the webhook.""" recipient: App - """ - The order the event relates to. - - Added in Saleor 3.2. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ + """The order the event relates to.""" order: Order } @@ -13833,6 +13967,13 @@ input PageCreateInput { pageType: ID! } +""" +Event sent when new page is created. + +Added in Saleor 3.2. + +Note: this API is currently in Feature Preview and can be subject to changes at later point. +""" type PageCreated implements Event { """Time of the event.""" issuedAt: DateTime @@ -13846,13 +13987,7 @@ type PageCreated implements Event { """The application receiving the webhook.""" recipient: App - """ - The page the event relates to. - - Added in Saleor 3.2. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ + """The page the event relates to.""" page: Page } @@ -13867,6 +14002,13 @@ type PageDelete { page: Page } +""" +Event sent when page is deleted. + +Added in Saleor 3.2. + +Note: this API is currently in Feature Preview and can be subject to changes at later point. +""" type PageDeleted implements Event { """Time of the event.""" issuedAt: DateTime @@ -13880,13 +14022,7 @@ type PageDeleted implements Event { """The application receiving the webhook.""" recipient: App - """ - The page the event relates to. - - Added in Saleor 3.2. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ + """The page the event relates to.""" page: Page } @@ -14250,6 +14386,13 @@ input PageTypeCreateInput { addAttributes: [ID!] } +""" +Event sent when new page type is created. + +Added in Saleor 3.5. + +Note: this API is currently in Feature Preview and can be subject to changes at later point. +""" type PageTypeCreated implements Event { """Time of the event.""" issuedAt: DateTime @@ -14263,13 +14406,7 @@ type PageTypeCreated implements Event { """The application receiving the webhook.""" recipient: App - """ - The page type the event relates to. - - Added in Saleor 3.5. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ + """The page type the event relates to.""" pageType: PageType } @@ -14284,6 +14421,13 @@ type PageTypeDelete { pageType: PageType } +""" +Event sent when page type is deleted. + +Added in Saleor 3.5. + +Note: this API is currently in Feature Preview and can be subject to changes at later point. +""" type PageTypeDeleted implements Event { """Time of the event.""" issuedAt: DateTime @@ -14297,13 +14441,7 @@ type PageTypeDeleted implements Event { """The application receiving the webhook.""" recipient: App - """ - The page type the event relates to. - - Added in Saleor 3.5. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ + """The page type the event relates to.""" pageType: PageType } @@ -14364,6 +14502,13 @@ input PageTypeUpdateInput { removeAttributes: [ID!] } +""" +Event sent when page type is updated. + +Added in Saleor 3.5. + +Note: this API is currently in Feature Preview and can be subject to changes at later point. +""" type PageTypeUpdated implements Event { """Time of the event.""" issuedAt: DateTime @@ -14377,13 +14522,7 @@ type PageTypeUpdated implements Event { """The application receiving the webhook.""" recipient: App - """ - The page type the event relates to. - - Added in Saleor 3.5. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ + """The page type the event relates to.""" pageType: PageType } @@ -14398,6 +14537,13 @@ type PageUpdate { page: Page } +""" +Event sent when page is updated. + +Added in Saleor 3.2. + +Note: this API is currently in Feature Preview and can be subject to changes at later point. +""" type PageUpdated implements Event { """Time of the event.""" issuedAt: DateTime @@ -14411,13 +14557,7 @@ type PageUpdated implements Event { """The application receiving the webhook.""" recipient: App - """ - The page the event relates to. - - Added in Saleor 3.2. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ + """The page the event relates to.""" page: Page } @@ -14539,6 +14679,30 @@ type Payment implements Node & ObjectWithMetadata { creditCard: CreditCard } +""" +Authorize payment. + +Added in Saleor 3.6. + +Note: this API is currently in Feature Preview and can be subject to changes at later point. +""" +type PaymentAuthorize implements Event { + """Time of the event.""" + issuedAt: DateTime + + """Saleor version that triggered the event.""" + version: String + + """The user or application that triggered the event.""" + issuingPrincipal: IssuingPrincipal + + """The application receiving the webhook.""" + recipient: App + + """Look up a payment.""" + payment: Payment +} + """ Captures the authorized payment amount. @@ -14551,6 +14715,30 @@ type PaymentCapture { errors: [PaymentError!]! } +""" +Capture payment. + +Added in Saleor 3.6. + +Note: this API is currently in Feature Preview and can be subject to changes at later point. +""" +type PaymentCaptureEvent implements Event { + """Time of the event.""" + issuedAt: DateTime + + """Saleor version that triggered the event.""" + version: String + + """The user or application that triggered the event.""" + issuingPrincipal: IssuingPrincipal + + """The application receiving the webhook.""" + recipient: App + + """Look up a payment.""" + payment: Payment +} + """An enumeration.""" enum PaymentChargeStatusEnum { NOT_CHARGED @@ -14585,6 +14773,30 @@ input PaymentCheckBalanceInput { card: CardInput! } +""" +Confirm payment. + +Added in Saleor 3.6. + +Note: this API is currently in Feature Preview and can be subject to changes at later point. +""" +type PaymentConfirmEvent implements Event { + """Time of the event.""" + issuedAt: DateTime + + """Saleor version that triggered the event.""" + version: String + + """The user or application that triggered the event.""" + issuingPrincipal: IssuingPrincipal + + """The application receiving the webhook.""" + recipient: App + + """Look up a payment.""" + payment: Payment +} + type PaymentCountableConnection { """Pagination data for this connection.""" pageInfo: PageInfo! @@ -14715,6 +14927,54 @@ input PaymentInput { metadata: [MetadataInput!] } +""" +List payment gateways. + +Added in Saleor 3.6. + +Note: this API is currently in Feature Preview and can be subject to changes at later point. +""" +type PaymentListGateways implements Event { + """Time of the event.""" + issuedAt: DateTime + + """Saleor version that triggered the event.""" + version: String + + """The user or application that triggered the event.""" + issuingPrincipal: IssuingPrincipal + + """The application receiving the webhook.""" + recipient: App + + """The checkout the event relates to.""" + checkout: Checkout +} + +""" +Process payment. + +Added in Saleor 3.6. + +Note: this API is currently in Feature Preview and can be subject to changes at later point. +""" +type PaymentProcessEvent implements Event { + """Time of the event.""" + issuedAt: DateTime + + """Saleor version that triggered the event.""" + version: String + + """The user or application that triggered the event.""" + issuingPrincipal: IssuingPrincipal + + """The application receiving the webhook.""" + recipient: App + + """Look up a payment.""" + payment: Payment +} + """ Refunds the captured payment amount. @@ -14727,6 +14987,30 @@ type PaymentRefund { errors: [PaymentError!]! } +""" +Refund payment. + +Added in Saleor 3.6. + +Note: this API is currently in Feature Preview and can be subject to changes at later point. +""" +type PaymentRefundEvent implements Event { + """Time of the event.""" + issuedAt: DateTime + + """Saleor version that triggered the event.""" + version: String + + """The user or application that triggered the event.""" + issuingPrincipal: IssuingPrincipal + + """The application receiving the webhook.""" + recipient: App + + """Look up a payment.""" + payment: Payment +} + """ Represents a payment source stored for user in payment gateway, such as credit card. """ @@ -14762,6 +15046,30 @@ type PaymentVoid { errors: [PaymentError!]! } +""" +Void payment. + +Added in Saleor 3.6. + +Note: this API is currently in Feature Preview and can be subject to changes at later point. +""" +type PaymentVoidEvent implements Event { + """Time of the event.""" + issuedAt: DateTime + + """Saleor version that triggered the event.""" + version: String + + """The user or application that triggered the event.""" + issuingPrincipal: IssuingPrincipal + + """The application receiving the webhook.""" + recipient: App + + """Look up a payment.""" + payment: Payment +} + """Represents a permission object in a friendly form.""" type Permission { """Internal code for permission.""" @@ -14819,6 +15127,13 @@ input PermissionGroupCreateInput { name: String! } +""" +Event sent when new permission group is created. + +Added in Saleor 3.6. + +Note: this API is currently in Feature Preview and can be subject to changes at later point. +""" type PermissionGroupCreated implements Event { """Time of the event.""" issuedAt: DateTime @@ -14832,13 +15147,7 @@ type PermissionGroupCreated implements Event { """The application receiving the webhook.""" recipient: App - """ - The permission group the event relates to. - - Added in Saleor 3.6. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ + """The permission group the event relates to.""" permissionGroup: Group } @@ -14853,6 +15162,13 @@ type PermissionGroupDelete { group: Group } +""" +Event sent when permission group is deleted. + +Added in Saleor 3.6. + +Note: this API is currently in Feature Preview and can be subject to changes at later point. +""" type PermissionGroupDeleted implements Event { """Time of the event.""" issuedAt: DateTime @@ -14866,13 +15182,7 @@ type PermissionGroupDeleted implements Event { """The application receiving the webhook.""" recipient: App - """ - The permission group the event relates to. - - Added in Saleor 3.6. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ + """The permission group the event relates to.""" permissionGroup: Group } @@ -14953,6 +15263,13 @@ input PermissionGroupUpdateInput { removeUsers: [ID!] } +""" +Event sent when permission group is updated. + +Added in Saleor 3.6. + +Note: this API is currently in Feature Preview and can be subject to changes at later point. +""" type PermissionGroupUpdated implements Event { """Time of the event.""" issuedAt: DateTime @@ -14966,13 +15283,7 @@ type PermissionGroupUpdated implements Event { """The application receiving the webhook.""" recipient: App - """ - The permission group the event relates to. - - Added in Saleor 3.6. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ + """The permission group the event relates to.""" permissionGroup: Group } @@ -15632,6 +15943,13 @@ input ProductCreateInput { productType: ID! } +""" +Event sent when new product is created. + +Added in Saleor 3.2. + +Note: this API is currently in Feature Preview and can be subject to changes at later point. +""" type ProductCreated implements Event { """Time of the event.""" issuedAt: DateTime @@ -15645,25 +15963,13 @@ type ProductCreated implements Event { """The application receiving the webhook.""" recipient: App - """ - The product the event relates to. - - Added in Saleor 3.2. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ + """The product the event relates to.""" product( """Slug of a channel for which the data should be returned.""" channel: String ): Product - """ - The category of the product. - - Added in Saleor 3.2. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ + """The category of the product.""" category: Category } @@ -15678,6 +15984,13 @@ type ProductDelete { product: Product } +""" +Event sent when product is deleted. + +Added in Saleor 3.2. + +Note: this API is currently in Feature Preview and can be subject to changes at later point. +""" type ProductDeleted implements Event { """Time of the event.""" issuedAt: DateTime @@ -15691,25 +16004,13 @@ type ProductDeleted implements Event { """The application receiving the webhook.""" recipient: App - """ - The product the event relates to. - - Added in Saleor 3.2. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ + """The product the event relates to.""" product( """Slug of a channel for which the data should be returned.""" channel: String ): Product - """ - The category of the product. - - Added in Saleor 3.2. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ + """The category of the product.""" category: Category } @@ -16465,6 +16766,13 @@ type ProductUpdate { product: Product } +""" +Event sent when product is updated. + +Added in Saleor 3.2. + +Note: this API is currently in Feature Preview and can be subject to changes at later point. +""" type ProductUpdated implements Event { """Time of the event.""" issuedAt: DateTime @@ -16478,25 +16786,13 @@ type ProductUpdated implements Event { """The application receiving the webhook.""" recipient: App - """ - The product the event relates to. - - Added in Saleor 3.2. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ + """The product the event relates to.""" product( """Slug of a channel for which the data should be returned.""" channel: String ): Product - """ - The category of the product. - - Added in Saleor 3.2. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ + """The category of the product.""" category: Category } @@ -16668,6 +16964,13 @@ type ProductVariant implements Node & ObjectWithMetadata { updatedAt: DateTime! } +""" +Event sent when product variant is back in stock. + +Added in Saleor 3.2. + +Note: this API is currently in Feature Preview and can be subject to changes at later point. +""" type ProductVariantBackInStock implements Event { """Time of the event.""" issuedAt: DateTime @@ -16681,25 +16984,13 @@ type ProductVariantBackInStock implements Event { """The application receiving the webhook.""" recipient: App - """ - The product variant the event relates to. - - Added in Saleor 3.2. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ + """The product variant the event relates to.""" productVariant( """Slug of a channel for which the data should be returned.""" channel: String ): ProductVariant - """ - Look up a warehouse. - - Added in Saleor 3.2. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ + """Look up a warehouse.""" warehouse: Warehouse } @@ -16896,6 +17187,13 @@ input ProductVariantCreateInput { stocks: [StockInput!] } +""" +Event sent when new product variant is created. + +Added in Saleor 3.2. + +Note: this API is currently in Feature Preview and can be subject to changes at later point. +""" type ProductVariantCreated implements Event { """Time of the event.""" issuedAt: DateTime @@ -16909,13 +17207,7 @@ type ProductVariantCreated implements Event { """The application receiving the webhook.""" recipient: App - """ - The product variant the event relates to. - - Added in Saleor 3.2. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ + """The product variant the event relates to.""" productVariant( """Slug of a channel for which the data should be returned.""" channel: String @@ -16933,6 +17225,13 @@ type ProductVariantDelete { productVariant: ProductVariant } +""" +Event sent when product variant is deleted. + +Added in Saleor 3.2. + +Note: this API is currently in Feature Preview and can be subject to changes at later point. +""" type ProductVariantDeleted implements Event { """Time of the event.""" issuedAt: DateTime @@ -16946,13 +17245,7 @@ type ProductVariantDeleted implements Event { """The application receiving the webhook.""" recipient: App - """ - The product variant the event relates to. - - Added in Saleor 3.2. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ + """The product variant the event relates to.""" productVariant( """Slug of a channel for which the data should be returned.""" channel: String @@ -17001,6 +17294,13 @@ input ProductVariantInput { quantityLimitPerCustomer: Int } +""" +Event sent when product variant is out of stock. + +Added in Saleor 3.2. + +Note: this API is currently in Feature Preview and can be subject to changes at later point. +""" type ProductVariantOutOfStock implements Event { """Time of the event.""" issuedAt: DateTime @@ -17014,25 +17314,13 @@ type ProductVariantOutOfStock implements Event { """The application receiving the webhook.""" recipient: App - """ - The product variant the event relates to. - - Added in Saleor 3.2. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ + """The product variant the event relates to.""" productVariant( """Slug of a channel for which the data should be returned.""" channel: String ): ProductVariant - """ - Look up a warehouse. - - Added in Saleor 3.2. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ + """Look up a warehouse.""" warehouse: Warehouse } @@ -17181,6 +17469,13 @@ type ProductVariantUpdate { productVariant: ProductVariant } +""" +Event sent when product variant is updated. + +Added in Saleor 3.2. + +Note: this API is currently in Feature Preview and can be subject to changes at later point. +""" type ProductVariantUpdated implements Event { """Time of the event.""" issuedAt: DateTime @@ -17194,13 +17489,7 @@ type ProductVariantUpdated implements Event { """The application receiving the webhook.""" recipient: App - """ - The product variant the event relates to. - - Added in Saleor 3.2. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ + """The product variant the event relates to.""" productVariant( """Slug of a channel for which the data should be returned.""" channel: String @@ -18797,6 +19086,13 @@ type SaleCreate { sale: Sale } +""" +Event sent when new sale is created. + +Added in Saleor 3.2. + +Note: this API is currently in Feature Preview and can be subject to changes at later point. +""" type SaleCreated implements Event { """Time of the event.""" issuedAt: DateTime @@ -18810,13 +19106,7 @@ type SaleCreated implements Event { """The application receiving the webhook.""" recipient: App - """ - The sale the event relates to. - - Added in Saleor 3.2. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ + """The sale the event relates to.""" sale( """Slug of a channel for which the data should be returned.""" channel: String @@ -18834,6 +19124,13 @@ type SaleDelete { sale: Sale } +""" +Event sent when sale is deleted. + +Added in Saleor 3.2. + +Note: this API is currently in Feature Preview and can be subject to changes at later point. +""" type SaleDeleted implements Event { """Time of the event.""" issuedAt: DateTime @@ -18847,13 +19144,7 @@ type SaleDeleted implements Event { """The application receiving the webhook.""" recipient: App - """ - The sale the event relates to. - - Added in Saleor 3.2. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ + """The sale the event relates to.""" sale( """Slug of a channel for which the data should be returned.""" channel: String @@ -19036,6 +19327,13 @@ type SaleUpdate { sale: Sale } +""" +Event sent when sale is updated. + +Added in Saleor 3.2. + +Note: this API is currently in Feature Preview and can be subject to changes at later point. +""" type SaleUpdated implements Event { """Time of the event.""" issuedAt: DateTime @@ -19049,13 +19347,7 @@ type SaleUpdated implements Event { """The application receiving the webhook.""" recipient: App - """ - The sale the event relates to. - - Added in Saleor 3.2. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ + """The sale the event relates to.""" sale( """Slug of a channel for which the data should be returned.""" channel: String @@ -19129,6 +19421,39 @@ enum ShippingErrorCode { DUPLICATED_INPUT_ITEM } +""" +List shipping methods for checkout. + +Added in Saleor 3.6. + +Note: this API is currently in Feature Preview and can be subject to changes at later point. +""" +type ShippingListMethodsForCheckout implements Event { + """Time of the event.""" + issuedAt: DateTime + + """Saleor version that triggered the event.""" + version: String + + """The user or application that triggered the event.""" + issuingPrincipal: IssuingPrincipal + + """The application receiving the webhook.""" + recipient: App + + """The checkout the event relates to.""" + checkout: Checkout + + """ + Shipping methods that can be used with this checkout. + + Added in Saleor 3.6. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + shippingMethods: [ShippingMethod!] +} + """ Shipping methods that can be used as means of shipping for orders and checkouts. """ @@ -19503,6 +19828,13 @@ type ShippingPriceCreate { errors: [ShippingError!]! } +""" +Event sent when new shipping price is created. + +Added in Saleor 3.2. + +Note: this API is currently in Feature Preview and can be subject to changes at later point. +""" type ShippingPriceCreated implements Event { """Time of the event.""" issuedAt: DateTime @@ -19516,25 +19848,13 @@ type ShippingPriceCreated implements Event { """The application receiving the webhook.""" recipient: App - """ - The shipping method the event relates to. - - Added in Saleor 3.2. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ + """The shipping method the event relates to.""" shippingMethod( """Slug of a channel for which the data should be returned.""" channel: String ): ShippingMethodType - """ - The shipping zone the shipping method belongs to. - - Added in Saleor 3.2. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ + """The shipping zone the shipping method belongs to.""" shippingZone( """Slug of a channel for which the data should be returned.""" channel: String @@ -19556,6 +19876,13 @@ type ShippingPriceDelete { errors: [ShippingError!]! } +""" +Event sent when shipping price is deleted. + +Added in Saleor 3.2. + +Note: this API is currently in Feature Preview and can be subject to changes at later point. +""" type ShippingPriceDeleted implements Event { """Time of the event.""" issuedAt: DateTime @@ -19569,25 +19896,13 @@ type ShippingPriceDeleted implements Event { """The application receiving the webhook.""" recipient: App - """ - The shipping method the event relates to. - - Added in Saleor 3.2. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ + """The shipping method the event relates to.""" shippingMethod( """Slug of a channel for which the data should be returned.""" channel: String ): ShippingMethodType - """ - The shipping zone the shipping method belongs to. - - Added in Saleor 3.2. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ + """The shipping zone the shipping method belongs to.""" shippingZone( """Slug of a channel for which the data should be returned.""" channel: String @@ -19693,6 +20008,13 @@ type ShippingPriceUpdate { errors: [ShippingError!]! } +""" +Event sent when shipping price is updated. + +Added in Saleor 3.2. + +Note: this API is currently in Feature Preview and can be subject to changes at later point. +""" type ShippingPriceUpdated implements Event { """Time of the event.""" issuedAt: DateTime @@ -19706,25 +20028,13 @@ type ShippingPriceUpdated implements Event { """The application receiving the webhook.""" recipient: App - """ - The shipping method the event relates to. - - Added in Saleor 3.2. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ + """The shipping method the event relates to.""" shippingMethod( """Slug of a channel for which the data should be returned.""" channel: String ): ShippingMethodType - """ - The shipping zone the shipping method belongs to. - - Added in Saleor 3.2. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ + """The shipping zone the shipping method belongs to.""" shippingZone( """Slug of a channel for which the data should be returned.""" channel: String @@ -19868,6 +20178,13 @@ input ShippingZoneCreateInput { addChannels: [ID!] } +""" +Event sent when new shipping zone is created. + +Added in Saleor 3.2. + +Note: this API is currently in Feature Preview and can be subject to changes at later point. +""" type ShippingZoneCreated implements Event { """Time of the event.""" issuedAt: DateTime @@ -19881,13 +20198,7 @@ type ShippingZoneCreated implements Event { """The application receiving the webhook.""" recipient: App - """ - The shipping zone the event relates to. - - Added in Saleor 3.2. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ + """The shipping zone the event relates to.""" shippingZone( """Slug of a channel for which the data should be returned.""" channel: String @@ -19905,6 +20216,13 @@ type ShippingZoneDelete { shippingZone: ShippingZone } +""" +Event sent when shipping zone is deleted. + +Added in Saleor 3.2. + +Note: this API is currently in Feature Preview and can be subject to changes at later point. +""" type ShippingZoneDeleted implements Event { """Time of the event.""" issuedAt: DateTime @@ -19918,13 +20236,7 @@ type ShippingZoneDeleted implements Event { """The application receiving the webhook.""" recipient: App - """ - The shipping zone the event relates to. - - Added in Saleor 3.2. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ + """The shipping zone the event relates to.""" shippingZone( """Slug of a channel for which the data should be returned.""" channel: String @@ -19975,6 +20287,13 @@ input ShippingZoneUpdateInput { removeChannels: [ID!] } +""" +Event sent when shipping zone is updated. + +Added in Saleor 3.2. + +Note: this API is currently in Feature Preview and can be subject to changes at later point. +""" type ShippingZoneUpdated implements Event { """Time of the event.""" issuedAt: DateTime @@ -19988,13 +20307,7 @@ type ShippingZoneUpdated implements Event { """The application receiving the webhook.""" recipient: App - """ - The shipping zone the event relates to. - - Added in Saleor 3.2. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ + """The shipping zone the event relates to.""" shippingZone( """Slug of a channel for which the data should be returned.""" channel: String @@ -20435,6 +20748,13 @@ input StaffCreateInput { redirectUrl: String } +""" +Event sent when new staff user is created. + +Added in Saleor 3.5. + +Note: this API is currently in Feature Preview and can be subject to changes at later point. +""" type StaffCreated implements Event { """Time of the event.""" issuedAt: DateTime @@ -20448,13 +20768,7 @@ type StaffCreated implements Event { """The application receiving the webhook.""" recipient: App - """ - The user the event relates to. - - Added in Saleor 3.2. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ + """The user the event relates to.""" user: User } @@ -20469,6 +20783,13 @@ type StaffDelete { user: User } +""" +Event sent when staff user is deleted. + +Added in Saleor 3.5. + +Note: this API is currently in Feature Preview and can be subject to changes at later point. +""" type StaffDeleted implements Event { """Time of the event.""" issuedAt: DateTime @@ -20482,13 +20803,7 @@ type StaffDeleted implements Event { """The application receiving the webhook.""" recipient: App - """ - The user the event relates to. - - Added in Saleor 3.2. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ + """The user the event relates to.""" user: User } @@ -20619,6 +20934,13 @@ input StaffUpdateInput { removeGroups: [ID!] } +""" +Event sent when staff user is updated. + +Added in Saleor 3.5. + +Note: this API is currently in Feature Preview and can be subject to changes at later point. +""" type StaffUpdated implements Event { """Time of the event.""" issuedAt: DateTime @@ -20632,13 +20954,7 @@ type StaffUpdated implements Event { """The application receiving the webhook.""" recipient: App - """ - The user the event relates to. - - Added in Saleor 3.2. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ + """The user the event relates to.""" user: User } @@ -20863,6 +21179,13 @@ enum TransactionActionEnum { VOID } +""" +Event sent when transaction action is requested. + +Added in Saleor 3.4. + +Note: this API is currently in Feature Preview and can be subject to changes at later point. +""" type TransactionActionRequest implements Event { """Time of the event.""" issuedAt: DateTime @@ -21239,6 +21562,13 @@ enum TranslatableKinds { VOUCHER } +""" +Event sent when new translation is created. + +Added in Saleor 3.2. + +Note: this API is currently in Feature Preview and can be subject to changes at later point. +""" type TranslationCreated implements Event { """Time of the event.""" issuedAt: DateTime @@ -21252,13 +21582,7 @@ type TranslationCreated implements Event { """The application receiving the webhook.""" recipient: App - """ - The translation the event relates to. - - Added in Saleor 3.2. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ + """The translation the event relates to.""" translation: TranslationTypes } @@ -21298,6 +21622,13 @@ input TranslationInput { union TranslationTypes = ProductTranslation | CollectionTranslation | CategoryTranslation | AttributeTranslation | AttributeValueTranslation | ProductVariantTranslation | PageTranslation | ShippingMethodTranslation | SaleTranslation | VoucherTranslation | MenuItemTranslation +""" +Event sent when translation is updated. + +Added in Saleor 3.2. + +Note: this API is currently in Feature Preview and can be subject to changes at later point. +""" type TranslationUpdated implements Event { """Time of the event.""" issuedAt: DateTime @@ -21311,13 +21642,7 @@ type TranslationUpdated implements Event { """The application receiving the webhook.""" recipient: App - """ - The translation the event relates to. - - Added in Saleor 3.2. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ + """The translation the event relates to.""" translation: TranslationTypes } @@ -22015,6 +22340,13 @@ type VoucherCreate { voucher: Voucher } +""" +Event sent when new voucher is created. + +Added in Saleor 3.4. + +Note: this API is currently in Feature Preview and can be subject to changes at later point. +""" type VoucherCreated implements Event { """Time of the event.""" issuedAt: DateTime @@ -22028,13 +22360,7 @@ type VoucherCreated implements Event { """The application receiving the webhook.""" recipient: App - """ - The voucher the event relates to. - - Added in Saleor 3.4. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ + """The voucher the event relates to.""" voucher( """Slug of a channel for which the data should be returned.""" channel: String @@ -22052,6 +22378,13 @@ type VoucherDelete { voucher: Voucher } +""" +Event sent when voucher is deleted. + +Added in Saleor 3.4. + +Note: this API is currently in Feature Preview and can be subject to changes at later point. +""" type VoucherDeleted implements Event { """Time of the event.""" issuedAt: DateTime @@ -22065,13 +22398,7 @@ type VoucherDeleted implements Event { """The application receiving the webhook.""" recipient: App - """ - The voucher the event relates to. - - Added in Saleor 3.4. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ + """The voucher the event relates to.""" voucher( """Slug of a channel for which the data should be returned.""" channel: String @@ -22260,6 +22587,13 @@ type VoucherUpdate { voucher: Voucher } +""" +Event sent when voucher is updated. + +Added in Saleor 3.4. + +Note: this API is currently in Feature Preview and can be subject to changes at later point. +""" type VoucherUpdated implements Event { """Time of the event.""" issuedAt: DateTime @@ -22273,13 +22607,7 @@ type VoucherUpdated implements Event { """The application receiving the webhook.""" recipient: App - """ - The voucher the event relates to. - - Added in Saleor 3.4. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ + """The voucher the event relates to.""" voucher( """Slug of a channel for which the data should be returned.""" channel: String @@ -22419,6 +22747,13 @@ input WarehouseCreateInput { shippingZones: [ID!] } +""" +Event sent when new warehouse is created. + +Added in Saleor 3.4. + +Note: this API is currently in Feature Preview and can be subject to changes at later point. +""" type WarehouseCreated implements Event { """Time of the event.""" issuedAt: DateTime @@ -22432,13 +22767,7 @@ type WarehouseCreated implements Event { """The application receiving the webhook.""" recipient: App - """ - The warehouse the event relates to. - - Added in Saleor 3.4. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ + """The warehouse the event relates to.""" warehouse: Warehouse } @@ -22453,6 +22782,13 @@ type WarehouseDelete { warehouse: Warehouse } +""" +Event sent when warehouse is deleted. + +Added in Saleor 3.4. + +Note: this API is currently in Feature Preview and can be subject to changes at later point. +""" type WarehouseDeleted implements Event { """Time of the event.""" issuedAt: DateTime @@ -22466,13 +22802,7 @@ type WarehouseDeleted implements Event { """The application receiving the webhook.""" recipient: App - """ - The warehouse the event relates to. - - Added in Saleor 3.4. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ + """The warehouse the event relates to.""" warehouse: Warehouse } @@ -22585,6 +22915,13 @@ input WarehouseUpdateInput { isPrivate: Boolean } +""" +Event sent when warehouse is updated. + +Added in Saleor 3.4. + +Note: this API is currently in Feature Preview and can be subject to changes at later point. +""" type WarehouseUpdated implements Event { """Time of the event.""" issuedAt: DateTime @@ -22598,13 +22935,7 @@ type WarehouseUpdated implements Event { """The application receiving the webhook.""" recipient: App - """ - The warehouse the event relates to. - - Added in Saleor 3.4. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ + """The warehouse the event relates to.""" warehouse: Warehouse } diff --git a/src/graphql/fragmentTypes.generated.ts b/src/graphql/fragmentTypes.generated.ts index 68cdb8b31..d8fd244f0 100644 --- a/src/graphql/fragmentTypes.generated.ts +++ b/src/graphql/fragmentTypes.generated.ts @@ -33,6 +33,7 @@ "ChannelStatusChanged", "ChannelUpdated", "CheckoutCreated", + "CheckoutFilterShippingMethods", "CheckoutUpdated", "CollectionCreated", "CollectionDeleted", @@ -60,6 +61,7 @@ "OrderCancelled", "OrderConfirmed", "OrderCreated", + "OrderFilterShippingMethods", "OrderFulfilled", "OrderFullyPaid", "OrderUpdated", @@ -69,6 +71,13 @@ "PageTypeDeleted", "PageTypeUpdated", "PageUpdated", + "PaymentAuthorize", + "PaymentCaptureEvent", + "PaymentConfirmEvent", + "PaymentListGateways", + "PaymentProcessEvent", + "PaymentRefundEvent", + "PaymentVoidEvent", "PermissionGroupCreated", "PermissionGroupDeleted", "PermissionGroupUpdated", @@ -84,6 +93,7 @@ "SaleDeleted", "SaleToggle", "SaleUpdated", + "ShippingListMethodsForCheckout", "ShippingPriceCreated", "ShippingPriceDeleted", "ShippingPriceUpdated", diff --git a/src/graphql/typePolicies.generated.ts b/src/graphql/typePolicies.generated.ts index ebb88d357..44fd86327 100644 --- a/src/graphql/typePolicies.generated.ts +++ b/src/graphql/typePolicies.generated.ts @@ -916,6 +916,15 @@ export type CheckoutErrorFieldPolicy = { lines?: FieldPolicy | FieldReadFunction, addressType?: FieldPolicy | FieldReadFunction }; +export type CheckoutFilterShippingMethodsKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'checkout' | 'shippingMethods' | CheckoutFilterShippingMethodsKeySpecifier)[]; +export type CheckoutFilterShippingMethodsFieldPolicy = { + issuedAt?: FieldPolicy | FieldReadFunction, + version?: FieldPolicy | FieldReadFunction, + issuingPrincipal?: FieldPolicy | FieldReadFunction, + recipient?: FieldPolicy | FieldReadFunction, + checkout?: FieldPolicy | FieldReadFunction, + shippingMethods?: FieldPolicy | FieldReadFunction +}; export type CheckoutLanguageCodeUpdateKeySpecifier = ('checkout' | 'checkoutErrors' | 'errors' | CheckoutLanguageCodeUpdateKeySpecifier)[]; export type CheckoutLanguageCodeUpdateFieldPolicy = { checkout?: FieldPolicy | FieldReadFunction, @@ -2756,6 +2765,15 @@ export type OrderEventOrderLineObjectFieldPolicy = { itemName?: FieldPolicy | FieldReadFunction, discount?: FieldPolicy | FieldReadFunction }; +export type OrderFilterShippingMethodsKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'order' | 'shippingMethods' | OrderFilterShippingMethodsKeySpecifier)[]; +export type OrderFilterShippingMethodsFieldPolicy = { + issuedAt?: FieldPolicy | FieldReadFunction, + version?: FieldPolicy | FieldReadFunction, + issuingPrincipal?: FieldPolicy | FieldReadFunction, + recipient?: FieldPolicy | FieldReadFunction, + order?: FieldPolicy | FieldReadFunction, + shippingMethods?: FieldPolicy | FieldReadFunction +}; export type OrderFulfillKeySpecifier = ('fulfillments' | 'order' | 'orderErrors' | 'errors' | OrderFulfillKeySpecifier)[]; export type OrderFulfillFieldPolicy = { fulfillments?: FieldPolicy | FieldReadFunction, @@ -3163,18 +3181,42 @@ export type PaymentFieldPolicy = { availableRefundAmount?: FieldPolicy | FieldReadFunction, creditCard?: FieldPolicy | FieldReadFunction }; +export type PaymentAuthorizeKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'payment' | PaymentAuthorizeKeySpecifier)[]; +export type PaymentAuthorizeFieldPolicy = { + issuedAt?: FieldPolicy | FieldReadFunction, + version?: FieldPolicy | FieldReadFunction, + issuingPrincipal?: FieldPolicy | FieldReadFunction, + recipient?: FieldPolicy | FieldReadFunction, + payment?: FieldPolicy | FieldReadFunction +}; export type PaymentCaptureKeySpecifier = ('payment' | 'paymentErrors' | 'errors' | PaymentCaptureKeySpecifier)[]; export type PaymentCaptureFieldPolicy = { payment?: FieldPolicy | FieldReadFunction, paymentErrors?: FieldPolicy | FieldReadFunction, errors?: FieldPolicy | FieldReadFunction }; +export type PaymentCaptureEventKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'payment' | PaymentCaptureEventKeySpecifier)[]; +export type PaymentCaptureEventFieldPolicy = { + issuedAt?: FieldPolicy | FieldReadFunction, + version?: FieldPolicy | FieldReadFunction, + issuingPrincipal?: FieldPolicy | FieldReadFunction, + recipient?: FieldPolicy | FieldReadFunction, + payment?: FieldPolicy | FieldReadFunction +}; export type PaymentCheckBalanceKeySpecifier = ('data' | 'paymentErrors' | 'errors' | PaymentCheckBalanceKeySpecifier)[]; export type PaymentCheckBalanceFieldPolicy = { data?: FieldPolicy | FieldReadFunction, paymentErrors?: FieldPolicy | FieldReadFunction, errors?: FieldPolicy | FieldReadFunction }; +export type PaymentConfirmEventKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'payment' | PaymentConfirmEventKeySpecifier)[]; +export type PaymentConfirmEventFieldPolicy = { + issuedAt?: FieldPolicy | FieldReadFunction, + version?: FieldPolicy | FieldReadFunction, + issuingPrincipal?: FieldPolicy | FieldReadFunction, + recipient?: FieldPolicy | FieldReadFunction, + payment?: FieldPolicy | FieldReadFunction +}; export type PaymentCountableConnectionKeySpecifier = ('pageInfo' | 'edges' | 'totalCount' | PaymentCountableConnectionKeySpecifier)[]; export type PaymentCountableConnectionFieldPolicy = { pageInfo?: FieldPolicy | FieldReadFunction, @@ -3212,12 +3254,36 @@ export type PaymentInitializedFieldPolicy = { name?: FieldPolicy | FieldReadFunction, data?: FieldPolicy | FieldReadFunction }; +export type PaymentListGatewaysKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'checkout' | PaymentListGatewaysKeySpecifier)[]; +export type PaymentListGatewaysFieldPolicy = { + issuedAt?: FieldPolicy | FieldReadFunction, + version?: FieldPolicy | FieldReadFunction, + issuingPrincipal?: FieldPolicy | FieldReadFunction, + recipient?: FieldPolicy | FieldReadFunction, + checkout?: FieldPolicy | FieldReadFunction +}; +export type PaymentProcessEventKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'payment' | PaymentProcessEventKeySpecifier)[]; +export type PaymentProcessEventFieldPolicy = { + issuedAt?: FieldPolicy | FieldReadFunction, + version?: FieldPolicy | FieldReadFunction, + issuingPrincipal?: FieldPolicy | FieldReadFunction, + recipient?: FieldPolicy | FieldReadFunction, + payment?: FieldPolicy | FieldReadFunction +}; export type PaymentRefundKeySpecifier = ('payment' | 'paymentErrors' | 'errors' | PaymentRefundKeySpecifier)[]; export type PaymentRefundFieldPolicy = { payment?: FieldPolicy | FieldReadFunction, paymentErrors?: FieldPolicy | FieldReadFunction, errors?: FieldPolicy | FieldReadFunction }; +export type PaymentRefundEventKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'payment' | PaymentRefundEventKeySpecifier)[]; +export type PaymentRefundEventFieldPolicy = { + issuedAt?: FieldPolicy | FieldReadFunction, + version?: FieldPolicy | FieldReadFunction, + issuingPrincipal?: FieldPolicy | FieldReadFunction, + recipient?: FieldPolicy | FieldReadFunction, + payment?: FieldPolicy | FieldReadFunction +}; export type PaymentSourceKeySpecifier = ('gateway' | 'paymentMethodId' | 'creditCardInfo' | 'metadata' | PaymentSourceKeySpecifier)[]; export type PaymentSourceFieldPolicy = { gateway?: FieldPolicy | FieldReadFunction, @@ -3231,6 +3297,14 @@ export type PaymentVoidFieldPolicy = { paymentErrors?: FieldPolicy | FieldReadFunction, errors?: FieldPolicy | FieldReadFunction }; +export type PaymentVoidEventKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'payment' | PaymentVoidEventKeySpecifier)[]; +export type PaymentVoidEventFieldPolicy = { + issuedAt?: FieldPolicy | FieldReadFunction, + version?: FieldPolicy | FieldReadFunction, + issuingPrincipal?: FieldPolicy | FieldReadFunction, + recipient?: FieldPolicy | FieldReadFunction, + payment?: FieldPolicy | FieldReadFunction +}; export type PermissionKeySpecifier = ('code' | 'name' | PermissionKeySpecifier)[]; export type PermissionFieldPolicy = { code?: FieldPolicy | FieldReadFunction, @@ -4106,6 +4180,15 @@ export type ShippingErrorFieldPolicy = { warehouses?: FieldPolicy | FieldReadFunction, channels?: FieldPolicy | FieldReadFunction }; +export type ShippingListMethodsForCheckoutKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'checkout' | 'shippingMethods' | ShippingListMethodsForCheckoutKeySpecifier)[]; +export type ShippingListMethodsForCheckoutFieldPolicy = { + issuedAt?: FieldPolicy | FieldReadFunction, + version?: FieldPolicy | FieldReadFunction, + issuingPrincipal?: FieldPolicy | FieldReadFunction, + recipient?: FieldPolicy | FieldReadFunction, + checkout?: FieldPolicy | FieldReadFunction, + shippingMethods?: FieldPolicy | FieldReadFunction +}; export type ShippingMethodKeySpecifier = ('id' | 'privateMetadata' | 'privateMetafield' | 'privateMetafields' | 'metadata' | 'metafield' | 'metafields' | 'type' | 'name' | 'description' | 'maximumDeliveryDays' | 'minimumDeliveryDays' | 'maximumOrderWeight' | 'minimumOrderWeight' | 'translation' | 'price' | 'maximumOrderPrice' | 'minimumOrderPrice' | 'active' | 'message' | ShippingMethodKeySpecifier)[]; export type ShippingMethodFieldPolicy = { id?: FieldPolicy | FieldReadFunction, @@ -5551,6 +5634,10 @@ export type StrictTypedTypePolicies = { keyFields?: false | CheckoutErrorKeySpecifier | (() => undefined | CheckoutErrorKeySpecifier), fields?: CheckoutErrorFieldPolicy, }, + CheckoutFilterShippingMethods?: Omit & { + keyFields?: false | CheckoutFilterShippingMethodsKeySpecifier | (() => undefined | CheckoutFilterShippingMethodsKeySpecifier), + fields?: CheckoutFilterShippingMethodsFieldPolicy, + }, CheckoutLanguageCodeUpdate?: Omit & { keyFields?: false | CheckoutLanguageCodeUpdateKeySpecifier | (() => undefined | CheckoutLanguageCodeUpdateKeySpecifier), fields?: CheckoutLanguageCodeUpdateFieldPolicy, @@ -6379,6 +6466,10 @@ export type StrictTypedTypePolicies = { keyFields?: false | OrderEventOrderLineObjectKeySpecifier | (() => undefined | OrderEventOrderLineObjectKeySpecifier), fields?: OrderEventOrderLineObjectFieldPolicy, }, + OrderFilterShippingMethods?: Omit & { + keyFields?: false | OrderFilterShippingMethodsKeySpecifier | (() => undefined | OrderFilterShippingMethodsKeySpecifier), + fields?: OrderFilterShippingMethodsFieldPolicy, + }, OrderFulfill?: Omit & { keyFields?: false | OrderFulfillKeySpecifier | (() => undefined | OrderFulfillKeySpecifier), fields?: OrderFulfillFieldPolicy, @@ -6579,14 +6670,26 @@ export type StrictTypedTypePolicies = { keyFields?: false | PaymentKeySpecifier | (() => undefined | PaymentKeySpecifier), fields?: PaymentFieldPolicy, }, + PaymentAuthorize?: Omit & { + keyFields?: false | PaymentAuthorizeKeySpecifier | (() => undefined | PaymentAuthorizeKeySpecifier), + fields?: PaymentAuthorizeFieldPolicy, + }, PaymentCapture?: Omit & { keyFields?: false | PaymentCaptureKeySpecifier | (() => undefined | PaymentCaptureKeySpecifier), fields?: PaymentCaptureFieldPolicy, }, + PaymentCaptureEvent?: Omit & { + keyFields?: false | PaymentCaptureEventKeySpecifier | (() => undefined | PaymentCaptureEventKeySpecifier), + fields?: PaymentCaptureEventFieldPolicy, + }, PaymentCheckBalance?: Omit & { keyFields?: false | PaymentCheckBalanceKeySpecifier | (() => undefined | PaymentCheckBalanceKeySpecifier), fields?: PaymentCheckBalanceFieldPolicy, }, + PaymentConfirmEvent?: Omit & { + keyFields?: false | PaymentConfirmEventKeySpecifier | (() => undefined | PaymentConfirmEventKeySpecifier), + fields?: PaymentConfirmEventFieldPolicy, + }, PaymentCountableConnection?: Omit & { keyFields?: false | PaymentCountableConnectionKeySpecifier | (() => undefined | PaymentCountableConnectionKeySpecifier), fields?: PaymentCountableConnectionFieldPolicy, @@ -6611,10 +6714,22 @@ export type StrictTypedTypePolicies = { keyFields?: false | PaymentInitializedKeySpecifier | (() => undefined | PaymentInitializedKeySpecifier), fields?: PaymentInitializedFieldPolicy, }, + PaymentListGateways?: Omit & { + keyFields?: false | PaymentListGatewaysKeySpecifier | (() => undefined | PaymentListGatewaysKeySpecifier), + fields?: PaymentListGatewaysFieldPolicy, + }, + PaymentProcessEvent?: Omit & { + keyFields?: false | PaymentProcessEventKeySpecifier | (() => undefined | PaymentProcessEventKeySpecifier), + fields?: PaymentProcessEventFieldPolicy, + }, PaymentRefund?: Omit & { keyFields?: false | PaymentRefundKeySpecifier | (() => undefined | PaymentRefundKeySpecifier), fields?: PaymentRefundFieldPolicy, }, + PaymentRefundEvent?: Omit & { + keyFields?: false | PaymentRefundEventKeySpecifier | (() => undefined | PaymentRefundEventKeySpecifier), + fields?: PaymentRefundEventFieldPolicy, + }, PaymentSource?: Omit & { keyFields?: false | PaymentSourceKeySpecifier | (() => undefined | PaymentSourceKeySpecifier), fields?: PaymentSourceFieldPolicy, @@ -6623,6 +6738,10 @@ export type StrictTypedTypePolicies = { keyFields?: false | PaymentVoidKeySpecifier | (() => undefined | PaymentVoidKeySpecifier), fields?: PaymentVoidFieldPolicy, }, + PaymentVoidEvent?: Omit & { + keyFields?: false | PaymentVoidEventKeySpecifier | (() => undefined | PaymentVoidEventKeySpecifier), + fields?: PaymentVoidEventFieldPolicy, + }, Permission?: Omit & { keyFields?: false | PermissionKeySpecifier | (() => undefined | PermissionKeySpecifier), fields?: PermissionFieldPolicy, @@ -7039,6 +7158,10 @@ export type StrictTypedTypePolicies = { keyFields?: false | ShippingErrorKeySpecifier | (() => undefined | ShippingErrorKeySpecifier), fields?: ShippingErrorFieldPolicy, }, + ShippingListMethodsForCheckout?: Omit & { + keyFields?: false | ShippingListMethodsForCheckoutKeySpecifier | (() => undefined | ShippingListMethodsForCheckoutKeySpecifier), + fields?: ShippingListMethodsForCheckoutFieldPolicy, + }, ShippingMethod?: Omit & { keyFields?: false | ShippingMethodKeySpecifier | (() => undefined | ShippingMethodKeySpecifier), fields?: ShippingMethodFieldPolicy, diff --git a/src/graphql/types.generated.ts b/src/graphql/types.generated.ts index 6d60cf9db..6a8b1f1f7 100644 --- a/src/graphql/types.generated.ts +++ b/src/graphql/types.generated.ts @@ -769,13 +769,25 @@ export type CheckoutLineInput = { * Note: this API is currently in Feature Preview and can be subject to changes at later point. */ price?: InputMaybe; + /** + * Flag that allow force splitting the same variant into multiple lines by skipping the matching logic. + * + * Added in Saleor 3.6. + * + * Note: this API is currently in Feature Preview and can be subject to changes at later point. + */ + forceNewLine?: InputMaybe; }; export type CheckoutLineUpdateInput = { + /** + * ID of the product variant. + * + * DEPRECATED: this field will be removed in Saleor 4.0. Use `lineId` instead. + */ + variantId?: InputMaybe; /** The number of items purchased. Optional for apps, required for any other users. */ quantity?: InputMaybe; - /** ID of the product variant. */ - variantId: Scalars['ID']; /** * Custom price of the item. Can be set only by apps with `HANDLE_CHECKOUTS` permission. When the line with the same variant will be provided multiple times, the last price will be used. * @@ -784,6 +796,12 @@ export type CheckoutLineUpdateInput = { * Note: this API is currently in Feature Preview and can be subject to changes at later point. */ price?: InputMaybe; + /** + * ID of the line. + * + * Added in Saleor 3.6. + */ + lineId?: InputMaybe; }; export enum CheckoutSortField { @@ -3034,6 +3052,14 @@ export type OrderLineCreateInput = { quantity: Scalars['Int']; /** Product variant ID. */ variantId: Scalars['ID']; + /** + * Flag that allow force splitting the same variant into multiple lines by skipping the matching logic. + * + * Added in Saleor 3.6. + * + * Note: this API is currently in Feature Preview and can be subject to changes at later point. + */ + forceNewLine?: InputMaybe; }; export type OrderLineInput = { @@ -6479,9 +6505,9 @@ export type GiftCardsSettingsFragment = { __typename: 'GiftCardSettings', expiry export type GiftCardEventFragment = { __typename: 'GiftCardEvent', expiryDate: any | null, oldExpiryDate: any | null, id: string, date: any | null, type: GiftCardEventsEnum | null, message: string | null, email: string | null, orderId: string | null, orderNumber: string | null, tags: Array | null, oldTags: Array | null, user: { __typename: 'User', email: string, id: string, firstName: string, lastName: string } | null, app: { __typename: 'App', id: string, name: string | null } | 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 }; -export type GiftCardDataFragment = { __typename: 'GiftCard', last4CodeChars: string, boughtInChannel: string | null, usedByEmail: string | null, createdByEmail: string | null, created: any, expiryDate: any | null, lastUsedOn: any | null, isActive: boolean, id: string, createdBy: { __typename: 'User', id: string, firstName: string, lastName: string } | null, product: { __typename: 'Product', id: string, name: string } | null, usedBy: { __typename: 'User', id: string, firstName: string, lastName: string } | null, app: { __typename: 'App', id: string, name: string | null } | null, initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string } | null, tags: Array<{ __typename: 'GiftCardTag', name: string }>, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; +export type GiftCardDataFragment = { __typename: 'GiftCard', last4CodeChars: string, boughtInChannel: string | null, usedByEmail: string | null, createdByEmail: string | null, created: any, expiryDate: any | null, lastUsedOn: any | null, isActive: boolean, id: string, createdBy: { __typename: 'User', id: string, firstName: string, lastName: string } | null, product: { __typename: 'Product', id: string, name: string } | null, usedBy: { __typename: 'User', id: string, firstName: string, lastName: string } | null, app: { __typename: 'App', id: string, name: string | null } | null, initialBalance: { __typename: 'Money', amount: number, currency: string }, currentBalance: { __typename: 'Money', amount: number, currency: string }, tags: Array<{ __typename: 'GiftCardTag', name: string }>, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; -export type CustomerGiftCardFragment = { __typename: 'GiftCard', id: string, last4CodeChars: string, expiryDate: any | null, isActive: boolean, currentBalance: { __typename: 'Money', amount: number, currency: string } | null }; +export type CustomerGiftCardFragment = { __typename: 'GiftCard', id: string, last4CodeChars: string, expiryDate: any | null, isActive: boolean, currentBalance: { __typename: 'Money', amount: number, currency: string } }; export type MetadataItemFragment = { __typename: 'MetadataItem', key: string, value: string }; @@ -6760,21 +6786,21 @@ export type GiftCardResendMutationVariables = Exact<{ }>; -export type GiftCardResendMutation = { __typename: 'Mutation', giftCardResend: { __typename: 'GiftCardResend', errors: Array<{ __typename: 'GiftCardError', code: GiftCardErrorCode, field: string | null, message: string | null }>, giftCard: { __typename: 'GiftCard', last4CodeChars: string, boughtInChannel: string | null, usedByEmail: string | null, createdByEmail: string | null, created: any, expiryDate: any | null, lastUsedOn: any | null, isActive: boolean, id: string, createdBy: { __typename: 'User', id: string, firstName: string, lastName: string } | null, product: { __typename: 'Product', id: string, name: string } | null, usedBy: { __typename: 'User', id: string, firstName: string, lastName: string } | null, app: { __typename: 'App', id: string, name: string | null } | null, initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string } | null, tags: Array<{ __typename: 'GiftCardTag', name: string }>, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; +export type GiftCardResendMutation = { __typename: 'Mutation', giftCardResend: { __typename: 'GiftCardResend', errors: Array<{ __typename: 'GiftCardError', code: GiftCardErrorCode, field: string | null, message: string | null }>, giftCard: { __typename: 'GiftCard', last4CodeChars: string, boughtInChannel: string | null, usedByEmail: string | null, createdByEmail: string | null, created: any, expiryDate: any | null, lastUsedOn: any | null, isActive: boolean, id: string, createdBy: { __typename: 'User', id: string, firstName: string, lastName: string } | null, product: { __typename: 'Product', id: string, name: string } | null, usedBy: { __typename: 'User', id: string, firstName: string, lastName: string } | null, app: { __typename: 'App', id: string, name: string | null } | null, initialBalance: { __typename: 'Money', amount: number, currency: string }, currentBalance: { __typename: 'Money', amount: number, currency: string }, tags: Array<{ __typename: 'GiftCardTag', name: string }>, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; export type GiftCardActivateMutationVariables = Exact<{ id: Scalars['ID']; }>; -export type GiftCardActivateMutation = { __typename: 'Mutation', giftCardActivate: { __typename: 'GiftCardActivate', errors: Array<{ __typename: 'GiftCardError', code: GiftCardErrorCode, field: string | null, message: string | null }>, giftCard: { __typename: 'GiftCard', last4CodeChars: string, boughtInChannel: string | null, usedByEmail: string | null, createdByEmail: string | null, created: any, expiryDate: any | null, lastUsedOn: any | null, isActive: boolean, id: string, createdBy: { __typename: 'User', id: string, firstName: string, lastName: string } | null, product: { __typename: 'Product', id: string, name: string } | null, usedBy: { __typename: 'User', id: string, firstName: string, lastName: string } | null, app: { __typename: 'App', id: string, name: string | null } | null, initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string } | null, tags: Array<{ __typename: 'GiftCardTag', name: string }>, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; +export type GiftCardActivateMutation = { __typename: 'Mutation', giftCardActivate: { __typename: 'GiftCardActivate', errors: Array<{ __typename: 'GiftCardError', code: GiftCardErrorCode, field: string | null, message: string | null }>, giftCard: { __typename: 'GiftCard', last4CodeChars: string, boughtInChannel: string | null, usedByEmail: string | null, createdByEmail: string | null, created: any, expiryDate: any | null, lastUsedOn: any | null, isActive: boolean, id: string, createdBy: { __typename: 'User', id: string, firstName: string, lastName: string } | null, product: { __typename: 'Product', id: string, name: string } | null, usedBy: { __typename: 'User', id: string, firstName: string, lastName: string } | null, app: { __typename: 'App', id: string, name: string | null } | null, initialBalance: { __typename: 'Money', amount: number, currency: string }, currentBalance: { __typename: 'Money', amount: number, currency: string }, tags: Array<{ __typename: 'GiftCardTag', name: string }>, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; export type GiftCardDeactivateMutationVariables = Exact<{ id: Scalars['ID']; }>; -export type GiftCardDeactivateMutation = { __typename: 'Mutation', giftCardDeactivate: { __typename: 'GiftCardDeactivate', errors: Array<{ __typename: 'GiftCardError', code: GiftCardErrorCode, field: string | null, message: string | null }>, giftCard: { __typename: 'GiftCard', last4CodeChars: string, boughtInChannel: string | null, usedByEmail: string | null, createdByEmail: string | null, created: any, expiryDate: any | null, lastUsedOn: any | null, isActive: boolean, id: string, createdBy: { __typename: 'User', id: string, firstName: string, lastName: string } | null, product: { __typename: 'Product', id: string, name: string } | null, usedBy: { __typename: 'User', id: string, firstName: string, lastName: string } | null, app: { __typename: 'App', id: string, name: string | null } | null, initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string } | null, tags: Array<{ __typename: 'GiftCardTag', name: string }>, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; +export type GiftCardDeactivateMutation = { __typename: 'Mutation', giftCardDeactivate: { __typename: 'GiftCardDeactivate', errors: Array<{ __typename: 'GiftCardError', code: GiftCardErrorCode, field: string | null, message: string | null }>, giftCard: { __typename: 'GiftCard', last4CodeChars: string, boughtInChannel: string | null, usedByEmail: string | null, createdByEmail: string | null, created: any, expiryDate: any | null, lastUsedOn: any | null, isActive: boolean, id: string, createdBy: { __typename: 'User', id: string, firstName: string, lastName: string } | null, product: { __typename: 'Product', id: string, name: string } | null, usedBy: { __typename: 'User', id: string, firstName: string, lastName: string } | null, app: { __typename: 'App', id: string, name: string | null } | null, initialBalance: { __typename: 'Money', amount: number, currency: string }, currentBalance: { __typename: 'Money', amount: number, currency: string }, tags: Array<{ __typename: 'GiftCardTag', name: string }>, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; export type GiftCardUpdateMutationVariables = Exact<{ id: Scalars['ID']; @@ -6782,7 +6808,7 @@ export type GiftCardUpdateMutationVariables = Exact<{ }>; -export type GiftCardUpdateMutation = { __typename: 'Mutation', giftCardUpdate: { __typename: 'GiftCardUpdate', errors: Array<{ __typename: 'GiftCardError', code: GiftCardErrorCode, field: string | null, message: string | null }>, giftCard: { __typename: 'GiftCard', last4CodeChars: string, boughtInChannel: string | null, usedByEmail: string | null, createdByEmail: string | null, created: any, expiryDate: any | null, lastUsedOn: any | null, isActive: boolean, id: string, events: Array<{ __typename: 'GiftCardEvent', expiryDate: any | null, oldExpiryDate: any | null, id: string, date: any | null, type: GiftCardEventsEnum | null, message: string | null, email: string | null, orderId: string | null, orderNumber: string | null, tags: Array | null, oldTags: Array | null, user: { __typename: 'User', email: string, id: string, firstName: string, lastName: string } | null, app: { __typename: 'App', id: string, name: string | null } | 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 }>, createdBy: { __typename: 'User', id: string, firstName: string, lastName: string } | null, product: { __typename: 'Product', id: string, name: string } | null, usedBy: { __typename: 'User', id: string, firstName: string, lastName: string } | null, app: { __typename: 'App', id: string, name: string | null } | null, initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string } | null, tags: Array<{ __typename: 'GiftCardTag', name: string }>, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; +export type GiftCardUpdateMutation = { __typename: 'Mutation', giftCardUpdate: { __typename: 'GiftCardUpdate', errors: Array<{ __typename: 'GiftCardError', code: GiftCardErrorCode, field: string | null, message: string | null }>, giftCard: { __typename: 'GiftCard', last4CodeChars: string, boughtInChannel: string | null, usedByEmail: string | null, createdByEmail: string | null, created: any, expiryDate: any | null, lastUsedOn: any | null, isActive: boolean, id: string, events: Array<{ __typename: 'GiftCardEvent', expiryDate: any | null, oldExpiryDate: any | null, id: string, date: any | null, type: GiftCardEventsEnum | null, message: string | null, email: string | null, orderId: string | null, orderNumber: string | null, tags: Array | null, oldTags: Array | null, user: { __typename: 'User', email: string, id: string, firstName: string, lastName: string } | null, app: { __typename: 'App', id: string, name: string | null } | 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 }>, createdBy: { __typename: 'User', id: string, firstName: string, lastName: string } | null, product: { __typename: 'Product', id: string, name: string } | null, usedBy: { __typename: 'User', id: string, firstName: string, lastName: string } | null, app: { __typename: 'App', id: string, name: string | null } | null, initialBalance: { __typename: 'Money', amount: number, currency: string }, currentBalance: { __typename: 'Money', amount: number, currency: string }, tags: Array<{ __typename: 'GiftCardTag', name: string }>, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; export type GiftCardAddNoteMutationVariables = Exact<{ id: Scalars['ID']; @@ -6790,14 +6816,14 @@ export type GiftCardAddNoteMutationVariables = Exact<{ }>; -export type GiftCardAddNoteMutation = { __typename: 'Mutation', giftCardAddNote: { __typename: 'GiftCardAddNote', errors: Array<{ __typename: 'GiftCardError', code: GiftCardErrorCode, field: string | null, message: string | null }>, giftCard: { __typename: 'GiftCard', last4CodeChars: string, boughtInChannel: string | null, usedByEmail: string | null, createdByEmail: string | null, created: any, expiryDate: any | null, lastUsedOn: any | null, isActive: boolean, id: string, createdBy: { __typename: 'User', id: string, firstName: string, lastName: string } | null, product: { __typename: 'Product', id: string, name: string } | null, usedBy: { __typename: 'User', id: string, firstName: string, lastName: string } | null, app: { __typename: 'App', id: string, name: string | null } | null, initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string } | null, tags: Array<{ __typename: 'GiftCardTag', name: string }>, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null, event: { __typename: 'GiftCardEvent', expiryDate: any | null, oldExpiryDate: any | null, id: string, date: any | null, type: GiftCardEventsEnum | null, message: string | null, email: string | null, orderId: string | null, orderNumber: string | null, tags: Array | null, oldTags: Array | null, user: { __typename: 'User', email: string, id: string, firstName: string, lastName: string } | null, app: { __typename: 'App', id: string, name: string | null } | 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 } | null } | null }; +export type GiftCardAddNoteMutation = { __typename: 'Mutation', giftCardAddNote: { __typename: 'GiftCardAddNote', errors: Array<{ __typename: 'GiftCardError', code: GiftCardErrorCode, field: string | null, message: string | null }>, giftCard: { __typename: 'GiftCard', last4CodeChars: string, boughtInChannel: string | null, usedByEmail: string | null, createdByEmail: string | null, created: any, expiryDate: any | null, lastUsedOn: any | null, isActive: boolean, id: string, createdBy: { __typename: 'User', id: string, firstName: string, lastName: string } | null, product: { __typename: 'Product', id: string, name: string } | null, usedBy: { __typename: 'User', id: string, firstName: string, lastName: string } | null, app: { __typename: 'App', id: string, name: string | null } | null, initialBalance: { __typename: 'Money', amount: number, currency: string }, currentBalance: { __typename: 'Money', amount: number, currency: string }, tags: Array<{ __typename: 'GiftCardTag', name: string }>, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null, event: { __typename: 'GiftCardEvent', expiryDate: any | null, oldExpiryDate: any | null, id: string, date: any | null, type: GiftCardEventsEnum | null, message: string | null, email: string | null, orderId: string | null, orderNumber: string | null, tags: Array | null, oldTags: Array | null, user: { __typename: 'User', email: string, id: string, firstName: string, lastName: string } | null, app: { __typename: 'App', id: string, name: string | null } | 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 } | null } | null }; export type GiftCardDetailsQueryVariables = Exact<{ id: Scalars['ID']; }>; -export type GiftCardDetailsQuery = { __typename: 'Query', giftCard: { __typename: 'GiftCard', last4CodeChars: string, boughtInChannel: string | null, usedByEmail: string | null, createdByEmail: string | null, created: any, expiryDate: any | null, lastUsedOn: any | null, isActive: boolean, id: string, events: Array<{ __typename: 'GiftCardEvent', expiryDate: any | null, oldExpiryDate: any | null, id: string, date: any | null, type: GiftCardEventsEnum | null, message: string | null, email: string | null, orderId: string | null, orderNumber: string | null, tags: Array | null, oldTags: Array | null, user: { __typename: 'User', email: string, id: string, firstName: string, lastName: string } | null, app: { __typename: 'App', id: string, name: string | null } | 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 }>, createdBy: { __typename: 'User', id: string, firstName: string, lastName: string } | null, product: { __typename: 'Product', id: string, name: string } | null, usedBy: { __typename: 'User', id: string, firstName: string, lastName: string } | null, app: { __typename: 'App', id: string, name: string | null } | null, initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string } | null, tags: Array<{ __typename: 'GiftCardTag', name: string }>, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null }; +export type GiftCardDetailsQuery = { __typename: 'Query', giftCard: { __typename: 'GiftCard', last4CodeChars: string, boughtInChannel: string | null, usedByEmail: string | null, createdByEmail: string | null, created: any, expiryDate: any | null, lastUsedOn: any | null, isActive: boolean, id: string, events: Array<{ __typename: 'GiftCardEvent', expiryDate: any | null, oldExpiryDate: any | null, id: string, date: any | null, type: GiftCardEventsEnum | null, message: string | null, email: string | null, orderId: string | null, orderNumber: string | null, tags: Array | null, oldTags: Array | null, user: { __typename: 'User', email: string, id: string, firstName: string, lastName: string } | null, app: { __typename: 'App', id: string, name: string | null } | 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 }>, createdBy: { __typename: 'User', id: string, firstName: string, lastName: string } | null, product: { __typename: 'Product', id: string, name: string } | null, usedBy: { __typename: 'User', id: string, firstName: string, lastName: string } | null, app: { __typename: 'App', id: string, name: string | null } | null, initialBalance: { __typename: 'Money', amount: number, currency: string }, currentBalance: { __typename: 'Money', amount: number, currency: string }, tags: Array<{ __typename: 'GiftCardTag', name: string }>, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null }; export type GiftCardCurrenciesQueryVariables = Exact<{ [key: string]: never; }>; @@ -6842,7 +6868,7 @@ export type GiftCardListQueryVariables = Exact<{ }>; -export type GiftCardListQuery = { __typename: 'Query', giftCards: { __typename: 'GiftCardCountableConnection', totalCount: number | null, edges: Array<{ __typename: 'GiftCardCountableEdge', node: { __typename: 'GiftCard', id: string, usedByEmail: string | null, last4CodeChars: string, isActive: boolean, expiryDate: any | null, product: { __typename: 'Product', id: string, name: string } | null, tags: Array<{ __typename: 'GiftCardTag', name: string }>, usedBy: { __typename: 'User', id: string, firstName: string, lastName: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string } | null } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null }; +export type GiftCardListQuery = { __typename: 'Query', giftCards: { __typename: 'GiftCardCountableConnection', totalCount: number | null, edges: Array<{ __typename: 'GiftCardCountableEdge', node: { __typename: 'GiftCard', id: string, usedByEmail: string | null, last4CodeChars: string, isActive: boolean, expiryDate: any | null, product: { __typename: 'Product', id: string, name: string } | null, tags: Array<{ __typename: 'GiftCardTag', name: string }>, usedBy: { __typename: 'User', id: string, firstName: string, lastName: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string } } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null }; export type GiftCardTotalCountQueryVariables = Exact<{ [key: string]: never; }>; @@ -6860,7 +6886,7 @@ export type CustomerGiftCardListQueryVariables = Exact<{ }>; -export type CustomerGiftCardListQuery = { __typename: 'Query', giftCards: { __typename: 'GiftCardCountableConnection', edges: Array<{ __typename: 'GiftCardCountableEdge', node: { __typename: 'GiftCard', id: string, last4CodeChars: string, expiryDate: any | null, isActive: boolean, currentBalance: { __typename: 'Money', amount: number, currency: string } | null } }> } | null }; +export type CustomerGiftCardListQuery = { __typename: 'Query', giftCards: { __typename: 'GiftCardCountableConnection', edges: Array<{ __typename: 'GiftCardCountableEdge', node: { __typename: 'GiftCard', id: string, last4CodeChars: string, expiryDate: any | null, isActive: boolean, currentBalance: { __typename: 'Money', amount: number, currency: string } } }> } | null }; export type HomeQueryVariables = Exact<{ channel: Scalars['String'];