Class: BrNfe::Service::Thema::V1::RecepcaoLoteRps
- Inherits:
-
Base
- Object
- ActiveModelBase
- Base
- Base
- Base
- BrNfe::Service::Thema::V1::RecepcaoLoteRps
- Includes:
- Concerns::Rules::RecepcaoLoteRps
- Defined in:
- lib/br_nfe/service/thema/v1/recepcao_lote_rps.rb
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from Base
Attributes inherited from Base
#certificate_pkcs12_password, #certificate_pkcs12_path, #certificate_pkcs12_value, #env, #ibge_code_of_issuer_city, #ibge_code_of_issuer_uf
Attributes inherited from ActiveModelBase
Instance Method Summary collapse
- #certificado_obrigatorio? ⇒ Boolean
- #method_wsdl ⇒ Object
-
#soap_body_root_tag ⇒ Object
Tag root da requisição.
- #wsdl ⇒ Object
- #xml_builder ⇒ Object
Methods inherited from Base
#canonicalization_method_algorithm, #content_xml, #get_wsdl_by_city, #message_namespaces, #namespace_identifier, #nfse_xml_path, #response_encoding, #signature_type, #soap_namespaces, #ts_aliquota
Methods inherited from Base
#body_xml_path, #nfse_xml_path, #request, #response_root_path, #xml_current_dir_path
Methods included from Concerns::ValuesTs::ServiceV1
#ts_aliquota, #ts_art, #ts_bairro, #ts_cep, #ts_cnpj, #ts_codigo_cancelamento_nfse, #ts_codigo_cnae, #ts_codigo_mensagem_alerta, #ts_codigo_municipio_ibge, #ts_codigo_obra, #ts_codigo_tributacao, #ts_codigo_verificacao, #ts_complemento_endereco, #ts_cpf, #ts_date, #ts_datetime, #ts_descricao_mensagem_alerta, #ts_discriminacao, #ts_email, #ts_endereco, #ts_id_tag, #ts_indicacao_cpf_cnpj, #ts_inscricao_municipal, #ts_item_lista_servico, #ts_natureza_operacao, #ts_nome_fantasia, #ts_numero_endereco, #ts_numero_lote, #ts_numero_nfse, #ts_numero_protocolo, #ts_numero_rps, #ts_outras_informacoes, #ts_quantidade_rps, #ts_razao_social, #ts_regime_especial_tributacao, #ts_serie_rps, #ts_sim_nao, #ts_situacao_lote_rps, #ts_status_nfse, #ts_status_rps, #ts_telefone, #ts_tipo_rps, #ts_uf, #ts_valor
Methods inherited from Base
#certificate, #certificate=, #certificate_key, #certificate_key=, #certificate_pkcs12, #certificate_pkcs12=, #client_wsdl, #content_xml, #env_namespace, #env_test?, #find_xml, #get_xml_dirs, #id_attribute?, #message_namespaces, #namespace_for_signature, #namespace_for_tags, #namespace_identifier, #original_response, #render_xml, #response, #response_encoding, #sign_xml, #signature_type, #signature_type?, #soap_namespaces, #soap_xml, #ssl_request?, #ssl_version, #tag_xml, #wsdl_encoding, #xml_current_dir_path, #xml_default_dir_path, #xml_version
Methods included from Association::HaveEmitente
Methods inherited from ActiveModelBase
#assign_attributes, #default_values, #initialize
Constructor Details
This class inherits a constructor from BrNfe::ActiveModelBase
Instance Method Details
#certificado_obrigatorio? ⇒ Boolean
12 13 14 |
# File 'lib/br_nfe/service/thema/v1/recepcao_lote_rps.rb', line 12 def certificado_obrigatorio? true end |
#method_wsdl ⇒ Object
16 17 18 |
# File 'lib/br_nfe/service/thema/v1/recepcao_lote_rps.rb', line 16 def method_wsdl :recepcionar_lote_rps end |
#soap_body_root_tag ⇒ Object
Tag root da requisição
22 23 24 |
# File 'lib/br_nfe/service/thema/v1/recepcao_lote_rps.rb', line 22 def soap_body_root_tag 'recepcionarLoteRps' end |
#wsdl ⇒ Object
8 9 10 |
# File 'lib/br_nfe/service/thema/v1/recepcao_lote_rps.rb', line 8 def wsdl get_wsdl_by_city[:send] end |
#xml_builder ⇒ Object
26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 |
# File 'lib/br_nfe/service/thema/v1/recepcao_lote_rps.rb', line 26 def xml_builder xml = render_xml 'servico_enviar_lote_rps_envio' sign_nodes = [ { node_path: "//nf:EnviarLoteRpsEnvio/nf:LoteRps/nf:ListaRps/nf:Rps/nf:InfRps", node_namespaces: {nf: 'http://www.abrasf.org.br/ABRASF/arquivos/nfse.xsd'}, node_ids: lote_rps.map{|rps| "R#{rps.numero}"} }, { node_path: "//nf:EnviarLoteRpsEnvio/nf:LoteRps", node_namespaces: {nf: 'http://www.abrasf.org.br/ABRASF/arquivos/nfse.xsd'}, node_ids: ["L#{numero_lote_rps}"] } ] sign_xml('<?xml version="1.0" encoding="ISO-8859-1"?>'+xml, sign_nodes) end |