Class: ConnectWise::Member

Inherits:
Object
  • Object
show all
Defined in:
lib/connectwise-ruby-sdk/models/member.rb

Defined Under Namespace

Classes: EnumAttributeValidator

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ Member

Initializes the object

Parameters:

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

    Model attributes in the form of hash



478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
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
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
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
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
# File 'lib/connectwise-ruby-sdk/models/member.rb', line 478

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?(:'identifier')
    self.identifier = attributes[:'identifier']
  end

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

end

Instance Attribute Details

#_infoObject

Metadata of the entity



224
225
226
# File 'lib/connectwise-ruby-sdk/models/member.rb', line 224

def _info
  @_info
end

#admin_flagObject

Returns the value of attribute admin_flag.



79
80
81
# File 'lib/connectwise-ruby-sdk/models/member.rb', line 79

def admin_flag
  @admin_flag
end

#agreement_invoicing_display_optionsObject

Returns the value of attribute agreement_invoicing_display_options.



203
204
205
# File 'lib/connectwise-ruby-sdk/models/member.rb', line 203

def agreement_invoicing_display_options
  @agreement_invoicing_display_options
end

#allow_expenses_entered_against_companies_flagObject

Returns the value of attribute allow_expenses_entered_against_companies_flag.



123
124
125
# File 'lib/connectwise-ruby-sdk/models/member.rb', line 123

def allow_expenses_entered_against_companies_flag
  @allow_expenses_entered_against_companies_flag
end

#allow_in_cell_entry_on_time_sheetObject

Returns the value of attribute allow_in_cell_entry_on_time_sheet.



119
120
121
# File 'lib/connectwise-ruby-sdk/models/member.rb', line 119

def allow_in_cell_entry_on_time_sheet
  @allow_in_cell_entry_on_time_sheet
end

#authentication_service_typeObject

Returns the value of attribute authentication_service_type.



219
220
221
# File 'lib/connectwise-ruby-sdk/models/member.rb', line 219

def authentication_service_type
  @authentication_service_type
end

#billable_forecastObject

Returns the value of attribute billable_forecast.



103
104
105
# File 'lib/connectwise-ruby-sdk/models/member.rb', line 103

def billable_forecast
  @billable_forecast
end

#calendarObject

Returns the value of attribute calendar.



171
172
173
# File 'lib/connectwise-ruby-sdk/models/member.rb', line 171

def calendar
  @calendar
end

#calendar_sync_integration_flagObject

Returns the value of attribute calendar_sync_integration_flag.



187
188
189
# File 'lib/connectwise-ruby-sdk/models/member.rb', line 187

def calendar_sync_integration_flag
  @calendar_sync_integration_flag
end

#company_activity_tab_formatObject

Returns the value of attribute company_activity_tab_format.



195
196
197
# File 'lib/connectwise-ruby-sdk/models/member.rb', line 195

def company_activity_tab_format
  @company_activity_tab_format
end

#corelytics_passwordObject

Returns the value of attribute corelytics_password.



207
208
209
# File 'lib/connectwise-ruby-sdk/models/member.rb', line 207

def corelytics_password
  @corelytics_password
end

#corelytics_usernameObject

Returns the value of attribute corelytics_username.



205
206
207
# File 'lib/connectwise-ruby-sdk/models/member.rb', line 205

def corelytics_username
  @corelytics_username
end

#countryObject

Returns the value of attribute country.



41
42
43
# File 'lib/connectwise-ruby-sdk/models/member.rb', line 41

def country
  @country
end

#daily_capacityObject

Returns the value of attribute daily_capacity.



105
106
107
# File 'lib/connectwise-ruby-sdk/models/member.rb', line 105

def daily_capacity
  @daily_capacity
end

#days_toleranceObject

Returns the value of attribute days_tolerance.



127
128
129
# File 'lib/connectwise-ruby-sdk/models/member.rb', line 127

def days_tolerance
  @days_tolerance
end

#default_departmentObject

Returns the value of attribute default_department.



87
88
89
# File 'lib/connectwise-ruby-sdk/models/member.rb', line 87

def default_department
  @default_department
end

#default_emailObject

Returns the value of attribute default_email.



73
74
75
# File 'lib/connectwise-ruby-sdk/models/member.rb', line 73

def default_email
  @default_email
end

#default_locationObject

Returns the value of attribute default_location.



85
86
87
# File 'lib/connectwise-ruby-sdk/models/member.rb', line 85

def default_location
  @default_location
end

#default_phoneObject

Returns the value of attribute default_phone.



75
76
77
# File 'lib/connectwise-ruby-sdk/models/member.rb', line 75

def default_phone
  @default_phone
end

#disable_online_flagObject

Returns the value of attribute disable_online_flag.



27
28
29
# File 'lib/connectwise-ruby-sdk/models/member.rb', line 27

def disable_online_flag
  @disable_online_flag
end

#employee_identiferObject

Returns the value of attribute employee_identifer.



33
34
35
# File 'lib/connectwise-ruby-sdk/models/member.rb', line 33

def employee_identifer
  @employee_identifer
end

#enable_ldap_authentication_flagObject

Returns the value of attribute enable_ldap_authentication_flag.



189
190
191
# File 'lib/connectwise-ruby-sdk/models/member.rb', line 189

def enable_ldap_authentication_flag
  @enable_ldap_authentication_flag
end

#enable_mobile_flagObject

Returns the value of attribute enable_mobile_flag.



29
30
31
# File 'lib/connectwise-ruby-sdk/models/member.rb', line 29

def enable_mobile_flag
  @enable_mobile_flag
end

#enable_mobile_gps_flagObject

Returns the value of attribute enable_mobile_gps_flag.



45
46
47
# File 'lib/connectwise-ruby-sdk/models/member.rb', line 45

def enable_mobile_gps_flag
  @enable_mobile_gps_flag
end

#enter_time_against_company_flagObject

Returns the value of attribute enter_time_against_company_flag.



121
122
123
# File 'lib/connectwise-ruby-sdk/models/member.rb', line 121

def enter_time_against_company_flag
  @enter_time_against_company_flag
end

#excluded_project_board_idsObject

Returns the value of attribute excluded_project_board_ids.



157
158
159
# File 'lib/connectwise-ruby-sdk/models/member.rb', line 157

