Class: ConnectWise::InvoiceTemplate

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

Defined Under Namespace

Classes: EnumAttributeValidator

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ InvoiceTemplate

Initializes the object

Parameters:

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

    Model attributes in the form of hash



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
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
# File 'lib/connectwise-ruby-sdk/models/invoice_template.rb', line 292

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

end

Instance Attribute Details

#_infoObject

Metadata of the entity



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

def _info
  @_info
end

#header_account_captionObject

Returns the value of attribute header_account_caption.



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

def 
  @header_account_caption
end

#header_account_visible_flagObject

Returns the value of attribute header_account_visible_flag.



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

def 
  @header_account_visible_flag
end

#header_address_positionObject

Returns the value of attribute header_address_position.



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

def header_address_position
  @header_address_position
end

#header_due_date_captionObject

Returns the value of attribute header_due_date_caption.



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

def header_due_date_caption
  @header_due_date_caption
end

#header_due_date_visible_flagObject

Returns the value of attribute header_due_date_visible_flag.



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

def header_due_date_visible_flag
  @header_due_date_visible_flag
end

#header_logo_positionObject

Returns the value of attribute header_logo_position.



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

def header_logo_position
  @header_logo_position
end

#header_po_number_captionObject

Returns the value of attribute header_po_number_caption.



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

def header_po_number_caption
  @header_po_number_caption
end

#header_po_number_visible_flagObject

Returns the value of attribute header_po_number_visible_flag.



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

def header_po_number_visible_flag
  @header_po_number_visible_flag
end

#header_reference_captionObject

Returns the value of attribute header_reference_caption.



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

def header_reference_caption
  @header_reference_caption
end

#header_reference_visible_flagObject

Returns the value of attribute header_reference_visible_flag.



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

def header_reference_visible_flag
  @header_reference_visible_flag
end

#header_ship_to_captionObject

Returns the value of attribute header_ship_to_caption.



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

def header_ship_to_caption
  @header_ship_to_caption
end

#header_ship_to_visible_flagObject

Returns the value of attribute header_ship_to_visible_flag.



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

def header_ship_to_visible_flag
  @header_ship_to_visible_flag
end

#header_tax_id_captionObject

Returns the value of attribute header_tax_id_caption.



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

def header_tax_id_caption
  @header_tax_id_caption
end

#header_tax_id_visible_flagObject

Returns the value of attribute header_tax_id_visible_flag.



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

def header_tax_id_visible_flag
  @header_tax_id_visible_flag
end

#header_terms_captionObject

Returns the value of attribute header_terms_caption.



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

def header_terms_caption
  @header_terms_caption
end

#header_terms_visible_flagObject

Returns the value of attribute header_terms_visible_flag.



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

def header_terms_visible_flag
  @header_terms_visible_flag
end

#header_title_captionObject

Returns the value of attribute header_title_caption.



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

def header_title_caption
  @header_title_caption
end

#header_title_fontObject

Returns the value of attribute header_title_font.



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

def header_title_font
  @header_title_font
end

#header_title_positionObject

Returns the value of attribute header_title_position.



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

def header_title_position
  @header_title_position
end

#header_title_visibile_flagObject

Returns the value of attribute header_title_visibile_flag.



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

def header_title_visibile_flag
  @header_title_visibile_flag
end

#idObject

Returns the value of attribute id.



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

def id
  @id
end

#logo_visible_flagObject

Returns the value of attribute logo_visible_flag.



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

def logo_visible_flag
  @logo_visible_flag
end

#margin_bottomObject

Returns the value of attribute margin_bottom.



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

def margin_bottom
  @margin_bottom
end

#margin_leftObject

Returns the value of attribute margin_left.



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

def margin_left
  @margin_left
end

#margin_rightObject

Returns the value of attribute margin_right.



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

def margin_right
  @margin_right
end

#margin_topObject

Returns the value of attribute margin_top.



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

def margin_top
  @margin_top
end

#nameObject

Returns the value of attribute name.



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

def name
  @name
end

#project_header_amount_captionObject

Returns the value of attribute project_header_amount_caption.



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

def project_header_amount_caption
  @project_header_amount_caption
end

#project_header_amount_visible_flagObject

Returns the value of attribute project_header_amount_visible_flag.



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

