Proposals & Sibling Integrations
Charter ships a secure printable proposal engine (QuoteProposalRenderer) and four isolated sibling integrations under src/Integration/* that boot automatically whenever the target module is installed.
1. Branded & Unbranded HMAC Proposals (QuoteProposalRenderer)
Section titled “1. Branded & Unbranded HMAC Proposals (QuoteProposalRenderer)”Generate time-limited public share URLs (/_charter/proposal/{token}) for an 'inquiry', 'booking', or 'yacht':
$proposals = $charter->proposals();
// Branded client proposal (7-day TTL, clamped between 60s and 365 days)$brandedUrl = $proposals->shareUrl('inquiry', (string) $inquiry->id, branded: true, ttlSeconds: 604800);
// Unbranded broker-to-broker brochure (strips agency header, contact footer, client name, request_notes)$unbrandedUrl = $proposals->shareUrl('yacht', (string) $yacht->id, branded: false, ttlSeconds: 604800);- Tokens are signed with HKDF-SHA256 derived from
$config->userAuthSalt(Charter:proposal-signing-v1). renderByToken()enforces live, non-hidden published status (isLive() && !$isHidden) on inquiries, bookings, and referenced yachts.- Private operational fields (
internal_notes,commission_percent,owner_name,owner_contact,captain_name,captain_phone,captain_email,private_notes) are never rendered in either mode.
2. All 4 Optional Sibling Integrations (src/Integration/*)
Section titled “2. All 4 Optional Sibling Integrations (src/Integration/*)”| Sibling Module | Integration Adapter Capabilities |
|---|---|
Ai (Integration\Ai\CharterCapabilityProvider) |
Advertised via 'aiCapabilities' => ['charter'] on Ai::registerCapabilities. Exposes 3 scopes (charter:read, charter:inquire, charter:write) and 6 tools: charter_search_fleet, charter_get_yacht, charter_list_destinations, charter_create_inquiry, charter_schema, and charter_save_yacht. Enforces CharterAccess::canManage() on write tools, FieldSensitivityPolicy, and caller-scoped inquiry rate limiting in WireCache (Charter.AiInquiry). |
Forms (Integration\Forms\Integration) |
Populates inquiry_form / default_inquiry_form dropdowns via Charter::resolveBlueprint, and hooks Forms::afterSubmit to create charter-inquiries + Contacts clients automatically via BookingWorkflowService::createInquiryFromSubmission(). |
Seo (Integration\Seo\Integration) |
Replaces fallback SEO fields on charter-yachts (tab_seo) with @fieldset:seo and hooks Seo::resolve to inject CharterRouteMatch metadata and localized canonical URLs. |
Media (Integration\Media\Integration) |
Registers a media URL resolver on YachtSubjectResolver::primaryPhotoUrl() so Page-mode yachts using FieldtypeMedia (MediaAssetItem / MediaAssetArray) resolve public resized images while strictly excluding private, hidden, unpublished, or trashed assets. |