class Pohoda::Parsers::Vyd::VydejkaHeaderType

Public Instance Methods

acc() click to toggle source
# File lib/pohoda/parsers/vyd/vydejka_header_type.rb, line 63
def acc
  at 'vyd:acc'
end
acc_attributes() click to toggle source
# File lib/pohoda/parsers/vyd/vydejka_header_type.rb, line 67
def acc_attributes
  attributes_at 'vyd:acc'
end
accounting_period_moss() click to toggle source
# File lib/pohoda/parsers/vyd/vydejka_header_type.rb, line 131
def accounting_period_moss
  at 'vyd:accountingPeriodMOSS'
end
accounting_period_moss_attributes() click to toggle source
# File lib/pohoda/parsers/vyd/vydejka_header_type.rb, line 135
def accounting_period_moss_attributes
  attributes_at 'vyd:accountingPeriodMOSS'
end
activity() click to toggle source
# File lib/pohoda/parsers/vyd/vydejka_header_type.rb, line 107
def activity
  submodel_at(Typ::RefType, 'vyd:activity')
end
carrier() click to toggle source
# File lib/pohoda/parsers/vyd/vydejka_header_type.rb, line 115
def carrier
  submodel_at(Typ::CarrierType, 'vyd:carrier')
end
centre() click to toggle source
# File lib/pohoda/parsers/vyd/vydejka_header_type.rb, line 103
def centre
  submodel_at(Typ::RefType, 'vyd:centre')
end
contract() click to toggle source
# File lib/pohoda/parsers/vyd/vydejka_header_type.rb, line 111
def contract
  submodel_at(Typ::RefType, 'vyd:contract')
end
date() click to toggle source
# File lib/pohoda/parsers/vyd/vydejka_header_type.rb, line 27
def date
  at 'vyd:date'
end
date_attributes() click to toggle source
# File lib/pohoda/parsers/vyd/vydejka_header_type.rb, line 31
def date_attributes
  attributes_at 'vyd:date'
end
date_order() click to toggle source
# File lib/pohoda/parsers/vyd/vydejka_header_type.rb, line 43
def date_order
  at 'vyd:dateOrder'
end
date_order_attributes() click to toggle source
# File lib/pohoda/parsers/vyd/vydejka_header_type.rb, line 47
def date_order_attributes
  attributes_at 'vyd:dateOrder'
end
evidentiary_resources_moss() click to toggle source
# File lib/pohoda/parsers/vyd/vydejka_header_type.rb, line 127
def evidentiary_resources_moss
  array_of_at(String, ['vyd:evidentiaryResourcesMOSS', 'typ:ids'])
end
hist_rate() click to toggle source
# File lib/pohoda/parsers/vyd/vydejka_header_type.rb, line 155
def hist_rate
  at 'vyd:histRate'
end
hist_rate_attributes() click to toggle source
# File lib/pohoda/parsers/vyd/vydejka_header_type.rb, line 159
def hist_rate_attributes
  attributes_at 'vyd:histRate'
end
id() click to toggle source
# File lib/pohoda/parsers/vyd/vydejka_header_type.rb, line 7
def id
  at 'vyd:id'
end
id_attributes() click to toggle source
# File lib/pohoda/parsers/vyd/vydejka_header_type.rb, line 11
def id_attributes
  attributes_at 'vyd:id'
end
int_note() click to toggle source
# File lib/pohoda/parsers/vyd/vydejka_header_type.rb, line 147
def int_note
  at 'vyd:intNote'
end
int_note_attributes() click to toggle source
# File lib/pohoda/parsers/vyd/vydejka_header_type.rb, line 151
def int_note_attributes
  attributes_at 'vyd:intNote'
end
is_delivered() click to toggle source
# File lib/pohoda/parsers/vyd/vydejka_header_type.rb, line 95
def is_delivered
  at 'vyd:isDelivered'
end
is_delivered_attributes() click to toggle source
# File lib/pohoda/parsers/vyd/vydejka_header_type.rb, line 99
def is_delivered_attributes
  attributes_at 'vyd:isDelivered'
