Class: Stripe::CLI::Commands::Transactions

Inherits:
Stripe::CLI::Command show all
Defined in:
lib/stripe/cli/commands/transactions.rb

Instance Method Summary collapse

Methods inherited from Stripe::CLI::Command

#inspect

Instance Method Details

#find(transaction_id) ⇒ Object



20
21
22
# File 'lib/stripe/cli/commands/transactions.rb', line 20

def find transaction_id
  super Stripe::BalanceTransaction, transaction_id
end

#list(type = 'all') ⇒ Object



14
15
16
17
# File 'lib/stripe/cli/commands/transactions.rb', line 14

def list type = 'all'
  options[:type] = type.sub(/s$/,'') unless type == 'all'
  super Stripe::BalanceTransaction, options
end