Class: ConnectWise::BillingSetup

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

Defined Under Namespace

Classes: EnumAttributeValidator

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ BillingSetup

Initializes the object

Parameters:

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

    Model attributes in the form of hash



280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
# File 'lib/connectwise-ruby-sdk/models/billing_setup.rb', line 280

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

end

Instance Attribute Details

#_infoObject

Metadata of the entity



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

def _info
  @_info
end

#address_oneObject

Returns the value of attribute address_one.



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

def address_one
  @address_one
end

#address_twoObject

Returns the value of attribute address_two.



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

def address_two
  @address_two
end

#agreement_invoiceObject

Returns the value of attribute agreement_invoice.



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

def agreement_invoice
  @agreement_invoice
end

#allow_restricted_dept_on_routing_flagObject

Returns the value of attribute allow_restricted_dept_on_routing_flag.



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

def allow_restricted_dept_on_routing_flag
  @allow_restricted_dept_on_routing_flag
end

#bill_product_after_ship_flagObject

Returns the value of attribute bill_product_after_ship_flag.



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

def bill_product_after_ship_flag
  @bill_product_after_ship_flag
end

#bill_project_complete_flagObject

Returns the value of attribute bill_project_complete_flag.



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

def bill_project_complete_flag
  @bill_project_complete_flag
end

#bill_project_unapproved_flagObject

Returns the value of attribute bill_project_unapproved_flag.



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

def bill_project_unapproved_flag
  @bill_project_unapproved_flag
end

#bill_sales_order_complete_flagObject

Returns the value of attribute bill_sales_order_complete_flag.



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

def bill_sales_order_complete_flag
  @bill_sales_order_complete_flag
end

#bill_ticket_complete_flagObject

Returns the value of attribute bill_ticket_complete_flag.



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

def bill_ticket_complete_flag
  @bill_ticket_complete_flag
end

#bill_ticket_separately_flagObject

Returns the value of attribute bill_ticket_separately_flag.



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

def bill_ticket_separately_flag
  @bill_ticket_separately_flag
end

#bill_ticket_unapproved_flagObject

Returns the value of attribute bill_ticket_unapproved_flag.



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

def bill_ticket_unapproved_flag
  @bill_ticket_unapproved_flag
end

#business_numberObject

Returns the value of attribute business_number.



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

def business_number
  @business_number
end

#charge_adj_to_firm_flagObject

Returns the value of attribute charge_adj_to_firm_flag.



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

def charge_adj_to_firm_flag
  @charge_adj_to_firm_flag
end

#cityObject

Returns the value of attribute city.



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

def city
  @city
end

#company_codeObject

Returns the value of attribute company_code.



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

def company_code
  @company_code
end

#copy_agreement_products_flagObject

Returns the value of attribute copy_agreement_products_flag.



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

def copy_agreement_products_flag
  @copy_agreement_products_flag
end

#copy_non_service_products_flagObject

Returns the value of attribute copy_non_service_products_flag.



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

def copy_non_service_products_flag
  @copy_non_service_products_flag
end

#copy_service_products_flagObject

Returns the value of attribute copy_service_products_flag.



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

def copy_service_products_flag
  @copy_service_products_flag
end

#countryObject

Returns the value of attribute country.



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

def country
  @country
end

#credit_memo_invoiceObject

Returns the value of attribute credit_memo_invoice.



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

def credit_memo_invoice
  @credit_memo_invoice
end

#currencyObject

Returns the value of attribute currency.



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

def currency
  @currency
end

#custom_labelObject

Returns the value of attribute custom_label.



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

def custom_label
  @custom_label
end

#custom_textObject

Returns the value of attribute custom_text.



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

def custom_text
  @custom_text
end

#delivery_receipt_flagObject

Returns the value of attribute delivery_receipt_flag.



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

def delivery_receipt_flag
  @delivery_receipt_flag
end

