class Pohoda::Parsers::Vch::VoucherSummaryType
Public Instance Methods
calculate_vat()
click to toggle source
# File lib/pohoda/parsers/vch/voucher_summary_type.rb, line 23 def calculate_vat at 'vch:calculateVAT' end
calculate_vat_attributes()
click to toggle source
# File lib/pohoda/parsers/vch/voucher_summary_type.rb, line 27 def calculate_vat_attributes attributes_at 'vch:calculateVAT' end
foreign_currency()
click to toggle source
# File lib/pohoda/parsers/vch/voucher_summary_type.rb, line 43 def foreign_currency submodel_at(Typ::TypeCurrencyForeign, 'vch:foreignCurrency') end
home_currency()
click to toggle source
# File lib/pohoda/parsers/vch/voucher_summary_type.rb, line 39 def home_currency submodel_at(Typ::TypeCurrencyHome, 'vch:homeCurrency') end
rounding_document()
click to toggle source
# File lib/pohoda/parsers/vch/voucher_summary_type.rb, line 7 def rounding_document at 'vch:roundingDocument' end
rounding_document_attributes()
click to toggle source
# File lib/pohoda/parsers/vch/voucher_summary_type.rb, line 11 def rounding_document_attributes attributes_at 'vch:roundingDocument' end
rounding_vat()
click to toggle source
# File lib/pohoda/parsers/vch/voucher_summary_type.rb, line 15 def rounding_vat at 'vch:roundingVAT' end
rounding_vat_attributes()
click to toggle source
# File lib/pohoda/parsers/vch/voucher_summary_type.rb, line 19 def rounding_vat_attributes attributes_at 'vch:roundingVAT' end
to_h()
click to toggle source
# File lib/pohoda/parsers/vch/voucher_summary_type.rb, line 47 def to_h hash = {} hash[:attributes] = attributes hash[:rounding_document] = rounding_document if has? 'vch:roundingDocument' hash[:rounding_document_attributes] = rounding_document_attributes if has? 'vch:roundingDocument' hash[:rounding_vat] = rounding_vat if has? 'vch:roundingVAT' hash[:rounding_vat_attributes] = rounding_vat_attributes if has? 'vch:roundingVAT' hash[:calculate_vat] = calculate_vat if has? 'vch:calculateVAT' hash[:calculate_vat_attributes] = calculate_vat_attributes if has? 'vch:calculateVAT' hash[:type_calculate_vat_inclusive_price] = type_calculate_vat_inclusive_price if has? 'vch:typeCalculateVATInclusivePrice' hash[:type_calculate_vat_inclusive_price_attributes] = type_calculate_vat_inclusive_price_attributes if has? 'vch:typeCalculateVATInclusivePrice' hash[:home_currency] = home_currency.to_h if has? 'vch:homeCurrency' hash[:foreign_currency] = foreign_currency.to_h if has? 'vch:foreignCurrency' hash end
type_calculate_vat_inclusive_price()
click to toggle source
# File lib/pohoda/parsers/vch/voucher_summary_type.rb, line 31 def type_calculate_vat_inclusive_price at 'vch:typeCalculateVATInclusivePrice' end
type_calculate_vat_inclusive_price_attributes()
click to toggle source
# File lib/pohoda/parsers/vch/voucher_summary_type.rb, line 35 def type_calculate_vat_inclusive_price_attributes attributes_at 'vch:typeCalculateVATInclusivePrice' end