class Pohoda::Parsers::Pro::ProdejkaHeaderType

Public Instance Methods

accounting() click to toggle source
# File lib/pohoda/parsers/pro/prodejka_header_type.rb, line 47
def accounting
  submodel_at(Typ::AccountingType, 'pro:accounting')
end
activity() click to toggle source
# File lib/pohoda/parsers/pro/prodejka_header_type.rb, line 75
def activity
  submodel_at(Typ::RefType, 'pro:activity')
end
centre() click to toggle source
# File lib/pohoda/parsers/pro/prodejka_header_type.rb, line 71
def centre
  submodel_at(Typ::RefType, 'pro:centre')
end
contract() click to toggle source
# File lib/pohoda/parsers/pro/prodejka_header_type.rb, line 79
def contract
  submodel_at(Typ::RefType, 'pro:contract')
end
date() click to toggle source
# File lib/pohoda/parsers/pro/prodejka_header_type.rb, line 39
def date
  at 'pro:date'
end
date_attributes() click to toggle source
# File lib/pohoda/parsers/pro/prodejka_header_type.rb, line 43
def date_attributes
  attributes_at 'pro:date'
end
ext_id() click to toggle source
# File lib/pohoda/parsers/pro/prodejka_header_type.rb, line 15
def ext_id
  submodel_at(Typ::ExtIdType, 'pro:extId')
end
hist_rate() click to toggle source
# File lib/pohoda/parsers/pro/prodejka_header_type.rb, line 103
def hist_rate
  at 'pro:histRate'
end
hist_rate_attributes() click to toggle source
# File lib/pohoda/parsers/pro/prodejka_header_type.rb, line 107
def hist_rate_attributes
  attributes_at 'pro:histRate'
end
id() click to toggle source
# File lib/pohoda/parsers/pro/prodejka_header_type.rb, line 7
def id
  at 'pro:id'
end
id_attributes() click to toggle source
# File lib/pohoda/parsers/pro/prodejka_header_type.rb, line 11
def id_attributes
  attributes_at 'pro:id'
end
int_note() click to toggle source
# File lib/pohoda/parsers/pro/prodejka_header_type.rb, line 95
def int_note
  at 'pro:intNote'
end
int_note_attributes() click to toggle source
# File lib/pohoda/parsers/pro/prodejka_header_type.rb, line 99
def int_note_attributes
  attributes_at 'pro:intNote'
end
kasa() click to toggle source
# File lib/pohoda/parsers/pro/prodejka_header_type.rb, line 83
def kasa
  submodel_at(Typ::RefType, 'pro:kasa')
end
labels() click to toggle source
# File lib/pohoda/parsers/pro/prodejka_header_type.rb, line 119
def labels
  array_of_at(Typ::LabelType, ['pro:labels', 'typ:label'])
end
mark_record() click to toggle source
# File lib/pohoda/parsers/pro/prodejka_header_type.rb, line 111
def mark_record
  at 'pro:markRecord'
end
mark_record_attributes() click to toggle source
# File lib/pohoda/parsers/pro/prodejka_header_type.rb, line 115
def mark_record_attributes
  attributes_at 'pro:markRecord'
end
note() click to toggle source
# File lib/pohoda/parsers/pro/prodejka_header_type.rb, line 87
def note
  at 'pro:note'
end
note_attributes() click to toggle source
# File lib/pohoda/parsers/pro/prodejka_header_type.rb, line 91
def note_attributes
  attributes_at 'pro:note'
end
number() click to toggle source
# File lib/pohoda/parsers/pro/prodejka_header_type.rb, line 35
def number
  submodel_at(Typ::NumberType, 'pro:number')
end
parameters() click to toggle source
# File lib/pohoda/parsers/pro/prodejka_header_type.rb, line 123
def parameters
  array_of_at(Typ::ParameterDocType, ['pro:parameters', 'typ:parameter'])
end
partner_identity() click to toggle source
# File lib/pohoda/parsers/pro/prodejka_header_type.rb, line 59
def partner_identity
  submodel_at(Typ::Address, 'pro:partnerIdentity')
end
payment_type() click to toggle source
# File lib/pohoda/parsers/pro/prodejka_header_type.rb, line 63
def payment_type
  submodel_at(Typ::PaymentType, 'pro:paymentType')
end
price_level() click to toggle source
# File lib/pohoda/parsers/pro/prodejka_header_type.rb, line 67
def price_level
  submodel_at(Typ::RefType, 'pro:priceLevel')
end
prodejka_type() click to toggle source
# File lib/pohoda/parsers/pro/prodejka_header_type.rb, line 19
def prodejka_type
  at 'pro:prodejkaType'
end
prodejka_type_attributes() click to toggle source
# File lib/pohoda/parsers/pro/prodejka_header_type.rb, line 23
def prodejka_type_attributes
  attributes_at 'pro:prodejkaType'
end
storno() click to toggle source
# File lib/pohoda/parsers/pro/prodejka_header_type.rb, line 27
def storno
  at 'pro:storno'
end
storno_attributes() click to toggle source
# File lib/pohoda/parsers/pro/prodejka_header_type.rb, line 31
def storno_attributes
  attributes_at 'pro:storno'
end
text() click to toggle source
# File lib/pohoda/parsers/pro/prodejka_header_type.rb, line 51
def text
  at 'pro:text'
end
text_attributes() click to toggle source
# File lib/pohoda/parsers/pro/prodejka_header_type.rb, line 55
def text_attributes
  attributes_at 'pro:text'
end
to_h() click to toggle source
# File lib/pohoda/parsers/pro/prodejka_header_type.rb, line 131
def to_h
  hash = {}
  hash[:attributes] = attributes

  hash[:id] = id if has? 'pro:id'
  hash[:id_attributes] = id_attributes if has? 'pro:id'
  hash[:ext_id] = ext_id.to_h if has? 'pro:extId'
  hash[:prodejka_type] = prodejka_type if has? 'pro:prodejkaType'
  hash[:prodejka_type_attributes] = prodejka_type_attributes if has? 'pro:prodejkaType'
  hash[:storno] = storno if has? 'pro:storno'
  hash[:storno_attributes] = storno_attributes if has? 'pro:storno'
  hash[:number] = number.to_h if has? 'pro:number'
  hash[:date] = date if has? 'pro:date'
  hash[:date_attributes] = date_attributes if has? 'pro:date'
  hash[:accounting] = accounting.to_h if has? 'pro:accounting'
  hash[:text] = text if has? 'pro:text'
  hash[:text_attributes] = text_attributes if has? 'pro:text'
  hash[:partner_identity] = partner_identity.to_h if has? 'pro:partnerIdentity'
  hash[:payment_type] = payment_type.to_h if has? 'pro:paymentType'
  hash[:price_level] = price_level.to_h if has? 'pro:priceLevel'
  hash[:centre] = centre.to_h if has? 'pro:centre'
  hash[:activity] = activity.to_h if has? 'pro:activity'
  hash[:contract] = contract.to_h if has? 'pro:contract'
  hash[:kasa] = kasa.to_h if has? 'pro:kasa'
  hash[:note] = note if has? 'pro:note'
  hash[:note_attributes] = note_attributes if has? 'pro:note'
  hash[:int_note] = int_note if has? 'pro:intNote'
  hash[:int_note_attributes] = int_note_attributes if has? 'pro:intNote'
  hash[:hist_rate] = hist_rate if has? 'pro:histRate'
  hash[:hist_rate_attributes] = hist_rate_attributes if has? 'pro:histRate'
  hash[:mark_record] = mark_record if has? 'pro:markRecord'
  hash[:mark_record_attributes] = mark_record_attributes if has? 'pro:markRecord'
  hash[:labels] = labels.map(&:to_h) if has? 'pro:labels'
  hash[:parameters] = parameters.map(&:to_h) if has? 'pro:parameters'
  hash[:validate] = validate.to_h if has? 'pro:validate'

  hash
end
validate() click to toggle source
# File lib/pohoda/parsers/pro/prodejka_header_type.rb, line 127
def validate
  submodel_at(Typ::TypeValidate, 'pro:validate')
end