#disable_routing_email_flagObject

Returns the value of attribute disable_routing_email_flag.



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

def disable_routing_email_flag
  @disable_routing_email_flag
end

#display_tax_flagObject

Returns the value of attribute display_tax_flag.



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

def display_tax_flag
  @display_tax_flag
end

#down_payment_invoiceObject

Returns the value of attribute down_payment_invoice.



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

def down_payment_invoice
  @down_payment_invoice
end

#email_templateObject

Returns the value of attribute email_template.



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

def email_template
  @email_template
end

#exclude_avalara_flagObject

Returns the value of attribute exclude_avalara_flag.



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

def exclude_avalara_flag
  @exclude_avalara_flag
end

#exclude_do_not_bill_expense_flagObject

Returns the value of attribute exclude_do_not_bill_expense_flag.



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

def exclude_do_not_bill_expense_flag
  @exclude_do_not_bill_expense_flag
end

#exclude_do_not_bill_product_flagObject

Returns the value of attribute exclude_do_not_bill_product_flag.



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

def exclude_do_not_bill_product_flag
  @exclude_do_not_bill_product_flag
end

#exclude_do_not_bill_time_flagObject

Returns the value of attribute exclude_do_not_bill_time_flag.



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

def exclude_do_not_bill_time_flag
  @exclude_do_not_bill_time_flag
end

#idObject

Returns the value of attribute id.



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

def id
  @id
end

Returns the value of attribute invoice_footer.



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

def invoice_footer
  @invoice_footer
end

#invoice_titleObject

Returns the value of attribute invoice_title.



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

def invoice_title
  @invoice_title
end

#localized_countryObject

Returns the value of attribute localized_country.



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

def localized_country
  @localized_country
end

#locationObject

Returns the value of attribute location.



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

def location
  @location
end

#misc_invoiceObject

Returns the value of attribute misc_invoice.



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

def misc_invoice
  @misc_invoice
end

#no_watermark_flagObject

Returns the value of attribute no_watermark_flag.



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

def no_watermark_flag
  @no_watermark_flag
end

#overall_invoice_defaultObject

Returns the value of attribute overall_invoice_default.



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

def overall_invoice_default
  @overall_invoice_default
end

#payable_nameObject

Returns the value of attribute payable_name.



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

def payable_name
  @payable_name
end

#phoneObject

Returns the value of attribute phone.



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

def phone
  @phone
end

#prefix_suffix_flagObject

Returns the value of attribute prefix_suffix_flag.



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

def prefix_suffix_flag
  @prefix_suffix_flag
end

#prefix_suffix_textObject

Returns the value of attribute prefix_suffix_text.



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

def prefix_suffix_text
  @prefix_suffix_text
end

Returns the value of attribute print_logo_flag.



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

def print_logo_flag
  @print_logo_flag
end

#progress_invoiceObject

Returns the value of attribute progress_invoice.



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

def progress_invoice
  @progress_invoice
end

#progress_time_flagObject

Returns the value of attribute progress_time_flag.



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

def progress_time_flag
  @progress_time_flag
end

Returns the value of attribute quote_footer.



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

def quote_footer
  @quote_footer
end

#read_receipt_flagObject

Returns the value of attribute read_receipt_flag.



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

def read_receipt_flag
  @read_receipt_flag
end

#remit_nameObject

Returns the value of attribute remit_name.



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

def remit_name
  @remit_name
end

#restrict_downpayment_flagObject

Returns the value of attribute restrict_downpayment_flag.



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

def restrict_downpayment_flag
  @restrict_downpayment_flag
end

#restrict_project_downpayment_flagObject

Returns the value of attribute restrict_project_downpayment_flag.



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

def restrict_project_downpayment_flag
  @restrict_project_downpayment_flag
end

#sales_order_invoiceObject

Returns the value of attribute sales_order_invoice.



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

def sales_order_invoice
  @sales_order_invoice
