removed all references to credits. now credits are completely replaced by addons.
This commit is contained in:
@@ -17,7 +17,6 @@ class PurchaseHistoryFactory extends Factory
|
||||
'id' => (string) Str::uuid(),
|
||||
'tenant_id' => Tenant::factory(),
|
||||
'package_id' => $this->faker->randomElement(['starter', 'pro', 'enterprise']),
|
||||
'credits_added' => $this->faker->numberBetween(1, 10),
|
||||
'price' => $this->faker->randomFloat(2, 9, 199),
|
||||
'currency' => 'EUR',
|
||||
'platform' => $this->faker->randomElement(['tenant-app', 'ios', 'android']),
|
||||
|
||||
@@ -20,7 +20,6 @@ class TenantFactory extends Factory
|
||||
'name' => $name,
|
||||
'slug' => $slug,
|
||||
'contact_email' => $contactEmail,
|
||||
'event_credits_balance' => $this->faker->numberBetween(1, 20),
|
||||
'subscription_tier' => $this->faker->randomElement(['free', 'starter', 'pro']),
|
||||
'subscription_expires_at' => $this->faker->dateTimeBetween('now', '+1 year'),
|
||||
'is_active' => true,
|
||||
@@ -62,9 +61,6 @@ class TenantFactory extends Factory
|
||||
|
||||
public function withLowCredits(): static
|
||||
{
|
||||
return $this->state(fn (array $attributes) => [
|
||||
'event_credits_balance' => 1,
|
||||
]);
|
||||
return $this->state(fn (array $attributes) => $attributes);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user