def project_header_amount_visible_flag
  @project_header_amount_visible_flag
end

#project_header_billing_method_captionObject

Returns the value of attribute project_header_billing_method_caption.



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

def project_header_billing_method_caption
  @project_header_billing_method_caption
end

#project_header_billing_method_visible_flagObject

Returns the value of attribute project_header_billing_method_visible_flag.



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

def project_header_billing_method_visible_flag
  @project_header_billing_method_visible_flag
end

#project_header_billing_type_captionObject

Returns the value of attribute project_header_billing_type_caption.



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

def project_header_billing_type_caption
  @project_header_billing_type_caption
end

#project_header_billing_type_visible_flagObject

Returns the value of attribute project_header_billing_type_visible_flag.



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

def project_header_billing_type_visible_flag
  @project_header_billing_type_visible_flag
end

#project_header_company_name_captionObject

Returns the value of attribute project_header_company_name_caption.



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

def project_header_company_name_caption
  @project_header_company_name_caption
end

#project_header_company_name_visible_flagObject

Returns the value of attribute project_header_company_name_visible_flag.



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

def project_header_company_name_visible_flag
  @project_header_company_name_visible_flag
end

#project_header_contact_name_captionObject

Returns the value of attribute project_header_contact_name_caption.



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

def project_header_contact_name_caption
  @project_header_contact_name_caption
end

#project_header_contact_name_visible_flagObject

Returns the value of attribute project_header_contact_name_visible_flag.



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

def project_header_contact_name_visible_flag
  @project_header_contact_name_visible_flag
end

#project_header_original_downpayment_captionObject

Returns the value of attribute project_header_original_downpayment_caption.



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

def project_header_original_downpayment_caption
  @project_header_original_downpayment_caption
end

#project_header_original_downpayment_visible_flagObject

Returns the value of attribute project_header_original_downpayment_visible_flag.



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

def project_header_original_downpayment_visible_flag
  @project_header_original_downpayment_visible_flag
end

#project_header_project_name_captionObject

Returns the value of attribute project_header_project_name_caption.



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

def project_header_project_name_caption
  @project_header_project_name_caption
end

#project_header_project_name_visible_flagObject

Returns the value of attribute project_header_project_name_visible_flag.



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

def project_header_project_name_visible_flag
  @project_header_project_name_visible_flag
end

#remit_to_visibile_flagObject

Returns the value of attribute remit_to_visibile_flag.



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

def remit_to_visibile_flag
  @remit_to_visibile_flag
end

#serivce_header_ticket_number_captionObject

Returns the value of attribute serivce_header_ticket_number_caption.



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

def serivce_header_ticket_number_caption
  @serivce_header_ticket_number_caption
end

#service_header_amount_captionObject

Returns the value of attribute service_header_amount_caption.



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

def service_header_amount_caption
  @service_header_amount_caption
end

#service_header_amount_visible_flagObject

Returns the value of attribute service_header_amount_visible_flag.



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

def service_header_amount_visible_flag
  @service_header_amount_visible_flag
end

#service_header_billing_method_captionObject

Returns the value of attribute service_header_billing_method_caption.



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

def service_header_billing_method_caption
  @service_header_billing_method_caption
end

#service_header_billing_method_visible_flagObject

Returns the value of attribute service_header_billing_method_visible_flag.



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

def service_header_billing_method_visible_flag
  @service_header_billing_method_visible_flag
end

#service_header_bundled_tickets_visible_flagObject

Returns the value of attribute service_header_bundled_tickets_visible_flag.



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

def service_header_bundled_tickets_visible_flag
  @service_header_bundled_tickets_visible_flag
end

#service_header_closed_tasks_visible_flagObject

Returns the value of attribute service_header_closed_tasks_visible_flag.



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

def service_header_closed_tasks_visible_flag
  @service_header_closed_tasks_visible_flag
end

#service_header_company_name_captionObject

Returns the value of attribute service_header_company_name_caption.



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

def service_header_company_name_caption
  @service_header_company_name_caption
end

#service_header_company_name_visible_flagObject

Returns the value of attribute service_header_company_name_visible_flag.



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

def service_header_company_name_visible_flag
  @service_header_company_name_visible_flag
end

#service_header_contact_name_captionObject

