class Pohoda::Parsers::Bnk::BankHeaderType

Public Instance Methods

account() click to toggle source
# File lib/pohoda/parsers/bnk/bank_header_type.rb, line 23
def account
  submodel_at(Typ::RefType, 'bnk:account')
end
accounting() click to toggle source
# File lib/pohoda/parsers/bnk/bank_header_type.rb, line 63
def accounting
  submodel_at(Typ::AccountingType, 'bnk:accounting')
end
activity() click to toggle source
# File lib/pohoda/parsers/bnk/bank_header_type.rb, line 123
def activity
  submodel_at(Typ::RefType, 'bnk:activity')
end
bank_type() click to toggle source
# File lib/pohoda/parsers/bnk/bank_header_type.rb, line 15
def bank_type
  at 'bnk:bankType'
end
bank_type_attributes() click to toggle source
# File lib/pohoda/parsers/bnk/bank_header_type.rb, line 19
def bank_type_attributes
  attributes_at 'bnk:bankType'
end
centre() click to toggle source
# File lib/pohoda/parsers/bnk/bank_header_type.rb, line 119
def centre
  submodel_at(Typ::RefType, 'bnk:centre')
end
classification_kvdph() click to toggle source
# File lib/pohoda/parsers/bnk/bank_header_type.rb, line 71
def classification_kvdph
  submodel_at(Typ::RefType, 'bnk:classificationKVDPH')
end
classification_vat() click to toggle source
# File lib/pohoda/parsers/bnk/bank_header_type.rb, line 67
def classification_vat
  submodel_at(Typ::ClassificationVATType, 'bnk:classificationVAT')
end
contract() click to toggle source
# File lib/pohoda/parsers/bnk/bank_header_type.rb, line 127
def contract
  submodel_at(Typ::RefType, 'bnk:contract')
end
date_payment() click to toggle source
# File lib/pohoda/parsers/bnk/bank_header_type.rb, line 55
def date_payment
  at 'bnk:datePayment'
end
date_payment_attributes() click to toggle source
# File lib/pohoda/parsers/bnk/bank_header_type.rb, line 59
def date_payment_attributes
  attributes_at 'bnk:datePayment'
end
date_statement() click to toggle source
# File lib/pohoda/parsers/bnk/bank_header_type.rb, line 47
def date_statement
  at 'bnk:dateStatement'
end
date_statement_attributes() click to toggle source
# File lib/pohoda/parsers/bnk/bank_header_type.rb, line 51
def date_statement_attributes
  attributes_at 'bnk:dateStatement'
end
hist_rate() click to toggle source
# File lib/pohoda/parsers/bnk/bank_header_type.rb, line 147
def hist_rate
  at 'bnk:histRate'
end
hist_rate_attributes() click to toggle source
# File lib/pohoda/parsers/bnk/bank_header_type.rb, line 151
def hist_rate_attributes
  attributes_at 'bnk:histRate'
end
id() click to toggle source
# File lib/pohoda/parsers/bnk/bank_header_type.rb, line 7
def id
  at 'bnk:id'
end
id_attributes() click to toggle source
# File lib/pohoda/parsers/bnk/bank_header_type.rb, line 11
def id_attributes
  attributes_at 'bnk:id'
end
int_note() click to toggle source
# File lib/pohoda/parsers/bnk/bank_header_type.rb, line 139
def int_note
  at 'bnk:intNote'
end
int_note_attributes() click to toggle source
# File lib/pohoda/parsers/bnk/bank_header_type.rb, line 143
def int_note_attributes
  attributes_at 'bnk:intNote'
end
labels() click to toggle source
# File lib/pohoda/parsers/bnk/bank_header_type.rb, line 155
def labels
  array_of_at(Typ::LabelType, ['bnk:labels', 'typ:label'])
end
my_identity() click to toggle source
# File lib/pohoda/parsers/bnk/bank_header_type.rb, line 87
def my_identity
  submodel_at(Typ::MyAddress, 'bnk:myIdentity')
end
note() click to toggle source
# File lib/pohoda/parsers/bnk/bank_header_type.rb, line 131
def note
  at 'bnk:note'
end
note_attributes() click to toggle source
# File lib/pohoda/parsers/bnk/bank_header_type.rb, line 135
def note_attributes
  attributes_at 'bnk:note'
end
number() click to toggle source
# File lib/pohoda/parsers/bnk/bank_header_type.rb, line 27
def number
  at 'bnk:number'
end
number_attributes() click to toggle source
# File lib/pohoda/parsers/bnk/bank_header_type.rb, line 31
def number_attributes
  attributes_at 'bnk:number'
end
parameters() click to toggle source
# File lib/pohoda/parsers/bnk/bank_header_type.rb, line 159
def parameters
  array_of_at(Typ::ParameterDocType, ['bnk:parameters', 'typ:parameter'])
end
partner_identity() click to toggle source
# File lib/pohoda/parsers/bnk/bank_header_type.rb, line 83
def partner_identity
  submodel_at(Typ::Address, 'bnk:partnerIdentity')
end
payment_account() click to toggle source
# File lib/pohoda/parsers/bnk/bank_header_type.rb, line 91
def payment_account
  submodel_at(Bnk::PaymentAccount2, 'bnk:paymentAccount')
