Skip to content

Commit d4618a0

Browse files
committed
Remove ReferCompleteCallback model, keep only Bxml::Refer verb
The referComplete callback model will land later via a separate api-specs-driven PR once VAPI-3440 merges. This also removes the top-level Bandwidth::Refer model (and its ReferCompleteMethodEnum/ ReferCallStatusEnum helpers), which duplicated Bxml::Refer at the openapi-generator layer and had no equivalent for any other BXML verb (e.g. Transfer has no top-level Bandwidth::Transfer model). Adds a spec for Bxml::Refer covering construction with a bare SipUri and correct BXML rendering.
1 parent 9630fe1 commit d4618a0

12 files changed

Lines changed: 55 additions & 806 deletions

‎lib/bandwidth-sdk.rb‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -174,10 +174,6 @@
174174
require 'bandwidth-sdk/models/recording_transcriptions'
175175
require 'bandwidth-sdk/models/redirect_callback'
176176
require 'bandwidth-sdk/models/redirect_method_enum'
177-
require 'bandwidth-sdk/models/refer'
178-
require 'bandwidth-sdk/models/refer_call_status_enum'
179-
require 'bandwidth-sdk/models/refer_complete_callback'
180-
require 'bandwidth-sdk/models/refer_complete_method_enum'
181177
require 'bandwidth-sdk/models/sip_connection_metadata'
182178
require 'bandwidth-sdk/models/sip_credentials'
183179
require 'bandwidth-sdk/models/sip_uri'

‎lib/bandwidth-sdk/models/bxml/verbs/refer.rb‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
module Bandwidth
22
module Bxml
33
class Refer < Bandwidth::Bxml::NestableVerb
4+
# Initializer
5+
# @param sip_uri [SipUri] The SIP URI to REFER the call to. Uses the same SipUri verb shared with Transfer.
6+
# @param attributes [Hash] The attributes to add to the element. Defaults to an empty hash.
47
def initialize(sip_uri, attributes = {})
58
super('Refer', nil, [sip_uri], attributes)
69
@attribute_map = {

‎lib/bandwidth-sdk/models/bxml/verbs/sip_uri.rb‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
module Bandwidth
22
module Bxml
33
class SipUri < Bandwidth::Bxml::Verb
4+
# Shared nested verb used by both Transfer and Refer to specify a SIP URI destination.
5+
#
46
# Initializer
5-
# @param uri [String] A SIP URI to transfer the call to (e.g. sip:user@server.com)
7+
# @param uri [String] A SIP URI to transfer or refer the call to (e.g. sip:user@server.com)
68
# @param attributes [Hash] The attributes to add to the element. Defaults to an empty hash.
79
def initialize(uri, attributes = {})
810
super('SipUri', uri, attributes)

‎lib/bandwidth-sdk/models/refer.rb‎

Lines changed: 0 additions & 101 deletions
This file was deleted.

‎lib/bandwidth-sdk/models/refer_call_status_enum.rb‎

Lines changed: 0 additions & 37 deletions
This file was deleted.

0 commit comments

Comments
 (0)