Class: Stripe::CLI::Commands::Transfers
- Inherits:
-
Stripe::CLI::Command
- Object
- Thor
- Stripe::CLI::Command
- Stripe::CLI::Commands::Transfers
- Includes:
- Utils
- Defined in:
- lib/stripe/cli/commands/transfers.rb
Instance Method Summary collapse
Methods inherited from Stripe::CLI::Command
Instance Method Details
#create ⇒ Object
33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 |
# File 'lib/stripe/cli/commands/transfers.rb', line 33 def create if .delete(:balance) == true [:amount] = Stripe::Balance.retrieve(api_key).available.first.amount else [:amount] = convert_amount([:amount]) end if .delete(:self) == true [:recipient] = 'self' else [:recipient] ||= ask('Recipient ID or self:') [:recipient] = create_recipient[:id] if [:recipient] == "" end super Stripe::Transfer, end |
#find(transfer_id) ⇒ Object
20 21 22 |
# File 'lib/stripe/cli/commands/transfers.rb', line 20 def find transfer_id super Stripe::Transfer, transfer_id end |
#list ⇒ Object
15 16 17 |
# File 'lib/stripe/cli/commands/transfers.rb', line 15 def list super Stripe::Transfer, end |