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: CloseParams, CreateParams, ListParams, RetrieveParams
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.
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
68 69 70 71 72 73 74 75 76 |
# File 'lib/stripe/services/v2/money_management/financial_account_service.rb', line 68 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
82 83 84 85 86 87 88 89 90 |
# File 'lib/stripe/services/v2/money_management/financial_account_service.rb', line 82 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.
93 94 95 96 97 98 99 100 101 |
# File 'lib/stripe/services/v2/money_management/financial_account_service.rb', line 93 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.
104 105 106 107 108 109 110 111 112 |
# File 'lib/stripe/services/v2/money_management/financial_account_service.rb', line 104 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 |