class Pohoda::Parsers::Adb::AddressbookHeaderType

Public Instance Methods

account_for_invoicing() click to toggle source
# File lib/pohoda/parsers/adb/addressbook_header_type.rb, line 299
def account_for_invoicing
  submodel_at(Typ::AccountType, 'adb:accountForInvoicing')
end
accounting_issued_invoice() click to toggle source
# File lib/pohoda/parsers/adb/addressbook_header_type.rb, line 279
def accounting_issued_invoice
  submodel_at(Typ::AccountingType, 'adb:accountingIssuedInvoice')
end
accounting_received_invoice() click to toggle source
# File lib/pohoda/parsers/adb/addressbook_header_type.rb, line 275
def accounting_received_invoice
  submodel_at(Typ::AccountingType, 'adb:accountingReceivedInvoice')
end
activity() click to toggle source
# File lib/pohoda/parsers/adb/addressbook_header_type.rb, line 323
def activity
  submodel_at(Typ::RefType, 'adb:activity')
end
ad_group() click to toggle source
# File lib/pohoda/parsers/adb/addressbook_header_type.rb, line 91
def ad_group
  at 'adb:adGroup'
end
ad_group_attributes() click to toggle source
# File lib/pohoda/parsers/adb/addressbook_header_type.rb, line 95
def ad_group_attributes
  attributes_at 'adb:adGroup'
end
ad_key() click to toggle source
# File lib/pohoda/parsers/adb/addressbook_header_type.rb, line 99
def ad_key
  at 'adb:adKey'
end
ad_key_attributes() click to toggle source
# File lib/pohoda/parsers/adb/addressbook_header_type.rb, line 103
def ad_key_attributes
  attributes_at 'adb:adKey'
end
agreement() click to toggle source
# File lib/pohoda/parsers/adb/addressbook_header_type.rb, line 135
def agreement
  at 'adb:agreement'
end
agreement_attributes() click to toggle source
# File lib/pohoda/parsers/adb/addressbook_header_type.rb, line 139
def agreement_attributes
  attributes_at 'adb:agreement'
end
centre() click to toggle source
# File lib/pohoda/parsers/adb/addressbook_header_type.rb, line 319
def centre
  submodel_at(Typ::RefType, 'adb:centre')
end
classification_kvdph_issued_invoice() click to toggle source
# File lib/pohoda/parsers/adb/addressbook_header_type.rb, line 295
def classification_kvdph_issued_invoice
  submodel_at(Typ::RefType, 'adb:classificationKVDPHIssuedInvoice')
end
classification_kvdph_received_invoice() click to toggle source
# File lib/pohoda/parsers/adb/addressbook_header_type.rb, line 291
def classification_kvdph_received_invoice
  submodel_at(Typ::RefType, 'adb:classificationKVDPHReceivedInvoice')
end
classification_vat_issued_invoice() click to toggle source
# File lib/pohoda/parsers/adb/addressbook_header_type.rb, line 287
def classification_vat_issued_invoice
  submodel_at(Typ::ClassificationVATType, 'adb:classificationVATIssuedInvoice')
end
classification_vat_received_invoice() click to toggle source
# File lib/pohoda/parsers/adb/addressbook_header_type.rb, line 283
def classification_vat_received_invoice
  submodel_at(Typ::ClassificationVATType, 'adb:classificationVATReceivedInvoice')
end
contract() click to toggle source
# File lib/pohoda/parsers/adb/addressbook_header_type.rb, line 327
def contract
  submodel_at(Typ::RefType, 'adb:contract')
end
credit() click to toggle source
# File lib/pohoda/parsers/adb/addressbook_header_type.rb, line 107
def credit
  at 'adb:credit'
end
credit_attributes() click to toggle source
# File lib/pohoda/parsers/adb/addressbook_header_type.rb, line 111
def credit_attributes
  attributes_at 'adb:credit'
end
date_of_birth() click to toggle source
# File lib/pohoda/parsers/adb/addressbook_header_type.rb, line 195
def date_of_birth
  at 'adb:dateOfBirth'
