Skip to content

Commit 03d4e49

Browse files
committed
Travis update: Apr 2025 (Build 835)
[skip ci]
1 parent 23a160a commit 03d4e49

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

docs/WhatsappCreateTemplateRequest.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ Name | Type | Description | Notes
88
------------ | ------------- | ------------- | -------------
99
**name** | **str** | Name of the template |
1010
**category** | [**WhatsappTemplateCategory**](WhatsappTemplateCategory.md) | |
11-
**allow_category_change** | **bool** | Allow category change | [optional] [default to False]
1211
**language** | **str** | Language of the template |
1312
**components** | [**List[WhatsappTemplateComponent]**](WhatsappTemplateComponent.md) | List of template components |
1413

messente_api/models/whatsapp_create_template_request.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
import re # noqa: F401
1919
import json
2020

21-
from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr
22-
from typing import Any, ClassVar, Dict, List, Optional
21+
from pydantic import BaseModel, ConfigDict, Field, StrictStr
22+
from typing import Any, ClassVar, Dict, List
2323
from messente_api.models.whatsapp_template_category import WhatsappTemplateCategory
2424
from messente_api.models.whatsapp_template_component import WhatsappTemplateComponent
2525
from typing import Optional, Set
@@ -31,11 +31,10 @@ class WhatsappCreateTemplateRequest(BaseModel):
3131
""" # noqa: E501
3232
name: StrictStr = Field(description="Name of the template")
3333
category: WhatsappTemplateCategory
34-
allow_category_change: Optional[StrictBool] = Field(default=False, description="Allow category change")
3534
language: StrictStr = Field(description="Language of the template")
3635
components: List[WhatsappTemplateComponent] = Field(description="List of template components")
3736
additional_properties: Dict[str, Any] = {}
38-
__properties: ClassVar[List[str]] = ["name", "category", "allow_category_change", "language", "components"]
37+
__properties: ClassVar[List[str]] = ["name", "category", "language", "components"]
3938

4039
model_config = ConfigDict(
4140
populate_by_name=True,
@@ -104,7 +103,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
104103
_obj = cls.model_validate({
105104
"name": obj.get("name"),
106105
"category": obj.get("category"),
107-
"allow_category_change": obj.get("allow_category_change") if obj.get("allow_category_change") is not None else False,
108106
"language": obj.get("language"),
109107
"components": [WhatsappTemplateComponent.from_dict(_item) for _item in obj["components"]] if obj.get("components") is not None else None
110108
})

0 commit comments

Comments
 (0)