freeclimb 1.0.3 → 2.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +89 -0
- data/Gemfile.lock +1 -1
- data/README.md +11 -5
- data/docs/AccountRequest.md +1 -3
- data/docs/ApplicationRequest.md +1 -3
- data/docs/BuyIncomingNumberRequest.md +1 -3
- data/docs/CreateConferenceRequest.md +1 -3
- data/docs/DefaultApi.md +22 -38
- data/docs/FilterLogsRequest.md +1 -3
- data/docs/GetDigits.md +3 -1
- data/docs/GetDigitsAllOf.md +3 -1
- data/docs/GetSpeech.md +2 -2
- data/docs/GetSpeechAllOf.md +2 -2
- data/docs/Hangup.md +17 -0
- data/docs/HangupAllOf.md +17 -0
- data/docs/IncomingNumberRequest.md +1 -3
- data/docs/MakeCallRequest.md +3 -3
- data/docs/MessageRequest.md +0 -2
- data/docs/MessageRequestAllOf.md +0 -2
- data/docs/MessageResult.md +1 -1
- data/docs/MessageResultAllOf.md +1 -1
- data/docs/OutDial.md +3 -1
- data/docs/OutDialAllOf.md +3 -1
- data/docs/Play.md +3 -1
- data/docs/PlayAllOf.md +3 -1
- data/docs/QueueRequest.md +1 -3
- data/docs/Redirect.md +1 -1
- data/docs/RedirectAllOf.md +1 -1
- data/docs/Reject.md +17 -0
- data/docs/RejectAllOf.md +17 -0
- data/docs/Say.md +2 -2
- data/docs/SayAllOf.md +2 -2
- data/docs/SendDigits.md +3 -1
- data/docs/SendDigitsAllOf.md +3 -1
- data/docs/UpdateCallRequest.md +1 -3
- data/docs/UpdateConferenceParticipantRequest.md +1 -3
- data/docs/UpdateConferenceRequest.md +1 -3
- data/freeclimb-2.0.3.gem +0 -0
- data/lib/freeclimb.rb +4 -1
- data/lib/freeclimb/api/default_api.rb +42 -34
- data/lib/freeclimb/api_client.rb +1 -1
- data/lib/freeclimb/models/account_request.rb +4 -14
- data/lib/freeclimb/models/application_request.rb +4 -14
- data/lib/freeclimb/models/buy_incoming_number_request.rb +4 -14
- data/lib/freeclimb/models/create_conference_request.rb +4 -14
- data/lib/freeclimb/models/filter_logs_request.rb +4 -14
- data/lib/freeclimb/models/get_digits.rb +14 -4
- data/lib/freeclimb/models/get_digits_all_of.rb +14 -4
- data/lib/freeclimb/models/get_speech.rb +8 -8
- data/lib/freeclimb/models/get_speech_all_of.rb +8 -8
- data/lib/freeclimb/models/hangup.rb +220 -0
- data/lib/freeclimb/models/{dequeue_member_request.rb → hangup_all_of.rb} +11 -11
- data/lib/freeclimb/models/incoming_number_request.rb +4 -14
- data/lib/freeclimb/models/make_call_request.rb +14 -14
- data/lib/freeclimb/models/message_request.rb +1 -11
- data/lib/freeclimb/models/message_request_all_of.rb +1 -11
- data/lib/freeclimb/models/message_result.rb +3 -3
- data/lib/freeclimb/models/message_result_all_of.rb +3 -3
- data/lib/freeclimb/models/out_dial.rb +14 -4
- data/lib/freeclimb/models/out_dial_all_of.rb +14 -4
- data/lib/freeclimb/models/play.rb +14 -4
- data/lib/freeclimb/models/play_all_of.rb +14 -4
- data/lib/freeclimb/models/queue_request.rb +4 -14
- data/lib/freeclimb/models/redirect.rb +7 -2
- data/lib/freeclimb/models/redirect_all_of.rb +6 -1
- data/lib/freeclimb/models/reject.rb +220 -0
- data/lib/freeclimb/models/reject_all_of.rb +207 -0
- data/lib/freeclimb/models/say.rb +8 -8
- data/lib/freeclimb/models/say_all_of.rb +8 -8
- data/lib/freeclimb/models/send_digits.rb +14 -4
- data/lib/freeclimb/models/send_digits_all_of.rb +14 -4
- data/lib/freeclimb/models/update_call_request.rb +4 -14
- data/lib/freeclimb/models/update_conference_participant_request.rb +4 -14
- data/lib/freeclimb/models/update_conference_request.rb +4 -14
- data/lib/freeclimb/version.rb +1 -1
- data/spec/api/default_api_spec.rb +9 -24
- data/spec/models/hangup_spec.rb +41 -0
- data/spec/models/reject_spec.rb +41 -0
- metadata +16 -6
- data/docs/DequeueMemberRequest.md +0 -17
- data/spec/models/dequeue_member_request_spec.rb +0 -34
@@ -13,21 +13,21 @@ OpenAPI Generator version: 4.3.0-SNAPSHOT
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module Freeclimb
|
16
|
-
class
|
17
|
-
#
|
18
|
-
attr_accessor :
|
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
19
|
|
20
20
|
# Attribute mapping from ruby-style variable name to JSON key.
|
21
21
|
def self.attribute_map
|
22
22
|
{
|
23
|
-
:'
|
23
|
+
:'reason' => :'reason'
|
24
24
|
}
|
25
25
|
end
|
26
26
|
|
27
27
|
# Attribute type mapping.
|
28
28
|
def self.openapi_types
|
29
29
|
{
|
30
|
-
:'
|
30
|
+
:'reason' => :'String'
|
31
31
|
}
|
32
32
|
end
|
33
33
|
|
@@ -41,19 +41,19 @@ module Freeclimb
|
|
41
41
|
# @param [Hash] attributes Model attributes in the form of hash
|
42
42
|
def initialize(attributes = {})
|
43
43
|
if (!attributes.is_a?(Hash))
|
44
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `Freeclimb::
|
44
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Freeclimb::HangupAllOf` initialize method"
|
45
45
|
end
|
46
46
|
|
47
47
|
# check to see if the attribute exists and convert string to symbol for hash key
|
48
48
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
49
49
|
if (!self.class.attribute_map.key?(k.to_sym))
|
50
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Freeclimb::
|
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
51
|
end
|
52
52
|
h[k.to_sym] = v
|
53
53
|
}
|
54
54
|
|
55
|
-
if attributes.key?(:'
|
56
|
-
self.
|
55
|
+
if attributes.key?(:'reason')
|
56
|
+
self.reason = attributes[:'reason']
|
57
57
|
end
|
58
58
|
end
|
59
59
|
|
@@ -75,7 +75,7 @@ module Freeclimb
|
|
75
75
|
def ==(o)
|
76
76
|
return true if self.equal?(o)
|
77
77
|
self.class == o.class &&
|
78
|
-
|
78
|
+
reason == o.reason
|
79
79
|
end
|
80
80
|
|
81
81
|
# @see the `==` method
|
@@ -87,7 +87,7 @@ module Freeclimb
|
|
87
87
|
# Calculates hash code according to all attributes.
|
88
88
|
# @return [Integer] Hash code
|
89
89
|
def hash
|
90
|
-
[
|
90
|
+
[reason].hash
|
91
91
|
end
|
92
92
|
|
93
93
|
# Builds the object from hash
|
@@ -20,15 +20,11 @@ module Freeclimb
|
|
20
20
|
# Description for this phone number.
|
21
21
|
attr_accessor :_alias
|
22
22
|
|
23
|
-
# RequestId for this request starting with prefix `RQ` followed by 40 hexadecimal characters. FreeClimb logs that are generated while processing this request will include this requestId. If it is not provided, FreeClimb will generate a requestId and return it as a header in the response (e.g., `X-Pulse-Request-Id: <requestId>`).
|
24
|
-
attr_accessor :request_id
|
25
|
-
|
26
23
|
# Attribute mapping from ruby-style variable name to JSON key.
|
27
24
|
def self.attribute_map
|
28
25
|
{
|
29
26
|
:'application_id' => :'applicationId',
|
30
|
-
:'_alias' => :'alias'
|
31
|
-
:'request_id' => :'requestID'
|
27
|
+
:'_alias' => :'alias'
|
32
28
|
}
|
33
29
|
end
|
34
30
|
|
@@ -36,8 +32,7 @@ module Freeclimb
|
|
36
32
|
def self.openapi_types
|
37
33
|
{
|
38
34
|
:'application_id' => :'String',
|
39
|
-
:'_alias' => :'String'
|
40
|
-
:'request_id' => :'String'
|
35
|
+
:'_alias' => :'String'
|
41
36
|
}
|
42
37
|
end
|
43
38
|
|
@@ -69,10 +64,6 @@ module Freeclimb
|
|
69
64
|
if attributes.key?(:'_alias')
|
70
65
|
self._alias = attributes[:'_alias']
|
71
66
|
end
|
72
|
-
|
73
|
-
if attributes.key?(:'request_id')
|
74
|
-
self.request_id = attributes[:'request_id']
|
75
|
-
end
|
76
67
|
end
|
77
68
|
|
78
69
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -94,8 +85,7 @@ module Freeclimb
|
|
94
85
|
return true if self.equal?(o)
|
95
86
|
self.class == o.class &&
|
96
87
|
application_id == o.application_id &&
|
97
|
-
_alias == o._alias
|
98
|
-
request_id == o.request_id
|
88
|
+
_alias == o._alias
|
99
89
|
end
|
100
90
|
|
101
91
|
# @see the `==` method
|
@@ -107,7 +97,7 @@ module Freeclimb
|
|
107
97
|
# Calculates hash code according to all attributes.
|
108
98
|
# @return [Integer] Hash code
|
109
99
|
def hash
|
110
|
-
[application_id, _alias
|
100
|
+
[application_id, _alias].hash
|
111
101
|
end
|
112
102
|
|
113
103
|
# Builds the object from hash
|
@@ -35,12 +35,12 @@ 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 requestId for this request starting with prefix \"RQ\" followed by 40 hexadecimal characters. FreeClimb logs generated while processing this request will include this requestId. If it is not provided, FreeClimb will generate a requestId and return it as a header in the response (e.g. `X-Pulse-Request-Id: <requestId>`).
|
39
|
-
attr_accessor :request_id
|
40
|
-
|
41
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.
|
42
39
|
attr_accessor :parent_call_id
|
43
40
|
|
41
|
+
# Activate privacy mode in order to obscure log data that can potentially expose private information.
|
42
|
+
attr_accessor :privacy_mode
|
43
|
+
|
44
44
|
# Attribute mapping from ruby-style variable name to JSON key.
|
45
45
|
def self.attribute_map
|
46
46
|
{
|
@@ -51,8 +51,8 @@ module Freeclimb
|
|
51
51
|
:'if_machine' => :'ifMachine',
|
52
52
|
:'if_machine_url' => :'ifMachineUrl',
|
53
53
|
:'timeout' => :'timeout',
|
54
|
-
:'
|
55
|
-
:'
|
54
|
+
:'parent_call_id' => :'parentCallId',
|
55
|
+
:'privacy_mode' => :'privacyMode'
|
56
56
|
}
|
57
57
|
end
|
58
58
|
|
@@ -66,8 +66,8 @@ module Freeclimb
|
|
66
66
|
:'if_machine' => :'String',
|
67
67
|
:'if_machine_url' => :'String',
|
68
68
|
:'timeout' => :'Integer',
|
69
|
-
:'
|
70
|
-
:'
|
69
|
+
:'parent_call_id' => :'String',
|
70
|
+
:'privacy_mode' => :'Boolean'
|
71
71
|
}
|
72
72
|
end
|
73
73
|
|
@@ -120,13 +120,13 @@ module Freeclimb
|
|
120
120
|
self.timeout = attributes[:'timeout']
|
121
121
|
end
|
122
122
|
|
123
|
-
if attributes.key?(:'request_id')
|
124
|
-
self.request_id = attributes[:'request_id']
|
125
|
-
end
|
126
|
-
|
127
123
|
if attributes.key?(:'parent_call_id')
|
128
124
|
self.parent_call_id = attributes[:'parent_call_id']
|
129
125
|
end
|
126
|
+
|
127
|
+
if attributes.key?(:'privacy_mode')
|
128
|
+
self.privacy_mode = attributes[:'privacy_mode']
|
129
|
+
end
|
130
130
|
end
|
131
131
|
|
132
132
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -169,8 +169,8 @@ module Freeclimb
|
|
169
169
|
if_machine == o.if_machine &&
|
170
170
|
if_machine_url == o.if_machine_url &&
|
171
171
|
timeout == o.timeout &&
|
172
|
-
|
173
|
-
|
172
|
+
parent_call_id == o.parent_call_id &&
|
173
|
+
privacy_mode == o.privacy_mode
|
174
174
|
end
|
175
175
|
|
176
176
|
# @see the `==` method
|
@@ -182,7 +182,7 @@ module Freeclimb
|
|
182
182
|
# Calculates hash code according to all attributes.
|
183
183
|
# @return [Integer] Hash code
|
184
184
|
def hash
|
185
|
-
[from, to, application_id, send_digits, if_machine, if_machine_url, timeout,
|
185
|
+
[from, to, application_id, send_digits, if_machine, if_machine_url, timeout, parent_call_id, privacy_mode].hash
|
186
186
|
end
|
187
187
|
|
188
188
|
# Builds the object from hash
|
@@ -38,9 +38,6 @@ module Freeclimb
|
|
38
38
|
# 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.
|
39
39
|
attr_accessor :notification_url
|
40
40
|
|
41
|
-
# RequestId for this request, starting with prefix *RQ* followed by 40 hexadecimal characters. FreeClimb logs generated while processing this request include this requestId. If it is not provided, FreeClimb will generate a requestId and return it as a header in the response (e.g., X-Pulse-Request-Id: <requestId>).
|
42
|
-
attr_accessor :request_id
|
43
|
-
|
44
41
|
# String that uniquely identifies this account resource.
|
45
42
|
attr_accessor :account_id
|
46
43
|
|
@@ -55,7 +52,6 @@ module Freeclimb
|
|
55
52
|
:'to' => :'to',
|
56
53
|
:'text' => :'text',
|
57
54
|
:'notification_url' => :'notificationUrl',
|
58
|
-
:'request_id' => :'requestId',
|
59
55
|
:'account_id' => :'accountId'
|
60
56
|
}
|
61
57
|
end
|
@@ -71,7 +67,6 @@ module Freeclimb
|
|
71
67
|
:'to' => :'String',
|
72
68
|
:'text' => :'String',
|
73
69
|
:'notification_url' => :'String',
|
74
|
-
:'request_id' => :'String',
|
75
70
|
:'account_id' => :'String'
|
76
71
|
}
|
77
72
|
end
|
@@ -137,10 +132,6 @@ module Freeclimb
|
|
137
132
|
self.notification_url = attributes[:'notification_url']
|
138
133
|
end
|
139
134
|
|
140
|
-
if attributes.key?(:'request_id')
|
141
|
-
self.request_id = attributes[:'request_id']
|
142
|
-
end
|
143
|
-
|
144
135
|
if attributes.key?(:'account_id')
|
145
136
|
self.account_id = attributes[:'account_id']
|
146
137
|
end
|
@@ -187,7 +178,6 @@ module Freeclimb
|
|
187
178
|
to == o.to &&
|
188
179
|
text == o.text &&
|
189
180
|
notification_url == o.notification_url &&
|
190
|
-
request_id == o.request_id &&
|
191
181
|
account_id == o.account_id
|
192
182
|
end
|
193
183
|
|
@@ -200,7 +190,7 @@ module Freeclimb
|
|
200
190
|
# Calculates hash code according to all attributes.
|
201
191
|
# @return [Integer] Hash code
|
202
192
|
def hash
|
203
|
-
[uri, date_created, date_updated, revision, from, to, text, notification_url,
|
193
|
+
[uri, date_created, date_updated, revision, from, to, text, notification_url, account_id].hash
|
204
194
|
end
|
205
195
|
|
206
196
|
# Builds the object from hash
|
@@ -26,9 +26,6 @@ module Freeclimb
|
|
26
26
|
# 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.
|
27
27
|
attr_accessor :notification_url
|
28
28
|
|
29
|
-
# RequestId for this request, starting with prefix *RQ* followed by 40 hexadecimal characters. FreeClimb logs generated while processing this request include this requestId. If it is not provided, FreeClimb will generate a requestId and return it as a header in the response (e.g., X-Pulse-Request-Id: <requestId>).
|
30
|
-
attr_accessor :request_id
|
31
|
-
|
32
29
|
# String that uniquely identifies this account resource.
|
33
30
|
attr_accessor :account_id
|
34
31
|
|
@@ -39,7 +36,6 @@ module Freeclimb
|
|
39
36
|
:'to' => :'to',
|
40
37
|
:'text' => :'text',
|
41
38
|
:'notification_url' => :'notificationUrl',
|
42
|
-
:'request_id' => :'requestId',
|
43
39
|
:'account_id' => :'accountId'
|
44
40
|
}
|
45
41
|
end
|
@@ -51,7 +47,6 @@ module Freeclimb
|
|
51
47
|
:'to' => :'String',
|
52
48
|
:'text' => :'String',
|
53
49
|
:'notification_url' => :'String',
|
54
|
-
:'request_id' => :'String',
|
55
50
|
:'account_id' => :'String'
|
56
51
|
}
|
57
52
|
end
|
@@ -93,10 +88,6 @@ module Freeclimb
|
|
93
88
|
self.notification_url = attributes[:'notification_url']
|
94
89
|
end
|
95
90
|
|
96
|
-
if attributes.key?(:'request_id')
|
97
|
-
self.request_id = attributes[:'request_id']
|
98
|
-
end
|
99
|
-
|
100
91
|
if attributes.key?(:'account_id')
|
101
92
|
self.account_id = attributes[:'account_id']
|
102
93
|
end
|
@@ -139,7 +130,6 @@ module Freeclimb
|
|
139
130
|
to == o.to &&
|
140
131
|
text == o.text &&
|
141
132
|
notification_url == o.notification_url &&
|
142
|
-
request_id == o.request_id &&
|
143
133
|
account_id == o.account_id
|
144
134
|
end
|
145
135
|
|
@@ -152,7 +142,7 @@ module Freeclimb
|
|
152
142
|
# Calculates hash code according to all attributes.
|
153
143
|
# @return [Integer] Hash code
|
154
144
|
def hash
|
155
|
-
[from, to, text, notification_url,
|
145
|
+
[from, to, text, notification_url, account_id].hash
|
156
146
|
end
|
157
147
|
|
158
148
|
# 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 &&
|
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
|