Class: ConnectWise::IntegratorLogin

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ IntegratorLogin

Initializes the object

Parameters:

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

    Model attributes in the form of hash



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
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
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
475
476
477
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
# File 'lib/connectwise-ruby-sdk/models/integrator_login.rb', line 274

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

end

Instance Attribute Details

#_infoObject

Metadata of the entity



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

def _info
  @_info
end

#activity_api_flagObject

Returns the value of attribute activity_api_flag.



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

def activity_api_flag
  @activity_api_flag
end

#activity_callback_urlObject

Returns the value of attribute activity_callback_url.



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

def activity_callback_url
  @activity_callback_url
end

#activity_legacy_callback_flagObject

Returns the value of attribute activity_legacy_callback_flag.



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

def activity_legacy_callback_flag
  @activity_legacy_callback_flag
end

#agreement_api_flagObject

Returns the value of attribute agreement_api_flag.



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

def agreement_api_flag
  @agreement_api_flag
end

#agreement_callback_legacy_flagObject

Returns the value of attribute agreement_callback_legacy_flag.



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

def agreement_callback_legacy_flag
  @agreement_callback_legacy_flag
end

#agreement_callback_urlObject

Returns the value of attribute agreement_callback_url.



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

def agreement_callback_url
  @agreement_callback_url
end

#boardObject

If integrator has access to ServiceTicket API, a service board is required



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

def board
  @board
end

#can_access_all_apis_flagObject

Returns the value of attribute can_access_all_apis_flag.



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

def can_access_all_apis_flag
  @can_access_all_apis_flag
end

#can_access_all_records_flagObject

This flag controls whether the integrator can access only the db records it created, or all system records



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

def can_access_all_records_flag
  @can_access_all_records_flag
end

#company_api_flagObject

Returns the value of attribute company_api_flag.



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

def company_api_flag
  @company_api_flag
end

#company_callback_urlObject

Returns the value of attribute company_callback_url.



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

def company_callback_url
  @company_callback_url
end

#company_legacy_callback_flagObject

Returns the value of attribute company_legacy_callback_flag.



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

def company_legacy_callback_flag
  @company_legacy_callback_flag
end

#configuration_api_flagObject

Returns the value of attribute configuration_api_flag.



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

def configuration_api_flag
  @configuration_api_flag
end

#configuration_auto_child_flagObject

Returns the value of attribute configuration_auto_child_flag.



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

def configuration_auto_child_flag
  @configuration_auto_child_flag
end

#configuration_callback_urlObject

Returns the value of attribute configuration_callback_url.



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

def configuration_callback_url
  @configuration_callback_url
end

#configuration_childling_flagObject

True if integrator is allowed to child configurations



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

def configuration_childling_flag
  @configuration_childling_flag
end

#configuration_legacy_callback_flagObject

Returns the value of attribute configuration_legacy_callback_flag.



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

def configuration_legacy_callback_flag
  @configuration_legacy_callback_flag
end

#contact_api_flagObject

Returns the value of attribute contact_api_flag.



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

def contact_api_flag
  @contact_api_flag
end

#contact_callback_urlObject

Returns the value of attribute contact_callback_url.



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

def contact_callback_url
  @contact_callback_url
end

#contact_legacy_callback_flagObject

Returns the value of attribute contact_legacy_callback_flag.



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

def contact_legacy_callback_flag
  @contact_legacy_callback_flag
end

#date_inactivatedObject

Returns the value of attribute date_inactivated.



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

def date_inactivated
  @date_inactivated
end

#document_api_flagObject

Returns the value of attribute document_api_flag.



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

def document_api_flag
  @document_api_flag
end

#idObject

Returns the value of attribute id.



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

def id
  @id
end

#inactivated_byObject

Returns the value of attribute inactivated_by.



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

def inactivated_by
  @inactivated_by
end

#inactive_flagObject

Returns the value of attribute inactive_flag.



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

def inactive_flag
  @inactive_flag
end

#invoice_api_flagObject

Returns the value of attribute invoice_api_flag.



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

def invoice_api_flag
  @invoice_api_flag
end

#log_me_in_support_api_flagObject

Returns the value of attribute log_me_in_support_api_flag.



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

def log_me_in_support_api_flag
  @log_me_in_support_api_flag
