class Pohoda::Parsers::Lst::ItemSellingPriceType

Public Instance Methods

calculation() click to toggle source
# File lib/pohoda/parsers/lst/item_selling_price_type.rb, line 91
def calculation
  at 'lst:calculation'
end
calculation_attributes() click to toggle source
# File lib/pohoda/parsers/lst/item_selling_price_type.rb, line 95
def calculation_attributes
  attributes_at 'lst:calculation'
end
code() click to toggle source
# File lib/pohoda/parsers/lst/item_selling_price_type.rb, line 19
def code
  at 'lst:code'
end
code_attributes() click to toggle source
# File lib/pohoda/parsers/lst/item_selling_price_type.rb, line 23
def code_attributes
  attributes_at 'lst:code'
end
currency() click to toggle source
# File lib/pohoda/parsers/lst/item_selling_price_type.rb, line 107
def currency
  submodel_at(Typ::RefType, 'lst:currency')
end
date_from() click to toggle source
# File lib/pohoda/parsers/lst/item_selling_price_type.rb, line 43
def date_from
  at 'lst:dateFrom'
end
date_from_attributes() click to toggle source
# File lib/pohoda/parsers/lst/item_selling_price_type.rb, line 47
def date_from_attributes
  attributes_at 'lst:dateFrom'
end
date_till() click to toggle source
# File lib/pohoda/parsers/lst/item_selling_price_type.rb, line 51
def date_till
  at 'lst:dateTill'
end
date_till_attributes() click to toggle source
# File lib/pohoda/parsers/lst/item_selling_price_type.rb, line 55
def date_till_attributes
  attributes_at 'lst:dateTill'
end
discount_percentage() click to toggle source
# File lib/pohoda/parsers/lst/item_selling_price_type.rb, line 83
def discount_percentage
  at 'lst:discountPercentage'
end
discount_percentage_attributes() click to toggle source
# File lib/pohoda/parsers/lst/item_selling_price_type.rb, line 87
def discount_percentage_attributes
  attributes_at 'lst:discountPercentage'
end
discount_validity() click to toggle source
# File lib/pohoda/parsers/lst/item_selling_price_type.rb, line 35
def discount_validity
  at 'lst:discountValidity'
end
discount_validity_attributes() click to toggle source
# File lib/pohoda/parsers/lst/item_selling_price_type.rb, line 39
def discount_validity_attributes
  attributes_at 'lst:discountValidity'
end
ext_id() click to toggle source
# File lib/pohoda/parsers/lst/item_selling_price_type.rb, line 15
def ext_id
  submodel_at(Typ::ExtIdType, 'lst:extId')
end
id() click to toggle source
# File lib/pohoda/parsers/lst/item_selling_price_type.rb, line 7
def id
  at 'lst:id'
end
id_attributes() click to toggle source
# File lib/pohoda/parsers/lst/item_selling_price_type.rb, line 11
def id_attributes
  attributes_at 'lst:id'
end
margin() click to toggle source
# File lib/pohoda/parsers/lst/item_selling_price_type.rb, line 67
def margin
  at 'lst:margin'
end
margin_attributes() click to toggle source
# File lib/pohoda/parsers/lst/item_selling_price_type.rb, line 71
def margin_attributes
  attributes_at 'lst:margin'
end
name() click to toggle source
# File lib/pohoda/parsers/lst/item_selling_price_type.rb, line 27
def name
  at 'lst:name'
end
name_attributes() click to toggle source
# File lib/pohoda/parsers/lst/item_selling_price_type.rb, line 31
def name_attributes
  attributes_at 'lst:name'
end
price_type() click to toggle source
# File lib/pohoda/parsers/lst/item_selling_price_type.rb, line 59
def price_type
  at 'lst:priceType'
end
price_type_attributes() click to toggle source
# File lib/pohoda/parsers/lst/item_selling_price_type.rb, line 63
def price_type_attributes
  attributes_at 'lst:priceType'
end
rate() click to toggle source
# File lib/pohoda/parsers/lst/item_selling_price_type.rb, line 111
def rate
  at 'lst:rate'
end
rate_attributes() click to toggle source
# File lib/pohoda/parsers/lst/item_selling_price_type.rb, line 115
def rate_attributes
  attributes_at 'lst:rate'
end
rebate() click to toggle source
# File lib/pohoda/parsers/lst/item_selling_price_type.rb, line 75
def rebate
  at 'lst:rebate'
end
rebate_attributes() click to toggle source
# File lib/pohoda/parsers/lst/item_selling_price_type.rb, line 79
def rebate_attributes
  attributes_at 'lst:rebate'
end
rounding() click to toggle source
# File lib/pohoda/parsers/lst/item_selling_price_type.rb, line 99
def rounding
  at 'lst:rounding'
end
rounding_attributes() click to toggle source
# File lib/pohoda/parsers/lst/item_selling_price_type.rb, line 103
def rounding_attributes
  attributes_at 'lst:rounding'
end
to_h() click to toggle source
# File lib/pohoda/parsers/lst/item_selling_price_type.rb, line 119
def to_h
  hash = {}
  hash[:attributes] = attributes

  hash[:id] = id if has? 'lst:id'
  hash[:id_attributes] = id_attributes if has? 'lst:id'
  hash[:ext_id] = ext_id.to_h if has? 'lst:extId'
  hash[:code] = code if has? 'lst:code'
  hash[:code_attributes] = code_attributes if has? 'lst:code'
  hash[:name] = name if has? 'lst:name'
  hash[:name_attributes] = name_attributes if has? 'lst:name'
  hash[:discount_validity] = discount_validity if has? 'lst:discountValidity'
  hash[:discount_validity_attributes] = discount_validity_attributes if has? 'lst:discountValidity'
  hash[:date_from] = date_from if has? 'lst:dateFrom'
  hash[:date_from_attributes] = date_from_attributes if has? 'lst:dateFrom'
  hash[:date_till] = date_till if has? 'lst:dateTill'
  hash[:date_till_attributes] = date_till_attributes if has? 'lst:dateTill'
  hash[:price_type] = price_type if has? 'lst:priceType'
  hash[:price_type_attributes] = price_type_attributes if has? 'lst:priceType'
  hash[:margin] = margin if has? 'lst:margin'
  hash[:margin_attributes] = margin_attributes if has? 'lst:margin'
  hash[:rebate] = rebate if has? 'lst:rebate'
  hash[:rebate_attributes] = rebate_attributes if has? 'lst:rebate'
  hash[:discount_percentage] = discount_percentage if has? 'lst:discountPercentage'
  hash[:discount_percentage_attributes] = discount_percentage_attributes if has? 'lst:discountPercentage'
  hash[:calculation] = calculation if has? 'lst:calculation'
  hash[:calculation_attributes] = calculation_attributes if has? 'lst:calculation'
  hash[:rounding] = rounding if has? 'lst:rounding'
  hash[:rounding_attributes] = rounding_attributes if has? 'lst:rounding'
  hash[:currency] = currency.to_h if has? 'lst:currency'
  hash[:rate] = rate if has? 'lst:rate'
  hash[:rate_attributes] = rate_attributes if has? 'lst:rate'

  hash
end