class Pohoda::Parsers::Int::IntDocHeaderType

Public Instance Methods

accounting() click to toggle source
# File lib/pohoda/parsers/int/int_doc_header_type.rb, line 107
def accounting
  submodel_at(Typ::AccountingType, 'int:accounting')
end
accounting_period_moss() click to toggle source
# File lib/pohoda/parsers/int/int_doc_header_type.rb, line 175
def accounting_period_moss
  at 'int:accountingPeriodMOSS'
end
accounting_period_moss_attributes() click to toggle source
# File lib/pohoda/parsers/int/int_doc_header_type.rb, line 179
def accounting_period_moss_attributes
  attributes_at 'int:accountingPeriodMOSS'
end
activity() click to toggle source
# File lib/pohoda/parsers/int/int_doc_header_type.rb, line 155
def activity
  submodel_at(Typ::RefType, 'int:activity')
end
centre() click to toggle source
# File lib/pohoda/parsers/int/int_doc_header_type.rb, line 151
def centre
  submodel_at(Typ::RefType, 'int:centre')
end
classification_kvdph() click to toggle source
# File lib/pohoda/parsers/int/int_doc_header_type.rb, line 115
def classification_kvdph
  submodel_at(Typ::RefType, 'int:classificationKVDPH')
end
classification_vat() click to toggle source
# File lib/pohoda/parsers/int/int_doc_header_type.rb, line 111
def classification_vat
  submodel_at(Typ::ClassificationVATType, 'int:classificationVAT')
end
contract() click to toggle source
# File lib/pohoda/parsers/int/int_doc_header_type.rb, line 159
def contract
  submodel_at(Typ::RefType, 'int:contract')
end
date() click to toggle source
# File lib/pohoda/parsers/int/int_doc_header_type.rb, line 59
def date
  at 'int:date'
end
date_accounting() click to toggle source
# File lib/pohoda/parsers/int/int_doc_header_type.rb, line 75
def date_accounting
  at 'int:dateAccounting'
end
date_accounting_attributes() click to toggle source
# File lib/pohoda/parsers/int/int_doc_header_type.rb, line 79
def date_accounting_attributes
  attributes_at 'int:dateAccounting'
end
date_attributes() click to toggle source
# File lib/pohoda/parsers/int/int_doc_header_type.rb, line 63
def date_attributes
  attributes_at 'int:date'
end
date_delivery() click to toggle source
# File lib/pohoda/parsers/int/int_doc_header_type.rb, line 83
def date_delivery
  at 'int:dateDelivery'
end
date_delivery_attributes() click to toggle source
# File lib/pohoda/parsers/int/int_doc_header_type.rb, line 87
def date_delivery_attributes
  attributes_at 'int:dateDelivery'
end
date_khdph() click to toggle source
# File lib/pohoda/parsers/int/int_doc_header_type.rb, line 99
def date_khdph
  at 'int:dateKHDPH'
end
date_khdph_attributes() click to toggle source
# File lib/pohoda/parsers/int/int_doc_header_type.rb, line 103
def date_khdph_attributes
  attributes_at 'int:dateKHDPH'
end
date_kvdph() click to toggle source
# File lib/pohoda/parsers/int/int_doc_header_type.rb, line 91
def date_kvdph
  at 'int:dateKVDPH'
end
date_kvdph_attributes() click to toggle source
# File lib/pohoda/parsers/int/int_doc_header_type.rb, line 95
def date_kvdph_attributes
  attributes_at 'int:dateKVDPH'
end
date_tax() click to toggle source
# File lib/pohoda/parsers/int/int_doc_header_type.rb, line 67
def date_tax
  at 'int:dateTax'
end
date_tax_attributes() click to toggle source
# File lib/pohoda/parsers/int/int_doc_header_type.rb, line 71
def date_tax_attributes
  attributes_at 'int:dateTax'
end
evidentiary_resources_moss() click to toggle source
# File lib/pohoda/parsers/int/int_doc_header_type.rb, line 171
def evidentiary_resources_moss
  array_of_at(String, ['int:evidentiaryResourcesMOSS', 'typ:ids'])
end
hist_rate() click to toggle source
# File lib/pohoda/parsers/int/int_doc_header_type.rb, line 199
def hist_rate
  at 'int:histRate'
end
hist_rate_attributes() click to toggle source
# File lib/pohoda/parsers/int/int_doc_header_type.rb, line 203
def hist_rate_attributes
  attributes_at 'int:histRate'
end
id() click to toggle source
# File lib/pohoda/parsers/int/int_doc_header_type.rb, line 7
def id
  at 'int:id'
end
id_attributes() click to toggle source
# File lib/pohoda/parsers/int/int_doc_header_type.rb, line 11
def id_attributes
  attributes_at 'int:id'
end
int_note() click to toggle source
# File lib/pohoda/parsers/int/int_doc_header_type.rb, line 191
def int_note
  at 'int:intNote'
