Skip to content

Commit 78b7541

Browse files
author
johnturnham
committed
v2.1.600
1 parent 5ba6301 commit 78b7541

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

docs/SubscriptionProduct.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ Name | Type | Description | Notes
1010
**title_full** | **str** | |
1111
**category** | **str** | |
1212
**volume** | **float** | | [optional]
13+
**value** | **float** | | [optional]
1314
**features** | [**List[SubscriptionFeature]**](SubscriptionFeature.md) | |
1415
**pages** | [**List[PortalPage]**](PortalPage.md) | |
1516
**icon_name** | **str** | |

wallet/models/subscription_product.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,14 @@ class SubscriptionProduct(BaseModel):
3434
title_full: StrictStr = Field(alias="titleFull")
3535
category: StrictStr
3636
volume: Optional[Union[StrictFloat, StrictInt]] = None
37+
value: Optional[Union[StrictFloat, StrictInt]] = None
3738
features: List[SubscriptionFeature]
3839
pages: List[PortalPage]
3940
icon_name: StrictStr = Field(alias="iconName")
4041
description: StrictStr
4142
is_hourly: Optional[StrictBool] = Field(default=None, alias="isHourly")
4243
release_status: Optional[StrictStr] = Field(default=None, alias="releaseStatus")
43-
__properties: ClassVar[List[str]] = ["id", "title", "titleFull", "category", "volume", "features", "pages", "iconName", "description", "isHourly", "releaseStatus"]
44+
__properties: ClassVar[List[str]] = ["id", "title", "titleFull", "category", "volume", "value", "features", "pages", "iconName", "description", "isHourly", "releaseStatus"]
4445

4546
model_config = {
4647
"populate_by_name": True,
@@ -105,6 +106,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
105106
"titleFull": obj.get("titleFull"),
106107
"category": obj.get("category"),
107108
"volume": obj.get("volume"),
109+
"value": obj.get("value"),
108110
"features": [SubscriptionFeature.from_dict(_item) for _item in obj["features"]] if obj.get("features") is not None else None,
109111
"pages": obj.get("pages"),
110112
"iconName": obj.get("iconName"),

0 commit comments

Comments
 (0)