Weekend Promotion
=================

Extension ID: PLG-276367DF57DF
Slug: weekendpromotion
Version: 1.0.0
Author: Metor

DESCRIPTION
-----------
Weekend Promotion adds optional automation to the POS lifecycle. It listens to the configured execution point(s) and processes the event payload without changing the core workflow unless the extension is enabled and configured to do so.

EXECUTION POINT(S)
------------------
- discount.applied

The execution point is the lifecycle hook that invokes this extension. The payload delivered to the extension depends on the selected hook.

FILES
-----
- manifest.json : Extension metadata and execution point registration.
- config.json   : Extension settings.
- extension.js  : Extension implementation.
- logo.png      : Extension logo.
- screenshot.png: Extension information / configuration screenshot.
- README.txt    : User-facing documentation.

IMPORTANT
---------
This extension is optional. Review and configure config.json before enabling integrations or external services. API keys, webhook secrets and credentials should be supplied through secure configuration/environment variables rather than hard-coded into source files.

SETTINGS (config.json)
----------------------
- days        : Days the promotion runs, 0 = Sunday ... 6 = Saturday. Default [0, 6] (the weekend).
- percent     : Extra automatic discount on those days, as a percentage of the cart subtotal. 0 only marks the order (metadata.extensions.weekendPromotion).
- maxDiscount : Largest extra discount per order in the store currency. 0 = no cap.
The extra discount never takes the order below zero.
