class Pohoda::Parsers::Inv::InvoiceType
Public Instance Methods
cancel_document()
click to toggle source
# File lib/pohoda/parsers/inv/invoice_type.rb, line 11 def cancel_document submodel_at(Typ::CancelDocumentType, 'inv:cancelDocument') end
eet()
click to toggle source
# File lib/pohoda/parsers/inv/invoice_type.rb, line 31 def eet submodel_at(Typ::EETType, 'inv:EET') end
invoice_detail()
click to toggle source
# File lib/pohoda/parsers/inv/invoice_type.rb, line 23 def invoice_detail submodel_at(Inv::InvoiceDetailType, 'inv:invoiceDetail') end
invoice_header()
click to toggle source
# File lib/pohoda/parsers/inv/invoice_type.rb, line 15 def invoice_header submodel_at(Inv::InvoiceHeaderType, 'inv:invoiceHeader') end
invoice_retentions()
click to toggle source
# File lib/pohoda/parsers/inv/invoice_type.rb, line 19 def invoice_retentions array_of_at(Inv::InvoiceRetentionType, ['inv:invoiceRetentions', 'inv:invoiceRetention']) end
invoice_summary()
click to toggle source
# File lib/pohoda/parsers/inv/invoice_type.rb, line 27 def invoice_summary submodel_at(Inv::InvoiceSummaryType, 'inv:invoiceSummary') end
links()
click to toggle source
# File lib/pohoda/parsers/inv/invoice_type.rb, line 7 def links array_of_at(Typ::LinkElemetType, ['inv:links', 'typ:link']) end
print()
click to toggle source
# File lib/pohoda/parsers/inv/invoice_type.rb, line 35 def print array_of_at(Prn::PrinterSettingsType, ['inv:print', 'prn:printerSettings']) end
to_h()
click to toggle source
# File lib/pohoda/parsers/inv/invoice_type.rb, line 39 def to_h hash = {} hash[:attributes] = attributes hash[:links] = links.map(&:to_h) if has? 'inv:links' hash[:cancel_document] = cancel_document.to_h if has? 'inv:cancelDocument' hash[:invoice_header] = invoice_header.to_h if has? 'inv:invoiceHeader' hash[:invoice_retentions] = invoice_retentions.map(&:to_h) if has? 'inv:invoiceRetentions' hash[:invoice_detail] = invoice_detail.to_h if has? 'inv:invoiceDetail' hash[:invoice_summary] = invoice_summary.to_h if has? 'inv:invoiceSummary' hash[:eet] = eet.to_h if has? 'inv:EET' hash[:print] = print.map(&:to_h) if has? 'inv:print' hash end