Class: Stripe::CustomerCashBalanceTransactionService

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

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

Returns a list of transactions that modified the customer’s [cash balance](stripe.com/docs/payments/customer-balance).



7
8
9
10
11
12
13
14
15
# File 'lib/stripe/services/customer_cash_balance_transaction_service.rb', line 7

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

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

Retrieves a specific cash balance transaction, which updated the customer’s [cash balance](stripe.com/docs/payments/customer-balance).



18
19
20
21
22
23
24
25
26
# File 'lib/stripe/services/customer_cash_balance_transaction_service.rb', line 18

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