end

#standard_invoice_actualObject

Returns the value of attribute standard_invoice_actual.



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

def standard_invoice_actual
  @standard_invoice_actual
end

#standard_invoice_fixedObject

Returns the value of attribute standard_invoice_fixed.



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

def standard_invoice_fixed
  @standard_invoice_fixed
end

#stateObject

Returns the value of attribute state.



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

def state
  @state
end

#topcommentObject

Returns the value of attribute topcomment.



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

def topcomment
  @topcomment
end

#zipObject

Returns the value of attribute zip.



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

def zip
  @zip
end

Class Method Details

.attribute_mapObject

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



149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
# File 'lib/connectwise-ruby-sdk/models/billing_setup.rb', line 149

def self.attribute_map
  {
    :'id' => :'id',
    :'remit_name' => :'remitName',
    :'location' => :'location',
    :'address_one' => :'addressOne',
    :'address_two' => :'addressTwo',
    :'city' => :'city',
    :'state' => :'state',
    :'zip' => :'zip',
    :'country' => :'country',
    :'phone' => :'phone',
    :'invoice_title' => :'invoiceTitle',
    :'payable_name' => :'payableName',
    :'topcomment' => :'topcomment',
    :'invoice_footer' => :'invoiceFooter',
    :'quote_footer' => :'quoteFooter',
    :'overall_invoice_default' => :'overallInvoiceDefault',
    :'standard_invoice_actual' => :'standardInvoiceActual',
    :'standard_invoice_fixed' => :'standardInvoiceFixed',
    :'progress_invoice' => :'progressInvoice',
    :'agreement_invoice' => :'agreementInvoice',
    :'credit_memo_invoice' => :'creditMemoInvoice',
    :'down_payment_invoice' => :'downPaymentInvoice',
    :'misc_invoice' => :'miscInvoice',
    :'sales_order_invoice' => :'salesOrderInvoice',
    :'exclude_do_not_bill_time_flag' => :'excludeDoNotBillTimeFlag',
    :'exclude_do_not_bill_expense_flag' => :'excludeDoNotBillExpenseFlag',
    :'exclude_do_not_bill_product_flag' => :'excludeDoNotBillProductFlag',
    :'prefix_suffix_flag' => :'prefixSuffixFlag',
    :'prefix_suffix_text' => :'prefixSuffixText',
    :'charge_adj_to_firm_flag' => :'chargeAdjToFirmFlag',
    :'no_watermark_flag' => :'NoWatermarkFlag',
    :'display_tax_flag' => :'displayTaxFlag',
    :'allow_restricted_dept_on_routing_flag' => :'allowRestrictedDeptOnRoutingFlag',
    :'bill_ticket_separately_flag' => :'billTicketSeparatelyFlag',
    :'bill_ticket_complete_flag' => :'billTicketCompleteFlag',
    :'bill_ticket_unapproved_flag' => :'billTicketUnapprovedFlag',
    :'bill_project_complete_flag' => :'billProjectCompleteFlag',
    :'bill_project_unapproved_flag' => :'billProjectUnapprovedFlag',
    :'progress_time_flag' => :'progressTimeFlag',
    :'restrict_project_downpayment_flag' => :'restrictProjectDownpaymentFlag',
    :'bill_sales_order_complete_flag' => :'billSalesOrderCompleteFlag',
    :'bill_product_after_ship_flag' => :'billProductAfterShipFlag',
    :'restrict_downpayment_flag' => :'restrictDownpaymentFlag',
    :'copy_non_service_products_flag' => :'copyNonServiceProductsFlag',
    :'copy_service_products_flag' => :'copyServiceProductsFlag',
    :'copy_agreement_products_flag' => :'copyAgreementProductsFlag',
    :'print_logo_flag' => :'printLogoFlag',
    :'read_receipt_flag' => :'readReceiptFlag',
    :'delivery_receipt_flag' => :'deliveryReceiptFlag',
    :'disable_routing_email_flag' => :'disableRoutingEmailFlag',
    :'email_template' => :'emailTemplate',
    :'localized_country' => :'localizedCountry',
    :'business_number' => :'businessNumber',
    :'currency' => :'currency',
    :'custom_label' => :'customLabel',
    :'custom_text' => :'customText',
    :'company_code' => :'companyCode',
    :'exclude_avalara_flag' => :'excludeAvalaraFlag',
    :'_info' => :'_info'
  }
