Migrate billing from Paddle to Lemon Squeezy
This commit is contained in:
@@ -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',
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user