diff --git a/lib/bandwidth-sdk/models/bxml/verbs/stop_stream.rb b/lib/bandwidth-sdk/models/bxml/verbs/stop_stream.rb index 770420ad..576fb9ed 100644 --- a/lib/bandwidth-sdk/models/bxml/verbs/stop_stream.rb +++ b/lib/bandwidth-sdk/models/bxml/verbs/stop_stream.rb @@ -7,7 +7,8 @@ def initialize(attributes = {}) super('StopStream', nil, attributes) @attribute_map = { - name: 'name' # [String]: The name of the stream to stop. This is either the user selected name when sending the verb, or the system generated name returned in the Media Stream Started webhook if was sent with no name attribute. + name: 'name', # [String]: The name of the stream to stop. This is either the user selected name when sending the verb, or the system generated name returned in the Media Stream Started webhook if was sent with no name attribute. + wait: 'wait' # Optional [Boolean]: If true, the BXML interpreter will wait for the stream to stop before processing the next verb. } end end diff --git a/spec/unit/models/bxml/verbs/stop_stream_spec.rb b/spec/unit/models/bxml/verbs/stop_stream_spec.rb index 9d5f9a7c..eb90d736 100644 --- a/spec/unit/models/bxml/verbs/stop_stream_spec.rb +++ b/spec/unit/models/bxml/verbs/stop_stream_spec.rb @@ -2,13 +2,15 @@ describe 'Bandwidth::Bxml::StopStream' do let(:initial_attributes) { { - name: 'initial_name' + name: 'initial_name', + wait: true } } let(:new_attributes) { { - name: 'new_name' + name: 'new_name', + wait: false } } @@ -21,13 +23,13 @@ end it 'tests the to_bxml method of the StopStream instance' do - expected = "\n\n" + expected = "\n\n" expect(instance.to_bxml).to eq(expected) end it 'tests the set_attributes method of the StopStream instance' do instance.set_attributes(new_attributes) - expected = "\n\n" + expected = "\n\n" expect(instance.to_bxml).to eq(expected) end end