freeclimb 4.5.2 → 4.6.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (183) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +20 -0
  3. data/Gemfile.lock +1 -1
  4. data/README.md +15 -7
  5. data/docs/AddToConference.md +0 -2
  6. data/docs/AddToConferenceAllOf.md +0 -2
  7. data/docs/CreateWebRTCToken.md +22 -0
  8. data/docs/DefaultApi.md +303 -7
  9. data/docs/GetDigits.md +1 -1
  10. data/docs/GetDigitsAllOf.md +1 -1
  11. data/docs/IncomingNumberResult.md +3 -1
  12. data/docs/IncomingNumberResultAllOf.md +3 -1
  13. data/docs/MessageRequest.md +2 -2
  14. data/docs/MessageRequestAllOf.md +2 -2
  15. data/docs/MessageResult.md +3 -1
  16. data/docs/MessageResultAllOf.md +3 -1
  17. data/docs/Play.md +0 -2
  18. data/docs/PlayAllOf.md +0 -2
  19. data/docs/RemoveFromConference.md +1 -4
  20. data/docs/SMSTenDLCCampaign.md +10 -0
  21. data/docs/SMSTollFreeCampaign.md +30 -0
  22. data/docs/SMSTollFreeCampaignsListResult.md +32 -0
  23. data/docs/SMSTollFreeCampaignsListResultAllOf.md +18 -0
  24. data/docs/Say.md +0 -2
  25. data/docs/SayAllOf.md +0 -2
  26. data/docs/SetListen.md +0 -2
  27. data/docs/SetListenAllOf.md +0 -2
  28. data/docs/SetTalk.md +0 -2
  29. data/docs/SetTalkAllOf.md +0 -2
  30. data/docs/TFN.md +18 -0
  31. data/docs/TerminateConference.md +1 -4
  32. data/docs/TranscribeUtterance.md +1 -1
  33. data/docs/TranscribeUtteranceAllOf.md +28 -0
  34. data/docs/TranscribeUtteranceAllOfRecord.md +22 -0
  35. data/lib/freeclimb/api/default_api.rb +262 -7
  36. data/lib/freeclimb/models/account_request.rb +0 -2
  37. data/lib/freeclimb/models/account_result.rb +0 -6
  38. data/lib/freeclimb/models/add_to_conference.rb +1 -29
  39. data/lib/freeclimb/models/add_to_conference_all_of.rb +1 -29
  40. data/lib/freeclimb/models/application_result.rb +0 -6
  41. data/lib/freeclimb/models/buy_incoming_number_request.rb +0 -4
  42. data/lib/freeclimb/models/call_result.rb +0 -6
  43. data/lib/freeclimb/models/conference_participant_result.rb +0 -6
  44. data/lib/freeclimb/models/conference_result.rb +0 -6
  45. data/lib/freeclimb/models/create_conference.rb +0 -8
  46. data/lib/freeclimb/models/create_conference_all_of.rb +0 -8
  47. data/lib/freeclimb/models/create_conference_request.rb +0 -6
  48. data/lib/freeclimb/models/create_web_rtc_token.rb +274 -0
  49. data/lib/freeclimb/models/dequeue.rb +1 -0
  50. data/lib/freeclimb/models/enqueue.rb +0 -6
  51. data/lib/freeclimb/models/enqueue_all_of.rb +0 -6
  52. data/lib/freeclimb/models/get_digits.rb +1 -17
  53. data/lib/freeclimb/models/get_digits_all_of.rb +1 -17
  54. data/lib/freeclimb/models/get_speech.rb +0 -22
  55. data/lib/freeclimb/models/get_speech_all_of.rb +0 -22
  56. data/lib/freeclimb/models/incoming_number_request.rb +0 -2
  57. data/lib/freeclimb/models/incoming_number_result.rb +14 -13
  58. data/lib/freeclimb/models/incoming_number_result_all_of.rb +14 -5
  59. data/lib/freeclimb/models/make_call_request.rb +0 -18
  60. data/lib/freeclimb/models/message_request.rb +10 -24
  61. data/lib/freeclimb/models/message_request_all_of.rb +10 -16
  62. data/lib/freeclimb/models/message_result.rb +17 -11
  63. data/lib/freeclimb/models/message_result_all_of.rb +17 -5
  64. data/lib/freeclimb/models/mutable_resource_model.rb +0 -6
  65. data/lib/freeclimb/models/out_dial.rb +0 -18
  66. data/lib/freeclimb/models/out_dial_all_of.rb +0 -18
  67. data/lib/freeclimb/models/park.rb +0 -4
  68. data/lib/freeclimb/models/park_all_of.rb +0 -4
  69. data/lib/freeclimb/models/play.rb +1 -17
  70. data/lib/freeclimb/models/play_all_of.rb +1 -17
  71. data/lib/freeclimb/models/queue_request.rb +0 -2
  72. data/lib/freeclimb/models/queue_result.rb +0 -6
  73. data/lib/freeclimb/models/record_utterance.rb +0 -12
  74. data/lib/freeclimb/models/record_utterance_all_of.rb +0 -12
  75. data/lib/freeclimb/models/recording_result.rb +0 -6
  76. data/lib/freeclimb/models/remove_from_conference.rb +4 -23
  77. data/lib/freeclimb/models/say.rb +1 -19
  78. data/lib/freeclimb/models/say_all_of.rb +1 -19
  79. data/lib/freeclimb/models/send_digits.rb +0 -4
  80. data/lib/freeclimb/models/send_digits_all_of.rb +0 -4
  81. data/lib/freeclimb/models/set_listen.rb +2 -18
  82. data/lib/freeclimb/models/set_listen_all_of.rb +2 -18
  83. data/lib/freeclimb/models/set_talk.rb +2 -18
  84. data/lib/freeclimb/models/set_talk_all_of.rb +2 -18
  85. data/lib/freeclimb/models/sms.rb +0 -6
  86. data/lib/freeclimb/models/sms_all_of.rb +0 -6
  87. data/lib/freeclimb/models/sms_ten_dlc_brand.rb +0 -60
  88. data/lib/freeclimb/models/sms_ten_dlc_campaign.rb +121 -41
  89. data/lib/freeclimb/models/sms_ten_dlc_partner_campaign.rb +0 -44
  90. data/lib/freeclimb/models/sms_ten_dlc_partner_campaign_brand.rb +0 -20
  91. data/lib/freeclimb/models/sms_toll_free_campaign.rb +337 -0
  92. data/lib/freeclimb/models/sms_toll_free_campaigns_list_result.rb +311 -0
  93. data/lib/freeclimb/models/{remove_from_conference_all_of.rb → sms_toll_free_campaigns_list_result_all_of.rb} +14 -16
  94. data/lib/freeclimb/models/start_record_call.rb +1 -0
  95. data/lib/freeclimb/models/terminate_conference.rb +4 -23
  96. data/lib/freeclimb/models/{terminate_conference_all_of.rb → tfn.rb} +15 -14
  97. data/lib/freeclimb/models/transcribe_utterance.rb +11 -16
  98. data/lib/freeclimb/models/transcribe_utterance_all_of.rb +281 -0
  99. data/lib/freeclimb/models/{transcribe_utterance_record.rb → transcribe_utterance_all_of_record.rb} +3 -7
  100. data/lib/freeclimb/models/unpark.rb +1 -0
  101. data/lib/freeclimb/models/update_conference_participant_request.rb +0 -2
  102. data/lib/freeclimb/models/update_conference_request.rb +0 -2
  103. data/lib/freeclimb/version.rb +1 -1
  104. data/lib/freeclimb.rb +8 -4
  105. data/openapi.json +407 -88
  106. data/package.json +8 -0
  107. data/spec/api/default_api_spec.rb +215 -55
  108. data/spec/models/account_request_spec.rb +8 -6
  109. data/spec/models/account_result_spec.rb +28 -9
  110. data/spec/models/add_to_conference_spec.rb +21 -37
  111. data/spec/models/application_list_spec.rb +46 -22
  112. data/spec/models/application_request_spec.rb +13 -6
  113. data/spec/models/application_result_spec.rb +24 -9
  114. data/spec/models/available_number_list_spec.rb +46 -22
  115. data/spec/models/available_number_spec.rb +23 -10
  116. data/spec/models/buy_incoming_number_request_spec.rb +11 -7
  117. data/spec/models/call_list_spec.rb +46 -22
  118. data/spec/models/call_result_spec.rb +49 -15
  119. data/spec/models/capabilities_spec.rb +26 -11
  120. data/spec/models/conference_list_spec.rb +46 -22
  121. data/spec/models/conference_participant_list_spec.rb +46 -22
  122. data/spec/models/conference_participant_result_spec.rb +24 -9
  123. data/spec/models/conference_result_spec.rb +32 -9
  124. data/spec/models/create_conference_request_spec.rb +15 -6
  125. data/spec/models/create_conference_spec.rb +19 -7
  126. data/spec/models/create_web_rtc_token_spec.rb +231 -0
  127. data/spec/models/enqueue_spec.rb +16 -9
  128. data/spec/models/filter_logs_request_spec.rb +9 -7
  129. data/spec/models/get_digits_spec.rb +59 -35
  130. data/spec/models/get_speech_spec.rb +60 -24
  131. data/spec/models/hangup_spec.rb +7 -6
  132. data/spec/models/incoming_number_list_spec.rb +46 -22
  133. data/spec/models/incoming_number_request_spec.rb +9 -6
  134. data/spec/models/incoming_number_result_spec.rb +68 -13
  135. data/spec/models/log_list_spec.rb +46 -22
  136. data/spec/models/log_result_spec.rb +21 -9
  137. data/spec/models/make_call_request_spec.rb +26 -11
  138. data/spec/models/message_request_spec.rb +49 -35
  139. data/spec/models/message_result_spec.rb +64 -11
  140. data/spec/models/messages_list_spec.rb +46 -22
  141. data/spec/models/mutable_resource_model_spec.rb +15 -9
  142. data/spec/models/out_dial_spec.rb +33 -13
  143. data/spec/models/pagination_model_spec.rb +40 -21
  144. data/spec/models/park_spec.rb +13 -8
  145. data/spec/models/pause_spec.rb +14 -10
  146. data/spec/models/percl_command_spec.rb +6 -6
  147. data/spec/models/percl_script_spec.rb +11 -6
  148. data/spec/models/play_early_media_spec.rb +9 -7
  149. data/spec/models/play_spec.rb +17 -40
  150. data/spec/models/queue_list_spec.rb +46 -22
  151. data/spec/models/queue_member_list_spec.rb +46 -22
  152. data/spec/models/queue_member_spec.rb +21 -12
  153. data/spec/models/queue_request_spec.rb +13 -9
  154. data/spec/models/queue_result_spec.rb +37 -18
  155. data/spec/models/record_utterance_spec.rb +28 -13
  156. data/spec/models/recording_list_spec.rb +46 -22
  157. data/spec/models/recording_result_spec.rb +25 -12
  158. data/spec/models/redirect_spec.rb +9 -7
  159. data/spec/models/reject_spec.rb +7 -6
  160. data/spec/models/remove_from_conference_spec.rb +0 -133
  161. data/spec/models/say_spec.rb +18 -40
  162. data/spec/models/send_digits_spec.rb +17 -10
  163. data/spec/models/set_listen_spec.rb +8 -37
  164. data/spec/models/set_talk_spec.rb +8 -37
  165. data/spec/models/sms_spec.rb +16 -9
  166. data/spec/models/sms_ten_dlc_brand_spec.rb +38 -4
  167. data/spec/models/sms_ten_dlc_brands_list_result_spec.rb +46 -22
  168. data/spec/models/sms_ten_dlc_campaign_spec.rb +228 -4
  169. data/spec/models/sms_ten_dlc_campaigns_list_result_spec.rb +46 -22
  170. data/spec/models/sms_ten_dlc_partner_campaign_brand_spec.rb +25 -7
  171. data/spec/models/sms_ten_dlc_partner_campaign_spec.rb +56 -8
  172. data/spec/models/sms_ten_dlc_partner_campaigns_list_result_spec.rb +46 -22
  173. data/spec/models/sms_toll_free_campaign_spec.rb +382 -0
  174. data/spec/models/sms_toll_free_campaigns_list_result_spec.rb +395 -0
  175. data/spec/models/terminate_conference_spec.rb +0 -133
  176. data/spec/models/tfn_spec.rb +164 -0
  177. data/spec/models/{transcribe_utterance_record_spec.rb → transcribe_utterance_all_of_record_spec.rb} +78 -67
  178. data/spec/models/transcribe_utterance_spec.rb +37 -96
  179. data/spec/models/update_call_request_spec.rb +12 -7
  180. data/spec/models/update_conference_participant_request_spec.rb +10 -6
  181. data/spec/models/update_conference_request_spec.rb +15 -6
  182. data/yarn.lock +1292 -0
  183. metadata +105 -84
