Class: Stripe::Treasury::FinancialAccountFeaturesService
- Inherits:
-
StripeService
- Object
- StripeService
- Stripe::Treasury::FinancialAccountFeaturesService
- Defined in:
- lib/stripe/services/treasury/financial_account_features_service.rb
Instance Method Summary collapse
-
#retrieve(financial_account, params = {}, opts = {}) ⇒ Object
Retrieves Features information associated with the FinancialAccount.
-
#update(financial_account, params = {}, opts = {}) ⇒ Object
Updates the Features associated with a FinancialAccount.
Methods inherited from StripeService
#initialize, #request, #request_stream
Constructor Details
This class inherits a constructor from Stripe::StripeService
Instance Method Details
#retrieve(financial_account, params = {}, opts = {}) ⇒ Object
Retrieves Features information associated with the FinancialAccount.
8 9 10 11 12 13 14 15 16 |
# File 'lib/stripe/services/treasury/financial_account_features_service.rb', line 8 def retrieve(financial_account, params = {}, opts = {}) request( method: :get, path: format("/v1/treasury/financial_accounts/%<financial_account>s/features", { financial_account: CGI.escape(financial_account) }), params: params, opts: opts, base_address: :api ) end |
#update(financial_account, params = {}, opts = {}) ⇒ Object
Updates the Features associated with a FinancialAccount.
19 20 21 22 23 24 25 26 27 |
# File 'lib/stripe/services/treasury/financial_account_features_service.rb', line 19 def update(financial_account, params = {}, opts = {}) request( method: :post, path: format("/v1/treasury/financial_accounts/%<financial_account>s/features", { financial_account: CGI.escape(financial_account) }), params: params, opts: opts, base_address: :api ) end |