Skip to content

Commit

Permalink
feat(DynamicPricing): Expose Event#precise_total_amount_cents (#275)
Browse files Browse the repository at this point in the history
  • Loading branch information
vincent-pochet authored Sep 30, 2024
1 parent bab5dcd commit d2e5565
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lago_python_client/models/event.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ class Event(BaseModel):
external_subscription_id: str
code: str
timestamp: Optional[Union[int, str]]
precise_total_amount_cents: Optional[str]
properties: Optional[Dict[str, Any]]


Expand All @@ -25,6 +26,7 @@ class EventResponse(BaseResponseModel):
external_subscription_id: str
code: str
timestamp: str
precise_total_amount_cents: Optional[str]
properties: Optional[Dict[str, Any]]
created_at: str

Expand Down
1 change: 1 addition & 0 deletions tests/fixtures/event.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"external_subscription_id": "24691b9a-7330-409d-9dfd-d80582593297",
"code": "test",
"timestamp": "2022-04-29T08:59:51Z",
"precise_total_amount_cents": "123.45",
"properties": {
"custom_field": "custom"
},
Expand Down

0 comments on commit d2e5565

Please sign in to comment.