@@ -0,0 +1,274 @@
1
+ =begin
2
+ #FreeClimb API
3
+
4
+ #FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site telephony equipment. Using the FreeClimb REST API to write applications is easy! You have the option to use the language of your choice or hit the API directly. Your application can execute a command by issuing a RESTful request to the FreeClimb API. The base URL to send HTTP requests to the FreeClimb REST API is: /apiserver. FreeClimb authenticates and processes your request.
5
+
6
+ The version of the OpenAPI document: 1.0.0
7
+ Contact: support@freeclimb.com
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 5.4.0
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module Freeclimb
17
+ class CreateWebRTCToken
18
+ # E.164 formatted phone number to which calls using this token will be made.
19
+ attr_accessor :to
20
+
21
+ # E.164 formatted phone number owned by the reqeusting account from which calls using this token will be made.
22
+ attr_accessor :from
23
+
24
+ # number of times this token may be used for a WebRTC call
25
+ attr_accessor :uses
26
+
27
+ # Attribute mapping from ruby-style variable name to JSON key.
28
+ def self.attribute_map
29
+ {
30
+ :'to' => :'to',
31
+ :'from' => :'from',
32
+ :'uses' => :'uses'
33
+ }
34
+ end
35
+
36
+ # Returns all the JSON keys this model knows about
37
+ def self.acceptable_attributes
38
+ attribute_map.values
39
+ end
40
+
41
+ # Attribute type mapping.
42
+ def self.openapi_types
43
+ {
44
+ :'to' => :'String',
45
+ :'from' => :'String',
46
+ :'uses' => :'Integer'
47
+ }
48
+ end
49
+
50
+ # List of attributes with nullable: true
51
+ def self.openapi_nullable
52
+ Set.new([
53
+ ])
54
+ end
55
+
56
+ # Initializes the object
57
+ # @param [Hash] attributes Model attributes in the form of hash
58
+ def initialize(attributes = {})
59
+ if (!attributes.is_a?(Hash))
60
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Freeclimb::CreateWebRTCToken` initialize method"
61
+ end
62
+
63
+ # check to see if the attribute exists and convert string to symbol for hash key
64
+ attributes = attributes.each_with_object({}) { |(k, v), h|
65
+ if (!self.class.attribute_map.key?(k.to_sym))
66
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Freeclimb::CreateWebRTCToken`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
67
+ end
68
+ h[k.to_sym] = v
69
+ }
70
+
71
+ if attributes.key?(:'to')
72
+ self.to = attributes[:'to']
73
+ end
74
+
75
+ if attributes.key?(:'from')
76
+ self.from = attributes[:'from']
77
+ end
78
+
79
+ if attributes.key?(:'uses')
80
+ self.uses = attributes[:'uses']
81
+ end
82
+ end
83
+
84
+ # Show invalid properties with the reasons. Usually used together with valid?
85
+ # @return Array for valid properties with the reasons
86
+ def list_invalid_properties
87
+ invalid_properties = Array.new
88
+ if @to.nil?
89
+ invalid_properties.push('invalid value for "to", to cannot be nil.')
90
+ end
91
+
92
+ if @from.nil?
93
+ invalid_properties.push('invalid value for "from", from cannot be nil.')
94
+ end
95
+
96
+ if @uses.nil?
97
+ invalid_properties.push('invalid value for "uses", uses cannot be nil.')
98
+ end
99
+
100
+ if @uses < 1
101
+ invalid_properties.push('invalid value for "uses", must be greater than or equal to 1.')
102
+ end
103
+
104
+ invalid_properties
105
+ end
106
+
107
+ # Check to see if the all the properties in the model are valid
108
+ # @return true if the model is valid
109
+ def valid?
110
+
111
+ if @to.nil?
112
+ false
113
+ else
114
+ list_invalid_properties.length() == 0
115
+ end
116
+ end
117
+
118
+ # Custom attribute writer method with validation
119
+ # @param [Object] uses Value to be assigned
120
+ def uses=(uses)
121
+ if uses.nil?
122
+ fail ArgumentError, 'uses cannot be nil'
123
+ end
124
+
125
+ if uses < 1
126
+ fail ArgumentError, 'invalid value for "uses", must be greater than or equal to 1.'
127
+ end
128
+
129
+ @uses = uses
130
+ end
131
+
132
+ # Checks equality by comparing each attribute.
133
+ # @param [Object] Object to be compared
134
+ def ==(o)
135
+ return true if self.equal?(o)
136
+ self.class == o.class &&
137
+ to == o.to &&
138
+ from == o.from &&
139
+ uses == o.uses
140
+ end
141
+
142
+ # @see the `==` method
143
+ # @param [Object] Object to be compared
144
+ def eql?(o)
145
+ self == o
146
+ end
147
+
148
+ # Calculates hash code according to all attributes.
149
+ # @return [Integer] Hash code
150
+ def hash
151
+ [to, from, uses].hash
152
+ end
153
+
154
+ # Builds the object from hash
155
+ # @param [Hash] attributes Model attributes in the form of hash
156
+ # @return [Object] Returns the model itself
157
+ def self.build_from_hash(attributes)
158
+ new.build_from_hash(attributes)
159
+ end
160
+
161
+ # Builds the object from hash
162
+ # @param [Hash] attributes Model attributes in the form of hash
163
+ # @return [Object] Returns the model itself
164
+ def build_from_hash(attributes)
165
+ return nil unless attributes.is_a?(Hash)
166
+ self.class.openapi_types.each_pair do |key, type|
167
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
168
+ self.send("#{key}=", nil)
169
+ elsif type =~ /\AArray<(.*)>/i
170
+ # check to ensure the input is an array given that the attribute
171
+ # is documented as an array but the input is not
172
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
173
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
174
+ end
175
+ elsif !attributes[self.class.attribute_map[key]].nil?
176
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
177
+ end
178
+ end
179
+
180
+ self
181
+ end
182
+
183
+ # Deserializes the data based on type
184
+ # @param string type Data type
185
+ # @param string value Value to be deserialized
186
+ # @return [Object] Deserialized data
187
+ def _deserialize(type, value)
188
+ case type.to_sym
189
+ when :Time
190
+ Time.parse(value)
191
+ when :Date
192
+ Date.parse(value)
193
+ when :String
194
+ value.to_s
195
+ when :Integer
196
+ value.to_i
197
+ when :Float
198
+ value.to_f
199
+ when :Boolean
200
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
201
+ true
202
+ else
203
+ false
204
+ end
205
+ when :Object
206
+ # generic object (usually a Hash), return directly
207
+ value
208
+ when /\AArray<(?<inner_type>.+)>\z/
209
+ inner_type = Regexp.last_match[:inner_type]
210
+ value.map { |v| _deserialize(inner_type, v) }
211
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
212
+ k_type = Regexp.last_match[:k_type]
213
+ v_type = Regexp.last_match[:v_type]
214
+ {}.tap do |hash|
215
+ value.each do |k, v|
216
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
217
+ end
218
+ end
219
+ else # model
220
+ # models (e.g. Pet) or oneOf
221
+ klass = Freeclimb.const_get(type)
222
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
223
+ end
224
+ end
225
+
226
+ # Returns the string representation of the object
227
+ # @return [String] String presentation of the object
228
+ def to_s
229
+ to_hash.to_s
230
+ end
231
+
232
+ # to_body is an alias to to_hash (backward compatibility)
233
+ # @return [Hash] Returns the object in the form of hash
234
+ def to_body
235
+ to_hash
236
+ end
237
+
238
+ # Returns the object in the form of hash
239
+ # @return [Hash] Returns the object in the form of hash
240
+ def to_hash
241
+ hash = {}
242
+ self.class.attribute_map.each_pair do |attr, param|
243
+ value = self.send(attr)
244
+ if value.nil?
245
+ is_nullable = self.class.openapi_nullable.include?(attr)
246
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
247
+ end
248
+
249
+ hash[param] = _to_hash(value)
250
+ end
251
+ hash
252
+ end
253
+
254
+ # Outputs non-array value in the form of hash
255
+ # For object, use to_hash. Otherwise, just return the value
256
+ # @param [Object] value Any valid value
257
+ # @return [Hash] Returns the value in the form of hash
258
+ def _to_hash(value)
259
+ if value.is_a?(Array)
260
+ value.compact.map { |v| _to_hash(v) }
261
+ elsif value.is_a?(Hash)
262
+ {}.tap do |hash|
263
+ value.each { |k, v| hash[k] = _to_hash(v) }
264
+ end
265
+ elsif value.respond_to? :to_hash
266
+ value.to_hash
267
+ else
268
+ value
269
+ end
270
+ end
271
+
272
+ end
273
+
274
+ end
@@ -77,6 +77,7 @@ module Freeclimb
77
77
  # @return true if the model is valid
