Method: Bitex::KycProfile#add_kyc_file!

Defined in:
lib/bitex/kyc_profile.rb

#add_kyc_file!(path, content_type = nil) ⇒ Object



124
125
126
127
128
129
130
131
132
133
# File 'lib/bitex/kyc_profile.rb', line 124

def add_kyc_file!(path, content_type = nil)
  response = Api.private(
    :post,
    "/private/kyc_profiles/#{id}/kyc_files",
    { document_content_type: content_type },
    document: path
  )

  KycFile.from_json(response)
end