Fix upsert billing (#24)

This commit updates the product_id and variant_id in both the subscription_items and order_items in the billing tests. Updates also include adding new checks to verify these changes. Changes are reflected in corresponding SQL files for personal and team billing subscriptions/orders tests.
This commit is contained in:
Giancarlo Buomprisco
2024-05-15 11:08:19 +07:00
committed by GitHub
parent fe86b04d95
commit 4e50094808
8 changed files with 63 additions and 39 deletions

View File

@@ -35,26 +35,6 @@ export default createBillingSchema({
cost: 9.99,
type: 'flat' as const,
},
{
id: 'price_1P8N0zI1i3VnbZTqtUPc1Zvr',
name: 'Addon 3',
cost: 0,
type: 'per_seat' as const,
tiers: [
{
upTo: 1,
cost: 0,
},
{
upTo: 5,
cost: 4,
},
{
upTo: 'unlimited',
cost: 3,
},
],
},
],
},
{
@@ -89,7 +69,7 @@ export default createBillingSchema({
interval: 'month',
lineItems: [
{
id: 'price_pro',
id: 'price_1PGOAVI1i3VnbZTqc69xaypm',
name: 'Base',
cost: 19.99,
type: 'flat',