Returns the value of attribute service_header_contact_name_caption.



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

def service_header_contact_name_caption
  @service_header_contact_name_caption
end

#service_header_contact_name_visible_flagObject

Returns the value of attribute service_header_contact_name_visible_flag.



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

def service_header_contact_name_visible_flag
  @service_header_contact_name_visible_flag
end

#service_header_detail_description_captionObject

Returns the value of attribute service_header_detail_description_caption.



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

def service_header_detail_description_caption
  @service_header_detail_description_caption
end

#service_header_detail_description_visible_flagObject

Returns the value of attribute service_header_detail_description_visible_flag.



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

def service_header_detail_description_visible_flag
  @service_header_detail_description_visible_flag
end

#service_header_open_tasks_visible_flagObject

Returns the value of attribute service_header_open_tasks_visible_flag.



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

def service_header_open_tasks_visible_flag
  @service_header_open_tasks_visible_flag
end

#service_header_resolution_captionObject

Returns the value of attribute service_header_resolution_caption.



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

def service_header_resolution_caption
  @service_header_resolution_caption
end

#service_header_resolution_visible_flagObject

Returns the value of attribute service_header_resolution_visible_flag.



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

def service_header_resolution_visible_flag
  @service_header_resolution_visible_flag
end

#service_header_summary_captionObject

Returns the value of attribute service_header_summary_caption.



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

def service_header_summary_caption
  @service_header_summary_caption
end

#service_header_summary_visible_flagObject

Returns the value of attribute service_header_summary_visible_flag.



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

def service_header_summary_visible_flag
  @service_header_summary_visible_flag
end

#service_header_ticket_number_visible_flagObject

Returns the value of attribute service_header_ticket_number_visible_flag.



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

def service_header_ticket_number_visible_flag
  @service_header_ticket_number_visible_flag
end

Class Method Details

.attribute_mapObject

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



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
213
214
215
216
217
218
219
220
# File 'lib/connectwise-ruby-sdk/models/invoice_template.rb', line 155