def excluded_project_board_ids
  @excluded_project_board_ids
end

#excluded_service_board_idsObject

Returns the value of attribute excluded_service_board_ids.



145
146
147
# File 'lib/connectwise-ruby-sdk/models/member.rb', line 145

def excluded_service_board_ids
  @excluded_service_board_ids
end

#expense_approverObject

Returns the value of attribute expense_approver.



101
102
103
# File 'lib/connectwise-ruby-sdk/models/member.rb', line 101

def expense_approver
  @expense_approver
end

#first_nameObject

Returns the value of attribute first_name.



14
15
16
# File 'lib/connectwise-ruby-sdk/models/member.rb', line 14

def first_name
  @first_name
end

#hide_member_in_dispatch_portal_flagObject

Returns the value of attribute hide_member_in_dispatch_portal_flag.



169
170
171
# File 'lib/connectwise-ruby-sdk/models/member.rb', line 169

def hide_member_in_dispatch_portal_flag
  @hide_member_in_dispatch_portal_flag
end

#hire_dateObject

Returns the value of attribute hire_date.



133
134
135
# File 'lib/connectwise-ruby-sdk/models/member.rb', line 133

def hire_date
  @hire_date
end

#home_emailObject

Returns the value of attribute home_email.



67
68
69
# File 'lib/connectwise-ruby-sdk/models/member.rb', line 67

def home_email
  @home_email
end

#home_extensionObject

Returns the value of attribute home_extension.



71
72
73
# File 'lib/connectwise-ruby-sdk/models/member.rb', line 71

def home_extension
  @home_extension
end

#home_phoneObject

Returns the value of attribute home_phone.



69
70
71
# File 'lib/connectwise-ruby-sdk/models/member.rb', line 69

def home_phone
  @home_phone
end

#hourly_costObject

Returns the value of attribute hourly_cost.



107
108
109
# File 'lib/connectwise-ruby-sdk/models/member.rb', line 107

def hourly_cost
  @hourly_cost
end

#hourly_rateObject

Returns the value of attribute hourly_rate.



109
110
111
# File 'lib/connectwise-ruby-sdk/models/member.rb', line 109

def hourly_rate
  @hourly_rate
end

#idObject

Returns the value of attribute id.



7
8
9
# File 'lib/connectwise-ruby-sdk/models/member.rb', line 7

def id
  @id
end

#identifierObject

Returns the value of attribute identifier.



9
10
11
# File 'lib/connectwise-ruby-sdk/models/member.rb', line 9

def identifier
  @identifier
end

#inactive_dateObject

Returns the value of attribute inactive_date.



47
48
49
# File 'lib/connectwise-ruby-sdk/models/member.rb', line 47

def inactive_date
  @inactive_date
end

#inactive_flagObject

Returns the value of attribute inactive_flag.



49
50
51
# File 'lib/connectwise-ruby-sdk/models/member.rb', line 49

def inactive_flag
  @inactive_flag
end

#include_in_utilization_reporting_flagObject

Returns the value of attribute include_in_utilization_reporting_flag.



111
112
113
# File 'lib/connectwise-ruby-sdk/models/member.rb', line 111

def include_in_utilization_reporting_flag
  @include_in_utilization_reporting_flag
end

#invoice_screen_default_tab_formatObject

Returns the value of attribute invoice_screen_default_tab_format.



199
200
201
# File 'lib/connectwise-ruby-sdk/models/member.rb', line 199

def invoice_screen_default_tab_format
  @invoice_screen_default_tab_format
end

#invoice_time_tab_formatObject

Returns the value of attribute invoice_time_tab_format.



197
198
199
# File 'lib/connectwise-ruby-sdk/models/member.rb', line 197

def invoice_time_tab_format
  @invoice_time_tab_format
end

#invoicing_display_optionsObject

Returns the value of attribute invoicing_display_options.



201
202
203
# File 'lib/connectwise-ruby-sdk/models/member.rb', line 201

def invoicing_display_options
  @invoicing_display_options
end

#last_loginObject

Returns the value of attribute last_login.



51
52
53
# File 'lib/connectwise-ruby-sdk/models/member.rb', line 51

def 
  @last_login
end

#last_nameObject

Returns the value of attribute last_name.



18
19
20
# File 'lib/connectwise-ruby-sdk/models/member.rb', line 18

def last_name
  @last_name
end

#ldap_configurationObject

Returns the value of attribute ldap_configuration.



191
192
193
# File 'lib/connectwise-ruby-sdk/models/member.rb', line 191

def ldap_configuration
  @ldap_configuration
end

#ldap_user_nameObject

Returns the value of attribute ldap_user_name.



193
194
195
# File 'lib/connectwise-ruby-sdk/models/member.rb', line 193

def ldap_user_name
  @ldap_user_name
end

#license_classObject

F = Full Member, A = API Member, C = StreamlineIT Member, X = Subcontractor Member



25
26
27
# File 'lib/connectwise-ruby-sdk/models/member.rb', line 25

def license_class
  @license_class
end

#mapi_nameObject

Returns the value of attribute mapi_name.



185
186
187
# File 'lib/connectwise-ruby-sdk/models/member.rb', line 185

def mapi_name
  @mapi_name
end

#middle_initialObject

Returns the value of attribute middle_initial.



16
17
18
# File 'lib/connectwise-ruby-sdk/models/member.rb', line 16

def middle_initial
  @middle_initial
end

#minimum_hoursObject

Returns the value of attribute minimum_hours.



129
130
131
# File 'lib/connectwise-ruby-sdk/models/member.rb', line 129

def minimum_hours
  @minimum_hours
end

#mobile_emailObject

Returns the value of attribute mobile_email.



61
62
63
# File 'lib/connectwise-ruby-sdk/models/member.rb', line 61

def mobile_email
  @mobile_email
end

#mobile_extensionObject

Returns the value of attribute mobile_extension.



65
66
67
# File 'lib/connectwise-ruby-sdk/models/member.rb', line 65

def mobile_extension
  @mobile_extension
end

#mobile_phoneObject

Returns the value of attribute mobile_phone.



63
64
65
# File 'lib/connectwise-ruby-sdk/models/member.rb', line 63

def mobile_phone
  @mobile_phone
end

#notesObject

Returns the value of attribute notes.



