Class: Stripe::FinancialConnections::AccountService
- Inherits:
-
StripeService
- Object
- StripeService
- Stripe::FinancialConnections::AccountService
- Defined in:
- lib/stripe/services/financial_connections/account_service.rb
Instance Attribute Summary collapse
-
#owners ⇒ Object
readonly
Returns the value of attribute owners.
Instance Method Summary collapse
-
#disconnect(account, params = {}, opts = {}) ⇒ Object
Disables your access to a Financial Connections Account.
-
#initialize(requestor) ⇒ AccountService
constructor
A new instance of AccountService.
-
#list(params = {}, opts = {}) ⇒ Object
Returns a list of Financial Connections Account objects.
-
#refresh(account, params = {}, opts = {}) ⇒ Object
Refreshes the data associated with a Financial Connections Account.
-
#retrieve(account, params = {}, opts = {}) ⇒ Object
Retrieves the details of an Financial Connections Account.
-
#subscribe(account, params = {}, opts = {}) ⇒ Object
Subscribes to periodic refreshes of data associated with a Financial Connections Account.
-
#unsubscribe(account, params = {}, opts = {}) ⇒ Object
Unsubscribes from periodic refreshes of data associated with a Financial Connections Account.
Methods inherited from StripeService
Constructor Details
#initialize(requestor) ⇒ AccountService
Returns a new instance of AccountService.
9 10 11 12 |
# File 'lib/stripe/services/financial_connections/account_service.rb', line 9 def initialize(requestor) super(requestor) @owners = Stripe::FinancialConnections::AccountOwnerService.new(@requestor) end |
Instance Attribute Details
#owners ⇒ Object (readonly)
Returns the value of attribute owners.
7 8 9 |
# File 'lib/stripe/services/financial_connections/account_service.rb', line 7 def owners @owners end |
Instance Method Details
#disconnect(account, params = {}, opts = {}) ⇒ Object
Disables your access to a Financial Connections Account. You will no longer be able to access data associated with the account (e.g. balances, transactions).
15 16 17 18 19 20 21 22 23 |
# File 'lib/stripe/services/financial_connections/account_service.rb', line 15 def disconnect(account, params = {}, opts = {}) request( method: :post, path: format("/v1/financial_connections/accounts/%<account>s/disconnect", { account: CGI.escape(account) }), params: params, opts: opts, base_address: :api ) end |
#list(params = {}, opts = {}) ⇒ Object
Returns a list of Financial Connections Account objects.
26 27 28 29 30 31 32 33 34 |
# File 'lib/stripe/services/financial_connections/account_service.rb', line 26 def list(params = {}, opts = {}) request( method: :get, path: "/v1/financial_connections/accounts", params: params, opts: opts, base_address: :api ) end |
#refresh(account, params = {}, opts = {}) ⇒ Object
Refreshes the data associated with a Financial Connections Account.
37 38 39 40 41 42 43 44 45 |
# File 'lib/stripe/services/financial_connections/account_service.rb', line 37 def refresh(account, params = {}, opts = {}) request( method: :post, path: format("/v1/financial_connections/accounts/%<account>s/refresh", { account: CGI.escape(account) }), params: params, opts: opts, base_address: :api ) end |
#retrieve(account, params = {}, opts = {}) ⇒ Object
Retrieves the details of an Financial Connections Account.
48 49 50 51 52 53 54 55 56 |
# File 'lib/stripe/services/financial_connections/account_service.rb', line 48 def retrieve(account, params = {}, opts = {}) request( method: :get, path: format("/v1/financial_connections/accounts/%<account>s", { account: CGI.escape(account) }), params: params, opts: opts, base_address: :api ) end |
#subscribe(account, params = {}, opts = {}) ⇒ Object
Subscribes to periodic refreshes of data associated with a Financial Connections Account.
59 60 61 62 63 64 65 66 67 |
# File 'lib/stripe/services/financial_connections/account_service.rb', line 59 def subscribe(account, params = {}, opts = {}) request( method: :post, path: format("/v1/financial_connections/accounts/%<account>s/subscribe", { account: CGI.escape(account) }), params: params, opts: opts, base_address: :api ) end |
#unsubscribe(account, params = {}, opts = {}) ⇒ Object
Unsubscribes from periodic refreshes of data associated with a Financial Connections Account.
70 71 72 73 74 75 76 77 78 |
# File 'lib/stripe/services/financial_connections/account_service.rb', line 70 def unsubscribe(account, params = {}, opts = {}) request( method: :post, path: format("/v1/financial_connections/accounts/%<account>s/unsubscribe", { account: CGI.escape(account) }), params: params, opts: opts, base_address: :api ) end |