module EnotasNfe::Endpoints
Public Instance Methods
cc_create(firm_id, body)
click to toggle source
rota para carta de correcao
# File lib/enotas_nfe/endpoints.rb, line 39 def cc_create(firm_id, body) post("empresas/#{firm_id}/nf-e/cartaCorrecao", body) end
create_update_empresa(body)
click to toggle source
# File lib/enotas_nfe/endpoints.rb, line 14 def create_update_empresa(body) post("empresas", body) end
desabilitar_empresa(firm_id)
click to toggle source
# File lib/enotas_nfe/endpoints.rb, line 30 def desabilitar_empresa(firm_id) post("empresas/#{firm_id}/desabilitar") end
get_caracteristicas_prefeitura(codigo_ibge_cidade)
click to toggle source
# File lib/enotas_nfe/endpoints.rb, line 26 def get_caracteristicas_prefeitura(codigo_ibge_cidade) get("estados/cidades/#{codigo_ibge_cidade}/provedor") end
get_empresa(firm_id)
click to toggle source
# File lib/enotas_nfe/endpoints.rb, line 10 def get_empresa(firm_id) get("empresas/#{firm_id}") end
get_empresas(pageNumber, pageSize)
click to toggle source
rotas para criaçacão/update e onfiguraçao da empresa
# File lib/enotas_nfe/endpoints.rb, line 6 def get_empresas(pageNumber, pageSize) get("empresas?pageNumber=#{pageNumber}&pageSize=#{pageSize}") end
habilitar_empresa(firm_id)
click to toggle source
# File lib/enotas_nfe/endpoints.rb, line 34 def habilitar_empresa(firm_id) post("empresas/#{firm_id}/habilitar") end
nfce_create(firm_id, body)
click to toggle source
rotas para nota fiscal do consumidor eletronica
# File lib/enotas_nfe/endpoints.rb, line 57 def nfce_create(firm_id, body) post("empresas/#{firm_id}/nfc-e", body) end
nfce_delete(firm_id, nfe_id)
click to toggle source
# File lib/enotas_nfe/endpoints.rb, line 61 def nfce_delete(firm_id, nfe_id) delete("empresas/#{firm_id}/nfc-e/#{nfe_id}") end
nfce_get(firm_id, id)
click to toggle source
# File lib/enotas_nfe/endpoints.rb, line 65 def nfce_get(firm_id, id) get("empresas/#{firm_id}/nfc-e/#{id}") end
nfe_create(firm_id, body)
click to toggle source
rotas para nota fiscal eletronica
# File lib/enotas_nfe/endpoints.rb, line 44 def nfe_create(firm_id, body) post("empresas/#{firm_id}/nf-e", body) end
nfe_delete(firm_id, nfe_id)
click to toggle source
# File lib/enotas_nfe/endpoints.rb, line 48 def nfe_delete(firm_id, nfe_id) delete("empresas/#{firm_id}/nf-e/#{nfe_id}") end
nfe_get(firm_id, id)
click to toggle source
# File lib/enotas_nfe/endpoints.rb, line 52 def nfe_get(firm_id, id) get("empresas/#{firm_id}/nf-e/#{id}") end
nfse_create(firm_id, body)
click to toggle source
# File lib/enotas_nfe/endpoints.rb, line 74 def nfse_create(firm_id, body) post("empresas/#{firm_id}/nfes", body) end
nfse_delete(firm_id, nfe_id)
click to toggle source
# File lib/enotas_nfe/endpoints.rb, line 78 def nfse_delete(firm_id, nfe_id) delete("empresas/#{firm_id}/nfes/#{nfe_id}") end
nfse_delete_by_external_id(firm_id, external_id)
click to toggle source
# File lib/enotas_nfe/endpoints.rb, line 90 def nfse_delete_by_external_id(firm_id, external_id) delete("empresas/#{firm_id}/nfes/porIdExterno/#{external_id}") end
nfse_get(firm_id, id)
click to toggle source
# File lib/enotas_nfe/endpoints.rb, line 82 def nfse_get(firm_id, id) get("empresas/#{firm_id}/nfes/#{id}") end
nfse_get_by_external_id(firm_id, external_id)
click to toggle source
# File lib/enotas_nfe/endpoints.rb, line 86 def nfse_get_by_external_id(firm_id, external_id) get("empresas/#{firm_id}/nfes/porIdExterno/#{external_id}") end
nfse_get_pdf(firm_id, id)
click to toggle source
# File lib/enotas_nfe/endpoints.rb, line 94 def nfse_get_pdf(firm_id, id) get("empresas/#{firm_id}/nfes/#{id}") end
nfse_get_pdf_by_external_id(firm_id, external_id)
click to toggle source
# File lib/enotas_nfe/endpoints.rb, line 98 def nfse_get_pdf_by_external_id(firm_id, external_id) get("empresas/#{firm_id}/nfes/porIdExterno/#{external_id}/pdf") end
nfse_get_xml(firm_id, id)
click to toggle source
# File lib/enotas_nfe/endpoints.rb, line 102 def nfse_get_xml(firm_id, id) get("empresas/#{firm_id}/nfes/#{id}/xml") end
nfse_get_xml_by_external_id(firm_id, external_id)
click to toggle source
# File lib/enotas_nfe/endpoints.rb, line 106 def nfse_get_xml_by_external_id(firm_id, external_id) get("empresas/#{firm_id}/nfes/porIdExterno/#{external_id}/xml") end
nfse_list(firm_id, body = {})
click to toggle source
rotas para nota fiscal de serviço
# File lib/enotas_nfe/endpoints.rb, line 70 def nfse_list(firm_id, body = {}) get("empresas/#{firm_id}/nfes", body) end
set_certificado_digital(firm_id, body)
click to toggle source
# File lib/enotas_nfe/endpoints.rb, line 22 def set_certificado_digital(firm_id, body) multipart_post("empresas/#{firm_id}/certificadoDigital", body) end
set_logo(firm_id, body)
click to toggle source
# File lib/enotas_nfe/endpoints.rb, line 18 def set_logo(firm_id, body) multipart_post("empresas/#{firm_id}/logo", body) end