Skip to content

[PB-5982]: add referral integration for token generation and purchase tracking#994

Merged
terrerox merged 5 commits into
masterfrom
feature/cello-referral
Mar 16, 2026
Merged

[PB-5982]: add referral integration for token generation and purchase tracking#994
terrerox merged 5 commits into
masterfrom
feature/cello-referral

Conversation

@terrerox
Copy link
Copy Markdown
Contributor

@terrerox terrerox commented Mar 12, 2026

Introduce Referral module with endpoints for generating referral JWT tokens.

…se tracking

  Introduce Cello module with endpoints for generating referral JWT tokens
  and tracking purchase events. Includes concurrency-safe API token caching,
  request timeouts, and input validation with DTOs.
Introduce ReferralService abstract class so the controller depends on a provider-agnostic contract. CelloReferralService implements it and is  bound via the module. Swapping providers requires changing one line in the module
@terrerox terrerox marked this pull request as ready for review March 12, 2026 19:57
Comment thread src/modules/referral/referral.controller.ts Outdated
…gration

  Remove the track-purchase endpoint, Cello API event tracking, and related
  HTTP client dependency, keeping only the JWT token generation functionality.
Comment thread src/modules/referral/cello-referral.service.ts
@sonarqubecloud
Copy link
Copy Markdown

@jzunigax2
Copy link
Copy Markdown
Contributor

Let's wait on confirmation new env variables were set before merging

@terrerox terrerox merged commit cc21635 into master Mar 16, 2026
13 checks passed
@terrerox terrerox deleted the feature/cello-referral branch March 16, 2026 16:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants