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
173 174 175 |
# File 'lib/vonage/verify.rb', line 173 def cancel(id) control(request_id: id, cmd: 'cancel') end |
#check(params) ⇒ Object
99 100 101 102 103 104 105 |
# File 'lib/vonage/verify.rb', line 99 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
153 154 155 156 157 158 159 |
# File 'lib/vonage/verify.rb', line 153 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
240 241 242 243 244 245 246 |
# File 'lib/vonage/verify.rb', line 240 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
66 67 68 69 70 71 72 |
# File 'lib/vonage/verify.rb', line 66 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
126 127 128 129 130 131 132 |
# File 'lib/vonage/verify.rb', line 126 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
189 190 191 |
# File 'lib/vonage/verify.rb', line 189 def trigger_next_event(id) control(request_id: id, cmd: 'trigger_next_event') end |