Class: BrNfe::Product::Operation::NfeInutilizacao

Inherits:
Base show all
Defined in:
lib/br_nfe/product/operation/nfe_inutilizacao.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

#anoObject

ANO DE INUTILIZAÇÃO DA NUMERAÇÃO

Type: Number Required: Yes Example: 17 Length: 2 tag: Id



37
38
39
# File 'lib/br_nfe/product/operation/nfe_inutilizacao.rb', line 37

def ano
  @ano
end

#chaveObject

Identificador da TAG a ser assinada formada com: 01-02 = Literal ‘ID’ (2 posições) + 03-04 = Código da UF (2 posições) + 05-06 = Ano (2 posições) + 07-20 = CNPJ (14 posições) + 21-22 = modelo (2 posições) + 23-25 = série (3 posições) + 26-34 = Numeração inicial (9 posições) + 35-43 = Numeração final (9 posições)

Type: Number Required: Yes Example: ID41140616149400017255001000000002000000002 Length: 43 tag: Id



22
23
24
# File 'lib/br_nfe/product/operation/nfe_inutilizacao.rb', line 22

def chave
  @chave
end

#justificativaObject

Informar a justificativa do pedido de inutilização

Type: String Required: Yes Length: _min: 15, max: 255_ tag: xJust



93
94
95
# File 'lib/br_nfe/product/operation/nfe_inutilizacao.rb', line 93

def justificativa
  @justificativa
end

#modelo_nfObject

Código do Modelo do Documento Fiscal 55=NF-e emitida em substituição ao modelo 1 ou 1A; (Default) 65=NFC-e, utilizada nas operações de venda no varejo (a critério da UF aceitar este modelo de documento).

Type: Number Required: Yes Default: 55 Length: 2 tag: mod



49
50
51
# File 'lib/br_nfe/product/operation/nfe_inutilizacao.rb', line 49

def modelo_nf
  @modelo_nf
end

#numero_nf_finalObject

Número da NF-e final a ser inutilizada

Type: Number Required: Yes Default: self.numero_nf_inicial Length: _max: 9_ tag: nNFFin



80
81
82
# File 'lib/br_nfe/product/operation/nfe_inutilizacao.rb', line 80

def numero_nf_final
  @numero_nf_final
end

#numero_nf_inicialObject

Número da NF-e inicial a ser inutilizada

Type: Number Required: Yes Length: _max: 9_ tag: nNFIni



69
70
71
# File 'lib/br_nfe/product/operation/nfe_inutilizacao.rb', line 69

def numero_nf_inicial
  @numero_nf_inicial
end

#serieObject

Série da NF-e

Type: Number Required: Yes Default: nil Length: _max: 3_ tag: serie



60
61
62
# File 'lib/br_nfe/product/operation/nfe_inutilizacao.rb', line 60

def serie
  @serie
end

Instance Method Details

#operation_nameObject



114
115
116
# File 'lib/br_nfe/product/operation/nfe_inutilizacao.rb', line 114

def operation_name
  :inutilizacao
end

#xml_builderObject

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



120
121
122
# File 'lib/br_nfe/product/operation/nfe_inutilizacao.rb', line 120

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