78
78
  def valid?
79
79
 
80
+ true
80
81
  end
81
82
 
82
83
  # Checks equality by comparing each attribute.
@@ -128,12 +128,6 @@ module Freeclimb
128
128
 
129
129
  if @action_url.nil?
130
130
  false
131
- elsif @notification_url.nil?
132
- false
133
- elsif @queue_id.nil?
134
- false
135
- elsif @wait_url.nil?
136
- false
137
131
  else
138
132
  list_invalid_properties.length() == 0
139
133
  end
@@ -115,12 +115,6 @@ module Freeclimb
115
115
 
116
116
  if @action_url.nil?
117
117
  false
118
- elsif @notification_url.nil?
119
- false
120
- elsif @queue_id.nil?
121
- false
122
- elsif @wait_url.nil?
123
- false
124
118
  else
125
119
  list_invalid_properties.length() == 0
126
120
  end
@@ -70,7 +70,7 @@ module Freeclimb
70
70
  :'digit_timeout_ms' => :'Integer',
71
71
  :'finish_on_key' => :'String',
72
72
  :'flush_buffer' => :'Boolean',
73
- :'initial_timeout_ms' => :'String',
73
+ :'initial_timeout_ms' => :'Integer',
74
74
  :'max_digits' => :'Integer',
75
75
  :'min_digits' => :'Integer',
