class Pohoda::Parsers::Pay::PaymentHeaderType

Public Instance Methods

cash() click to toggle source
# File lib/pohoda/parsers/pay/payment_header_type.rb, line 63
def cash
  submodel_at(Pay::CashDefaultType, 'pay:cash')
end
eet() click to toggle source
# File lib/pohoda/parsers/pay/payment_header_type.rb, line 83
def eet
  at 'pay:eet'
end
eet_attributes() click to toggle source
# File lib/pohoda/parsers/pay/payment_header_type.rb, line 87
def eet_attributes
  attributes_at 'pay:eet'
end
ext_id() click to toggle source
# File lib/pohoda/parsers/pay/payment_header_type.rb, line 15
def ext_id
  submodel_at(Typ::ExtIdType, 'pay:extId')
end
foreign_currency() click to toggle source
# File lib/pohoda/parsers/pay/payment_header_type.rb, line 51
def foreign_currency
  at 'pay:foreignCurrency'
end
foreign_currency_attributes() click to toggle source
# File lib/pohoda/parsers/pay/payment_header_type.rb, line 55
def foreign_currency_attributes
  attributes_at 'pay:foreignCurrency'
end
id() click to toggle source
# File lib/pohoda/parsers/pay/payment_header_type.rb, line 7
def id
  at 'pay:id'
end
id_attributes() click to toggle source
# File lib/pohoda/parsers/pay/payment_header_type.rb, line 11
def id_attributes
  attributes_at 'pay:id'
end
name() click to toggle source
# File lib/pohoda/parsers/pay/payment_header_type.rb, line 19
def name
  at 'pay:name'
end
name_attributes() click to toggle source
# File lib/pohoda/parsers/pay/payment_header_type.rb, line 23
def name_attributes
  attributes_at 'pay:name'
end
note() click to toggle source
# File lib/pohoda/parsers/pay/payment_header_type.rb, line 91
def note
  at 'pay:note'
end
note_attributes() click to toggle source
# File lib/pohoda/parsers/pay/payment_header_type.rb, line 95
def note_attributes
  attributes_at 'pay:note'
end
payment_type() click to toggle source
# File lib/pohoda/parsers/pay/payment_header_type.rb, line 35
def payment_type
  at 'pay:paymentType'
end
payment_type_attributes() click to toggle source
# File lib/pohoda/parsers/pay/payment_header_type.rb, line 39
def payment_type_attributes
  attributes_at 'pay:paymentType'
end
payment_type_fm() click to toggle source
# File lib/pohoda/parsers/pay/payment_header_type.rb, line 43
def payment_type_fm
  at 'pay:paymentTypeFM'
end
payment_type_fm_attributes() click to toggle source
# File lib/pohoda/parsers/pay/payment_header_type.rb, line 47
def payment_type_fm_attributes
  attributes_at 'pay:paymentTypeFM'
end
text() click to toggle source
# File lib/pohoda/parsers/pay/payment_header_type.rb, line 27
def text
  at 'pay:text'
end
text_attributes() click to toggle source
# File lib/pohoda/parsers/pay/payment_header_type.rb, line 31
def text_attributes
  attributes_at 'pay:text'
end
ticket() click to toggle source
# File lib/pohoda/parsers/pay/payment_header_type.rb, line 59
def ticket
  submodel_at(Pay::TicketType, 'pay:ticket')
end
to_h() click to toggle source
# File lib/pohoda/parsers/pay/payment_header_type.rb, line 99
def to_h
  hash = {}
  hash[:attributes] = attributes

  hash[:id] = id if has? 'pay:id'
  hash[:id_attributes] = id_attributes if has? 'pay:id'
  hash[:ext_id] = ext_id.to_h if has? 'pay:extId'
  hash[:name] = name if has? 'pay:name'
  hash[:name_attributes] = name_attributes if has? 'pay:name'
  hash[:text] = text if has? 'pay:text'
  hash[:text_attributes] = text_attributes if has? 'pay:text'
  hash[:payment_type] = payment_type if has? 'pay:paymentType'
  hash[:payment_type_attributes] = payment_type_attributes if has? 'pay:paymentType'
  hash[:payment_type_fm] = payment_type_fm if has? 'pay:paymentTypeFM'
  hash[:payment_type_fm_attributes] = payment_type_fm_attributes if has? 'pay:paymentTypeFM'
  hash[:foreign_currency] = foreign_currency if has? 'pay:foreignCurrency'
  hash[:foreign_currency_attributes] = foreign_currency_attributes if has? 'pay:foreignCurrency'
  hash[:ticket] = ticket.to_h if has? 'pay:ticket'
  hash[:cash] = cash.to_h if has? 'pay:cash'
  hash[:use_in_sales] = use_in_sales if has? 'pay:useInSales'
  hash[:use_in_sales_attributes] = use_in_sales_attributes if has? 'pay:useInSales'
  hash[:use_in_other_agendas] = use_in_other_agendas if has? 'pay:useInOtherAgendas'
  hash[:use_in_other_agendas_attributes] = use_in_other_agendas_attributes if has? 'pay:useInOtherAgendas'
  hash[:eet] = eet if has? 'pay:eet'
  hash[:eet_attributes] = eet_attributes if has? 'pay:eet'
  hash[:note] = note if has? 'pay:note'
  hash[:note_attributes] = note_attributes if has? 'pay:note'

  hash
end
use_in_other_agendas() click to toggle source
# File lib/pohoda/parsers/pay/payment_header_type.rb, line 75
def use_in_other_agendas
  at 'pay:useInOtherAgendas'
end
use_in_other_agendas_attributes() click to toggle source
# File lib/pohoda/parsers/pay/payment_header_type.rb, line 79
def use_in_other_agendas_attributes
  attributes_at 'pay:useInOtherAgendas'
end
use_in_sales() click to toggle source
# File lib/pohoda/parsers/pay/payment_header_type.rb, line 67
def use_in_sales
  at 'pay:useInSales'
end
use_in_sales_attributes() click to toggle source
# File lib/pohoda/parsers/pay/payment_header_type.rb, line 71
def use_in_sales_attributes
  attributes_at 'pay:useInSales'
end