freeclimb 2.0.1 → 2.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (58) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +100 -0
  3. data/README.md +11 -4
  4. data/docs/GetDigits.md +3 -1
  5. data/docs/GetDigitsAllOf.md +3 -1
  6. data/docs/GetSpeech.md +2 -2
  7. data/docs/GetSpeechAllOf.md +2 -2
  8. data/docs/Hangup.md +17 -0
  9. data/docs/HangupAllOf.md +17 -0
  10. data/docs/MakeCallRequest.md +7 -3
  11. data/docs/MessageResult.md +1 -1
  12. data/docs/MessageResultAllOf.md +1 -1
  13. data/docs/OutDial.md +3 -1
  14. data/docs/OutDialAllOf.md +3 -1
  15. data/docs/Play.md +3 -1
  16. data/docs/PlayAllOf.md +3 -1
  17. data/docs/RecordUtterance.md +3 -1
  18. data/docs/RecordUtteranceAllOf.md +3 -1
  19. data/docs/Redirect.md +1 -1
  20. data/docs/RedirectAllOf.md +1 -1
  21. data/docs/Reject.md +17 -0
  22. data/docs/RejectAllOf.md +17 -0
  23. data/docs/Say.md +2 -2
  24. data/docs/SayAllOf.md +2 -2
  25. data/docs/SendDigits.md +3 -1
  26. data/docs/SendDigitsAllOf.md +3 -1
  27. data/freeclimb-2.0.3.gem +0 -0
  28. data/freeclimb-2.1.0.gem +0 -0
  29. data/freeclimb-2.1.1.gem +0 -0
  30. data/lib/freeclimb.rb +4 -0
  31. data/lib/freeclimb/api_client.rb +1 -1
  32. data/lib/freeclimb/models/get_digits.rb +14 -4
  33. data/lib/freeclimb/models/get_digits_all_of.rb +14 -4
  34. data/lib/freeclimb/models/get_speech.rb +8 -8
  35. data/lib/freeclimb/models/get_speech_all_of.rb +8 -8
  36. data/lib/freeclimb/models/hangup.rb +220 -0
  37. data/lib/freeclimb/models/hangup_all_of.rb +207 -0
  38. data/lib/freeclimb/models/make_call_request.rb +26 -11
  39. data/lib/freeclimb/models/message_result.rb +3 -3
  40. data/lib/freeclimb/models/message_result_all_of.rb +3 -3
  41. data/lib/freeclimb/models/out_dial.rb +14 -4
  42. data/lib/freeclimb/models/out_dial_all_of.rb +14 -4
  43. data/lib/freeclimb/models/play.rb +14 -4
  44. data/lib/freeclimb/models/play_all_of.rb +14 -4
  45. data/lib/freeclimb/models/record_utterance.rb +14 -4
  46. data/lib/freeclimb/models/record_utterance_all_of.rb +14 -4
  47. data/lib/freeclimb/models/redirect.rb +7 -2
  48. data/lib/freeclimb/models/redirect_all_of.rb +6 -1
  49. data/lib/freeclimb/models/reject.rb +220 -0
  50. data/lib/freeclimb/models/reject_all_of.rb +207 -0
  51. data/lib/freeclimb/models/say.rb +8 -8
  52. data/lib/freeclimb/models/say_all_of.rb +8 -8
  53. data/lib/freeclimb/models/send_digits.rb +14 -4
  54. data/lib/freeclimb/models/send_digits_all_of.rb +14 -4
  55. data/lib/freeclimb/version.rb +1 -1
  56. data/spec/models/hangup_spec.rb +41 -0
  57. data/spec/models/reject_spec.rb +41 -0
  58. metadata +18 -2