end
date_of_birth_attributes() click to toggle source
# File lib/pohoda/parsers/adb/addressbook_header_type.rb, line 199
def date_of_birth_attributes
  attributes_at 'adb:dateOfBirth'
end
email() click to toggle source
# File lib/pohoda/parsers/adb/addressbook_header_type.rb, line 51
def email
  at 'adb:email'
end
email_attributes() click to toggle source
# File lib/pohoda/parsers/adb/addressbook_header_type.rb, line 55
def email_attributes
  attributes_at 'adb:email'
end
fax() click to toggle source
# File lib/pohoda/parsers/adb/addressbook_header_type.rb, line 43
def fax
  at 'adb:fax'
end
fax_attributes() click to toggle source
# File lib/pohoda/parsers/adb/addressbook_header_type.rb, line 47
def fax_attributes
  attributes_at 'adb:fax'
end
foreign_currency() click to toggle source
# File lib/pohoda/parsers/adb/addressbook_header_type.rb, line 315
def foreign_currency
  submodel_at(Typ::RefType, 'adb:foreignCurrency')
end
function() click to toggle source
# File lib/pohoda/parsers/adb/addressbook_header_type.rb, line 163
def function
  at 'adb:function'
end
function_attributes() click to toggle source
# File lib/pohoda/parsers/adb/addressbook_header_type.rb, line 167
def function_attributes
  attributes_at 'adb:function'
end
gps() click to toggle source
# File lib/pohoda/parsers/adb/addressbook_header_type.rb, line 83
def gps
  at 'adb:GPS'
end
gps_attributes() click to toggle source
# File lib/pohoda/parsers/adb/addressbook_header_type.rb, line 87
def gps_attributes
  attributes_at 'adb:GPS'
end
icq() click to toggle source
# File lib/pohoda/parsers/adb/addressbook_header_type.rb, line 67
def icq
  at 'adb:ICQ'
end
icq_attributes() click to toggle source
# File lib/pohoda/parsers/adb/addressbook_header_type.rb, line 71
def icq_attributes
  attributes_at 'adb:ICQ'
end
id() click to toggle source
# File lib/pohoda/parsers/adb/addressbook_header_type.rb, line 7
def id
  at 'adb:id'
end
id_attributes() click to toggle source
# File lib/pohoda/parsers/adb/addressbook_header_type.rb, line 11
def id_attributes
  attributes_at 'adb:id'
end
identity() click to toggle source
# File lib/pohoda/parsers/adb/addressbook_header_type.rb, line 15
def identity
  submodel_at(Typ::Address, 'adb:identity')
end
int_note() click to toggle source
# File lib/pohoda/parsers/adb/addressbook_header_type.rb, line 267
def int_note
  at 'adb:intNote'
end
int_note_attributes() click to toggle source
# File lib/pohoda/parsers/adb/addressbook_header_type.rb, line 271
def int_note_attributes
  attributes_at 'adb:intNote'
end
labels() click to toggle source
# File lib/pohoda/parsers/adb/addressbook_header_type.rb, line 363
def labels
  array_of_at(Typ::LabelType, ['adb:labels', 'typ:label'])
end
mark_record() click to toggle source
# File lib/pohoda/parsers/adb/addressbook_header_type.rb, line 355
def mark_record
  at 'adb:markRecord'
end
mark_record_attributes() click to toggle source
# File lib/pohoda/parsers/adb/addressbook_header_type.rb, line 359
def mark_record_attributes
  attributes_at 'adb:markRecord'
end
maturity() click to toggle source
# File lib/pohoda/parsers/adb/addressbook_header_type.rb, line 123
def maturity
  at 'adb:maturity'
end
maturity_attributes() click to toggle source
# File lib/pohoda/parsers/adb/addressbook_header_type.rb, line 127
def maturity_attributes
  attributes_at 'adb:maturity'
end
message() click to toggle source
# File lib/pohoda/parsers/adb/addressbook_header_type.rb, line 251
def message
  at 'adb:message'
