Class: Frame::CustomerIdentityVerification

Inherits:
APIResource show all
Extended by:
APIOperations::Create, APIOperations::List
Defined in:
lib/frame/resources/customer_identity_verification.rb

Constant Summary collapse

OBJECT_NAME =
"customer_identity_verification"

Instance Attribute Summary

Attributes inherited from FrameObject

#id, #original_values

Class Method Summary collapse

Instance Method Summary collapse

Methods included from APIOperations::Create

create

Methods included from APIOperations::List

list

Methods inherited from APIResource

class_name, #refresh, resource_url, #resource_url

Methods included from APIOperations::Request

included

Methods inherited from FrameObject

#[], #[]=, construct_from, #each, #initialize, #initialize_from, #inspect, #keys, #serialize_params, #to_hash, #to_s, #update_attributes, #values

Constructor Details

This class inherits a constructor from Frame::FrameObject

Class Method Details

.create(params = {}, opts = {}) ⇒ Object



14
15
16
17
18
19
20
21
# File 'lib/frame/resources/customer_identity_verification.rb', line 14

def self.create(params = {}, opts = {})
  request_object(
    :post,
    "/v1/customer_identity_verifications",
    params,
    opts
  )
end

.list(params = {}, opts = {}) ⇒ Object



23
24
25
26
27
28
29
30
# File 'lib/frame/resources/customer_identity_verification.rb', line 23

def self.list(params = {}, opts = {})
  request_object(
    :get,
    "/v1/customer_identity_verifications",
    params,
    opts
  )
end

.object_nameObject



10
11
12
# File 'lib/frame/resources/customer_identity_verification.rb', line 10

def self.object_name
  OBJECT_NAME
end

.retrieve(id, opts = {}) ⇒ Object



32
33
34
35
36
37
38
39
40
# File 'lib/frame/resources/customer_identity_verification.rb', line 32

def self.retrieve(id, opts = {})
  id = Util.normalize_id(id)
  request_object(
    :get,
    "/v1/customer_identity_verifications/#{CGI.escape(id)}",
    {},
    opts
  )
end

.upload_documents(id, params = {}, opts = {}) ⇒ Object



51
52
53
54
55
56
57
58
# File 'lib/frame/resources/customer_identity_verification.rb', line 51

def self.upload_documents(id, params = {}, opts = {})
  request_object(
    :post,
    "/v1/customer_identity_verifications/#{CGI.escape(id)}/upload_documents",
    params,
    opts
  )
end

Instance Method Details

#upload_documents(params = {}, opts = {}) ⇒ Object



42
43
44
45
46
47
48
49
# File 'lib/frame/resources/customer_identity_verification.rb', line 42

def upload_documents(params = {}, opts = {})
  request_object(
    :post,
    "/v1/customer_identity_verifications/#{CGI.escape(self["id"])}/upload_documents",
    params,
    opts
  )
end