@@ -0,0 +1,207 @@
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
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.3.0-SNAPSHOT
10
+
11
+ =end
12
+
13
+ require 'date'
14
+
15
+ module Freeclimb
16
+ class HangupAllOf
17
+ # The user defined reason for the hangup. In general, applications should use a set of enumerated values that are predefined to cover all exit points of the Call flows for the given application.
18
+ attr_accessor :reason
19
+
20
+ # Attribute mapping from ruby-style variable name to JSON key.
21
+ def self.attribute_map
22
+ {
23
+ :'reason' => :'reason'
24
+ }
25
+ end
26
+
27
+ # Attribute type mapping.
28
+ def self.openapi_types
29
+ {
30
+ :'reason' => :'String'
31
+ }
32
+ end
33
+
34
+ # List of attributes with nullable: true
35
+ def self.openapi_nullable
36
+ Set.new([
37
+ ])
38
+ end
39
+
40
+ # Initializes the object
41
+ # @param [Hash] attributes Model attributes in the form of hash
42
+ def initialize(attributes = {})
43
+ if (!attributes.is_a?(Hash))
44
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Freeclimb::HangupAllOf` initialize method"
45
+ end
46
+
47
+ # check to see if the attribute exists and convert string to symbol for hash key
48
+ attributes = attributes.each_with_object({}) { |(k, v), h|
49
+ if (!self.class.attribute_map.key?(k.to_sym))
50
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Freeclimb::HangupAllOf`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
51
+ end
52
+ h[k.to_sym] = v
53
+ }
54
+
55
+ if attributes.key?(:'reason')
56
+ self.reason = attributes[:'reason']
57
+ end
58
+ end
59
+
60
+ # Show invalid properties with the reasons. Usually used together with valid?
61
+ # @return Array for valid properties with the reasons
62
+ def list_invalid_properties
63
+ invalid_properties = Array.new
64
+ invalid_properties
65
+ end
66
+
67
+ # Check to see if the all the properties in the model are valid
68
+ # @return true if the model is valid
69
+ def valid?
70
+ true
71
+ end
72
+
73
+ # Checks equality by comparing each attribute.
74
+ # @param [Object] Object to be compared
75
+ def ==(o)
76
+ return true if self.equal?(o)
77
+ self.class == o.class &&
78
+ reason == o.reason
79
+ end
80
+
81
+ # @see the `==` method
82
+ # @param [Object] Object to be compared
83
+ def eql?(o)
84
+ self == o
85
+ end
86
+
87
+ # Calculates hash code according to all attributes.
88
+ # @return [Integer] Hash code
89
+ def hash
90
+ [reason].hash
91
+ end
92
+
93
+ # Builds the object from hash
94
+ # @param [Hash] attributes Model attributes in the form of hash
95
+ # @return [Object] Returns the model itself
96
+ def self.build_from_hash(attributes)
97
+ new.build_from_hash(attributes)
98
+ end
99
+
100
+ # Builds the object from hash
101
+ # @param [Hash] attributes Model attributes in the form of hash
102
+ # @return [Object] Returns the model itself
103
+ def build_from_hash(attributes)
104
+ return nil unless attributes.is_a?(Hash)
105
+ self.class.openapi_types.each_pair do |key, type|
106
+ if type =~ /\AArray<(.*)>/i
107
+ # check to ensure the input is an array given that the attribute
108
+ # is documented as an array but the input is not
109
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
110
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
111
+ end
112
+ elsif !attributes[self.class.attribute_map[key]].nil?
113
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
114
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
115
+ end
116
+
117
+ self
118
+ end
119
+
120
+ # Deserializes the data based on type
121
+ # @param string type Data type
122
+ # @param string value Value to be deserialized
123
+ # @return [Object] Deserialized data
124
+ def _deserialize(type, value)
125
+ case type.to_sym
126
+ when :DateTime
127
+ DateTime.parse(value)
128
+ when :Date
129
+ Date.parse(value)
130
+ when :String
131
+ value.to_s
132
+ when :Integer
133
+ value.to_i
134
+ when :Float
135
+ value.to_f
136
+ when :Boolean
137
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
138
+ true
139
+ else
140
+ false
141
+ end
142
+ when :Object
143
+ # generic object (usually a Hash), return directly
144
+ value
145
+ when /\AArray<(?<inner_type>.+)>\z/
146
+ inner_type = Regexp.last_match[:inner_type]
147
+ value.map { |v| _deserialize(inner_type, v) }
148
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
149
+ k_type = Regexp.last_match[:k_type]
150
+ v_type = Regexp.last_match[:v_type]
151
+ {}.tap do |hash|
152
+ value.each do |k, v|
153
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
154
+ end
155
+ end
156
+ else # model
157
+ Freeclimb.const_get(type).build_from_hash(value)
158
+ end
159
+ end
160
+
161
+ # Returns the string representation of the object
162
+ # @return [String] String presentation of the object
163
+ def to_s
164
+ to_hash.to_s
165
+ end
166
+
167
+ # to_body is an alias to to_hash (backward compatibility)
168
+ # @return [Hash] Returns the object in the form of hash
169
+ def to_body
170
+ to_hash
171
+ end
172
+
173
+ # Returns the object in the form of hash
174
+ # @return [Hash] Returns the object in the form of hash
175
+ def to_hash
176
+ hash = {}
177
+ self.class.attribute_map.each_pair do |attr, param|
178
+ value = self.send(attr)
179
+ if value.nil?
180
+ is_nullable = self.class.openapi_nullable.include?(attr)
181
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
182
+ end
183
+
184
+ hash[param] = _to_hash(value)
185
+ end
186
+ hash
187
+ end
188
+
189
+ # Outputs non-array value in the form of hash
190
+ # For object, use to_hash. Otherwise, just return the value
191
+ # @param [Object] value Any valid value
192
+ # @return [Hash] Returns the value in the form of hash
193
+ def _to_hash(value)
194
+ if value.is_a?(Array)
195
+ value.compact.map { |v| _to_hash(v) }
196
+ elsif value.is_a?(Hash)
197
+ {}.tap do |hash|
198
+ value.each { |k, v| hash[k] = _to_hash(v) }
199
+ end
200
+ elsif value.respond_to? :to_hash
201
+ value.to_hash
202
+ else
203
+ value
204
+ end
205
+ end
206
+ end
207
+ end
@@ -20,7 +20,7 @@ module Freeclimb
20
20
  # Phone number to place the Call to.
