Skip to content

Commit

Permalink
Update parent call id
Browse files Browse the repository at this point in the history
  • Loading branch information
ngarg-vail committed Dec 13, 2024
1 parent 5a8ff5d commit d853a31
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/InboundCallWebhook.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
| **direction** | [**CallDirection**](CallDirection.md) | | [optional] |
| **conference_id** | **String** | This is only populated if request pertains to a Conference. Otherwise, it is set to null. | [optional] |
| **queue_id** | **String** | This is only populated if the request pertains to a Queue. Otherwise, it is set to null. | [optional] |
| **parent_call_id** | **Object** | | [optional] |
| **parent_call_id** | **String** | | [optional] |

## Example

Expand Down
2 changes: 1 addition & 1 deletion lib/freeclimb/models/inbound_call_webhook.rb
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def self.openapi_types
:'direction' => :'CallDirection',
:'conference_id' => :'String',
:'queue_id' => :'String',
:'parent_call_id' => :'Object'
:'parent_call_id' => :'String'
}
end

Expand Down
25 changes: 25 additions & 0 deletions openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,12 @@
{ "enum": "inProgress", "varname": "IN_PROGRESS"},
{ "enum": "terminated", "varname": "TERMINATED" }
],
"x-php-enum-mapping": [
{ "enum": "empty", "varname": "EMPTY"},
{ "enum": "populated", "varname": "POPULATED"},
{ "enum": "inProgress", "varname": "IN_PROGRESS"},
{ "enum": "terminated", "varname": "TERMINATED" }
],
"x-enum": true,
"description": "The status of the Conference. One of: creating, empty, populated, inProgress, or terminated."
},
Expand Down Expand Up @@ -495,6 +501,19 @@
"DELETED",
"UNKNOWN"
],
"x-php-enum-mapping": [
{ "enum": "new", "varname": "NEW"},
{ "enum": "queued", "varname": "QUEUED"},
{ "enum": "rejected", "varname": "REJECTED"},
{ "enum": "sending", "varname": "SENDING"},
{ "enum": "sent", "varname": "SENT"},
{ "enum": "failed", "varname": "FAILED"},
{ "enum": "received", "varname": "RECEIVED"},
{ "enum": "undelivered","varname": "UNDELIVERED"},
{ "enum": "expired", "varname": "EXPIRED"},
{ "enum": "deleted", "varname": "DELETED"},
{ "enum": "unknown", "varname": "UNKNOWN" }
],
"x-enum": true
},
"PlayBeep": {
Expand Down Expand Up @@ -656,6 +675,10 @@
"type": "string",
"enum": ["empty", "terminated"],
"x-enum-varnames": ["EMPTY", "TERMINATED"],
"x-php-enum-mapping": [
{ "enum": "empty", "varname": "EMPTY"},
{ "enum": "terminated", "varname": "TERMINATED" }
],
"x-enum": true,
"description": "New status of the conference. Valid values: `empty` or `terminated`. For more information, see **Status Parameter** below.**"
},
Expand Down Expand Up @@ -890,6 +913,7 @@
"properties": {
"command": {
"x-is-no-property": true,
"x-percl-command-base": true,
"type": "string",
"description": "Name of PerCL Command (this is automatically derived from mapping configuration and should not be manually supplied in any arguments)"
}
Expand Down Expand Up @@ -1577,6 +1601,7 @@
"nullable": true
},
"parentCallId": {
"type": "string",
"nullable": true
}
}
Expand Down
21 changes: 20 additions & 1 deletion spec/models/inbound_call_webhook_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,8 @@

describe 'test attribute "parent_call_id"' do
it 'should work' do
instance.parent_call_id = "TEST_STRING"
expect(instance.parent_call_id).to eq("TEST_STRING")

end
end
Expand Down Expand Up @@ -167,6 +169,7 @@

queue_id: "TS",

parent_call_id: "TS",

)}.not_to raise_error()
end
Expand All @@ -192,6 +195,7 @@

queue_id: "TS",

parent_call_id: "TS",

invalid_attribute: true
)}.to raise_error(ArgumentError)
Expand All @@ -218,6 +222,7 @@

queue_id: "TS",

parent_call_id: "TS",

invalid_attribute: true
)}.to raise_error(ArgumentError)
Expand Down Expand Up @@ -247,6 +252,7 @@

queue_id: "TS",

parent_call_id: "TS",

)
expect(instance.valid?).to eq(true)
Expand Down Expand Up @@ -286,6 +292,7 @@

queue_id: "TS",

parent_call_id: "TS",

)
instance_2 = Freeclimb::InboundCallWebhook.new(
Expand All @@ -309,6 +316,7 @@

queue_id: "TS",

parent_call_id: "TS",

)
expect(instance_1.eql?(instance_2)).to eq(true)
Expand Down Expand Up @@ -336,6 +344,7 @@

queue_id: "TS",

parent_call_id: "TS",

)
instance_2 = Freeclimb::InboundCallWebhook.new(
Expand All @@ -359,6 +368,7 @@

queue_id: "ST",

parent_call_id: "ST",

)
expect(instance_1.eql?(instance_2)).to eq(false)
Expand Down Expand Up @@ -388,6 +398,7 @@

queue_id: "TS",

parent_call_id: "TS",

)
expect(instance.hash).to be_a_kind_of(Integer)
Expand Down Expand Up @@ -417,6 +428,7 @@

queue_id: "TS",

parent_call_id: "TS",

)
instance_2 = Freeclimb::InboundCallWebhook.new(
Expand All @@ -440,6 +452,7 @@

queue_id: "TS",

parent_call_id: "TS",

)

Expand Down Expand Up @@ -469,6 +482,7 @@

queue_id: "TS",

parent_call_id: "TS",

)
it 'deserializes the data of request_type' do
Expand All @@ -493,7 +507,7 @@
expect(instance._deserialize("String", instance.queue_id)).to be_a_kind_of(String)
end
it 'deserializes the data of parent_call_id' do
expect(instance._deserialize("Object", instance.parent_call_id)).to be_a_kind_of(Object)
expect(instance._deserialize("String", instance.parent_call_id)).to be_a_kind_of(String)
end
end

Expand All @@ -520,6 +534,7 @@

queue_id: "TS",

parent_call_id: "TS",

)
expect(instance.to_s).to eq(instance.to_hash.to_s)
Expand Down Expand Up @@ -549,6 +564,7 @@

queue_id: "TS",

parent_call_id: "TS",

)
expect(instance.to_hash).to be_a_kind_of(Hash)
Expand Down Expand Up @@ -576,6 +592,7 @@

queue_id: "TS",

parent_call_id: "TS",

)
instance_2 = Freeclimb::InboundCallWebhook.new(
Expand All @@ -599,6 +616,7 @@

queue_id: "TS",

parent_call_id: "TS",

)
expect(instance_1.to_hash).to eq(instance_2.to_hash)
Expand Down Expand Up @@ -636,6 +654,7 @@
queue_id: "TS",


parent_call_id: "TS",

)
it 'returns request_type in the form of hash' do
Expand Down

0 comments on commit d853a31

Please sign in to comment.