Class: Stripe::CLI::Commands::Refunds
- Inherits:
-
Stripe::CLI::Command
- Object
- Thor
- Stripe::CLI::Command
- Stripe::CLI::Commands::Refunds
- Includes:
- Utils
- Defined in:
- lib/stripe/cli/commands/refunds.rb
Instance Method Summary collapse
Methods inherited from Stripe::CLI::Command
Instance Method Details
#create ⇒ Object
33 34 35 36 37 38 |
# File 'lib/stripe/cli/commands/refunds.rb', line 33 def create [:amount] = convert_amount([:amount]) if [:amount] if charge = retrieve_charge(.delete :charge) super charge.refunds, 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(.delete :charge) super charge.refunds, refund_id end end |
#list ⇒ Object
14 15 16 17 18 |
# File 'lib/stripe/cli/commands/refunds.rb', line 14 def list if charge = retrieve_charge(.delete :charge) super charge.refunds, end end |