update email template
This commit is contained in:
@@ -30,4 +30,18 @@ class OrderHelper
|
||||
|
||||
return $number;
|
||||
}
|
||||
|
||||
/** Number of months a billing_cycle value represents (used for pricing and expires_at math). */
|
||||
public static function cycleToMonths(?string $cycle): int
|
||||
{
|
||||
return match ($cycle) {
|
||||
'monthly' => 1,
|
||||
'quarterly' => 3,
|
||||
'semi_annually' => 6,
|
||||
'annually' => 12,
|
||||
'biennially' => 24,
|
||||
'triennially' => 36,
|
||||
default => 1,
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user