Class: ConnectWise::GLExportTransaction

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ GLExportTransaction

Initializes the object

Parameters:

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

    Model attributes in the form of hash



258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
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
# File 'lib/connectwise-ruby-sdk/models/gl_export_transaction.rb', line 258

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

end

Instance Attribute Details

#account_numberObject

Returns the value of attribute account_number.



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

def 
  @account_number
end

#agreement_pre_payment_flagObject

Returns the value of attribute agreement_pre_payment_flag.



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

def agreement_pre_payment_flag
  @agreement_pre_payment_flag
end

#attentionObject

Returns the value of attribute attention.



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

def attention
  @attention
end

#billing_termsObject

Returns the value of attribute billing_terms.



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

def billing_terms
  @billing_terms
end

#billing_terms_xrefObject

Returns the value of attribute billing_terms_xref.



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

def billing_terms_xref
  @billing_terms_xref
end

#billing_typeObject

Returns the value of attribute billing_type.



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

def billing_type
  @billing_type
end

#city_taxObject

Returns the value of attribute city_tax.



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

def city_tax
  @city_tax
end

#companyObject

Returns the value of attribute company.



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

def company
  @company
end

#company_account_numberObject

Returns the value of attribute company_account_number.



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

def 
  @company_account_number
end

#company_typeObject

Returns the value of attribute company_type.



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

def company_type
  @company_type
end

#county_taxObject

Returns the value of attribute county_tax.



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

def county_tax
  @county_tax
end

#county_tax_xrefObject

Returns the value of attribute county_tax_xref.



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

def county_tax_xref
  @county_tax_xref
end

#currencyObject

Returns the value of attribute currency.



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

def currency
  @currency
end

#descriptionObject

Returns the value of attribute description.



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

def description
  @description
end

#detailObject

Returns the value of attribute detail.



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

def detail
  @detail
end

#document_dateObject

Returns the value of attribute document_date.



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

def document_date
  @document_date
end

#document_numberObject

Returns the value of attribute document_number.



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

def document_number
  @document_number
end

#document_typeObject

Returns the value of attribute document_type.



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

def document_type
  @document_type
end

#due_dateObject

Returns the value of attribute due_date.



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

def due_date
  @due_date
end

#due_daysObject

Returns the value of attribute due_days.



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

def due_days
  @due_days
end

#email_delivery_flagObject

Returns the value of attribute email_delivery_flag.



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

def email_delivery_flag
  @email_delivery_flag
end

#gl_classObject

Returns the value of attribute gl_class.



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

def gl_class
  @gl_class
end

#gl_entry_idsObject

Returns the value of attribute gl_entry_ids.



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

def gl_entry_ids
  @gl_entry_ids
end

#gl_type_idObject

Returns the value of attribute gl_type_id.



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

def gl_type_id
  @gl_type_id
end

#idObject

Returns the value of attribute id.



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

def id
  @id
end

#memoObject

Returns the value of attribute memo.



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

def memo
  @memo
end

#piggy_back_flagObject

Returns the value of attribute piggy_back_flag.



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

def piggy_back_flag
  @piggy_back_flag
end

Returns the value of attribute print_delivery_flag.



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

def print_delivery_flag
  @print_delivery_flag
end

#projectObject

Returns the value of attribute project.



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

def project
  @project
end

#purchase_orderObject

Returns the value of attribute purchase_order.



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

def purchase_order
  @purchase_order
end

#sales_rep_idObject

Returns the value of attribute sales_rep_id.



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

def sales_rep_id
  @sales_rep_id
end

#sales_rep_nameObject

Returns the value of attribute sales_rep_name.



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

def sales_rep_name
  @sales_rep_name
end

#sales_taxObject

Returns the value of attribute sales_tax.



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

def sales_tax
  @sales_tax
end

#sales_territoryObject

Returns the value of attribute sales_territory.



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

def sales_territory
  @sales_territory
end

#send_avalara_tax_flagObject

Returns the value of attribute send_avalara_tax_flag.



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

def send_avalara_tax_flag
  @send_avalara_tax_flag
end

#ship_company_account_numberObject

Returns the value of attribute ship_company_account_number.



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

def 
  @ship_company_account_number
end

#ship_company_typeObject

Returns the value of attribute ship_company_type.



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

def ship_company_type
  @ship_company_type
end

#ship_contactObject

Returns the value of attribute ship_contact.



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

def ship_contact
  @ship_contact
end

#ship_siteObject

Returns the value of attribute ship_site.



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

