Proje: Okul Platform · Hub: Okul Platform — Architecture
B2B Events (app/Integrations/CustomerIO/Events/B2B/)
| Event | Tetiklenme |
|---|---|
LeadCreated | Yeni lead oluşturuldu |
LeadUpdated | Lead güncellendi |
LeadSaved | Lead kaydedildi |
LeadSeen | Lead görüntülendi |
LeadAnsweredStatusUpdated | Lead yanıt durumu güncellendi |
InteractionCreated | Okul etkileşimi oluşturuldu |
LoginEvent | B2B kullanıcı giriş yaptı |
PaymentStatusUpdated | Ödeme durumu güncellendi |
SchoolCommentApproved | Okul yorumu onaylandı |
SchoolCommentRejected | Okul yorumu reddedildi |
SchoolMonthlyStats | Aylık okul istatistik raporu (OKUL-766) |
B2B Jobs (app/Integrations/CustomerIO/Jobs/B2B/)
BatchTrackEventJob— Toplu event gönderTrackEventJob— Tekil event gönder
B2C Jobs (app/Integrations/CustomerIO/Jobs/B2C/)
ImportUserJob— Kullanıcıyı CIO’ya import etDeleteUserJob— Kullanıcıyı CIO’dan sil
B2B DTO’ları (app/Integrations/CustomerIO/DTO/)
Agreement— Sözleşme verisiPayment— Ödeme verisi (Payment modelinden dönüştürme)
B2BEventService
app/Integrations/CustomerIO/Services/B2BEventService.php
Event’leri B2B Track API’ına gönderir.
Kullanım Örneği
// Lead oluşturulduğunda:
$cioEvent = new LeadCreated($lead);
TrackEventJob::dispatch($cioEvent);
// Aylık rapor:
SendSchoolStatisticCommand → B2BSchoolStatisticsService → SchoolMonthlyStats event → TrackEventJobRelated
- api-customerio-client-package — CIO Client detayları
- api-key-integrations — CIO servis katmanı
- api-b2b-monthly-report — SchoolMonthlyStats event