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
data/lib/freeclimb/models/say.rb
CHANGED
@@ -27,8 +27,8 @@ module Freeclimb
|
|
27
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
28
|
attr_accessor :conference_id
|
29
29
|
|
30
|
-
# Parameter `
|
31
|
-
attr_accessor :
|
30
|
+
# Parameter `privacyMode` will not log the `text` as required by PCI compliance.
|
31
|
+
attr_accessor :privacy_mode
|
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
|
:'language' => :'language',
|
38
38
|
:'loop' => :'loop',
|
39
39
|
:'conference_id' => :'conferenceId',
|
40
|
-
:'
|
40
|
+
:'privacy_mode' => :'privacyMode'
|
41
41
|
}
|
42
42
|
end
|
43
43
|
|
@@ -48,7 +48,7 @@ module Freeclimb
|
|
48
48
|
:'language' => :'String',
|
49
49
|
:'loop' => :'Integer',
|
50
50
|
:'conference_id' => :'String',
|
51
|
-
:'
|
51
|
+
:'privacy_mode' => :'Boolean'
|
52
52
|
}
|
53
53
|
end
|
54
54
|
|
@@ -100,8 +100,8 @@ module Freeclimb
|
|
100
100
|
self.conference_id = attributes[:'conference_id']
|
101
101
|
end
|
102
102
|
|
103
|
-
if attributes.key?(:'
|
104
|
-
self.
|
103
|
+
if attributes.key?(:'privacy_mode')
|
104
|
+
self.privacy_mode = attributes[:'privacy_mode']
|
105
105
|
end
|
106
106
|
end
|
107
107
|
|
@@ -132,7 +132,7 @@ module Freeclimb
|
|
132
132
|
language == o.language &&
|
133
133
|
loop == o.loop &&
|
134
134
|
conference_id == o.conference_id &&
|
135
|
-
|
135
|
+
privacy_mode == o.privacy_mode && super(o)
|
136
136
|
end
|
137
137
|
|
138
138
|
# @see the `==` method
|
@@ -144,7 +144,7 @@ module Freeclimb
|
|
144
144
|
# Calculates hash code according to all attributes.
|
145
145
|
# @return [Integer] Hash code
|
146
146
|
def hash
|
147
|
-
[text, language, loop, conference_id,
|
147
|
+
[text, language, loop, conference_id, privacy_mode].hash
|
148
148
|
end
|
149
149
|
|
150
150
|
# Builds the object from hash
|
@@ -26,8 +26,8 @@ module Freeclimb
|
|
26
26
|
# 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.
|
27
27
|
attr_accessor :conference_id
|
28
28
|
|
29
|
-
# Parameter `
|
30
|
-
attr_accessor :
|
29
|
+
# Parameter `privacyMode` will not log the `text` as required by PCI compliance.
|
30
|
+
attr_accessor :privacy_mode
|
31
31
|
|
32
32
|
# Attribute mapping from ruby-style variable name to JSON key.
|
33
33
|
def self.attribute_map
|
@@ -36,7 +36,7 @@ module Freeclimb
|
|
36
36
|
:'language' => :'language',
|
37
37
|
:'loop' => :'loop',
|
38
38
|
:'conference_id' => :'conferenceId',
|
39
|
-
:'
|
39
|
+
:'privacy_mode' => :'privacyMode'
|
40
40
|
}
|
41
41
|
end
|
42
42
|
|
@@ -47,7 +47,7 @@ module Freeclimb
|
|
47
47
|
:'language' => :'String',
|
48
48
|
:'loop' => :'Integer',
|
49
49
|
:'conference_id' => :'String',
|
50
|
-
:'
|
50
|
+
:'privacy_mode' => :'Boolean'
|
51
51
|
}
|
52
52
|
end
|
53
53
|
|
@@ -88,8 +88,8 @@ module Freeclimb
|
|
88
88
|
self.conference_id = attributes[:'conference_id']
|
89
89
|
end
|
90
90
|
|
91
|
-
if attributes.key?(:'
|
92
|
-
self.
|
91
|
+
if attributes.key?(:'privacy_mode')
|
92
|
+
self.privacy_mode = attributes[:'privacy_mode']
|
93
93
|
end
|
94
94
|
end
|
95
95
|
|
@@ -120,7 +120,7 @@ module Freeclimb
|
|
120
120
|
language == o.language &&
|
121
121
|
loop == o.loop &&
|
122
122
|
conference_id == o.conference_id &&
|
123
|
-
|
123
|
+
privacy_mode == o.privacy_mode
|
124
124
|
end
|
125
125
|
|
126
126
|
# @see the `==` method
|
@@ -132,7 +132,7 @@ module Freeclimb
|
|
132
132
|
# Calculates hash code according to all attributes.
|
133
133
|
# @return [Integer] Hash code
|
134
134
|
def hash
|
135
|
-
[text, language, loop, conference_id,
|
135
|
+
[text, language, loop, conference_id, privacy_mode].hash
|
136
136
|
end
|
137
137
|
|
138
138
|
# Builds the object from hash
|
@@ -21,11 +21,15 @@ module Freeclimb
|
|
21
21
|
# Pause between digits in milliseconds. Valid values are 100-1000 milliseconds and will be adjusted by FreeClimb to satisfy the constraint.
|
22
22
|
attr_accessor :pause_ms
|
23
23
|
|
24
|
+
# Parameter `privacyMode` will not log the `text` as required by PCI compliance.
|
25
|
+
attr_accessor :privacy_mode
|
26
|
+
|
24
27
|
# Attribute mapping from ruby-style variable name to JSON key.
|
25
28
|
def self.attribute_map
|
26
29
|
{
|
27
30
|
:'digits' => :'digits',
|
28
|
-
:'pause_ms' => :'pauseMs'
|
31
|
+
:'pause_ms' => :'pauseMs',
|
32
|
+
:'privacy_mode' => :'privacyMode'
|
29
33
|
}
|
30
34
|
end
|
31
35
|
|
@@ -33,7 +37,8 @@ module Freeclimb
|
|
33
37
|
def self.openapi_types
|
34
38
|
{
|
35
39
|
:'digits' => :'String',
|
36
|
-
:'pause_ms' => :'Integer'
|
40
|
+
:'pause_ms' => :'Integer',
|
41
|
+
:'privacy_mode' => :'Boolean'
|
37
42
|
}
|
38
43
|
end
|
39
44
|
|
@@ -76,6 +81,10 @@ module Freeclimb
|
|
76
81
|
if attributes.key?(:'pause_ms')
|
77
82
|
self.pause_ms = attributes[:'pause_ms']
|
78
83
|
end
|
84
|
+
|
85
|
+
if attributes.key?(:'privacy_mode')
|
86
|
+
self.privacy_mode = attributes[:'privacy_mode']
|
87
|
+
end
|
79
88
|
end
|
80
89
|
|
81
90
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -102,7 +111,8 @@ module Freeclimb
|
|
102
111
|
return true if self.equal?(o)
|
103
112
|
self.class == o.class &&
|
104
113
|
digits == o.digits &&
|
105
|
-
pause_ms == o.pause_ms &&
|
114
|
+
pause_ms == o.pause_ms &&
|
115
|
+
privacy_mode == o.privacy_mode && super(o)
|
106
116
|
end
|
107
117
|
|
108
118
|
# @see the `==` method
|
@@ -114,7 +124,7 @@ module Freeclimb
|
|
114
124
|
# Calculates hash code according to all attributes.
|
115
125
|
# @return [Integer] Hash code
|
116
126
|
def hash
|
117
|
-
[digits, pause_ms].hash
|
127
|
+
[digits, pause_ms, privacy_mode].hash
|
118
128
|
end
|
119
129
|
|
120
130
|
# Builds the object from hash
|
@@ -20,11 +20,15 @@ module Freeclimb
|
|
20
20
|
# Pause between digits in milliseconds. Valid values are 100-1000 milliseconds and will be adjusted by FreeClimb to satisfy the constraint.
|
21
21
|
attr_accessor :pause_ms
|
22
22
|
|
23
|
+
# Parameter `privacyMode` will not log the `text` as required by PCI compliance.
|
24
|
+
attr_accessor :privacy_mode
|
25
|
+
|
23
26
|
# Attribute mapping from ruby-style variable name to JSON key.
|
24
27
|
def self.attribute_map
|
25
28
|
{
|
26
29
|
:'digits' => :'digits',
|
27
|
-
:'pause_ms' => :'pauseMs'
|
30
|
+
:'pause_ms' => :'pauseMs',
|
31
|
+
:'privacy_mode' => :'privacyMode'
|
28
32
|
}
|
29
33
|
end
|
30
34
|
|
@@ -32,7 +36,8 @@ module Freeclimb
|
|
32
36
|
def self.openapi_types
|
33
37
|
{
|
34
38
|
:'digits' => :'String',
|
35
|
-
:'pause_ms' => :'Integer'
|
39
|
+
:'pause_ms' => :'Integer',
|
40
|
+
:'privacy_mode' => :'Boolean'
|
36
41
|
}
|
37
42
|
end
|
38
43
|
|
@@ -64,6 +69,10 @@ module Freeclimb
|
|
64
69
|
if attributes.key?(:'pause_ms')
|
65
70
|
self.pause_ms = attributes[:'pause_ms']
|
66
71
|
end
|
72
|
+
|
73
|
+
if attributes.key?(:'privacy_mode')
|
74
|
+
self.privacy_mode = attributes[:'privacy_mode']
|
75
|
+
end
|
67
76
|
end
|
68
77
|
|
69
78
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -90,7 +99,8 @@ module Freeclimb
|
|
90
99
|
return true if self.equal?(o)
|
91
100
|
self.class == o.class &&
|
92
101
|
digits == o.digits &&
|
93
|
-
pause_ms == o.pause_ms
|
102
|
+
pause_ms == o.pause_ms &&
|
103
|
+
privacy_mode == o.privacy_mode
|
94
104
|
end
|
95
105
|
|
96
106
|
# @see the `==` method
|
@@ -102,7 +112,7 @@ module Freeclimb
|
|
102
112
|
# Calculates hash code according to all attributes.
|
103
113
|
# @return [Integer] Hash code
|
104
114
|
def hash
|
105
|
-
[digits, pause_ms].hash
|
115
|
+
[digits, pause_ms, privacy_mode].hash
|
106
116
|
end
|
107
117
|
|
108
118
|
# Builds the object from hash
|
@@ -17,9 +17,6 @@ module Freeclimb
|
|
17
17
|
# Either `canceled` or `completed`. Specifying `canceled` attempts to hang up calls that are queued without affecting calls already in progress. Specifying `completed` attempts to hang up a call already in progress.
|
18
18
|
attr_accessor :status
|
19
19
|
|
20
|
-
# 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>`).
|
21
|
-
attr_accessor :request_id
|
22
|
-
|
23
20
|
class EnumAttributeValidator
|
24
21
|
attr_reader :datatype
|
25
22
|
attr_reader :allowable_values
|
@@ -45,16 +42,14 @@ module Freeclimb
|
|
45
42
|
# Attribute mapping from ruby-style variable name to JSON key.
|
46
43
|
def self.attribute_map
|
47
44
|
{
|
48
|
-
:'status' => :'status'
|
49
|
-
:'request_id' => :'requestId'
|
45
|
+
:'status' => :'status'
|
50
46
|
}
|
51
47
|
end
|
52
48
|
|
53
49
|
# Attribute type mapping.
|
54
50
|
def self.openapi_types
|
55
51
|
{
|
56
|
-
:'status' => :'String'
|
57
|
-
:'request_id' => :'String'
|
52
|
+
:'status' => :'String'
|
58
53
|
}
|
59
54
|
end
|
60
55
|
|
@@ -82,10 +77,6 @@ module Freeclimb
|
|
82
77
|
if attributes.key?(:'status')
|
83
78
|
self.status = attributes[:'status']
|
84
79
|
end
|
85
|
-
|
86
|
-
if attributes.key?(:'request_id')
|
87
|
-
self.request_id = attributes[:'request_id']
|
88
|
-
end
|
89
80
|
end
|
90
81
|
|
91
82
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -123,8 +114,7 @@ module Freeclimb
|
|
123
114
|
def ==(o)
|
124
115
|
return true if self.equal?(o)
|
125
116
|
self.class == o.class &&
|
126
|
-
status == o.status
|
127
|
-
request_id == o.request_id
|
117
|
+
status == o.status
|
128
118
|
end
|
129
119
|
|
130
120
|
# @see the `==` method
|
@@ -136,7 +126,7 @@ module Freeclimb
|
|
136
126
|
# Calculates hash code according to all attributes.
|
137
127
|
# @return [Integer] Hash code
|
138
128
|
def hash
|
139
|
-
[status
|
129
|
+
[status].hash
|
140
130
|
end
|
141
131
|
|
142
132
|
# Builds the object from hash
|
@@ -20,15 +20,11 @@ module Freeclimb
|
|
20
20
|
# (Optional) Default is `true`. Setting to `false` silences the Conference for this Participant. FreeClimb returns an error and ignores any other value.
|
21
21
|
attr_accessor :listen
|
22
22
|
|
23
|
-
# ID of this request starting with prefix *RQ* followed by 40 hexadecimal characters. FreeClimb logs generated while processing this request include this requestId. If this value is not provided, FreeClimb generates a requestId and returns 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
|
:'talk' => :'talk',
|
30
|
-
:'listen' => :'listen'
|
31
|
-
:'request_id' => :'requestId'
|
27
|
+
:'listen' => :'listen'
|
32
28
|
}
|
33
29
|
end
|
34
30
|
|
@@ -36,8 +32,7 @@ module Freeclimb
|
|
36
32
|
def self.openapi_types
|
37
33
|
{
|
38
34
|
:'talk' => :'Boolean',
|
39
|
-
:'listen' => :'Boolean'
|
40
|
-
:'request_id' => :'String'
|
35
|
+
:'listen' => :'Boolean'
|
41
36
|
}
|
42
37
|
end
|
43
38
|
|
@@ -69,10 +64,6 @@ module Freeclimb
|
|
69
64
|
if attributes.key?(:'listen')
|
70
65
|
self.listen = attributes[:'listen']
|
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
|
talk == o.talk &&
|
97
|
-
listen == o.listen
|
98
|
-
request_id == o.request_id
|
88
|
+
listen == o.listen
|
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
|
-
[talk, listen
|
100
|
+
[talk, listen].hash
|
111
101
|
end
|
112
102
|
|
113
103
|
# Builds the object from hash
|
@@ -23,9 +23,6 @@ module Freeclimb
|
|
23
23
|
# New status of the conference. Valid values: `empty` or `terminated`. For more information, see **Status Parameter** below.**
|
24
24
|
attr_accessor :status
|
25
25
|
|
26
|
-
# ID 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>).
|
27
|
-
attr_accessor :request_id
|
28
|
-
|
29
26
|
class EnumAttributeValidator
|
30
27
|
attr_reader :datatype
|
31
28
|
attr_reader :allowable_values
|
@@ -53,8 +50,7 @@ module Freeclimb
|
|
53
50
|
{
|
54
51
|
:'_alias' => :'alias',
|
55
52
|
:'play_beep' => :'playBeep',
|
56
|
-
:'status' => :'status'
|
57
|
-
:'request_id' => :'requestId'
|
53
|
+
:'status' => :'status'
|
58
54
|
}
|
59
55
|
end
|
60
56
|
|
@@ -63,8 +59,7 @@ module Freeclimb
|
|
63
59
|
{
|
64
60
|
:'_alias' => :'String',
|
65
61
|
:'play_beep' => :'String',
|
66
|
-
:'status' => :'String'
|
67
|
-
:'request_id' => :'String'
|
62
|
+
:'status' => :'String'
|
68
63
|
}
|
69
64
|
end
|
70
65
|
|
@@ -102,10 +97,6 @@ module Freeclimb
|
|
102
97
|
if attributes.key?(:'status')
|
103
98
|
self.status = attributes[:'status']
|
104
99
|
end
|
105
|
-
|
106
|
-
if attributes.key?(:'request_id')
|
107
|
-
self.request_id = attributes[:'request_id']
|
108
|
-
end
|
109
100
|
end
|
110
101
|
|
111
102
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -140,8 +131,7 @@ module Freeclimb
|
|
140
131
|
self.class == o.class &&
|
141
132
|
_alias == o._alias &&
|
142
133
|
play_beep == o.play_beep &&
|
143
|
-
status == o.status
|
144
|
-
request_id == o.request_id
|
134
|
+
status == o.status
|
145
135
|
end
|
146
136
|
|
147
137
|
# @see the `==` method
|
@@ -153,7 +143,7 @@ module Freeclimb
|
|
153
143
|
# Calculates hash code according to all attributes.
|
154
144
|
# @return [Integer] Hash code
|
155
145
|
def hash
|
156
|
-
[_alias, play_beep, status
|
146
|
+
[_alias, play_beep, status].hash
|
157
147
|
end
|
158
148
|
|
159
149
|
# Builds the object from hash
|
data/lib/freeclimb/version.rb
CHANGED
@@ -52,11 +52,9 @@ describe 'DefaultApi' do
|
|
52
52
|
before do
|
53
53
|
uri_template = Addressable::Template.new "#{API_SERVER}/Accounts/{accountId}/IncomingPhoneNumbers"
|
54
54
|
@stub = stub_request(:post, uri_template).to_return(:body => ResponseMocks::INCOMING_PHONE_NUMBER, :status => 200, :headers => {})
|
55
|
-
|
56
|
-
buy_incoming_number_request: Freeclimb::BuyIncomingNumberRequest.new # BuyIncomingNumberRequest | Incoming Number transaction details
|
57
|
-
}
|
55
|
+
buy_incoming_number_request = Freeclimb::BuyIncomingNumberRequest.new # BuyIncomingNumberRequest | Incoming Number transaction details
|
58
56
|
#Buy a Phone Number
|
59
|
-
@result = @api_instance.buy_a_phone_number(
|
57
|
+
@result = @api_instance.buy_a_phone_number(buy_incoming_number_request)
|
60
58
|
end
|
61
59
|
|
62
60
|
|
@@ -221,7 +219,6 @@ describe 'DefaultApi' do
|
|
221
219
|
# @param queue_id String that uniquely identifies the Queue that the Member belongs to.
|
222
220
|
# @param call_id ID if the Call that the Member belongs to
|
223
221
|
# @param [Hash] opts the optional parameters
|
224
|
-
# @option opts [DequeueMemberRequest] :dequeue_member_request Dequeue member request details
|
225
222
|
# @return [QueueMember]
|
226
223
|
describe 'dequeue_a_member test' do
|
227
224
|
before do
|
@@ -229,11 +226,8 @@ describe 'DefaultApi' do
|
|
229
226
|
@stub = stub_request(:post, uri_template).to_return(:body => ResponseMocks::QUEUE_MEMBER_RESULT, :status => 200, :headers => {})
|
230
227
|
queue_id = 'MOCK_QUEUE_ID' # String | String that uniquely identifies the Queue that the Member belongs to.
|
231
228
|
call_id = 'MOCK_CALL_ID' # String | ID if the Call that the Member belongs to
|
232
|
-
opts = {
|
233
|
-
dequeue_member_request: Freeclimb::DequeueMemberRequest.new # DequeueMemberRequest | Dequeue member request details
|
234
|
-
}
|
235
229
|
|
236
|
-
@result = @api_instance.dequeue_a_member(queue_id, call_id
|
230
|
+
@result = @api_instance.dequeue_a_member(queue_id, call_id)
|
237
231
|
end
|
238
232
|
|
239
233
|
it 'should respond with a queue member' do
|
@@ -249,18 +243,14 @@ describe 'DefaultApi' do
|
|
249
243
|
# Dequeue Head Member
|
250
244
|
# @param queue_id String that uniquely identifies this queue resource.
|
251
245
|
# @param [Hash] opts the optional parameters
|
252
|
-
# @option opts [DequeueMemberRequest] :dequeue_member_request Dequeue head member request details
|
253
246
|
# @return [QueueMember]
|
254
247
|
describe 'dequeue_head_member test' do
|
255
248
|
before do
|
256
249
|
uri_template = Addressable::Template.new "#{API_SERVER}/Accounts/{accountId}/Queues/{queueId}/Members/Front"
|
257
250
|
@stub = stub_request(:post, uri_template).to_return(:body => ResponseMocks::QUEUE_MEMBER_RESULT, :status => 200, :headers => {})
|
258
251
|
queue_id = 'MOCK_QUEUE_ID' # String | String that uniquely identifies the Queue that the Member belongs to.
|
259
|
-
opts = {
|
260
|
-
dequeue_member_request: Freeclimb::DequeueMemberRequest.new # DequeueMemberRequest | Dequeue member request details
|
261
|
-
}
|
262
252
|
|
263
|
-
@result = @api_instance.dequeue_head_member(queue_id
|
253
|
+
@result = @api_instance.dequeue_head_member(queue_id)
|
264
254
|
end
|
265
255
|
|
266
256
|
it 'should respond with a queue member' do
|
@@ -300,11 +290,9 @@ describe 'DefaultApi' do
|
|
300
290
|
before do
|
301
291
|
uri_template = Addressable::Template.new "#{API_SERVER}/Accounts/{accountId}/Logs"
|
302
292
|
@stub = stub_request(:post, uri_template).to_return(:body => ResponseMocks::LOG_LIST_RESULT, :status => 200, :headers => {})
|
303
|
-
|
304
|
-
filter_logs_request: Freeclimb::FilterLogsRequest.new # FilterLogsRequest | Filter logs request paramters
|
305
|
-
}
|
293
|
+
filter_logs_request = Freeclimb::FilterLogsRequest.new # FilterLogsRequest | Filter logs request paramters
|
306
294
|
|
307
|
-
@result = @api_instance.filter_logs(
|
295
|
+
@result = @api_instance.filter_logs(filter_logs_request)
|
308
296
|
end
|
309
297
|
|
310
298
|
it 'should respond with a list of logs' do
|
@@ -949,11 +937,7 @@ describe 'DefaultApi' do
|
|
949
937
|
request_body.from ='MOCK_FROM_NUMBER'
|
950
938
|
request_body.text = 'MOCK_TEXT'
|
951
939
|
|
952
|
-
|
953
|
-
message_request: request_body # MessageRequest | Details to create a message
|
954
|
-
}
|
955
|
-
|
956
|
-
@result = @api_instance.send_an_sms_message(opts)
|
940
|
+
@result = @api_instance.send_an_sms_message(request_body)
|
957
941
|
end
|
958
942
|
|
959
943
|
it 'should respond with Message result' do
|
@@ -1020,7 +1004,8 @@ describe 'DefaultApi' do
|
|
1020
1004
|
@stub = stub_request(:post, uri_template).to_return(:body => '{}', :status => 202, :headers => {})
|
1021
1005
|
|
1022
1006
|
call_id = 'MOCK_CALL_ID'
|
1023
|
-
|
1007
|
+
call_request = Freeclimb::UpdateCallRequest.new
|
1008
|
+
@result = @api_instance.update_a_live_call(call_id, call_request)
|
1024
1009
|
end
|
1025
1010
|
|
1026
1011
|
it 'should make a POST request to /Accounts/{accountId}/Calls/{callId}' do
|