Class: Tazapay::KYB
Overview
Instance Method Summary
collapse
Methods inherited from Client
#handle_error, #interpret_response, #send_request
Instance Method Details
#create(data) ⇒ Object
9
10
11
12
|
# File 'lib/tazapay/kyb.rb', line 9
def create(data)
path = "/v2/kyb/"
send_request(method: :post, path: path, body: data)
end
|
#find(account_id) ⇒ Object
24
25
26
27
|
# File 'lib/tazapay/kyb.rb', line 24
def find(account_id)
path = "/v2/kyb/#{account_id}"
send_request(method: :get, path: path)
end
|
#status(account_id) ⇒ Object
19
20
21
22
|
# File 'lib/tazapay/kyb.rb', line 19
def status(account_id)
path = "/v1/kyb/status/#{account_id}"
send_request(method: :get, path: path)
end
|
#update(id:, data:) ⇒ Object
14
15
16
17
|
# File 'lib/tazapay/kyb.rb', line 14
def update(id:, data:)
path = "/v2/kyb/#{id}"
send_request(method: :put, path: path, body: data)
end
|