Class: ConnectWise::ServiceSignoff

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

Defined Under Namespace

Classes: EnumAttributeValidator

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ ServiceSignoff

Initializes the object

Parameters:

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

    Model attributes in the form of hash



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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

end

Instance Attribute Details

#_infoObject

Metadata of the entity



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

def _info
  @_info
end

#billing_methods_textObject

Returns the value of attribute billing_methods_text.



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

def billing_methods_text
  @billing_methods_text
end

#billing_methods_text_flagObject

On add/post, if billingMethodsText.Length > 0, this is set to true



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

def billing_methods_text_flag
  @billing_methods_text_flag
end

#billing_terms_flagObject

Returns the value of attribute billing_terms_flag.



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

def billing_terms_flag
  @billing_terms_flag
end

#company_info_flagObject

Returns the value of attribute company_info_flag.



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

def company_info_flag
  @company_info_flag
end

#configurations_flagObject

Returns the value of attribute configurations_flag.



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

def configurations_flag
  @configurations_flag
end

#credit_card_fields_flagObject

Returns the value of attribute credit_card_fields_flag.



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

def credit_card_fields_flag
  @credit_card_fields_flag
end

#customer_signoff_fields_flagObject

Returns the value of attribute customer_signoff_fields_flag.



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

def customer_signoff_fields_flag
  @customer_signoff_fields_flag
end

#customer_signoff_textObject

Returns the value of attribute customer_signoff_text.



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

def customer_signoff_text
  @customer_signoff_text
end

#customer_signoff_text_flagObject

On add/post, if customerSignoffText.Length > 0, this is set to true



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

def customer_signoff_text_flag
  @customer_signoff_text_flag
end

#default_ff_flagObject

Returns the value of attribute default_ff_flag.



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

def default_ff_flag
  @default_ff_flag
end

#default_flagObject

Returns the value of attribute default_flag.



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

def default_flag
  @default_flag
end

#discussion_flagObject

Returns the value of attribute discussion_flag.



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

def discussion_flag
  @discussion_flag
end

#expense_agreement_flagObject

Returns the value of attribute expense_agreement_flag.



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

def expense_agreement_flag
  @expense_agreement_flag
end

#expense_amount_flagObject

Returns the value of attribute expense_amount_flag.



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

def expense_amount_flag
  @expense_amount_flag
end

#expense_bill_flagObject

Returns the value of attribute expense_bill_flag.



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

def expense_bill_flag
  @expense_bill_flag
end

#expense_date_flagObject

Returns the value of attribute expense_date_flag.



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

def expense_date_flag
  @expense_date_flag
end

#expense_flagObject

On add/post, if any expense related flag is set to true, this is also set to true



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

def expense_flag
  @expense_flag
end

#expense_manual_entryObject

Returns the value of attribute expense_manual_entry.



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

def expense_manual_entry
  @expense_manual_entry
end

#expense_manual_flagObject

Returns the value of attribute expense_manual_flag.



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

def expense_manual_flag
  @expense_manual_flag
end

#expense_member_flagObject

Returns the value of attribute expense_member_flag.



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

def expense_member_flag
  @expense_member_flag
end

#expense_notes_flagObject

Returns the value of attribute expense_notes_flag.



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

def expense_notes_flag
  @expense_notes_flag
end

#expense_tax_flagObject

Returns the value of attribute expense_tax_flag.



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

def expense_tax_flag
  @expense_tax_flag
end

#expense_type_flagObject

Returns the value of attribute expense_type_flag.



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

def expense_type_flag
  @expense_type_flag
end

#idObject

Returns the value of attribute id.



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

def id
  @id
end

#internal_notes_flagObject

Returns the value of attribute internal_notes_flag.



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

def internal_notes_flag
  @internal_notes_flag
end

#nameObject

Returns the value of attribute name.



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

def name
  @name
end

#product_agreement_flagObject

Returns the value of attribute product_agreement_flag.



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

def product_agreement_flag
  @product_agreement_flag
end

#product_bill_flagObject

Returns the value of attribute product_bill_flag.



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

def product_bill_flag
  @product_bill_flag
end

#product_description_flagObject

