Class: TripletexRubyClient::Employee

Inherits:
Object
  • Object
show all
Defined in:
lib/tripletex_ruby_client/models/employee.rb

Defined Under Namespace

Classes: EnumAttributeValidator

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ Employee

Initializes the object

Parameters:

  • attributes (Hash) (defaults to: {})

    Model attributes in the form of hash



188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
# File 'lib/tripletex_ruby_client/models/employee.rb', line 188

def initialize(attributes = {})
  return unless attributes.is_a?(Hash)

  # convert string to symbol for hash key
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }

  if attributes.has_key?(:'id')
    self.id = attributes[:'id']
  end

  if attributes.has_key?(:'version')
    self.version = attributes[:'version']
  end

  if attributes.has_key?(:'changes')
    if (value = attributes[:'changes']).is_a?(Array)
      self.changes = value
    end
  end

  if attributes.has_key?(:'url')
    self.url = attributes[:'url']
  end

  if attributes.has_key?(:'firstName')
    self.first_name = attributes[:'firstName']
  end

  if attributes.has_key?(:'lastName')
    self.last_name = attributes[:'lastName']
  end

  if attributes.has_key?(:'displayName')
    self.display_name = attributes[:'displayName']
  end

  if attributes.has_key?(:'employeeNumber')
    self.employee_number = attributes[:'employeeNumber']
  end

  if attributes.has_key?(:'dateOfBirth')
    self.date_of_birth = attributes[:'dateOfBirth']
  end

  if attributes.has_key?(:'email')
    self.email = attributes[:'email']
  end

  if attributes.has_key?(:'phoneNumberMobileCountry')
    self.phone_number_mobile_country = attributes[:'phoneNumberMobileCountry']
  end

  if attributes.has_key?(:'phoneNumberMobile')
    self.phone_number_mobile = attributes[:'phoneNumberMobile']
  end

  if attributes.has_key?(:'phoneNumberHome')
    self.phone_number_home = attributes[:'phoneNumberHome']
  end

  if attributes.has_key?(:'phoneNumberWork')
    self.phone_number_work = attributes[:'phoneNumberWork']
  end

  if attributes.has_key?(:'nationalIdentityNumber')
    self.national_identity_number = attributes[:'nationalIdentityNumber']
  end

  if attributes.has_key?(:'dnumber')
    self.dnumber = attributes[:'dnumber']
  end

  if attributes.has_key?(:'internationalId')
    self.international_id = attributes[:'internationalId']
  end

  if attributes.has_key?(:'bankAccountNumber')
    self. = attributes[:'bankAccountNumber']
  end

  if attributes.has_key?(:'iban')
    self.iban = attributes[:'iban']
  end

  if attributes.has_key?(:'bic')
    self.bic = attributes[:'bic']
  end

  if attributes.has_key?(:'creditorBankCountryId')
    self.creditor_bank_country_id = attributes[:'creditorBankCountryId']
  end

  if attributes.has_key?(:'usesAbroadPayment')
    self.uses_abroad_payment = attributes[:'usesAbroadPayment']
  end

  if attributes.has_key?(:'userType')
    self.user_type = attributes[:'userType']
  end

  if attributes.has_key?(:'allowInformationRegistration')
    self.allow_information_registration = attributes[:'allowInformationRegistration']
  end

  if attributes.has_key?(:'isContact')
    self.is_contact = attributes[:'isContact']
  end

  if attributes.has_key?(:'comments')
    self.comments = attributes[:'comments']
  end

  if attributes.has_key?(:'address')
    self.address = attributes[:'address']
  end

  if attributes.has_key?(:'department')
    self.department = attributes[:'department']
  end

  if attributes.has_key?(:'employments')
    if (value = attributes[:'employments']).is_a?(Array)
      self.employments = value
    end
  end

  if attributes.has_key?(:'holidayAllowanceEarned')
    self.holiday_allowance_earned = attributes[:'holidayAllowanceEarned']
  end

  if attributes.has_key?(:'employeeCategory')
    self.employee_category = attributes[:'employeeCategory']
  end

  if attributes.has_key?(:'isAuthProjectOverviewURL')
    self.is_auth_project_overview_url = attributes[:'isAuthProjectOverviewURL']
  end