37
38
39
# File 'lib/connectwise-ruby-sdk/models/member.rb', line 37

def notes
  @notes
end

#office_emailObject

Returns the value of attribute office_email.



55
56
57
# File 'lib/connectwise-ruby-sdk/models/member.rb', line 55

def office_email
  @office_email
end

#office_extensionObject

Returns the value of attribute office_extension.



59
60
61
# File 'lib/connectwise-ruby-sdk/models/member.rb', line 59

def office_extension
  @office_extension
end

#office_phoneObject

Returns the value of attribute office_phone.



57
58
59
# File 'lib/connectwise-ruby-sdk/models/member.rb', line 57

def office_phone
  @office_phone
end

#passwordObject

ConditionallyRequired. API Member will get random password generated



12
13
14
# File 'lib/connectwise-ruby-sdk/models/member.rb', line 12

def password
  @password
end

#photoObject

Returns the value of attribute photo.



53
54
55
# File 'lib/connectwise-ruby-sdk/models/member.rb', line 53

def photo
  @photo
end

#project_default_boardObject

Returns the value of attribute project_default_board.



151
152
153
# File 'lib/connectwise-ruby-sdk/models/member.rb', line 151

def project_default_board
  @project_default_board
end

#project_default_departmentObject

Returns the value of attribute project_default_department.



149
150
151
# File 'lib/connectwise-ruby-sdk/models/member.rb', line 149

def project_default_department
  @project_default_department
end

#project_default_locationObject

Returns the value of attribute project_default_location.



147
148
149
# File 'lib/connectwise-ruby-sdk/models/member.rb', line 147

def project_default_location
  @project_default_location
end

#remote_packageObject

Returns the value of attribute remote_package.



209
210
211
# File 'lib/connectwise-ruby-sdk/models/member.rb', line 209

def remote_package
  @remote_package
end

#remote_package_accountObject

Returns the value of attribute remote_package_account.



217
218
219
# File 'lib/connectwise-ruby-sdk/models/member.rb', line 217

def 
  @remote_package_account
end

#remote_package_passwordObject

Returns the value of attribute remote_package_password.



215
216
217
# File 'lib/connectwise-ruby-sdk/models/member.rb', line 215

def remote_package_password
  @remote_package_password
end

#remote_package_platformObject

Returns the value of attribute remote_package_platform.



211
212
213
# File 'lib/connectwise-ruby-sdk/models/member.rb', line 211

def remote_package_platform
  @remote_package_platform
end

#remote_package_user_nameObject

Returns the value of attribute remote_package_user_name.



213
214
215
# File 'lib/connectwise-ruby-sdk/models/member.rb', line 213

def remote_package_user_name
  @remote_package_user_name
end

#report_cardObject

Returns the value of attribute report_card.



22
23
24
# File 'lib/connectwise-ruby-sdk/models/member.rb', line 22

def report_card
  @report_card
end

#reports_toObject

Returns the value of attribute reports_to.



89
90
91
# File 'lib/connectwise-ruby-sdk/models/member.rb', line 89

def reports_to
  @reports_to
end

#require_expense_entry_flagObject

Returns the value of attribute require_expense_entry_flag.



113
114
115
# File 'lib/connectwise-ruby-sdk/models/member.rb', line 113

def require_expense_entry_flag
  @require_expense_entry_flag
end

#require_start_and_end_time_on_time_entry_flagObject

Returns the value of attribute require_start_and_end_time_on_time_entry_flag.



117
118
119
# File 'lib/connectwise-ruby-sdk/models/member.rb', line 117

def require_start_and_end_time_on_time_entry_flag
  @require_start_and_end_time_on_time_entry_flag
end

#require_time_sheet_entry_flagObject

Returns the value of attribute require_time_sheet_entry_flag.



115
116
117
# File 'lib/connectwise-ruby-sdk/models/member.rb', line 115

def require_time_sheet_entry_flag
  @require_time_sheet_entry_flag
end

#restrict_default_sales_territory_flagObject

Returns the value of attribute restrict_default_sales_territory_flag.



175
176
177
# File 'lib/connectwise-ruby-sdk/models/member.rb', line 175

def restrict_default_sales_territory_flag
  @restrict_default_sales_territory_flag
end

#restrict_default_warehouse_bin_flagObject

Returns the value of attribute restrict_default_warehouse_bin_flag.



183
184
185
# File 'lib/connectwise-ruby-sdk/models/member.rb', line 183

def restrict_default_warehouse_bin_flag
  @restrict_default_warehouse_bin_flag
end

#restrict_default_warehouse_flagObject

Returns the value of attribute restrict_default_warehouse_flag.



181
182
183
# File 'lib/connectwise-ruby-sdk/models/member.rb', line 181

def restrict_default_warehouse_flag
  @restrict_default_warehouse_flag
end

#restrict_department_flagObject

Returns the value of attribute restrict_department_flag.



93
94
95
# File 'lib/connectwise-ruby-sdk/models/member.rb', line 93

def restrict_department_flag
  @restrict_department_flag
end

#restrict_location_flagObject

Returns the value of attribute restrict_location_flag.



91
92
93
# File 'lib/connectwise-ruby-sdk/models/member.rb', line 91

def restrict_location_flag
  @restrict_location_flag
end

#restrict_project_default_department_flagObject

Returns the value of attribute restrict_project_default_department_flag.



155
156
157
# File 'lib/connectwise-ruby-sdk/models/member.rb', line 155

def restrict_project_default_department_flag
  @restrict_project_default_department_flag
end

#restrict_project_default_location_flagObject

Returns the value of attribute restrict_project_default_location_flag.



153
154
155
# File 'lib/connectwise-ruby-sdk/models/member.rb', line 153

def restrict_project_default_location_flag
  @restrict_project_default_location_flag
end

#restrict_schedule_flagObject

Returns the value of attribute restrict_schedule_flag.



167
168
169
# File 'lib/connectwise-ruby-sdk/models/member.rb', line 167

def restrict_schedule_flag
  @restrict_schedule_flag
end

#restrict_service_default_department_flagObject

Returns the value of attribute restrict_service_default_department_flag.



143
144
145
# File 'lib/connectwise-ruby-sdk/models/member.rb', line 143

def restrict_service_default_department_flag
  @restrict_service_default_department_flag
end

