Skip to content

Commit

Permalink
mark count fields as optional (#288)
Browse files Browse the repository at this point in the history
  • Loading branch information
nudded authored Nov 27, 2024
1 parent 1ca97de commit bcb6948
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
4 changes: 2 additions & 2 deletions lago_python_client/models/plan.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]


Expand Down
8 changes: 4 additions & 4 deletions lago_python_client/models/tax.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
1 change: 0 additions & 1 deletion tests/fixtures/tax_index.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit bcb6948

Please sign in to comment.