class MoneyS3::Parsers::UhradaType

Public Instance Methods

castka() click to toggle source
# File lib/money_s3/parsers/uhrada_type.rb, line 54
def castka
  at 'Castka'
end
castka_attributes() click to toggle source
# File lib/money_s3/parsers/uhrada_type.rb, line 58
def castka_attributes
  attributes_at 'Castka'
end
dat_upl_dph() click to toggle source
# File lib/money_s3/parsers/uhrada_type.rb, line 46
def dat_upl_dph
  at 'DatUplDPH'
end
dat_upl_dph_attributes() click to toggle source
# File lib/money_s3/parsers/uhrada_type.rb, line 50
def dat_upl_dph_attributes
  attributes_at 'DatUplDPH'
end
datum() click to toggle source
# File lib/money_s3/parsers/uhrada_type.rb, line 38
def datum
  at 'Datum'
end
datum_attributes() click to toggle source
# File lib/money_s3/parsers/uhrada_type.rb, line 42
def datum_attributes
  attributes_at 'Datum'
end
doklad_hraz() click to toggle source
# File lib/money_s3/parsers/uhrada_type.rb, line 10
def doklad_hraz
  submodel_at(DokladHraz, 'DokladHraz')
end
doklad_uhr() click to toggle source
# File lib/money_s3/parsers/uhrada_type.rb, line 6
def doklad_uhr
  submodel_at(DoklRefType, 'DokladUhr')
end
kurz_rozd() click to toggle source
# File lib/money_s3/parsers/uhrada_type.rb, line 70
def kurz_rozd
  submodel_at(KurzRozd, 'KurzRozd')
end
platidlo() click to toggle source
# File lib/money_s3/parsers/uhrada_type.rb, line 82
def platidlo
  at 'Platidlo'
end
platidlo_attributes() click to toggle source
# File lib/money_s3/parsers/uhrada_type.rb, line 86
def platidlo_attributes
  attributes_at 'Platidlo'
end
poradi() click to toggle source
# File lib/money_s3/parsers/uhrada_type.rb, line 22
def poradi
  at 'Poradi'
end
poradi_attributes() click to toggle source
# File lib/money_s3/parsers/uhrada_type.rb, line 26
def poradi_attributes
  attributes_at 'Poradi'
end
prijem() click to toggle source
# File lib/money_s3/parsers/uhrada_type.rb, line 14
def prijem
  at 'Prijem'
end
prijem_attributes() click to toggle source
# File lib/money_s3/parsers/uhrada_type.rb, line 18
def prijem_attributes
  attributes_at 'Prijem'
end
rok_poradi() click to toggle source
# File lib/money_s3/parsers/uhrada_type.rb, line 30
def rok_poradi
  at 'RokPoradi'
end
rok_poradi_attributes() click to toggle source
# File lib/money_s3/parsers/uhrada_type.rb, line 34
def rok_poradi_attributes
  attributes_at 'RokPoradi'
end
seznam_pd_uhrad() click to toggle source
# File lib/money_s3/parsers/uhrada_type.rb, line 90
def seznam_pd_uhrad
  array_of_at(UhradaPduhrada, ['SeznamPDUhrad', 'Uhrada_PDUhrada'])
end
to_h() click to toggle source
# File lib/money_s3/parsers/uhrada_type.rb, line 94
def to_h
  hash = {}
  hash[:attributes] = attributes

  hash[:doklad_uhr] = doklad_uhr.to_h if has? 'DokladUhr'
  hash[:doklad_hraz] = doklad_hraz.to_h if has? 'DokladHraz'
  hash[:prijem] = prijem if has? 'Prijem'
  hash[:prijem_attributes] = prijem_attributes if has? 'Prijem'
  hash[:poradi] = poradi if has? 'Poradi'
  hash[:poradi_attributes] = poradi_attributes if has? 'Poradi'
  hash[:rok_poradi] = rok_poradi if has? 'RokPoradi'
  hash[:rok_poradi_attributes] = rok_poradi_attributes if has? 'RokPoradi'
  hash[:datum] = datum if has? 'Datum'
  hash[:datum_attributes] = datum_attributes if has? 'Datum'
  hash[:dat_upl_dph] = dat_upl_dph if has? 'DatUplDPH'
  hash[:dat_upl_dph_attributes] = dat_upl_dph_attributes if has? 'DatUplDPH'
  hash[:castka] = castka if has? 'Castka'
  hash[:castka_attributes] = castka_attributes if has? 'Castka'
  hash[:valuty_hraz] = valuty_hraz.to_h if has? 'ValutyHraz'
  hash[:valuty_uhr] = valuty_uhr.to_h if has? 'ValutyUhr'
  hash[:kurz_rozd] = kurz_rozd.to_h if has? 'KurzRozd'
  hash[:zpusob_uhr] = zpusob_uhr if has? 'ZpusobUhr'
  hash[:zpusob_uhr_attributes] = zpusob_uhr_attributes if has? 'ZpusobUhr'
  hash[:platidlo] = platidlo if has? 'Platidlo'
  hash[:platidlo_attributes] = platidlo_attributes if has? 'Platidlo'
  hash[:seznam_pd_uhrad] = seznam_pd_uhrad.map(&:to_h) if has? 'SeznamPDUhrad'

  hash
end
valuty_hraz() click to toggle source
# File lib/money_s3/parsers/uhrada_type.rb, line 62
def valuty_hraz
  submodel_at(ValutyHraz, 'ValutyHraz')
end
valuty_uhr() click to toggle source
# File lib/money_s3/parsers/uhrada_type.rb, line 66
def valuty_uhr
  submodel_at(ValutyUhr, 'ValutyUhr')
end
zpusob_uhr() click to toggle source
# File lib/money_s3/parsers/uhrada_type.rb, line 74
def zpusob_uhr
  at 'ZpusobUhr'
end
zpusob_uhr_attributes() click to toggle source
# File lib/money_s3/parsers/uhrada_type.rb, line 78
def zpusob_uhr_attributes
  attributes_at 'ZpusobUhr'
end