#restrict_service_default_location_flagObject

Returns the value of attribute restrict_service_default_location_flag.



141
142
143
# File 'lib/connectwise-ruby-sdk/models/member.rb', line 141

def restrict_service_default_location_flag
  @restrict_service_default_location_flag
end

#sales_default_locationObject

Returns the value of attribute sales_default_location.



173
174
175
# File 'lib/connectwise-ruby-sdk/models/member.rb', line 173

def sales_default_location
  @sales_default_location
end

#schedule_capacityObject

Returns the value of attribute schedule_capacity.



163
164
165
# File 'lib/connectwise-ruby-sdk/models/member.rb', line 163

def schedule_capacity
  @schedule_capacity
end

#schedule_default_departmentObject

Returns the value of attribute schedule_default_department.



161
162
163
# File 'lib/connectwise-ruby-sdk/models/member.rb', line 161

def schedule_default_department
  @schedule_default_department
end

#schedule_default_locationObject

Returns the value of attribute schedule_default_location.



159
160
161
# File 'lib/connectwise-ruby-sdk/models/member.rb', line 159

def schedule_default_location
  @schedule_default_location
end

#security_locationObject

Returns the value of attribute security_location.



83
84
85
# File 'lib/connectwise-ruby-sdk/models/member.rb', line 83

def security_location
  @security_location
end

#security_roleObject

Returns the value of attribute security_role.



77
78
79
# File 'lib/connectwise-ruby-sdk/models/member.rb', line 77

def security_role
  @security_role
end

#service_board_team_idsObject

Returns the value of attribute service_board_team_ids.



43
44
45
# File 'lib/connectwise-ruby-sdk/models/member.rb', line 43

def service_board_team_ids
  @service_board_team_ids
end

#service_default_boardObject

Returns the value of attribute service_default_board.



139
140
141
# File 'lib/connectwise-ruby-sdk/models/member.rb', line 139

def service_default_board
  @service_default_board
end

#service_default_departmentObject

Returns the value of attribute service_default_department.



137
138
139
# File 'lib/connectwise-ruby-sdk/models/member.rb', line 137

def service_default_department
  @service_default_department
end

#service_default_locationObject

Returns the value of attribute service_default_location.



135
136
137
# File 'lib/connectwise-ruby-sdk/models/member.rb', line 135

def service_default_location
  @service_default_location
end

#service_locationObject

Returns the value of attribute service_location.



165
166
167
# File 'lib/connectwise-ruby-sdk/models/member.rb', line 165

def service_location
  @service_location
end

#structure_levelObject

Returns the value of attribute structure_level.



81
82
83
# File 'lib/connectwise-ruby-sdk/models/member.rb', line 81

def structure_level
  @structure_level
end

#time_approverObject

Returns the value of attribute time_approver.



99
100
101
# File 'lib/connectwise-ruby-sdk/models/member.rb', line 99

def time_approver
  @time_approver
end

#time_reminder_email_flagObject

Returns the value of attribute time_reminder_email_flag.



125
126
127
# File 'lib/connectwise-ruby-sdk/models/member.rb', line 125

def time_reminder_email_flag
  @time_reminder_email_flag
end

#time_sheet_start_dateObject

Returns the value of attribute time_sheet_start_date.



131
132
133
# File 'lib/connectwise-ruby-sdk/models/member.rb', line 131

def time_sheet_start_date
  @time_sheet_start_date
end

#time_zoneObject

Returns the value of attribute time_zone.



39
40
41
# File 'lib/connectwise-ruby-sdk/models/member.rb', line 39

def time_zone
  @time_zone
end

#timebased_one_time_password_activatedObject

Returns the value of attribute timebased_one_time_password_activated.



221
222
223
# File 'lib/connectwise-ruby-sdk/models/member.rb', line 221

def timebased_one_time_password_activated
  @timebased_one_time_password_activated
end

#titleObject

Returns the value of attribute title.



20
21
22
# File 'lib/connectwise-ruby-sdk/models/member.rb', line 20

def title
  @title
end

#typeObject

Returns the value of attribute type.



31
32
33
# File 'lib/connectwise-ruby-sdk/models/member.rb', line 31

def type
  @type
end

#vendor_numberObject

Returns the value of attribute vendor_number.



35
36
37
# File 'lib/connectwise-ruby-sdk/models/member.rb', line 35

def vendor_number
  @vendor_number
end

#warehouseObject

Returns the value of attribute warehouse.



177
178
179
# File 'lib/connectwise-ruby-sdk/models/member.rb', line 177

def warehouse
  @warehouse
end

#warehouse_binObject

Returns the value of attribute warehouse_bin.



179
180
181
# File 'lib/connectwise-ruby-sdk/models/member.rb', line 179

def warehouse_bin
  @warehouse_bin
end

#work_roleObject

Returns the value of attribute work_role.



95
96
97
# File 'lib/connectwise-ruby-sdk/models/member.rb', line 95

def work_role
  @work_role
end

#work_typeObject

Returns the value of attribute work_type.



97
98
99
# File 'lib/connectwise-ruby-sdk/models/member.rb', line 97

def work_type
  @work_type
end

Class Method Details

.attribute_mapObject

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



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
326
327
328
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
# File 'lib/connectwise-ruby-sdk/models/member.rb', line 249

