-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(ProgressiveBilling): Expose Usage Threshold fields
- Loading branch information
1 parent
bf34230
commit a1c8633
Showing
7 changed files
with
41 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
from typing import List, Optional | ||
|
||
from lago_python_client.base_model import BaseModel | ||
|
||
from ..base_model import BaseResponseModel | ||
|
||
|
||
class UsageThreshold(BaseModel): | ||
id: Optional[str] | ||
threshold_display_name: Optional[str] | ||
amount_cents: int | ||
recurring: bool | ||
|
||
|
||
class UsageThresholds(BaseModel): | ||
__root__: List[UsageThreshold] | ||
|
||
|
||
class UsageThresholdResponse(BaseResponseModel): | ||
lago_id: str | ||
threshold_display_name: Optional[str] | ||
amount_cents: int | ||
recurring: bool | ||
created_at: str | ||
updated_at: str | ||
|
||
|
||
class UsageThresholdsResponse(BaseResponseModel): | ||
__root__: List[UsageThresholdResponse] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters