class Pohoda::Parsers::Pri::PrijemkaAccessoryChargesItemType

Public Instance Methods

activity() click to toggle source
# File lib/pohoda/parsers/pri/prijemka_accessory_charges_item_type.rb, line 75
def activity
  submodel_at(Typ::RefType, 'pri:activity')
end
centre() click to toggle source
# File lib/pohoda/parsers/pri/prijemka_accessory_charges_item_type.rb, line 71
def centre
  submodel_at(Typ::RefType, 'pri:centre')
end
contract() click to toggle source
# File lib/pohoda/parsers/pri/prijemka_accessory_charges_item_type.rb, line 79
def contract
  submodel_at(Typ::RefType, 'pri:contract')
end
discount_percentage() click to toggle source
# File lib/pohoda/parsers/pri/prijemka_accessory_charges_item_type.rb, line 47
def discount_percentage
  at 'pri:discountPercentage'
end
discount_percentage_attributes() click to toggle source
# File lib/pohoda/parsers/pri/prijemka_accessory_charges_item_type.rb, line 51
def discount_percentage_attributes
  attributes_at 'pri:discountPercentage'
end
foreign_currency() click to toggle source
# File lib/pohoda/parsers/pri/prijemka_accessory_charges_item_type.rb, line 59
def foreign_currency
  submodel_at(Typ::TypeCurrencyForeignItem, 'pri:foreignCurrency')
end
home_currency() click to toggle source
# File lib/pohoda/parsers/pri/prijemka_accessory_charges_item_type.rb, line 55
def home_currency
  submodel_at(Typ::TypeCurrencyHomeItem, 'pri:homeCurrency')
end
id() click to toggle source
# File lib/pohoda/parsers/pri/prijemka_accessory_charges_item_type.rb, line 7
def id
  at 'pri:id'
end
id_attributes() click to toggle source
# File lib/pohoda/parsers/pri/prijemka_accessory_charges_item_type.rb, line 11
def id_attributes
  attributes_at 'pri:id'
end
note() click to toggle source
# File lib/pohoda/parsers/pri/prijemka_accessory_charges_item_type.rb, line 63
def note
  at 'pri:note'
end
note_attributes() click to toggle source
# File lib/pohoda/parsers/pri/prijemka_accessory_charges_item_type.rb, line 67
def note_attributes
  attributes_at 'pri:note'
end
parameters() click to toggle source
# File lib/pohoda/parsers/pri/prijemka_accessory_charges_item_type.rb, line 83
def parameters
  array_of_at(Typ::ParameterDocType, ['pri:parameters', 'typ:parameter'])
end
pay_vat() click to toggle source
# File lib/pohoda/parsers/pri/prijemka_accessory_charges_item_type.rb, line 23
def pay_vat
  at 'pri:payVAT'
end
pay_vat_attributes() click to toggle source
# File lib/pohoda/parsers/pri/prijemka_accessory_charges_item_type.rb, line 27
def pay_vat_attributes
  attributes_at 'pri:payVAT'
end
percent_vat() click to toggle source
# File lib/pohoda/parsers/pri/prijemka_accessory_charges_item_type.rb, line 39
def percent_vat
  at 'pri:percentVAT'
end
percent_vat_attributes() click to toggle source
# File lib/pohoda/parsers/pri/prijemka_accessory_charges_item_type.rb, line 43
def percent_vat_attributes
  attributes_at 'pri:percentVAT'
end
quantity() click to toggle source
# File lib/pohoda/parsers/pri/prijemka_accessory_charges_item_type.rb, line 15
def quantity
  at 'pri:quantity'
end
quantity_attributes() click to toggle source
# File lib/pohoda/parsers/pri/prijemka_accessory_charges_item_type.rb, line 19
def quantity_attributes
  attributes_at 'pri:quantity'
end
rate_vat() click to toggle source
# File lib/pohoda/parsers/pri/prijemka_accessory_charges_item_type.rb, line 31
def rate_vat
  at 'pri:rateVAT'
end
rate_vat_attributes() click to toggle source
# File lib/pohoda/parsers/pri/prijemka_accessory_charges_item_type.rb, line 35
def rate_vat_attributes
  attributes_at 'pri:rateVAT'
end
to_h() click to toggle source
# File lib/pohoda/parsers/pri/prijemka_accessory_charges_item_type.rb, line 87
def to_h
  hash = {}
  hash[:attributes] = attributes

  hash[:id] = id if has? 'pri:id'
  hash[:id_attributes] = id_attributes if has? 'pri:id'
  hash[:quantity] = quantity if has? 'pri:quantity'
  hash[:quantity_attributes] = quantity_attributes if has? 'pri:quantity'
  hash[:pay_vat] = pay_vat if has? 'pri:payVAT'
  hash[:pay_vat_attributes] = pay_vat_attributes if has? 'pri:payVAT'
  hash[:rate_vat] = rate_vat if has? 'pri:rateVAT'
  hash[:rate_vat_attributes] = rate_vat_attributes if has? 'pri:rateVAT'
  hash[:percent_vat] = percent_vat if has? 'pri:percentVAT'
  hash[:percent_vat_attributes] = percent_vat_attributes if has? 'pri:percentVAT'
  hash[:discount_percentage] = discount_percentage if has? 'pri:discountPercentage'
  hash[:discount_percentage_attributes] = discount_percentage_attributes if has? 'pri:discountPercentage'
  hash[:home_currency] = home_currency.to_h if has? 'pri:homeCurrency'
  hash[:foreign_currency] = foreign_currency.to_h if has? 'pri:foreignCurrency'
  hash[:note] = note if has? 'pri:note'
  hash[:note_attributes] = note_attributes if has? 'pri:note'
  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[:parameters] = parameters.map(&:to_h) if has? 'pri:parameters'

  hash
end