end

Instance Attribute Details

#addressObject

Address tied to the employee



75
76
77
# File 'lib/tripletex_ruby_client/models/employee.rb', line 75

def address
  @address
end

#allow_information_registrationObject

Determines if salary information can be registered on the user including hours, travel expenses and employee expenses. The user may also be selected as a project member on projects.



68
69
70
# File 'lib/tripletex_ruby_client/models/employee.rb', line 68

def allow_information_registration
  @allow_information_registration
end

#bank_account_numberObject

Returns the value of attribute bank_account_number.



50
51
52
# File 'lib/tripletex_ruby_client/models/employee.rb', line 50

def 
  @bank_account_number
end

#bicObject

Bic (swift) field



56
57
58
# File 'lib/tripletex_ruby_client/models/employee.rb', line 56

def bic
  @bic
end

#changesObject

Returns the value of attribute changes.



19
20
21
# File 'lib/tripletex_ruby_client/models/employee.rb', line 19

def changes
  @changes
end

#commentsObject

Returns the value of attribute comments.



72
73
74
# File 'lib/tripletex_ruby_client/models/employee.rb', line 72

def comments
  @comments
end

#creditor_bank_country_idObject

Country of creditor bank field



59
60
61
# File 'lib/tripletex_ruby_client/models/employee.rb', line 59

def creditor_bank_country_id
  @creditor_bank_country_id
end

#date_of_birthObject

Returns the value of attribute date_of_birth.



31
32
33
# File 'lib/tripletex_ruby_client/models/employee.rb', line 31

def date_of_birth
  @date_of_birth
end

#departmentObject

Returns the value of attribute department.



77
78
79
# File 'lib/tripletex_ruby_client/models/employee.rb', line 77

def department
  @department
end

#display_nameObject

Returns the value of attribute display_name.



27
28
29
# File 'lib/tripletex_ruby_client/models/employee.rb', line 27

def display_name
  @display_name
end

#dnumberObject

Returns the value of attribute dnumber.



46
47
48
# File 'lib/tripletex_ruby_client/models/employee.rb', line 46

def dnumber
  @dnumber
end

#emailObject

Returns the value of attribute email.



33
34
35
# File 'lib/tripletex_ruby_client/models/employee.rb', line 33

def email
  @email
end

#employee_categoryObject

Returns the value of attribute employee_category.



84
85
86
# File 'lib/tripletex_ruby_client/models/employee.rb', line 84

def employee_category
  @employee_category
end

#employee_numberObject

Returns the value of attribute employee_number.



29
30
31
# File 'lib/tripletex_ruby_client/models/employee.rb', line 29

def employee_number
  @employee_number
end

#employmentsObject

Employments tied to the employee



80
81
82
# File 'lib/tripletex_ruby_client/models/employee.rb', line 80

def employments
  @employments
end

#first_nameObject

Returns the value of attribute first_name.



23
24
25
# File 'lib/tripletex_ruby_client/models/employee.rb', line 23

def first_name
  @first_name
end

#holiday_allowance_earnedObject

Returns the value of attribute holiday_allowance_earned.



82
83
84
# File 'lib/tripletex_ruby_client/models/employee.rb', line 82

def holiday_allowance_earned
  @holiday_allowance_earned
end

#ibanObject

IBAN field



53
54
55
# File 'lib/tripletex_ruby_client/models/employee.rb', line 53

def iban
  @iban
end

#idObject

Returns the value of attribute id.



15
16
17
# File 'lib/tripletex_ruby_client/models/employee.rb', line 15

def id
  @id
end

#international_idObject

Returns the value of attribute international_id.



48
49
50
# File 'lib/tripletex_ruby_client/models/employee.rb', line 48

def international_id
  @international_id
end

#is_auth_project_overview_urlObject

Returns the value of attribute is_auth_project_overview_url.



86
87
88
# File 'lib/tripletex_ruby_client/models/employee.rb', line 86

