Class: Vonage::Verify
- Inherits:
-
Namespace
- Object
- Namespace
- Vonage::Verify
- Extended by:
- T::Sig
- Defined in:
- lib/vonage/verify.rb
Instance Method Summary collapse
- #cancel(id) ⇒ Object
- #check(params) ⇒ Object
- #control(params) ⇒ Object
- #psd2(params, uri = '/verify/psd2/json') ⇒ Object
- #request(params, uri = '/verify/json') ⇒ Object
- #search(params) ⇒ Object
- #trigger_next_event(id) ⇒ Object
Instance Method Details
#cancel(id) ⇒ Object
171 172 173 |
# File 'lib/vonage/verify.rb', line 171 def cancel(id) control(request_id: id, cmd: 'cancel') end |
#check(params) ⇒ Object
97 98 99 100 101 102 103 |
# File 'lib/vonage/verify.rb', line 97 def check(params) response = http_request('/verify/check/json', params: params, type: Post) raise ServiceError.new(response: response), response[:error_text] if error?(response) response end |
#control(params) ⇒ Object
151 152 153 154 155 156 157 |
# File 'lib/vonage/verify.rb', line 151 def control(params) response = http_request('/verify/control/json', params: params, type: Post) raise ServiceError.new(response: response), response[:error_text] if error?(response) response end |
#psd2(params, uri = '/verify/psd2/json') ⇒ Object
238 239 240 241 242 243 244 |
# File 'lib/vonage/verify.rb', line 238 def psd2(params, uri = '/verify/psd2/json') response = http_request(uri, params: params, type: Post) raise ServiceError.new(response: response), response[:error_text] if error?(response) response end |
#request(params, uri = '/verify/json') ⇒ Object
64 65 66 67 68 69 70 |
# File 'lib/vonage/verify.rb', line 64 def request(params, uri = '/verify/json') response = http_request(uri, params: params, type: Post) raise ServiceError.new(response: response), response[:error_text] if error?(response) response end |
#search(params) ⇒ Object
124 125 126 127 128 129 130 |
# File 'lib/vonage/verify.rb', line 124 def search(params) response = http_request('/verify/search/json', params: params) raise ServiceError.new(response: response), response[:error_text] if error?(response) response end |
#trigger_next_event(id) ⇒ Object
187 188 189 |
# File 'lib/vonage/verify.rb', line 187 def trigger_next_event(id) control(request_id: id, cmd: 'trigger_next_event') end |