Fix webhook registration rejecting events unknown to the Event enum - #101
Closed
smety wants to merge 1 commit into
Closed
Fix webhook registration rejecting events unknown to the Event enum#101smety wants to merge 1 commit into
smety wants to merge 1 commit into
Conversation
Contributor
|
Thank you for suggesting this change. We have processed the change in the original repository and it will be merged as part of the PR #103 |
xmalda
added a commit
that referenced
this pull request
Aug 13, 2026
> [!NOTE] > This PR copies content from the source repo. > Source repo commit [d16b6dc](shoptet/cms4@d16b6dc) This change is credited to @smety Original PR #101 **List of changes:** - Fix webhook registration rejecting events unknown to the Event enum Co-authored-by: xmalda <24293733+xmalda@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Problem
Item::setEvent()(RegisterNewWebhookRequest) hard-validates event strings against the bundledWebhook\Eventenum and throwsInvalidArgumentExceptionfor anything it does not know. The enum currently contains 56 events, while the webhook event types code list publishes 113 — the SDK therefore refuses to register events the API itselfaccepts.
Reproduction
The same applies to the whole product:, category:, productVariant:* families (including all mass events), order:paid, supplier:* and ~50 more.
a bundled list inevitably drifts and blocks legitimate registrations. Event enum values keep working exactly as before.