Returns the value of attribute product_description_flag.



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

def product_description_flag
  @product_description_flag
end

#product_extended_amount_flagObject

Returns the value of attribute product_extended_amount_flag.



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

def product_extended_amount_flag
  @product_extended_amount_flag
end

#product_flagObject

On add/post, if any product related flag is set to true, this is also set to true



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

def product_flag
  @product_flag
end

#product_manual_entryObject

Returns the value of attribute product_manual_entry.



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

def product_manual_entry
  @product_manual_entry
end

#product_manual_flagObject

Returns the value of attribute product_manual_flag.



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

def product_manual_flag
  @product_manual_flag
end

#product_price_flagObject

Returns the value of attribute product_price_flag.



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

def product_price_flag
  @product_price_flag
end

#product_quantity_flagObject

Returns the value of attribute product_quantity_flag.



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

def product_quantity_flag
  @product_quantity_flag
end

#product_tax_flagObject

Returns the value of attribute product_tax_flag.



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

def product_tax_flag
  @product_tax_flag
end

#resolution_flagObject

Returns the value of attribute resolution_flag.



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

def resolution_flag
  @resolution_flag
end

#summary_flagObject

Returns the value of attribute summary_flag.



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

def summary_flag
  @summary_flag
end

#taskObject

On add/post, if this is set but no value is set for taskFlag, taskFlag is set to true



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

def task
  @task
end

#task_flagObject

On add/post, if this is set to true but no value is set for task, task is defaulted to ServiceTasks.All



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

def task_flag
  @task_flag
end

#technician_signoff_flagObject

Returns the value of attribute technician_signoff_flag.



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

def technician_signoff_flag
  @technician_signoff_flag
end

#time_agreement_flagObject

Returns the value of attribute time_agreement_flag.



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

def time_agreement_flag
  @time_agreement_flag
end

#time_bill_flagObject

Returns the value of attribute time_bill_flag.



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

def time_bill_flag
  @time_bill_flag
end

#time_date_flagObject

Returns the value of attribute time_date_flag.



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

def time_date_flag
  @time_date_flag
end

#time_extended_amount_flagObject

Returns the value of attribute time_extended_amount_flag.



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

def time_extended_amount_flag
  @time_extended_amount_flag
end

#time_flagObject

On add/post, if any time related flag is set to true, this is also set to true



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

def time_flag
  @time_flag
end

#time_hours_flagObject

Returns the value of attribute time_hours_flag.



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

def time_hours_flag
  @time_hours_flag
end

#time_manual_entryObject

Returns the value of attribute time_manual_entry.



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

def time_manual_entry
  @time_manual_entry
end

#time_manual_flagObject

Returns the value of attribute time_manual_flag.



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

def time_manual_flag
  @time_manual_flag
end

#time_member_flagObject

Returns the value of attribute time_member_flag.



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

def time_member_flag
  @time_member_flag
end

#time_notes_flagObject

Returns the value of attribute time_notes_flag.



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

def time_notes_flag
  @time_notes_flag
end

#time_rate_flagObject

Returns the value of attribute time_rate_flag.



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

def time_rate_flag
  @time_rate_flag
end

#time_start_end_flagObject

Returns the value of attribute time_start_end_flag.



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

def time_start_end_flag
  @time_start_end_flag
end

#time_tax_flagObject

Returns the value of attribute time_tax_flag.



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

def time_tax_flag
  @time_tax_flag
end

#time_work_type_flagObject

Returns the value of attribute time_work_type_flag.



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

def time_work_type_flag
  @time_work_type_flag
end

#visible_logo_flagObject

Returns the value of attribute visible_logo_flag.



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

def visible_logo_flag
  @visible_logo_flag
end

Class Method Details

.attribute_mapObject

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



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
204
205
206
207
208
209
210
211
212
# File 'lib/connectwise-ruby-sdk/models/service_signoff.rb', line 152

