Skip to content
Corex

CallRequestService

Corex\Bookings\CallRequestService · class · Add-ons layer

Orchestrates a call request: validate the leader + the contact fields, store it, and notify the leader + confirm the visitor. Every rejection short-circuits before any side effect (FR-004). Captcha/honeypot are the endpoint’s job.

__construct(CallRequestStore $store, LeaderDirectory $leaders, Mailer $mailer)

Section titled “__construct(CallRequestStore $store, LeaderDirectory $leaders, Mailer $mailer)”

request(string $leaderId, array $data): CallRequestResult

Section titled “request(string $leaderId, array $data): CallRequestResult”