21
21
  attr_accessor :to
22
22
 
23
- # ID of the application FreeClimb should use to handle this phone call. FreeClimb will use the `callConnectUrl` and `statusCallbackUrl` set on the application. The application must have a `callConnectUrl` associated with it or an error will be returned. The application’s `voiceUrl` parameter is not used for outbound calls.
23
+ # Required if no `parentCallId` or `callConnectUrl` has been provided. ID of the application FreeClimb should use to handle this phone call. FreeClimb will use the `callConnectUrl` and `statusCallbackUrl` set on the application unless the `callConnectUrl` attribute is also provided with the request. In this case, the URL specified in that `callConnectUrl` attribute will be used as a replacement of the `callConnectUrl` originally assigned in the application. If the `callConnectUrl` is not set as either an attribute of the request or as part of the specified application, an error will be provided. The application’s voiceUrl parameter is not used for outbound calls.
24
24
  attr_accessor :application_id
25
25
 
26
26
  # String of digits to dial after connecting to the number. It can include digits `0-9`, `*`, and `#`, and allows embedding a pause between the output of individual digits. The default pause is 500 milliseconds. So, a string such as *1234#* will be played in 2 seconds because of the 4 standard pauses implied within the string. A custom pause is specified by including a positive integer wrapped in curly braces: {n}. For more information, see **sendDigits examples** below.
@@ -35,9 +35,15 @@ module Freeclimb
35
35
  # Number of seconds that FreeClimb should allow the phone to ring before assuming there is no answer. Default is 30 seconds. Maximum allowed ring-time is determined by the target phone's provider. Note that most providers limit ring-time to 120 seconds.
36
36
  attr_accessor :timeout
37
37
 
38
- # The ID of the parent Call in the case that this new Call is meant to be treated as a child of an existing Call. This attribute should be included when possible to reduce latency when adding child calls to Conferences containing the parent Call. A call can only be used as a parent once the call is in progress or as an inbound call that is still ringing. An outbound call is considered to be in progress once the outdialConnect or outdialApiConnect webhook is invoked. An inbound call is ringing when the inbound webhook is invoked.
38
+ # Required if no `applicationId` or `callConnectUrl` has been provided. The ID of the parent Call in the case that this new Call is meant to be treated as a child of an existing Call. This attribute should be included when possible to reduce latency when adding child calls to Conferences containing the parent Call. A call can only be used as a parent once the call is in progress or as an inbound call that is still ringing. An outbound call is considered to be in progress once the `outdialConnect` or `outdialApiConnect` webhook is invoked. An inbound call is ringing when the inbound webhook is invoked. If a `callConnectUrl` attribute is also included with the `parentCallId` in the request, this URL will be used as a replacement of the `callConnectUrl` originally assigned in the parent call.
39
39
  attr_accessor :parent_call_id
40
40
 