def self.attribute_map
  {
    :'id' => :'id',
    :'name' => :'name',
    :'default_flag' => :'defaultFlag',
    :'visible_logo_flag' => :'visibleLogoFlag',
    :'company_info_flag' => :'companyInfoFlag',
    :'billing_terms_flag' => :'billingTermsFlag',
    :'summary_flag' => :'summaryFlag',
    :'discussion_flag' => :'discussionFlag',
    :'task_flag' => :'taskFlag',
    :'task' => :'task',
    :'configurations_flag' => :'configurationsFlag',
    :'internal_notes_flag' => :'internalNotesFlag',
    :'resolution_flag' => :'resolutionFlag',
    :'time_flag' => :'timeFlag',
    :'time_member_flag' => :'timeMemberFlag',
    :'time_date_flag' => :'timeDateFlag',
    :'time_start_end_flag' => :'timeStartEndFlag',
    :'time_bill_flag' => :'timeBillFlag',
    :'time_hours_flag' => :'timeHoursFlag',
    :'time_rate_flag' => :'timeRateFlag',
    :'time_extended_amount_flag' => :'timeExtendedAmountFlag',
    :'time_work_type_flag' => :'timeWorkTypeFlag',
    :'time_agreement_flag' => :'timeAgreementFlag',
    :'time_notes_flag' => :'timeNotesFlag',
    :'time_manual_flag' => :'timeManualFlag',
    :'time_manual_entry' => :'timeManualEntry',
    :'time_tax_flag' => :'timeTaxFlag',
    :'expense_flag' => :'expenseFlag',
    :'expense_date_flag' => :'expenseDateFlag',
    :'expense_member_flag' => :'expenseMemberFlag',
    :'expense_type_flag' => :'expenseTypeFlag',
    :'expense_bill_flag' => :'expenseBillFlag',
    :'expense_amount_flag' => :'expenseAmountFlag',
    :'expense_agreement_flag' => :'expenseAgreementFlag',
    :'expense_notes_flag' => :'expenseNotesFlag',
    :'expense_tax_flag' => :'expenseTaxFlag',
    :'expense_manual_flag' => :'expenseManualFlag',
    :'expense_manual_entry' => :'expenseManualEntry',
    :'product_flag' => :'productFlag',
    :'product_description_flag' => :'productDescriptionFlag',
    :'product_bill_flag' => :'productBillFlag',
    :'product_quantity_flag' => :'productQuantityFlag',
    :'product_price_flag' => :'productPriceFlag',
    :'product_extended_amount_flag' => :'productExtendedAmountFlag',
    :'product_agreement_flag' => :'productAgreementFlag',
    :'product_manual_flag' => :'productManualFlag',
    :'product_manual_entry' => :'productManualEntry',
    :'product_tax_flag' => :'productTaxFlag',
    :'technician_signoff_flag' => :'technicianSignoffFlag',
    :'customer_signoff_text_flag' => :'customerSignoffTextFlag',
    :'customer_signoff_text' => :'customerSignoffText',
    :'customer_signoff_fields_flag' => :'customerSignoffFieldsFlag',
    :'billing_methods_text_flag' => :'billingMethodsTextFlag',
    :'billing_methods_text' => :'billingMethodsText',
    :'credit_card_fields_flag' => :'creditCardFieldsFlag',
    :'default_ff_flag' => :'defaultFFFlag',
    :'_info' => :'_info'
  }
end

.swagger_typesObject

Attribute type mapping.



215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
# File 'lib/connectwise-ruby-sdk/models/service_signoff.rb', line 215