def is_auth_project_overview_url
  @is_auth_project_overview_url
end

#is_contactObject

Returns the value of attribute is_contact.



70
71
72
# File 'lib/tripletex_ruby_client/models/employee.rb', line 70

def is_contact
  @is_contact
end

#last_nameObject

Returns the value of attribute last_name.



25
26
27
# File 'lib/tripletex_ruby_client/models/employee.rb', line 25

def last_name
  @last_name
end

#national_identity_numberObject

Returns the value of attribute national_identity_number.



44
45
46
# File 'lib/tripletex_ruby_client/models/employee.rb', line 44

def national_identity_number
  @national_identity_number
end

#phone_number_homeObject

Returns the value of attribute phone_number_home.



40
41
42
# File 'lib/tripletex_ruby_client/models/employee.rb', line 40

def phone_number_home
  @phone_number_home
end

#phone_number_mobileObject

Returns the value of attribute phone_number_mobile.



38
39
40
# File 'lib/tripletex_ruby_client/models/employee.rb', line 38

def phone_number_mobile
  @phone_number_mobile
end

#phone_number_mobile_countryObject

The country of the mobile phone number. If not set, the country is derived as best as possible from phoneNumberMobile. NB! 8 digit numbers are assumed to be Norwegian.



36
37
38
# File 'lib/tripletex_ruby_client/models/employee.rb', line 36

def phone_number_mobile_country
  @phone_number_mobile_country
end

#phone_number_workObject

Returns the value of attribute phone_number_work.



42
43
44
# File 'lib/tripletex_ruby_client/models/employee.rb', line 42

def phone_number_work
  @phone_number_work
end

#urlObject

Returns the value of attribute url.



21
22
23
# File 'lib/tripletex_ruby_client/models/employee.rb', line 21

def url
  @url
end

#user_typeObject

Define the employee’s user type.
STANDARD: Reduced access. Users with limited system entitlements.
EXTENDED: Users can be given all system entitlements.
NO_ACCESS: User with no log on access.
Users with access to Tripletex must confirm the email address.



65
66
67
# File 'lib/tripletex_ruby_client/models/employee.rb', line 65

def user_type
  @user_type
end

#uses_abroad_paymentObject

UsesAbroadPayment field. Determines if we should use domestic or abroad remittance. To be able to use abroad remittance, one has to: 1: have Autopay 2: have valid combination of the fields Iban, Bic (swift) and Country of creditor bank.



62
63
64
# File 'lib/tripletex_ruby_client/models/employee.rb', line 62

def uses_abroad_payment
  @uses_abroad_payment
end

#versionObject

Returns the value of attribute version.



17
18
19
# File 'lib/tripletex_ruby_client/models/employee.rb', line 17

def version
  @version
end

Class Method Details

.attribute_mapObject

Attribute mapping from ruby-style variable name to JSON key.



111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
# File 'lib/tripletex_ruby_client/models/employee.rb', line 111

def self.attribute_map
  {
    :'id' => :'id',
    :'version' => :'version',
    :'changes' => :'changes',
    :'url' => :'url',
    :'first_name' => :'firstName',
    :'last_name' => :'lastName',
    :'display_name' => :'displayName',
    :'employee_number' => :'employeeNumber',
    :'date_of_birth' => :'dateOfBirth',
    :'email' => :'email',
    :'phone_number_mobile_country' => :'phoneNumberMobileCountry',
    :'phone_number_mobile' => :'phoneNumberMobile',
    :'phone_number_home' => :'phoneNumberHome',
    :'phone_number_work' => :'phoneNumberWork',
    :'national_identity_number' => :'nationalIdentityNumber',
    :'dnumber' => :'dnumber',
    :'international_id' => :'internationalId',
    :'bank_account_number' => :'bankAccountNumber',
    :'iban' => :'iban',
    :'bic' => :'bic',
    :'creditor_bank_country_id' => :'creditorBankCountryId',
    :'uses_abroad_payment' => :'usesAbroadPayment',
    :'user_type' => :'userType',
    :'allow_information_registration' => :'allowInformationRegistration',
    :'is_contact' => :'isContact',
    :'comments' => :'comments',
    :'address' => :'address',
    :'department' => :'department',
    :'employments' => :'employments',
    :'holiday_allowance_earned' => :'holidayAllowanceEarned',
    :'employee_category' => :'employeeCategory',
    :'is_auth_project_overview_url' => :'isAuthProjectOverviewURL'
  }
