Skip to content

Commit

Permalink
misc: Remove *_count fields (#230)
Browse files Browse the repository at this point in the history
  • Loading branch information
vincent-pochet authored Dec 10, 2024
1 parent aa3b48d commit fff3617
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 44 deletions.
5 changes: 1 addition & 4 deletions spec/fixtures/api/billable_metric.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@
"key": "country",
"values": ["france", "italy", "spain"]
}
],
"active_subscriptions_count": 0,
"draft_invoices_count": 0,
"plans_count": 0
]
}
}
10 changes: 2 additions & 8 deletions spec/fixtures/api/billable_metric_index.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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": {
Expand Down
14 changes: 2 additions & 12 deletions spec/fixtures/api/plan.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -29,9 +27,7 @@
"min_amount_cents": 0,
"properties": {
"amount": "0.22",
"grouped_by": [
"agent_name"
]
"grouped_by": ["agent_name"]
},
"filters": [
{
Expand All @@ -40,9 +36,7 @@
"amount": "0.33"
},
"values": {
"country": [
"France"
]
"country": ["France"]
}
}
],
Expand Down Expand Up @@ -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"
}
Expand Down
14 changes: 2 additions & 12 deletions spec/fixtures/api/plans.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -29,9 +27,7 @@
"invoice_display_name": "Charge 1",
"properties": {
"amount": "0.22",
"grouped_by": [
"agent_name"
]
"grouped_by": ["agent_name"]
},
"filters": [
{
Expand All @@ -40,9 +36,7 @@
"amount": "0.33"
},
"values": {
"country": [
"France"
]
"country": ["France"]
}
}
]
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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": []
}
],
Expand Down
4 changes: 0 additions & 4 deletions spec/fixtures/api/tax.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
Expand Down
4 changes: 0 additions & 4 deletions spec/fixtures/api/taxes.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
Expand Down

0 comments on commit fff3617

Please sign in to comment.