41
+ # Activate privacy mode in order to obscure log data that can potentially expose private information.
42
+ attr_accessor :privacy_mode
43
+
44
+ # The URL that FreeClimb should use to handle this phone call. If an applicationId or parentCallId have already been provided, this callConnectUrl attribute will be used as a replacement of the callConnectUrl originally assigned in the application or parent call.
45
+ attr_accessor :call_connect_url
46
+
41
47
  # Attribute mapping from ruby-style variable name to JSON key.
42
48
  def self.attribute_map
43
49
  {
@@ -48,7 +54,9 @@ module Freeclimb
48
54
  :'if_machine' => :'ifMachine',
49
55
  :'if_machine_url' => :'ifMachineUrl',
50
56
  :'timeout' => :'timeout',
51
- :'parent_call_id' => :'parentCallId'
57
+ :'parent_call_id' => :'parentCallId',
58
+ :'privacy_mode' => :'privacyMode',
59
+ :'call_connect_url' => :'callConnectUrl'
52
60
  }
53
61
  end
54
62
 
@@ -62,7 +70,9 @@ module Freeclimb
62
70
  :'if_machine' => :'String',
63
71
  :'if_machine_url' => :'String',
64
72
  :'timeout' => :'Integer',
65
- :'parent_call_id' => :'String'
73
+ :'parent_call_id' => :'String',
74
+ :'privacy_mode' => :'Boolean',
75
+ :'call_connect_url' => :'String'
66
76
  }
67
77
  end
68
78
 
@@ -118,6 +128,14 @@ module Freeclimb
118
128
  if attributes.key?(:'parent_call_id')
119
129
  self.parent_call_id = attributes[:'parent_call_id']
120
130
  end
131
+
132
+ if attributes.key?(:'privacy_mode')
133
+ self.privacy_mode = attributes[:'privacy_mode']
134
+ end
135
+
136
+ if attributes.key?(:'call_connect_url')
137
+ self.call_connect_url = attributes[:'call_connect_url']
138
+ end
121
139
  end
122
140
 
123
141
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -132,10 +150,6 @@ module Freeclimb
132
150
  invalid_properties.push('invalid value for "to", to cannot be nil.')
133
151
  end
134
152
 
135
- if @application_id.nil?
136
- invalid_properties.push('invalid value for "application_id", application_id cannot be nil.')
137
- end
138
-
139
153
  invalid_properties
140
154
  end
141
155
 
@@ -144,7 +158,6 @@ module Freeclimb
144
158
  def valid?
145
159
  return false if @from.nil?
146
160
  return false if @to.nil?
147
- return false if @application_id.nil?
148
161
  true
149
162
  end
150
163
 
@@ -160,7 +173,9 @@ module Freeclimb
160
173
  if_machine == o.if_machine &&
161
174
  if_machine_url == o.if_machine_url &&
162
175
  timeout == o.timeout &&
163
- parent_call_id == o.parent_call_id
176
+ parent_call_id == o.parent_call_id &&
177
+ privacy_mode == o.privacy_mode &&
178
+ call_connect_url == o.call_connect_url
164
179
  end
165
180
 
166
181
  # @see the `==` method
@@ -172,7 +187,7 @@ module Freeclimb
172
187
  # Calculates hash code according to all attributes.
173
188
  # @return [Integer] Hash code
174
189
  def hash
175
- [from, to, application_id, send_digits, if_machine, if_machine_url, timeout, parent_call_id].hash
190
+ [from, to, application_id, send_digits, if_machine, if_machine_url, timeout, parent_call_id, privacy_mode, call_connect_url].hash
176
191
  end
177
192
 
178
193
  # Builds the object from hash
@@ -32,7 +32,7 @@ module Freeclimb
32
32
  # String that uniquely identifies this message resource
33
33
  attr_accessor :message_id
34
34
 
35
- # Indicates the state of the message through the message lifecycle including: new, queued, rejected, sending, sent, failed, received
35
+ # Indicates the state of the message through the message lifecycle including: new, queued, rejected, sending, sent, failed, received, undelivered, expired, deleted, and unknown
36
36
  attr_accessor :status
37
37
 
38
38
  # Phone number in E.164 format that sent the message.
@@ -196,7 +196,7 @@ module Freeclimb
196
196
  # Check to see if the all the properties in the model are valid