end
message_attributes() click to toggle source
# File lib/pohoda/parsers/adb/addressbook_header_type.rb, line 255
def message_attributes
  attributes_at 'adb:message'
end
mobil() click to toggle source
# File lib/pohoda/parsers/adb/addressbook_header_type.rb, line 35
def mobil
  at 'adb:mobil'
end
mobil_attributes() click to toggle source
# File lib/pohoda/parsers/adb/addressbook_header_type.rb, line 39
def mobil_attributes
  attributes_at 'adb:mobil'
end
note() click to toggle source
# File lib/pohoda/parsers/adb/addressbook_header_type.rb, line 259
def note
  at 'adb:note'
end
note_attributes() click to toggle source
# File lib/pohoda/parsers/adb/addressbook_header_type.rb, line 263
def note_attributes
  attributes_at 'adb:note'
end
number() click to toggle source
# File lib/pohoda/parsers/adb/addressbook_header_type.rb, line 143
def number
  submodel_at(Typ::NumberADType, 'adb:number')
end
ost1() click to toggle source
# File lib/pohoda/parsers/adb/addressbook_header_type.rb, line 147
def ost1
  at 'adb:ost1'
end
ost1_attributes() click to toggle source
# File lib/pohoda/parsers/adb/addressbook_header_type.rb, line 151
def ost1_attributes
  attributes_at 'adb:ost1'
end
ost2() click to toggle source
# File lib/pohoda/parsers/adb/addressbook_header_type.rb, line 155
def ost2
  at 'adb:ost2'
end
ost2_attributes() click to toggle source
# File lib/pohoda/parsers/adb/addressbook_header_type.rb, line 159
def ost2_attributes
  attributes_at 'adb:ost2'
end
p1() click to toggle source
# File lib/pohoda/parsers/adb/addressbook_header_type.rb, line 203
def p1
  at 'adb:p1'
end
p1_attributes() click to toggle source
# File lib/pohoda/parsers/adb/addressbook_header_type.rb, line 207
def p1_attributes
  attributes_at 'adb:p1'
end
p2() click to toggle source
# File lib/pohoda/parsers/adb/addressbook_header_type.rb, line 211
def p2
  at 'adb:p2'
end
p2_attributes() click to toggle source
# File lib/pohoda/parsers/adb/addressbook_header_type.rb, line 215
def p2_attributes
  attributes_at 'adb:p2'
end
p3() click to toggle source
# File lib/pohoda/parsers/adb/addressbook_header_type.rb, line 219
def p3
  at 'adb:p3'
end
p3_attributes() click to toggle source
# File lib/pohoda/parsers/adb/addressbook_header_type.rb, line 223
def p3_attributes
  attributes_at 'adb:p3'
end
p4() click to toggle source
# File lib/pohoda/parsers/adb/addressbook_header_type.rb, line 227
def p4
  at 'adb:p4'
end
p4_attributes() click to toggle source
# File lib/pohoda/parsers/adb/addressbook_header_type.rb, line 231
def p4_attributes
  attributes_at 'adb:p4'
end
p5() click to toggle source
# File lib/pohoda/parsers/adb/addressbook_header_type.rb, line 235
def p5
  at 'adb:p5'
end
p5_attributes() click to toggle source
# File lib/pohoda/parsers/adb/addressbook_header_type.rb, line 239
def p5_attributes
  attributes_at 'adb:p5'
end
p6() click to toggle source
# File lib/pohoda/parsers/adb/addressbook_header_type.rb, line 243
def p6
  at 'adb:p6'
end
p6_attributes() click to toggle source
# File lib/pohoda/parsers/adb/addressbook_header_type.rb, line 247
def p6_attributes
  attributes_at 'adb:p6'
end
parameters() click to toggle source
# File lib/pohoda/parsers/adb/addressbook_header_type.rb, line 347
def parameters
  array_of_at(Typ::ParameterDocType, ['adb:parameters', 'typ:parameter'])
