Proje: Okul Platform · Hub: Okul Platform — Architecture

B2B Events (app/Integrations/CustomerIO/Events/B2B/)

EventTetiklenme
LeadCreatedYeni lead oluşturuldu
LeadUpdatedLead güncellendi
LeadSavedLead kaydedildi
LeadSeenLead görüntülendi
LeadAnsweredStatusUpdatedLead yanıt durumu güncellendi
InteractionCreatedOkul etkileşimi oluşturuldu
LoginEventB2B kullanıcı giriş yaptı
PaymentStatusUpdatedÖdeme durumu güncellendi
SchoolCommentApprovedOkul yorumu onaylandı
SchoolCommentRejectedOkul yorumu reddedildi
SchoolMonthlyStatsAylık okul istatistik raporu (OKUL-766)

B2B Jobs (app/Integrations/CustomerIO/Jobs/B2B/)

  • BatchTrackEventJob — Toplu event gönder
  • TrackEventJob — Tekil event gönder

B2C Jobs (app/Integrations/CustomerIO/Jobs/B2C/)

  • ImportUserJob — Kullanıcıyı CIO’ya import et
  • DeleteUserJob — Kullanıcıyı CIO’dan sil

B2B DTO’ları (app/Integrations/CustomerIO/DTO/)

  • Agreement — Sözleşme verisi
  • Payment — Ö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 TrackEventJob