Skip to content

Commit 0681f09

Browse files
committed
Travis update: Jul 2024 (Build 781)
[skip ci]
1 parent 9da3b30 commit 0681f09

46 files changed

Lines changed: 598 additions & 0 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

messente_api/models/bulk_omni_message_create_success_response.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ class BulkOmniMessageCreateSuccessResponse(BaseModel):
2929
Response received after successfully created bulk omnimessage.
3030
""" # noqa: E501
3131
messages: List[BulkOmniMessageCreateSuccessResponseMessagesInner] = Field(description="List of responses for each Omnimessage in the bulk. These can be errors or successful responses")
32+
additional_properties: Dict[str, Any] = {}
3233
__properties: ClassVar[List[str]] = ["messages"]
3334

3435
model_config = ConfigDict(
@@ -61,8 +62,10 @@ def to_dict(self) -> Dict[str, Any]:
6162
* `None` is only added to the output dict for nullable fields that
6263
were set at model initialization. Other fields with value `None`
6364
are ignored.
65+
* Fields in `self.additional_properties` are added to the output dict.
6466
"""
6567
excluded_fields: Set[str] = set([
68+
"additional_properties",
6669
])
6770

6871
_dict = self.model_dump(
@@ -77,6 +80,11 @@ def to_dict(self) -> Dict[str, Any]:
7780
if _item:
7881
_items.append(_item.to_dict())
7982
_dict['messages'] = _items
83+
# puts key-value pairs in additional_properties in the top level
84+
if self.additional_properties is not None:
85+
for _key, _value in self.additional_properties.items():
86+
_dict[_key] = _value
87+
8088
return _dict
8189

8290
@classmethod
@@ -91,6 +99,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
9199
_obj = cls.model_validate({
92100
"messages": [BulkOmniMessageCreateSuccessResponseMessagesInner.from_dict(_item) for _item in obj["messages"]] if obj.get("messages") is not None else None
93101
})
102+
# store additional fields in additional_properties
103+
for _key in obj.keys():
104+
if _key not in cls.__properties:
105+
_obj.additional_properties[_key] = obj.get(_key)
106+
94107
return _obj
95108

96109

messente_api/models/bulk_omnimessage.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ class BulkOmnimessage(BaseModel):
2929
A bulk omnimessage.
3030
""" # noqa: E501
3131
messages: List[Omnimessage] = Field(description="A list of omnimessages.")
32+
additional_properties: Dict[str, Any] = {}
3233
__properties: ClassVar[List[str]] = ["messages"]
3334

3435
model_config = ConfigDict(
@@ -61,8 +62,10 @@ def to_dict(self) -> Dict[str, Any]:
6162
* `None` is only added to the output dict for nullable fields that
6263
were set at model initialization. Other fields with value `None`
6364
are ignored.
65+
* Fields in `self.additional_properties` are added to the output dict.
6466
"""
6567
excluded_fields: Set[str] = set([
68+
"additional_properties",
6669
])
6770

6871
_dict = self.model_dump(
@@ -77,6 +80,11 @@ def to_dict(self) -> Dict[str, Any]:
7780
if _item:
7881
_items.append(_item.to_dict())
7982
_dict['messages'] = _items
83+
# puts key-value pairs in additional_properties in the top level
84+
if self.additional_properties is not None:
85+
for _key, _value in self.additional_properties.items():
86+
_dict[_key] = _value
87+
8088
return _dict
8189

8290
@classmethod
@@ -91,6 +99,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
9199
_obj = cls.model_validate({
92100
"messages": [Omnimessage.from_dict(_item) for _item in obj["messages"]] if obj.get("messages") is not None else None
93101
})
102+
# store additional fields in additional_properties
103+
for _key in obj.keys():
104+
if _key not in cls.__properties:
105+
_obj.additional_properties[_key] = obj.get(_key)
106+
94107
return _obj
95108

96109

messente_api/models/contact_envelope.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ class ContactEnvelope(BaseModel):
2929
A container for a contact
3030
""" # noqa: E501
3131
contact: Optional[ContactResponseFields] = None
32+
additional_properties: Dict[str, Any] = {}
3233
__properties: ClassVar[List[str]] = ["contact"]
3334

3435
model_config = ConfigDict(
@@ -61,8 +62,10 @@ def to_dict(self) -> Dict[str, Any]:
6162
* `None` is only added to the output dict for nullable fields that
6263
were set at model initialization. Other fields with value `None`
6364
are ignored.
65+
* Fields in `self.additional_properties` are added to the output dict.
6466
"""
6567
excluded_fields: Set[str] = set([
68+
"additional_properties",
6669
])
6770

6871
_dict = self.model_dump(
@@ -73,6 +76,11 @@ def to_dict(self) -> Dict[str, Any]:
7376
# override the default output from pydantic by calling `to_dict()` of contact
7477
if self.contact:
7578
_dict['contact'] = self.contact.to_dict()
79+
# puts key-value pairs in additional_properties in the top level
80+
if self.additional_properties is not None:
81+
for _key, _value in self.additional_properties.items():
82+
_dict[_key] = _value
83+
7684
return _dict
7785

7886
@classmethod
@@ -87,6 +95,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
8795
_obj = cls.model_validate({
8896
"contact": ContactResponseFields.from_dict(obj["contact"]) if obj.get("contact") is not None else None
8997
})
98+
# store additional fields in additional_properties
99+
for _key in obj.keys():
100+
if _key not in cls.__properties:
101+
_obj.additional_properties[_key] = obj.get(_key)
102+
90103
return _obj
91104

92105

messente_api/models/contact_fields.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ class ContactFields(BaseModel):
3737
custom2: Optional[StrictStr] = Field(default=None, description="The second custom field")
3838
custom3: Optional[StrictStr] = Field(default=None, description="The third custom field")
3939
custom4: Optional[StrictStr] = Field(default=None, description="The fourth custom field")
40+
additional_properties: Dict[str, Any] = {}
4041
__properties: ClassVar[List[str]] = ["phoneNumber", "email", "firstName", "lastName", "company", "title", "custom", "custom2", "custom3", "custom4"]
4142

4243
model_config = ConfigDict(
@@ -69,15 +70,22 @@ def to_dict(self) -> Dict[str, Any]:
6970
* `None` is only added to the output dict for nullable fields that
7071
were set at model initialization. Other fields with value `None`
7172
are ignored.
73+
* Fields in `self.additional_properties` are added to the output dict.
7274
"""
7375
excluded_fields: Set[str] = set([
76+
"additional_properties",
7477
])
7578

7679
_dict = self.model_dump(
7780
by_alias=True,
7881
exclude=excluded_fields,
7982
exclude_none=True,
8083
)
84+
# puts key-value pairs in additional_properties in the top level
85+
if self.additional_properties is not None:
86+
for _key, _value in self.additional_properties.items():
87+
_dict[_key] = _value
88+
8189
# set to None if email (nullable) is None
8290
# and model_fields_set contains the field
8391
if self.email is None and "email" in self.model_fields_set:
@@ -146,6 +154,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
146154
"custom3": obj.get("custom3"),
147155
"custom4": obj.get("custom4")
148156
})
157+
# store additional fields in additional_properties
158+
for _key in obj.keys():
159+
if _key not in cls.__properties:
160+
_obj.additional_properties[_key] = obj.get(_key)
161+
149162
return _obj
150163

151164

messente_api/models/contact_list_envelope.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ class ContactListEnvelope(BaseModel):
2929
A container for contacts
3030
""" # noqa: E501
3131
contacts: Optional[List[ContactResponseFields]] = Field(default=None, description="An array of contacts")
32+
additional_properties: Dict[str, Any] = {}
3233
__properties: ClassVar[List[str]] = ["contacts"]
3334

3435
model_config = ConfigDict(
@@ -61,8 +62,10 @@ def to_dict(self) -> Dict[str, Any]:
6162
* `None` is only added to the output dict for nullable fields that
6263
were set at model initialization. Other fields with value `None`
6364
are ignored.
65+
* Fields in `self.additional_properties` are added to the output dict.
6466
"""
6567
excluded_fields: Set[str] = set([
68+
"additional_properties",
6669
])
6770

6871
_dict = self.model_dump(
@@ -77,6 +80,11 @@ def to_dict(self) -> Dict[str, Any]:
7780
if _item:
7881
_items.append(_item.to_dict())
7982
_dict['contacts'] = _items
83+
# puts key-value pairs in additional_properties in the top level
84+
if self.additional_properties is not None:
85+
for _key, _value in self.additional_properties.items():
86+
_dict[_key] = _value
87+
8088
return _dict
8189

8290
@classmethod
@@ -91,6 +99,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
9199
_obj = cls.model_validate({
92100
"contacts": [ContactResponseFields.from_dict(_item) for _item in obj["contacts"]] if obj.get("contacts") is not None else None
93101
})
102+
# store additional fields in additional_properties
103+
for _key in obj.keys():
104+
if _key not in cls.__properties:
105+
_obj.additional_properties[_key] = obj.get(_key)
106+
94107
return _obj
95108

96109

messente_api/models/contact_response_fields.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ class ContactResponseFields(BaseModel):
3939
custom3: Optional[StrictStr] = Field(default=None, description="The third custom field")
4040
custom4: Optional[StrictStr] = Field(default=None, description="The fourth custom field")
4141
scheduled_deletion_date: Optional[date] = Field(default=None, description="The date in ISO 8601 format, YYYY-MM-DD, on which the contact is going to be deleted because it has not belonged to a group for 30 days", alias="scheduledDeletionDate")
42+
additional_properties: Dict[str, Any] = {}
4243
__properties: ClassVar[List[str]] = ["phoneNumber", "email", "firstName", "lastName", "company", "title", "custom", "custom2", "custom3", "custom4", "scheduledDeletionDate"]
4344

4445
model_config = ConfigDict(
@@ -71,15 +72,22 @@ def to_dict(self) -> Dict[str, Any]:
7172
* `None` is only added to the output dict for nullable fields that
7273
were set at model initialization. Other fields with value `None`
7374
are ignored.
75+
* Fields in `self.additional_properties` are added to the output dict.
7476
"""
7577
excluded_fields: Set[str] = set([
78+
"additional_properties",
7679
])
7780

7881
_dict = self.model_dump(
7982
by_alias=True,
8083
exclude=excluded_fields,
8184
exclude_none=True,
8285
)
86+
# puts key-value pairs in additional_properties in the top level
87+
if self.additional_properties is not None:
88+
for _key, _value in self.additional_properties.items():
89+
_dict[_key] = _value
90+
8391
# set to None if email (nullable) is None
8492
# and model_fields_set contains the field
8593
if self.email is None and "email" in self.model_fields_set:
@@ -154,6 +162,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
154162
"custom4": obj.get("custom4"),
155163
"scheduledDeletionDate": obj.get("scheduledDeletionDate")
156164
})
165+
# store additional fields in additional_properties
166+
for _key in obj.keys():
167+
if _key not in cls.__properties:
168+
_obj.additional_properties[_key] = obj.get(_key)
169+
157170
return _obj
158171

159172

messente_api/models/contact_update_fields.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ class ContactUpdateFields(BaseModel):
3636
custom2: Optional[StrictStr] = Field(default=None, description="The second custom field")
3737
custom3: Optional[StrictStr] = Field(default=None, description="The third custom field")
3838
custom4: Optional[StrictStr] = Field(default=None, description="The fourth custom field")
39+
additional_properties: Dict[str, Any] = {}
3940
__properties: ClassVar[List[str]] = ["email", "firstName", "lastName", "company", "title", "custom", "custom2", "custom3", "custom4"]
4041

4142
model_config = ConfigDict(
@@ -68,15 +69,22 @@ def to_dict(self) -> Dict[str, Any]:
6869
* `None` is only added to the output dict for nullable fields that
6970
were set at model initialization. Other fields with value `None`
7071
are ignored.
72+
* Fields in `self.additional_properties` are added to the output dict.
7173
"""
7274
excluded_fields: Set[str] = set([
75+
"additional_properties",
7376
])
7477

7578
_dict = self.model_dump(
7679
by_alias=True,
7780
exclude=excluded_fields,
7881
exclude_none=True,
7982
)
83+
# puts key-value pairs in additional_properties in the top level
84+
if self.additional_properties is not None:
85+
for _key, _value in self.additional_properties.items():
86+
_dict[_key] = _value
87+
8088
# set to None if email (nullable) is None
8189
# and model_fields_set contains the field
8290
if self.email is None and "email" in self.model_fields_set:
@@ -144,6 +152,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
144152
"custom3": obj.get("custom3"),
145153
"custom4": obj.get("custom4")
146154
})
155+
# store additional fields in additional_properties
156+
for _key in obj.keys():
157+
if _key not in cls.__properties:
158+
_obj.additional_properties[_key] = obj.get(_key)
159+
147160
return _obj
148161

149162

messente_api/models/delivery_report_response.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ class DeliveryReportResponse(BaseModel):
3131
statuses: List[DeliveryResult] = Field(description="Contains the delivery reports for each channel, ordered by send order")
3232
to: StrictStr = Field(description="Phone number in e.164 format")
3333
omnimessage_id: StrictStr = Field(description="Unique identifier for the omnimessage")
34+
additional_properties: Dict[str, Any] = {}
3435
__properties: ClassVar[List[str]] = ["statuses", "to", "omnimessage_id"]
3536

3637
model_config = ConfigDict(
@@ -63,8 +64,10 @@ def to_dict(self) -> Dict[str, Any]:
6364
* `None` is only added to the output dict for nullable fields that
6465
were set at model initialization. Other fields with value `None`
6566
are ignored.
67+
* Fields in `self.additional_properties` are added to the output dict.
6668
"""
6769
excluded_fields: Set[str] = set([
70+
"additional_properties",
6871
])
6972

7073
_dict = self.model_dump(
@@ -79,6 +82,11 @@ def to_dict(self) -> Dict[str, Any]:
7982
if _item:
8083
_items.append(_item.to_dict())
8184
_dict['statuses'] = _items
85+
# puts key-value pairs in additional_properties in the top level
86+
if self.additional_properties is not None:
87+
for _key, _value in self.additional_properties.items():
88+
_dict[_key] = _value
89+
8290
return _dict
8391

8492
@classmethod
@@ -95,6 +103,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
95103
"to": obj.get("to"),
96104
"omnimessage_id": obj.get("omnimessage_id")
97105
})
106+
# store additional fields in additional_properties
107+
for _key in obj.keys():
108+
if _key not in cls.__properties:
109+
_obj.additional_properties[_key] = obj.get(_key)
110+
98111
return _obj
99112

100113

messente_api/models/delivery_result.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ class DeliveryResult(BaseModel):
4040
timestamp: Optional[datetime] = Field(default=None, description="When this status was received by Omnichannel API")
4141
price_info: Optional[PriceInfo] = None
4242
sender: Optional[StrictStr] = Field(default=None, description="the sender of the message")
43+
additional_properties: Dict[str, Any] = {}
4344
__properties: ClassVar[List[str]] = ["status", "channel", "message_id", "error", "err", "timestamp", "price_info", "sender"]
4445

4546
model_config = ConfigDict(
@@ -72,8 +73,10 @@ def to_dict(self) -> Dict[str, Any]:
7273
* `None` is only added to the output dict for nullable fields that
7374
were set at model initialization. Other fields with value `None`
7475
are ignored.
76+
* Fields in `self.additional_properties` are added to the output dict.
7577
"""
7678
excluded_fields: Set[str] = set([
79+
"additional_properties",
7780
])
7881

7982
_dict = self.model_dump(
@@ -84,6 +87,11 @@ def to_dict(self) -> Dict[str, Any]:
8487
# override the default output from pydantic by calling `to_dict()` of price_info
8588
if self.price_info:
8689
_dict['price_info'] = self.price_info.to_dict()
90+
# puts key-value pairs in additional_properties in the top level
91+
if self.additional_properties is not None:
92+
for _key, _value in self.additional_properties.items():
93+
_dict[_key] = _value
94+
8795
# set to None if error (nullable) is None
8896
# and model_fields_set contains the field
8997
if self.error is None and "error" in self.model_fields_set:
@@ -110,6 +118,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
110118
"price_info": PriceInfo.from_dict(obj["price_info"]) if obj.get("price_info") is not None else None,
111119
"sender": obj.get("sender")
112120
})
121+
# store additional fields in additional_properties
122+
for _key in obj.keys():
123+
if _key not in cls.__properties:
124+
_obj.additional_properties[_key] = obj.get(_key)
125+
113126
return _obj
114127

115128

0 commit comments

Comments
 (0)