def self.swagger_types
  {
    :'id' => :'Integer',
    :'name' => :'String',
    :'default_flag' => :'BOOLEAN',
    :'visible_logo_flag' => :'BOOLEAN',
    :'company_info_flag' => :'BOOLEAN',
    :'billing_terms_flag' => :'BOOLEAN',
    :'summary_flag' => :'BOOLEAN',
    :'discussion_flag' => :'BOOLEAN',
    :'task_flag' => :'BOOLEAN',
    :'task' => :'String',
    :'configurations_flag' => :'BOOLEAN',
    :'internal_notes_flag' => :'BOOLEAN',
    :'resolution_flag' => :'BOOLEAN',
    :'time_flag' => :'BOOLEAN',
    :'time_member_flag' => :'BOOLEAN',
    :'time_date_flag' => :'BOOLEAN',
    :'time_start_end_flag' => :'BOOLEAN',
    :'time_bill_flag' => :'BOOLEAN',
    :'time_hours_flag' => :'BOOLEAN',
    :'time_rate_flag' => :'BOOLEAN',
    :'time_extended_amount_flag' => :'BOOLEAN',
    :'time_work_type_flag' => :'BOOLEAN',
    :'time_agreement_flag' => :'BOOLEAN',
    :'time_notes_flag' => :'BOOLEAN',
    :'time_manual_flag' => :'BOOLEAN',
    :'time_manual_entry' => :'Integer',
    :'time_tax_flag' => :'BOOLEAN',
    :'expense_flag' => :'BOOLEAN',
    :'expense_date_flag' => :'BOOLEAN',
    :'expense_member_flag' => :'BOOLEAN',
    :'expense_type_flag' => :'BOOLEAN',
    :'expense_bill_flag' => :'BOOLEAN',
    :'expense_amount_flag' => :'BOOLEAN',
    :'expense_agreement_flag' => :'BOOLEAN',
    :'expense_notes_flag' => :'BOOLEAN',
    :'expense_tax_flag' => :'BOOLEAN',
    :'expense_manual_flag' => :'BOOLEAN',
    :'expense_manual_entry' => :'Integer',
    :'product_flag' => :'BOOLEAN',
    :'product_description_flag' => :'BOOLEAN',
    :'product_bill_flag' => :'BOOLEAN',
    :'product_quantity_flag' => :'BOOLEAN',
    :'product_price_flag' => :'BOOLEAN',
    :'product_extended_amount_flag' => :'BOOLEAN',
    :'product_agreement_flag' => :'BOOLEAN',
    :'product_manual_flag' => :'BOOLEAN',
    :'product_manual_entry' => :'Integer',
    :'product_tax_flag' => :'BOOLEAN',
    :'technician_signoff_flag' => :'BOOLEAN',
    :'customer_signoff_text_flag' => :'BOOLEAN',
    :'customer_signoff_text' => :'String',
    :'customer_signoff_fields_flag' => :'BOOLEAN',
    :'billing_methods_text_flag' => :'BOOLEAN',
    :'billing_methods_text' => :'String',
    :'credit_card_fields_flag' => :'BOOLEAN',
    :'default_ff_flag' => :'BOOLEAN',
    :'_info' => :'Metadata'
  }
end

Instance Method Details

#==(o) ⇒ Object

Checks equality by comparing each attribute.

Parameters:

  • Object (Object)

    to be compared



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

def ==(o)
  return true if self.equal?(o)
  self.class == o.class &&
      id == o.id &&
      name == o.name &&
      default_flag == o.default_flag &&
      visible_logo_flag == o.visible_logo_flag &&
      company_info_flag == o.company_info_flag &&
      billing_terms_flag == o.billing_terms_flag &&
      summary_flag == o.summary_flag &&
      discussion_flag == o.discussion_flag &&
      task_flag == o.task_flag &&
      task == o.task &&
      configurations_flag == o.configurations_flag &&
      internal_notes_flag == o.internal_notes_flag &&
      resolution_flag == o.resolution_flag &&
      time_flag == o.time_flag &&
      time_member_flag == o.time_member_flag &&
      time_date_flag == o.time_date_flag &&
      time_start_end_flag == o.time_start_end_flag &&
      time_bill_flag == o.time_bill_flag &&
      time_hours_flag == o.time_hours_flag &&
      time_rate_flag == o.time_rate_flag &&
      time_extended_amount_flag == o.time_extended_amount_flag &&
      time_work_type_flag == o.time_work_type_flag &&
      time_agreement_flag == o.time_agreement_flag &&
      time_notes_flag == o.time_notes_flag &&
      time_manual_flag == o.time_manual_flag &&
      time_manual_entry == o.time_manual_entry &&
      time_tax_flag == o.time_tax_flag &&
      expense_flag == o.expense_flag &&
      expense_date_flag == o.expense_date_flag &&
      expense_member_flag == o.expense_member_flag &&
      expense_type_flag == o.expense_type_flag &&
      expense_bill_flag == o.expense_bill_flag &&
      expense_amount_flag == o.expense_amount_flag &&
      expense_agreement_flag == o.expense_agreement_flag &&
      expense_notes_flag == o.expense_notes_flag &&
      expense_tax_flag == o.expense_tax_flag &&
      expense_manual_flag == o.expense_manual_flag &&
      expense_manual_entry == o.expense_manual_entry &&
      product_flag == o.product_flag &&
      product_description_flag == o.product_description_flag &&
      product_bill_flag == o.product_bill_flag &&
      product_quantity_flag == o.product_quantity_flag &&
      product_price_flag == o.product_price_flag &&
      product_extended_amount_flag == o.product_extended_amount_flag &&
      product_agreement_flag == o.product_agreement_flag &&
      product_manual_flag == o.product_manual_flag &&
      product_manual_entry == o.product_manual_entry &&
      product_tax_flag == o.product_tax_flag &&
      technician_signoff_flag == o.technician_signoff_flag &&
      customer_signoff_text_flag == o.customer_signoff_text_flag &&
      customer_signoff_text == o.customer_signoff_text &&
      customer_signoff_fields_flag == o.customer_signoff_fields_flag &&
      billing_methods_text_flag == o.billing_methods_text_flag &&
      billing_methods_text == o.billing_methods_text &&
      credit_card_fields_flag == o.credit_card_fields_flag &&
      default_ff_flag == o.default_ff_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



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

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



