Class: Frame::BeneficialOwner
Constant Summary
collapse
- OBJECT_NAME =
"beneficial_owner"
Instance Attribute Summary
Attributes inherited from FrameObject
#id, #original_values
Class Method Summary
collapse
-
.confirm_roster(account_id, params = {}, opts = {}) ⇒ Object
-
.create(account_id, params = {}, opts = {}) ⇒ Object
-
.delete(account_id, id, params = {}, opts = {}) ⇒ Object
-
.list(account_id, params = {}, opts = {}) ⇒ Object
-
.object_name ⇒ Object
-
.resend_invite(account_id, id, params = {}, opts = {}) ⇒ Object
-
.retrieve(account_id, id, opts = {}) ⇒ Object
-
.update(account_id, id, params = {}, opts = {}) ⇒ Object
Methods inherited from APIResource
class_name, #refresh, resource_url, #resource_url
included
Methods inherited from FrameObject
#[], #[]=, construct_from, #each, #initialize, #initialize_from, #inspect, #keys, #serialize_params, #to_hash, #to_s, #update_attributes, #values
Class Method Details
.confirm_roster(account_id, params = {}, opts = {}) ⇒ Object
31
32
33
|
# File 'lib/frame/resources/beneficial_owner.rb', line 31
def self.confirm_roster(account_id, params = {}, opts = {})
request_object(:post, "/v1/accounts/#{CGI.escape(account_id)}/beneficial_owners/confirm", params, opts)
end
|
.create(account_id, params = {}, opts = {}) ⇒ Object
15
16
17
|
# File 'lib/frame/resources/beneficial_owner.rb', line 15
def self.create(account_id, params = {}, opts = {})
request_object(:post, "/v1/accounts/#{CGI.escape(account_id)}/beneficial_owners", params, opts)
end
|
.delete(account_id, id, params = {}, opts = {}) ⇒ Object
27
28
29
|
# File 'lib/frame/resources/beneficial_owner.rb', line 27
def self.delete(account_id, id, params = {}, opts = {})
request_object(:delete, "/v1/accounts/#{CGI.escape(account_id)}/beneficial_owners/#{CGI.escape(id)}", params, opts)
end
|
.list(account_id, params = {}, opts = {}) ⇒ Object
11
12
13
|
# File 'lib/frame/resources/beneficial_owner.rb', line 11
def self.list(account_id, params = {}, opts = {})
request_object(:get, "/v1/accounts/#{CGI.escape(account_id)}/beneficial_owners", params, opts)
end
|
.object_name ⇒ Object
7
8
9
|
# File 'lib/frame/resources/beneficial_owner.rb', line 7
def self.object_name
OBJECT_NAME
end
|
.resend_invite(account_id, id, params = {}, opts = {}) ⇒ Object
35
36
37
|
# File 'lib/frame/resources/beneficial_owner.rb', line 35
def self.resend_invite(account_id, id, params = {}, opts = {})
request_object(:post, "/v1/accounts/#{CGI.escape(account_id)}/beneficial_owners/#{CGI.escape(id)}/resend_invite", params, opts)
end
|
.retrieve(account_id, id, opts = {}) ⇒ Object
19
20
21
|
# File 'lib/frame/resources/beneficial_owner.rb', line 19
def self.retrieve(account_id, id, opts = {})
request_object(:get, "/v1/accounts/#{CGI.escape(account_id)}/beneficial_owners/#{CGI.escape(id)}", {}, opts)
end
|
.update(account_id, id, params = {}, opts = {}) ⇒ Object
23
24
25
|
# File 'lib/frame/resources/beneficial_owner.rb', line 23
def self.update(account_id, id, params = {}, opts = {})
request_object(:patch, "/v1/accounts/#{CGI.escape(account_id)}/beneficial_owners/#{CGI.escape(id)}", params, opts)
end
|