end
is_executed() click to toggle source
# File lib/pohoda/parsers/vyd/vydejka_header_type.rb, line 87
def is_executed
  at 'vyd:isExecuted'
end
is_executed_attributes() click to toggle source
# File lib/pohoda/parsers/vyd/vydejka_header_type.rb, line 91
def is_executed_attributes
  attributes_at 'vyd:isExecuted'
end
labels() click to toggle source
# File lib/pohoda/parsers/vyd/vydejka_header_type.rb, line 171
def labels
  array_of_at(Typ::LabelType, ['vyd:labels', 'typ:label'])
end
mark_record() click to toggle source
# File lib/pohoda/parsers/vyd/vydejka_header_type.rb, line 163
def mark_record
  at 'vyd:markRecord'
end
mark_record_attributes() click to toggle source
# File lib/pohoda/parsers/vyd/vydejka_header_type.rb, line 167
def mark_record_attributes
  attributes_at 'vyd:markRecord'
end
moss() click to toggle source
# File lib/pohoda/parsers/vyd/vydejka_header_type.rb, line 123
def moss
  submodel_at(Typ::MOSStype, 'vyd:MOSS')
end
note() click to toggle source
# File lib/pohoda/parsers/vyd/vydejka_header_type.rb, line 139
def note
  at 'vyd:note'
end
note_attributes() click to toggle source
# File lib/pohoda/parsers/vyd/vydejka_header_type.rb, line 143
def note_attributes
  attributes_at 'vyd:note'
end
number() click to toggle source
# File lib/pohoda/parsers/vyd/vydejka_header_type.rb, line 23
def number
  submodel_at(Typ::NumberType, 'vyd:number')
end
number_order() click to toggle source
# File lib/pohoda/parsers/vyd/vydejka_header_type.rb, line 35
def number_order
  at 'vyd:numberOrder'
end
number_order_attributes() click to toggle source
# File lib/pohoda/parsers/vyd/vydejka_header_type.rb, line 39
def number_order_attributes
  attributes_at 'vyd:numberOrder'
end
parameters() click to toggle source
# File lib/pohoda/parsers/vyd/vydejka_header_type.rb, line 175
def parameters
  array_of_at(Typ::ParameterDocType, ['vyd:parameters', 'typ:parameter'])
end
partner_identity() click to toggle source
# File lib/pohoda/parsers/vyd/vydejka_header_type.rb, line 59
def partner_identity
  submodel_at(Typ::Address, 'vyd:partnerIdentity')
end
payment_type() click to toggle source
# File lib/pohoda/parsers/vyd/vydejka_header_type.rb, line 83
def payment_type
  submodel_at(Typ::PaymentType, 'vyd:paymentType')
end
price_level() click to toggle source
# File lib/pohoda/parsers/vyd/vydejka_header_type.rb, line 79
def price_level
  submodel_at(Typ::RefType, 'vyd:priceLevel')
end
reg_va_tin_eu() click to toggle source
# File lib/pohoda/parsers/vyd/vydejka_header_type.rb, line 119
def reg_va_tin_eu
  submodel_at(Typ::RefTypeRegVATinEU, 'vyd:regVATinEU')
end
storno() click to toggle source
# File lib/pohoda/parsers/vyd/vydejka_header_type.rb, line 15
def storno
  at 'vyd:storno'
end
storno_attributes() click to toggle source
# File lib/pohoda/parsers/vyd/vydejka_header_type.rb, line 19
def storno_attributes
  attributes_at 'vyd:storno'
end
sym_par() click to toggle source
# File lib/pohoda/parsers/vyd/vydejka_header_type.rb, line 71
def sym_par
  at 'vyd:symPar'
end
sym_par_attributes() click to toggle source
# File lib/pohoda/parsers/vyd/vydejka_header_type.rb, line 75
def sym_par_attributes
  attributes_at 'vyd:symPar'
