class Razorpay::Invoice

Invoice API allows you to create and manage invoices with Razorpay

Public Class Methods

all(options = {}) click to toggle source
# File lib/razorpay/invoice.rb, line 20
def self.all(options = {})
  request.all options
end
cancel(id) click to toggle source
# File lib/razorpay/invoice.rb, line 32
def self.cancel(id)
  request.post "#{id}/cancel"
end
create(options) click to toggle source
# File lib/razorpay/invoice.rb, line 12
def self.create(options)
  request.create options
end
edit(id, options = {}) click to toggle source
# File lib/razorpay/invoice.rb, line 24
def self.edit(id, options = {})
  request.patch id, options
end
fetch(id) click to toggle source
# File lib/razorpay/invoice.rb, line 16
def self.fetch(id)
  request.fetch id
end
issue(id) click to toggle source
# File lib/razorpay/invoice.rb, line 28
def self.issue(id)
  request.post "#{id}/issue"
end
request() click to toggle source
# File lib/razorpay/invoice.rb, line 8
def self.request
  Razorpay::Request.new('invoices')
end

Public Instance Methods

cancel() click to toggle source
# File lib/razorpay/invoice.rb, line 52
def cancel
  self.class.cancel id
end
cancel!() click to toggle source
# File lib/razorpay/invoice.rb, line 56
def cancel!
  with_a_bang { cancel }
end
edit(options = {}) click to toggle source
# File lib/razorpay/invoice.rb, line 36
def edit(options = {})
  self.class.edit id, options
end
edit!(options = {}) click to toggle source
# File lib/razorpay/invoice.rb, line 40
def edit!(options = {})
  with_a_bang { edit options }
end
issue() click to toggle source
# File lib/razorpay/invoice.rb, line 44
def issue
  self.class.issue id
end
issue!() click to toggle source
# File lib/razorpay/invoice.rb, line 48
def issue!
  with_a_bang { issue }
end