def self.attribute_map
  {
    :'id' => :'id',
    :'name' => :'name',
    :'margin_left' => :'marginLeft',
    :'margin_right' => :'marginRight',
    :'margin_top' => :'marginTop',
    :'margin_bottom' => :'marginBottom',
    :'logo_visible_flag' => :'logoVisibleFlag',
    :'header_logo_position' => :'headerLogoPosition',
    :'remit_to_visibile_flag' => :'remitToVisibileFlag',
    :'header_address_position' => :'headerAddressPosition',
    :'header_title_visibile_flag' => :'headerTitleVisibileFlag',
    :'header_title_caption' => :'headerTitleCaption',
    :'header_title_position' => :'headerTitlePosition',
    :'header_title_font' => :'headerTitleFont',
    :'header_terms_visible_flag' => :'headerTermsVisibleFlag',
    :'header_terms_caption' => :'headerTermsCaption',
    :'header_due_date_visible_flag' => :'headerDueDateVisibleFlag',
    :'header_due_date_caption' => :'headerDueDateCaption',
    :'header_po_number_visible_flag' => :'headerPoNumberVisibleFlag',
    :'header_po_number_caption' => :'headerPoNumberCaption',
    :'header_reference_visible_flag' => :'headerReferenceVisibleFlag',
    :'header_reference_caption' => :'headerReferenceCaption',
    :'header_account_visible_flag' => :'headerAccountVisibleFlag',
    :'header_account_caption' => :'headerAccountCaption',
    :'header_tax_id_visible_flag' => :'headerTaxIdVisibleFlag',
    :'header_tax_id_caption' => :'headerTaxIdCaption',
    :'header_ship_to_visible_flag' => :'headerShipToVisibleFlag',
    :'header_ship_to_caption' => :'headerShipToCaption',
    :'service_header_ticket_number_visible_flag' => :'serviceHeaderTicketNumberVisibleFlag',
    :'serivce_header_ticket_number_caption' => :'serivceHeaderTicketNumberCaption',
    :'service_header_company_name_visible_flag' => :'serviceHeaderCompanyNameVisibleFlag',
    :'service_header_company_name_caption' => :'serviceHeaderCompanyNameCaption',
    :'service_header_summary_visible_flag' => :'serviceHeaderSummaryVisibleFlag',
    :'service_header_summary_caption' => :'serviceHeaderSummaryCaption',
    :'service_header_contact_name_visible_flag' => :'serviceHeaderContactNameVisibleFlag',
    :'service_header_contact_name_caption' => :'serviceHeaderContactNameCaption',
    :'service_header_detail_description_visible_flag' => :'serviceHeaderDetailDescriptionVisibleFlag',
    :'service_header_detail_description_caption' => :'serviceHeaderDetailDescriptionCaption',
    :'service_header_resolution_visible_flag' => :'serviceHeaderResolutionVisibleFlag',
    :'service_header_resolution_caption' => :'serviceHeaderResolutionCaption',
    :'service_header_amount_visible_flag' => :'serviceHeaderAmountVisibleFlag',
    :'service_header_amount_caption' => :'serviceHeaderAmountCaption',
    :'service_header_billing_method_visible_flag' => :'serviceHeaderBillingMethodVisibleFlag',
    :'service_header_billing_method_caption' => :'serviceHeaderBillingMethodCaption',
    :'service_header_closed_tasks_visible_flag' => :'serviceHeaderClosedTasksVisibleFlag',
    :'service_header_open_tasks_visible_flag' => :'serviceHeaderOpenTasksVisibleFlag',
    :'service_header_bundled_tickets_visible_flag' => :'serviceHeaderBundledTicketsVisibleFlag',
    :'project_header_project_name_visible_flag' => :'projectHeaderProjectNameVisibleFlag',
    :'project_header_project_name_caption' => :'projectHeaderProjectNameCaption',
    :'project_header_company_name_visible_flag' => :'projectHeaderCompanyNameVisibleFlag',
    :'project_header_company_name_caption' => :'projectHeaderCompanyNameCaption',
    :'project_header_original_downpayment_visible_flag' => :'projectHeaderOriginalDownpaymentVisibleFlag',
    :'project_header_original_downpayment_caption' => :'projectHeaderOriginalDownpaymentCaption',
    :'project_header_contact_name_visible_flag' => :'projectHeaderContactNameVisibleFlag',
    :'project_header_contact_name_caption' => :'projectHeaderContactNameCaption',
    :'project_header_amount_visible_flag' => :'projectHeaderAmountVisibleFlag',
    :'project_header_amount_caption' => :'projectHeaderAmountCaption',
    :'project_header_billing_method_visible_flag' => :'projectHeaderBillingMethodVisibleFlag',
    :'project_header_billing_method_caption' => :'projectHeaderBillingMethodCaption',
    :'project_header_billing_type_visible_flag' => :'projectHeaderBillingTypeVisibleFlag',
    :'project_header_billing_type_caption' => :'projectHeaderBillingTypeCaption',
    :'_info' => :'_info'
  }
end

.swagger_typesObject

Attribute type mapping.



223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
# File 'lib/connectwise-ruby-sdk/models/invoice_template.rb', line 223

