freeclimb 4.5.2 → 4.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +20 -0
- data/Gemfile.lock +1 -1
- data/README.md +15 -7
- data/docs/AddToConference.md +0 -2
- data/docs/AddToConferenceAllOf.md +0 -2
- data/docs/CreateWebRTCToken.md +22 -0
- data/docs/DefaultApi.md +303 -7
- data/docs/GetDigits.md +1 -1
- data/docs/GetDigitsAllOf.md +1 -1
- data/docs/IncomingNumberResult.md +3 -1
- data/docs/IncomingNumberResultAllOf.md +3 -1
- data/docs/MessageRequest.md +2 -2
- data/docs/MessageRequestAllOf.md +2 -2
- data/docs/MessageResult.md +3 -1
- data/docs/MessageResultAllOf.md +3 -1
- data/docs/Play.md +0 -2
- data/docs/PlayAllOf.md +0 -2
- data/docs/RemoveFromConference.md +1 -4
- data/docs/SMSTenDLCCampaign.md +10 -0
- data/docs/SMSTollFreeCampaign.md +30 -0
- data/docs/SMSTollFreeCampaignsListResult.md +32 -0
- data/docs/SMSTollFreeCampaignsListResultAllOf.md +18 -0
- data/docs/Say.md +0 -2
- data/docs/SayAllOf.md +0 -2
- data/docs/SetListen.md +0 -2
- data/docs/SetListenAllOf.md +0 -2
- data/docs/SetTalk.md +0 -2
- data/docs/SetTalkAllOf.md +0 -2
- data/docs/TFN.md +18 -0
- data/docs/TerminateConference.md +1 -4
- data/docs/TranscribeUtterance.md +1 -1
- data/docs/TranscribeUtteranceAllOf.md +28 -0
- data/docs/TranscribeUtteranceAllOfRecord.md +22 -0
- data/lib/freeclimb/api/default_api.rb +262 -7
- data/lib/freeclimb/models/account_request.rb +0 -2
- data/lib/freeclimb/models/account_result.rb +0 -6
- data/lib/freeclimb/models/add_to_conference.rb +1 -29
- data/lib/freeclimb/models/add_to_conference_all_of.rb +1 -29
- data/lib/freeclimb/models/application_result.rb +0 -6
- data/lib/freeclimb/models/buy_incoming_number_request.rb +0 -4
- data/lib/freeclimb/models/call_result.rb +0 -6
- data/lib/freeclimb/models/conference_participant_result.rb +0 -6
- data/lib/freeclimb/models/conference_result.rb +0 -6
- data/lib/freeclimb/models/create_conference.rb +0 -8
- data/lib/freeclimb/models/create_conference_all_of.rb +0 -8
- data/lib/freeclimb/models/create_conference_request.rb +0 -6
- data/lib/freeclimb/models/create_web_rtc_token.rb +274 -0
- data/lib/freeclimb/models/dequeue.rb +1 -0
- data/lib/freeclimb/models/enqueue.rb +0 -6
- data/lib/freeclimb/models/enqueue_all_of.rb +0 -6
- data/lib/freeclimb/models/get_digits.rb +1 -17
- data/lib/freeclimb/models/get_digits_all_of.rb +1 -17
- data/lib/freeclimb/models/get_speech.rb +0 -22
- data/lib/freeclimb/models/get_speech_all_of.rb +0 -22
- data/lib/freeclimb/models/incoming_number_request.rb +0 -2
- data/lib/freeclimb/models/incoming_number_result.rb +14 -13
- data/lib/freeclimb/models/incoming_number_result_all_of.rb +14 -5
- data/lib/freeclimb/models/make_call_request.rb +0 -18
- data/lib/freeclimb/models/message_request.rb +10 -24
- data/lib/freeclimb/models/message_request_all_of.rb +10 -16
- data/lib/freeclimb/models/message_result.rb +17 -11
- data/lib/freeclimb/models/message_result_all_of.rb +17 -5
- data/lib/freeclimb/models/mutable_resource_model.rb +0 -6
- data/lib/freeclimb/models/out_dial.rb +0 -18
- data/lib/freeclimb/models/out_dial_all_of.rb +0 -18
- data/lib/freeclimb/models/park.rb +0 -4
- data/lib/freeclimb/models/park_all_of.rb +0 -4
- data/lib/freeclimb/models/play.rb +1 -17
- data/lib/freeclimb/models/play_all_of.rb +1 -17
- data/lib/freeclimb/models/queue_request.rb +0 -2
- data/lib/freeclimb/models/queue_result.rb +0 -6
- data/lib/freeclimb/models/record_utterance.rb +0 -12
- data/lib/freeclimb/models/record_utterance_all_of.rb +0 -12
- data/lib/freeclimb/models/recording_result.rb +0 -6
- data/lib/freeclimb/models/remove_from_conference.rb +4 -23
- data/lib/freeclimb/models/say.rb +1 -19
- data/lib/freeclimb/models/say_all_of.rb +1 -19
- data/lib/freeclimb/models/send_digits.rb +0 -4
- data/lib/freeclimb/models/send_digits_all_of.rb +0 -4
- data/lib/freeclimb/models/set_listen.rb +2 -18
- data/lib/freeclimb/models/set_listen_all_of.rb +2 -18
- data/lib/freeclimb/models/set_talk.rb +2 -18
- data/lib/freeclimb/models/set_talk_all_of.rb +2 -18
- data/lib/freeclimb/models/sms.rb +0 -6
- data/lib/freeclimb/models/sms_all_of.rb +0 -6
- data/lib/freeclimb/models/sms_ten_dlc_brand.rb +0 -60
- data/lib/freeclimb/models/sms_ten_dlc_campaign.rb +121 -41
- data/lib/freeclimb/models/sms_ten_dlc_partner_campaign.rb +0 -44
- data/lib/freeclimb/models/sms_ten_dlc_partner_campaign_brand.rb +0 -20
- data/lib/freeclimb/models/sms_toll_free_campaign.rb +337 -0
- data/lib/freeclimb/models/sms_toll_free_campaigns_list_result.rb +311 -0
- data/lib/freeclimb/models/{remove_from_conference_all_of.rb → sms_toll_free_campaigns_list_result_all_of.rb} +14 -16
- data/lib/freeclimb/models/start_record_call.rb +1 -0
- data/lib/freeclimb/models/terminate_conference.rb +4 -23
- data/lib/freeclimb/models/{terminate_conference_all_of.rb → tfn.rb} +15 -14
- data/lib/freeclimb/models/transcribe_utterance.rb +11 -16
- data/lib/freeclimb/models/transcribe_utterance_all_of.rb +281 -0
- data/lib/freeclimb/models/{transcribe_utterance_record.rb → transcribe_utterance_all_of_record.rb} +3 -7
- data/lib/freeclimb/models/unpark.rb +1 -0
- data/lib/freeclimb/models/update_conference_participant_request.rb +0 -2
- data/lib/freeclimb/models/update_conference_request.rb +0 -2
- data/lib/freeclimb/version.rb +1 -1
- data/lib/freeclimb.rb +8 -4
- data/openapi.json +407 -88
- data/package.json +8 -0
- data/spec/api/default_api_spec.rb +215 -55
- data/spec/models/account_request_spec.rb +8 -6
- data/spec/models/account_result_spec.rb +28 -9
- data/spec/models/add_to_conference_spec.rb +21 -37
- data/spec/models/application_list_spec.rb +46 -22
- data/spec/models/application_request_spec.rb +13 -6
- data/spec/models/application_result_spec.rb +24 -9
- data/spec/models/available_number_list_spec.rb +46 -22
- data/spec/models/available_number_spec.rb +23 -10
- data/spec/models/buy_incoming_number_request_spec.rb +11 -7
- data/spec/models/call_list_spec.rb +46 -22
- data/spec/models/call_result_spec.rb +49 -15
- data/spec/models/capabilities_spec.rb +26 -11
- data/spec/models/conference_list_spec.rb +46 -22
- data/spec/models/conference_participant_list_spec.rb +46 -22
- data/spec/models/conference_participant_result_spec.rb +24 -9
- data/spec/models/conference_result_spec.rb +32 -9
- data/spec/models/create_conference_request_spec.rb +15 -6
- data/spec/models/create_conference_spec.rb +19 -7
- data/spec/models/create_web_rtc_token_spec.rb +231 -0
- data/spec/models/enqueue_spec.rb +16 -9
- data/spec/models/filter_logs_request_spec.rb +9 -7
- data/spec/models/get_digits_spec.rb +59 -35
- data/spec/models/get_speech_spec.rb +60 -24
- data/spec/models/hangup_spec.rb +7 -6
- data/spec/models/incoming_number_list_spec.rb +46 -22
- data/spec/models/incoming_number_request_spec.rb +9 -6
- data/spec/models/incoming_number_result_spec.rb +68 -13
- data/spec/models/log_list_spec.rb +46 -22
- data/spec/models/log_result_spec.rb +21 -9
- data/spec/models/make_call_request_spec.rb +26 -11
- data/spec/models/message_request_spec.rb +49 -35
- data/spec/models/message_result_spec.rb +64 -11
- data/spec/models/messages_list_spec.rb +46 -22
- data/spec/models/mutable_resource_model_spec.rb +15 -9
- data/spec/models/out_dial_spec.rb +33 -13
- data/spec/models/pagination_model_spec.rb +40 -21
- data/spec/models/park_spec.rb +13 -8
- data/spec/models/pause_spec.rb +14 -10
- data/spec/models/percl_command_spec.rb +6 -6
- data/spec/models/percl_script_spec.rb +11 -6
- data/spec/models/play_early_media_spec.rb +9 -7
- data/spec/models/play_spec.rb +17 -40
- data/spec/models/queue_list_spec.rb +46 -22
- data/spec/models/queue_member_list_spec.rb +46 -22
- data/spec/models/queue_member_spec.rb +21 -12
- data/spec/models/queue_request_spec.rb +13 -9
- data/spec/models/queue_result_spec.rb +37 -18
- data/spec/models/record_utterance_spec.rb +28 -13
- data/spec/models/recording_list_spec.rb +46 -22
- data/spec/models/recording_result_spec.rb +25 -12
- data/spec/models/redirect_spec.rb +9 -7
- data/spec/models/reject_spec.rb +7 -6
- data/spec/models/remove_from_conference_spec.rb +0 -133
- data/spec/models/say_spec.rb +18 -40
- data/spec/models/send_digits_spec.rb +17 -10
- data/spec/models/set_listen_spec.rb +8 -37
- data/spec/models/set_talk_spec.rb +8 -37
- data/spec/models/sms_spec.rb +16 -9
- data/spec/models/sms_ten_dlc_brand_spec.rb +38 -4
- data/spec/models/sms_ten_dlc_brands_list_result_spec.rb +46 -22
- data/spec/models/sms_ten_dlc_campaign_spec.rb +228 -4
- data/spec/models/sms_ten_dlc_campaigns_list_result_spec.rb +46 -22
- data/spec/models/sms_ten_dlc_partner_campaign_brand_spec.rb +25 -7
- data/spec/models/sms_ten_dlc_partner_campaign_spec.rb +56 -8
- data/spec/models/sms_ten_dlc_partner_campaigns_list_result_spec.rb +46 -22
- data/spec/models/sms_toll_free_campaign_spec.rb +382 -0
- data/spec/models/sms_toll_free_campaigns_list_result_spec.rb +395 -0
- data/spec/models/terminate_conference_spec.rb +0 -133
- data/spec/models/tfn_spec.rb +164 -0
- data/spec/models/{transcribe_utterance_record_spec.rb → transcribe_utterance_all_of_record_spec.rb} +78 -67
- data/spec/models/transcribe_utterance_spec.rb +37 -96
- data/spec/models/update_call_request_spec.rb +12 -7
- data/spec/models/update_conference_participant_request_spec.rb +10 -6
- data/spec/models/update_conference_request_spec.rb +15 -6
- data/yarn.lock +1292 -0
- metadata +105 -84
@@ -24,9 +24,6 @@ module Freeclimb
|
|
24
24
|
# Number of times the text is said. Specifying '0' causes the `Say` action to loop until the Call is hung up.
|
25
25
|
attr_accessor :loop
|
26
26
|
|
27
|
-
# D of the Conference the speech should be rendered to. If this is not specified, the speech is by default rendered to the Caller associated with the call leg that corresponds to the current PerCL execution context. The call leg associated with this command must be in the specified Conference or the command will return an error.
|
28
|
-
attr_accessor :conference_id
|
29
|
-
|
30
27
|
# Parameter `privacyMode` will not log the `text` as required by PCI compliance.
|
31
28
|
attr_accessor :privacy_mode
|
32
29
|
|
@@ -36,7 +33,6 @@ module Freeclimb
|
|
36
33
|
:'text' => :'text',
|
37
34
|
:'language' => :'language',
|
38
35
|
:'loop' => :'loop',
|
39
|
-
:'conference_id' => :'conferenceId',
|
40
36
|
:'privacy_mode' => :'privacyMode'
|
41
37
|
}
|
42
38
|
end
|
@@ -52,7 +48,6 @@ module Freeclimb
|
|
52
48
|
:'text' => :'String',
|
53
49
|
:'language' => :'String',
|
54
50
|
:'loop' => :'Integer',
|
55
|
-
:'conference_id' => :'String',
|
56
51
|
:'privacy_mode' => :'Boolean'
|
57
52
|
}
|
58
53
|
end
|
@@ -92,10 +87,6 @@ module Freeclimb
|
|
92
87
|
self.loop = 1
|
93
88
|
end
|
94
89
|
|
95
|
-
if attributes.key?(:'conference_id')
|
96
|
-
self.conference_id = attributes[:'conference_id']
|
97
|
-
end
|
98
|
-
|
99
90
|
if attributes.key?(:'privacy_mode')
|
100
91
|
self.privacy_mode = attributes[:'privacy_mode']
|
101
92
|
end
|
@@ -118,14 +109,6 @@ module Freeclimb
|
|
118
109
|
|
119
110
|
if @text.nil?
|
120
111
|
false
|
121
|
-
elsif @language.nil?
|
122
|
-
false
|
123
|
-
elsif @loop.nil?
|
124
|
-
false
|
125
|
-
elsif @conference_id.nil?
|
126
|
-
false
|
127
|
-
elsif @privacy_mode.nil?
|
128
|
-
false
|
129
112
|
else
|
130
113
|
list_invalid_properties.length() == 0
|
131
114
|
end
|
@@ -139,7 +122,6 @@ module Freeclimb
|
|
139
122
|
text == o.text &&
|
140
123
|
language == o.language &&
|
141
124
|
loop == o.loop &&
|
142
|
-
conference_id == o.conference_id &&
|
143
125
|
privacy_mode == o.privacy_mode
|
144
126
|
end
|
145
127
|
|
@@ -152,7 +134,7 @@ module Freeclimb
|
|
152
134
|
# Calculates hash code according to all attributes.
|
153
135
|
# @return [Integer] Hash code
|
154
136
|
def hash
|
155
|
-
[text, language, loop,
|
137
|
+
[text, language, loop, privacy_mode].hash
|
156
138
|
end
|
157
139
|
|
158
140
|
# Builds the object from hash
|
@@ -16,16 +16,12 @@ require 'time'
|
|
16
16
|
module Freeclimb
|
17
17
|
# The `SetListen` command enables or disables the listen privilege for a Conference Participant provided both calls are in the same conference. The Participant can hear what the other participants are saying only if this privilege is enabled.
|
18
18
|
class SetListen < PerclCommand
|
19
|
-
# ID of the call leg that is to be assigned the listen privilege. The Call must be in a Conference or an error will be triggered.
|
20
|
-
attr_accessor :call_id
|
21
|
-
|
22
19
|
# Specifying `false` will silence the Conference for this Participant.
|
23
20
|
attr_accessor :listen
|
24
21
|
|
25
22
|
# Attribute mapping from ruby-style variable name to JSON key.
|
26
23
|
def self.attribute_map
|
27
24
|
{
|
28
|
-
:'call_id' => :'callId',
|
29
25
|
:'listen' => :'listen'
|
30
26
|
}
|
31
27
|
end
|
@@ -38,7 +34,6 @@ module Freeclimb
|
|
38
34
|
# Attribute type mapping.
|
39
35
|
def self.openapi_types
|
40
36
|
{
|
41
|
-
:'call_id' => :'String',
|
42
37
|
:'listen' => :'Boolean'
|
43
38
|
}
|
44
39
|
end
|
@@ -75,10 +70,6 @@ module Freeclimb
|
|
75
70
|
# call parent's initialize
|
76
71
|
super(attributes)
|
77
72
|
|
78
|
-
if attributes.key?(:'call_id')
|
79
|
-
self.call_id = attributes[:'call_id']
|
80
|
-
end
|
81
|
-
|
82
73
|
if attributes.key?(:'listen')
|
83
74
|
self.listen = attributes[:'listen']
|
84
75
|
end
|
@@ -89,10 +80,6 @@ module Freeclimb
|
|
89
80
|
# @return Array for valid properties with the reasons
|
90
81
|
def list_invalid_properties
|
91
82
|
invalid_properties = super
|
92
|
-
if @call_id.nil?
|
93
|
-
invalid_properties.push('invalid value for "call_id", call_id cannot be nil.')
|
94
|
-
end
|
95
|
-
|
96
83
|
invalid_properties
|
97
84
|
end
|
98
85
|
|
@@ -100,9 +87,7 @@ module Freeclimb
|
|
100
87
|
# @return true if the model is valid
|
101
88
|
def valid?
|
102
89
|
|
103
|
-
if @
|
104
|
-
false
|
105
|
-
elsif @listen.nil?
|
90
|
+
if @listen.nil?
|
106
91
|
false
|
107
92
|
else
|
108
93
|
list_invalid_properties.length() == 0
|
@@ -114,7 +99,6 @@ module Freeclimb
|
|
114
99
|
def ==(o)
|
115
100
|
return true if self.equal?(o)
|
116
101
|
self.class == o.class &&
|
117
|
-
call_id == o.call_id &&
|
118
102
|
listen == o.listen && super(o)
|
119
103
|
end
|
120
104
|
|
@@ -127,7 +111,7 @@ module Freeclimb
|
|
127
111
|
# Calculates hash code according to all attributes.
|
128
112
|
# @return [Integer] Hash code
|
129
113
|
def hash
|
130
|
-
[
|
114
|
+
[listen].hash
|
131
115
|
end
|
132
116
|
|
133
117
|
# Builds the object from hash
|
@@ -15,16 +15,12 @@ require 'time'
|
|
15
15
|
|
16
16
|
module Freeclimb
|
17
17
|
class SetListenAllOf
|
18
|
-
# ID of the call leg that is to be assigned the listen privilege. The Call must be in a Conference or an error will be triggered.
|
19
|
-
attr_accessor :call_id
|
20
|
-
|
21
18
|
# Specifying `false` will silence the Conference for this Participant.
|
22
19
|
attr_accessor :listen
|
23
20
|
|
24
21
|
# Attribute mapping from ruby-style variable name to JSON key.
|
25
22
|
def self.attribute_map
|
26
23
|
{
|
27
|
-
:'call_id' => :'callId',
|
28
24
|
:'listen' => :'listen'
|
29
25
|
}
|
30
26
|
end
|
@@ -37,7 +33,6 @@ module Freeclimb
|
|
37
33
|
# Attribute type mapping.
|
38
34
|
def self.openapi_types
|
39
35
|
{
|
40
|
-
:'call_id' => :'String',
|
41
36
|
:'listen' => :'Boolean'
|
42
37
|
}
|
43
38
|
end
|
@@ -63,10 +58,6 @@ module Freeclimb
|
|
63
58
|
h[k.to_sym] = v
|
64
59
|
}
|
65
60
|
|
66
|
-
if attributes.key?(:'call_id')
|
67
|
-
self.call_id = attributes[:'call_id']
|
68
|
-
end
|
69
|
-
|
70
61
|
if attributes.key?(:'listen')
|
71
62
|
self.listen = attributes[:'listen']
|
72
63
|
end
|
@@ -76,10 +67,6 @@ module Freeclimb
|
|
76
67
|
# @return Array for valid properties with the reasons
|
77
68
|
def list_invalid_properties
|
78
69
|
invalid_properties = Array.new
|
79
|
-
if @call_id.nil?
|
80
|
-
invalid_properties.push('invalid value for "call_id", call_id cannot be nil.')
|
81
|
-
end
|
82
|
-
|
83
70
|
invalid_properties
|
84
71
|
end
|
85
72
|
|
@@ -87,9 +74,7 @@ module Freeclimb
|
|
87
74
|
# @return true if the model is valid
|
88
75
|
def valid?
|
89
76
|
|
90
|
-
if @
|
91
|
-
false
|
92
|
-
elsif @listen.nil?
|
77
|
+
if @listen.nil?
|
93
78
|
false
|
94
79
|
else
|
95
80
|
list_invalid_properties.length() == 0
|
@@ -101,7 +86,6 @@ module Freeclimb
|
|
101
86
|
def ==(o)
|
102
87
|
return true if self.equal?(o)
|
103
88
|
self.class == o.class &&
|
104
|
-
call_id == o.call_id &&
|
105
89
|
listen == o.listen
|
106
90
|
end
|
107
91
|
|
@@ -114,7 +98,7 @@ module Freeclimb
|
|
114
98
|
# Calculates hash code according to all attributes.
|
115
99
|
# @return [Integer] Hash code
|
116
100
|
def hash
|
117
|
-
[
|
101
|
+
[listen].hash
|
118
102
|
end
|
119
103
|
|
120
104
|
# Builds the object from hash
|
@@ -16,16 +16,12 @@ require 'time'
|
|
16
16
|
module Freeclimb
|
17
17
|
# The `SetTalk` command enables or disables the talk privilege for a Participant in a Conference provided both calls are in the same conference. If 'true', no audio from that Participant is shared with the other Participants of the Conference.
|
18
18
|
class SetTalk < PerclCommand
|
19
|
-
# ID of the call leg that is to be muted or unmuted. The Call must be in a Conference or an error will be triggered.
|
20
|
-
attr_accessor :call_id
|
21
|
-
|
22
19
|
# Specifying `false` mutes the Participant.
|
23
20
|
attr_accessor :talk
|
24
21
|
|
25
22
|
# Attribute mapping from ruby-style variable name to JSON key.
|
26
23
|
def self.attribute_map
|
27
24
|
{
|
28
|
-
:'call_id' => :'callId',
|
29
25
|
:'talk' => :'talk'
|
30
26
|
}
|
31
27
|
end
|
@@ -38,7 +34,6 @@ module Freeclimb
|
|
38
34
|
# Attribute type mapping.
|
39
35
|
def self.openapi_types
|
40
36
|
{
|
41
|
-
:'call_id' => :'String',
|
42
37
|
:'talk' => :'Boolean'
|
43
38
|
}
|
44
39
|
end
|
@@ -75,10 +70,6 @@ module Freeclimb
|
|
75
70
|
# call parent's initialize
|
76
71
|
super(attributes)
|
77
72
|
|
78
|
-
if attributes.key?(:'call_id')
|
79
|
-
self.call_id = attributes[:'call_id']
|
80
|
-
end
|
81
|
-
|
82
73
|
if attributes.key?(:'talk')
|
83
74
|
self.talk = attributes[:'talk']
|
84
75
|
end
|
@@ -89,10 +80,6 @@ module Freeclimb
|
|
89
80
|
# @return Array for valid properties with the reasons
|
90
81
|
def list_invalid_properties
|
91
82
|
invalid_properties = super
|
92
|
-
if @call_id.nil?
|
93
|
-
invalid_properties.push('invalid value for "call_id", call_id cannot be nil.')
|
94
|
-
end
|
95
|
-
|
96
83
|
invalid_properties
|
97
84
|
end
|
98
85
|
|
@@ -100,9 +87,7 @@ module Freeclimb
|
|
100
87
|
# @return true if the model is valid
|
101
88
|
def valid?
|
102
89
|
|
103
|
-
if @
|
104
|
-
false
|
105
|
-
elsif @talk.nil?
|
90
|
+
if @talk.nil?
|
106
91
|
false
|
107
92
|
else
|
108
93
|
list_invalid_properties.length() == 0
|
@@ -114,7 +99,6 @@ module Freeclimb
|
|
114
99
|
def ==(o)
|
115
100
|
return true if self.equal?(o)
|
116
101
|
self.class == o.class &&
|
117
|
-
call_id == o.call_id &&
|
118
102
|
talk == o.talk && super(o)
|
119
103
|
end
|
120
104
|
|
@@ -127,7 +111,7 @@ module Freeclimb
|
|
127
111
|
# Calculates hash code according to all attributes.
|
128
112
|
# @return [Integer] Hash code
|
129
113
|
def hash
|
130
|
-
[
|
114
|
+
[talk].hash
|
131
115
|
end
|
132
116
|
|
133
117
|
# Builds the object from hash
|
@@ -15,16 +15,12 @@ require 'time'
|
|
15
15
|
|
16
16
|
module Freeclimb
|
17
17
|
class SetTalkAllOf
|
18
|
-
# ID of the call leg that is to be muted or unmuted. The Call must be in a Conference or an error will be triggered.
|
19
|
-
attr_accessor :call_id
|
20
|
-
|
21
18
|
# Specifying `false` mutes the Participant.
|
22
19
|
attr_accessor :talk
|
23
20
|
|
24
21
|
# Attribute mapping from ruby-style variable name to JSON key.
|
25
22
|
def self.attribute_map
|
26
23
|
{
|
27
|
-
:'call_id' => :'callId',
|
28
24
|
:'talk' => :'talk'
|
29
25
|
}
|
30
26
|
end
|
@@ -37,7 +33,6 @@ module Freeclimb
|
|
37
33
|
# Attribute type mapping.
|
38
34
|
def self.openapi_types
|
39
35
|
{
|
40
|
-
:'call_id' => :'String',
|
41
36
|
:'talk' => :'Boolean'
|
42
37
|
}
|
43
38
|
end
|
@@ -63,10 +58,6 @@ module Freeclimb
|
|
63
58
|
h[k.to_sym] = v
|
64
59
|
}
|
65
60
|
|
66
|
-
if attributes.key?(:'call_id')
|
67
|
-
self.call_id = attributes[:'call_id']
|
68
|
-
end
|
69
|
-
|
70
61
|
if attributes.key?(:'talk')
|
71
62
|
self.talk = attributes[:'talk']
|
72
63
|
end
|
@@ -76,10 +67,6 @@ module Freeclimb
|
|
76
67
|
# @return Array for valid properties with the reasons
|
77
68
|
def list_invalid_properties
|
78
69
|
invalid_properties = Array.new
|
79
|
-
if @call_id.nil?
|
80
|
-
invalid_properties.push('invalid value for "call_id", call_id cannot be nil.')
|
81
|
-
end
|
82
|
-
|
83
70
|
invalid_properties
|
84
71
|
end
|
85
72
|
|
@@ -87,9 +74,7 @@ module Freeclimb
|
|
87
74
|
# @return true if the model is valid
|
88
75
|
def valid?
|
89
76
|
|
90
|
-
if @
|
91
|
-
false
|
92
|
-
elsif @talk.nil?
|
77
|
+
if @talk.nil?
|
93
78
|
false
|
94
79
|
else
|
95
80
|
list_invalid_properties.length() == 0
|
@@ -101,7 +86,6 @@ module Freeclimb
|
|
101
86
|
def ==(o)
|
102
87
|
return true if self.equal?(o)
|
103
88
|
self.class == o.class &&
|
104
|
-
call_id == o.call_id &&
|
105
89
|
talk == o.talk
|
106
90
|
end
|
107
91
|
|
@@ -114,7 +98,7 @@ module Freeclimb
|
|
114
98
|
# Calculates hash code according to all attributes.
|
115
99
|
# @return [Integer] Hash code
|
116
100
|
def hash
|
117
|
-
[
|
101
|
+
[talk].hash
|
118
102
|
end
|
119
103
|
|
120
104
|
# Builds the object from hash
|
data/lib/freeclimb/models/sms.rb
CHANGED
@@ -488,66 +488,6 @@ module Freeclimb
|
|
488
488
|
|
489
489
|
if @account_id.nil?
|
490
490
|
false
|
491
|
-
elsif @entity_type.nil?
|
492
|
-
false
|
493
|
-
elsif @csp_id.nil?
|
494
|
-
false
|
495
|
-
elsif @brand_id.nil?
|
496
|
-
false
|
497
|
-
elsif @first_name.nil?
|
498
|
-
false
|
499
|
-
elsif @last_name.nil?
|
500
|
-
false
|
501
|
-
elsif @display_name.nil?
|
502
|
-
false
|
503
|
-
elsif @company_name.nil?
|
504
|
-
false
|
505
|
-
elsif @ein.nil?
|
506
|
-
false
|
507
|
-
elsif @ein_issuing_country.nil?
|
508
|
-
false
|
509
|
-
elsif @phone.nil?
|
510
|
-
false
|
511
|
-
elsif @street.nil?
|
512
|
-
false
|
513
|
-
elsif @city.nil?
|
514
|
-
false
|
515
|
-
elsif @state.nil?
|
516
|
-
false
|
517
|
-
elsif @postal_code.nil?
|
518
|
-
false
|
519
|
-
elsif @country.nil?
|
520
|
-
false
|
521
|
-
elsif @email.nil?
|
522
|
-
false
|
523
|
-
elsif @stock_symbol.nil?
|
524
|
-
false
|
525
|
-
elsif @stock_exchange.nil?
|
526
|
-
false
|
527
|
-
elsif @ip_address.nil?
|
528
|
-
false
|
529
|
-
elsif @website.nil?
|
530
|
-
false
|
531
|
-
elsif @brand_relationship.nil?
|
532
|
-
false
|
533
|
-
elsif @vertical.nil?
|
534
|
-
false
|
535
|
-
elsif @alt_business_id.nil?
|
536
|
-
false
|
537
|
-
elsif @alt_business_id_type.nil?
|
538
|
-
false
|
539
|
-
elsif @universal_ein.nil?
|
540
|
-
false
|
541
|
-
elsif @reference_id.nil?
|
542
|
-
false
|
543
|
-
elsif @optional_attributes.nil?
|
544
|
-
false
|
545
|
-
elsif @mock.nil?
|
546
|
-
false
|
547
|
-
elsif @identity_status.nil?
|
548
|
-
false
|
549
|
-
elsif @create_date.nil?
|
550
|
-
false
|
551
491
|
else
|
552
492
|
list_invalid_properties.length() == 0
|
553
493
|
end
|
@@ -98,6 +98,21 @@ module Freeclimb
|
|
98
98
|
# Help message of the campaign.
|
99
99
|
attr_accessor :help_message
|
100
100
|
|
101
|
+
# Subscriber opt-in keywords. Multiple keywords are comma separated without space.
|
102
|
+
attr_accessor :optin_keywords
|
103
|
+
|
104
|
+
# Subscriber opt-out keywords. Multiple keywords are comma separated without space.
|
105
|
+
attr_accessor :optout_keywords
|
106
|
+
|
107
|
+
# Subscriber help keywords. Multiple keywords are comma separated without space.
|
108
|
+
attr_accessor :help_keywords
|
109
|
+
|
110
|
+
# Subscriber opt-in message.
|
111
|
+
attr_accessor :optin_message
|
112
|
+
|
113
|
+
# Subscriber opt-out message.
|
114
|
+
attr_accessor :optout_message
|
115
|
+
|
101
116
|
# Caller supplied campaign reference ID. If supplied, the value must be unique across all submitted campaigns. Can be used to prevent duplicate campaign registrations.
|
102
117
|
attr_accessor :reference_id
|
103
118
|
|
@@ -160,6 +175,11 @@ module Freeclimb
|
|
160
175
|
:'sample5' => :'sample5',
|
161
176
|
:'message_flow' => :'messageFlow',
|
162
177
|
:'help_message' => :'helpMessage',
|
178
|
+
:'optin_keywords' => :'optinKeywords',
|
179
|
+
:'optout_keywords' => :'optoutKeywords',
|
180
|
+
:'help_keywords' => :'helpKeywords',
|
181
|
+
:'optin_message' => :'optinMessage',
|
182
|
+
:'optout_message' => :'optoutMessage',
|
163
183
|
:'reference_id' => :'referenceId',
|
164
184
|
:'mock' => :'mock',
|
165
185
|
:'next_renewal_or_expiration_date' => :'nextRenewalOrExpirationDate'
|
@@ -202,6 +222,11 @@ module Freeclimb
|
|
202
222
|
:'sample5' => :'String',
|
203
223
|
:'message_flow' => :'String',
|
204
224
|
:'help_message' => :'String',
|
225
|
+
:'optin_keywords' => :'String',
|
226
|
+
:'optout_keywords' => :'String',
|
227
|
+
:'help_keywords' => :'String',
|
228
|
+
:'optin_message' => :'String',
|
229
|
+
:'optout_message' => :'String',
|
205
230
|
:'reference_id' => :'String',
|
206
231
|
:'mock' => :'Boolean',
|
207
232
|
:'next_renewal_or_expiration_date' => :'Date'
|
@@ -366,6 +391,26 @@ module Freeclimb
|
|
366
391
|
self.help_message = attributes[:'help_message']
|
367
392
|
end
|
368
393
|
|
394
|
+
if attributes.key?(:'optin_keywords')
|
395
|
+
self.optin_keywords = attributes[:'optin_keywords']
|
396
|
+
end
|
397
|
+
|
398
|
+
if attributes.key?(:'optout_keywords')
|
399
|
+
self.optout_keywords = attributes[:'optout_keywords']
|
400
|
+
end
|
401
|
+
|
402
|
+
if attributes.key?(:'help_keywords')
|
403
|
+
self.help_keywords = attributes[:'help_keywords']
|
404
|
+
end
|
405
|
+
|
406
|
+
if attributes.key?(:'optin_message')
|
407
|
+
self.optin_message = attributes[:'optin_message']
|
408
|
+
end
|
409
|
+
|
410
|
+
if attributes.key?(:'optout_message')
|
411
|
+
self.optout_message = attributes[:'optout_message']
|
412
|
+
end
|
413
|
+
|
369
414
|
if attributes.key?(:'reference_id')
|
370
415
|
self.reference_id = attributes[:'reference_id']
|
371
416
|
end
|
@@ -451,6 +496,26 @@ module Freeclimb
|
|
451
496
|
invalid_properties.push('invalid value for "help_message", the character length must be smaller than or equal to 255.')
|
452
497
|
end
|
453
498
|
|
499
|
+
if !@optin_keywords.nil? && @optin_keywords.to_s.length > 255
|
500
|
+
invalid_properties.push('invalid value for "optin_keywords", the character length must be smaller than or equal to 255.')
|
501
|
+
end
|
502
|
+
|
503
|
+
if !@optout_keywords.nil? && @optout_keywords.to_s.length > 255
|
504
|
+
invalid_properties.push('invalid value for "optout_keywords", the character length must be smaller than or equal to 255.')
|
505
|
+
end
|
506
|
+
|
507
|
+
if !@help_keywords.nil? && @help_keywords.to_s.length > 255
|
508
|
+
invalid_properties.push('invalid value for "help_keywords", the character length must be smaller than or equal to 255.')
|
509
|
+
end
|
510
|
+
|
511
|
+
if !@optin_message.nil? && @optin_message.to_s.length > 255
|
512
|
+
invalid_properties.push('invalid value for "optin_message", the character length must be smaller than or equal to 255.')
|
513
|
+
end
|
514
|
+
|
515
|
+
if !@optout_message.nil? && @optout_message.to_s.length > 255
|
516
|
+
invalid_properties.push('invalid value for "optout_message", the character length must be smaller than or equal to 255.')
|
517
|
+
end
|
518
|
+
|
454
519
|
if !@reference_id.nil? && @reference_id.to_s.length > 50
|
455
520
|
invalid_properties.push('invalid value for "reference_id", the character length must be smaller than or equal to 50.')
|
456
521
|
end
|
@@ -468,46 +533,6 @@ module Freeclimb
|
|
468
533
|
|
469
534
|
if @account_id.nil?
|
470
535
|
false
|
471
|
-
elsif @campaign_id.nil?
|
472
|
-
false
|
473
|
-
elsif @csp_id.nil?
|
474
|
-
false
|
475
|
-
elsif @status.nil?
|
476
|
-
false
|
477
|
-
elsif @create_date.nil?
|
478
|
-
false
|
479
|
-
elsif @auto_renewal.nil?
|
480
|
-
false
|
481
|
-
elsif @brand_id.nil?
|
482
|
-
false
|
483
|
-
elsif @usecase.nil?
|
484
|
-
false
|
485
|
-
elsif @sub_usecases.nil?
|
486
|
-
false
|
487
|
-
elsif @description.nil?
|
488
|
-
false
|
489
|
-
elsif @embedded_link.nil?
|
490
|
-
false
|
491
|
-
elsif @embedded_phone.nil?
|
492
|
-
false
|
493
|
-
elsif @affiliate_marketing.nil?
|
494
|
-
false
|
495
|
-
elsif @number_pool.nil?
|
496
|
-
false
|
497
|
-
elsif @age_gated.nil?
|
498
|
-
false
|
499
|
-
elsif @direct_lending.nil?
|
500
|
-
false
|
501
|
-
elsif @subscriber_optin.nil?
|
502
|
-
false
|
503
|
-
elsif @subscriber_optout.nil?
|
504
|
-
false
|
505
|
-
elsif @subscriber_help.nil?
|
506
|
-
false
|
507
|
-
elsif @sample1.nil?
|
508
|
-
false
|
509
|
-
elsif @mock.nil?
|
510
|
-
false
|
511
536
|
else
|
512
537
|
list_invalid_properties.length() == 0
|
513
538
|
end
|
@@ -655,6 +680,56 @@ module Freeclimb
|
|
655
680
|
@help_message = help_message
|
656
681
|
end
|
657
682
|
|
683
|
+
# Custom attribute writer method with validation
|
684
|
+
# @param [Object] optin_keywords Value to be assigned
|
685
|
+
def optin_keywords=(optin_keywords)
|
686
|
+
if !optin_keywords.nil? && optin_keywords.to_s.length > 255
|
687
|
+
fail ArgumentError, 'invalid value for "optin_keywords", the character length must be smaller than or equal to 255.'
|
688
|
+
end
|
689
|
+
|
690
|
+
@optin_keywords = optin_keywords
|
691
|
+
end
|
692
|
+
|
693
|
+
# Custom attribute writer method with validation
|
694
|
+
# @param [Object] optout_keywords Value to be assigned
|
695
|
+
def optout_keywords=(optout_keywords)
|
696
|
+
if !optout_keywords.nil? && optout_keywords.to_s.length > 255
|
697
|
+
fail ArgumentError, 'invalid value for "optout_keywords", the character length must be smaller than or equal to 255.'
|
698
|
+
end
|
699
|
+
|
700
|
+
@optout_keywords = optout_keywords
|
701
|
+
end
|
702
|
+
|
703
|
+
# Custom attribute writer method with validation
|
704
|
+
# @param [Object] help_keywords Value to be assigned
|
705
|
+
def help_keywords=(help_keywords)
|
706
|
+
if !help_keywords.nil? && help_keywords.to_s.length > 255
|
707
|
+
fail ArgumentError, 'invalid value for "help_keywords", the character length must be smaller than or equal to 255.'
|
708
|
+
end
|
709
|
+
|
710
|
+
@help_keywords = help_keywords
|
711
|
+
end
|
712
|
+
|
713
|
+
# Custom attribute writer method with validation
|
714
|
+
# @param [Object] optin_message Value to be assigned
|
715
|
+
def optin_message=(optin_message)
|
716
|
+
if !optin_message.nil? && optin_message.to_s.length > 255
|
717
|
+
fail ArgumentError, 'invalid value for "optin_message", the character length must be smaller than or equal to 255.'
|
718
|
+
end
|
719
|
+
|
720
|
+
@optin_message = optin_message
|
721
|
+
end
|
722
|
+
|
723
|
+
# Custom attribute writer method with validation
|
724
|
+
# @param [Object] optout_message Value to be assigned
|
725
|
+
def optout_message=(optout_message)
|
726
|
+
if !optout_message.nil? && optout_message.to_s.length > 255
|
727
|
+
fail ArgumentError, 'invalid value for "optout_message", the character length must be smaller than or equal to 255.'
|
728
|
+
end
|
729
|
+
|
730
|
+
@optout_message = optout_message
|
731
|
+
end
|
732
|
+
|
658
733
|
# Custom attribute writer method with validation
|
659
734
|
# @param [Object] reference_id Value to be assigned
|
660
735
|
def reference_id=(reference_id)
|
@@ -698,6 +773,11 @@ module Freeclimb
|
|
698
773
|
sample5 == o.sample5 &&
|
699
774
|
message_flow == o.message_flow &&
|
700
775
|
help_message == o.help_message &&
|
776
|
+
optin_keywords == o.optin_keywords &&
|
777
|
+
optout_keywords == o.optout_keywords &&
|
778
|
+
help_keywords == o.help_keywords &&
|
779
|
+
optin_message == o.optin_message &&
|
780
|
+
optout_message == o.optout_message &&
|
701
781
|
reference_id == o.reference_id &&
|
702
782
|
mock == o.mock &&
|
703
783
|
next_renewal_or_expiration_date == o.next_renewal_or_expiration_date
|
@@ -712,7 +792,7 @@ module Freeclimb
|
|
712
792
|
# Calculates hash code according to all attributes.
|
713
793
|
# @return [Integer] Hash code
|
714
794
|
def hash
|
715
|
-
[account_id, campaign_id, csp_id, reseller_id, status, create_date, auto_renewal, billed_date, brand_id, usecase, sub_usecases, description, embedded_link, embedded_phone, affiliate_marketing, number_pool, age_gated, direct_lending, subscriber_optin, subscriber_optout, subscriber_help, sample1, sample2, sample3, sample4, sample5, message_flow, help_message, reference_id, mock, next_renewal_or_expiration_date].hash
|
795
|
+
[account_id, campaign_id, csp_id, reseller_id, status, create_date, auto_renewal, billed_date, brand_id, usecase, sub_usecases, description, embedded_link, embedded_phone, affiliate_marketing, number_pool, age_gated, direct_lending, subscriber_optin, subscriber_optout, subscriber_help, sample1, sample2, sample3, sample4, sample5, message_flow, help_message, optin_keywords, optout_keywords, help_keywords, optin_message, optout_message, reference_id, mock, next_renewal_or_expiration_date].hash
|
716
796
|
end
|
717
797
|
|
718
798
|
# Builds the object from hash
|