762
763
764
765
766
767
768
769
770
771
772
773
774
# File 'lib/connectwise-ruby-sdk/models/service_signoff.rb', line 762

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



675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
# File 'lib/connectwise-ruby-sdk/models/service_signoff.rb', line 675

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


662
663
664
# File 'lib/connectwise-ruby-sdk/models/service_signoff.rb', line 662

def eql?(o)
  self == o
end

#hashFixnum

Calculates hash code according to all attributes.

Returns:

  • (Fixnum)

    Hash code



668
669
670
# File 'lib/connectwise-ruby-sdk/models/service_signoff.rb', line 668

def hash
  [id, name, default_flag, visible_logo_flag, company_info_flag, billing_terms_flag, summary_flag, discussion_flag, task_flag, task, configurations_flag, internal_notes_flag, resolution_flag, time_flag, time_member_flag, time_date_flag, time_start_end_flag, time_bill_flag, time_hours_flag, time_rate_flag, time_extended_amount_flag, time_work_type_flag, time_agreement_flag, time_notes_flag, time_manual_flag, time_manual_entry, time_tax_flag, expense_flag, expense_date_flag, expense_member_flag, expense_type_flag, expense_bill_flag, expense_amount_flag, expense_agreement_flag, expense_notes_flag, expense_tax_flag, expense_manual_flag, expense_manual_entry, product_flag, product_description_flag, product_bill_flag, product_quantity_flag, product_price_flag, product_extended_amount_flag, product_agreement_flag, product_manual_flag, product_manual_entry, product_tax_flag, technician_signoff_flag, customer_signoff_text_flag, customer_signoff_text, customer_signoff_fields_flag, billing_methods_text_flag, billing_methods_text, credit_card_fields_flag, default_ff_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



517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
# File 'lib/connectwise-ruby-sdk/models/service_signoff.rb', line 517

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

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

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

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



742
743
744
# File 'lib/connectwise-ruby-sdk/models/service_signoff.rb', line 742

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



748
749
750
751
752
753
754
755
756
# File 'lib/connectwise-ruby-sdk/models/service_signoff.rb', line 748

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



736
737
738
# File 'lib/connectwise-ruby-sdk/models/service_signoff.rb', line 736

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



540
541
542
543
544
545
546
547
548
# File 'lib/connectwise-ruby-sdk/models/service_signoff.rb', line 540

def valid?
  return false if @name.nil?
  return false if @name.to_s.length > 50
  task_validator = EnumAttributeValidator.new('String', ["All", "Closed", "Open"])
  return false unless task_validator.valid?(@task)
  return false if !@customer_signoff_text.nil? && @customer_signoff_text.to_s.length > 4000
  return false if !@billing_methods_text.nil? && @billing_methods_text.to_s.length > 2000
  return true
end