freeclimb 4.5.2 → 4.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (81) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +12 -0
  3. data/Gemfile.lock +1 -1
  4. data/README.md +13 -6
  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 +302 -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/lib/freeclimb/api/default_api.rb +258 -7
  33. data/lib/freeclimb/models/add_to_conference.rb +1 -13
  34. data/lib/freeclimb/models/add_to_conference_all_of.rb +1 -13
  35. data/lib/freeclimb/models/create_web_rtc_token.rb +278 -0
  36. data/lib/freeclimb/models/get_digits.rb +1 -1
  37. data/lib/freeclimb/models/get_digits_all_of.rb +1 -1
  38. data/lib/freeclimb/models/incoming_number_result.rb +16 -5
  39. data/lib/freeclimb/models/incoming_number_result_all_of.rb +16 -5
  40. data/lib/freeclimb/models/message_request.rb +11 -9
  41. data/lib/freeclimb/models/message_request_all_of.rb +11 -9
  42. data/lib/freeclimb/models/message_result.rb +19 -5
  43. data/lib/freeclimb/models/message_result_all_of.rb +19 -5
  44. data/lib/freeclimb/models/play.rb +1 -13
  45. data/lib/freeclimb/models/play_all_of.rb +1 -13
  46. data/lib/freeclimb/models/remove_from_conference.rb +3 -23
  47. data/lib/freeclimb/models/say.rb +1 -13
  48. data/lib/freeclimb/models/say_all_of.rb +1 -13
  49. data/lib/freeclimb/models/set_listen.rb +2 -18
  50. data/lib/freeclimb/models/set_listen_all_of.rb +2 -18
  51. data/lib/freeclimb/models/set_talk.rb +2 -18
  52. data/lib/freeclimb/models/set_talk_all_of.rb +2 -18
  53. data/lib/freeclimb/models/sms_ten_dlc_campaign.rb +131 -1
  54. data/lib/freeclimb/models/sms_toll_free_campaign.rb +349 -0
  55. data/lib/freeclimb/models/sms_toll_free_campaigns_list_result.rb +311 -0
  56. data/lib/freeclimb/models/sms_toll_free_campaigns_list_result_all_of.rb +226 -0
  57. data/lib/freeclimb/models/terminate_conference.rb +3 -23
  58. data/lib/freeclimb/models/tfn.rb +229 -0
  59. data/lib/freeclimb/version.rb +1 -1
  60. data/lib/freeclimb.rb +5 -2
  61. data/openapi.json +605 -110
  62. data/package.json +8 -0
  63. data/spec/api/default_api_spec.rb +104 -3
  64. data/spec/models/add_to_conference_spec.rb +0 -30
  65. data/spec/models/create_web_rtc_token_spec.rb +225 -0
  66. data/spec/models/get_digits_spec.rb +19 -19
  67. data/spec/models/incoming_number_result_spec.rb +25 -0
  68. data/spec/models/message_request_spec.rb +23 -23
  69. data/spec/models/message_result_spec.rb +30 -0
  70. data/spec/models/play_spec.rb +0 -30
  71. data/spec/models/remove_from_conference_spec.rb +1 -67
  72. data/spec/models/say_spec.rb +0 -30
  73. data/spec/models/set_listen_spec.rb +0 -31
  74. data/spec/models/set_talk_spec.rb +0 -31
  75. data/spec/models/sms_ten_dlc_campaign_spec.rb +165 -0
  76. data/spec/models/sms_toll_free_campaign_spec.rb +368 -0
  77. data/spec/models/sms_toll_free_campaigns_list_result_spec.rb +371 -0
  78. data/spec/models/terminate_conference_spec.rb +1 -67
  79. data/spec/models/tfn_spec.rb +162 -0
  80. data/yarn.lock +1292 -0
  81. metadata +103 -83