76
76
  :'prompts' => :'Array<PerclCommand>',
@@ -167,22 +167,6 @@ module Freeclimb
167
167
 
168
168
  if @action_url.nil?
169
169
  false
170
- elsif @digit_timeout_ms.nil?
171
- false
172
- elsif @finish_on_key.nil?
173
- false
174
- elsif @flush_buffer.nil?
175
- false
176
- elsif @initial_timeout_ms.nil?
177
- false
178
- elsif @max_digits.nil?
179
- false
180
- elsif @min_digits.nil?
181
- false
182
- elsif @prompts.nil?
183
- false
184
- elsif @privacy_mode.nil?
185
- false
186
170
  else
187
171
  list_invalid_properties.length() == 0
188
172
  end
@@ -69,7 +69,7 @@ module Freeclimb
69
69
  :'digit_timeout_ms' => :'Integer',
70
70
  :'finish_on_key' => :'String',
71
71
  :'flush_buffer' => :'Boolean',
72
- :'initial_timeout_ms' => :'String',
72
+ :'initial_timeout_ms' => :'Integer',
73
73
  :'max_digits' => :'Integer',
74
74
  :'min_digits' => :'Integer',
75
75
  :'prompts' => :'Array<PerclCommand>',
@@ -154,22 +154,6 @@ module Freeclimb
154
154
 