end
payment_type() click to toggle source
# File lib/pohoda/parsers/adb/addressbook_header_type.rb, line 131
def payment_type
  submodel_at(Typ::PaymentType, 'adb:paymentType')
end
personal_identification_number() click to toggle source
# File lib/pohoda/parsers/adb/addressbook_header_type.rb, line 171
def personal_identification_number
  at 'adb:personalIdentificationNumber'
end
personal_identification_number_attributes() click to toggle source
# File lib/pohoda/parsers/adb/addressbook_header_type.rb, line 175
def personal_identification_number_attributes
  attributes_at 'adb:personalIdentificationNumber'
end
phone() click to toggle source
# File lib/pohoda/parsers/adb/addressbook_header_type.rb, line 27
def phone
  at 'adb:phone'
end
phone_attributes() click to toggle source
# File lib/pohoda/parsers/adb/addressbook_header_type.rb, line 31
def phone_attributes
  attributes_at 'adb:phone'
end
price_ids() click to toggle source
# File lib/pohoda/parsers/adb/addressbook_header_type.rb, line 115
def price_ids
  at 'adb:priceIDS'
end
price_ids_attributes() click to toggle source
# File lib/pohoda/parsers/adb/addressbook_header_type.rb, line 119
def price_ids_attributes
  attributes_at 'adb:priceIDS'
end
ref_address() click to toggle source
# File lib/pohoda/parsers/adb/addressbook_header_type.rb, line 351
def ref_address
  submodel_at(Typ::RefAddressType, 'adb:refAddress')
end
region() click to toggle source
# File lib/pohoda/parsers/adb/addressbook_header_type.rb, line 19
def region
  at 'adb:region'
end
region_attributes() click to toggle source
# File lib/pohoda/parsers/adb/addressbook_header_type.rb, line 23
def region_attributes
  attributes_at 'adb:region'
end
responsible_person() click to toggle source
# File lib/pohoda/parsers/adb/addressbook_header_type.rb, line 303
def responsible_person
  submodel_at(Typ::ResponsiblePersonType, 'adb:responsiblePerson')
end
salutation() click to toggle source
# File lib/pohoda/parsers/adb/addressbook_header_type.rb, line 179
def salutation
  at 'adb:salutation'
end
salutation_attributes() click to toggle source
# File lib/pohoda/parsers/adb/addressbook_header_type.rb, line 183
def salutation_attributes
  attributes_at 'adb:salutation'
end
sex() click to toggle source
# File lib/pohoda/parsers/adb/addressbook_header_type.rb, line 187
def sex
  at 'adb:sex'
end
sex_attributes() click to toggle source
# File lib/pohoda/parsers/adb/addressbook_header_type.rb, line 191
def sex_attributes
  attributes_at 'adb:sex'
end
skype() click to toggle source
# File lib/pohoda/parsers/adb/addressbook_header_type.rb, line 75
def skype
  at 'adb:Skype'
end
skype_attributes() click to toggle source
# File lib/pohoda/parsers/adb/addressbook_header_type.rb, line 79
def skype_attributes
  attributes_at 'adb:Skype'
