Migrate billing from Paddle to Lemon Squeezy

This commit is contained in:
Codex Agent
2026-02-03 10:59:54 +01:00
parent 2f4ebfefd4
commit a0ef90e13a
228 changed files with 4369 additions and 4067 deletions

View File

@@ -44,8 +44,8 @@ class CouponFactory extends Factory
'metadata' => ['note' => 'factory'],
'starts_at' => now()->subDay(),
'ends_at' => now()->addMonth(),
'paddle_discount_id' => 'dsc_'.Str::upper(Str::random(10)),
'paddle_mode' => 'standard',
'lemonsqueezy_discount_id' => 'dsc_'.Str::upper(Str::random(10)),
'lemonsqueezy_mode' => 'standard',
];
}
}

View File

@@ -23,7 +23,7 @@ class IntegrationWebhookEventFactory extends Factory
$processedAt = (clone $receivedAt)->modify('+2 minutes');
return [
'provider' => $this->faker->randomElement(['paddle', 'revenuecat']),
'provider' => $this->faker->randomElement(['lemonsqueezy', 'revenuecat']),
'event_id' => $this->faker->uuid(),
'event_type' => $this->faker->word(),
'status' => IntegrationWebhookEvent::STATUS_PROCESSED,

View File

@@ -30,9 +30,9 @@ class PackageFactory extends Factory
'advanced_analytics' => $this->faker->boolean(),
]),
'type' => $this->faker->randomElement(['endcustomer', 'reseller']),
'paddle_sync_status' => null,
'paddle_synced_at' => null,
'paddle_snapshot' => null,
'lemonsqueezy_sync_status' => null,
'lemonsqueezy_synced_at' => null,
'lemonsqueezy_snapshot' => null,
];
}