Tighten Pro alert caps and move custom badges to Enterprise.
Deploy Ladill Frontdesk / deploy (push) Has been cancelled
Deploy Ladill Frontdesk / deploy (push) Has been cancelled
Pro includes 5,000 email and 5,000 SMS host alerts per month with hard monthly caps; Enterprise is unlimited. Custom badge templates are Enterprise-only, and plan benefit copy matches the new limits.
This commit is contained in:
@@ -27,6 +27,11 @@ class NotificationUsageService
|
||||
return (int) $this->forOrganization($organization)->email_count;
|
||||
}
|
||||
|
||||
public function smsCountThisMonth(Organization $organization): int
|
||||
{
|
||||
return (int) $this->forOrganization($organization)->sms_count;
|
||||
}
|
||||
|
||||
public function recordEmail(Organization $organization, int $chargedMinor = 0): void
|
||||
{
|
||||
$usage = $this->forOrganization($organization);
|
||||
@@ -36,7 +41,7 @@ class NotificationUsageService
|
||||
}
|
||||
}
|
||||
|
||||
public function recordSms(Organization $organization, int $chargedMinor): void
|
||||
public function recordSms(Organization $organization, int $chargedMinor = 0): void
|
||||
{
|
||||
$usage = $this->forOrganization($organization);
|
||||
$usage->increment('sms_count');
|
||||
|
||||
Reference in New Issue
Block a user