end

#managed_services_api_flagObject

Returns the value of attribute managed_services_api_flag.



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

def managed_services_api_flag
  @managed_services_api_flag
end

#managed_services_auto_child_flagObject

Returns the value of attribute managed_services_auto_child_flag.



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

def managed_services_auto_child_flag
  @managed_services_auto_child_flag
end

#managed_services_childing_flagObject

True if integrator is allowed to child configurations



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

def managed_services_childing_flag
  @managed_services_childing_flag
end

#marketing_api_flagObject

Returns the value of attribute marketing_api_flag.



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

def marketing_api_flag
  @marketing_api_flag
end

#memberObject

If integrator has access to TimeEntry API, a member is required



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

def member
  @member
end

#member_api_flagObject

Returns the value of attribute member_api_flag.



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

def member_api_flag
  @member_api_flag
end

#ntr_support_api_flagObject

Returns the value of attribute ntr_support_api_flag.



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

def ntr_support_api_flag
  @ntr_support_api_flag
end

#opportunity_api_flagObject

Returns the value of attribute opportunity_api_flag.



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

def opportunity_api_flag
  @opportunity_api_flag
end

#opportunity_callback_urlObject

Returns the value of attribute opportunity_callback_url.



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

def opportunity_callback_url
  @opportunity_callback_url
end

#opportunity_conversion_api_flagObject

True if the member has access to the Opportunity Conversion Api



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

def opportunity_conversion_api_flag
  @opportunity_conversion_api_flag
end

#opportunity_legacy_callback_flagObject

Returns the value of attribute opportunity_legacy_callback_flag.



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

def opportunity_legacy_callback_flag
  @opportunity_legacy_callback_flag
end

#passwordObject

The password will never be returned in response



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

def password
  @password
end

#product_api_flagObject

Returns the value of attribute product_api_flag.



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

def product_api_flag
  @product_api_flag
end

#product_callback_urlObject

Returns the value of attribute product_callback_url.



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

def product_callback_url
  @product_callback_url
end

#product_legacy_callback_flagObject

Returns the value of attribute product_legacy_callback_flag.



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

def product_legacy_callback_flag
  @product_legacy_callback_flag
end

#project_api_flagObject

Returns the value of attribute project_api_flag.



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

def project_api_flag
  @project_api_flag
end

#project_callback_urlObject

Returns the value of attribute project_callback_url.



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

def project_callback_url
  @project_callback_url
end

#project_legacy_callback_flagObject

Returns the value of attribute project_legacy_callback_flag.



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

def project_legacy_callback_flag
  @project_legacy_callback_flag
end

#purchasing_api_flagObject

Returns the value of attribute purchasing_api_flag.



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

def purchasing_api_flag
  @purchasing_api_flag
end

#purchasing_callback_urlObject

Returns the value of attribute purchasing_callback_url.



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

def purchasing_callback_url
  @purchasing_callback_url
end

#purchasing_legacy_callback_flagObject

Returns the value of attribute purchasing_legacy_callback_flag.



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

def purchasing_legacy_callback_flag
  @purchasing_legacy_callback_flag
end

#reporting_api_flagObject

Returns the value of attribute reporting_api_flag.



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

def reporting_api_flag
  @reporting_api_flag
end

#schedule_api_flagObject

Returns the value of attribute schedule_api_flag.



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

def schedule_api_flag
  @schedule_api_flag
end

#schedule_callback_urlObject

Returns the value of attribute schedule_callback_url.



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

def schedule_callback_url
  @schedule_callback_url
end

#schedule_legacy_callback_flagObject

Returns the value of attribute schedule_legacy_callback_flag.



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

def schedule_legacy_callback_flag
  @schedule_legacy_callback_flag
end

#service_board_callback_urlObject

Returns the value of attribute service_board_callback_url.



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

def service_board_callback_url
  @service_board_callback_url
end

#service_board_legacy_callback_flagObject

Returns the value of attribute service_board_legacy_callback_flag.



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

def service_board_legacy_callback_flag
  @service_board_legacy_callback_flag
end

#service_ticket_api_flagObject

Returns the value of attribute service_ticket_api_flag.



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

def service_ticket_api_flag
  @service_ticket_api_flag
