bandwidth-sdk 9.2.0 → 9.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 063a9c96b344ab96b6b6717599921eed06e2e2cb8fffb2081b6e88da34d0883e
4
- data.tar.gz: 5fbba072d5895a00208b1ae54451f05f01fc7b34c5eff381b34cd286bba65363
3
+ metadata.gz: 714d17e79fcabfbf641b2953be3d87f4661957c4ce6452a9add5fba71f7e06fc
4
+ data.tar.gz: 910e102f0b21b52e4ab8cacb474595a95960f8d5db93689c41261d775175bc86
5
5
  SHA512:
6
- metadata.gz: '08f682f87864b61e67fed4badf7469d2e18ce260a0c592131ae5964e133d48418f10806baddaad4d636fa9d5b8d0436d7d4b9b9dc1a1f8ed12b56991932ac71d'
7
- data.tar.gz: f047132f1527a0f4e4e794d6cfd4e1dee6b6adc732ca8bce596c35f394de77636719a154eb45f2a4144a23db596b4263e330a228d5d81d7f942ae584c759edbc
6
+ metadata.gz: 4bd7b9cb0599cbe42a6f414b2ba26b5b3aa3267f8b27be6748e6f50e0f53e0eb382860abcbedf3330e0aaf6c5c4994ee08986c5df2b898a021c84e8d7f7407a6
7
+ data.tar.gz: 875c6add47513bdd45c8db63c614f5ea58c030370a1c5265840eb0a8a1c652487ff0d0752d853fbdf2a2f3fb644b6afa87e4ecc98f8b70a168aca8f9321a2799
@@ -86,6 +86,11 @@ module Bandwidth
86
86
  # @return [String]
87
87
  attr_accessor :fallback_password
88
88
 
89
+ # When an answering machine is detected, the amount of silence (in seconds)
90
+ # before assuming the message has finished playing.
91
+ # return [Float]
92
+ attr_accessor :machine_speech_end_threshold
93
+
89
94
  # A mapping from model property names to API property names.
90
95
  def self.names
91
96
  @_hash = {} if @_hash.nil?
@@ -103,6 +108,7 @@ module Bandwidth
103
108
  @_hash['password'] = 'password'
104
109
  @_hash['fallback_username'] = 'fallbackUsername'
105
110
  @_hash['fallback_password'] = 'fallbackPassword'
111
+ @_hash['machine_speech_end_threshold'] = 'machineSpeechEndThreshold'
106
112
  @_hash
107
113
  end
108
114
 
@@ -123,6 +129,7 @@ module Bandwidth
123
129
  password
124
130
  fallback_username
125
131
  fallback_password
132
+ machine_speech_end_threshold
126
133
  ]
127
134
  end
128
135
 
@@ -137,6 +144,7 @@ module Bandwidth
137
144
  password
138
145
  fallback_username
139
146
  fallback_password
147
+ machine_speech_end_threshold
140
148
  ]
141
149
  end
142
150
 
@@ -153,7 +161,8 @@ module Bandwidth
153
161
  username = nil,
154
162
  password = nil,
155
163
  fallback_username = nil,
156
- fallback_password = nil)
164
+ fallback_password = nil,
165
+ machine_speech_end_threshold = nil)
157
166
  @mode = mode unless mode == SKIP
158
167
  @detection_timeout = detection_timeout unless detection_timeout == SKIP
159
168
  @silence_timeout = silence_timeout unless silence_timeout == SKIP
@@ -168,6 +177,7 @@ module Bandwidth
168
177
  @password = password unless password == SKIP
169
178
  @fallback_username = fallback_username unless fallback_username == SKIP
170
179
  @fallback_password = fallback_password unless fallback_password == SKIP
180
+ @machine_speech_end_threshold = machine_speech_end_threshold unless machine_speech_end_threshold == SKIP
171
181
  end
172
182
 
173
183
  # Creates an instance of the object from a hash.
@@ -197,6 +207,8 @@ module Bandwidth
197
207
  hash.key?('fallbackUsername') ? hash['fallbackUsername'] : SKIP
198
208
  fallback_password =
199
209
  hash.key?('fallbackPassword') ? hash['fallbackPassword'] : SKIP
210
+ machine_speech_end_threshold =
211
+ hash.key?('machineSpeechEndThreshold') ? hash['machineSpeechEndThreshold'] : SKIP
200
212
 
201
213
  # Create object from extracted values.
202
214
  MachineDetectionConfiguration.new(mode,
@@ -212,7 +224,8 @@ module Bandwidth
212
224
  username,
213
225
  password,
214
226
  fallback_username,
215
- fallback_password)
227
+ fallback_password,
228
+ machine_speech_end_threshold)
216
229
  end
217
230
  end
218
231
  end
@@ -128,6 +128,7 @@ class IntegrationTest < Test::Unit::TestCase
128
128
  machine_detection.delay_result = true
129
129
  machine_detection.callback_url = BASE_CALLBACK_URL + '/machineDetection'
130
130
  machine_detection.callback_method = 'POST'
131
+ machine_detection.machine_speech_end_threshold = 3.2
131
132
 
132
133
  body = CreateCallRequest.new
133
134
  body.from = BW_NUMBER
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bandwidth-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 9.2.0
4
+ version: 9.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bandwidth
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-03-29 00:00:00.000000000 Z
11
+ date: 2022-04-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: logging