155
155
  if @action_url.nil?
156
156
  false
157
- elsif @digit_timeout_ms.nil?
158
- false
159
- elsif @finish_on_key.nil?
160
- false
161
- elsif @flush_buffer.nil?
162
- false
163
- elsif @initial_timeout_ms.nil?
164
- false
165
- elsif @max_digits.nil?
166
- false
167
- elsif @min_digits.nil?
168
- false
169
- elsif @prompts.nil?
170
- false
171
- elsif @privacy_mode.nil?
172
- false
173
157
  else
174
158
  list_invalid_properties.length() == 0
175
159
  end
@@ -207,28 +207,6 @@ module Freeclimb
207
207
 
208
208
  if @action_url.nil?
209
209
  false
210
- elsif @grammar_file.nil?
211
- false
212
- elsif @grammar_rule.nil?
213
- false
214
- elsif @play_beep.nil?
215
- false
216
- elsif @prompts.nil?
217
- false
218
- elsif @no_input_timeout_ms.nil?
219
- false
220
- elsif @recognition_timeout_ms.nil?
221
- false
222
- elsif @confidence_threshold.nil?
223
- false
224
- elsif @sensitivity_level.nil?
225
- false
226
- elsif @speech_complete_timeout_ms.nil?
227
- false
228
- elsif @speech_incomplete_timeout_ms.nil?
229
- false
230
- elsif @privacy_mode.nil?
231
- false
232
210
  else