end
to_h() click to toggle source
# File lib/pohoda/parsers/adb/addressbook_header_type.rb, line 367
def to_h
  hash = {}
  hash[:attributes] = attributes

  hash[:id] = id if has? 'adb:id'
  hash[:id_attributes] = id_attributes if has? 'adb:id'
  hash[:identity] = identity.to_h if has? 'adb:identity'
  hash[:region] = region if has? 'adb:region'
  hash[:region_attributes] = region_attributes if has? 'adb:region'
  hash[:phone] = phone if has? 'adb:phone'
  hash[:phone_attributes] = phone_attributes if has? 'adb:phone'
  hash[:mobil] = mobil if has? 'adb:mobil'
  hash[:mobil_attributes] = mobil_attributes if has? 'adb:mobil'
  hash[:fax] = fax if has? 'adb:fax'
  hash[:fax_attributes] = fax_attributes if has? 'adb:fax'
  hash[:email] = email if has? 'adb:email'
  hash[:email_attributes] = email_attributes if has? 'adb:email'
  hash[:web] = web if has? 'adb:web'
  hash[:web_attributes] = web_attributes if has? 'adb:web'
  hash[:icq] = icq if has? 'adb:ICQ'
  hash[:icq_attributes] = icq_attributes if has? 'adb:ICQ'
  hash[:skype] = skype if has? 'adb:Skype'
  hash[:skype_attributes] = skype_attributes if has? 'adb:Skype'
  hash[:gps] = gps if has? 'adb:GPS'
  hash[:gps_attributes] = gps_attributes if has? 'adb:GPS'
  hash[:ad_group] = ad_group if has? 'adb:adGroup'
  hash[:ad_group_attributes] = ad_group_attributes if has? 'adb:adGroup'
  hash[:ad_key] = ad_key if has? 'adb:adKey'
  hash[:ad_key_attributes] = ad_key_attributes if has? 'adb:adKey'
  hash[:credit] = credit if has? 'adb:credit'
  hash[:credit_attributes] = credit_attributes if has? 'adb:credit'
  hash[:price_ids] = price_ids if has? 'adb:priceIDS'
  hash[:price_ids_attributes] = price_ids_attributes if has? 'adb:priceIDS'
  hash[:maturity] = maturity if has? 'adb:maturity'
  hash[:maturity_attributes] = maturity_attributes if has? 'adb:maturity'
  hash[:payment_type] = payment_type.to_h if has? 'adb:paymentType'
  hash[:agreement] = agreement if has? 'adb:agreement'
  hash[:agreement_attributes] = agreement_attributes if has? 'adb:agreement'
  hash[:number] = number.to_h if has? 'adb:number'
  hash[:ost1] = ost1 if has? 'adb:ost1'
  hash[:ost1_attributes] = ost1_attributes if has? 'adb:ost1'
  hash[:ost2] = ost2 if has? 'adb:ost2'
  hash[:ost2_attributes] = ost2_attributes if has? 'adb:ost2'
  hash[:function] = function if has? 'adb:function'
  hash[:function_attributes] = function_attributes if has? 'adb:function'
  hash[:personal_identification_number] = personal_identification_number if has? 'adb:personalIdentificationNumber'
  hash[:personal_identification_number_attributes] = personal_identification_number_attributes if has? 'adb:personalIdentificationNumber'
  hash[:salutation] = salutation if has? 'adb:salutation'
  hash[:salutation_attributes] = salutation_attributes if has? 'adb:salutation'
  hash[:sex] = sex if has? 'adb:sex'
  hash[:sex_attributes] = sex_attributes if has? 'adb:sex'
  hash[:date_of_birth] = date_of_birth if has? 'adb:dateOfBirth'
  hash[:date_of_birth_attributes] = date_of_birth_attributes if has? 'adb:dateOfBirth'
  hash[:p1] = p1 if has? 'adb:p1'
  hash[:p1_attributes] = p1_attributes if has? 'adb:p1'
  hash[:p2] = p2 if has? 'adb:p2'
  hash[:p2_attributes] = p2_attributes if has? 'adb:p2'
  hash[:p3] = p3 if has? 'adb:p3'
  hash[:p3_attributes] = p3_attributes if has? 'adb:p3'
  hash[:p4] = p4 if has? 'adb:p4'
  hash[:p4_attributes] = p4_attributes if has? 'adb:p4'
  hash[:p5] = p5 if has? 'adb:p5'
  hash[:p5_attributes] = p5_attributes if has? 'adb:p5'
  hash[:p6] = p6 if has? 'adb:p6'
  hash[:p6_attributes] = p6_attributes if has? 'adb:p6'
  hash[:message] = message if has? 'adb:message'
  hash[:message_attributes] = message_attributes if has? 'adb:message'
  hash[:note] = note if has? 'adb:note'
  hash[:note_attributes] = note_attributes if has? 'adb:note'
  hash[:int_note] = int_note if has? 'adb:intNote'
  hash[:int_note_attributes] = int_note_attributes if has? 'adb:intNote'
  hash[:accounting_received_invoice] = accounting_received_invoice.to_h if has? 'adb:accountingReceivedInvoice'
  hash[:accounting_issued_invoice] = accounting_issued_invoice.to_h if has? 'adb:accountingIssuedInvoice'
  hash[:classification_vat_received_invoice] = classification_vat_received_invoice.to_h if has? 'adb:classificationVATReceivedInvoice'
  hash[:classification_vat_issued_invoice] = classification_vat_issued_invoice.to_h if has? 'adb:classificationVATIssuedInvoice'
  hash[:classification_kvdph_received_invoice] = classification_kvdph_received_invoice.to_h if has? 'adb:classificationKVDPHReceivedInvoice'
  hash[:classification_kvdph_issued_invoice] = classification_kvdph_issued_invoice.to_h if has? 'adb:classificationKVDPHIssuedInvoice'
  hash[:account_for_invoicing] = account_for_invoicing.to_h if has? 'adb:accountForInvoicing'
  hash[:responsible_person] = responsible_person.to_h if has? 'adb:responsiblePerson'
  hash[:tolerance_maturity] = tolerance_maturity if has? 'adb:toleranceMaturity'
  hash[:tolerance_maturity_attributes] = tolerance_maturity_attributes if has? 'adb:toleranceMaturity'
  hash[:foreign_currency] = foreign_currency.to_h if has? 'adb:foreignCurrency'
  hash[:centre] = centre.to_h if has? 'adb:centre'
  hash[:activity] = activity.to_h if has? 'adb:activity'
  hash[:contract] = contract.to_h if has? 'adb:contract'
  hash[:turnover] = turnover if has? 'adb:turnover'
  hash[:turnover_attributes] = turnover_attributes if has? 'adb:turnover'
  hash[:turnover2] = turnover2 if has? 'adb:turnover2'
  hash[:turnover2_attributes] = turnover2_attributes if has? 'adb:turnover2'
  hash[:parameters] = parameters.map(&:to_h) if has? 'adb:parameters'
  hash[:ref_address] = ref_address.to_h if has? 'adb:refAddress'
  hash[:mark_record] = mark_record if has? 'adb:markRecord'
  hash[:mark_record_attributes] = mark_record_attributes if has? 'adb:markRecord'
  hash[:labels] = labels.map(&:to_h) if has? 'adb:labels'

  hash
