Skip to content

Commit ab79d2f

Browse files
committed
update parent call id
1 parent d8eb26b commit ab79d2f

File tree

4 files changed

+29
-2
lines changed

4 files changed

+29
-2
lines changed

docs/InboundCallWebhook.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Name | Type | Description | Notes
1515
**direction** | [**CallDirection**](CallDirection.md) | | [optional]
1616
**conference_id** | **str** | This is only populated if request pertains to a Conference. Otherwise, it is set to null. | [optional]
1717
**queue_id** | **str** | This is only populated if the request pertains to a Queue. Otherwise, it is set to null. | [optional]
18-
**parent_call_id** | **object** | | [optional]
18+
**parent_call_id** | **str** | | [optional]
1919

2020
## Example
2121

freeclimb/models/inbound_call_webhook.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class InboundCallWebhook(Webhook, populate_by_name=True, validate_assignment=Tru
4040
direction: Optional[CallDirection] = None
4141
conference_id: Optional[StrictStr] = Field(default=None, description="This is only populated if request pertains to a Conference. Otherwise, it is set to null.", alias="conferenceId")
4242
queue_id: Optional[StrictStr] = Field(default=None, description="This is only populated if the request pertains to a Queue. Otherwise, it is set to null.", alias="queueId")
43-
parent_call_id: Optional[Any] = Field(default=None, alias="parentCallId")
43+
parent_call_id: Optional[StrictStr] = Field(default=None, alias="parentCallId")
4444

4545
__properties: ClassVar[List[str]] = ["requestType", "callId", "accountId", "from", "to", "callStatus", "direction", "conferenceId", "queueId", "parentCallId"]
4646

openapi.json

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,12 @@
269269
{ "enum": "inProgress", "varname": "IN_PROGRESS"},
270270
{ "enum": "terminated", "varname": "TERMINATED" }
271271
],
272+
"x-php-enum-mapping": [
273+
{ "enum": "empty", "varname": "EMPTY"},
274+
{ "enum": "populated", "varname": "POPULATED"},
275+
{ "enum": "inProgress", "varname": "IN_PROGRESS"},
276+
{ "enum": "terminated", "varname": "TERMINATED" }
277+
],
272278
"x-enum": true,
273279
"description": "The status of the Conference. One of: creating, empty, populated, inProgress, or terminated."
274280
},
@@ -495,6 +501,19 @@
495501
"DELETED",
496502
"UNKNOWN"
497503
],
504+
"x-php-enum-mapping": [
505+
{ "enum": "new", "varname": "NEW"},
506+
{ "enum": "queued", "varname": "QUEUED"},
507+
{ "enum": "rejected", "varname": "REJECTED"},
508+
{ "enum": "sending", "varname": "SENDING"},
509+
{ "enum": "sent", "varname": "SENT"},
510+
{ "enum": "failed", "varname": "FAILED"},
511+
{ "enum": "received", "varname": "RECEIVED"},
512+
{ "enum": "undelivered","varname": "UNDELIVERED"},
513+
{ "enum": "expired", "varname": "EXPIRED"},
514+
{ "enum": "deleted", "varname": "DELETED"},
515+
{ "enum": "unknown", "varname": "UNKNOWN" }
516+
],
498517
"x-enum": true
499518
},
500519
"PlayBeep": {
@@ -656,6 +675,10 @@
656675
"type": "string",
657676
"enum": ["empty", "terminated"],
658677
"x-enum-varnames": ["EMPTY", "TERMINATED"],
678+
"x-php-enum-mapping": [
679+
{ "enum": "empty", "varname": "EMPTY"},
680+
{ "enum": "terminated", "varname": "TERMINATED" }
681+
],
659682
"x-enum": true,
660683
"description": "New status of the conference. Valid values: `empty` or `terminated`. For more information, see **Status Parameter** below.**"
661684
},
@@ -890,6 +913,7 @@
890913
"properties": {
891914
"command": {
892915
"x-is-no-property": true,
916+
"x-percl-command-base": true,
893917
"type": "string",
894918
"description": "Name of PerCL Command (this is automatically derived from mapping configuration and should not be manually supplied in any arguments)"
895919
}
@@ -1577,6 +1601,7 @@
15771601
"nullable": true
15781602
},
15791603
"parentCallId": {
1604+
"type": "string",
15801605
"nullable": true
15811606
}
15821607
}

test/models/test_inbound_call_webhook.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,8 @@ def test_queue_id(self):
8181
assert self.model.queue_id == "TEST_STRING"
8282
def test_parent_call_id(self):
8383
"""Test InboundCallWebhook.parent_call_id"""
84+
self.model.parent_call_id = "TEST_STRING"
85+
assert self.model.parent_call_id == "TEST_STRING"
8486

8587
def test_deserialize(self):
8688
payload = '{ "requestType": "inboundCall" }'

0 commit comments

Comments
 (0)