end
statement_number() click to toggle source
# File lib/pohoda/parsers/bnk/bank_header_type.rb, line 35
def statement_number
  submodel_at(Bnk::StatementNumberType, 'bnk:statementNumber')
end
sym_const() click to toggle source
# File lib/pohoda/parsers/bnk/bank_header_type.rb, line 95
def sym_const
  at 'bnk:symConst'
end
sym_const_attributes() click to toggle source
# File lib/pohoda/parsers/bnk/bank_header_type.rb, line 99
def sym_const_attributes
  attributes_at 'bnk:symConst'
end
sym_par() click to toggle source
# File lib/pohoda/parsers/bnk/bank_header_type.rb, line 111
def sym_par
  at 'bnk:symPar'
end
sym_par_attributes() click to toggle source
# File lib/pohoda/parsers/bnk/bank_header_type.rb, line 115
def sym_par_attributes
  attributes_at 'bnk:symPar'
end
sym_spec() click to toggle source
# File lib/pohoda/parsers/bnk/bank_header_type.rb, line 103
def sym_spec
  at 'bnk:symSpec'
end
sym_spec_attributes() click to toggle source
# File lib/pohoda/parsers/bnk/bank_header_type.rb, line 107
def sym_spec_attributes
  attributes_at 'bnk:symSpec'
end
sym_var() click to toggle source
# File lib/pohoda/parsers/bnk/bank_header_type.rb, line 39
def sym_var
  at 'bnk:symVar'
end
sym_var_attributes() click to toggle source
# File lib/pohoda/parsers/bnk/bank_header_type.rb, line 43
def sym_var_attributes
  attributes_at 'bnk:symVar'
end
text() click to toggle source
# File lib/pohoda/parsers/bnk/bank_header_type.rb, line 75
def text
  at 'bnk:text'
end
text_attributes() click to toggle source
# File lib/pohoda/parsers/bnk/bank_header_type.rb, line 79
def text_attributes
  attributes_at 'bnk:text'
end
to_h() click to toggle source
# File lib/pohoda/parsers/bnk/bank_header_type.rb, line 163
def to_h
  hash = {}
  hash[:attributes] = attributes

  hash[:id] = id if has? 'bnk:id'
  hash[:id_attributes] = id_attributes if has? 'bnk:id'
  hash[:bank_type] = bank_type if has? 'bnk:bankType'
  hash[:bank_type_attributes] = bank_type_attributes if has? 'bnk:bankType'
  hash[:account] = account.to_h if has? 'bnk:account'
  hash[:number] = number if has? 'bnk:number'
  hash[:number_attributes] = number_attributes if has? 'bnk:number'
  hash[:statement_number] = statement_number.to_h if has? 'bnk:statementNumber'
  hash[:sym_var] = sym_var if has? 'bnk:symVar'
  hash[:sym_var_attributes] = sym_var_attributes if has? 'bnk:symVar'
  hash[:date_statement] = date_statement if has? 'bnk:dateStatement'
  hash[:date_statement_attributes] = date_statement_attributes if has? 'bnk:dateStatement'
  hash[:date_payment] = date_payment if has? 'bnk:datePayment'
  hash[:date_payment_attributes] = date_payment_attributes if has? 'bnk:datePayment'
  hash[:accounting] = accounting.to_h if has? 'bnk:accounting'
  hash[:classification_vat] = classification_vat.to_h if has? 'bnk:classificationVAT'
  hash[:classification_kvdph] = classification_kvdph.to_h if has? 'bnk:classificationKVDPH'
  hash[:text] = text if has? 'bnk:text'
  hash[:text_attributes] = text_attributes if has? 'bnk:text'
  hash[:partner_identity] = partner_identity.to_h if has? 'bnk:partnerIdentity'
  hash[:my_identity] = my_identity.to_h if has? 'bnk:myIdentity'
  hash[:payment_account] = payment_account.to_h if has? 'bnk:paymentAccount'
  hash[:sym_const] = sym_const if has? 'bnk:symConst'
  hash[:sym_const_attributes] = sym_const_attributes if has? 'bnk:symConst'
  hash[:sym_spec] = sym_spec if has? 'bnk:symSpec'
  hash[:sym_spec_attributes] = sym_spec_attributes if has? 'bnk:symSpec'
  hash[:sym_par] = sym_par if has? 'bnk:symPar'
  hash[:sym_par_attributes] = sym_par_attributes if has? 'bnk:symPar'
  hash[:centre] = centre.to_h if has? 'bnk:centre'
  hash[:activity] = activity.to_h if has? 'bnk:activity'
  hash[:contract] = contract.to_h if has? 'bnk:contract'
  hash[:note] = note if has? 'bnk:note'
  hash[:note_attributes] = note_attributes if has? 'bnk:note'
  hash[:int_note] = int_note if has? 'bnk:intNote'
  hash[:int_note_attributes] = int_note_attributes if has? 'bnk:intNote'
  hash[:hist_rate] = hist_rate if has? 'bnk:histRate'
  hash[:hist_rate_attributes] = hist_rate_attributes if has? 'bnk:histRate'
  hash[:labels] = labels.map(&:to_h) if has? 'bnk:labels'
  hash[:parameters] = parameters.map(&:to_h) if has? 'bnk:parameters'

  hash
end