end
text() click to toggle source
# File lib/pohoda/parsers/vyd/vydejka_header_type.rb, line 51
def text
  at 'vyd:text'
end
text_attributes() click to toggle source
# File lib/pohoda/parsers/vyd/vydejka_header_type.rb, line 55
def text_attributes
  attributes_at 'vyd:text'
end
to_h() click to toggle source
# File lib/pohoda/parsers/vyd/vydejka_header_type.rb, line 179
def to_h
  hash = {}
  hash[:attributes] = attributes

  hash[:id] = id if has? 'vyd:id'
  hash[:id_attributes] = id_attributes if has? 'vyd:id'
  hash[:storno] = storno if has? 'vyd:storno'
  hash[:storno_attributes] = storno_attributes if has? 'vyd:storno'
  hash[:number] = number.to_h if has? 'vyd:number'
  hash[:date] = date if has? 'vyd:date'
  hash[:date_attributes] = date_attributes if has? 'vyd:date'
  hash[:number_order] = number_order if has? 'vyd:numberOrder'
  hash[:number_order_attributes] = number_order_attributes if has? 'vyd:numberOrder'
  hash[:date_order] = date_order if has? 'vyd:dateOrder'
  hash[:date_order_attributes] = date_order_attributes if has? 'vyd:dateOrder'
  hash[:text] = text if has? 'vyd:text'
  hash[:text_attributes] = text_attributes if has? 'vyd:text'
  hash[:partner_identity] = partner_identity.to_h if has? 'vyd:partnerIdentity'
  hash[:acc] = acc if has? 'vyd:acc'
  hash[:acc_attributes] = acc_attributes if has? 'vyd:acc'
  hash[:sym_par] = sym_par if has? 'vyd:symPar'
  hash[:sym_par_attributes] = sym_par_attributes if has? 'vyd:symPar'
  hash[:price_level] = price_level.to_h if has? 'vyd:priceLevel'
  hash[:payment_type] = payment_type.to_h if has? 'vyd:paymentType'
  hash[:is_executed] = is_executed if has? 'vyd:isExecuted'
  hash[:is_executed_attributes] = is_executed_attributes if has? 'vyd:isExecuted'
  hash[:is_delivered] = is_delivered if has? 'vyd:isDelivered'
  hash[:is_delivered_attributes] = is_delivered_attributes if has? 'vyd:isDelivered'
  hash[:centre] = centre.to_h if has? 'vyd:centre'
  hash[:activity] = activity.to_h if has? 'vyd:activity'
  hash[:contract] = contract.to_h if has? 'vyd:contract'
  hash[:carrier] = carrier.to_h if has? 'vyd:carrier'
  hash[:reg_va_tin_eu] = reg_va_tin_eu.to_h if has? 'vyd:regVATinEU'
  hash[:moss] = moss.to_h if has? 'vyd:MOSS'
  hash[:evidentiary_resources_moss] = evidentiary_resources_moss if has? 'vyd:evidentiaryResourcesMOSS'
  hash[:accounting_period_moss] = accounting_period_moss if has? 'vyd:accountingPeriodMOSS'
  hash[:accounting_period_moss_attributes] = accounting_period_moss_attributes if has? 'vyd:accountingPeriodMOSS'
  hash[:note] = note if has? 'vyd:note'
  hash[:note_attributes] = note_attributes if has? 'vyd:note'
  hash[:int_note] = int_note if has? 'vyd:intNote'
  hash[:int_note_attributes] = int_note_attributes if has? 'vyd:intNote'
  hash[:hist_rate] = hist_rate if has? 'vyd:histRate'
  hash[:hist_rate_attributes] = hist_rate_attributes if has? 'vyd:histRate'
  hash[:mark_record] = mark_record if has? 'vyd:markRecord'
  hash[:mark_record_attributes] = mark_record_attributes if has? 'vyd:markRecord'
  hash[:labels] = labels.map(&:to_h) if has? 'vyd:labels'
  hash[:parameters] = parameters.map(&:to_h) if has? 'vyd:parameters'

  hash
end