Class: Stripe::FinancialConnections::Account
Constant Summary
collapse
- OBJECT_NAME =
"financial_connections.account"
Constants inherited
from StripeObject
StripeObject::RESERVED_FIELD_NAMES
Instance Attribute Summary
Attributes inherited from APIResource
#save_with_parent
Class Method Summary
collapse
Instance Method Summary
collapse
list
Methods inherited from APIResource
class_name, custom_method, #refresh, #request_stripe_object, #resource_url, resource_url, retrieve, save_nested_resource
included
#==, #[], #[]=, additive_object_param, additive_object_param?, #as_json, construct_from, #deleted?, #dirty!, #each, #eql?, #hash, #initialize, #inspect, #keys, #marshal_dump, #marshal_load, protected_fields, #serialize_params, #to_hash, #to_json, #to_s, #update_attributes, #values
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
in the class Stripe::StripeObject
Class Method Details
.disconnect(account, params = {}, opts = {}) ⇒ Object
38
39
40
41
42
43
44
45
|
# File 'lib/stripe/resources/financial_connections/account.rb', line 38
def self.disconnect(account, params = {}, opts = {})
request_stripe_object(
method: :post,
path: format("/v1/financial_connections/accounts/%<account>s/disconnect", { account: CGI.escape(account) }),
params: params,
opts: opts
)
end
|
.list_owners(account, params = {}, opts = {}) ⇒ Object
47
48
49
50
51
52
53
54
|
# File 'lib/stripe/resources/financial_connections/account.rb', line 47
def self.list_owners(account, params = {}, opts = {})
request_stripe_object(
method: :get,
path: format("/v1/financial_connections/accounts/%<account>s/owners", { account: CGI.escape(account) }),
params: params,
opts: opts
)
end
|
.refresh_account(account, params = {}, opts = {}) ⇒ Object
56
57
58
59
60
61
62
63
|
# File 'lib/stripe/resources/financial_connections/account.rb', line 56
def self.refresh_account(account, params = {}, opts = {})
request_stripe_object(
method: :post,
path: format("/v1/financial_connections/accounts/%<account>s/refresh", { account: CGI.escape(account) }),
params: params,
opts: opts
)
end
|
Instance Method Details
#disconnect(params = {}, opts = {}) ⇒ Object
11
12
13
14
15
16
17
18
|
# File 'lib/stripe/resources/financial_connections/account.rb', line 11
def disconnect(params = {}, opts = {})
request_stripe_object(
method: :post,
path: format("/v1/financial_connections/accounts/%<account>s/disconnect", { account: CGI.escape(self["id"]) }),
params: params,
opts: opts
)
end
|
#list_owners(params = {}, opts = {}) ⇒ Object
20
21
22
23
24
25
26
27
|
# File 'lib/stripe/resources/financial_connections/account.rb', line 20
def list_owners(params = {}, opts = {})
request_stripe_object(
method: :get,
path: format("/v1/financial_connections/accounts/%<account>s/owners", { account: CGI.escape(self["id"]) }),
params: params,
opts: opts
)
end
|
#refresh_account(params = {}, opts = {}) ⇒ Object
29
30
31
32
33
34
35
36
|
# File 'lib/stripe/resources/financial_connections/account.rb', line 29
def refresh_account(params = {}, opts = {})
request_stripe_object(
method: :post,
path: format("/v1/financial_connections/accounts/%<account>s/refresh", { account: CGI.escape(self["id"]) }),
params: params,
opts: opts
)
end
|