def ship_site
  @ship_site
end

#ship_tax_idObject

Returns the value of attribute ship_tax_id.



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

def ship_tax_id
  @ship_tax_id
end

#ship_to_companyObject

Returns the value of attribute ship_to_company.



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

def ship_to_company
  @ship_to_company
end

#siteObject

Returns the value of attribute site.



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

def site
  @site
end

#state_taxObject

Returns the value of attribute state_tax.



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

def state_tax
  @state_tax
end

#state_tax_xrefObject

Returns the value of attribute state_tax_xref.



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

def state_tax_xref
  @state_tax_xref
end

#tax_account_numberObject

Returns the value of attribute tax_account_number.



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

def 
  @tax_account_number
end

#tax_agency_xrefObject

Returns the value of attribute tax_agency_xref.



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

def tax_agency_xref
  @tax_agency_xref
end

#tax_codeObject

Returns the value of attribute tax_code.



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

def tax_code
  @tax_code
end

#tax_dp_applied_flagObject

Returns the value of attribute tax_dp_applied_flag.



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

def tax_dp_applied_flag
  @tax_dp_applied_flag
end

#tax_group_rateObject

Returns the value of attribute tax_group_rate.



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

def tax_group_rate
  @tax_group_rate
end

#tax_idObject

Returns the value of attribute tax_id.



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

def tax_id
  @tax_id
end

#taxableObject

Returns the value of attribute taxable.



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

def taxable
  @taxable
end

#taxable_amount1Object

Returns the value of attribute taxable_amount1.



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

def taxable_amount1
  @taxable_amount1
end

#taxable_amount2Object

Returns the value of attribute taxable_amount2.



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

def taxable_amount2
  @taxable_amount2
end

#taxable_amount3Object

Returns the value of attribute taxable_amount3.



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

def taxable_amount3
  @taxable_amount3
end

#taxable_amount4Object

Returns the value of attribute taxable_amount4.



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

def taxable_amount4
  @taxable_amount4
end

#taxable_amount5Object

Returns the value of attribute taxable_amount5.



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

def taxable_amount5
  @taxable_amount5
end

#taxable_totalObject

Returns the value of attribute taxable_total.



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

def taxable_total
  @taxable_total
end

#totalObject

Returns the value of attribute total.



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

def total
  @total
end

#use_avalara_flagObject

Returns the value of attribute use_avalara_flag.



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

def use_avalara_flag
  @use_avalara_flag
end

Class Method Details

.attribute_mapObject

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



127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
# File 'lib/connectwise-ruby-sdk/models/gl_export_transaction.rb', line 127

def self.attribute_map
  {
    :'id' => :'id',
    :'gl_class' => :'glClass',
    :'gl_type_id' => :'glTypeId',
    :'document_date' => :'documentDate',
    :'document_number' => :'documentNumber',
    :'document_type' => :'documentType',
    :'memo' => :'memo',
    :'description' => :'description',
    :'attention' => :'attention',
    :'sales_territory' => :'salesTerritory',
    :'company' => :'company',
    :'company_type' => :'companyType',
    :'company_account_number' => :'companyAccountNumber',
    :'site' => :'site',
    :'billing_terms' => :'billingTerms',
    :'billing_terms_xref' => :'billingTermsXref',
    :'due_days' => :'dueDays',
    :'due_date' => :'dueDate',
    :'email_delivery_flag' => :'emailDeliveryFlag',
    :'print_delivery_flag' => :'printDeliveryFlag',
    :'agreement_pre_payment_flag' => :'agreementPrePaymentFlag',
    :'account_number' => :'accountNumber',
    :'billing_type' => :'billingType',
    :'gl_entry_ids' => :'glEntryIds',
    :'purchase_order' => :'purchaseOrder',
    :'project' => :'project',
    :'currency' => :'currency',
    :'total' => :'total',
    :'sales_rep_id' => :'salesRepId',
    :'sales_rep_name' => :'salesRepName',
    :'taxable' => :'taxable',
    :'taxable_total' => :'taxableTotal',
    :'tax_code' => :'taxCode',
    :'tax_group_rate' => :'taxGroupRate',
    :'piggy_back_flag' => :'piggyBackFlag',
    :'tax_account_number' => :'taxAccountNumber',
    :'sales_tax' => :'salesTax',
    :'state_tax' => :'stateTax',
    :'county_tax' => :'countyTax',
    :'city_tax' => :'cityTax',
    :'taxable_amount1' => :'taxableAmount1',
    :'taxable_amount2' => :'taxableAmount2',
    :'taxable_amount3' => :'taxableAmount3',
    :'taxable_amount4' => :'taxableAmount4',
    :'taxable_amount5' => :'taxableAmount5',
    :'tax_agency_xref' => :'taxAgencyXref',
    :'state_tax_xref' => :'stateTaxXref',
    :'county_tax_xref' => :'countyTaxXref',
    :'tax_id' => :'taxId',
    :'tax_dp_applied_flag' => :'taxDpAppliedFlag',
    :'use_avalara_flag' => :'useAvalaraFlag',
    :'send_avalara_tax_flag' => :'sendAvalaraTaxFlag',
    :'ship_to_company' => :'shipToCompany',
    :'ship_company_account_number' => :'shipCompanyAccountNumber',
    :'ship_company_type' => :'shipCompanyType',
    :'ship_tax_id' => :'shipTaxId',
    :'ship_site' => :'shipSite',
    :'ship_contact' => :'shipContact',
    :'detail' => :'detail'
  }
