Class: Stripe::CLI::Commands::Refunds

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

Instance Method Summary collapse

Methods inherited from Stripe::CLI::Command

#inspect

Instance Method Details

#createObject



33
34
35
36
37
38
# File 'lib/stripe/cli/commands/refunds.rb', line 33

def create
  options[:amount] = convert_amount(options[:amount]) if options[:amount]
  if charge = retrieve_charge(options.delete :charge)
    super charge.refunds, options
  end
end

#find(refund_id) ⇒ Object



22
23
24
25
26
# File 'lib/stripe/cli/commands/refunds.rb', line 22

def find refund_id
  if charge = retrieve_charge(options.delete :charge)
    super charge.refunds, refund_id
  end
end

#listObject



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

def list
  if charge = retrieve_charge(options.delete :charge)
    super charge.refunds, options
  end
end