-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathindex.js
1458 lines (1274 loc) · 59.5 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
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
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
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
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
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
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
654
655
656
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
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
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
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
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
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
const { promisify } = require("util")
/**
* Quickbooks integration class from node-quickbooks
* @class
*/
const QuickBooks = require("@raydeck/node-quickbooks")
//#region Conversion of methods to Old
QuickBooks.prototype.refreshAccessTokenOld = QuickBooks.prototype.refreshAccessToken
QuickBooks.prototype.revokeAccessOld = QuickBooks.prototype.revokeAccess
QuickBooks.prototype.getUserInfoOld = QuickBooks.prototype.getUserInfo
QuickBooks.prototype.batchOld = QuickBooks.prototype.batch
QuickBooks.prototype.changeDataCaptureOld = QuickBooks.prototype.changeDataCapture
QuickBooks.prototype.createAccountOld = QuickBooks.prototype.createAccount
QuickBooks.prototype.createAttachableOld = QuickBooks.prototype.createAttachable
QuickBooks.prototype.createBillOld = QuickBooks.prototype.createBill
QuickBooks.prototype.createBillPaymentOld = QuickBooks.prototype.createBillPayment
QuickBooks.prototype.createClassOld = QuickBooks.prototype.createClass
QuickBooks.prototype.createCreditMemoOld = QuickBooks.prototype.createCreditMemo
QuickBooks.prototype.createCustomerOld = QuickBooks.prototype.createCustomer
QuickBooks.prototype.createDepartmentOld = QuickBooks.prototype.createDepartment
QuickBooks.prototype.createDepositOld = QuickBooks.prototype.createDeposit
QuickBooks.prototype.createEmployeeOld = QuickBooks.prototype.createEmployee
QuickBooks.prototype.createEstimateOld = QuickBooks.prototype.createEstimate
QuickBooks.prototype.createInvoiceOld = QuickBooks.prototype.createInvoice
QuickBooks.prototype.createItemOld = QuickBooks.prototype.createItem
QuickBooks.prototype.createJournalCodeOld = QuickBooks.prototype.createJournalCode
QuickBooks.prototype.createJournalEntryOld = QuickBooks.prototype.createJournalEntry
QuickBooks.prototype.createPaymentOld = QuickBooks.prototype.createPayment
QuickBooks.prototype.createPaymentMethodOld = QuickBooks.prototype.createPaymentMethod
QuickBooks.prototype.createPurchaseOld = QuickBooks.prototype.createPurchase
QuickBooks.prototype.createPurchaseOrderOld = QuickBooks.prototype.createPurchaseOrder
QuickBooks.prototype.createRefundReceiptOld = QuickBooks.prototype.createRefundReceipt
QuickBooks.prototype.createSalesReceiptOld = QuickBooks.prototype.createSalesReceipt
QuickBooks.prototype.createTaxAgencyOld = QuickBooks.prototype.createTaxAgency
QuickBooks.prototype.createTaxServiceOld = QuickBooks.prototype.createTaxService
QuickBooks.prototype.createTermOld = QuickBooks.prototype.createTerm
QuickBooks.prototype.createTimeActivityOld = QuickBooks.prototype.createTimeActivity
QuickBooks.prototype.createTransferOld = QuickBooks.prototype.createTransfer
QuickBooks.prototype.createVendorOld = QuickBooks.prototype.createVendor
QuickBooks.prototype.createVendorCreditOld = QuickBooks.prototype.createVendorCredit
QuickBooks.prototype.getAccountOld = QuickBooks.prototype.getAccount
QuickBooks.prototype.getAttachableOld = QuickBooks.prototype.getAttachable
QuickBooks.prototype.getBillOld = QuickBooks.prototype.getBill
QuickBooks.prototype.getBillPaymentOld = QuickBooks.prototype.getBillPayment
QuickBooks.prototype.getClassOld = QuickBooks.prototype.getClass
QuickBooks.prototype.getCompanyInfoOld = QuickBooks.prototype.getCompanyInfo
QuickBooks.prototype.getCreditMemoOld = QuickBooks.prototype.getCreditMemo
QuickBooks.prototype.getCustomerOld = QuickBooks.prototype.getCustomer
QuickBooks.prototype.getDepartmentOld = QuickBooks.prototype.getDepartment
QuickBooks.prototype.getDepositOld = QuickBooks.prototype.getDeposit
QuickBooks.prototype.getEmployeeOld = QuickBooks.prototype.getEmployee
QuickBooks.prototype.getEstimateOld = QuickBooks.prototype.getEstimate
QuickBooks.prototype.getExchangeRateOld = QuickBooks.prototype.getExchangeRate
QuickBooks.prototype.getEstimatePdfOld = QuickBooks.prototype.getEstimatePdf
QuickBooks.prototype.sendEstimatePdfOld = QuickBooks.prototype.sendEstimatePdf
QuickBooks.prototype.getInvoiceOld = QuickBooks.prototype.getInvoice
QuickBooks.prototype.getInvoicePdfOld = QuickBooks.prototype.getInvoicePdf
QuickBooks.prototype.sendInvoicePdfOld = QuickBooks.prototype.sendInvoicePdf
QuickBooks.prototype.getItemOld = QuickBooks.prototype.getItem
QuickBooks.prototype.getJournalCodeOld = QuickBooks.prototype.getJournalCode
QuickBooks.prototype.getJournalEntryOld = QuickBooks.prototype.getJournalEntry
QuickBooks.prototype.getPaymentOld = QuickBooks.prototype.getPayment
QuickBooks.prototype.getPaymentMethodOld = QuickBooks.prototype.getPaymentMethod
QuickBooks.prototype.getPreferencesOld = QuickBooks.prototype.getPreferences
QuickBooks.prototype.getPurchaseOld = QuickBooks.prototype.getPurchase
QuickBooks.prototype.getPurchaseOrderOld = QuickBooks.prototype.getPurchaseOrder
QuickBooks.prototype.getRefundReceiptOld = QuickBooks.prototype.getRefundReceipt
QuickBooks.prototype.getReportsOld = QuickBooks.prototype.getReports
QuickBooks.prototype.getSalesReceiptOld = QuickBooks.prototype.getSalesReceipt
QuickBooks.prototype.getSalesReceiptPdfOld = QuickBooks.prototype.getSalesReceiptPdf
QuickBooks.prototype.sendSalesReceiptPdfOld = QuickBooks.prototype.sendSalesReceiptPdf
QuickBooks.prototype.getTaxAgencyOld = QuickBooks.prototype.getTaxAgency
QuickBooks.prototype.getTaxCodeOld = QuickBooks.prototype.getTaxCode
QuickBooks.prototype.getTaxRateOld = QuickBooks.prototype.getTaxRate
QuickBooks.prototype.getTermOld = QuickBooks.prototype.getTerm
QuickBooks.prototype.getTimeActivityOld = QuickBooks.prototype.getTimeActivity
QuickBooks.prototype.getTransferOld = QuickBooks.prototype.getTransfer
QuickBooks.prototype.getVendorOld = QuickBooks.prototype.getVendor
QuickBooks.prototype.getVendorCreditOld = QuickBooks.prototype.getVendorCredit
QuickBooks.prototype.updateAccountOld = QuickBooks.prototype.updateAccount
QuickBooks.prototype.updateAttachableOld = QuickBooks.prototype.updateAttachable
QuickBooks.prototype.updateBillOld = QuickBooks.prototype.updateBill
QuickBooks.prototype.updateBillPaymentOld = QuickBooks.prototype.updateBillPayment
QuickBooks.prototype.updateClassOld = QuickBooks.prototype.updateClass
QuickBooks.prototype.updateCompanyInfoOld = QuickBooks.prototype.updateCompanyInfo
QuickBooks.prototype.updateCreditMemoOld = QuickBooks.prototype.updateCreditMemo
QuickBooks.prototype.updateCustomerOld = QuickBooks.prototype.updateCustomer
QuickBooks.prototype.updateDepartmentOld = QuickBooks.prototype.updateDepartment
QuickBooks.prototype.updateDepositOld = QuickBooks.prototype.updateDeposit
QuickBooks.prototype.updateEmployeeOld = QuickBooks.prototype.updateEmployee
QuickBooks.prototype.updateEstimateOld = QuickBooks.prototype.updateEstimate
QuickBooks.prototype.updateInvoiceOld = QuickBooks.prototype.updateInvoice
QuickBooks.prototype.updateItemOld = QuickBooks.prototype.updateItem
QuickBooks.prototype.updateJournalCodeOld = QuickBooks.prototype.updateJournalCode
QuickBooks.prototype.updateJournalEntryOld = QuickBooks.prototype.updateJournalEntry
QuickBooks.prototype.updatePaymentOld = QuickBooks.prototype.updatePayment
QuickBooks.prototype.updatePaymentMethodOld = QuickBooks.prototype.updatePaymentMethod
QuickBooks.prototype.updatePreferencesOld = QuickBooks.prototype.updatePreferences
QuickBooks.prototype.updatePurchaseOld = QuickBooks.prototype.updatePurchase
QuickBooks.prototype.updatePurchaseOrderOld = QuickBooks.prototype.updatePurchaseOrder
QuickBooks.prototype.updateRefundReceiptOld = QuickBooks.prototype.updateRefundReceipt
QuickBooks.prototype.updateSalesReceiptOld = QuickBooks.prototype.updateSalesReceipt
QuickBooks.prototype.updateTaxAgencyOld = QuickBooks.prototype.updateTaxAgency
QuickBooks.prototype.updateTaxCodeOld = QuickBooks.prototype.updateTaxCode
QuickBooks.prototype.updateTaxRateOld = QuickBooks.prototype.updateTaxRate
QuickBooks.prototype.updateTermOld = QuickBooks.prototype.updateTerm
QuickBooks.prototype.updateTimeActivityOld = QuickBooks.prototype.updateTimeActivity
QuickBooks.prototype.updateTransferOld = QuickBooks.prototype.updateTransfer
QuickBooks.prototype.updateVendorOld = QuickBooks.prototype.updateVendor
QuickBooks.prototype.updateVendorCreditOld = QuickBooks.prototype.updateVendorCredit
QuickBooks.prototype.updateExchangeRateOld = QuickBooks.prototype.updateExchangeRate
QuickBooks.prototype.deleteAttachableOld = QuickBooks.prototype.deleteAttachable
QuickBooks.prototype.deleteBillOld = QuickBooks.prototype.deleteBill
QuickBooks.prototype.deleteBillPaymentOld = QuickBooks.prototype.deleteBillPayment
QuickBooks.prototype.deleteCreditMemoOld = QuickBooks.prototype.deleteCreditMemo
QuickBooks.prototype.deleteDepositOld = QuickBooks.prototype.deleteDeposit
QuickBooks.prototype.deleteEstimateOld = QuickBooks.prototype.deleteEstimate
QuickBooks.prototype.deleteInvoiceOld = QuickBooks.prototype.deleteInvoice
QuickBooks.prototype.deleteJournalCodeOld = QuickBooks.prototype.deleteJournalCode
QuickBooks.prototype.deleteJournalEntryOld = QuickBooks.prototype.deleteJournalEntry
QuickBooks.prototype.deletePaymentOld = QuickBooks.prototype.deletePayment
QuickBooks.prototype.deletePurchaseOld = QuickBooks.prototype.deletePurchase
QuickBooks.prototype.deletePurchaseOrderOld = QuickBooks.prototype.deletePurchaseOrder
QuickBooks.prototype.deleteRefundReceiptOld = QuickBooks.prototype.deleteRefundReceipt
QuickBooks.prototype.deleteSalesReceiptOld = QuickBooks.prototype.deleteSalesReceipt
QuickBooks.prototype.deleteTimeActivityOld = QuickBooks.prototype.deleteTimeActivity
QuickBooks.prototype.deleteTransferOld = QuickBooks.prototype.deleteTransfer
QuickBooks.prototype.deleteVendorCreditOld = QuickBooks.prototype.deleteVendorCredit
QuickBooks.prototype.voidInvoiceOld = QuickBooks.prototype.voidInvoice
QuickBooks.prototype.voidPaymentOld = QuickBooks.prototype.voidPayment
QuickBooks.prototype.findAccountsOld = QuickBooks.prototype.findAccounts
QuickBooks.prototype.findAttachablesOld = QuickBooks.prototype.findAttachables
QuickBooks.prototype.findBillsOld = QuickBooks.prototype.findBills
QuickBooks.prototype.findBillPaymentsOld = QuickBooks.prototype.findBillPayments
QuickBooks.prototype.findBudgetsOld = QuickBooks.prototype.findBudgets
QuickBooks.prototype.findClassesOld = QuickBooks.prototype.findClasses
QuickBooks.prototype.findCompanyInfosOld = QuickBooks.prototype.findCompanyInfos
QuickBooks.prototype.findCreditMemosOld = QuickBooks.prototype.findCreditMemos
QuickBooks.prototype.findCustomersOld = QuickBooks.prototype.findCustomers
QuickBooks.prototype.findDepartmentsOld = QuickBooks.prototype.findDepartments
QuickBooks.prototype.findDepositsOld = QuickBooks.prototype.findDeposits
QuickBooks.prototype.findEmployeesOld = QuickBooks.prototype.findEmployees
QuickBooks.prototype.findEstimatesOld = QuickBooks.prototype.findEstimates
QuickBooks.prototype.findInvoicesOld = QuickBooks.prototype.findInvoices
QuickBooks.prototype.findItemsOld = QuickBooks.prototype.findItems
QuickBooks.prototype.findJournalCodesOld = QuickBooks.prototype.findJournalCodes
QuickBooks.prototype.findJournalEntriesOld = QuickBooks.prototype.findJournalEntries
QuickBooks.prototype.findPaymentsOld = QuickBooks.prototype.findPayments
QuickBooks.prototype.findPaymentMethodsOld = QuickBooks.prototype.findPaymentMethods
QuickBooks.prototype.findPreferencesesOld = QuickBooks.prototype.findPreferenceses
QuickBooks.prototype.findPurchasesOld = QuickBooks.prototype.findPurchases
QuickBooks.prototype.findPurchaseOrdersOld = QuickBooks.prototype.findPurchaseOrders
QuickBooks.prototype.findRefundReceiptsOld = QuickBooks.prototype.findRefundReceipts
QuickBooks.prototype.findSalesReceiptsOld = QuickBooks.prototype.findSalesReceipts
QuickBooks.prototype.findTaxAgenciesOld = QuickBooks.prototype.findTaxAgencies
QuickBooks.prototype.findTaxCodesOld = QuickBooks.prototype.findTaxCodes
QuickBooks.prototype.findTaxRatesOld = QuickBooks.prototype.findTaxRates
QuickBooks.prototype.findTermsOld = QuickBooks.prototype.findTerms
QuickBooks.prototype.findTimeActivitiesOld = QuickBooks.prototype.findTimeActivities
QuickBooks.prototype.findTransfersOld = QuickBooks.prototype.findTransfers
QuickBooks.prototype.findVendorsOld = QuickBooks.prototype.findVendors
QuickBooks.prototype.findVendorCreditsOld = QuickBooks.prototype.findVendorCredits
QuickBooks.prototype.findExchangeRatesOld = QuickBooks.prototype.findExchangeRates
QuickBooks.prototype.reportBalanceSheetOld = QuickBooks.prototype.reportBalanceSheet
QuickBooks.prototype.reportProfitAndLossOld = QuickBooks.prototype.reportProfitAndLoss
QuickBooks.prototype.reportProfitAndLossDetailOld = QuickBooks.prototype.reportProfitAndLossDetail
QuickBooks.prototype.reportTrialBalanceOld = QuickBooks.prototype.reportTrialBalance
QuickBooks.prototype.reportCashFlowOld = QuickBooks.prototype.reportCashFlow
QuickBooks.prototype.reportCustomerSalesOld = QuickBooks.prototype.reportCustomerSales
QuickBooks.prototype.reportItemSalesOld = QuickBooks.prototype.reportItemSales
QuickBooks.prototype.reportCustomerIncomeOld = QuickBooks.prototype.reportCustomerIncome
QuickBooks.prototype.reportCustomerBalanceOld = QuickBooks.prototype.reportCustomerBalance
QuickBooks.prototype.reportCustomerBalanceDetailOld = QuickBooks.prototype.reportCustomerBalanceDetail
QuickBooks.prototype.reportAgedReceivablesOld = QuickBooks.prototype.reportAgedReceivables
QuickBooks.prototype.reportAgedReceivableDetailOld = QuickBooks.prototype.reportAgedReceivableDetail
QuickBooks.prototype.reportVendorBalanceOld = QuickBooks.prototype.reportVendorBalance
QuickBooks.prototype.reportVendorBalanceDetailOld = QuickBooks.prototype.reportVendorBalanceDetail
QuickBooks.prototype.reportAgedPayablesOld = QuickBooks.prototype.reportAgedPayables
QuickBooks.prototype.reportAgedPayableDetailOld = QuickBooks.prototype.reportAgedPayableDetail
QuickBooks.prototype.reportVendorExpensesOld = QuickBooks.prototype.reportVendorExpenses
QuickBooks.prototype.reportTransactionListOld = QuickBooks.prototype.reportTransactionList
QuickBooks.prototype.reportGeneralLedgerDetailOld = QuickBooks.prototype.reportGeneralLedgerDetail
QuickBooks.prototype.reportTaxSummaryOld = QuickBooks.prototype.reportTaxSummary
QuickBooks.prototype.reportDepartmentSalesOld = QuickBooks.prototype.reportDepartmentSales
QuickBooks.prototype.reportClassSalesOld = QuickBooks.prototype.reportClassSales
QuickBooks.prototype.reportAccountListDetailOld = QuickBooks.prototype.reportAccountListDetail
QuickBooks.prototype.reconnectOld = QuickBooks.prototype.reconnect
QuickBooks.prototype.disconnectOld = QuickBooks.prototype.disconnect
//#endregion
//#region New Promise declarations
QuickBooks.prototype.refreshAccessToken = promisify(QuickBooks.prototype.refreshAccessTokenOld)
/**
* Use either refresh token or access token to revoke access (OAuth2).
*
* @param useRefresh - boolean - Indicates which token to use: true to use the refresh token, false to use the access token.
*/
QuickBooks.prototype.revokeAccess = promisify(QuickBooks.prototype.revokeAccessOld)
/**
* Get user info (OAuth2).
*
*/
QuickBooks.prototype.getUserInfo = promisify(QuickBooks.prototype.getUserInfoOld)
/**
* Batch operation to enable an application to perform multiple operations in a single request.
* The following batch items are supported:
create
update
delete
query
* The maximum number of batch items in a single request is 25.
*
* @param {object} items - JavaScript array of batch items
*/
QuickBooks.prototype.batch = promisify(QuickBooks.prototype.batchOld)
/**
* The change data capture (CDC) operation returns a list of entities that have changed since a specified time.
*
* @param {object} entities - Comma separated list or JavaScript array of entities to search for changes
* @param {object} since - JavaScript Date or string representation of the form '2012-07-20T22:25:51-07:00' to look back for changes until
*/
QuickBooks.prototype.changeDataCapture = promisify(QuickBooks.prototype.changeDataCaptureOld)
/**
* Creates the Account in QuickBooks
*
* @param {object} account - The unsaved account, to be persisted in QuickBooks
*/
QuickBooks.prototype.createAccount = promisify(QuickBooks.prototype.createAccountOld)
/**
* Creates the Attachable in QuickBooks
*
* @param {object} attachable - The unsaved attachable, to be persisted in QuickBooks
*/
QuickBooks.prototype.createAttachable = promisify(QuickBooks.prototype.createAttachableOld)
/**
* Creates the Bill in QuickBooks
*
* @param {object} bill - The unsaved bill, to be persisted in QuickBooks
*/
QuickBooks.prototype.createBill = promisify(QuickBooks.prototype.createBillOld)
/**
* Creates the BillPayment in QuickBooks
*
* @param {object} billPayment - The unsaved billPayment, to be persisted in QuickBooks
*/
QuickBooks.prototype.createBillPayment = promisify(QuickBooks.prototype.createBillPaymentOld)
/**
* Creates the Class in QuickBooks
*
* @param {object} class - The unsaved class, to be persisted in QuickBooks
*/
QuickBooks.prototype.createClass = promisify(QuickBooks.prototype.createClassOld)
/**
* Creates the CreditMemo in QuickBooks
*
* @param {object} creditMemo - The unsaved creditMemo, to be persisted in QuickBooks
*/
QuickBooks.prototype.createCreditMemo = promisify(QuickBooks.prototype.createCreditMemoOld)
/**
* Creates the Customer in QuickBooks
*
* @param {object} customer - The unsaved customer, to be persisted in QuickBooks
*/
QuickBooks.prototype.createCustomer = promisify(QuickBooks.prototype.createCustomerOld)
/**
* Creates the Department in QuickBooks
*
* @param {object} department - The unsaved department, to be persisted in QuickBooks
*/
QuickBooks.prototype.createDepartment = promisify(QuickBooks.prototype.createDepartmentOld)
/**
* Creates the Deposit in QuickBooks
*
* @param {object} deposit - The unsaved Deposit, to be persisted in QuickBooks
*/
QuickBooks.prototype.createDeposit = promisify(QuickBooks.prototype.createDepositOld)
/**
* Creates the Employee in QuickBooks
*
* @param {object} employee - The unsaved employee, to be persisted in QuickBooks
*/
QuickBooks.prototype.createEmployee = promisify(QuickBooks.prototype.createEmployeeOld)
/**
* Creates the Estimate in QuickBooks
*
* @param {object} estimate - The unsaved estimate, to be persisted in QuickBooks
*/
QuickBooks.prototype.createEstimate = promisify(QuickBooks.prototype.createEstimateOld)
/**
* Creates the Invoice in QuickBooks
*
* @param {object} invoice - The unsaved invoice, to be persisted in QuickBooks
*/
QuickBooks.prototype.createInvoice = promisify(QuickBooks.prototype.createInvoiceOld)
/**
* Creates the Item in QuickBooks
*
* @param {object} item - The unsaved item, to be persisted in QuickBooks
*/
QuickBooks.prototype.createItem = promisify(QuickBooks.prototype.createItemOld)
/**
* Creates the JournalCode in QuickBooks
*
* @param {object} journalCode - The unsaved journalCode, to be persisted in QuickBooks
*/
QuickBooks.prototype.createJournalCode = promisify(QuickBooks.prototype.createJournalCodeOld)
/**
* Creates the JournalEntry in QuickBooks
*
* @param {object} journalEntry - The unsaved journalEntry, to be persisted in QuickBooks
*/
QuickBooks.prototype.createJournalEntry = promisify(QuickBooks.prototype.createJournalEntryOld)
/**
* Creates the Payment in QuickBooks
*
* @param {object} payment - The unsaved payment, to be persisted in QuickBooks
*/
QuickBooks.prototype.createPayment = promisify(QuickBooks.prototype.createPaymentOld)
/**
* Creates the PaymentMethod in QuickBooks
*
* @param {object} paymentMethod - The unsaved paymentMethod, to be persisted in QuickBooks
*/
QuickBooks.prototype.createPaymentMethod = promisify(QuickBooks.prototype.createPaymentMethodOld)
/**
* Creates the Purchase in QuickBooks
*
* @param {object} purchase - The unsaved purchase, to be persisted in QuickBooks
*/
QuickBooks.prototype.createPurchase = promisify(QuickBooks.prototype.createPurchaseOld)
/**
* Creates the PurchaseOrder in QuickBooks
*
* @param {object} purchaseOrder - The unsaved purchaseOrder, to be persisted in QuickBooks
*/
QuickBooks.prototype.createPurchaseOrder = promisify(QuickBooks.prototype.createPurchaseOrderOld)
/**
* Creates the RefundReceipt in QuickBooks
*
* @param {object} refundReceipt - The unsaved refundReceipt, to be persisted in QuickBooks
*/
QuickBooks.prototype.createRefundReceipt = promisify(QuickBooks.prototype.createRefundReceiptOld)
/**
* Creates the SalesReceipt in QuickBooks
*
* @param {object} salesReceipt - The unsaved salesReceipt, to be persisted in QuickBooks
*/
QuickBooks.prototype.createSalesReceipt = promisify(QuickBooks.prototype.createSalesReceiptOld)
/**
* Creates the TaxAgency in QuickBooks
*
* @param {object} taxAgency - The unsaved taxAgency, to be persisted in QuickBooks
*/
QuickBooks.prototype.createTaxAgency = promisify(QuickBooks.prototype.createTaxAgencyOld)
/**
* Creates the TaxService in QuickBooks
*
* @param {object} taxService - The unsaved taxService, to be persisted in QuickBooks
*/
QuickBooks.prototype.createTaxService = promisify(QuickBooks.prototype.createTaxServiceOld)
/**
* Creates the Term in QuickBooks
*
* @param {object} term - The unsaved term, to be persisted in QuickBooks
*/
QuickBooks.prototype.createTerm = promisify(QuickBooks.prototype.createTermOld)
/**
* Creates the TimeActivity in QuickBooks
*
* @param {object} timeActivity - The unsaved timeActivity, to be persisted in QuickBooks
*/
QuickBooks.prototype.createTimeActivity = promisify(QuickBooks.prototype.createTimeActivityOld)
/**
* Creates the Transfer in QuickBooks
*
* @param {object} transfer - The unsaved Transfer, to be persisted in QuickBooks
*/
QuickBooks.prototype.createTransfer = promisify(QuickBooks.prototype.createTransferOld)
/**
* Creates the Vendor in QuickBooks
*
* @param {object} vendor - The unsaved vendor, to be persisted in QuickBooks
*/
QuickBooks.prototype.createVendor = promisify(QuickBooks.prototype.createVendorOld)
/**
* Creates the VendorCredit in QuickBooks
*
* @param {object} vendorCredit - The unsaved vendorCredit, to be persisted in QuickBooks
*/
QuickBooks.prototype.createVendorCredit = promisify(QuickBooks.prototype.createVendorCreditOld)
/**
* Retrieves the Account from QuickBooks
*
* @param {string} Id - The Id of persistent Account
*/
QuickBooks.prototype.getAccount = promisify(QuickBooks.prototype.getAccountOld)
/**
* Retrieves the Attachable from QuickBooks
*
* @param {string} Id - The Id of persistent Attachable
*/
QuickBooks.prototype.getAttachable = promisify(QuickBooks.prototype.getAttachableOld)
/**
* Retrieves the Bill from QuickBooks
*
* @param {string} Id - The Id of persistent Bill
*/
QuickBooks.prototype.getBill = promisify(QuickBooks.prototype.getBillOld)
/**
* Retrieves the BillPayment from QuickBooks
*
* @param {string} Id - The Id of persistent BillPayment
*/
QuickBooks.prototype.getBillPayment = promisify(QuickBooks.prototype.getBillPaymentOld)
/**
* Retrieves the Class from QuickBooks
*
* @param {string} Id - The Id of persistent Class
*/
QuickBooks.prototype.getClass = promisify(QuickBooks.prototype.getClassOld)
/**
* Retrieves the CompanyInfo from QuickBooks
*
* @param {string} Id - The Id of persistent CompanyInfo
*/
QuickBooks.prototype.getCompanyInfo = promisify(QuickBooks.prototype.getCompanyInfoOld)
/**
* Retrieves the CreditMemo from QuickBooks
*
* @param {string} Id - The Id of persistent CreditMemo
*/
QuickBooks.prototype.getCreditMemo = promisify(QuickBooks.prototype.getCreditMemoOld)
/**
* Retrieves the Customer from QuickBooks
*
* @param {string} Id - The Id of persistent Customer
*/
QuickBooks.prototype.getCustomer = promisify(QuickBooks.prototype.getCustomerOld)
/**
* Retrieves the Department from QuickBooks
*
* @param {string} Id - The Id of persistent Department
*/
QuickBooks.prototype.getDepartment = promisify(QuickBooks.prototype.getDepartmentOld)
/**
* Retrieves the Deposit from QuickBooks
*
* @param {string} Id - The Id of persistent Deposit
*/
QuickBooks.prototype.getDeposit = promisify(QuickBooks.prototype.getDepositOld)
/**
* Retrieves the Employee from QuickBooks
*
* @param {string} Id - The Id of persistent Employee
*/
QuickBooks.prototype.getEmployee = promisify(QuickBooks.prototype.getEmployeeOld)
/**
* Retrieves the Estimate from QuickBooks
*
* @param {string} Id - The Id of persistent Estimate
*/
QuickBooks.prototype.getEstimate = promisify(QuickBooks.prototype.getEstimateOld)
/**
* Retrieves an ExchangeRate from QuickBooks
*
* @param {object} options - An object with options including the required `sourcecurrencycode` parameter and optional `asofdate` parameter.
*/
QuickBooks.prototype.getExchangeRate = promisify(QuickBooks.prototype.getExchangeRateOld)
/**
* Retrieves the Estimate PDF from QuickBooks
*
* @param {string} Id - The Id of persistent Estimate
*/
QuickBooks.prototype.getEstimatePdf = promisify(QuickBooks.prototype.getEstimatePdfOld)
/**
* Emails the Estimate PDF from QuickBooks to the address supplied in Estimate.BillEmail.EmailAddress
* or the specified 'sendTo' address
*
* @param {string} Id - The Id of persistent Estimate
* @param {string} sendTo - optional email address to send the PDF to. If not provided, address supplied in Estimate.BillEmail.EmailAddress will be used
*/
QuickBooks.prototype.sendEstimatePdf = promisify(QuickBooks.prototype.sendEstimatePdfOld)
/**
* Retrieves the Invoice from QuickBooks
*
* @param {string} Id - The Id of persistent Invoice
*/
QuickBooks.prototype.getInvoice = promisify(QuickBooks.prototype.getInvoiceOld)
/**
* Retrieves the Invoice PDF from QuickBooks
*
* @param {string} Id - The Id of persistent Invoice
*/
QuickBooks.prototype.getInvoicePdf = promisify(QuickBooks.prototype.getInvoicePdfOld)
/**
* Emails the Invoice PDF from QuickBooks to the address supplied in Invoice.BillEmail.EmailAddress
* or the specified 'sendTo' address
*
* @param {string} Id - The Id of persistent Invoice
* @param {string} sendTo - optional email address to send the PDF to. If not provided, address supplied in Invoice.BillEmail.EmailAddress will be used
*/
QuickBooks.prototype.sendInvoicePdf = promisify(QuickBooks.prototype.sendInvoicePdfOld)
/**
* Retrieves the Item from QuickBooks
*
* @param {string} Id - The Id of persistent Item
*/
QuickBooks.prototype.getItem = promisify(QuickBooks.prototype.getItemOld)
/**
* Retrieves the JournalCode from QuickBooks
*
* @param {string} Id - The Id of persistent JournalCode
*/
QuickBooks.prototype.getJournalCode = promisify(QuickBooks.prototype.getJournalCodeOld)
/**
* Retrieves the JournalEntry from QuickBooks
*
* @param {string} Id - The Id of persistent JournalEntry
*/
QuickBooks.prototype.getJournalEntry = promisify(QuickBooks.prototype.getJournalEntryOld)
/**
* Retrieves the Payment from QuickBooks
*
* @param {string} Id - The Id of persistent Payment
*/
QuickBooks.prototype.getPayment = promisify(QuickBooks.prototype.getPaymentOld)
/**
* Retrieves the PaymentMethod from QuickBooks
*
* @param {string} Id - The Id of persistent PaymentMethod
*/
QuickBooks.prototype.getPaymentMethod = promisify(QuickBooks.prototype.getPaymentMethodOld)
/**
* Retrieves the Preferences from QuickBooks
*
*/
QuickBooks.prototype.getPreferences = promisify(QuickBooks.prototype.getPreferencesOld)
/**
* Retrieves the Purchase from QuickBooks
*
* @param {string} Id - The Id of persistent Purchase
*/
QuickBooks.prototype.getPurchase = promisify(QuickBooks.prototype.getPurchaseOld)
/**
* Retrieves the PurchaseOrder from QuickBooks
*
* @param {string} Id - The Id of persistent PurchaseOrder
*/
QuickBooks.prototype.getPurchaseOrder = promisify(QuickBooks.prototype.getPurchaseOrderOld)
/**
* Retrieves the RefundReceipt from QuickBooks
*
* @param {string} Id - The Id of persistent RefundReceipt
*/
QuickBooks.prototype.getRefundReceipt = promisify(QuickBooks.prototype.getRefundReceiptOld)
/**
* Retrieves the Reports from QuickBooks
*
* @param {string} Id - The Id of persistent Reports
*/
QuickBooks.prototype.getReports = promisify(QuickBooks.prototype.getReportsOld)
/**
* Retrieves the SalesReceipt from QuickBooks
*
* @param {string} Id - The Id of persistent SalesReceipt
*/
QuickBooks.prototype.getSalesReceipt = promisify(QuickBooks.prototype.getSalesReceiptOld)
/**
* Retrieves the SalesReceipt PDF from QuickBooks
*
* @param {string} Id - The Id of persistent SalesReceipt
*/
QuickBooks.prototype.getSalesReceiptPdf = promisify(QuickBooks.prototype.getSalesReceiptPdfOld)
/**
* Emails the SalesReceipt PDF from QuickBooks to the address supplied in SalesReceipt.BillEmail.EmailAddress
* or the specified 'sendTo' address
*
* @param {string} Id - The Id of persistent SalesReceipt
* @param {string} sendTo - optional email address to send the PDF to. If not provided, address supplied in SalesReceipt.BillEmail.EmailAddress will be used
*/
QuickBooks.prototype.sendSalesReceiptPdf = promisify(QuickBooks.prototype.sendSalesReceiptPdfOld)
/**
* Retrieves the TaxAgency from QuickBooks
*
* @param {string} Id - The Id of persistent TaxAgency
*/
QuickBooks.prototype.getTaxAgency = promisify(QuickBooks.prototype.getTaxAgencyOld)
/**
* Retrieves the TaxCode from QuickBooks
*
* @param {string} Id - The Id of persistent TaxCode
*/
QuickBooks.prototype.getTaxCode = promisify(QuickBooks.prototype.getTaxCodeOld)
/**
* Retrieves the TaxRate from QuickBooks
*
* @param {string} Id - The Id of persistent TaxRate
*/
QuickBooks.prototype.getTaxRate = promisify(QuickBooks.prototype.getTaxRateOld)
/**
* Retrieves the Term from QuickBooks
*
* @param {string} Id - The Id of persistent Term
*/
QuickBooks.prototype.getTerm = promisify(QuickBooks.prototype.getTermOld)
/**
* Retrieves the TimeActivity from QuickBooks
*
* @param {string} Id - The Id of persistent TimeActivity
*/
QuickBooks.prototype.getTimeActivity = promisify(QuickBooks.prototype.getTimeActivityOld)
/**
* Retrieves the Transfer from QuickBooks
*
* @param {string} Id - The Id of persistent Term
*/
QuickBooks.prototype.getTransfer = promisify(QuickBooks.prototype.getTransferOld)
/**
* Retrieves the Vendor from QuickBooks
*
* @param {string} Id - The Id of persistent Vendor
*/
QuickBooks.prototype.getVendor = promisify(QuickBooks.prototype.getVendorOld)
/**
* Retrieves the VendorCredit from QuickBooks
*
* @param {string} Id - The Id of persistent VendorCredit
*/
QuickBooks.prototype.getVendorCredit = promisify(QuickBooks.prototype.getVendorCreditOld)
/**
* Updates QuickBooks version of Account
*
* @param {object} account - The persistent Account, including Id and SyncToken fields
*/
QuickBooks.prototype.updateAccount = promisify(QuickBooks.prototype.updateAccountOld)
/**
* Updates QuickBooks version of Attachable
*
* @param {object} attachable - The persistent Attachable, including Id and SyncToken fields
*/
QuickBooks.prototype.updateAttachable = promisify(QuickBooks.prototype.updateAttachableOld)
/**
* Updates QuickBooks version of Bill
*
* @param {object} bill - The persistent Bill, including Id and SyncToken fields
*/
QuickBooks.prototype.updateBill = promisify(QuickBooks.prototype.updateBillOld)
/**
* Updates QuickBooks version of BillPayment
*
* @param {object} billPayment - The persistent BillPayment, including Id and SyncToken fields
*/
QuickBooks.prototype.updateBillPayment = promisify(QuickBooks.prototype.updateBillPaymentOld)
/**
* Updates QuickBooks version of Class
*
* @param {object} class - The persistent Class, including Id and SyncToken fields
*/
QuickBooks.prototype.updateClass = promisify(QuickBooks.prototype.updateClassOld)
/**
* Updates QuickBooks version of CompanyInfo
*
* @param {object} companyInfo - The persistent CompanyInfo, including Id and SyncToken fields
*/
QuickBooks.prototype.updateCompanyInfo = promisify(QuickBooks.prototype.updateCompanyInfoOld)
/**
* Updates QuickBooks version of CreditMemo
*
* @param {object} creditMemo - The persistent CreditMemo, including Id and SyncToken fields
*/
QuickBooks.prototype.updateCreditMemo = promisify(QuickBooks.prototype.updateCreditMemoOld)
/**
* Updates QuickBooks version of Customer
*
* @param {object} customer - The persistent Customer, including Id and SyncToken fields
*/
QuickBooks.prototype.updateCustomer = promisify(QuickBooks.prototype.updateCustomerOld)
/**
* Updates QuickBooks version of Department
*
* @param {object} department - The persistent Department, including Id and SyncToken fields
*/
QuickBooks.prototype.updateDepartment = promisify(QuickBooks.prototype.updateDepartmentOld)
/**
* Updates QuickBooks version of Deposit
*
* @param {object} deposit - The persistent Deposit, including Id and SyncToken fields
*/
QuickBooks.prototype.updateDeposit = promisify(QuickBooks.prototype.updateDepositOld)
/**
* Updates QuickBooks version of Employee
*
* @param {object} employee - The persistent Employee, including Id and SyncToken fields
*/
QuickBooks.prototype.updateEmployee = promisify(QuickBooks.prototype.updateEmployeeOld)
/**
* Updates QuickBooks version of Estimate
*
* @param {object} estimate - The persistent Estimate, including Id and SyncToken fields
*/
QuickBooks.prototype.updateEstimate = promisify(QuickBooks.prototype.updateEstimateOld)
/**
* Updates QuickBooks version of Invoice
*
* @param {object} invoice - The persistent Invoice, including Id and SyncToken fields
*/
QuickBooks.prototype.updateInvoice = promisify(QuickBooks.prototype.updateInvoiceOld)
/**
* Updates QuickBooks version of Item
*
* @param {object} item - The persistent Item, including Id and SyncToken fields
*/
QuickBooks.prototype.updateItem = promisify(QuickBooks.prototype.updateItemOld)
/**
* Updates QuickBooks version of JournalCode
*
* @param {object} journalCode - The persistent JournalCode, including Id and SyncToken fields
*/
QuickBooks.prototype.updateJournalCode = promisify(QuickBooks.prototype.updateJournalCodeOld)
/**
* Updates QuickBooks version of JournalEntry
*
* @param {object} journalEntry - The persistent JournalEntry, including Id and SyncToken fields
*/
QuickBooks.prototype.updateJournalEntry = promisify(QuickBooks.prototype.updateJournalEntryOld)
/**
* Updates QuickBooks version of Payment
*
* @param {object} payment - The persistent Payment, including Id and SyncToken fields
*/
QuickBooks.prototype.updatePayment = promisify(QuickBooks.prototype.updatePaymentOld)
/**
* Updates QuickBooks version of PaymentMethod
*
* @param {object} paymentMethod - The persistent PaymentMethod, including Id and SyncToken fields
*/
QuickBooks.prototype.updatePaymentMethod = promisify(QuickBooks.prototype.updatePaymentMethodOld)
/**
* Updates QuickBooks version of Preferences
*
* @param {object} preferences - The persistent Preferences, including Id and SyncToken fields
*/
QuickBooks.prototype.updatePreferences = promisify(QuickBooks.prototype.updatePreferencesOld)
/**
* Updates QuickBooks version of Purchase
*
* @param {object} purchase - The persistent Purchase, including Id and SyncToken fields
*/
QuickBooks.prototype.updatePurchase = promisify(QuickBooks.prototype.updatePurchaseOld)
/**
* Updates QuickBooks version of PurchaseOrder
*
* @param {object} purchaseOrder - The persistent PurchaseOrder, including Id and SyncToken fields
*/
QuickBooks.prototype.updatePurchaseOrder = promisify(QuickBooks.prototype.updatePurchaseOrderOld)
/**
* Updates QuickBooks version of RefundReceipt
*
* @param {object} refundReceipt - The persistent RefundReceipt, including Id and SyncToken fields
*/
QuickBooks.prototype.updateRefundReceipt = promisify(QuickBooks.prototype.updateRefundReceiptOld)
/**
* Updates QuickBooks version of SalesReceipt
*
* @param {object} salesReceipt - The persistent SalesReceipt, including Id and SyncToken fields
*/
QuickBooks.prototype.updateSalesReceipt = promisify(QuickBooks.prototype.updateSalesReceiptOld)
/**
* Updates QuickBooks version of TaxAgency
*
* @param {object} taxAgency - The persistent TaxAgency, including Id and SyncToken fields
*/
QuickBooks.prototype.updateTaxAgency = promisify(QuickBooks.prototype.updateTaxAgencyOld)
/**
* Updates QuickBooks version of TaxCode
*
* @param {object} taxCode - The persistent TaxCode, including Id and SyncToken fields
*/
QuickBooks.prototype.updateTaxCode = promisify(QuickBooks.prototype.updateTaxCodeOld)
/**
* Updates QuickBooks version of TaxRate
*
* @param {object} taxRate - The persistent TaxRate, including Id and SyncToken fields
*/
QuickBooks.prototype.updateTaxRate = promisify(QuickBooks.prototype.updateTaxRateOld)
/**
* Updates QuickBooks version of Term
*
* @param {object} term - The persistent Term, including Id and SyncToken fields
*/
QuickBooks.prototype.updateTerm = promisify(QuickBooks.prototype.updateTermOld)
/**
* Updates QuickBooks version of TimeActivity
*
* @param {object} timeActivity - The persistent TimeActivity, including Id and SyncToken fields
*/
QuickBooks.prototype.updateTimeActivity = promisify(QuickBooks.prototype.updateTimeActivityOld)
/**
* Updates QuickBooks version of Transfer
*
* @param {object} Transfer - The persistent Transfer, including Id and SyncToken fields
*/
QuickBooks.prototype.updateTransfer = promisify(QuickBooks.prototype.updateTransferOld)
/**
* Updates QuickBooks version of Vendor
*
* @param {object} vendor - The persistent Vendor, including Id and SyncToken fields
*/
QuickBooks.prototype.updateVendor = promisify(QuickBooks.prototype.updateVendorOld)
/**
* Updates QuickBooks version of VendorCredit
*
* @param {object} vendorCredit - The persistent VendorCredit, including Id and SyncToken fields
*/
QuickBooks.prototype.updateVendorCredit = promisify(QuickBooks.prototype.updateVendorCreditOld)
/**
* Updates QuickBooks version of ExchangeRate
*
* @param {object} exchangeRate - The persistent ExchangeRate, including Id and SyncToken fields
*/
QuickBooks.prototype.updateExchangeRate = promisify(QuickBooks.prototype.updateExchangeRateOld)
/**
* Deletes the Attachable from QuickBooks
*
* @param {object} idOrEntity - The persistent Attachable to be deleted, or the Id of the Attachable, in which case an extra GET request will be issued to first retrieve the Attachable
*/
QuickBooks.prototype.deleteAttachable = promisify(QuickBooks.prototype.deleteAttachableOld)
/**
* Deletes the Bill from QuickBooks
*
* @param {object} idOrEntity - The persistent Bill to be deleted, or the Id of the Bill, in which case an extra GET request will be issued to first retrieve the Bill
*/
QuickBooks.prototype.deleteBill = promisify(QuickBooks.prototype.deleteBillOld)
/**
* Deletes the BillPayment from QuickBooks
*
* @param {object} idOrEntity - The persistent BillPayment to be deleted, or the Id of the BillPayment, in which case an extra GET request will be issued to first retrieve the BillPayment
*/
QuickBooks.prototype.deleteBillPayment = promisify(QuickBooks.prototype.deleteBillPaymentOld)
/**
* Deletes the CreditMemo from QuickBooks
*
* @param {object} idOrEntity - The persistent CreditMemo to be deleted, or the Id of the CreditMemo, in which case an extra GET request will be issued to first retrieve the CreditMemo
*/
QuickBooks.prototype.deleteCreditMemo = promisify(QuickBooks.prototype.deleteCreditMemoOld)
/**
* Deletes the Deposit from QuickBooks
*
* @param {object} idOrEntity - The persistent Deposit to be deleted, or the Id of the Deposit, in which case an extra GET request will be issued to first retrieve the Deposit
*/
QuickBooks.prototype.deleteDeposit = promisify(QuickBooks.prototype.deleteDepositOld)
/**
* Deletes the Estimate from QuickBooks
*
* @param {object} idOrEntity - The persistent Estimate to be deleted, or the Id of the Estimate, in which case an extra GET request will be issued to first retrieve the Estimate
*/
QuickBooks.prototype.deleteEstimate = promisify(QuickBooks.prototype.deleteEstimateOld)
/**
* Deletes the Invoice from QuickBooks
*
* @param {object} idOrEntity - The persistent Invoice to be deleted, or the Id of the Invoice, in which case an extra GET request will be issued to first retrieve the Invoice
*/
QuickBooks.prototype.deleteInvoice = promisify(QuickBooks.prototype.deleteInvoiceOld)
/**
* Deletes the JournalCode from QuickBooks
*
* @param {object} idOrEntity - The persistent JournalCode to be deleted, or the Id of the JournalCode, in which case an extra GET request will be issued to first retrieve the JournalCode
*/
QuickBooks.prototype.deleteJournalCode = promisify(QuickBooks.prototype.deleteJournalCodeOld)
/**
* Deletes the JournalEntry from QuickBooks
*
* @param {object} idOrEntity - The persistent JournalEntry to be deleted, or the Id of the JournalEntry, in which case an extra GET request will be issued to first retrieve the JournalEntry
*/
QuickBooks.prototype.deleteJournalEntry = promisify(QuickBooks.prototype.deleteJournalEntryOld)
/**
* Deletes the Payment from QuickBooks
*
* @param {object} idOrEntity - The persistent Payment to be deleted, or the Id of the Payment, in which case an extra GET request will be issued to first retrieve the Payment
*/
QuickBooks.prototype.deletePayment = promisify(QuickBooks.prototype.deletePaymentOld)
/**
* Deletes the Purchase from QuickBooks
*
* @param {object} idOrEntity - The persistent Purchase to be deleted, or the Id of the Purchase, in which case an extra GET request will be issued to first retrieve the Purchase