end

#system_api_flagObject

Returns the value of attribute system_api_flag.



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

def system_api_flag
  @system_api_flag
end

#time_entry_api_flagObject

Returns the value of attribute time_entry_api_flag.



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

def time_entry_api_flag
  @time_entry_api_flag
end

#time_entry_callback_urlObject

Returns the value of attribute time_entry_callback_url.



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

def time_entry_callback_url
  @time_entry_callback_url
end

#time_entry_legacy_callback_flagObject

Returns the value of attribute time_entry_legacy_callback_flag.



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

def time_entry_legacy_callback_flag
  @time_entry_legacy_callback_flag
end

#usernameObject

Returns the value of attribute username.



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

def username
  @username
end

Class Method Details

.attribute_mapObject

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



139
140
141
142
143
144
145
146
147
148
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
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
# File 'lib/connectwise-ruby-sdk/models/integrator_login.rb', line 139

def self.attribute_map
  {
    :'id' => :'id',
    :'username' => :'username',
    :'password' => :'password',
    :'can_access_all_records_flag' => :'canAccessAllRecordsFlag',
    :'can_access_all_apis_flag' => :'canAccessAllApisFlag',
    :'inactive_flag' => :'inactiveFlag',
    :'date_inactivated' => :'dateInactivated',
    :'inactivated_by' => :'inactivatedBy',
    :'service_ticket_api_flag' => :'serviceTicketApiFlag',
    :'board' => :'board',
    :'service_board_callback_url' => :'serviceBoardCallbackUrl',
    :'service_board_legacy_callback_flag' => :'serviceBoardLegacyCallbackFlag',
    :'time_entry_api_flag' => :'timeEntryApiFlag',
    :'member' => :'member',
    :'time_entry_callback_url' => :'timeEntryCallbackUrl',
    :'time_entry_legacy_callback_flag' => :'timeEntryLegacyCallbackFlag',
    :'managed_services_api_flag' => :'managedServicesApiFlag',
    :'managed_services_auto_child_flag' => :'managedServicesAutoChildFlag',
    :'managed_services_childing_flag' => :'managedServicesChildingFlag',
    :'contact_api_flag' => :'contactApiFlag',
    :'contact_callback_url' => :'contactCallbackUrl',
    :'contact_legacy_callback_flag' => :'contactLegacyCallbackFlag',
    :'company_api_flag' => :'companyApiFlag',
    :'company_callback_url' => :'companyCallbackUrl',
    :'company_legacy_callback_flag' => :'CompanyLegacyCallbackFlag',
    :'activity_api_flag' => :'activityApiFlag',
    :'activity_callback_url' => :'activityCallbackUrl',
    :'activity_legacy_callback_flag' => :'activityLegacyCallbackFlag',
    :'ntr_support_api_flag' => :'ntrSupportApiFlag',
    :'log_me_in_support_api_flag' => :'logMeInSupportApiFlag',
    :'invoice_api_flag' => :'invoiceApiFlag',
    :'product_api_flag' => :'productApiFlag',
    :'product_callback_url' => :'productCallbackUrl',
    :'product_legacy_callback_flag' => :'productLegacyCallbackFlag',
    :'opportunity_api_flag' => :'opportunityApiFlag',
    :'opportunity_callback_url' => :'opportunityCallbackUrl',
    :'opportunity_legacy_callback_flag' => :'opportunityLegacyCallbackFlag',
    :'opportunity_conversion_api_flag' => :'opportunityConversionApiFlag',
    :'member_api_flag' => :'memberApiFlag',
    :'marketing_api_flag' => :'marketingApiFlag',
    :'purchasing_api_flag' => :'purchasingApiFlag',
    :'purchasing_callback_url' => :'purchasingCallbackUrl',
    :'purchasing_legacy_callback_flag' => :'purchasingLegacyCallbackFlag',
    :'reporting_api_flag' => :'reportingApiFlag',
    :'system_api_flag' => :'systemApiFlag',
    :'project_api_flag' => :'projectApiFlag',
    :'project_callback_url' => :'projectCallbackUrl',
    :'project_legacy_callback_flag' => :'projectLegacyCallbackFlag',
    :'configuration_api_flag' => :'configurationApiFlag',
    :'configuration_auto_child_flag' => :'configurationAutoChildFlag',
    :'configuration_childling_flag' => :'configurationChildlingFlag',
    :'configuration_callback_url' => :'configurationCallbackUrl',
    :'configuration_legacy_callback_flag' => :'configurationLegacyCallbackFlag',
    :'schedule_api_flag' => :'scheduleApiFlag',
    :'schedule_callback_url' => :'scheduleCallbackUrl',
    :'schedule_legacy_callback_flag' => :'scheduleLegacyCallbackFlag',
    :'agreement_api_flag' => :'agreementApiFlag',
    :'agreement_callback_url' => :'agreementCallbackUrl',
    :'agreement_callback_legacy_flag' => :'agreementCallbackLegacyFlag',
    :'document_api_flag' => :'documentApiFlag',
    :'_info' => :'_info'
  }
