Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
fix ASYNC_WEBHOOK_TYPES_MAP types. (#16070)
Artureb576be988c5
diff --git a/saleor/graphql/schema.graphql b/saleor/graphql/schema.graphqlindex c93140d29a..dcb77cdc14 100644--- a/saleor/graphql/schema.graphql+++ b/saleor/graphql/schema.graphql@@ -35259,6 +35259,28 @@ type ShippingZoneMetadataUpdated implements Event @doc(category: "Shipping") {): ShippingZone}+"""+Event sent when shop metadata is updated.++Added in Saleor 3.15.+"""+type ShopMetadataUpdated 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++ """Shop data."""+ shop: Shop+}+"""Event sent when new staff user is created.@@ -36290,28 +36312,6 @@ type TransactionProcessSession implements Event @doc(category: "Payments") {action: TransactionProcessAction!}-"""-Event sent when shop metadata is updated.--Added in Saleor 3.15.-"""-type ShopMetadataUpdated 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-- """Shop data."""- shop: Shop-}-"""List payment methods stored for the user by payment gateway.diff --git a/saleor/graphql/webhook/subscription_types.py b/saleor/graphql/webhook/subscription_types.pyindex 96fc5a95d9..d1d6ffc75b 100644--- a/saleor/graphql/webhook/subscription_types.py+++ b/saleor/graphql/webhook/subscription_types.py@@ -2781,7 +2781,6 @@ SYNC_WEBHOOK_TYPES_MAP = {),WebhookEventSyncType.TRANSACTION_INITIALIZE_SESSION: TransactionInitializeSession,WebhookEventSyncType.TRANSACTION_PROCESS_SESSION: TransactionProcessSession,- WebhookEventAsyncType.SHOP_METADATA_UPDATED: ShopMetadataUpdated,WebhookEventSyncType.LIST_STORED_PAYMENT_METHODS: ListStoredPaymentMethods,WebhookEventSyncType.STORED_PAYMENT_METHOD_DELETE_REQUESTED: (StoredPaymentMethodDeleteRequested@@ -2919,6 +2918,7 @@ ASYNC_WEBHOOK_TYPES_MAP = {WebhookEventAsyncType.SHIPPING_ZONE_UPDATED: ShippingZoneUpdated,WebhookEventAsyncType.SHIPPING_ZONE_DELETED: ShippingZoneDeleted,WebhookEventAsyncType.SHIPPING_ZONE_METADATA_UPDATED: ShippingZoneMetadataUpdated,+ WebhookEventAsyncType.SHOP_METADATA_UPDATED: ShopMetadataUpdated,WebhookEventAsyncType.STAFF_CREATED: StaffCreated,WebhookEventAsyncType.STAFF_UPDATED: StaffUpdated,WebhookEventAsyncType.STAFF_DELETED: StaffDeleted,