def self.swagger_types
  {
    :'id' => :'Integer',
    :'name' => :'String',
    :'margin_left' => :'Float',
    :'margin_right' => :'Float',
    :'margin_top' => :'Float',
    :'margin_bottom' => :'Float',
    :'logo_visible_flag' => :'BOOLEAN',
    :'header_logo_position' => :'String',
    :'remit_to_visibile_flag' => :'BOOLEAN',
    :'header_address_position' => :'String',
    :'header_title_visibile_flag' => :'BOOLEAN',
    :'header_title_caption' => :'String',
    :'header_title_position' => :'String',
    :'header_title_font' => :'String',
    :'header_terms_visible_flag' => :'BOOLEAN',
    :'header_terms_caption' => :'String',
    :'header_due_date_visible_flag' => :'BOOLEAN',
    :'header_due_date_caption' => :'String',
    :'header_po_number_visible_flag' => :'BOOLEAN',
    :'header_po_number_caption' => :'String',
    :'header_reference_visible_flag' => :'BOOLEAN',
    :'header_reference_caption' => :'String',
    :'header_account_visible_flag' => :'BOOLEAN',
    :'header_account_caption' => :'String',
    :'header_tax_id_visible_flag' => :'BOOLEAN',
    :'header_tax_id_caption' => :'String',
    :'header_ship_to_visible_flag' => :'BOOLEAN',
    :'header_ship_to_caption' => :'String',
    :'service_header_ticket_number_visible_flag' => :'BOOLEAN',
    :'serivce_header_ticket_number_caption' => :'String',
    :'service_header_company_name_visible_flag' => :'BOOLEAN',
    :'service_header_company_name_caption' => :'String',
    :'service_header_summary_visible_flag' => :'BOOLEAN',
    :'service_header_summary_caption' => :'String',
    :'service_header_contact_name_visible_flag' => :'BOOLEAN',
    :'service_header_contact_name_caption' => :'String',
    :'service_header_detail_description_visible_flag' => :'BOOLEAN',
    :'service_header_detail_description_caption' => :'String',
    :'service_header_resolution_visible_flag' => :'BOOLEAN',
    :'service_header_resolution_caption' => :'String',
    :'service_header_amount_visible_flag' => :'BOOLEAN',
    :'service_header_amount_caption' => :'String',
    :'service_header_billing_method_visible_flag' => :'BOOLEAN',
    :'service_header_billing_method_caption' => :'String',
    :'service_header_closed_tasks_visible_flag' => :'BOOLEAN',
    :'service_header_open_tasks_visible_flag' => :'BOOLEAN',
    :'service_header_bundled_tickets_visible_flag' => :'BOOLEAN',
    :'project_header_project_name_visible_flag' => :'BOOLEAN',
    :'project_header_project_name_caption' => :'String',
    :'project_header_company_name_visible_flag' => :'BOOLEAN',
    :'project_header_company_name_caption' => :'String',
    :'project_header_original_downpayment_visible_flag' => :'BOOLEAN',
    :'project_header_original_downpayment_caption' => :'String',
    :'project_header_contact_name_visible_flag' => :'BOOLEAN',
    :'project_header_contact_name_caption' => :'String',
    :'project_header_amount_visible_flag' => :'BOOLEAN',
    :'project_header_amount_caption' => :'String',
    :'project_header_billing_method_visible_flag' => :'BOOLEAN',
    :'project_header_billing_method_caption' => :'String',
    :'project_header_billing_type_visible_flag' => :'BOOLEAN',
    :'project_header_billing_type_caption' => :'String',
    :'_info' => :'Metadata'
  }
end

Instance Method Details

#==(o) ⇒ Object

Checks equality by comparing each attribute.

Parameters:

  • Object (Object)

    to be compared



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