end

.swagger_typesObject

Attribute type mapping.



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

def self.swagger_types
  {
    :'id' => :'Integer',
    :'remit_name' => :'String',
    :'location' => :'SystemLocationReference',
    :'address_one' => :'String',
    :'address_two' => :'String',
    :'city' => :'String',
    :'state' => :'StateReference',
    :'zip' => :'String',
    :'country' => :'CountryReference',
    :'phone' => :'String',
    :'invoice_title' => :'String',
    :'payable_name' => :'String',
    :'topcomment' => :'String',
    :'invoice_footer' => :'String',
    :'quote_footer' => :'String',
    :'overall_invoice_default' => :'InvoiceTemplateReference',
    :'standard_invoice_actual' => :'InvoiceTemplateReference',
    :'standard_invoice_fixed' => :'InvoiceTemplateReference',
    :'progress_invoice' => :'InvoiceTemplateReference',
    :'agreement_invoice' => :'InvoiceTemplateReference',
    :'credit_memo_invoice' => :'InvoiceTemplateReference',
    :'down_payment_invoice' => :'InvoiceTemplateReference',
    :'misc_invoice' => :'InvoiceTemplateReference',
    :'sales_order_invoice' => :'InvoiceTemplateReference',
    :'exclude_do_not_bill_time_flag' => :'BOOLEAN',
    :'exclude_do_not_bill_expense_flag' => :'BOOLEAN',
    :'exclude_do_not_bill_product_flag' => :'BOOLEAN',
    :'prefix_suffix_flag' => :'String',
    :'prefix_suffix_text' => :'String',
    :'charge_adj_to_firm_flag' => :'BOOLEAN',
    :'no_watermark_flag' => :'BOOLEAN',
    :'display_tax_flag' => :'BOOLEAN',
    :'allow_restricted_dept_on_routing_flag' => :'BOOLEAN',
    :'bill_ticket_separately_flag' => :'BOOLEAN',
    :'bill_ticket_complete_flag' => :'BOOLEAN',
    :'bill_ticket_unapproved_flag' => :'BOOLEAN',
    :'bill_project_complete_flag' => :'BOOLEAN',
    :'bill_project_unapproved_flag' => :'BOOLEAN',
    :'progress_time_flag' => :'BOOLEAN',
    :'restrict_project_downpayment_flag' => :'BOOLEAN',
    :'bill_sales_order_complete_flag' => :'BOOLEAN',
    :'bill_product_after_ship_flag' => :'BOOLEAN',
    :'restrict_downpayment_flag' => :'BOOLEAN',
    :'copy_non_service_products_flag' => :'BOOLEAN',
    :'copy_service_products_flag' => :'BOOLEAN',
    :'copy_agreement_products_flag' => :'BOOLEAN',
    :'print_logo_flag' => :'BOOLEAN',
    :'read_receipt_flag' => :'BOOLEAN',
    :'delivery_receipt_flag' => :'BOOLEAN',
    :'disable_routing_email_flag' => :'BOOLEAN',
    :'email_template' => :'OrderStatusEmailTemplateReference',
    :'localized_country' => :'CountryReference',
    :'business_number' => :'String',
    :'currency' => :'CurrencyReference',
    :'custom_label' => :'String',
    :'custom_text' => :'String',
    :'company_code' => :'String',
    :'exclude_avalara_flag' => :'BOOLEAN',
    :'_info' => :'Metadata'
  }
