Class: Stripe::V2::MoneyManagement::TestHelpers::FinancialAddressService

Inherits:
StripeService
  • Object
show all
Defined in:
lib/stripe/services/v2/money_management/test_helpers/financial_address_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

#debit(id, params = {}, opts = {}) ⇒ Object

Simulate debiting a FinancialAddress in a Sandbox environment. This can be used to remove virtual funds and decrease your balance for testing.



10
11
12
13
14
15
16
17
18
# File 'lib/stripe/services/v2/money_management/test_helpers/financial_address_service.rb', line 10

def debit(id, params = {}, opts = {})
  request(
    method: :post,
    path: format("/v2/money_management/test_helpers/financial_addresses/%<id>s/debit", { id: CGI.escape(id) }),
    params: params,
    opts: opts,
    base_address: :api
  )
end