From fff36175004a4dbfedece30d57450e699a0b95f2 Mon Sep 17 00:00:00 2001 From: Vincent Pochet Date: Tue, 10 Dec 2024 09:48:28 +0100 Subject: [PATCH] misc: Remove *_count fields (#230) --- spec/fixtures/api/billable_metric.json | 5 +---- spec/fixtures/api/billable_metric_index.json | 10 ++-------- spec/fixtures/api/plan.json | 14 ++------------ spec/fixtures/api/plans.json | 14 ++------------ spec/fixtures/api/tax.json | 4 ---- spec/fixtures/api/taxes.json | 4 ---- 6 files changed, 7 insertions(+), 44 deletions(-) diff --git a/spec/fixtures/api/billable_metric.json b/spec/fixtures/api/billable_metric.json index c37af8f..2e7fd58 100644 --- a/spec/fixtures/api/billable_metric.json +++ b/spec/fixtures/api/billable_metric.json @@ -17,9 +17,6 @@ "key": "country", "values": ["france", "italy", "spain"] } - ], - "active_subscriptions_count": 0, - "draft_invoices_count": 0, - "plans_count": 0 + ] } } diff --git a/spec/fixtures/api/billable_metric_index.json b/spec/fixtures/api/billable_metric_index.json index b9eb15f..6f51a17 100644 --- a/spec/fixtures/api/billable_metric_index.json +++ b/spec/fixtures/api/billable_metric_index.json @@ -13,10 +13,7 @@ "expression": "1 + 2", "field_name": "amount_sum", "created_at": "2022-04-29T08:59:51Z", - "filters": [], - "active_subscriptions_count": 0, - "draft_invoices_count": 0, - "plans_count": 0 + "filters": [] }, { "lago_id": "b7ab2926-1de8-4428-9bcd-779314a11111", @@ -31,10 +28,7 @@ "expression": "1 + 2", "field_name": "amount_sum", "created_at": "2022-04-30T08:59:51Z", - "filters": [], - "active_subscriptions_count": 0, - "draft_invoices_count": 0, - "plans_count": 0 + "filters": [] } ], "meta": { diff --git a/spec/fixtures/api/plan.json b/spec/fixtures/api/plan.json index d7a3487..55f7dba 100644 --- a/spec/fixtures/api/plan.json +++ b/spec/fixtures/api/plan.json @@ -12,8 +12,6 @@ "trial_period": 3.0, "pay_in_advance": true, "bill_charges_monthly": null, - "active_subscriptions_count": 0, - "draft_invoices_count": 0, "charges": [ { "lago_id": "51c1e851-5be6-4343-a0ee-39a81d8b4ee1", @@ -29,9 +27,7 @@ "min_amount_cents": 0, "properties": { "amount": "0.22", - "grouped_by": [ - "agent_name" - ] + "grouped_by": ["agent_name"] }, "filters": [ { @@ -40,9 +36,7 @@ "amount": "0.33" }, "values": { - "country": [ - "France" - ] + "country": ["France"] } } ], @@ -84,10 +78,6 @@ "code": "tax_code", "rate": 15.0, "description": "tax_desc", - "add_ons_count": 0, - "customers_count": 0, - "plans_count": 0, - "charges_count": 0, "applied_to_organization": false, "created_at": "2022-04-29T08:59:51Z" } diff --git a/spec/fixtures/api/plans.json b/spec/fixtures/api/plans.json index 2cd3ca7..6835de2 100644 --- a/spec/fixtures/api/plans.json +++ b/spec/fixtures/api/plans.json @@ -13,8 +13,6 @@ "trial_period": 3.0, "pay_in_advance": true, "bill_charges_monthly": null, - "active_subscriptions_count": 0, - "draft_invoices_count": 0, "charges": [ { "lago_id": "51c1e851-5be6-4343-a0ee-39a81d8b4ee1", @@ -29,9 +27,7 @@ "invoice_display_name": "Charge 1", "properties": { "amount": "0.22", - "grouped_by": [ - "agent_name" - ] + "grouped_by": ["agent_name"] }, "filters": [ { @@ -40,9 +36,7 @@ "amount": "0.33" }, "values": { - "country": [ - "France" - ] + "country": ["France"] } } ] @@ -80,8 +74,6 @@ "trial_period": 2.0, "pay_in_advance": true, "bill_charges_monthly": null, - "active_subscriptions_count": 0, - "draft_invoices_count": 0, "charges": [ { "lago_id": "dfdc725d-6341-4d61-831e-4ac9ccd509c0", @@ -111,8 +103,6 @@ "trial_period": 0.0, "pay_in_advance": true, "bill_charges_monthly": null, - "active_subscriptions_count": 0, - "draft_invoices_count": 0, "charges": [] } ], diff --git a/spec/fixtures/api/tax.json b/spec/fixtures/api/tax.json index df3fd4c..26d90c7 100644 --- a/spec/fixtures/api/tax.json +++ b/spec/fixtures/api/tax.json @@ -5,10 +5,6 @@ "code": "tax_code", "rate": 15.0, "description": "tax_desc", - "add_ons_count": 0, - "customers_count": 0, - "plans_count": 0, - "charges_count": 0, "applied_to_organization": false, "created_at": "2022-04-29T08:59:51Z" } diff --git a/spec/fixtures/api/taxes.json b/spec/fixtures/api/taxes.json index ed31b34..b412c7c 100644 --- a/spec/fixtures/api/taxes.json +++ b/spec/fixtures/api/taxes.json @@ -6,10 +6,6 @@ "code": "tax_code", "rate": 15.0, "description": "tax_desc", - "add_ons_count": 0, - "customers_count": 0, - "plans_count": 0, - "charges_count": 0, "applied_to_organization": false, "created_at": "2022-04-29T08:59:51Z" }