def ==(o)
  return true if self.equal?(o)
  self.class == o.class &&
      id == o.id &&
      name == o.name &&
      margin_left == o.margin_left &&
      margin_right == o.margin_right &&
      margin_top == o.margin_top &&
      margin_bottom == o.margin_bottom &&
      logo_visible_flag == o.logo_visible_flag &&
      header_logo_position == o.header_logo_position &&
      remit_to_visibile_flag == o.remit_to_visibile_flag &&
      header_address_position == o.header_address_position &&
      header_title_visibile_flag == o.header_title_visibile_flag &&
      header_title_caption == o.header_title_caption &&
      header_title_position == o.header_title_position &&
      header_title_font == o.header_title_font &&
      header_terms_visible_flag == o.header_terms_visible_flag &&
      header_terms_caption == o.header_terms_caption &&
      header_due_date_visible_flag == o.header_due_date_visible_flag &&
      header_due_date_caption == o.header_due_date_caption &&
      header_po_number_visible_flag == o.header_po_number_visible_flag &&
      header_po_number_caption == o.header_po_number_caption &&
      header_reference_visible_flag == o.header_reference_visible_flag &&
      header_reference_caption == o.header_reference_caption &&
       == o. &&
       == o. &&
      header_tax_id_visible_flag == o.header_tax_id_visible_flag &&
      header_tax_id_caption == o.header_tax_id_caption &&
      header_ship_to_visible_flag == o.header_ship_to_visible_flag &&
      header_ship_to_caption == o.header_ship_to_caption &&
      service_header_ticket_number_visible_flag == o.service_header_ticket_number_visible_flag &&
      serivce_header_ticket_number_caption == o.serivce_header_ticket_number_caption &&
      service_header_company_name_visible_flag == o.service_header_company_name_visible_flag &&
      service_header_company_name_caption == o.service_header_company_name_caption &&
      service_header_summary_visible_flag == o.service_header_summary_visible_flag &&
      service_header_summary_caption == o.service_header_summary_caption &&
      service_header_contact_name_visible_flag == o.service_header_contact_name_visible_flag &&
      service_header_contact_name_caption == o.service_header_contact_name_caption &&
      service_header_detail_description_visible_flag == o.service_header_detail_description_visible_flag &&
      service_header_detail_description_caption == o.service_header_detail_description_caption &&
      service_header_resolution_visible_flag == o.service_header_resolution_visible_flag &&
      service_header_resolution_caption == o.service_header_resolution_caption &&
      service_header_amount_visible_flag == o.service_header_amount_visible_flag &&
      service_header_amount_caption == o.service_header_amount_caption &&
      service_header_billing_method_visible_flag == o.service_header_billing_method_visible_flag &&
      service_header_billing_method_caption == o.service_header_billing_method_caption &&
      service_header_closed_tasks_visible_flag == o.service_header_closed_tasks_visible_flag &&
      service_header_open_tasks_visible_flag == o.service_header_open_tasks_visible_flag &&
      service_header_bundled_tickets_visible_flag == o.service_header_bundled_tickets_visible_flag &&
      project_header_project_name_visible_flag == o.project_header_project_name_visible_flag &&
      project_header_project_name_caption == o.project_header_project_name_caption &&
      project_header_company_name_visible_flag == o.project_header_company_name_visible_flag &&
      project_header_company_name_caption == o.project_header_company_name_caption &&
      project_header_original_downpayment_visible_flag == o.project_header_original_downpayment_visible_flag &&
      project_header_original_downpayment_caption == o.project_header_original_downpayment_caption &&
      project_header_contact_name_visible_flag == o.project_header_contact_name_visible_flag &&
      project_header_contact_name_caption == o.project_header_contact_name_caption &&
      project_header_amount_visible_flag == o.project_header_amount_visible_flag &&
      project_header_amount_caption == o.project_header_amount_caption &&
      project_header_billing_method_visible_flag == o.project_header_billing_method_visible_flag &&
      project_header_billing_method_caption == o.project_header_billing_method_caption &&
      project_header_billing_type_visible_flag == o.project_header_billing_type_visible_flag &&
      project_header_billing_type_caption == o.project_header_billing_type_caption &&
      _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



1106
1107
1108
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
# File 'lib/connectwise-ruby-sdk/models/invoice_template.rb', line 1106

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



1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
# File 'lib/connectwise-ruby-sdk/models/invoice_template.rb', line 1172

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



1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
# File 'lib/connectwise-ruby-sdk/models/invoice_template.rb', line 1085

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


1072
1073
1074
# File 'lib/connectwise-ruby-sdk/models/invoice_template.rb', line 1072

def eql?(o)
  self == o
end

#hashFixnum

Calculates hash code according to all attributes.

Returns:

  • (Fixnum)

    Hash code



1078
1079
1080
# File 'lib/connectwise-ruby-sdk/models/invoice_template.rb', line 1078