def self.attribute_map
  {
    :'id' => :'id',
    :'identifier' => :'identifier',
    :'password' => :'password',
    :'first_name' => :'firstName',
    :'middle_initial' => :'middleInitial',
    :'last_name' => :'lastName',
    :'title' => :'title',
    :'report_card' => :'reportCard',
    :'license_class' => :'licenseClass',
    :'disable_online_flag' => :'disableOnlineFlag',
    :'enable_mobile_flag' => :'enableMobileFlag',
    :'type' => :'type',
    :'employee_identifer' => :'employeeIdentifer',
    :'vendor_number' => :'vendorNumber',
    :'notes' => :'notes',
    :'time_zone' => :'timeZone',
    :'country' => :'country',
    :'service_board_team_ids' => :'serviceBoardTeamIds',
    :'enable_mobile_gps_flag' => :'enableMobileGpsFlag',
    :'inactive_date' => :'inactiveDate',
    :'inactive_flag' => :'inactiveFlag',
    :'last_login' => :'lastLogin',
    :'photo' => :'photo',
    :'office_email' => :'officeEmail',
    :'office_phone' => :'officePhone',
    :'office_extension' => :'officeExtension',
    :'mobile_email' => :'mobileEmail',
    :'mobile_phone' => :'mobilePhone',
    :'mobile_extension' => :'mobileExtension',
    :'home_email' => :'homeEmail',
    :'home_phone' => :'homePhone',
    :'home_extension' => :'homeExtension',
    :'default_email' => :'defaultEmail',
    :'default_phone' => :'defaultPhone',
    :'security_role' => :'securityRole',
    :'admin_flag' => :'adminFlag',
    :'structure_level' => :'structureLevel',
    :'security_location' => :'securityLocation',
    :'default_location' => :'defaultLocation',
    :'default_department' => :'defaultDepartment',
    :'reports_to' => :'reportsTo',
    :'restrict_location_flag' => :'restrictLocationFlag',
    :'restrict_department_flag' => :'restrictDepartmentFlag',
    :'work_role' => :'workRole',
    :'work_type' => :'workType',
    :'time_approver' => :'timeApprover',
    :'expense_approver' => :'expenseApprover',
    :'billable_forecast' => :'billableForecast',
    :'daily_capacity' => :'dailyCapacity',
    :'hourly_cost' => :'hourlyCost',
    :'hourly_rate' => :'hourlyRate',
    :'include_in_utilization_reporting_flag' => :'includeInUtilizationReportingFlag',
    :'require_expense_entry_flag' => :'requireExpenseEntryFlag',
    :'require_time_sheet_entry_flag' => :'requireTimeSheetEntryFlag',
    :'require_start_and_end_time_on_time_entry_flag' => :'requireStartAndEndTimeOnTimeEntryFlag',
    :'allow_in_cell_entry_on_time_sheet' => :'allowInCellEntryOnTimeSheet',
    :'enter_time_against_company_flag' => :'enterTimeAgainstCompanyFlag',
    :'allow_expenses_entered_against_companies_flag' => :'allowExpensesEnteredAgainstCompaniesFlag',
    :'time_reminder_email_flag' => :'timeReminderEmailFlag',
    :'days_tolerance' => :'daysTolerance',
    :'minimum_hours' => :'minimumHours',
    :'time_sheet_start_date' => :'timeSheetStartDate',
    :'hire_date' => :'hireDate',
    :'service_default_location' => :'serviceDefaultLocation',
    :'service_default_department' => :'serviceDefaultDepartment',
    :'service_default_board' => :'serviceDefaultBoard',
    :'restrict_service_default_location_flag' => :'restrictServiceDefaultLocationFlag',
    :'restrict_service_default_department_flag' => :'restrictServiceDefaultDepartmentFlag',
    :'excluded_service_board_ids' => :'excludedServiceBoardIds',
    :'project_default_location' => :'projectDefaultLocation',
    :'project_default_department' => :'projectDefaultDepartment',
    :'project_default_board' => :'projectDefaultBoard',
    :'restrict_project_default_location_flag' => :'restrictProjectDefaultLocationFlag',
    :'restrict_project_default_department_flag' => :'restrictProjectDefaultDepartmentFlag',
    :'excluded_project_board_ids' => :'excludedProjectBoardIds',
    :'schedule_default_location' => :'scheduleDefaultLocation',
    :'schedule_default_department' => :'scheduleDefaultDepartment',
    :'schedule_capacity' => :'scheduleCapacity',
    :'service_location' => :'serviceLocation',
    :'restrict_schedule_flag' => :'restrictScheduleFlag',
    :'hide_member_in_dispatch_portal_flag' => :'hideMemberInDispatchPortalFlag',
    :'calendar' => :'calendar',
    :'sales_default_location' => :'salesDefaultLocation',
    :'restrict_default_sales_territory_flag' => :'restrictDefaultSalesTerritoryFlag',
    :'warehouse' => :'warehouse',
    :'warehouse_bin' => :'warehouseBin',
    :'restrict_default_warehouse_flag' => :'restrictDefaultWarehouseFlag',
    :'restrict_default_warehouse_bin_flag' => :'restrictDefaultWarehouseBinFlag',
    :'mapi_name' => :'mapiName',
    :'calendar_sync_integration_flag' => :'calendarSyncIntegrationFlag',
    :'enable_ldap_authentication_flag' => :'enableLdapAuthenticationFlag',
    :'ldap_configuration' => :'ldapConfiguration',
    :'ldap_user_name' => :'ldapUserName',
    :'company_activity_tab_format' => :'companyActivityTabFormat',
    :'invoice_time_tab_format' => :'invoiceTimeTabFormat',
    :'invoice_screen_default_tab_format' => :'invoiceScreenDefaultTabFormat',
    :'invoicing_display_options' => :'invoicingDisplayOptions',
    :'agreement_invoicing_display_options' => :'agreementInvoicingDisplayOptions',
    :'corelytics_username' => :'corelyticsUsername',
    :'corelytics_password' => :'corelyticsPassword',
    :'remote_package' => :'remotePackage',
    :'remote_package_platform' => :'remotePackagePlatform',
    :'remote_package_user_name' => :'remotePackageUserName',
    :'remote_package_password' => :'remotePackagePassword',
    :'remote_package_account' => :'remotePackageAccount',
    :'authentication_service_type' => :'authenticationServiceType',
    :'timebased_one_time_password_activated' => :'timebasedOneTimePasswordActivated',
    :'_info' => :'_info'
  }
end

.swagger_typesObject

Attribute type mapping.



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
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
# File 'lib/connectwise-ruby-sdk/models/member.rb', line 363