end

Instance Method Details

#==(o) ⇒ Object

Checks equality by comparing each attribute.

Parameters:

  • Object (Object)

    to be compared



846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
# File 'lib/connectwise-ruby-sdk/models/billing_setup.rb', line 846

def ==(o)
  return true if self.equal?(o)
  self.class == o.class &&
      id == o.id &&
      remit_name == o.remit_name &&
      location == o.location &&
      address_one == o.address_one &&
      address_two == o.address_two &&
      city == o.city &&
      state == o.state &&
      zip == o.zip &&
      country == o.country &&
      phone == o.phone &&
      invoice_title == o.invoice_title &&
      payable_name == o.payable_name &&
      topcomment == o.topcomment &&
      invoice_footer == o.invoice_footer &&
      quote_footer == o.quote_footer &&
      overall_invoice_default == o.overall_invoice_default &&
      standard_invoice_actual == o.standard_invoice_actual &&
      standard_invoice_fixed == o.standard_invoice_fixed &&
      progress_invoice == o.progress_invoice &&
      agreement_invoice == o.agreement_invoice &&
      credit_memo_invoice == o.credit_memo_invoice &&
      down_payment_invoice == o.down_payment_invoice &&
      misc_invoice == o.misc_invoice &&
      sales_order_invoice == o.sales_order_invoice &&
      exclude_do_not_bill_time_flag == o.exclude_do_not_bill_time_flag &&
      exclude_do_not_bill_expense_flag == o.exclude_do_not_bill_expense_flag &&
      exclude_do_not_bill_product_flag == o.exclude_do_not_bill_product_flag &&
      prefix_suffix_flag == o.prefix_suffix_flag &&
      prefix_suffix_text == o.prefix_suffix_text &&
      charge_adj_to_firm_flag == o.charge_adj_to_firm_flag &&
      no_watermark_flag == o.no_watermark_flag &&
      display_tax_flag == o.display_tax_flag &&
      allow_restricted_dept_on_routing_flag == o.allow_restricted_dept_on_routing_flag &&
      bill_ticket_separately_flag == o.bill_ticket_separately_flag &&
      bill_ticket_complete_flag == o.bill_ticket_complete_flag &&
      bill_ticket_unapproved_flag == o.bill_ticket_unapproved_flag &&
      bill_project_complete_flag == o.bill_project_complete_flag &&
      bill_project_unapproved_flag == o.bill_project_unapproved_flag &&
      progress_time_flag == o.progress_time_flag &&
      restrict_project_downpayment_flag == o.restrict_project_downpayment_flag &&
      bill_sales_order_complete_flag == o.bill_sales_order_complete_flag &&
      bill_product_after_ship_flag == o.bill_product_after_ship_flag &&
      restrict_downpayment_flag == o.restrict_downpayment_flag &&
      copy_non_service_products_flag == o.copy_non_service_products_flag &&
      copy_service_products_flag == o.copy_service_products_flag &&
      copy_agreement_products_flag == o.copy_agreement_products_flag &&
      print_logo_flag == o.print_logo_flag &&
      read_receipt_flag == o.read_receipt_flag &&
      delivery_receipt_flag == o.delivery_receipt_flag &&
      disable_routing_email_flag == o.disable_routing_email_flag &&
      email_template == o.email_template &&
      localized_country == o.localized_country &&
      business_number == o.business_number &&
      currency == o.currency &&
      custom_label == o.custom_label &&
      custom_text == o.custom_text &&
      company_code == o.company_code &&
      exclude_avalara_flag == o.exclude_avalara_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



946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
# File 'lib/connectwise-ruby-sdk/models/billing_setup.rb', line 946

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



1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
# File 'lib/connectwise-ruby-sdk/models/billing_setup.rb', line 1012

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



925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
# File 'lib/connectwise-ruby-sdk/models/billing_setup.rb', line 925

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