end
tolerance_maturity() click to toggle source
# File lib/pohoda/parsers/adb/addressbook_header_type.rb, line 307
def tolerance_maturity
  at 'adb:toleranceMaturity'
end
tolerance_maturity_attributes() click to toggle source
# File lib/pohoda/parsers/adb/addressbook_header_type.rb, line 311
def tolerance_maturity_attributes
  attributes_at 'adb:toleranceMaturity'
end
turnover() click to toggle source
# File lib/pohoda/parsers/adb/addressbook_header_type.rb, line 331
def turnover
  at 'adb:turnover'
end
turnover2() click to toggle source
# File lib/pohoda/parsers/adb/addressbook_header_type.rb, line 339
def turnover2
  at 'adb:turnover2'
end
turnover2_attributes() click to toggle source
# File lib/pohoda/parsers/adb/addressbook_header_type.rb, line 343
def turnover2_attributes
  attributes_at 'adb:turnover2'
end
turnover_attributes() click to toggle source
# File lib/pohoda/parsers/adb/addressbook_header_type.rb, line 335
def turnover_attributes
  attributes_at 'adb:turnover'
end
web() click to toggle source
# File lib/pohoda/parsers/adb/addressbook_header_type.rb, line 59
def web
  at 'adb:web'
end
web_attributes() click to toggle source
# File lib/pohoda/parsers/adb/addressbook_header_type.rb, line 63
def web_attributes
  attributes_at 'adb:web'
end