def self.swagger_types
  {
    :'id' => :'Integer',
    :'identifier' => :'String',
    :'password' => :'String',
    :'first_name' => :'String',
    :'middle_initial' => :'String',
    :'last_name' => :'String',
    :'title' => :'String',
    :'report_card' => :'ReportCardReference',
    :'license_class' => :'String',
    :'disable_online_flag' => :'BOOLEAN',
    :'enable_mobile_flag' => :'BOOLEAN',
    :'type' => :'MemberTypeReference',
    :'employee_identifer' => :'String',
    :'vendor_number' => :'String',
    :'notes' => :'String',
    :'time_zone' => :'TimeZoneSetupReference',
    :'country' => :'CountryReference',
    :'service_board_team_ids' => :'Array<Integer>',
    :'enable_mobile_gps_flag' => :'BOOLEAN',
    :'inactive_date' => :'DateTime',
    :'inactive_flag' => :'BOOLEAN',
    :'last_login' => :'String',
    :'photo' => :'DocumentReference',
    :'office_email' => :'String',
    :'office_phone' => :'String',
    :'office_extension' => :'String',
    :'mobile_email' => :'String',
    :'mobile_phone' => :'String',
    :'mobile_extension' => :'String',
    :'home_email' => :'String',
    :'home_phone' => :'String',
    :'home_extension' => :'String',
    :'default_email' => :'String',
    :'default_phone' => :'String',
    :'security_role' => :'SecurityRoleReference',
    :'admin_flag' => :'BOOLEAN',
    :'structure_level' => :'StructureReference',
    :'security_location' => :'SystemLocationReference',
    :'default_location' => :'SystemLocationReference',
    :'default_department' => :'SystemDepartmentReference',
    :'reports_to' => :'MemberReference',
    :'restrict_location_flag' => :'BOOLEAN',
    :'restrict_department_flag' => :'BOOLEAN',
    :'work_role' => :'WorkRoleReference',
    :'work_type' => :'WorkTypeReference',
    :'time_approver' => :'MemberReference',
    :'expense_approver' => :'MemberReference',
    :'billable_forecast' => :'Float',
    :'daily_capacity' => :'Float',
    :'hourly_cost' => :'Float',
    :'hourly_rate' => :'Float',
    :'include_in_utilization_reporting_flag' => :'BOOLEAN',
    :'require_expense_entry_flag' => :'BOOLEAN',
    :'require_time_sheet_entry_flag' => :'BOOLEAN',
    :'require_start_and_end_time_on_time_entry_flag' => :'BOOLEAN',
    :'allow_in_cell_entry_on_time_sheet' => :'BOOLEAN',
    :'enter_time_against_company_flag' => :'BOOLEAN',
    :'allow_expenses_entered_against_companies_flag' => :'BOOLEAN',
    :'time_reminder_email_flag' => :'BOOLEAN',
    :'days_tolerance' => :'Integer',
    :'minimum_hours' => :'Float',
    :'time_sheet_start_date' => :'DateTime',
    :'hire_date' => :'DateTime',
    :'service_default_location' => :'SystemLocationReference',
    :'service_default_department' => :'SystemDepartmentReference',
    :'service_default_board' => :'BoardReference',
    :'restrict_service_default_location_flag' => :'BOOLEAN',
    :'restrict_service_default_department_flag' => :'BOOLEAN',
    :'excluded_service_board_ids' => :'Array<Integer>',
    :'project_default_location' => :'SystemLocationReference',
    :'project_default_department' => :'SystemDepartmentReference',
    :'project_default_board' => :'ProjectBoardReference',
    :'restrict_project_default_location_flag' => :'BOOLEAN',
    :'restrict_project_default_department_flag' => :'BOOLEAN',
    :'excluded_project_board_ids' => :'Array<Integer>',
    :'schedule_default_location' => :'SystemLocationReference',
    :'schedule_default_department' => :'SystemDepartmentReference',
    :'schedule_capacity' => :'Float',
    :'service_location' => :'ServiceLocationReference',
    :'restrict_schedule_flag' => :'BOOLEAN',
    :'hide_member_in_dispatch_portal_flag' => :'BOOLEAN',
    :'calendar' => :'CalendarReference',
    :'sales_default_location' => :'SystemLocationReference',
    :'restrict_default_sales_territory_flag' => :'BOOLEAN',
    :'warehouse' => :'WarehouseReference',
    :'warehouse_bin' => :'WarehouseBinReference',
    :'restrict_default_warehouse_flag' => :'BOOLEAN',
    :'restrict_default_warehouse_bin_flag' => :'BOOLEAN',
    :'mapi_name' => :'String',
    :'calendar_sync_integration_flag' => :'BOOLEAN',
    :'enable_ldap_authentication_flag' => :'BOOLEAN',
    :'ldap_configuration' => :'LdapConfigurationReference',
    :'ldap_user_name' => :'String',
    :'company_activity_tab_format' => :'String',
    :'invoice_time_tab_format' => :'String',
    :'invoice_screen_default_tab_format' => :'String',
    :'invoicing_display_options' => :'String',
    :'agreement_invoicing_display_options' => :'String',
    :'corelytics_username' => :'String',
    :'corelytics_password' => :'String',
    :'remote_package' => :'String',
    :'remote_package_platform' => :'String',
    :'remote_package_user_name' => :'String',
    :'remote_package_password' => :'String',
    :'remote_package_account' => :'String',
    :'authentication_service_type' => :'String',
    :'timebased_one_time_password_activated' => :'BOOLEAN',
    :'_info' => :'Metadata'
  }
end

Instance Method Details

#==(o) ⇒ Object

Checks equality by comparing each attribute.

Parameters:

  • Object (Object)

    to be compared



1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
# File 'lib/connectwise-ruby-sdk/models/member.rb', line 1530

