Class: BrNfe::Servico::Betha::V1::ConsultaNfsPorRps
- Inherits:
-
Gateway
- Object
- ActiveModelBase
- Base
- BrNfe::Servico::Base
- Base
- Gateway
- BrNfe::Servico::Betha::V1::ConsultaNfsPorRps
- Includes:
- Helper::HaveRps
- Defined in:
- lib/br_nfe/servico/betha/v1/consulta_nfs_por_rps.rb
Instance Attribute Summary
Attributes inherited from BrNfe::Servico::Base
#lote_rps, #numero_lote_rps, #operacao
Attributes inherited from Base
#certificado_password, #certificado_path, #certificado_value, #env
Instance Method Summary collapse
Methods included from Helper::HaveRps
Methods inherited from Gateway
#content_xml, #namespace_identifier, #namespaces, #request, #version
Methods inherited from Base
Methods inherited from BrNfe::Servico::Base
Methods inherited from Base
#certificado, #certificado=, #certificado_obrigatorio?, #client_wsdl, #env_namespace, #namespace_identifier, #namespaces, #original_response, #response, #wsdl_encoding
Methods included from Helper::HaveEmitente
Methods inherited from ActiveModelBase
#assign_attributes, #default_values, #initialize
Constructor Details
This class inherits a constructor from BrNfe::Servico::Base
Instance Method Details
#method_wsdl ⇒ Object
14 15 16 |
# File 'lib/br_nfe/servico/betha/v1/consulta_nfs_por_rps.rb', line 14 def method_wsdl :consultar_nfse_por_rps end |
#set_response(resp) ⇒ Object
30 31 32 |
# File 'lib/br_nfe/servico/betha/v1/consulta_nfs_por_rps.rb', line 30 def set_response(resp) @response = BrNfe::Servico::Betha::V1::BuildResponse.new(hash: resp.hash[:envelope][:body][:consultar_nfse_por_rps_envio_response], nfe_method: :consultar_nfse_rps).response end |
#wsdl ⇒ Object
10 11 12 |
# File 'lib/br_nfe/servico/betha/v1/consulta_nfs_por_rps.rb', line 10 def wsdl "http://e-gov.betha.com.br/e-nota-contribuinte-#{'test-' if env == :test}ws/consultarNfsePorRps?wsdl" end |
#xml_builder ⇒ Object
18 19 20 21 22 23 24 25 26 27 28 |
# File 'lib/br_nfe/servico/betha/v1/consulta_nfs_por_rps.rb', line 18 def xml_builder Nokogiri::XML::Builder.new do |xml| xml.Temp { # IdentificaĆ§Ć£o RPS xml.__send__ :insert, Nokogiri::XML::DocumentFragment.parse( xml_identificacao_rps(rps).doc.root.to_s ) # Pestador / Emitente xml.__send__ :insert, Nokogiri::XML::DocumentFragment.parse( xml_prestador.doc.root.to_s ) } end.doc.root end |