From cef530a7b259ba414ce008846aaa13dbb2227374 Mon Sep 17 00:00:00 2001 From: shopwareBot Date: Fri, 28 Aug 2026 16:14:14 +0000 Subject: [PATCH] [create-pull-request] automated change --- .../script-reference/script-hooks-reference.md | 14 +++++++++++++- .../script-reference/webhook-events-reference.md | 2 ++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/resources/references/app-reference/script-reference/script-hooks-reference.md b/resources/references/app-reference/script-reference/script-hooks-reference.md index 276c689e24..8d51b03550 100644 --- a/resources/references/app-reference/script-reference/script-hooks-reference.md +++ b/resources/references/app-reference/script-reference/script-hooks-reference.md @@ -12,6 +12,18 @@ nav: All available Hooks that can be used to load additional data. +### document-generation + +| | | +|:-----------------------|:----------------------------------------| +| **Name** | document-generation | +| **Since** | 6.7.14.0 | +| **Class** | `Shopware\Core\Checkout\DocumentV2\Event\Hooks\DocumentGenerationHook` | +| **Description** | Triggered once per document generation, after the order is loaded and the document number is allocated, but before any renderer runs.
| +| **Available Data** | context: [`Shopware\Core\Framework\Context`](https://github.com/shopware/shopware/blob/trunk/src/Core/Framework/Context.php)
documentNumber: `string`
documentType: `string`
formats: `array`
orderId: `string`
orderVersionId: `string`
salesChannelId: `string`
| +| **Available Services** | [repository](./data-loading-script-services-reference#RepositoryFacade)
[config](./miscellaneous-script-services-reference#SystemConfigFacade)
[acl](./miscellaneous-script-services-reference#AclFacade)
| +| **Stoppable** | `false` | + ### payment-method-route-request | | | @@ -43,7 +55,7 @@ All available Hooks that can be used to load additional data. | **Name** | cookie-group-collect | | **Since** | 6.7.14.0 | | **Class** | `Shopware\Core\Content\Cookie\Hook\CookieGroupCollectHook` | -| **Description** | Triggered when the cookie consent groups are collected for the current sales channel.
Allows apps to modify or remove cookie groups and entries, e.g., depending on the payment methods active in the current sales channel. | +| **Description** | Triggered when the cookie consent groups are collected for the current sales channel.
Allows apps to modify or remove cookie groups and entries, e.g. depending on the payment methods active in the current sales channel. | | **Available Data** | context: [`Shopware\Core\Framework\Context`](https://github.com/shopware/shopware/blob/trunk/src/Core/Framework/Context.php)
cookieGroups: [`Shopware\Core\Content\Cookie\Struct\CookieGroupCollection`](https://github.com/shopware/shopware/blob/trunk/src/Core/Content/Cookie/Struct/CookieGroupCollection.php)
salesChannelContext: [`Shopware\Core\System\SalesChannel\SalesChannelContext`](https://github.com/shopware/shopware/blob/trunk/src/Core/System/SalesChannel/SalesChannelContext.php)
| | **Available Services** | [repository](./data-loading-script-services-reference#RepositoryFacade)
[config](./miscellaneous-script-services-reference#SystemConfigFacade)
[store](./data-loading-script-services-reference#SalesChannelRepositoryFacade)
[acl](./miscellaneous-script-services-reference#AclFacade)
| | **Stoppable** | `false` | diff --git a/resources/references/app-reference/script-reference/webhook-events-reference.md b/resources/references/app-reference/script-reference/webhook-events-reference.md index 81c18052f6..1b253d0971 100644 --- a/resources/references/app-reference/script-reference/webhook-events-reference.md +++ b/resources/references/app-reference/script-reference/webhook-events-reference.md @@ -17,6 +17,8 @@ |`customer.group.registration.declined` | __EMPTY__ | `customer:read` `customer_group:read` | {"entity":"customer_group"} |`customer.password.changed` | __EMPTY__ | `customer:read` | {"entity":"customer","shopName":"string"} |`customer.recovery.request` | Triggers when a customer recovers his password | `customer_recovery:read` `customer:read` | {"entity":"customer","resetUrl":"string","shopName":"string"} +|`document.generation.completed` | Triggers when a document is generated or uploaded for an order | - | {"documentId":"string","documentType":"string","documentNumber":"string","orderId":"string","orderVersionId":"string"} +|`document.generation.deleted` | Triggers when a document is deleted | - | {"documentId":"string","documentNumber":"string","deletedAt":"string","orderId":"string","orderVersionId":"string"} |`mail.after.create.message` | __EMPTY__ | - | {"data":"array","message":"object"} |`mail.before.send` | Triggers before a mail is send | - | {"data":"array","templateData":"array"} |`mail.sent` | Triggers when a mail is send from Shopware | - | {"subject":"string","contents":"string","recipients":"array"}