Class: Tazapay::KYB

Inherits:
Client show all
Defined in:
lib/tazapay/kyb.rb

Overview

KYB API

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()
  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()
  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