197
197
  # @return true if the model is valid
198
198
  def valid?
199
- status_validator = EnumAttributeValidator.new('String', ["new", "queued", "rejected", "sending", "sent", "failed", "received", "undelivered"])
199
+ status_validator = EnumAttributeValidator.new('String', ["new", "queued", "rejected", "sending", "sent", "failed", "received", "undelivered", "expired", "deleted", "unknown"])
200
200
  return false unless status_validator.valid?(@status)
201
201
  true
202
202
  end
@@ -204,7 +204,7 @@ module Freeclimb
204
204
  # Custom attribute writer method checking allowed values (enum).
205
205
  # @param [Object] status Object to be assigned
206
206
  def status=(status)
207
- validator = EnumAttributeValidator.new('String', ["new", "queued", "rejected", "sending", "sent", "failed", "received", "undelivered"])
207
+ validator = EnumAttributeValidator.new('String', ["new", "queued", "rejected", "sending", "sent", "failed", "received", "undelivered", "expired", "deleted", "unknown"])
208
208
  unless validator.valid?(status)
209
209
  fail ArgumentError, "invalid value for \"status\", must be one of #{validator.allowable_values}."
210
210
  end
@@ -20,7 +20,7 @@ module Freeclimb
20
20
  # String that uniquely identifies this message resource
21
21
  attr_accessor :message_id
22
22
 
23
- # Indicates the state of the message through the message lifecycle including: new, queued, rejected, sending, sent, failed, received
23
+ # Indicates the state of the message through the message lifecycle including: new, queued, rejected, sending, sent, failed, received, undelivered, expired, deleted, and unknown
24
24
  attr_accessor :status
25
25
 
26
26
  # Phone number in E.164 format that sent the message.
@@ -152,7 +152,7 @@ module Freeclimb
152
152
  # Check to see if the all the properties in the model are valid
153
153
  # @return true if the model is valid
154
154
  def valid?
155
- status_validator = EnumAttributeValidator.new('String', ["new", "queued", "rejected", "sending", "sent", "failed", "received", "undelivered"])
155
+ status_validator = EnumAttributeValidator.new('String', ["new", "queued", "rejected", "sending", "sent", "failed", "received", "undelivered", "expired", "deleted", "unknown"])
156
156
  return false unless status_validator.valid?(@status)
157
157
  true
158
158
  end
@@ -160,7 +160,7 @@ module Freeclimb
160
160
  # Custom attribute writer method checking allowed values (enum).
161
161
  # @param [Object] status Object to be assigned
162
162
  def status=(status)
163
- validator = EnumAttributeValidator.new('String', ["new", "queued", "rejected", "sending", "sent", "failed", "received", "undelivered"])
163
+ validator = EnumAttributeValidator.new('String', ["new", "queued", "rejected", "sending", "sent", "failed", "received", "undelivered", "expired", "deleted", "unknown"])
164
164
  unless validator.valid?(status)
165
165
  fail ArgumentError, "invalid value for \"status\", must be one of #{validator.allowable_values}."
166
166
  end
@@ -42,6 +42,9 @@ module Freeclimb
42
42
  # Maximum time in seconds the `OutDial` command waits for the called party to answer the Call. When a timeout occurs, FreeClimb invokes the `callConnectUrl` Webhook to report that the out-dialed Call has ended with a status of `noAnswer`.
43
43
  attr_accessor :timeout
44
44
 
45
+ # Parameter `privacyMode` will not log the `text` as required by PCI compliance.
46
+ attr_accessor :privacy_mode
47
+
45
48
  # Attribute mapping from ruby-style variable name to JSON key.
46
49
  def self.attribute_map
47
50
  {
@@ -53,7 +56,8 @@ module Freeclimb
53
56
  :'if_machine_url' => :'ifMachineUrl',
54
57
  :'send_digits' => :'sendDigits',
55
58
  :'status_callback_url' => :'statusCallbackUrl',
56
- :'timeout' => :'timeout'
59
+ :'timeout' => :'timeout',
60
+ :'privacy_mode' => :'privacyMode'
57
61
  }
58
62
  end
59
63
 
@@ -68,7 +72,8 @@ module Freeclimb
68
72
  :'if_machine_url' => :'String',
69
73
  :'send_digits' => :'String',
70
74
  :'status_callback_url' => :'String',