end

.swagger_typesObject

Attribute type mapping.



149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
# File 'lib/tripletex_ruby_client/models/employee.rb', line 149

def self.swagger_types
  {
    :'id' => :'Integer',
    :'version' => :'Integer',
    :'changes' => :'Array<Change>',
    :'url' => :'String',
    :'first_name' => :'String',
    :'last_name' => :'String',
    :'display_name' => :'String',
    :'employee_number' => :'String',
    :'date_of_birth' => :'String',
    :'email' => :'String',
    :'phone_number_mobile_country' => :'Country',
    :'phone_number_mobile' => :'String',
    :'phone_number_home' => :'String',
    :'phone_number_work' => :'String',
    :'national_identity_number' => :'String',
    :'dnumber' => :'String',
    :'international_id' => :'InternationalId',
    :'bank_account_number' => :'String',
    :'iban' => :'String',
    :'bic' => :'String',
    :'creditor_bank_country_id' => :'Integer',
    :'uses_abroad_payment' => :'BOOLEAN',
    :'user_type' => :'String',
    :'allow_information_registration' => :'BOOLEAN',
    :'is_contact' => :'BOOLEAN',
    :'comments' => :'String',
    :'address' => :'Address',
    :'department' => :'Department',
    :'employments' => :'Array<Employment>',
    :'holiday_allowance_earned' => :'HolidayAllowanceEarned',
    :'employee_category' => :'EmployeeCategory',
    :'is_auth_project_overview_url' => :'BOOLEAN'
  }
end

Instance Method Details

#==(o) ⇒ Object

Checks equality by comparing each attribute.

Parameters:

  • Object (Object)

    to be compared



549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
# File 'lib/tripletex_ruby_client/models/employee.rb', line 549

def ==(o)
  return true if self.equal?(o)
  self.class == o.class &&
      id == o.id &&
      version == o.version &&
      changes == o.changes &&
      url == o.url &&
      first_name == o.first_name &&
      last_name == o.last_name &&
      display_name == o.display_name &&
      employee_number == o.employee_number &&
      date_of_birth == o.date_of_birth &&
      email == o.email &&
      phone_number_mobile_country == o.phone_number_mobile_country &&
      phone_number_mobile == o.phone_number_mobile &&
      phone_number_home == o.phone_number_home &&
      phone_number_work == o.phone_number_work &&
      national_identity_number == o.national_identity_number &&
      dnumber == o.dnumber &&
      international_id == o.international_id &&
       == o. &&
      iban == o.iban &&
      bic == o.bic &&
      creditor_bank_country_id == o.creditor_bank_country_id &&
      uses_abroad_payment == o.uses_abroad_payment &&
      user_type == o.user_type &&
      allow_information_registration == o.allow_information_registration &&
      is_contact == o.is_contact &&
      comments == o.comments &&
      address == o.address &&
      department == o.department &&
      employments == o.employments &&
      holiday_allowance_earned == o.holiday_allowance_earned &&
      employee_category == o.employee_category &&
      is_auth_project_overview_url == o.is_auth_project_overview_url
end

#_deserialize(type, value) ⇒ Object

Deserializes the data based on type

Parameters:

  • string

    type Data type

  • string

    value Value to be deserialized

Returns:

  • (Object)

    Deserialized data



622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
# File 'lib/tripletex_ruby_client/models/employee.rb', line 622

