Class: Stripe::SourceTransactionService

Inherits:
StripeService show all
Defined in:
lib/stripe/services/source_transaction_service.rb

Defined Under Namespace

Classes: ListParams

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

#list(source, params = {}, opts = {}) ⇒ Object

List source transactions for a given source.



25
26
27
28
29
30
31
32
33
# File 'lib/stripe/services/source_transaction_service.rb', line 25

def list(source, params = {}, opts = {})
  request(
    method: :get,
    path: format("/v1/sources/%<source>s/source_transactions", { source: CGI.escape(source) }),
    params: params,
    opts: opts,
    base_address: :api
  )
end