Class: Stripe::Treasury::FinancialAccountFeaturesService

Inherits:
StripeService
  • Object
show all
Defined in:
lib/stripe/services/treasury/financial_account_features_service.rb

Instance Method Summary collapse

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(, params = {}, opts = {})
  request(
    method: :get,
    path: format("/v1/treasury/financial_accounts/%<financial_account>s/features", { financial_account: CGI.escape() }),
    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(, params = {}, opts = {})
  request(
    method: :post,
    path: format("/v1/treasury/financial_accounts/%<financial_account>s/features", { financial_account: CGI.escape() }),
    params: params,
    opts: opts,
    base_address: :api
  )
end