diff --git a/docs/InboundCallWebhook.md b/docs/InboundCallWebhook.md index d865be8..f08ab10 100644 --- a/docs/InboundCallWebhook.md +++ b/docs/InboundCallWebhook.md @@ -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 diff --git a/lib/freeclimb/models/inbound_call_webhook.rb b/lib/freeclimb/models/inbound_call_webhook.rb index b709d4c..782cdef 100644 --- a/lib/freeclimb/models/inbound_call_webhook.rb +++ b/lib/freeclimb/models/inbound_call_webhook.rb @@ -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 diff --git a/openapi.json b/openapi.json index 5a64462..a1e1fe1 100644 --- a/openapi.json +++ b/openapi.json @@ -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." }, @@ -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": { @@ -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.**" }, @@ -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)" } @@ -1577,6 +1601,7 @@ "nullable": true }, "parentCallId": { + "type": "string", "nullable": true } } diff --git a/spec/models/inbound_call_webhook_spec.rb b/spec/models/inbound_call_webhook_spec.rb index 9e1bf14..3463e7d 100644 --- a/spec/models/inbound_call_webhook_spec.rb +++ b/spec/models/inbound_call_webhook_spec.rb @@ -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 @@ -167,6 +169,7 @@ queue_id: "TS", + parent_call_id: "TS", )}.not_to raise_error() end @@ -192,6 +195,7 @@ queue_id: "TS", + parent_call_id: "TS", invalid_attribute: true )}.to raise_error(ArgumentError) @@ -218,6 +222,7 @@ queue_id: "TS", + parent_call_id: "TS", invalid_attribute: true )}.to raise_error(ArgumentError) @@ -247,6 +252,7 @@ queue_id: "TS", + parent_call_id: "TS", ) expect(instance.valid?).to eq(true) @@ -286,6 +292,7 @@ queue_id: "TS", + parent_call_id: "TS", ) instance_2 = Freeclimb::InboundCallWebhook.new( @@ -309,6 +316,7 @@ queue_id: "TS", + parent_call_id: "TS", ) expect(instance_1.eql?(instance_2)).to eq(true) @@ -336,6 +344,7 @@ queue_id: "TS", + parent_call_id: "TS", ) instance_2 = Freeclimb::InboundCallWebhook.new( @@ -359,6 +368,7 @@ queue_id: "ST", + parent_call_id: "ST", ) expect(instance_1.eql?(instance_2)).to eq(false) @@ -388,6 +398,7 @@ queue_id: "TS", + parent_call_id: "TS", ) expect(instance.hash).to be_a_kind_of(Integer) @@ -417,6 +428,7 @@ queue_id: "TS", + parent_call_id: "TS", ) instance_2 = Freeclimb::InboundCallWebhook.new( @@ -440,6 +452,7 @@ queue_id: "TS", + parent_call_id: "TS", ) @@ -469,6 +482,7 @@ queue_id: "TS", + parent_call_id: "TS", ) it 'deserializes the data of request_type' do @@ -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 @@ -520,6 +534,7 @@ queue_id: "TS", + parent_call_id: "TS", ) expect(instance.to_s).to eq(instance.to_hash.to_s) @@ -549,6 +564,7 @@ queue_id: "TS", + parent_call_id: "TS", ) expect(instance.to_hash).to be_a_kind_of(Hash) @@ -576,6 +592,7 @@ queue_id: "TS", + parent_call_id: "TS", ) instance_2 = Freeclimb::InboundCallWebhook.new( @@ -599,6 +616,7 @@ queue_id: "TS", + parent_call_id: "TS", ) expect(instance_1.to_hash).to eq(instance_2.to_hash) @@ -636,6 +654,7 @@ queue_id: "TS", + parent_call_id: "TS", ) it 'returns request_type in the form of hash' do