From bcb694842c2d021bd9a9100bf68f36d9711f7694 Mon Sep 17 00:00:00 2001 From: Toon Willems Date: Wed, 27 Nov 2024 16:15:18 +0100 Subject: [PATCH] mark count fields as optional (#288) --- lago_python_client/models/plan.py | 4 ++-- lago_python_client/models/tax.py | 8 ++++---- tests/fixtures/tax_index.json | 1 - 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/lago_python_client/models/plan.py b/lago_python_client/models/plan.py index 1f2e32ee..10a8dafd 100644 --- a/lago_python_client/models/plan.py +++ b/lago_python_client/models/plan.py @@ -51,8 +51,8 @@ class PlanResponse(BaseResponseModel): charges: Optional[ChargesResponse] minimum_commitment: Optional[MinimumCommitmentResponse] usage_thresholds: Optional[UsageThresholdsResponse] - active_subscriptions_count: int - draft_invoices_count: int + active_subscriptions_count: Optional[int] + draft_invoices_count: Optional[int] taxes: Optional[TaxesResponse] diff --git a/lago_python_client/models/tax.py b/lago_python_client/models/tax.py index e0d96f76..e47a670b 100644 --- a/lago_python_client/models/tax.py +++ b/lago_python_client/models/tax.py @@ -23,10 +23,10 @@ class TaxResponse(BaseResponseModel): code: str rate: float description: Optional[str] - add_ons_count: int - customers_count: int - plans_count: int - charges_count: int + add_ons_count: Optional[int] + customers_count: Optional[int] + plans_count: Optional[int] + charges_count: Optional[int] applied_to_organization: bool created_at: str diff --git a/tests/fixtures/tax_index.json b/tests/fixtures/tax_index.json index e683b719..66b7d895 100644 --- a/tests/fixtures/tax_index.json +++ b/tests/fixtures/tax_index.json @@ -8,7 +8,6 @@ "add_ons_count": 0, "customers_count": 0, "plans_count": 0, - "charges_count": 0, "description": "tax_desc_1", "applied_to_organization": false, "created_at": "2022-04-29T08:59:51Z"