Class: BrNfe::Service::Response::Build::ConsultaLoteRps
- Inherits:
-
InvoiceBuild
- Object
- ActiveModelBase
- Base
- InvoiceBuild
- BrNfe::Service::Response::Build::ConsultaLoteRps
- Defined in:
- lib/br_nfe/service/response/build/consulta_lote_rps.rb
Instance Attribute Summary
Attributes inherited from InvoiceBuild
#invoice_base_calculo_path, #invoice_cancelamento_cnpj_path, #invoice_cancelamento_codigo_path, #invoice_cancelamento_data_hora_path, #invoice_cancelamento_inscricao_municipal_path, #invoice_cancelamento_municipio_path, #invoice_cancelamento_numero_nf_path, #invoice_cnae_code_path, #invoice_codigo_art_path, #invoice_codigo_municipio_path, #invoice_codigo_obra_path, #invoice_codigo_verificacao_path, #invoice_competencia_path, #invoice_data_emissao_path, #invoice_data_emissao_rps_path, #invoice_deducoes_path, #invoice_desconto_condicionado_path, #invoice_desconto_incondicionado_path, #invoice_description_path, #invoice_destinatario_cnpj_path, #invoice_destinatario_cpf_path, #invoice_destinatario_email_path, #invoice_destinatario_endereco_bairro_path, #invoice_destinatario_endereco_cep_path, #invoice_destinatario_endereco_codigo_municipio_path, #invoice_destinatario_endereco_complemento_path, #invoice_destinatario_endereco_logradouro_path, #invoice_destinatario_endereco_numero_path, #invoice_destinatario_endereco_uf_path, #invoice_destinatario_inscricao_estadual_path, #invoice_destinatario_inscricao_municipal_path, #invoice_destinatario_inscricao_suframa_path, #invoice_destinatario_razao_social_path, #invoice_destinatario_telefone_path, #invoice_emitente_cnpj_path, #invoice_emitente_email_path, #invoice_emitente_endereco_bairro_path, #invoice_emitente_endereco_cep_path, #invoice_emitente_endereco_codigo_municipio_path, #invoice_emitente_endereco_complemento_path, #invoice_emitente_endereco_logradouro_path, #invoice_emitente_endereco_numero_path, #invoice_emitente_endereco_uf_path, #invoice_emitente_inscricao_municipal_path, #invoice_emitente_nome_fantasia_path, #invoice_emitente_razao_social_path, #invoice_emitente_telefone_path, #invoice_incentivador_cultural_path, #invoice_iss_aliquota_path, #invoice_iss_retido_path, #invoice_item_lista_servico_path, #invoice_natureza_operacao_path, #invoice_nfe_substituidora_path, #invoice_numero_nf_path, #invoice_numero_processo_path, #invoice_optante_simples_nacional_path, #invoice_orgao_gerador_municipio_path, #invoice_orgao_gerador_uf_path, #invoice_outras_informacoes_path, #invoice_outras_retencoes_path, #invoice_regime_especial_tributacao_path, #invoice_responsavel_retencao_path, #invoice_rps_numero_path, #invoice_rps_serie_path, #invoice_rps_situacao_path, #invoice_rps_substituido_numero_path, #invoice_rps_substituido_serie_path, #invoice_rps_substituido_tipo_path, #invoice_rps_tipo_path, #invoice_total_iss_path, #invoice_url_nf_path, #invoice_valor_cofins_path, #invoice_valor_csll_path, #invoice_valor_inss_path, #invoice_valor_ir_path, #invoice_valor_liquido_path, #invoice_valor_pis_path, #invoice_valor_total_servicos_path, #invoices_path, #nfe_xml_path
Attributes inherited from Base
#body_xml_path, #keys_root_path, #lot_number_path, #message_code_key, #message_errors_path, #message_msg_key, #message_solution_key, #savon_response, #xml_encode
Attributes inherited from ActiveModelBase
Instance Method Summary collapse
Methods inherited from InvoiceBuild
#build_cancelation_fields_nfe, #build_destinatario_nfe, #build_emitente_nfe, #build_rps_fields_nfe, #build_values_nfe, #get_invoices, #get_xml_nf, #instance_invoice
Methods inherited from Base
#body_converted_to_xml, #find_value_for_keys, #get_lot_number, #get_message_for_hash, #get_message_for_path, #path_with_root, #savon_body
Methods inherited from ActiveModelBase
#assign_attributes, #initialize
Constructor Details
This class inherits a constructor from BrNfe::ActiveModelBase
Instance Method Details
#default_values ⇒ Object
7 8 9 10 11 12 |
# File 'lib/br_nfe/service/response/build/consulta_lote_rps.rb', line 7 def default_values super.merge({ message_errors_path: [:consultar_lote_rps_resposta, :lista_mensagem_retorno, :mensagem_retorno], invoices_path: [:consultar_lote_rps_resposta, :lista_nfse, :comp_nfse], }) end |
#response ⇒ Object
14 15 16 17 18 19 20 |
# File 'lib/br_nfe/service/response/build/consulta_lote_rps.rb', line 14 def response @response ||= BrNfe::Service::Response::ConsultaLoteRps.new({ original_xml: savon_response.xml.force_encoding('UTF-8'), error_messages: (), notas_fiscais: get_invoices, }) end |