end

.swagger_typesObject

Attribute type mapping.



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

def self.swagger_types
  {
    :'id' => :'Integer',
    :'gl_class' => :'String',
    :'gl_type_id' => :'String',
    :'document_date' => :'DateTime',
    :'document_number' => :'String',
    :'document_type' => :'String',
    :'memo' => :'String',
    :'description' => :'String',
    :'attention' => :'String',
    :'sales_territory' => :'String',
    :'company' => :'CompanyReference',
    :'company_type' => :'CompanyTypeReference',
    :'company_account_number' => :'String',
    :'site' => :'SiteReference',
    :'billing_terms' => :'BillingTermsReference',
    :'billing_terms_xref' => :'String',
    :'due_days' => :'Integer',
    :'due_date' => :'DateTime',
    :'email_delivery_flag' => :'BOOLEAN',
    :'print_delivery_flag' => :'BOOLEAN',
    :'agreement_pre_payment_flag' => :'BOOLEAN',
    :'account_number' => :'String',
    :'billing_type' => :'String',
    :'gl_entry_ids' => :'String',
    :'purchase_order' => :'PurchaseOrderReference',
    :'project' => :'ProjectReference',
    :'currency' => :'CurrencyReference',
    :'total' => :'Float',
    :'sales_rep_id' => :'String',
    :'sales_rep_name' => :'String',
    :'taxable' => :'BOOLEAN',
    :'taxable_total' => :'Float',
    :'tax_code' => :'TaxCodeReference',
    :'tax_group_rate' => :'Float',
    :'piggy_back_flag' => :'BOOLEAN',
    :'tax_account_number' => :'String',
    :'sales_tax' => :'Float',
    :'state_tax' => :'Float',
    :'county_tax' => :'Float',
    :'city_tax' => :'Float',
    :'taxable_amount1' => :'Float',
    :'taxable_amount2' => :'Float',
    :'taxable_amount3' => :'Float',
    :'taxable_amount4' => :'Float',
    :'taxable_amount5' => :'Float',
    :'tax_agency_xref' => :'String',
    :'state_tax_xref' => :'String',
    :'county_tax_xref' => :'String',
    :'tax_id' => :'String',
    :'tax_dp_applied_flag' => :'BOOLEAN',
    :'use_avalara_flag' => :'BOOLEAN',
    :'send_avalara_tax_flag' => :'BOOLEAN',
    :'ship_to_company' => :'CompanyReference',
    :'ship_company_account_number' => :'String',
    :'ship_company_type' => :'CompanyTypeReference',
    :'ship_tax_id' => :'String',
    :'ship_site' => :'SiteReference',
    :'ship_contact' => :'ContactReference',
    :'detail' => :'Array<GLExportTransactionDetail>'
  }
end

Instance Method Details

#==(o) ⇒ Object

Checks equality by comparing each attribute.

Parameters:

  • Object (Object)

    to be compared



519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
# File 'lib/connectwise-ruby-sdk/models/gl_export_transaction.rb', line 519

