class SunatInvoice::DebitNote
Private Instance Methods
namespaces()
click to toggle source
# File lib/sunat_invoice/debit_note.rb, line 25 def namespaces DEBIT_NOTE_NAMESPACES.merge(TRADE_NAMESPACES) end
root_name()
click to toggle source
-
date - issued date
-
ref_document_number - serial and number of document affected
-
ref_document_type - type of document affected
-
response_code - reason for which debit note is issued (CATALOG_10)
-
description - description of reason
-
document_type - should be '08' according CATALOG_01
-
document_number - serial and correlative number of document
-
provider - a
SunatInvoice::Provider
instance -
customer - a
SunatInvoice::Customer
instance -
signature - a
SunatInvoice::Signature
instance -
lines - array of
SunatInvoice::DebitNoteLine
instances
# File lib/sunat_invoice/debit_note.rb, line 21 def root_name 'DebitNote' end
total_tag()
click to toggle source
# File lib/sunat_invoice/debit_note.rb, line 29 def total_tag 'RequestedMonetaryTotal' end