end
int_note_attributes() click to toggle source
# File lib/pohoda/parsers/int/int_doc_header_type.rb, line 195
def int_note_attributes
  attributes_at 'int:intNote'
end
labels() click to toggle source
# File lib/pohoda/parsers/int/int_doc_header_type.rb, line 215
def labels
  array_of_at(Typ::LabelType, ['int:labels', 'typ:label'])
end
liquidation() click to toggle source
# File lib/pohoda/parsers/int/int_doc_header_type.rb, line 143
def liquidation
  at 'int:liquidation'
end
liquidation_attributes() click to toggle source
# File lib/pohoda/parsers/int/int_doc_header_type.rb, line 147
def liquidation_attributes
  attributes_at 'int:liquidation'
end
mark_record() click to toggle source
# File lib/pohoda/parsers/int/int_doc_header_type.rb, line 207
def mark_record
  at 'int:markRecord'
end
mark_record_attributes() click to toggle source
# File lib/pohoda/parsers/int/int_doc_header_type.rb, line 211
def mark_record_attributes
  attributes_at 'int:markRecord'
end
moss() click to toggle source
# File lib/pohoda/parsers/int/int_doc_header_type.rb, line 167
def moss
  submodel_at(Typ::MOSStype, 'int:MOSS')
end
my_identity() click to toggle source
# File lib/pohoda/parsers/int/int_doc_header_type.rb, line 139
def my_identity
  submodel_at(Typ::MyAddress, 'int:myIdentity')
end
note() click to toggle source
# File lib/pohoda/parsers/int/int_doc_header_type.rb, line 183
def note
  at 'int:note'
end
note_attributes() click to toggle source
# File lib/pohoda/parsers/int/int_doc_header_type.rb, line 187
def note_attributes
  attributes_at 'int:note'
end
number() click to toggle source
# File lib/pohoda/parsers/int/int_doc_header_type.rb, line 23
def number
  submodel_at(Typ::NumberType, 'int:number')
end
number_khdph() click to toggle source
# File lib/pohoda/parsers/int/int_doc_header_type.rb, line 119
def number_khdph
  at 'int:numberKHDPH'
end
number_khdph_attributes() click to toggle source
# File lib/pohoda/parsers/int/int_doc_header_type.rb, line 123
def number_khdph_attributes
  attributes_at 'int:numberKHDPH'
end
original_corrective_document() click to toggle source
# File lib/pohoda/parsers/int/int_doc_header_type.rb, line 51
def original_corrective_document
  at 'int:originalCorrectiveDocument'
end
original_corrective_document_attributes() click to toggle source
# File lib/pohoda/parsers/int/int_doc_header_type.rb, line 55
def original_corrective_document_attributes
  attributes_at 'int:originalCorrectiveDocument'
end
original_document_number() click to toggle source
# File lib/pohoda/parsers/int/int_doc_header_type.rb, line 43
def original_document_number
  at 'int:originalDocumentNumber'
end
original_document_number_attributes() click to toggle source
# File lib/pohoda/parsers/int/int_doc_header_type.rb, line 47
def original_document_number_attributes
  attributes_at 'int:originalDocumentNumber'
end
parameters() click to toggle source
# File lib/pohoda/parsers/int/int_doc_header_type.rb, line 219
def parameters
  array_of_at(Typ::ParameterDocType, ['int:parameters', 'typ:parameter'])
end
partner_identity() click to toggle source
# File lib/pohoda/parsers/int/int_doc_header_type.rb, line 135
def partner_identity
  submodel_at(Typ::Address, 'int:partnerIdentity')
end
reg_va_tin_eu() click to toggle source
# File lib/pohoda/parsers/int/int_doc_header_type.rb, line 163
def reg_va_tin_eu
  submodel_at(Typ::RefTypeRegVATinEU, 'int:regVATinEU')
end
storno() click to toggle source
# File lib/pohoda/parsers/int/int_doc_header_type.rb, line 15
def storno
  at 'int:storno'
end
storno_attributes() click to toggle source
# File lib/pohoda/parsers/int/int_doc_header_type.rb, line 19
def storno_attributes
  attributes_at 'int:storno'
end
sym_par() click to toggle source
# File lib/pohoda/parsers/int/int_doc_header_type.rb, line 35
def sym_par
  at 'int:symPar'
end
sym_par_attributes() click to toggle source
# File lib/pohoda/parsers/int/int_doc_header_type.rb, line 39
def sym_par_attributes
  attributes_at 'int:symPar'
end
sym_var() click to toggle source
# File lib/pohoda/parsers/int/int_doc_header_type.rb, line 27
def sym_var
  at 'int:symVar'
end
sym_var_attributes() click to toggle source
# File lib/pohoda/parsers/int/int_doc_header_type.rb, line 31
def sym_var_attributes
  attributes_at 'int:symVar'