def _deserialize(type, value)
  case type.to_sym
  when :DateTime
    DateTime.parse(value)
  when :Date
    Date.parse(value)
  when :String
    value.to_s
  when :Integer
    value.to_i
  when :Float
    value.to_f
  when :BOOLEAN
    if value.to_s =~ /\A(true|t|yes|y|1)\z/i
      true
    else
      false
    end
  when :Object
    # generic object (usually a Hash), return directly
    value
  when /\AArray<(?<inner_type>.+)>\z/
    inner_type = Regexp.last_match[:inner_type]
    value.map { |v| _deserialize(inner_type, v) }
  when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
    k_type = Regexp.last_match[:k_type]
    v_type = Regexp.last_match[:v_type]
    {}.tap do |hash|
      value.each do |k, v|
        hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
      end
    end
  else # model
    temp_model = TripletexRubyClient.const_get(type).new
    temp_model.build_from_hash(value)
  end
end

#_to_hash(value) ⇒ Hash

Outputs non-array value in the form of hash For object, use to_hash. Otherwise, just return the value

Parameters:

  • value (Object)

    Any valid value

Returns:

  • (Hash)

    Returns the value in the form of hash



688
689
690
691
692
693
694
695
696
697
698
699
700
# File 'lib/tripletex_ruby_client/models/employee.rb', line 688

def _to_hash(value)
  if value.is_a?(Array)
    value.compact.map { |v| _to_hash(v) }
  elsif value.is_a?(Hash)
    {}.tap do |hash|
      value.each { |k, v| hash[k] = _to_hash(v) }
    end
  elsif value.respond_to? :to_hash
    value.to_hash
  else
    value
  end
end

#build_from_hash(attributes) ⇒ Object

Builds the object from hash

Parameters:

  • attributes (Hash)

    Model attributes in the form of hash

Returns:

  • (Object)

    Returns the model itself



601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
# File 'lib/tripletex_ruby_client/models/employee.rb', line 601

def build_from_hash(attributes)
  return nil unless attributes.is_a?(Hash)
  self.class.swagger_types.each_pair do |key, type|
    if type =~ /\AArray<(.*)>/i
      # check to ensure the input is an array given that the attribute
      # is documented as an array but the input is not
      if attributes[self.class.attribute_map[key]].is_a?(Array)
        self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
      end
    elsif !attributes[self.class.attribute_map[key]].nil?
      self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
    end # or else data not found in attributes(hash), not an issue as the data can be optional
  end

  self
end

#eql?(o) ⇒ Boolean

Parameters:

  • Object (Object)

    to be compared

Returns:

  • (Boolean)

See Also:

  • `==` method


588
589
590
# File 'lib/tripletex_ruby_client/models/employee.rb', line 588

def eql?(o)
  self == o
end

#hashFixnum

Calculates hash code according to all attributes.

Returns:

  • (Fixnum)

    Hash code



594
595
596
# File 'lib/tripletex_ruby_client/models/employee.rb', line 594

def hash
  [id, version, changes, url, first_name, last_name, display_name, employee_number, date_of_birth, email, phone_number_mobile_country, phone_number_mobile, phone_number_home, phone_number_work, national_identity_number, dnumber, international_id, , iban, bic, creditor_bank_country_id, uses_abroad_payment, user_type, allow_information_registration, is_contact, comments, address, department, employments, holiday_allowance_earned, employee_category, is_auth_project_overview_url].hash
end

#list_invalid_propertiesObject

Show invalid properties with the reasons. Usually used together with valid?

Returns:

  • Array for valid properties with the reasons



329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
# File 'lib/tripletex_ruby_client/models/employee.rb', line 329

