class Pohoda::Parsers::Pri::PrijemkaHeaderType

Public Instance Methods

acc() click to toggle source
# File lib/pohoda/parsers/pri/prijemka_header_type.rb, line 47
def acc
  at 'pri:acc'
end
acc_attributes() click to toggle source
# File lib/pohoda/parsers/pri/prijemka_header_type.rb, line 51
def acc_attributes
  attributes_at 'pri:acc'
end
activity() click to toggle source
# File lib/pohoda/parsers/pri/prijemka_header_type.rb, line 83
def activity
  submodel_at(Typ::RefType, 'pri:activity')
end
centre() click to toggle source
# File lib/pohoda/parsers/pri/prijemka_header_type.rb, line 79
def centre
  submodel_at(Typ::RefType, 'pri:centre')
end
contract() click to toggle source
# File lib/pohoda/parsers/pri/prijemka_header_type.rb, line 87
def contract
  submodel_at(Typ::RefType, 'pri:contract')
end
date() click to toggle source
# File lib/pohoda/parsers/pri/prijemka_header_type.rb, line 27
def date
  at 'pri:date'
end
date_attributes() click to toggle source
# File lib/pohoda/parsers/pri/prijemka_header_type.rb, line 31
def date_attributes
  attributes_at 'pri:date'
end
hist_rate() click to toggle source
# File lib/pohoda/parsers/pri/prijemka_header_type.rb, line 111
def hist_rate
  at 'pri:histRate'
end
hist_rate_attributes() click to toggle source
# File lib/pohoda/parsers/pri/prijemka_header_type.rb, line 115
def hist_rate_attributes
  attributes_at 'pri:histRate'
end
id() click to toggle source
# File lib/pohoda/parsers/pri/prijemka_header_type.rb, line 7
def id
  at 'pri:id'
end
id_attributes() click to toggle source
# File lib/pohoda/parsers/pri/prijemka_header_type.rb, line 11
def id_attributes
  attributes_at 'pri:id'
end
int_note() click to toggle source
# File lib/pohoda/parsers/pri/prijemka_header_type.rb, line 103
def int_note
  at 'pri:intNote'
end
int_note_attributes() click to toggle source
# File lib/pohoda/parsers/pri/prijemka_header_type.rb, line 107
def int_note_attributes
  attributes_at 'pri:intNote'
end
is_delivered() click to toggle source
# File lib/pohoda/parsers/pri/prijemka_header_type.rb, line 71
def is_delivered
  at 'pri:isDelivered'
end
is_delivered_attributes() click to toggle source
# File lib/pohoda/parsers/pri/prijemka_header_type.rb, line 75
def is_delivered_attributes
  attributes_at 'pri:isDelivered'
end
is_executed() click to toggle source
# File lib/pohoda/parsers/pri/prijemka_header_type.rb, line 63
def is_executed
  at 'pri:isExecuted'
end
is_executed_attributes() click to toggle source
# File lib/pohoda/parsers/pri/prijemka_header_type.rb, line 67
def is_executed_attributes
  attributes_at 'pri:isExecuted'
end
labels() click to toggle source
# File lib/pohoda/parsers/pri/prijemka_header_type.rb, line 127
def labels
  array_of_at(Typ::LabelType, ['pri:labels', 'typ:label'])
end
mark_record() click to toggle source
# File lib/pohoda/parsers/pri/prijemka_header_type.rb, line 119
def mark_record
  at 'pri:markRecord'
end
mark_record_attributes() click to toggle source
# File lib/pohoda/parsers/pri/prijemka_header_type.rb, line 123
def mark_record_attributes
  attributes_at 'pri:markRecord'
end
note() click to toggle source
# File lib/pohoda/parsers/pri/prijemka_header_type.rb, line 95
def note
  at 'pri:note'
end
note_attributes() click to toggle source
# File lib/pohoda/parsers/pri/prijemka_header_type.rb, line 99
def note_attributes
  attributes_at 'pri:note'
end
number() click to toggle source
# File lib/pohoda/parsers/pri/prijemka_header_type.rb, line 23
def number
  submodel_at(Typ::NumberType, 'pri:number')