71
- :'timeout' => :'Integer'
75
+ :'timeout' => :'Integer',
76
+ :'privacy_mode' => :'Boolean'
72
77
  }
73
78
  end
74
79
 
@@ -139,6 +144,10 @@ module Freeclimb
139
144
  if attributes.key?(:'timeout')
140
145
  self.timeout = attributes[:'timeout']
141
146
  end
147
+
148
+ if attributes.key?(:'privacy_mode')
149
+ self.privacy_mode = attributes[:'privacy_mode']
150
+ end
142
151
  end
143
152
 
144
153
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -187,7 +196,8 @@ module Freeclimb
187
196
  if_machine_url == o.if_machine_url &&
188
197
  send_digits == o.send_digits &&
189
198
  status_callback_url == o.status_callback_url &&
190
- timeout == o.timeout && super(o)
199
+ timeout == o.timeout &&
200
+ privacy_mode == o.privacy_mode && super(o)
191
201
  end
192
202
 
193
203
  # @see the `==` method
@@ -199,7 +209,7 @@ module Freeclimb
199
209
  # Calculates hash code according to all attributes.
200
210
  # @return [Integer] Hash code
201
211
  def hash
202
- [action_url, call_connect_url, calling_number, destination, if_machine, if_machine_url, send_digits, status_callback_url, timeout].hash
212
+ [action_url, call_connect_url, calling_number, destination, if_machine, if_machine_url, send_digits, status_callback_url, timeout, privacy_mode].hash
203
213
  end
204
214
 
205
215
  # Builds the object from hash
@@ -41,6 +41,9 @@ module Freeclimb
41
41
  # Maximum time in seconds the `OutDial` command waits for the called party to answer the Call. When a timeout occurs, FreeClimb invokes the `callConnectUrl` Webhook to report that the out-dialed Call has ended with a status of `noAnswer`.
42
42
  attr_accessor :timeout
43
43
 
44
+ # Parameter `privacyMode` will not log the `text` as required by PCI compliance.
45
+ attr_accessor :privacy_mode
46
+
44
47
  # Attribute mapping from ruby-style variable name to JSON key.
45
48
  def self.attribute_map
46
49
  {
@@ -52,7 +55,8 @@ module Freeclimb
52
55
  :'if_machine_url' => :'ifMachineUrl',
53
56
  :'send_digits' => :'sendDigits',
54
57
  :'status_callback_url' => :'statusCallbackUrl',
55
- :'timeout' => :'timeout'
58
+ :'timeout' => :'timeout',
59
+ :'privacy_mode' => :'privacyMode'
56
60
  }
57
61
  end
58
62
 
@@ -67,7 +71,8 @@ module Freeclimb
67
71
  :'if_machine_url' => :'String',
68
72
  :'send_digits' => :'String',
69
73
  :'status_callback_url' => :'String',
70
- :'timeout' => :'Integer'
74
+ :'timeout' => :'Integer',
75
+ :'privacy_mode' => :'Boolean'
71
76
  }
72
77
  end
73
78
 
@@ -127,6 +132,10 @@ module Freeclimb
127
132
  if attributes.key?(:'timeout')
128
133
  self.timeout = attributes[:'timeout']
129
134
  end
135
+
136
+ if attributes.key?(:'privacy_mode')
137
+ self.privacy_mode = attributes[:'privacy_mode']
138
+ end
130
139
  end
131
140
 
132
141
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -175,7 +184,8 @@ module Freeclimb
175
184
  if_machine_url == o.if_machine_url &&
176
185
  send_digits == o.send_digits &&
177
186
  status_callback_url == o.status_callback_url &&
178
- timeout == o.timeout
187
+ timeout == o.timeout &&
188
+ privacy_mode == o.privacy_mode
179
189
  end
180
190
 
181
191
  # @see the `==` method
@@ -187,7 +197,7 @@ module Freeclimb
187
197
  # Calculates hash code according to all attributes.
188
198
  # @return [Integer] Hash code
189
199
  def hash
190
- [action_url, call_connect_url, calling_number, destination, if_machine, if_machine_url, send_digits, status_callback_url, timeout].hash
200
+ [action_url, call_connect_url, calling_number, destination, if_machine, if_machine_url, send_digits, status_callback_url, timeout, privacy_mode].hash
191
201
  end
192
202
 
193
203
  # Builds the object from hash