def ==(o)
  return true if self.equal?(o)
  self.class == o.class &&
      id == o.id &&
      identifier == o.identifier &&
      password == o.password &&
      first_name == o.first_name &&
      middle_initial == o.middle_initial &&
      last_name == o.last_name &&
      title == o.title &&
      report_card == o.report_card &&
      license_class == o.license_class &&
      disable_online_flag == o.disable_online_flag &&
      enable_mobile_flag == o.enable_mobile_flag &&
      type == o.type &&
      employee_identifer == o.employee_identifer &&
      vendor_number == o.vendor_number &&
      notes == o.notes &&
      time_zone == o.time_zone &&
      country == o.country &&
      service_board_team_ids == o.service_board_team_ids &&
      enable_mobile_gps_flag == o.enable_mobile_gps_flag &&
      inactive_date == o.inactive_date &&
      inactive_flag == o.inactive_flag &&
       == o. &&
      photo == o.photo &&
      office_email == o.office_email &&
      office_phone == o.office_phone &&
      office_extension == o.office_extension &&
      mobile_email == o.mobile_email &&
      mobile_phone == o.mobile_phone &&
      mobile_extension == o.mobile_extension &&
      home_email == o.home_email &&
      home_phone == o.home_phone &&
      home_extension == o.home_extension &&
      default_email == o.default_email &&
      default_phone == o.default_phone &&
      security_role == o.security_role &&
      admin_flag == o.admin_flag &&
      structure_level == o.structure_level &&
      security_location == o.security_location &&
      default_location == o.default_location &&
      default_department == o.default_department &&
      reports_to == o.reports_to &&
      restrict_location_flag == o.restrict_location_flag &&
      restrict_department_flag == o.restrict_department_flag &&
      work_role == o.work_role &&
      work_type == o.work_type &&
      time_approver == o.time_approver &&
      expense_approver == o.expense_approver &&
      billable_forecast == o.billable_forecast &&
      daily_capacity == o.daily_capacity &&
      hourly_cost == o.hourly_cost &&
      hourly_rate == o.hourly_rate &&
      include_in_utilization_reporting_flag == o.include_in_utilization_reporting_flag &&
      require_expense_entry_flag == o.require_expense_entry_flag &&
      require_time_sheet_entry_flag == o.require_time_sheet_entry_flag &&
      require_start_and_end_time_on_time_entry_flag == o.require_start_and_end_time_on_time_entry_flag &&
      allow_in_cell_entry_on_time_sheet == o.allow_in_cell_entry_on_time_sheet &&
      enter_time_against_company_flag == o.enter_time_against_company_flag &&
      allow_expenses_entered_against_companies_flag == o.allow_expenses_entered_against_companies_flag &&
      time_reminder_email_flag == o.time_reminder_email_flag &&
      days_tolerance == o.days_tolerance &&
      minimum_hours == o.minimum_hours &&
      time_sheet_start_date == o.time_sheet_start_date &&
      hire_date == o.hire_date &&
      service_default_location == o.service_default_location &&
      service_default_department == o.service_default_department &&
      service_default_board == o.service_default_board &&
      restrict_service_default_location_flag == o.restrict_service_default_location_flag &&
      restrict_service_default_department_flag == o.restrict_service_default_department_flag &&
      excluded_service_board_ids == o.excluded_service_board_ids &&
      project_default_location == o.project_default_location &&
      project_default_department == o.project_default_department &&
      project_default_board == o.project_default_board &&
      restrict_project_default_location_flag == o.restrict_project_default_location_flag &&
      restrict_project_default_department_flag == o.restrict_project_default_department_flag &&
      excluded_project_board_ids == o.excluded_project_board_ids &&
      schedule_default_location == o.schedule_default_location &&
      schedule_default_department == o.schedule_default_department &&
      schedule_capacity == o.schedule_capacity &&
      service_location == o.service_location &&
      restrict_schedule_flag == o.restrict_schedule_flag &&
      hide_member_in_dispatch_portal_flag == o.hide_member_in_dispatch_portal_flag &&
      calendar == o.calendar &&
      sales_default_location == o.sales_default_location &&
      restrict_default_sales_territory_flag == o.restrict_default_sales_territory_flag &&
      warehouse == o.warehouse &&
      warehouse_bin == o.warehouse_bin &&
      restrict_default_warehouse_flag == o.restrict_default_warehouse_flag &&
      restrict_default_warehouse_bin_flag == o.restrict_default_warehouse_bin_flag &&
      mapi_name == o.mapi_name &&
      calendar_sync_integration_flag == o.calendar_sync_integration_flag &&
      enable_ldap_authentication_flag == o.enable_ldap_authentication_flag &&
      ldap_configuration == o.ldap_configuration &&
      ldap_user_name == o.ldap_user_name &&
      company_activity_tab_format == o.company_activity_tab_format &&
      invoice_time_tab_format == o.invoice_time_tab_format &&
      invoice_screen_default_tab_format == o.invoice_screen_default_tab_format &&
      invoicing_display_options == o.invoicing_display_options &&
      agreement_invoicing_display_options == o.agreement_invoicing_display_options &&
      corelytics_username == o.corelytics_username &&
      corelytics_password == o.corelytics_password &&
      remote_package == o.remote_package &&
      remote_package_platform == o.remote_package_platform &&
      remote_package_user_name == o.remote_package_user_name &&
      remote_package_password == o.remote_package_password &&
       == o. &&
      authentication_service_type == o.authentication_service_type &&
      timebased_one_time_password_activated == o.timebased_one_time_password_activated &&
      _info == o._info
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



1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
# File 'lib/connectwise-ruby-sdk/models/member.rb', line 1679

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 = ConnectWise.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



1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
# File 'lib/connectwise-ruby-sdk/models/member.rb', line 1745

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



1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
# File 'lib/connectwise-ruby-sdk/models/member.rb', line 1658

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 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


1645
1646
1647
# File 'lib/connectwise-ruby-sdk/models/member.rb', line 1645

def eql?(o)
  self == o
end

#hashFixnum

Calculates hash code according to all attributes.

Returns:

  • (Fixnum)

    Hash code



1651
1652
1653
# File 'lib/connectwise-ruby-sdk/models/member.rb', line 1651

def hash
  [id, identifier, password, first_name, middle_initial, last_name, title, report_card, license_class, disable_online_flag, enable_mobile_flag, type, employee_identifer, vendor_number, notes, time_zone, country, service_board_team_ids, enable_mobile_gps_flag, inactive_date, inactive_flag, , photo, office_email, office_phone, office_extension, mobile_email, mobile_phone, mobile_extension, home_email, home_phone, home_extension, default_email, default_phone, security_role, admin_flag, structure_level, security_location, default_location, default_department, reports_to, restrict_location_flag, restrict_department_flag, work_role, work_type, time_approver, expense_approver, billable_forecast, daily_capacity, hourly_cost, hourly_rate, include_in_utilization_reporting_flag, require_expense_entry_flag, require_time_sheet_entry_flag, require_start_and_end_time_on_time_entry_flag, allow_in_cell_entry_on_time_sheet, enter_time_against_company_flag, allow_expenses_entered_against_companies_flag, time_reminder_email_flag, days_tolerance, minimum_hours, time_sheet_start_date, hire_date, service_default_location, service_default_department, service_default_board, restrict_service_default_location_flag, restrict_service_default_department_flag, excluded_service_board_ids, project_default_location, project_default_department, project_default_board, restrict_project_default_location_flag, restrict_project_default_department_flag, excluded_project_board_ids, schedule_default_location, schedule_default_department, schedule_capacity, service_location, restrict_schedule_flag, hide_member_in_dispatch_portal_flag, calendar, sales_default_location, restrict_default_sales_territory_flag, warehouse, warehouse_bin, restrict_default_warehouse_flag, restrict_default_warehouse_bin_flag, mapi_name, calendar_sync_integration_flag, enable_ldap_authentication_flag, ldap_configuration, ldap_user_name, company_activity_tab_format, invoice_time_tab_format, invoice_screen_default_tab_format, invoicing_display_options, agreement_invoicing_display_options, corelytics_username, corelytics_password, remote_package, remote_package_platform, remote_package_user_name, remote_package_password, , authentication_service_type, timebased_one_time_password_activated, _info].hash