def ==(o)
  return true if self.equal?(o)
  self.class == o.class &&
      id == o.id &&
      gl_class == o.gl_class &&
      gl_type_id == o.gl_type_id &&
      document_date == o.document_date &&
      document_number == o.document_number &&
      document_type == o.document_type &&
      memo == o.memo &&
      description == o.description &&
      attention == o.attention &&
      sales_territory == o.sales_territory &&
      company == o.company &&
      company_type == o.company_type &&
       == o. &&
      site == o.site &&
      billing_terms == o.billing_terms &&
      billing_terms_xref == o.billing_terms_xref &&
      due_days == o.due_days &&
      due_date == o.due_date &&
      email_delivery_flag == o.email_delivery_flag &&
      print_delivery_flag == o.print_delivery_flag &&
      agreement_pre_payment_flag == o.agreement_pre_payment_flag &&
       == o. &&
      billing_type == o.billing_type &&
      gl_entry_ids == o.gl_entry_ids &&
      purchase_order == o.purchase_order &&
      project == o.project &&
      currency == o.currency &&
      total == o.total &&
      sales_rep_id == o.sales_rep_id &&
      sales_rep_name == o.sales_rep_name &&
      taxable == o.taxable &&
      taxable_total == o.taxable_total &&
      tax_code == o.tax_code &&
      tax_group_rate == o.tax_group_rate &&
      piggy_back_flag == o.piggy_back_flag &&
       == o. &&
      sales_tax == o.sales_tax &&
      state_tax == o.state_tax &&
      county_tax == o.county_tax &&
      city_tax == o.city_tax &&
      taxable_amount1 == o.taxable_amount1 &&
      taxable_amount2 == o.taxable_amount2 &&
      taxable_amount3 == o.taxable_amount3 &&
      taxable_amount4 == o.taxable_amount4 &&
      taxable_amount5 == o.taxable_amount5 &&
      tax_agency_xref == o.tax_agency_xref &&
      state_tax_xref == o.state_tax_xref &&
      county_tax_xref == o.county_tax_xref &&
      tax_id == o.tax_id &&
      tax_dp_applied_flag == o.tax_dp_applied_flag &&
      use_avalara_flag == o.use_avalara_flag &&
      send_avalara_tax_flag == o.send_avalara_tax_flag &&
      ship_to_company == o.ship_to_company &&
       == o. &&
      ship_company_type == o.ship_company_type &&
      ship_tax_id == o.ship_tax_id &&
      ship_site == o.ship_site &&
      ship_contact == o.ship_contact &&
      detail == o.detail
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



619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
# File 'lib/connectwise-ruby-sdk/models/gl_export_transaction.rb', line 619

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



685
686
687
688
689
690
691
692
693
694
695
696
697
# File 'lib/connectwise-ruby-sdk/models/gl_export_transaction.rb', line 685

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



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

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


585
586
587
# File 'lib/connectwise-ruby-sdk/models/gl_export_transaction.rb', line 585

def eql?(o)
  self == o
end

#hashFixnum

Calculates hash code according to all attributes.

Returns:

  • (Fixnum)

    Hash code



591
592
593
# File 'lib/connectwise-ruby-sdk/models/gl_export_transaction.rb', line 591

def hash
  [id, gl_class, gl_type_id, document_date, document_number, document_type, memo, description, attention, sales_territory, company, company_type, , site, billing_terms, billing_terms_xref, due_days, due_date, email_delivery_flag, print_delivery_flag, agreement_pre_payment_flag, , billing_type, gl_entry_ids, purchase_order, project, currency, total, sales_rep_id, sales_rep_name, taxable, taxable_total, tax_code, tax_group_rate, piggy_back_flag, , sales_tax, state_tax, county_tax, city_tax, taxable_amount1, taxable_amount2, taxable_amount3, taxable_amount4, taxable_amount5, tax_agency_xref, state_tax_xref, county_tax_xref, tax_id, tax_dp_applied_flag, use_avalara_flag, send_avalara_tax_flag, ship_to_company, , ship_company_type, ship_tax_id, ship_site, ship_contact, detail].hash
end

#list_invalid_propertiesObject

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

Returns:

  • Array for valid properies with the reasons



506
507
508
509
# File 'lib/connectwise-ruby-sdk/models/gl_export_transaction.rb', line 506

def list_invalid_properties
  invalid_properties = Array.new
  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



665
666
667
# File 'lib/connectwise-ruby-sdk/models/gl_export_transaction.rb', line 665

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



671
672
673
674
675
676
677
678
679
# File 'lib/connectwise-ruby-sdk/models/gl_export_transaction.rb', line 671

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



659
660
661
# File 'lib/connectwise-ruby-sdk/models/gl_export_transaction.rb', line 659

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



513
514
515
# File 'lib/connectwise-ruby-sdk/models/gl_export_transaction.rb', line 513

def valid?
  return true
end