Skip to content

Commit 755e9b6

Browse files
committed
Generate SDK with OpenAPI Generator Version
1 parent e4b3a69 commit 755e9b6

File tree

5 files changed

+18
-10
lines changed

5 files changed

+18
-10
lines changed

bandwidth.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2494,6 +2494,14 @@ components:
24942494
description: Optional error code, applicable only when type is `message-failed`.
24952495
nullable: true
24962496
example: 4405
2497+
carrierName:
2498+
type: string
2499+
description: >-
2500+
The name of the Authorized Message Provider (AMP) that handled this
2501+
message. In the US, this is the carrier that the message was sent
2502+
to.
2503+
nullable: true
2504+
example: AT&T
24972505
required:
24982506
- time
24992507
- type
@@ -5849,8 +5857,6 @@ components:
58495857
- VERIFIED
58505858
- UNVERIFIED
58515859
- PENDING
5852-
- PARTIALLY_VERIFIED
5853-
- INVALID_STATUS
58545860
example: VERIFIED
58555861
sharedSecretKey:
58565862
description: >-

bandwidth/models/message_callback.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,9 @@ class MessageCallback(BaseModel):
3636
description: StrictStr = Field(description="A detailed description of the event described by the callback.")
3737
message: MessageCallbackMessage
3838
error_code: Optional[StrictInt] = Field(default=None, description="Optional error code, applicable only when type is `message-failed`.", alias="errorCode")
39+
carrier_name: Optional[StrictStr] = Field(default=None, description="The name of the Authorized Message Provider (AMP) that handled this message. In the US, this is the carrier that the message was sent to.", alias="carrierName")
3940
additional_properties: Dict[str, Any] = {}
40-
__properties: ClassVar[List[str]] = ["time", "type", "to", "description", "message", "errorCode"]
41+
__properties: ClassVar[List[str]] = ["time", "type", "to", "description", "message", "errorCode", "carrierName"]
4142

4243
model_config = ConfigDict(
4344
populate_by_name=True,
@@ -93,6 +94,11 @@ def to_dict(self) -> Dict[str, Any]:
9394
if self.error_code is None and "error_code" in self.model_fields_set:
9495
_dict['errorCode'] = None
9596

97+
# set to None if carrier_name (nullable) is None
98+
# and model_fields_set contains the field
99+
if self.carrier_name is None and "carrier_name" in self.model_fields_set:
100+
_dict['carrierName'] = None
101+
96102
return _dict
97103

98104
@classmethod
@@ -110,7 +116,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
110116
"to": obj.get("to"),
111117
"description": obj.get("description"),
112118
"message": MessageCallbackMessage.from_dict(obj["message"]) if obj.get("message") is not None else None,
113-
"errorCode": obj.get("errorCode")
119+
"errorCode": obj.get("errorCode"),
120+
"carrierName": obj.get("carrierName")
114121
})
115122
# store additional fields in additional_properties
116123
for _key in obj.keys():

bandwidth/models/tfv_status_enum.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@ class TfvStatusEnum(str, Enum):
3030
VERIFIED = 'VERIFIED'
3131
UNVERIFIED = 'UNVERIFIED'
3232
PENDING = 'PENDING'
33-
PARTIALLY_VERIFIED = 'PARTIALLY_VERIFIED'
34-
INVALID_STATUS = 'INVALID_STATUS'
3533

3634
@classmethod
3735
def from_json(cls, json_str: str) -> Self:

docs/MessageCallback.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ Name | Type | Description | Notes
1212
**description** | **str** | A detailed description of the event described by the callback. |
1313
**message** | [**MessageCallbackMessage**](MessageCallbackMessage.md) | |
1414
**error_code** | **int** | Optional error code, applicable only when type is `message-failed`. | [optional]
15+
**carrier_name** | **str** | The name of the Authorized Message Provider (AMP) that handled this message. In the US, this is the carrier that the message was sent to. | [optional]
1516

1617
## Example
1718

docs/TfvStatusEnum.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,6 @@
99

1010
* `PENDING` (value: `'PENDING'`)
1111

12-
* `PARTIALLY_VERIFIED` (value: `'PARTIALLY_VERIFIED'`)
13-
14-
* `INVALID_STATUS` (value: `'INVALID_STATUS'`)
15-
1612
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
1713

1814

0 commit comments

Comments
 (0)