912
913
914
# File 'lib/connectwise-ruby-sdk/models/billing_setup.rb', line 912

def eql?(o)
  self == o
end

#hashFixnum

Calculates hash code according to all attributes.

Returns:

  • (Fixnum)

    Hash code



918
919
920
# File 'lib/connectwise-ruby-sdk/models/billing_setup.rb', line 918

def hash
  [id, remit_name, location, address_one, address_two, city, state, zip, country, phone, invoice_title, payable_name, topcomment, invoice_footer, quote_footer, overall_invoice_default, standard_invoice_actual, standard_invoice_fixed, progress_invoice, agreement_invoice, credit_memo_invoice, down_payment_invoice, misc_invoice, sales_order_invoice, exclude_do_not_bill_time_flag, exclude_do_not_bill_expense_flag, exclude_do_not_bill_product_flag, prefix_suffix_flag, prefix_suffix_text, charge_adj_to_firm_flag, no_watermark_flag, display_tax_flag, allow_restricted_dept_on_routing_flag, bill_ticket_separately_flag, bill_ticket_complete_flag, bill_ticket_unapproved_flag, bill_project_complete_flag, bill_project_unapproved_flag, progress_time_flag, restrict_project_downpayment_flag, bill_sales_order_complete_flag, bill_product_after_ship_flag, restrict_downpayment_flag, copy_non_service_products_flag, copy_service_products_flag, copy_agreement_products_flag, print_logo_flag, read_receipt_flag, delivery_receipt_flag, disable_routing_email_flag, email_template, localized_country, business_number, currency, custom_label, custom_text, company_code, exclude_avalara_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



526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
# File 'lib/connectwise-ruby-sdk/models/billing_setup.rb', line 526

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

  return invalid_properties
end

#to_bodyHash

to_body is an alias to to_hash (backward compatibility)

Returns:

  • (Hash)

    Returns the object in the form of hash



992
993
994
# File 'lib/connectwise-ruby-sdk/models/billing_setup.rb', line 992

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



998
999
1000
1001
1002
1003
1004
1005
1006
# File 'lib/connectwise-ruby-sdk/models/billing_setup.rb', line 998

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



986
987
988
# File 'lib/connectwise-ruby-sdk/models/billing_setup.rb', line 986

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



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

def valid?
  return false if @remit_name.nil?
  return false if @remit_name.to_s.length > 50
  return false if @location.nil?
  return false if !@address_one.nil? && @address_one.to_s.length > 50
  return false if !@address_two.nil? && @address_two.to_s.length > 50
  return false if !@city.nil? && @city.to_s.length > 50
  return false if !@zip.nil? && @zip.to_s.length > 12
  return false if !@phone.nil? && @phone.to_s.length > 15
  return false if @invoice_title.nil?
  return false if @invoice_title.to_s.length > 50
  return false if @payable_name.nil?
  return false if @payable_name.to_s.length > 50
  return false if !@topcomment.nil? && @topcomment.to_s.length > 4000
  return false if !@invoice_footer.nil? && @invoice_footer.to_s.length > 500
  return false if !@quote_footer.nil? && @quote_footer.to_s.length > 1000
  return false if @overall_invoice_default.nil?
  prefix_suffix_flag_validator = EnumAttributeValidator.new('String', ["Prefix", "Suffix"])
  return false unless prefix_suffix_flag_validator.valid?(@prefix_suffix_flag)
  return false if !@prefix_suffix_text.nil? && @prefix_suffix_text.to_s.length > 5
  return false if @email_template.nil?
  return false if !@business_number.nil? && @business_number.to_s.length > 50
  return false if !@custom_label.nil? && @custom_label.to_s.length > 50
  return false if !@custom_text.nil? && @custom_text.to_s.length > 500
  return false if !@company_code.nil? && @company_code.to_s.length > 250
  return true
end