Class: BrNfe::Product::Operation::NfeAutorizacao

Inherits:
Base show all
Defined in:
lib/br_nfe/product/operation/nfe_autorizacao.rb

Instance Attribute Summary collapse

Attributes inherited from Base

#inicio_contingencia, #motivo_contingencia, #nfe_version, #original_xml, #tipo_emissao

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

#reference

Instance Method Summary collapse

Methods inherited from Base

#certificado_obrigatorio?, #client_wsdl_params, #codigo_tipo_emissao, #contingencia?, #default_values, #gateway, #gateway_settings, #gateway_xml_version, #get_gateway_by_normal_operation, #get_gateway_by_svc_operation, #method_wsdl, #nfe_settings, #request, #response, #url_wsdl, #url_xmlns, #xml_current_dir_path, #xml_version, #xmlns_soap

Methods included from NfXmlValue

#nf_xml_fixed_code, #nf_xml_value_CEP, #nf_xml_value_CEST, #nf_xml_value_CFOP, #nf_xml_value_CNAE, #nf_xml_value_CRT, #nf_xml_value_EAN, #nf_xml_value_EXTIPI, #nf_xml_value_IE, #nf_xml_value_IM, #nf_xml_value_ISSQN_incentivo_fiscal, #nf_xml_value_NCM, #nf_xml_value_NVE, #nf_xml_value_RNTC, #nf_xml_value_UF, #nf_xml_value_boolean, #nf_xml_value_chave_nfe, #nf_xml_value_cnpj, #nf_xml_value_codigo_enquadramento_IPI, #nf_xml_value_codigo_ibge_municipio, #nf_xml_value_codigo_nf, #nf_xml_value_codigo_pais, #nf_xml_value_consumidor_final, #nf_xml_value_cpf, #nf_xml_value_date, #nf_xml_value_date_time, #nf_xml_value_drawback, #nf_xml_value_email, #nf_xml_value_float, #nf_xml_value_fone, #nf_xml_value_id_estrangeiro, #nf_xml_value_id_local_destino, #nf_xml_value_indicador_IE, #nf_xml_value_indicador_sincrono, #nf_xml_value_inscricao_suframa, #nf_xml_value_monetary, #nf_xml_value_number, #nf_xml_value_number_fixed_size, #nf_xml_value_numero_recibo, #nf_xml_value_orgao_emissor, #nf_xml_value_percent, #nf_xml_value_peso, #nf_xml_value_placa, #nf_xml_value_quantidade, #nf_xml_value_text, #nf_xml_value_time, #nf_xml_value_tipo_ambiente

Methods inherited from Base

#certificado_obrigatorio?, #certificate, #certificate=, #certificate_key, #certificate_key=, #certificate_pkcs12, #certificate_pkcs12=, #client_wsdl, #client_wsdl_params, #content_xml, #env_namespace, #env_test?, #find_xml, #get_xml_dirs, #id_attribute?, #message_namespaces, #method_wsdl, #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, #tag_xml, #url_wsdl, #wsdl_encoding, #xml_current_dir_path, #xml_default_dir_path, #xml_version

Methods included from Association::HaveEmitente

#emitente, #emitente=

Methods inherited from ActiveModelBase

#assign_attributes, #default_values, #initialize

Constructor Details

This class inherits a constructor from BrNfe::ActiveModelBase

Instance Attribute Details

#numero_loteObject

NÚMERO DO LOTE Identificador de controle do envio do lote. Número sequencial autoincremental, de controle correspondente ao identificador único do lote enviado. A responsabilidade de gerar e controlar esse número é exclusiva do contribuinte.

Type: Number Required: Yes Example: 20161230135547 Length: _max: 15_ tag: idLote



19
20
21
# File 'lib/br_nfe/product/operation/nfe_autorizacao.rb', line 19

def numero_lote
  @numero_lote
end

#sincronoObject

INDICADOR DO PROCESSAMENTO SINCRONO OU ASINCRONO false = 0=Não. (Default) true = 1=Empresa solicita processamento síncrono do

Lote de NF-e (sem a gera

Nota: O processamento síncrono do Lote corresponde a entrega da resposta do processamento das NF-e do Lote, sem a geração de um Recibo de Lote para consulta futura. A resposta de forma síncrona pela SEFAZ Autorizadora só ocorrerá se:

  • a empresa solicitar e constar unicamente uma NF-e no Lote;

  • a SEFAZ Autorizadora implementar o processamento síncrono para a resposta do Lote de NF-e.

Type: Boolean Required: Yes Example: true Default: false tag: indSinc



41
42
43
# File 'lib/br_nfe/product/operation/nfe_autorizacao.rb', line 41

def sincrono
  @sincrono
end

Instance Method Details

#operation_nameObject



76
77
78
# File 'lib/br_nfe/product/operation/nfe_autorizacao.rb', line 76

def operation_name
  :autorizacao
end

#response_class_builderObject



86
87
88
# File 'lib/br_nfe/product/operation/nfe_autorizacao.rb', line 86

def response_class_builder
  BrNfe::Product::Response::Build::NfeAutorizacao
end

#xml_builderObject

XML que será enviado no body da requisição SOAP contendo as informações específicas de cada operação.



82
83
84
# File 'lib/br_nfe/product/operation/nfe_autorizacao.rb', line 82

def xml_builder
  @xml_builder ||= render_xml 'root/NfeAutorizacao'
end