Class: Stripe::V2::MoneyManagement::FinancialAccountService
- Inherits:
-
StripeService
- Object
- StripeService
- Stripe::V2::MoneyManagement::FinancialAccountService
- Defined in:
- lib/stripe/services/v2/money_management/financial_account_service.rb
Defined Under Namespace
Classes: ListParams, RetrieveParams
Instance Method Summary collapse
-
#list(params = {}, opts = {}) ⇒ Object
Lists FinancialAccounts in this compartment.
-
#retrieve(id, params = {}, opts = {}) ⇒ Object
Retrieves the details of an existing FinancialAccount.
Methods inherited from StripeService
#initialize, #request, #request_stream
Constructor Details
This class inherits a constructor from Stripe::StripeService
Instance Method Details
#list(params = {}, opts = {}) ⇒ Object
Lists FinancialAccounts in this compartment.
20 21 22 23 24 25 26 27 28 |
# File 'lib/stripe/services/v2/money_management/financial_account_service.rb', line 20 def list(params = {}, opts = {}) request( method: :get, path: "/v2/money_management/financial_accounts", params: params, opts: opts, base_address: :api ) end |
#retrieve(id, params = {}, opts = {}) ⇒ Object
Retrieves the details of an existing FinancialAccount.
31 32 33 34 35 36 37 38 39 |
# File 'lib/stripe/services/v2/money_management/financial_account_service.rb', line 31 def retrieve(id, params = {}, opts = {}) request( method: :get, path: format("/v2/money_management/financial_accounts/%<id>s", { id: CGI.escape(id) }), params: params, opts: opts, base_address: :api ) end |