@@ -0,0 +1,278 @@
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
+ elsif @from.nil?
114
+ false
115
+ elsif @uses.nil?
116
+ false
117
+ else
118
+ list_invalid_properties.length() == 0
119
+ end
120
+ end
121
+
122
+ # Custom attribute writer method with validation
123
+ # @param [Object] uses Value to be assigned
124
+ def uses=(uses)
125
+ if uses.nil?
126
+ fail ArgumentError, 'uses cannot be nil'
127
+ end
128
+
129
+ if uses < 1
130
+ fail ArgumentError, 'invalid value for "uses", must be greater than or equal to 1.'
131
+ end
132
+
133
+ @uses = uses
134
+ end
135
+
136
+ # Checks equality by comparing each attribute.
137
+ # @param [Object] Object to be compared
138
+ def ==(o)
139
+ return true if self.equal?(o)
140
+ self.class == o.class &&
141
+ to == o.to &&
142
+ from == o.from &&
143
+ uses == o.uses
144
+ end
145
+
146
+ # @see the `==` method
147
+ # @param [Object] Object to be compared
148
+ def eql?(o)
149
+ self == o
150
+ end
151
+
152
+ # Calculates hash code according to all attributes.
153
+ # @return [Integer] Hash code
154
+ def hash
155
+ [to, from, uses].hash
156
+ end
157
+
158
+ # Builds the object from hash
159
+ # @param [Hash] attributes Model attributes in the form of hash
160
+ # @return [Object] Returns the model itself
161
+ def self.build_from_hash(attributes)
162
+ new.build_from_hash(attributes)
163
+ end
164
+
165
+ # Builds the object from hash
166
+ # @param [Hash] attributes Model attributes in the form of hash
167
+ # @return [Object] Returns the model itself
168
+ def build_from_hash(attributes)
169
+ return nil unless attributes.is_a?(Hash)
170
+ self.class.openapi_types.each_pair do |key, type|
171
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
172
+ self.send("#{key}=", nil)
173
+ elsif type =~ /\AArray<(.*)>/i
174
+ # check to ensure the input is an array given that the attribute
175
+ # is documented as an array but the input is not
176
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
177
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
178
+ end
179
+ elsif !attributes[self.class.attribute_map[key]].nil?
180
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
181
+ end
182
+ end
183
+
184
+ self
185
+ end
186
+
187
+ # Deserializes the data based on type
188
+ # @param string type Data type
189
+ # @param string value Value to be deserialized
190
+ # @return [Object] Deserialized data
191
+ def _deserialize(type, value)
192
+ case type.to_sym
193
+ when :Time
194
+ Time.parse(value)
195
+ when :Date
196
+ Date.parse(value)
197
+ when :String
198
+ value.to_s
199
+ when :Integer
200
+ value.to_i
201
+ when :Float
202
+ value.to_f
203
+ when :Boolean
204
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
205
+ true
206
+ else
207
+ false
208
+ end
209
+ when :Object
210
+ # generic object (usually a Hash), return directly
211
+ value
212
+ when /\AArray<(?<inner_type>.+)>\z/
213
+ inner_type = Regexp.last_match[:inner_type]
214
+ value.map { |v| _deserialize(inner_type, v) }
215
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
216
+ k_type = Regexp.last_match[:k_type]
217
+ v_type = Regexp.last_match[:v_type]
218
+ {}.tap do |hash|
219
+ value.each do |k, v|
220
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
221
+ end
222
+ end
223
+ else # model
224
+ # models (e.g. Pet) or oneOf
225
+ klass = Freeclimb.const_get(type)
226
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
227
+ end
228
+ end
229
+
230
+ # Returns the string representation of the object
231
+ # @return [String] String presentation of the object
232
+ def to_s
233
+ to_hash.to_s
234
+ end
235
+
236
+ # to_body is an alias to to_hash (backward compatibility)
237
+ # @return [Hash] Returns the object in the form of hash
238
+ def to_body
239
+ to_hash
240
+ end
241
+
242
+ # Returns the object in the form of hash
243
+ # @return [Hash] Returns the object in the form of hash
244
+ def to_hash
245
+ hash = {}
246
+ self.class.attribute_map.each_pair do |attr, param|
247
+ value = self.send(attr)
248
+ if value.nil?
249
+ is_nullable = self.class.openapi_nullable.include?(attr)
250
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
251
+ end
252
+
253
+ hash[param] = _to_hash(value)
254
+ end
255
+ hash
256
+ end
257
+
258
+ # Outputs non-array value in the form of hash
259
+ # For object, use to_hash. Otherwise, just return the value
260
+ # @param [Object] value Any valid value
261
+ # @return [Hash] Returns the value in the form of hash
262
+ def _to_hash(value)
263
+ if value.is_a?(Array)
264
+ value.compact.map { |v| _to_hash(v) }
265
+ elsif value.is_a?(Hash)
266
+ {}.tap do |hash|
267
+ value.each { |k, v| hash[k] = _to_hash(v) }
268
+ end
269
+ elsif value.respond_to? :to_hash
270
+ value.to_hash
271
+ else
272
+ value
273
+ end
274
+ end
275
+
276
+ end
277
+
278
+ 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>',
@@ -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>',
@@ -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?
@@ -237,6 +245,8 @@ module Freeclimb
237
245
  false
