From fea403e40c29b093e733c5356ee33864bde28b59 Mon Sep 17 00:00:00 2001 From: ckoegel Date: Tue, 2 Sep 2025 16:52:09 -0400 Subject: [PATCH] SWI-8574 Add `wait` to `StopStream` --- lib/bandwidth-sdk/models/bxml/verbs/stop_stream.rb | 3 ++- spec/unit/models/bxml/verbs/stop_stream_spec.rb | 10 ++++++---- 2 files changed, 8 insertions(+), 5 deletions(-) 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