Class: Stripe::Capital::FinancingTransactionService

Inherits:
StripeService
  • Object
show all
Defined in:
lib/stripe/services/capital/financing_transaction_service.rb

Defined Under Namespace

Classes: ListParams, RetrieveParams

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(params = {}, opts = {}) ⇒ Object

Returns a list of financing transactions. The transactions are returned in sorted order, with the most recent transactions appearing first.



64
65
66
67
68
69
70
71
72
# File 'lib/stripe/services/capital/financing_transaction_service.rb', line 64

def list(params = {}, opts = {})
  request(
    method: :get,
    path: "/v1/capital/financing_transactions",
    params: params,
    opts: opts,
    base_address: :api
  )
end

#retrieve(financing_transaction, params = {}, opts = {}) ⇒ Object

Retrieves a financing transaction for a financing offer.



75
76
77
78
79
80
81
82
83
# File 'lib/stripe/services/capital/financing_transaction_service.rb', line 75

def retrieve(financing_transaction, params = {}, opts = {})
  request(
    method: :get,
    path: format("/v1/capital/financing_transactions/%<financing_transaction>s", { financing_transaction: CGI.escape(financing_transaction) }),
    params: params,
    opts: opts,
    base_address: :api
  )
end