233
211
  list_invalid_properties.length() == 0
234
212
  end
@@ -194,28 +194,6 @@ module Freeclimb
194
194
 
195
195
  if @action_url.nil?
196
196
  false
197
- elsif @grammar_file.nil?
198
- false
199
- elsif @grammar_rule.nil?
200
- false
201
- elsif @play_beep.nil?
202
- false
203
- elsif @prompts.nil?
204
- false
205
- elsif @no_input_timeout_ms.nil?
206
- false
207
- elsif @recognition_timeout_ms.nil?
208
- false
209
- elsif @confidence_threshold.nil?
210
- false
211
- elsif @sensitivity_level.nil?
212
- false
213
- elsif @speech_complete_timeout_ms.nil?
214
- false
215
- elsif @speech_incomplete_timeout_ms.nil?
216
- false
217
- elsif @privacy_mode.nil?
218
- false
219
197
  else
220
198
  list_invalid_properties.length() == 0
221
199
  end
@@ -95,8 +95,6 @@ module Freeclimb
95
95
 
96
96
  if @application_id.nil?
97
97
  false
98
- elsif @_alias.nil?
99
- false
100
98
  else
101
99
  list_invalid_properties.length() == 0
102
100
  end
@@ -62,6 +62,8 @@ module Freeclimb
62
62
  # The offnet field is a boolean representing whether the number is offnet registered or not. This field will be rendered only for requests to the IncomingPhone number resource.
63
63
  attr_accessor :offnet
64
64
 
65
+ attr_accessor :tfn
66
+
65
67
  # Attribute mapping from ruby-style variable name to JSON key.
66
68
  def self.attribute_map
67
69
  {
@@ -80,7 +82,8 @@ module Freeclimb
80
82
  :'country' => :'country',
81
83
  :'voice_enabled' => :'voiceEnabled',
82
84
  :'sms_enabled' => :'smsEnabled',
83
- :'offnet' => :'offnet'
85
+ :'offnet' => :'offnet',
86
+ :'tfn' => :'tfn'
84
87
  }
