SDK Reference
TypeDoc
Event information
Each event is fired per-tab when something coupon related happens in the SDK.
In detail:
COUPON_PAGE_DETECTED
- fired when the tab navigates to a page where CAA occurs.COUPON_PAGE_NOT_DETECTED
- fired by the SDK upon determining that the current web page does not support or allow CAA. This detection occurs as part of the evaluation process whenever a new page is loaded in the tab.COUPON_SESSION_STARTED
- fired when the SDK has begun automatically inputting coupons into the tab.COUPON_ENTRY_STARTED
- fired when a specific coupon has begun inputting into the tab.COUPON_ENTRY_FAILED
- fired when a specific coupon failed to input into the tab. This is when the SDK itself fails, not when the coupon “fails” (e.g. the coupon is invalid on the page but is correctly entered). Errors here are tracked on the Sleek side and indicate things like failure to click buttons, or input text. The extension gracefully handles these errors, showing the user error UI, when necessary.COUPON_ENTRY_COMPLETED
- fired when a specific coupon has finished inputting into the tab.COUPON_SESSION_COMPLETED
- fired when the entire “session” of CAA has completed. I.e. the entire set of coupons for a site are finished inputting.COUPON_SESSION_FAILED
- fired when an unexpected issue occurs during CAA (e.g. coupon provider does not supply any coupons).COUPON_SESSION_RESUMED
- fired when a tab reloads and CAA continues. Site specific, but stores like Bed Bath & Beyond reload the tab when a coupon is input. This event is fired since the UI and the couponing process continues on the tab after reload.COUPON_SESSION_CANCELLED
- fired when the current session of CAA is cancelled due to the user explicitly calling thecancelCouponsOnTab(tabId: number)
SDK API or closing the tab where CAA was occurring.USER_GENERATED_CODE
- fired when the user inputs a coupon code into the tab manually after CAA has been completed.