def list_invalid_properties
  invalid_properties = Array.new
  if @first_name.nil?
    invalid_properties.push('invalid value for "first_name", first_name cannot be nil.')
  end

  if @first_name.to_s.length > 100
    invalid_properties.push('invalid value for "first_name", the character length must be smaller than or equal to 100.')
  end

  if @first_name.to_s.length < 1
    invalid_properties.push('invalid value for "first_name", the character length must be great than or equal to 1.')
  end

  if @last_name.nil?
    invalid_properties.push('invalid value for "last_name", last_name cannot be nil.')
  end

  if @last_name.to_s.length > 100
    invalid_properties.push('invalid value for "last_name", the character length must be smaller than or equal to 100.')
  end

  if @last_name.to_s.length < 1
    invalid_properties.push('invalid value for "last_name", the character length must be great than or equal to 1.')
  end

  if !@employee_number.nil? && @employee_number.to_s.length > 100
    invalid_properties.push('invalid value for "employee_number", the character length must be smaller than or equal to 100.')
  end

  if !@employee_number.nil? && @employee_number.to_s.length < 0
    invalid_properties.push('invalid value for "employee_number", the character length must be great than or equal to 0.')
  end

  if !@email.nil? && @email.to_s.length > 100
    invalid_properties.push('invalid value for "email", the character length must be smaller than or equal to 100.')
  end

  if !@phone_number_mobile.nil? && @phone_number_mobile.to_s.length > 100
    invalid_properties.push('invalid value for "phone_number_mobile", the character length must be smaller than or equal to 100.')
  end

  if !@phone_number_home.nil? && @phone_number_home.to_s.length > 100
    invalid_properties.push('invalid value for "phone_number_home", the character length must be smaller than or equal to 100.')
  end

  if !@phone_number_work.nil? && @phone_number_work.to_s.length > 100
    invalid_properties.push('invalid value for "phone_number_work", the character length must be smaller than or equal to 100.')
  end

  if !@national_identity_number.nil? && @national_identity_number.to_s.length > 100
    invalid_properties.push('invalid value for "national_identity_number", the character length must be smaller than or equal to 100.')
  end

  if !@dnumber.nil? && @dnumber.to_s.length > 11
    invalid_properties.push('invalid value for "dnumber", the character length must be smaller than or equal to 11.')
  end

  if !@bank_account_number.nil? && @bank_account_number.to_s.length > 100
    invalid_properties.push('invalid value for "bank_account_number", the character length must be smaller than or equal to 100.')
  end

  invalid_properties
end

#to_bodyHash

to_body is an alias to to_hash (backward compatibility)

Returns:

  • (Hash)

    Returns the object in the form of hash



668
669
670
# File 'lib/tripletex_ruby_client/models/employee.rb', line 668

def to_body
  to_hash
end

#to_hashHash

Returns the object in the form of hash

Returns:

  • (Hash)

    Returns the object in the form of hash



674
675
676
677
678
679
680
681
682
# File 'lib/tripletex_ruby_client/models/employee.rb', line 674

def to_hash
  hash = {}
  self.class.attribute_map.each_pair do |attr, param|
    value = self.send(attr)
    next if value.nil?
    hash[param] = _to_hash(value)
  end
  hash
end

#to_sString

Returns the string representation of the object

Returns:

  • (String)

    String presentation of the object



662
663
664
# File 'lib/tripletex_ruby_client/models/employee.rb', line 662

def to_s
  to_hash.to_s
end

#valid?Boolean

Check to see if the all the properties in the model are valid

Returns:

  • (Boolean)

    true if the model is valid



396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
# File 'lib/tripletex_ruby_client/models/employee.rb', line 396

def valid?
  return false if @first_name.nil?
  return false if @first_name.to_s.length > 100
  return false if @first_name.to_s.length < 1
  return false if @last_name.nil?
  return false if @last_name.to_s.length > 100
  return false if @last_name.to_s.length < 1
  return false if !@employee_number.nil? && @employee_number.to_s.length > 100
  return false if !@employee_number.nil? && @employee_number.to_s.length < 0
  return false if !@email.nil? && @email.to_s.length > 100
  return false if !@phone_number_mobile.nil? && @phone_number_mobile.to_s.length > 100
  return false if !@phone_number_home.nil? && @phone_number_home.to_s.length > 100
  return false if !@phone_number_work.nil? && @phone_number_work.to_s.length > 100
  return false if !@national_identity_number.nil? && @national_identity_number.to_s.length > 100
  return false if !@dnumber.nil? && @dnumber.to_s.length > 11
  return false if !@bank_account_number.nil? && @bank_account_number.to_s.length > 100
  user_type_validator = EnumAttributeValidator.new('String', ['STANDARD', 'EXTENDED', 'NO_ACCESS'])
  return false unless user_type_validator.valid?(@user_type)
  true
end