end

.swagger_typesObject

Attribute type mapping.



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
# File 'lib/connectwise-ruby-sdk/models/integrator_login.rb', line 206

def self.swagger_types
  {
    :'id' => :'Integer',
    :'username' => :'String',
    :'password' => :'String',
    :'can_access_all_records_flag' => :'BOOLEAN',
    :'can_access_all_apis_flag' => :'BOOLEAN',
    :'inactive_flag' => :'BOOLEAN',
    :'date_inactivated' => :'DateTime',
    :'inactivated_by' => :'MemberReference',
    :'service_ticket_api_flag' => :'BOOLEAN',
    :'board' => :'BoardReference',
    :'service_board_callback_url' => :'String',
    :'service_board_legacy_callback_flag' => :'BOOLEAN',
    :'time_entry_api_flag' => :'BOOLEAN',
    :'member' => :'MemberReference',
    :'time_entry_callback_url' => :'String',
    :'time_entry_legacy_callback_flag' => :'BOOLEAN',
    :'managed_services_api_flag' => :'BOOLEAN',
    :'managed_services_auto_child_flag' => :'BOOLEAN',
    :'managed_services_childing_flag' => :'BOOLEAN',
    :'contact_api_flag' => :'BOOLEAN',
    :'contact_callback_url' => :'String',
    :'contact_legacy_callback_flag' => :'BOOLEAN',
    :'company_api_flag' => :'BOOLEAN',
    :'company_callback_url' => :'String',
    :'company_legacy_callback_flag' => :'BOOLEAN',
    :'activity_api_flag' => :'BOOLEAN',
    :'activity_callback_url' => :'String',
    :'activity_legacy_callback_flag' => :'BOOLEAN',
    :'ntr_support_api_flag' => :'BOOLEAN',
    :'log_me_in_support_api_flag' => :'BOOLEAN',
    :'invoice_api_flag' => :'BOOLEAN',
    :'product_api_flag' => :'BOOLEAN',
    :'product_callback_url' => :'String',
    :'product_legacy_callback_flag' => :'BOOLEAN',
    :'opportunity_api_flag' => :'BOOLEAN',
    :'opportunity_callback_url' => :'String',
    :'opportunity_legacy_callback_flag' => :'BOOLEAN',
    :'opportunity_conversion_api_flag' => :'BOOLEAN',
    :'member_api_flag' => :'BOOLEAN',
    :'marketing_api_flag' => :'BOOLEAN',
    :'purchasing_api_flag' => :'BOOLEAN',
    :'purchasing_callback_url' => :'String',
    :'purchasing_legacy_callback_flag' => :'BOOLEAN',
    :'reporting_api_flag' => :'BOOLEAN',
    :'system_api_flag' => :'BOOLEAN',
    :'project_api_flag' => :'BOOLEAN',
    :'project_callback_url' => :'String',
    :'project_legacy_callback_flag' => :'BOOLEAN',
    :'configuration_api_flag' => :'BOOLEAN',
    :'configuration_auto_child_flag' => :'BOOLEAN',
    :'configuration_childling_flag' => :'BOOLEAN',
    :'configuration_callback_url' => :'String',
    :'configuration_legacy_callback_flag' => :'BOOLEAN',
    :'schedule_api_flag' => :'BOOLEAN',
    :'schedule_callback_url' => :'String',
    :'schedule_legacy_callback_flag' => :'BOOLEAN',
    :'agreement_api_flag' => :'BOOLEAN',
    :'agreement_callback_url' => :'String',
    :'agreement_callback_legacy_flag' => :'BOOLEAN',
    :'document_api_flag' => :'BOOLEAN',
    :'_info' => :'Metadata'
  }
