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
Instance Method Summary collapse
-
#close(id, params = {}, opts = {}) ⇒ Object
Closes a FinancialAccount with or without forwarding settings.
-
#create(params = {}, opts = {}) ⇒ Object
Creates a new FinancialAccount.
-
#list(params = {}, opts = {}) ⇒ Object
Lists FinancialAccounts in this compartment.
-
#retrieve(id, params = {}, opts = {}) ⇒ Object
Retrieves the details of an existing FinancialAccount.
-
#update(id, params = {}, opts = {}) ⇒ Object
Updates an existing FinancialAccount.
Methods inherited from StripeService
#initialize, #request, #request_stream
Constructor Details
This class inherits a constructor from Stripe::StripeService
Instance Method Details
#close(id, params = {}, opts = {}) ⇒ Object
Closes a FinancialAccount with or without forwarding settings.
** raises NonZeroBalanceError
11 12 13 14 15 16 17 18 19 |
# File 'lib/stripe/services/v2/money_management/financial_account_service.rb', line 11 def close(id, params = {}, opts = {}) request( method: :post, path: format("/v2/money_management/financial_accounts/%<id>s/close", { id: CGI.escape(id) }), params: params, opts: opts, base_address: :api ) end |
#create(params = {}, opts = {}) ⇒ Object
Creates a new FinancialAccount.
** raises AlreadyExistsError ** raises FeatureNotEnabledError
25 26 27 28 29 30 31 32 33 |
# File 'lib/stripe/services/v2/money_management/financial_account_service.rb', line 25 def create(params = {}, opts = {}) request( method: :post, path: "/v2/money_management/financial_accounts", params: params, opts: opts, base_address: :api ) end |
#list(params = {}, opts = {}) ⇒ Object
Lists FinancialAccounts in this compartment.
36 37 38 39 40 41 42 43 44 |
# File 'lib/stripe/services/v2/money_management/financial_account_service.rb', line 36 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.
47 48 49 50 51 52 53 54 55 |
# File 'lib/stripe/services/v2/money_management/financial_account_service.rb', line 47 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 |
#update(id, params = {}, opts = {}) ⇒ Object
Updates an existing FinancialAccount.
58 59 60 61 62 63 64 65 66 |
# File 'lib/stripe/services/v2/money_management/financial_account_service.rb', line 58 def update(id, params = {}, opts = {}) request( method: :post, path: format("/v2/money_management/financial_accounts/%<id>s", { id: CGI.escape(id) }), params: params, opts: opts, base_address: :api ) end |