Class: BrNfe::Servico::Betha::V2::GeraNfse
- Inherits:
-
Gateway
- Object
- ActiveModelBase
- Base
- BrNfe::Servico::Base
- Base
- Gateway
- BrNfe::Servico::Betha::V2::GeraNfse
- Includes:
- Helper::HaveRps
- Defined in:
- lib/br_nfe/servico/betha/v2/gera_nfse.rb
Instance Attribute Summary
Attributes inherited from Gateway
#codigo_cancelamento, #numero_nfse
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
#builder, #cabecalho, #canonical_xml_builder, #content_xml, #namespace_identifier, #namespaces, #request, #set_response, #version, #wsdl
Methods inherited from Base
Methods inherited from BrNfe::Servico::Base
Methods inherited from Base
#certificado, #certificado=, #client_wsdl, #env_namespace, #namespace_identifier, #namespaces, #original_response, #response, #wsdl, #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
#certificado_obrigatorio? ⇒ Boolean
8 9 10 |
# File 'lib/br_nfe/servico/betha/v2/gera_nfse.rb', line 8 def certificado_obrigatorio? true end |
#method_wsdl ⇒ Object
14 15 16 |
# File 'lib/br_nfe/servico/betha/v2/gera_nfse.rb', line 14 def method_wsdl :gerar_nfse end |
#xml_builder ⇒ Object
18 19 20 21 22 23 24 |
# File 'lib/br_nfe/servico/betha/v2/gera_nfse.rb', line 18 def xml_builder xml = Nokogiri::XML::Builder.new(encoding: 'UTF-8') do |xml| xml.GerarNfseEnvio(xmlns: "http://www.betha.com.br/e-nota-contribuinte-ws") { xml.__send__ :insert, Nokogiri::XML::DocumentFragment.parse( xml_rps_assinado(rps).doc.root.to_s) } end end |