class Pohoda::Parsers::Vch::VoucherItemType
Public Instance Methods
accounting()
click to toggle source
# File lib/pohoda/parsers/vch/voucher_item_type.rb, line 111 def accounting submodel_at(Typ::RefType, 'vch:accounting') end
activity()
click to toggle source
# File lib/pohoda/parsers/vch/voucher_item_type.rb, line 143 def activity submodel_at(Typ::RefType, 'vch:activity') end
centre()
click to toggle source
# File lib/pohoda/parsers/vch/voucher_item_type.rb, line 139 def centre submodel_at(Typ::RefType, 'vch:centre') end
classification_kvdph()
click to toggle source
# File lib/pohoda/parsers/vch/voucher_item_type.rb, line 119 def classification_kvdph submodel_at(Typ::RefType, 'vch:classificationKVDPH') end
classification_vat()
click to toggle source
# File lib/pohoda/parsers/vch/voucher_item_type.rb, line 115 def classification_vat submodel_at(Typ::ClassificationVATType, 'vch:classificationVAT') end
code()
click to toggle source
# File lib/pohoda/parsers/vch/voucher_item_type.rb, line 91 def code at 'vch:code' end
code_attributes()
click to toggle source
# File lib/pohoda/parsers/vch/voucher_item_type.rb, line 95 def code_attributes attributes_at 'vch:code' end
code_pdp()
click to toggle source
# File lib/pohoda/parsers/vch/voucher_item_type.rb, line 131 def code_pdp at 'vch:CodePDP' end
code_pdp_attributes()
click to toggle source
# File lib/pohoda/parsers/vch/voucher_item_type.rb, line 135 def code_pdp_attributes attributes_at 'vch:CodePDP' end
coefficient()
click to toggle source
# File lib/pohoda/parsers/vch/voucher_item_type.rb, line 31 def coefficient at 'vch:coefficient' end
coefficient_attributes()
click to toggle source
# File lib/pohoda/parsers/vch/voucher_item_type.rb, line 35 def coefficient_attributes attributes_at 'vch:coefficient' end
contract()
click to toggle source
# File lib/pohoda/parsers/vch/voucher_item_type.rb, line 147 def contract submodel_at(Typ::RefType, 'vch:contract') end
discount_percentage()
click to toggle source
# File lib/pohoda/parsers/vch/voucher_item_type.rb, line 63 def discount_percentage at 'vch:discountPercentage' end
discount_percentage_attributes()
click to toggle source
# File lib/pohoda/parsers/vch/voucher_item_type.rb, line 67 def discount_percentage_attributes attributes_at 'vch:discountPercentage' end
eet_item()
click to toggle source
# File lib/pohoda/parsers/vch/voucher_item_type.rb, line 151 def eet_item at 'vch:EETItem' end
eet_item_attributes()
click to toggle source
# File lib/pohoda/parsers/vch/voucher_item_type.rb, line 155 def eet_item_attributes attributes_at 'vch:EETItem' end
foreign_currency()
click to toggle source
# File lib/pohoda/parsers/vch/voucher_item_type.rb, line 75 def foreign_currency submodel_at(Typ::TypeCurrencyForeignItem, 'vch:foreignCurrency') end
home_currency()
click to toggle source
# File lib/pohoda/parsers/vch/voucher_item_type.rb, line 71 def home_currency submodel_at(Typ::TypeCurrencyHomeItem, 'vch:homeCurrency') end
note()
click to toggle source
# File lib/pohoda/parsers/vch/voucher_item_type.rb, line 83 def note at 'vch:note' end
note_attributes()
click to toggle source
# File lib/pohoda/parsers/vch/voucher_item_type.rb, line 87 def note_attributes attributes_at 'vch:note' end
parameters()
click to toggle source
# File lib/pohoda/parsers/vch/voucher_item_type.rb, line 159 def parameters array_of_at(Typ::ParameterDocType, ['vch:parameters', 'typ:parameter']) end
pay_vat()
click to toggle source
# File lib/pohoda/parsers/vch/voucher_item_type.rb, line 39 def pay_vat at 'vch:payVAT' end
pay_vat_attributes()
click to toggle source
# File lib/pohoda/parsers/vch/voucher_item_type.rb, line 43 def pay_vat_attributes attributes_at 'vch:payVAT' end
pdp()
click to toggle source
# File lib/pohoda/parsers/vch/voucher_item_type.rb, line 123 def pdp at 'vch:PDP' end
pdp_attributes()
click to toggle source
# File lib/pohoda/parsers/vch/voucher_item_type.rb, line 127 def pdp_attributes attributes_at 'vch:PDP' end
percent_vat()
click to toggle source
# File lib/pohoda/parsers/vch/voucher_item_type.rb, line 55 def percent_vat at 'vch:percentVAT' end
percent_vat_attributes()
click to toggle source
# File lib/pohoda/parsers/vch/voucher_item_type.rb, line 59 def percent_vat_attributes attributes_at 'vch:percentVAT' end
quantity()
click to toggle source
# File lib/pohoda/parsers/vch/voucher_item_type.rb, line 15 def quantity at 'vch:quantity' end
quantity_attributes()
click to toggle source
# File lib/pohoda/parsers/vch/voucher_item_type.rb, line 19 def quantity_attributes attributes_at 'vch:quantity' end
rate_vat()
click to toggle source
# File lib/pohoda/parsers/vch/voucher_item_type.rb, line 47 def rate_vat at 'vch:rateVAT' end
rate_vat_attributes()
click to toggle source
# File lib/pohoda/parsers/vch/voucher_item_type.rb, line 51 def rate_vat_attributes attributes_at 'vch:rateVAT' end
stock_item()
click to toggle source
# File lib/pohoda/parsers/vch/voucher_item_type.rb, line 107 def stock_item submodel_at(Typ::StockItemType, 'vch:stockItem') end
sym_par()
click to toggle source
# File lib/pohoda/parsers/vch/voucher_item_type.rb, line 99 def sym_par at 'vch:symPar' end
sym_par_attributes()
click to toggle source
# File lib/pohoda/parsers/vch/voucher_item_type.rb, line 103 def sym_par_attributes attributes_at 'vch:symPar' end
text()
click to toggle source
# File lib/pohoda/parsers/vch/voucher_item_type.rb, line 7 def text at 'vch:text' end
text_attributes()
click to toggle source
# File lib/pohoda/parsers/vch/voucher_item_type.rb, line 11 def text_attributes attributes_at 'vch:text' end
to_h()
click to toggle source
# File lib/pohoda/parsers/vch/voucher_item_type.rb, line 163 def to_h hash = {} hash[:attributes] = attributes hash[:text] = text if has? 'vch:text' hash[:text_attributes] = text_attributes if has? 'vch:text' hash[:quantity] = quantity if has? 'vch:quantity' hash[:quantity_attributes] = quantity_attributes if has? 'vch:quantity' hash[:unit] = unit if has? 'vch:unit' hash[:unit_attributes] = unit_attributes if has? 'vch:unit' hash[:coefficient] = coefficient if has? 'vch:coefficient' hash[:coefficient_attributes] = coefficient_attributes if has? 'vch:coefficient' hash[:pay_vat] = pay_vat if has? 'vch:payVAT' hash[:pay_vat_attributes] = pay_vat_attributes if has? 'vch:payVAT' hash[:rate_vat] = rate_vat if has? 'vch:rateVAT' hash[:rate_vat_attributes] = rate_vat_attributes if has? 'vch:rateVAT' hash[:percent_vat] = percent_vat if has? 'vch:percentVAT' hash[:percent_vat_attributes] = percent_vat_attributes if has? 'vch:percentVAT' hash[:discount_percentage] = discount_percentage if has? 'vch:discountPercentage' hash[:discount_percentage_attributes] = discount_percentage_attributes if has? 'vch:discountPercentage' hash[:home_currency] = home_currency.to_h if has? 'vch:homeCurrency' hash[:foreign_currency] = foreign_currency.to_h if has? 'vch:foreignCurrency' hash[:type_service_moss] = type_service_moss.to_h if has? 'vch:typeServiceMOSS' hash[:note] = note if has? 'vch:note' hash[:note_attributes] = note_attributes if has? 'vch:note' hash[:code] = code if has? 'vch:code' hash[:code_attributes] = code_attributes if has? 'vch:code' hash[:sym_par] = sym_par if has? 'vch:symPar' hash[:sym_par_attributes] = sym_par_attributes if has? 'vch:symPar' hash[:stock_item] = stock_item.to_h if has? 'vch:stockItem' hash[:accounting] = accounting.to_h if has? 'vch:accounting' hash[:classification_vat] = classification_vat.to_h if has? 'vch:classificationVAT' hash[:classification_kvdph] = classification_kvdph.to_h if has? 'vch:classificationKVDPH' hash[:pdp] = pdp if has? 'vch:PDP' hash[:pdp_attributes] = pdp_attributes if has? 'vch:PDP' hash[:code_pdp] = code_pdp if has? 'vch:CodePDP' hash[:code_pdp_attributes] = code_pdp_attributes if has? 'vch:CodePDP' hash[:centre] = centre.to_h if has? 'vch:centre' hash[:activity] = activity.to_h if has? 'vch:activity' hash[:contract] = contract.to_h if has? 'vch:contract' hash[:eet_item] = eet_item if has? 'vch:EETItem' hash[:eet_item_attributes] = eet_item_attributes if has? 'vch:EETItem' hash[:parameters] = parameters.map(&:to_h) if has? 'vch:parameters' hash end
type_service_moss()
click to toggle source
# File lib/pohoda/parsers/vch/voucher_item_type.rb, line 79 def type_service_moss submodel_at(Typ::MOSStype, 'vch:typeServiceMOSS') end
unit()
click to toggle source
# File lib/pohoda/parsers/vch/voucher_item_type.rb, line 23 def unit at 'vch:unit' end
unit_attributes()
click to toggle source
# File lib/pohoda/parsers/vch/voucher_item_type.rb, line 27 def unit_attributes attributes_at 'vch:unit' end