def hash
  [id, name, margin_left, margin_right, margin_top, margin_bottom, logo_visible_flag, header_logo_position, remit_to_visibile_flag, header_address_position, header_title_visibile_flag, header_title_caption, header_title_position, header_title_font, header_terms_visible_flag, header_terms_caption, header_due_date_visible_flag, header_due_date_caption, header_po_number_visible_flag, header_po_number_caption, header_reference_visible_flag, header_reference_caption, , , header_tax_id_visible_flag, header_tax_id_caption, header_ship_to_visible_flag, header_ship_to_caption, service_header_ticket_number_visible_flag, serivce_header_ticket_number_caption, service_header_company_name_visible_flag, service_header_company_name_caption, service_header_summary_visible_flag, service_header_summary_caption, service_header_contact_name_visible_flag, service_header_contact_name_caption, service_header_detail_description_visible_flag, service_header_detail_description_caption, service_header_resolution_visible_flag, service_header_resolution_caption, service_header_amount_visible_flag, service_header_amount_caption, service_header_billing_method_visible_flag, service_header_billing_method_caption, service_header_closed_tasks_visible_flag, service_header_open_tasks_visible_flag, service_header_bundled_tickets_visible_flag, project_header_project_name_visible_flag, project_header_project_name_caption, project_header_company_name_visible_flag, project_header_company_name_caption, project_header_original_downpayment_visible_flag, project_header_original_downpayment_caption, project_header_contact_name_visible_flag, project_header_contact_name_caption, project_header_amount_visible_flag, project_header_amount_caption, project_header_billing_method_visible_flag, project_header_billing_method_caption, project_header_billing_type_visible_flag, project_header_billing_type_caption, _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



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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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



1152
1153
1154
# File 'lib/connectwise-ruby-sdk/models/invoice_template.rb', line 1152

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



1158
1159
1160
1161
1162
1163
1164
1165
1166
# File 'lib/connectwise-ruby-sdk/models/invoice_template.rb', line 1158

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



1146
1147
1148
# File 'lib/connectwise-ruby-sdk/models/invoice_template.rb', line 1146

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



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

def valid?
  return false if @name.nil?
  return false if @name.to_s.length > 50
  header_logo_position_validator = EnumAttributeValidator.new('String', ["LeftSide", "RightSide", "Center"])
  return false unless header_logo_position_validator.valid?(@header_logo_position)
  header_address_position_validator = EnumAttributeValidator.new('String', ["LeftSide", "RightSide", "Center"])
  return false unless header_address_position_validator.valid?(@header_address_position)
  return false if !@header_title_caption.nil? && @header_title_caption.to_s.length > 50
  header_title_position_validator = EnumAttributeValidator.new('String', ["LeftSide", "RightSide", "Center"])
  return false unless header_title_position_validator.valid?(@header_title_position)
  header_title_font_validator = EnumAttributeValidator.new('String', ["Regular", "RegularBold", "Large", "LargeBold", "ExtraLarge", "ExtraLargeBold"])
  return false unless header_title_font_validator.valid?(@header_title_font)
  return false if !@header_terms_caption.nil? && @header_terms_caption.to_s.length > 50
  return false if !@header_due_date_caption.nil? && @header_due_date_caption.to_s.length > 50
  return false if !@header_po_number_caption.nil? && @header_po_number_caption.to_s.length > 50
  return false if !@header_reference_caption.nil? && @header_reference_caption.to_s.length > 50
  return false if !@header_account_caption.nil? && @header_account_caption.to_s.length > 50
  return false if !@header_tax_id_caption.nil? && @header_tax_id_caption.to_s.length > 50
  return false if !@header_ship_to_caption.nil? && @header_ship_to_caption.to_s.length > 50
  return false if !@serivce_header_ticket_number_caption.nil? && @serivce_header_ticket_number_caption.to_s.length > 50
  return false if !@service_header_company_name_caption.nil? && @service_header_company_name_caption.to_s.length > 50
  return false if !@service_header_summary_caption.nil? && @service_header_summary_caption.to_s.length > 50
  return false if !@service_header_contact_name_caption.nil? && @service_header_contact_name_caption.to_s.length > 50
  return false if !@service_header_detail_description_caption.nil? && @service_header_detail_description_caption.to_s.length > 50
  return false if !@service_header_resolution_caption.nil? && @service_header_resolution_caption.to_s.length > 50
  return false if !@service_header_amount_caption.nil? && @service_header_amount_caption.to_s.length > 50
  return false if !@service_header_billing_method_caption.nil? && @service_header_billing_method_caption.to_s.length > 50
  return false if !@project_header_project_name_caption.nil? && @project_header_project_name_caption.to_s.length > 50
  return false if !@project_header_company_name_caption.nil? && @project_header_company_name_caption.to_s.length > 50
  return false if !@project_header_original_downpayment_caption.nil? && @project_header_original_downpayment_caption.to_s.length > 50
  return false if !@project_header_contact_name_caption.nil? && @project_header_contact_name_caption.to_s.length > 50
  return false if !@project_header_amount_caption.nil? && @project_header_amount_caption.to_s.length > 50
  return false if !@project_header_billing_method_caption.nil? && @project_header_billing_method_caption.to_s.length > 50
  return false if !@project_header_billing_type_caption.nil? && @project_header_billing_type_caption.to_s.length > 50
  return true
end