85
88
  end
86
89
 
@@ -107,7 +110,8 @@ module Freeclimb
107
110
  :'country' => :'String',
108
111
  :'voice_enabled' => :'Boolean',
109
112
  :'sms_enabled' => :'Boolean',
110
- :'offnet' => :'Boolean'
113
+ :'offnet' => :'Boolean',
114
+ :'tfn' => :'TFN'
111
115
  }
112
116
  end
113
117
 
@@ -124,7 +128,7 @@ module Freeclimb
124
128
  :'country',
125
129
  :'voice_enabled',
126
130
  :'sms_enabled',
127
- :'offnet'
131
+ :'offnet',
128
132
  ])
129
133
  end
130
134
 
@@ -214,6 +218,10 @@ module Freeclimb
214
218
  if attributes.key?(:'offnet')
215
219
  self.offnet = attributes[:'offnet']
216
220
  end
221
+
222
+ if attributes.key?(:'tfn')
223
+ self.tfn = attributes[:'tfn']
224
+ end
217
225
  end
218
226
 
219
227
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -229,14 +237,6 @@ module Freeclimb
229
237
 
230
238
  if @uri.nil?
231
239
  false
232
- elsif @date_created.nil?
233
- false
234
- elsif @date_updated.nil?
235
- false
236
- elsif @revision.nil?
237
- false
238
- elsif @capabilities.nil?
239
- false
240
240
  else
241
241
  list_invalid_properties.length() == 0
242
242
  end
@@ -262,7 +262,8 @@ module Freeclimb
262
262
  country == o.country &&
263
263
  voice_enabled == o.voice_enabled &&
264
264
  sms_enabled == o.sms_enabled &&
265
- offnet == o.offnet
265
+ offnet == o.offnet &&
266
+ tfn == o.tfn
266
267
  end
267
268
 
268
269
  # @see the `==` method
@@ -274,7 +275,7 @@ module Freeclimb
274
275
  # Calculates hash code according to all attributes.
275
276
  # @return [Integer] Hash code
276
277
  def hash
277
- [uri, date_created, date_updated, revision, capabilities, campaign_id, phone_number_id, account_id, application_id, phone_number, _alias, region, country, voice_enabled, sms_enabled, offnet].hash
278
+ [uri, date_created, date_updated, revision, capabilities, campaign_id, phone_number_id, account_id, application_id, phone_number, _alias, region, country, voice_enabled, sms_enabled, offnet, tfn].hash
278
279
  end
279
280
 
280
281
  # Builds the object from hash
@@ -50,6 +50,8 @@ module Freeclimb
50
50
  # The offnet field is a boolean representing whether the number is offnet registered or not. This field will be rendered only for requests to the IncomingPhone number resource.
51
51
  attr_accessor :offnet
52
52
 
53
+ attr_accessor :tfn
54
+
53
55
  # Attribute mapping from ruby-style variable name to JSON key.
54
56
  def self.attribute_map
55
57
  {
@@ -64,7 +66,8 @@ module Freeclimb
64
66
  :'country' => :'country',
65
67
  :'voice_enabled' => :'voiceEnabled',
66
68
  :'sms_enabled' => :'smsEnabled',
67
- :'offnet' => :'offnet'
69
+ :'offnet' => :'offnet',
70
+ :'tfn' => :'tfn'
68
71
  }
69
72
  end
70
73
 
@@ -87,7 +90,8 @@ module Freeclimb
87
90
  :'country' => :'String',
88
91
  :'voice_enabled' => :'Boolean',
89
92
  :'sms_enabled' => :'Boolean',
90
- :'offnet' => :'Boolean'
93
+ :'offnet' => :'Boolean',
94
+ :'tfn' => :'TFN'
91
95
  }
92
96
  end
93
97
 
@@ -104,7 +108,7 @@ module Freeclimb
104
108
  :'country',
105
109
  :'voice_enabled',
106
110
  :'sms_enabled',
107
- :'offnet'
111
+ :'offnet',
108
112
  ])
109
113
  end
110
114
 
@@ -170,6 +174,10 @@ module Freeclimb
170
174
  if attributes.key?(:'offnet')
171
175
  self.offnet = attributes[:'offnet']
172
176
  end
177
+
178
+ if attributes.key?(:'tfn')
179
+ self.tfn = attributes[:'tfn']
180
+ end
173
181
  end
174
182
 
175
183
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -206,7 +214,8 @@ module Freeclimb
206
214
  country == o.country &&
207
215
  voice_enabled == o.voice_enabled &&