end
text() click to toggle source
# File lib/pohoda/parsers/int/int_doc_header_type.rb, line 127
def text
  at 'int:text'
end
text_attributes() click to toggle source
# File lib/pohoda/parsers/int/int_doc_header_type.rb, line 131
def text_attributes
  attributes_at 'int:text'
end
to_h() click to toggle source
# File lib/pohoda/parsers/int/int_doc_header_type.rb, line 223
def to_h
  hash = {}
  hash[:attributes] = attributes

  hash[:id] = id if has? 'int:id'
  hash[:id_attributes] = id_attributes if has? 'int:id'
  hash[:storno] = storno if has? 'int:storno'
  hash[:storno_attributes] = storno_attributes if has? 'int:storno'
  hash[:number] = number.to_h if has? 'int:number'
  hash[:sym_var] = sym_var if has? 'int:symVar'
  hash[:sym_var_attributes] = sym_var_attributes if has? 'int:symVar'
  hash[:sym_par] = sym_par if has? 'int:symPar'
  hash[:sym_par_attributes] = sym_par_attributes if has? 'int:symPar'
  hash[:original_document_number] = original_document_number if has? 'int:originalDocumentNumber'
  hash[:original_document_number_attributes] = original_document_number_attributes if has? 'int:originalDocumentNumber'
  hash[:original_corrective_document] = original_corrective_document if has? 'int:originalCorrectiveDocument'
  hash[:original_corrective_document_attributes] = original_corrective_document_attributes if has? 'int:originalCorrectiveDocument'
  hash[:date] = date if has? 'int:date'
  hash[:date_attributes] = date_attributes if has? 'int:date'
  hash[:date_tax] = date_tax if has? 'int:dateTax'
  hash[:date_tax_attributes] = date_tax_attributes if has? 'int:dateTax'
  hash[:date_accounting] = date_accounting if has? 'int:dateAccounting'
  hash[:date_accounting_attributes] = date_accounting_attributes if has? 'int:dateAccounting'
  hash[:date_delivery] = date_delivery if has? 'int:dateDelivery'
  hash[:date_delivery_attributes] = date_delivery_attributes if has? 'int:dateDelivery'
  hash[:date_kvdph] = date_kvdph if has? 'int:dateKVDPH'
  hash[:date_kvdph_attributes] = date_kvdph_attributes if has? 'int:dateKVDPH'
  hash[:date_khdph] = date_khdph if has? 'int:dateKHDPH'
  hash[:date_khdph_attributes] = date_khdph_attributes if has? 'int:dateKHDPH'
  hash[:accounting] = accounting.to_h if has? 'int:accounting'
  hash[:classification_vat] = classification_vat.to_h if has? 'int:classificationVAT'
  hash[:classification_kvdph] = classification_kvdph.to_h if has? 'int:classificationKVDPH'
  hash[:number_khdph] = number_khdph if has? 'int:numberKHDPH'
  hash[:number_khdph_attributes] = number_khdph_attributes if has? 'int:numberKHDPH'
  hash[:text] = text if has? 'int:text'
  hash[:text_attributes] = text_attributes if has? 'int:text'
  hash[:partner_identity] = partner_identity.to_h if has? 'int:partnerIdentity'
  hash[:my_identity] = my_identity.to_h if has? 'int:myIdentity'
  hash[:liquidation] = liquidation if has? 'int:liquidation'
  hash[:liquidation_attributes] = liquidation_attributes if has? 'int:liquidation'
  hash[:centre] = centre.to_h if has? 'int:centre'
  hash[:activity] = activity.to_h if has? 'int:activity'
  hash[:contract] = contract.to_h if has? 'int:contract'
  hash[:reg_va_tin_eu] = reg_va_tin_eu.to_h if has? 'int:regVATinEU'
  hash[:moss] = moss.to_h if has? 'int:MOSS'
  hash[:evidentiary_resources_moss] = evidentiary_resources_moss if has? 'int:evidentiaryResourcesMOSS'
  hash[:accounting_period_moss] = accounting_period_moss if has? 'int:accountingPeriodMOSS'
  hash[:accounting_period_moss_attributes] = accounting_period_moss_attributes if has? 'int:accountingPeriodMOSS'
  hash[:note] = note if has? 'int:note'
  hash[:note_attributes] = note_attributes if has? 'int:note'
  hash[:int_note] = int_note if has? 'int:intNote'
  hash[:int_note_attributes] = int_note_attributes if has? 'int:intNote'
  hash[:hist_rate] = hist_rate if has? 'int:histRate'
  hash[:hist_rate_attributes] = hist_rate_attributes if has? 'int:histRate'
  hash[:mark_record] = mark_record if has? 'int:markRecord'
  hash[:mark_record_attributes] = mark_record_attributes if has? 'int:markRecord'
  hash[:labels] = labels.map(&:to_h) if has? 'int:labels'
  hash[:parameters] = parameters.map(&:to_h) if has? 'int:parameters'

  hash
end