end
parameters() click to toggle source
# File lib/pohoda/parsers/pri/prijemka_header_type.rb, line 131
def parameters
  array_of_at(Typ::ParameterDocType, ['pri:parameters', 'typ:parameter'])
end
partner_identity() click to toggle source
# File lib/pohoda/parsers/pri/prijemka_header_type.rb, line 43
def partner_identity
  submodel_at(Typ::Address, 'pri:partnerIdentity')
end
reg_va_tin_eu() click to toggle source
# File lib/pohoda/parsers/pri/prijemka_header_type.rb, line 91
def reg_va_tin_eu
  submodel_at(Typ::RefTypeRegVATinEU, 'pri:regVATinEU')
end
storno() click to toggle source
# File lib/pohoda/parsers/pri/prijemka_header_type.rb, line 15
def storno
  at 'pri:storno'
end
storno_attributes() click to toggle source
# File lib/pohoda/parsers/pri/prijemka_header_type.rb, line 19
def storno_attributes
  attributes_at 'pri:storno'
end
sym_par() click to toggle source
# File lib/pohoda/parsers/pri/prijemka_header_type.rb, line 55
def sym_par
  at 'pri:symPar'
end
sym_par_attributes() click to toggle source
# File lib/pohoda/parsers/pri/prijemka_header_type.rb, line 59
def sym_par_attributes
  attributes_at 'pri:symPar'
end
text() click to toggle source
# File lib/pohoda/parsers/pri/prijemka_header_type.rb, line 35
def text
  at 'pri:text'
end
text_attributes() click to toggle source
# File lib/pohoda/parsers/pri/prijemka_header_type.rb, line 39
def text_attributes
  attributes_at 'pri:text'
end
to_h() click to toggle source
# File lib/pohoda/parsers/pri/prijemka_header_type.rb, line 135
def to_h
  hash = {}
  hash[:attributes] = attributes

  hash[:id] = id if has? 'pri:id'
  hash[:id_attributes] = id_attributes if has? 'pri:id'
  hash[:storno] = storno if has? 'pri:storno'
  hash[:storno_attributes] = storno_attributes if has? 'pri:storno'
  hash[:number] = number.to_h if has? 'pri:number'
  hash[:date] = date if has? 'pri:date'
  hash[:date_attributes] = date_attributes if has? 'pri:date'
  hash[:text] = text if has? 'pri:text'
  hash[:text_attributes] = text_attributes if has? 'pri:text'
  hash[:partner_identity] = partner_identity.to_h if has? 'pri:partnerIdentity'
  hash[:acc] = acc if has? 'pri:acc'
  hash[:acc_attributes] = acc_attributes if has? 'pri:acc'
  hash[:sym_par] = sym_par if has? 'pri:symPar'
  hash[:sym_par_attributes] = sym_par_attributes if has? 'pri:symPar'
  hash[:is_executed] = is_executed if has? 'pri:isExecuted'
  hash[:is_executed_attributes] = is_executed_attributes if has? 'pri:isExecuted'
  hash[:is_delivered] = is_delivered if has? 'pri:isDelivered'
  hash[:is_delivered_attributes] = is_delivered_attributes if has? 'pri:isDelivered'
  hash[:centre] = centre.to_h if has? 'pri:centre'
  hash[:activity] = activity.to_h if has? 'pri:activity'
  hash[:contract] = contract.to_h if has? 'pri:contract'
  hash[:reg_va_tin_eu] = reg_va_tin_eu.to_h if has? 'pri:regVATinEU'
  hash[:note] = note if has? 'pri:note'
  hash[:note_attributes] = note_attributes if has? 'pri:note'
  hash[:int_note] = int_note if has? 'pri:intNote'
  hash[:int_note_attributes] = int_note_attributes if has? 'pri:intNote'
  hash[:hist_rate] = hist_rate if has? 'pri:histRate'
  hash[:hist_rate_attributes] = hist_rate_attributes if has? 'pri:histRate'
  hash[:mark_record] = mark_record if has? 'pri:markRecord'
  hash[:mark_record_attributes] = mark_record_attributes if has? 'pri:markRecord'
  hash[:labels] = labels.map(&:to_h) if has? 'pri:labels'
  hash[:parameters] = parameters.map(&:to_h) if has? 'pri:parameters'

  hash
end