class Easybill::Api::Documents

Public Class Methods

cancel(id) click to toggle source
# File lib/easybill/api/documents.rb, line 9
def cancel(id)
  custom method: :post, path: "#{resource_path}/#{id}/cancel"
end
deliver(id, type, data) click to toggle source
# File lib/easybill/api/documents.rb, line 13
def deliver(id, type, data)
  custom method: :post, path: "#{resource_path}/#{id}/send/#{type}", data: data
end
done(id) click to toggle source
# File lib/easybill/api/documents.rb, line 5
def done(id)
  custom method: :put, path: "#{resource_path}/#{id}/done"
end
pdf(id) click to toggle source
# File lib/easybill/api/documents.rb, line 17
def pdf(id)
  custom(
    method: :get,
    path: "#{resource_path}/#{id}/pdf",
    headers: {
      "Content-Type" => "application/pdf",
      "Accept" => "application/pdf"
    },
    format: :pdf
  )
end