All customers were migrated to the single Workspace plan and the old plan rows were deleted in production, so drop the now-dead legacy tiers from the code: reduce the Plan Slug enum to Workspace only and default the PlanFactory to it. Rework StripeEventListenerTest around the single Workspace plan (its monthly and yearly price ids still exercise plan-by-price mapping, trial clearing, deletion, and previous-plan propagation), and point the remaining tests that referenced the starter/pro slugs at the seeded Workspace plan.
17 lines
251 B
PHP
17 lines
251 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Enums\Plan;
|
|
|
|
enum Slug: string
|
|
{
|
|
case Workspace = 'workspace';
|
|
|
|
public function label(): string
|
|
{
|
|
return match ($this) {
|
|
self::Workspace => 'Workspace',
|
|
};
|
|
}
|
|
}
|