openvibers/openvibe.contracts Commits
Contracts 0.188.0: coupons.watch.matched (Coupons' merchant watches get delivered) (#148)
OP OpenVibers committed 29 days ago · tag v0.188 · 0 files, +0 −0
A new event, `coupons.watch.matched` v1, so that Coupons' merchant watches get delivered. Until now Coupons recorded watches and listed them on `/watching` but notified nobody (Network's consumer said so: "Delivery is not built yet"). - **When:** a code for a watched merchant becomes publicly listed, either created published or approved from review. - **Who:** one event per (watcher, coupon), never for the code's submitter, inside the listing's transaction. The visibility is internal, and `recipient` is who Network notifies. - **Payload:** merchant id, name and URL; coupon id, URL and title; the expiry or null. No code text: the notification links the coupon page, with its restrictions and reports. - **Manifests:** Coupons produces it and Network consumes it, as with `deals.watch.matched`. The schema, catalog entry and fixtures (2 valid; 2 invalid: one carrying a code, one with a numeric recipient) are added. The version is 0.188.0 with the regenerated `generated/`. `npm test` passes (20146 checks), and `compat.js v0.187.0` finds no breaking changes. The Coupons and Network halves follow in their own PRs.
This commit has no diff to show.