end

Instance Method Details

#==(o) ⇒ Object

Checks equality by comparing each attribute.

Parameters:

  • Object (Object)

    to be compared



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
# File 'lib/connectwise-ruby-sdk/models/integrator_login.rb', line 781

def ==(o)
  return true if self.equal?(o)
  self.class == o.class &&
      id == o.id &&
      username == o.username &&
      password == o.password &&
      can_access_all_records_flag == o.can_access_all_records_flag &&
      can_access_all_apis_flag == o.can_access_all_apis_flag &&
      inactive_flag == o.inactive_flag &&
      date_inactivated == o.date_inactivated &&
      inactivated_by == o.inactivated_by &&
      service_ticket_api_flag == o.service_ticket_api_flag &&
      board == o.board &&
      service_board_callback_url == o.service_board_callback_url &&
      service_board_legacy_callback_flag == o.service_board_legacy_callback_flag &&
      time_entry_api_flag == o.time_entry_api_flag &&
      member == o.member &&
      time_entry_callback_url == o.time_entry_callback_url &&
      time_entry_legacy_callback_flag == o.time_entry_legacy_callback_flag &&
      managed_services_api_flag == o.managed_services_api_flag &&
      managed_services_auto_child_flag == o.managed_services_auto_child_flag &&
      managed_services_childing_flag == o.managed_services_childing_flag &&
      contact_api_flag == o.contact_api_flag &&
      contact_callback_url == o.contact_callback_url &&
      contact_legacy_callback_flag == o.contact_legacy_callback_flag &&
      company_api_flag == o.company_api_flag &&
      company_callback_url == o.company_callback_url &&
      company_legacy_callback_flag == o.company_legacy_callback_flag &&
      activity_api_flag == o.activity_api_flag &&
      activity_callback_url == o.activity_callback_url &&
      activity_legacy_callback_flag == o.activity_legacy_callback_flag &&
      ntr_support_api_flag == o.ntr_support_api_flag &&
      log_me_in_support_api_flag == o.log_me_in_support_api_flag &&
      invoice_api_flag == o.invoice_api_flag &&
      product_api_flag == o.product_api_flag &&
      product_callback_url == o.product_callback_url &&
      product_legacy_callback_flag == o.product_legacy_callback_flag &&
      opportunity_api_flag == o.opportunity_api_flag &&
      opportunity_callback_url == o.opportunity_callback_url &&
      opportunity_legacy_callback_flag == o.opportunity_legacy_callback_flag &&
      opportunity_conversion_api_flag == o.opportunity_conversion_api_flag &&
      member_api_flag == o.member_api_flag &&
      marketing_api_flag == o.marketing_api_flag &&
      purchasing_api_flag == o.purchasing_api_flag &&
      purchasing_callback_url == o.purchasing_callback_url &&
      purchasing_legacy_callback_flag == o.purchasing_legacy_callback_flag &&
      reporting_api_flag == o.reporting_api_flag &&
      system_api_flag == o.system_api_flag &&
      project_api_flag == o.project_api_flag &&
      project_callback_url == o.project_callback_url &&
      project_legacy_callback_flag == o.project_legacy_callback_flag &&
      configuration_api_flag == o.configuration_api_flag &&
      configuration_auto_child_flag == o.configuration_auto_child_flag &&
      configuration_childling_flag == o.configuration_childling_flag &&
      configuration_callback_url == o.configuration_callback_url &&
      configuration_legacy_callback_flag == o.configuration_legacy_callback_flag &&
      schedule_api_flag == o.schedule_api_flag &&
      schedule_callback_url == o.schedule_callback_url &&
      schedule_legacy_callback_flag == o.schedule_legacy_callback_flag &&
      agreement_api_flag == o.agreement_api_flag &&
      agreement_callback_url == o.agreement_callback_url &&
      agreement_callback_legacy_flag == o.agreement_callback_legacy_flag &&
      document_api_flag == o.document_api_flag &&
      _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



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
# File 'lib/connectwise-ruby-sdk/models/integrator_login.rb', line 883

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



