Class: Omie::API::ServiceOrder

Inherits:
Base
  • Object
show all
Defined in:
lib/omie/api/service_order.rb

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Omie::API::Base

Instance Method Details

#cancel_invoice(data) ⇒ Object



14
15
16
# File 'lib/omie/api/service_order.rb', line 14

def cancel_invoice(data)
  conn.post("servicos/osp/", { call: "CancelarOS", param: [data] })
end

#create(data) ⇒ Object



6
7
8
# File 'lib/omie/api/service_order.rb', line 6

def create(data)
  conn.post("servicos/os/", { call: "IncluirOS", param: [data] })
end

#create_invoice(data) ⇒ Object



10
11
12
# File 'lib/omie/api/service_order.rb', line 10

def create_invoice(data)
  conn.post("servicos/osp/", { call: "FaturarOS", param: [data] })
end