208
216
  sms_enabled == o.sms_enabled &&
209
- offnet == o.offnet
217
+ offnet == o.offnet &&
218
+ tfn == o.tfn
210
219
  end
211
220
 
212
221
  # @see the `==` method
@@ -218,7 +227,7 @@ module Freeclimb
218
227
  # Calculates hash code according to all attributes.
219
228
  # @return [Integer] Hash code
220
229
  def hash
221
- [capabilities, campaign_id, phone_number_id, account_id, application_id, phone_number, _alias, region, country, voice_enabled, sms_enabled, offnet].hash
230
+ [capabilities, campaign_id, phone_number_id, account_id, application_id, phone_number, _alias, region, country, voice_enabled, sms_enabled, offnet, tfn].hash
222
231
  end
223
232
 
224
233
  # Builds the object from hash
@@ -167,24 +167,6 @@ module Freeclimb
167
167
 
168
168
  if @from.nil?
169
169
  false
170
- elsif @to.nil?
171
- false
172
- elsif @application_id.nil?
173
- false
174
- elsif @send_digits.nil?
175
- false
176
- elsif @if_machine.nil?
177
- false
178
- elsif @if_machine_url.nil?
179
- false
180
- elsif @timeout.nil?
181
- false
182
- elsif @parent_call_id.nil?
183
- false
184
- elsif @privacy_mode.nil?
185
- false
186
- elsif @call_connect_url.nil?
187
- false
188
170
  else
189
171
  list_invalid_properties.length() == 0
190
172
  end
@@ -39,8 +39,8 @@ module Freeclimb
39
39
  # When the Message changes status, this URL is invoked using HTTP POST with the messageStatus parameters. **Note:** This is a notification only; any PerCL returned is ignored.
40
40
  attr_accessor :notification_url
41
41
 
42
- # String that uniquely identifies this account resource.
43
- attr_accessor :account_id
42
+ # an array of HTTP URLs which are to be used as attachments to the message. This will force the message into being an MMS message and must be done using a from number which is MMS capabile.
43
+ attr_accessor :media_urls
44
44
 
45
45
  # Attribute mapping from ruby-style variable name to JSON key.
46
46
  def self.attribute_map
@@ -53,7 +53,7 @@ module Freeclimb
53
53
  :'to' => :'to',
54
54
  :'text' => :'text',
55
55
  :'notification_url' => :'notificationUrl',
56
- :'account_id' => :'accountId'
56
+ :'media_urls' => :'mediaUrls'
57
57
  }
58
58
  end
59
59
 
@@ -73,7 +73,7 @@ module Freeclimb
73
73
  :'to' => :'String',
74
74
  :'text' => :'String',
75
75
  :'notification_url' => :'String',
76
- :'account_id' => :'String'
76
+ :'media_urls' => :'Array<String>'
77
77
  }
78
78
  end
79
79
 
@@ -138,8 +138,10 @@ module Freeclimb
138
138
  self.notification_url = attributes[:'notification_url']
139
139
  end
140
140
 
141
- if attributes.key?(:'account_id')
142
- self.account_id = attributes[:'account_id']
141
+ if attributes.key?(:'media_urls')
142
+ if (value = attributes[:'media_urls']).is_a?(Array)
143
+ self.media_urls = value
144
+ end
143
145
  end
144
146
  end
145
147
 
@@ -168,22 +170,6 @@ module Freeclimb
168
170
 
169
171
  if @uri.nil?
170
172
  false
171
- elsif @date_created.nil?
172
- false
173
- elsif @date_updated.nil?
174
- false
175
- elsif @revision.nil?
176
- false
177
- elsif @from.nil?
178
- false
179
- elsif @to.nil?
180
- false
181
- elsif @text.nil?
182
- false
183
- elsif @notification_url.nil?
184
- false
185
- elsif @account_id.nil?
186
- false
187
173
  else
188
174
  list_invalid_properties.length() == 0
189
175
  end
@@ -202,7 +188,7 @@ module Freeclimb
202
188
  to == o.to &&
203
189
  text == o.text &&
204
190
  notification_url == o.notification_url &&
205
- account_id == o.account_id
191
+ media_urls == o.media_urls
206
192
  end
207
193
 
208
194
  # @see the `==` method
@@ -214,7 +200,7 @@ module Freeclimb
214
200
  # Calculates hash code according to all attributes.
215
201
  # @return [Integer] Hash code
216
202
  def hash
217
- [uri, date_created, date_updated, revision, from, to, text, notification_url, account_id].hash
203
+ [uri, date_created, date_updated, revision, from, to, text, notification_url, media_urls].hash
218
204
  end
219
205
 
220
206
  # Builds the object from hash