Repository navigation
feat(event): Add order.checkoutStarted event - #46
Merged
Merged
Conversation
Adds the `order.checkoutStarted` event type so partners can listen for the hand-off to the prac-pay lab checkout from the embed. - `EVENT_TYPES` gains `order.checkoutStarted`; `OrderPayload` matches the payload emitted by hw-admin (EVE-1825). - `EventListenerPayload` now resolves its `data` through an `EventPayloads` lookup instead of a nested conditional, so a new entry in `EVENT_TYPES` without a matching payload is a compile error rather than silently falling back to `TreatmentPlanPayload`. - `errorMessage.invalidEventType` picks the new type up automatically via `common.availableEventTypes`. - Both demos register a listener for the new event. EVE-1834 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Collaborator
|
🎉 This PR is included in version 3.3.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
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.
Changes
Adds the
order.checkoutStartedevent type to the SDK, so partners can listen for the hand-off from the embed to the prac-pay lab checkout.