module FacturapiRuby::Invoices

Public Class Methods

cancel(invoice_id, options={}) click to toggle source
# File lib/facturapi_ruby/invoices.rb, line 13
def cancel(invoice_id, options={})
  HttpClient.delete(
    endpoint:    "/invoices/#{invoice_id}",
    api_options: options
  )
end
create(options) click to toggle source
# File lib/facturapi_ruby/invoices.rb, line 6
def create(options)
  HttpClient.post(
    endpoint:    '/invoices',
    api_options: options
  )
end
get(invoice_id, options={}) click to toggle source
# File lib/facturapi_ruby/invoices.rb, line 20
def get(invoice_id, options={})
  HttpClient.get(
    endpoint:    "/invoices/#{invoice_id}",
    api_options: options
  )
end