end

#list_invalid_propertiesObject

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

Returns:

  • Array for valid properies with the reasons



926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
# File 'lib/connectwise-ruby-sdk/models/member.rb', line 926

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

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

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

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

  if @first_name.to_s.length > 30
    invalid_properties.push("invalid value for 'first_name', the character length must be smaller than or equal to 30.")
  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 > 30
    invalid_properties.push("invalid value for 'last_name', the character length must be smaller than or equal to 30.")
  end

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

  return 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



1725
1726
1727
# File 'lib/connectwise-ruby-sdk/models/member.rb', line 1725

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



1731
1732
1733
1734
1735
1736
1737
1738
1739
# File 'lib/connectwise-ruby-sdk/models/member.rb', line 1731

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



1719
1720
1721
# File 'lib/connectwise-ruby-sdk/models/member.rb', line 1719

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



1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
# File 'lib/connectwise-ruby-sdk/models/member.rb', line 1109

def valid?
  return false if @identifier.nil?
  return false if @identifier.to_s.length > 15
  return false if !@password.nil? && @password.to_s.length > 60
  return false if @first_name.nil?
  return false if @first_name.to_s.length > 30
  return false if @last_name.nil?
  return false if @last_name.to_s.length > 30
  return false if !@title.nil? && @title.to_s.length > 50
  return false if @license_class.nil?
  license_class_validator = EnumAttributeValidator.new('String', ["F", "A", "C", "X"])
  return false unless license_class_validator.valid?(@license_class)
  return false if !@employee_identifer.nil? && @employee_identifer.to_s.length > 10
  return false if @time_zone.nil?
  return false if !@office_email.nil? && @office_email.to_s.length > 250
  return false if !@office_phone.nil? && @office_phone.to_s.length > 15
  return false if !@office_extension.nil? && @office_extension.to_s.length > 10
  return false if !@mobile_email.nil? && @mobile_email.to_s.length > 250
  return false if !@mobile_phone.nil? && @mobile_phone.to_s.length > 15
  return false if !@mobile_extension.nil? && @mobile_extension.to_s.length > 10
  return false if !@home_email.nil? && @home_email.to_s.length > 250
  return false if !@home_phone.nil? && @home_phone.to_s.length > 15
  return false if !@home_extension.nil? && @home_extension.to_s.length > 10
  return false if @default_email.nil?
  default_email_validator = EnumAttributeValidator.new('String', ["Office", "Mobile", "Home"])
  return false unless default_email_validator.valid?(@default_email)
  return false if @default_phone.nil?
  default_phone_validator = EnumAttributeValidator.new('String', ["Office", "Mobile", "Home"])
  return false unless default_phone_validator.valid?(@default_phone)
  return false if @security_role.nil?
  return false if @structure_level.nil?
  return false if @security_location.nil?
  return false if @default_location.nil?
  return false if @default_department.nil?
  return false if @work_role.nil?
  return false if @time_approver.nil?
  return false if @expense_approver.nil?
  return false if @hire_date.nil?
  return false if @sales_default_location.nil?
  return false if !@ldap_user_name.nil? && @ldap_user_name.to_s.length > 50
  return false if @company_activity_tab_format.nil?
  company_activity_tab_format_validator = EnumAttributeValidator.new('String', ["SummaryList", "DetailList"])
  return false unless company_activity_tab_format_validator.valid?(@company_activity_tab_format)
  return false if @invoice_time_tab_format.nil?
  invoice_time_tab_format_validator = EnumAttributeValidator.new('String', ["SummaryList", "DetailList"])
  return false unless invoice_time_tab_format_validator.valid?(@invoice_time_tab_format)
  return false if @invoice_screen_default_tab_format.nil?
  invoice_screen_default_tab_format_validator = EnumAttributeValidator.new('String', ["ShowInvoicingTab", "ShowAgreementInvoicingTab"])
  return false unless invoice_screen_default_tab_format_validator.valid?(@invoice_screen_default_tab_format)
  return false if @invoicing_display_options.nil?
  invoicing_display_options_validator = EnumAttributeValidator.new('String', ["RemainOnInvoicingScreen", "ShowRecentInvoices"])
  return false unless invoicing_display_options_validator.valid?(@invoicing_display_options)
  return false if @agreement_invoicing_display_options.nil?
  agreement_invoicing_display_options_validator = EnumAttributeValidator.new('String', ["RemainOnInvoicingScreen", "ShowRecentInvoices"])
  return false unless agreement_invoicing_display_options_validator.valid?(@agreement_invoicing_display_options)
  return false if !@corelytics_username.nil? && @corelytics_username.to_s.length > 50
  return false if !@corelytics_password.nil? && @corelytics_password.to_s.length > 50
  remote_package_validator = EnumAttributeValidator.new('String', ["LogMeIn", "NTR"])
  return false unless remote_package_validator.valid?(@remote_package)
  return false if !@remote_package_platform.nil? && @remote_package_platform.to_s.length > 250
  return false if !@remote_package_user_name.nil? && @remote_package_user_name.to_s.length > 50
  return false if !@remote_package_password.nil? && @remote_package_password.to_s.length > 50
  return false if !@remote_package_account.nil? && @remote_package_account.to_s.length > 250
  authentication_service_type_validator = EnumAttributeValidator.new('String', ["AuthAnvil", "GoogleAuthenticator"])
  return false unless authentication_service_type_validator.valid?(@authentication_service_type)
  return true
end