238
246
  elsif @capabilities.nil?
239
247
  false
248
+ elsif @tfn.nil?
249
+ false
240
250
  else
241
251
  list_invalid_properties.length() == 0
242
252
  end
@@ -262,7 +272,8 @@ module Freeclimb
262
272
  country == o.country &&
263
273
  voice_enabled == o.voice_enabled &&
264
274
  sms_enabled == o.sms_enabled &&
265
- offnet == o.offnet
275
+ offnet == o.offnet &&
276
+ tfn == o.tfn
266
277
  end
267
278
 
268
279
  # @see the `==` method
@@ -274,7 +285,7 @@ module Freeclimb
274
285
  # Calculates hash code according to all attributes.
275
286
  # @return [Integer] Hash code
276
287
  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
288
+ [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
289
  end
279
290
 
280
291
  # 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?
@@ -185,6 +193,8 @@ module Freeclimb
185
193
 
186
194
  if @capabilities.nil?
187
195
  false
196
+ elsif @tfn.nil?
197
+ false
188
198
  else
189
199
  list_invalid_properties.length() == 0
190
200
  end
@@ -206,7 +216,8 @@ module Freeclimb
206
216
  country == o.country &&
207
217
  voice_enabled == o.voice_enabled &&
208
218
  sms_enabled == o.sms_enabled &&
209
- offnet == o.offnet
219
+ offnet == o.offnet &&
220
+ tfn == o.tfn
210
221
  end
211
222
 
212
223
  # @see the `==` method
@@ -218,7 +229,7 @@ module Freeclimb
218
229
  # Calculates hash code according to all attributes.
219
230
  # @return [Integer] Hash code
220
231
  def hash
221
- [capabilities, campaign_id, phone_number_id, account_id, application_id, phone_number, _alias, region, country, voice_enabled, sms_enabled, offnet].hash
232
+ [capabilities, campaign_id, phone_number_id, account_id, application_id, phone_number, _alias, region, country, voice_enabled, sms_enabled, offnet, tfn].hash
222
233
  end
223
234
 
224
235
  # Builds the object from hash
@@ -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
 
@@ -182,7 +184,7 @@ module Freeclimb
182
184
  false
183
185
  elsif @notification_url.nil?
184
186
  false
185
- elsif @account_id.nil?
187
+ elsif @media_urls.nil?
186
188
  false
187
189
  else
188
190
  list_invalid_properties.length() == 0
@@ -202,7 +204,7 @@ module Freeclimb
202
204
  to == o.to &&
203
205
  text == o.text &&
204
206
  notification_url == o.notification_url &&
205
- account_id == o.account_id
207
+ media_urls == o.media_urls
206
208
  end
207
209
 
208
210
  # @see the `==` method
@@ -214,7 +216,7 @@ module Freeclimb
214
216
  # Calculates hash code according to all attributes.
215
217
  # @return [Integer] Hash code
216
218
  def hash
217
- [uri, date_created, date_updated, revision, from, to, text, notification_url, account_id].hash
219
+ [uri, date_created, date_updated, revision, from, to, text, notification_url, media_urls].hash
218
220
  end
219
221
 
220
222
  # Builds the object from hash
@@ -27,8 +27,8 @@ module Freeclimb
27
27
  # 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.
28
28
  attr_accessor :notification_url
29
29
 
30
- # String that uniquely identifies this account resource.
31
- attr_accessor :account_id
30
+ # 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.
31
+ attr_accessor :media_urls
32
32
 
33
33
  # Attribute mapping from ruby-style variable name to JSON key.
34
34
  def self.attribute_map
@@ -37,7 +37,7 @@ module Freeclimb
37
37
  :'to' => :'to',
38
38
  :'text' => :'text',
39
39
  :'notification_url' => :'notificationUrl',
40
- :'account_id' => :'accountId'
40
+ :'media_urls' => :'mediaUrls'
41
41
  }
42
42
  end
43
43
 
@@ -53,7 +53,7 @@ module Freeclimb
53
53
  :'to' => :'String',
54
54
  :'text' => :'String',
55
55
  :'notification_url' => :'String',
56
- :'account_id' => :'String'
56
+ :'media_urls' => :'Array<String>'
57
57
  }
58
58
  end
59
59
 
@@ -94,8 +94,10 @@ module Freeclimb
94
94
  self.notification_url = attributes[:'notification_url']
95
95
  end