949
950
951
952
953
954
955
956
957
958
959
960
961
# File 'lib/connectwise-ruby-sdk/models/integrator_login.rb', line 949

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



862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
# File 'lib/connectwise-ruby-sdk/models/integrator_login.rb', line 862

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


849
850
851
# File 'lib/connectwise-ruby-sdk/models/integrator_login.rb', line 849

def eql?(o)
  self == o
end

#hashFixnum

Calculates hash code according to all attributes.

Returns:

  • (Fixnum)

    Hash code



855
856
857
# File 'lib/connectwise-ruby-sdk/models/integrator_login.rb', line 855

def hash
  [id, username, password, can_access_all_records_flag, can_access_all_apis_flag, inactive_flag, date_inactivated, inactivated_by, service_ticket_api_flag, board, service_board_callback_url, service_board_legacy_callback_flag, time_entry_api_flag, member, time_entry_callback_url, time_entry_legacy_callback_flag, managed_services_api_flag, managed_services_auto_child_flag, managed_services_childing_flag, contact_api_flag, contact_callback_url, contact_legacy_callback_flag, company_api_flag, company_callback_url, company_legacy_callback_flag, activity_api_flag, activity_callback_url, activity_legacy_callback_flag, ntr_support_api_flag, log_me_in_support_api_flag, invoice_api_flag, product_api_flag, product_callback_url, product_legacy_callback_flag, opportunity_api_flag, opportunity_callback_url, opportunity_legacy_callback_flag, opportunity_conversion_api_flag, member_api_flag, marketing_api_flag, purchasing_api_flag, purchasing_callback_url, purchasing_legacy_callback_flag, reporting_api_flag, system_api_flag, project_api_flag, project_callback_url, project_legacy_callback_flag, configuration_api_flag, configuration_auto_child_flag, configuration_childling_flag, configuration_callback_url, configuration_legacy_callback_flag, schedule_api_flag, schedule_callback_url, schedule_legacy_callback_flag, agreement_api_flag, agreement_callback_url, agreement_callback_legacy_flag, document_api_flag, _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



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
# File 'lib/connectwise-ruby-sdk/models/integrator_login.rb', line 528

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

  if !@agreement_callback_url.nil? && @agreement_callback_url.to_s.length > 1000
    invalid_properties.push("invalid value for 'agreement_callback_url', the character length must be smaller than or equal to 1000.")
  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



929
930
931
# File 'lib/connectwise-ruby-sdk/models/integrator_login.rb', line 929

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



935
936
937
938
939
940
941
942
943
# File 'lib/connectwise-ruby-sdk/models/integrator_login.rb', line 935

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



923
924
925
# File 'lib/connectwise-ruby-sdk/models/integrator_login.rb', line 923

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



599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
# File 'lib/connectwise-ruby-sdk/models/integrator_login.rb', line 599

def valid?
  return false if @username.nil?
  return false if @username.to_s.length > 50
  return false if @password.nil?
  return false if @password.to_s.length > 50
  return false if !@service_board_callback_url.nil? && @service_board_callback_url.to_s.length > 1000
  return false if !@time_entry_callback_url.nil? && @time_entry_callback_url.to_s.length > 1000
  return false if !@contact_callback_url.nil? && @contact_callback_url.to_s.length > 1000
  return false if !@company_callback_url.nil? && @company_callback_url.to_s.length > 1000
  return false if !@activity_callback_url.nil? && @activity_callback_url.to_s.length > 1000
  return false if !@product_callback_url.nil? && @product_callback_url.to_s.length > 1000
  return false if !@opportunity_callback_url.nil? && @opportunity_callback_url.to_s.length > 1000
  return false if !@purchasing_callback_url.nil? && @purchasing_callback_url.to_s.length > 1000
  return false if !@project_callback_url.nil? && @project_callback_url.to_s.length > 1000
  return false if !@configuration_callback_url.nil? && @configuration_callback_url.to_s.length > 1000
  return false if !@schedule_callback_url.nil? && @schedule_callback_url.to_s.length > 1000
  return false if !@agreement_callback_url.nil? && @agreement_callback_url.to_s.length > 1000
  return true
end