Class: SEFAZ::Webservice::SAT::Dataset::Cancel
- Inherits:
-
Object
- Object
- SEFAZ::Webservice::SAT::Dataset::Cancel
- Defined in:
- lib/sefaz/webservice/sat/dataset/cancel.rb
Overview
Principal classe de elaboração do XML de Cancelamento para o módulo CFe-SAT
Defined Under Namespace
Classes: IDE
Instance Attribute Summary collapse
-
#ide ⇒ Object
Returns the value of attribute ide.
Instance Method Summary collapse
- #gerarCF ⇒ Object
-
#initialize(chCanc) ⇒ Cancel
constructor
A new instance of Cancel.
Constructor Details
Instance Attribute Details
#ide ⇒ Object
Returns the value of attribute ide.
10 11 12 |
# File 'lib/sefaz/webservice/sat/dataset/cancel.rb', line 10 def ide @ide end |
Instance Method Details
#gerarCF ⇒ Object
19 20 21 22 23 24 25 26 27 28 |
# File 'lib/sefaz/webservice/sat/dataset/cancel.rb', line 19 def gerarCF hash = { CFeCanc: { infCFe: { :@chCanc => ("CFe" + @chCanc.to_s) } } } hash[:CFeCanc][:infCFe][:ide] = @ide.to_h hash[:CFeCanc][:infCFe][:emit] = {} hash[:CFeCanc][:infCFe][:dest] = {} hash[:CFeCanc][:infCFe][:total] = {} hash[:CFeCanc][:infCFe][:infAdic] = {} return [hash.to_xml!, hash] end |