96
96
 
97
- if attributes.key?(:'account_id')
98
- self.account_id = attributes[:'account_id']
97
+ if attributes.key?(:'media_urls')
98
+ if (value = attributes[:'media_urls']).is_a?(Array)
99
+ self.media_urls = value
100
+ end
99
101
  end
100
102
  end
101
103
 
@@ -130,7 +132,7 @@ module Freeclimb
130
132
  false
131
133
  elsif @notification_url.nil?
132
134
  false
133
- elsif @account_id.nil?
135
+ elsif @media_urls.nil?
134
136
  false
135
137
  else
136
138
  list_invalid_properties.length() == 0
@@ -146,7 +148,7 @@ module Freeclimb
146
148
  to == o.to &&
147
149
  text == o.text &&
148
150
  notification_url == o.notification_url &&
149
- account_id == o.account_id
151
+ media_urls == o.media_urls
150
152
  end
151
153
 
152
154
  # @see the `==` method
@@ -158,7 +160,7 @@ module Freeclimb
158
160
  # Calculates hash code according to all attributes.
159
161
  # @return [Integer] Hash code
160
162
  def hash
161
- [from, to, text, notification_url, account_id].hash
163
+ [from, to, text, notification_url, media_urls].hash
162
164
  end
163
165
 
164
166
  # Builds the object from hash
@@ -59,6 +59,9 @@ module Freeclimb
59
59
  # The number of segments into which the message was split
60
60
  attr_accessor :segment_count
61
61
 
62
+ # an array of HTTP URLs which were attached this this message
63
+ attr_accessor :media_urls
64
+
62
65
  # Attribute mapping from ruby-style variable name to JSON key.
63
66
  def self.attribute_map
64
67
  {
@@ -76,7 +79,8 @@ module Freeclimb
76
79
  :'notification_url' => :'notificationUrl',
77
80
  :'brand_id' => :'brandId',
78
81
  :'campaign_id' => :'campaignId',
79
- :'segment_count' => :'segmentCount'
82
+ :'segment_count' => :'segmentCount',
83
+ :'media_urls' => :'mediaUrls'
80
84
  }
81
85
  end
82
86
 
@@ -102,7 +106,8 @@ module Freeclimb
102
106
  :'notification_url' => :'String',
103
107
  :'brand_id' => :'String',
104
108
  :'campaign_id' => :'String',
105
- :'segment_count' => :'Float'
109
+ :'segment_count' => :'Float',
110
+ :'media_urls' => :'Array<String>'
106
111
  }
107
112
  end
108
113
 
@@ -119,7 +124,7 @@ module Freeclimb
119
124
  :'notification_url',
120
125
  :'brand_id',
121
126
  :'campaign_id',
122
- :'segment_count'
127
+ :'segment_count',
123
128
  ])
124
129
  end
125
130
 
@@ -205,6 +210,12 @@ module Freeclimb
205
210
  if attributes.key?(:'segment_count')
206
211
  self.segment_count = attributes[:'segment_count']
207
212
  end
213
+
214
+ if attributes.key?(:'media_urls')
215
+ if (value = attributes[:'media_urls']).is_a?(Array)
216
+ self.media_urls = value
217
+ end
218
+ end
208
219
  end
209
220
 
210
221
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -226,6 +237,8 @@ module Freeclimb
226
237
  false
227
238
  elsif @revision.nil?
228
239
  false
240
+ elsif @media_urls.nil?
241
+ false
229
242
  else
230
243
  list_invalid_properties.length() == 0
231
244
  end
@@ -250,7 +263,8 @@ module Freeclimb
250
263
  notification_url == o.notification_url &&
251
264
  brand_id == o.brand_id &&
252
265
  campaign_id == o.campaign_id &&
253
- segment_count == o.segment_count
266
+ segment_count == o.segment_count &&
267
+ media_urls == o.media_urls
254
268
  end
255
269
 
256
270
  # @see the `==` method
@@ -262,7 +276,7 @@ module Freeclimb
262
276
  # Calculates hash code according to all attributes.
263
277
  # @return [Integer] Hash code
264
278
  def hash
265
- [uri, date_created, date_updated, revision, account_id, message_id, status, from, to, text, direction, notification_url, brand_id, campaign_id, segment_count].hash
279
+ [uri, date_created, date_updated, revision, account_id, message_id, status, from, to, text, direction, notification_url, brand_id, campaign_id, segment_count, media_urls].hash
266
280
  end
267
281
 
268
282
  # Builds the object from hash