Class: Stripe::CLI::Commands::InvoiceItems

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

Instance Method Summary collapse

Methods inherited from Stripe::CLI::Command

#inspect

Instance Method Details

#createObject



32
33
34
35
36
# File 'lib/stripe/cli/commands/invoice_items.rb', line 32

def create
  options[:customer] ||= ask('Customer ID:')
  options[:amount] = convert_amount(options[:amount])
  super Stripe::InvoiceItem, options
end

#delete(invoice_item_id) ⇒ Object



39
40
41
# File 'lib/stripe/cli/commands/invoice_items.rb', line 39

def delete invoice_item_id
  super Stripe::InvoiceItem, invoice_item_id
end

#find(invoice_item_id) ⇒ Object



19
20
21
# File 'lib/stripe/cli/commands/invoice_items.rb', line 19

def find invoice_item_id
  super Stripe::InvoiceItem, invoice_item_id
end

#listObject



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

def list
  super Stripe::InvoiceItem, options
end