@apideck/unify 0.27.0 → 0.28.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (132) hide show
  1. package/README.md +5 -5
  2. package/docs/sdks/companies/README.md +4 -4
  3. package/examples/README.md +26 -0
  4. package/examples/accountingTaxRatesList.example.ts +41 -0
  5. package/examples/package-lock.json +613 -0
  6. package/examples/package.json +18 -0
  7. package/funcs/crmCompaniesCreate.js +1 -1
  8. package/funcs/crmCompaniesCreate.js.map +1 -1
  9. package/funcs/crmCompaniesUpdate.js +1 -1
  10. package/funcs/crmCompaniesUpdate.js.map +1 -1
  11. package/jsr.json +1 -1
  12. package/lib/config.d.ts +4 -4
  13. package/lib/config.js +4 -4
  14. package/models/components/bankaccount.d.ts +5 -0
  15. package/models/components/bankaccount.d.ts.map +1 -1
  16. package/models/components/bankaccount.js +2 -0
  17. package/models/components/bankaccount.js.map +1 -1
  18. package/models/components/bankaccount1.d.ts +123 -0
  19. package/models/components/bankaccount1.d.ts.map +1 -0
  20. package/models/components/bankaccount1.js +128 -0
  21. package/models/components/bankaccount1.js.map +1 -0
  22. package/models/components/{company.d.ts → company1.d.ts} +32 -32
  23. package/models/components/company1.d.ts.map +1 -0
  24. package/models/components/{company.js → company1.js} +37 -37
  25. package/models/components/company1.js.map +1 -0
  26. package/models/components/companyinfo.d.ts +5 -0
  27. package/models/components/companyinfo.d.ts.map +1 -1
  28. package/models/components/companyinfo.js +4 -0
  29. package/models/components/companyinfo.js.map +1 -1
  30. package/models/components/getcompaniesresponse.d.ts +3 -3
  31. package/models/components/getcompaniesresponse.d.ts.map +1 -1
  32. package/models/components/getcompaniesresponse.js +3 -3
  33. package/models/components/getcompaniesresponse.js.map +1 -1
  34. package/models/components/getcompanyresponse.d.ts +3 -3
  35. package/models/components/getcompanyresponse.d.ts.map +1 -1
  36. package/models/components/getcompanyresponse.js +3 -3
  37. package/models/components/getcompanyresponse.js.map +1 -1
  38. package/models/components/index.d.ts +2 -1
  39. package/models/components/index.d.ts.map +1 -1
  40. package/models/components/index.js +2 -1
  41. package/models/components/index.js.map +1 -1
  42. package/models/components/supplier.d.ts +10 -0
  43. package/models/components/supplier.d.ts.map +1 -1
  44. package/models/components/supplier.js +4 -0
  45. package/models/components/supplier.js.map +1 -1
  46. package/models/errors/apierror.d.ts.map +1 -1
  47. package/models/errors/apierror.js +8 -2
  48. package/models/errors/apierror.js.map +1 -1
  49. package/models/errors/badrequestresponse.js +1 -1
  50. package/models/errors/badrequestresponse.js.map +1 -1
  51. package/models/errors/notfoundresponse.js +1 -1
  52. package/models/errors/notfoundresponse.js.map +1 -1
  53. package/models/errors/paymentrequiredresponse.js +1 -1
  54. package/models/errors/paymentrequiredresponse.js.map +1 -1
  55. package/models/errors/unauthorizedresponse.js +1 -1
  56. package/models/errors/unauthorizedresponse.js.map +1 -1
  57. package/models/errors/unprocessableresponse.js +1 -1
  58. package/models/errors/unprocessableresponse.js.map +1 -1
  59. package/models/operations/crmcompaniesadd.d.ts +2 -2
  60. package/models/operations/crmcompaniesadd.d.ts.map +1 -1
  61. package/models/operations/crmcompaniesadd.js +4 -4
  62. package/models/operations/crmcompaniesadd.js.map +1 -1
  63. package/models/operations/crmcompaniesupdate.d.ts +2 -2
  64. package/models/operations/crmcompaniesupdate.d.ts.map +1 -1
  65. package/models/operations/crmcompaniesupdate.js +4 -4
  66. package/models/operations/crmcompaniesupdate.js.map +1 -1
  67. package/package.json +1 -1
  68. package/src/__tests__/activities.test.ts +360 -9
  69. package/src/__tests__/apideckcompanies.test.ts +373 -9
  70. package/src/__tests__/apideckdepartments.test.ts +181 -9
  71. package/src/__tests__/applicants.test.ts +473 -9
  72. package/src/__tests__/applications.test.ts +189 -9
  73. package/src/__tests__/billpayments.test.ts +367 -9
  74. package/src/__tests__/bills.test.ts +500 -9
  75. package/src/__tests__/collectionticketcomments.test.ts +183 -7
  76. package/src/__tests__/collectiontickets.test.ts +191 -7
  77. package/src/__tests__/companies.test.ts +538 -9
  78. package/src/__tests__/connections.test.ts +409 -5
  79. package/src/__tests__/connectionsettings.test.ts +410 -5
  80. package/src/__tests__/contacts.test.ts +466 -9
  81. package/src/__tests__/creditnotes.test.ts +758 -87
  82. package/src/__tests__/customers.test.ts +513 -9
  83. package/src/__tests__/customobjects.test.ts +150 -9
  84. package/src/__tests__/customobjectschemas.test.ts +321 -9
  85. package/src/__tests__/departments.test.ts +173 -9
  86. package/src/__tests__/drivegroups.test.ts +181 -9
  87. package/src/__tests__/drives.test.ts +179 -9
  88. package/src/__tests__/employees.test.ts +829 -94
  89. package/src/__tests__/expenses.test.ts +332 -9
  90. package/src/__tests__/files.test.ts +106 -5
  91. package/src/__tests__/folders.test.ts +296 -13
  92. package/src/__tests__/invoiceitems.test.ts +272 -9
  93. package/src/__tests__/invoices.test.ts +673 -67
  94. package/src/__tests__/journalentries.test.ts +490 -8
  95. package/src/__tests__/leads.test.ts +446 -9
  96. package/src/__tests__/ledgeraccounts.test.ts +237 -8
  97. package/src/__tests__/locations.test.ts +298 -9
  98. package/src/__tests__/messages.test.ts +195 -9
  99. package/src/__tests__/notes.test.ts +191 -9
  100. package/src/__tests__/opportunities.test.ts +218 -9
  101. package/src/__tests__/payments.test.ts +312 -9
  102. package/src/__tests__/pipelines.test.ts +194 -9
  103. package/src/__tests__/purchaseorders.test.ts +773 -104
  104. package/src/__tests__/sharedlinks.test.ts +183 -9
  105. package/src/__tests__/subsidiaries.test.ts +183 -9
  106. package/src/__tests__/suppliers.test.ts +505 -9
  107. package/src/__tests__/taxrates.test.ts +232 -9
  108. package/src/__tests__/timeoffrequests.test.ts +210 -9
  109. package/src/__tests__/trackingcategories.test.ts +187 -7
  110. package/src/__tests__/uploadsessions.test.ts +78 -5
  111. package/src/__tests__/users.test.ts +356 -9
  112. package/src/funcs/crmCompaniesCreate.ts +1 -1
  113. package/src/funcs/crmCompaniesUpdate.ts +1 -1
  114. package/src/lib/config.ts +4 -4
  115. package/src/models/components/bankaccount.ts +7 -0
  116. package/src/models/components/bankaccount1.ts +207 -0
  117. package/src/models/components/{company.ts → company1.ts} +131 -128
  118. package/src/models/components/companyinfo.ts +9 -0
  119. package/src/models/components/getcompaniesresponse.ts +9 -9
  120. package/src/models/components/getcompanyresponse.ts +9 -9
  121. package/src/models/components/index.ts +2 -1
  122. package/src/models/components/supplier.ts +14 -0
  123. package/src/models/errors/apierror.ts +8 -2
  124. package/src/models/errors/badrequestresponse.ts +1 -1
  125. package/src/models/errors/notfoundresponse.ts +1 -1
  126. package/src/models/errors/paymentrequiredresponse.ts +1 -1
  127. package/src/models/errors/unauthorizedresponse.ts +1 -1
  128. package/src/models/errors/unprocessableresponse.ts +1 -1
  129. package/src/models/operations/crmcompaniesadd.ts +6 -6
  130. package/src/models/operations/crmcompaniesupdate.ts +6 -6
  131. package/models/components/company.d.ts.map +0 -1
  132. package/models/components/company.js.map +0 -1
@@ -2,7 +2,7 @@
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  */
4
4
 
5
- import { assert, expect, it, test } from "vitest";
5
+ import { expect, test } from "vitest";
6
6
  import { Apideck } from "../index.js";
7
7
  import { createTestHTTPClient } from "./testclient.js";
8
8
 
@@ -690,10 +690,211 @@ test("Journalentries Accounting Journal Entries All", async () => {
690
690
  });
691
691
  });
692
692
 
693
- it.skip("Journalentries Accounting Journal Entries Add", async () => {
694
- assert.fail(
695
- "incomplete test found please make sure to address the following errors: [`workflow step accounting.journalEntriesAdd.test referencing operation accounting.journalEntriesAdd with expression in requestBody with type not currently supported`]",
696
- );
693
+ test("Journalentries Accounting Journal Entries Add", async () => {
694
+ const testHttpClient = createTestHTTPClient("accounting.journalEntriesAdd");
695
+
696
+ const apideck = new Apideck({
697
+ serverURL: process.env["TEST_SERVER_URL"] ?? "http://localhost:18080",
698
+ httpClient: testHttpClient,
699
+ apiKey: process.env["APIDECK_API_KEY"] ?? "value",
700
+ });
701
+
702
+ const result = await apideck.accounting.journalEntries.create({
703
+ consumerId: "test-consumer",
704
+ appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX",
705
+ serviceId: "salesforce",
706
+ journalEntry: {
707
+ title: "Purchase Invoice-Inventory (USD): 2019/02/01 Batch Summary Entry",
708
+ currencyRate: 0.69,
709
+ currency: "USD",
710
+ companyId: "12345",
711
+ lineItems: [
712
+ {
713
+ description:
714
+ "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.",
715
+ taxAmount: 27500,
716
+ subTotal: 27500,
717
+ totalAmount: 27500,
718
+ type: "debit",
719
+ taxRate: {
720
+ id: "123456",
721
+ rate: 10,
722
+ },
723
+ trackingCategories: [
724
+ {
725
+ id: "123456",
726
+ name: "New York",
727
+ },
728
+ {
729
+ id: "123456",
730
+ name: "New York",
731
+ },
732
+ ],
733
+ ledgerAccount: {
734
+ id: "123456",
735
+ nominalCode: "N091",
736
+ code: "453",
737
+ },
738
+ customer: {
739
+ id: "12345",
740
+ displayName: "Windsurf Shop",
741
+ email: "boring@boring.com",
742
+ },
743
+ supplier: {
744
+ id: "12345",
745
+ displayName: "Windsurf Shop",
746
+ address: {
747
+ id: "123",
748
+ type: "primary",
749
+ string: "25 Spring Street, Blackburn, VIC 3130",
750
+ name: "HQ US",
751
+ line1: "Main street",
752
+ line2: "apt #",
753
+ line3: "Suite #",
754
+ line4: "delivery instructions",
755
+ streetNumber: "25",
756
+ city: "San Francisco",
757
+ state: "CA",
758
+ postalCode: "94104",
759
+ country: "US",
760
+ latitude: "40.759211",
761
+ longitude: "-73.984638",
762
+ county: "Santa Clara",
763
+ contactName: "Elon Musk",
764
+ salutation: "Mr",
765
+ phoneNumber: "111-111-1111",
766
+ fax: "122-111-1111",
767
+ email: "elon@musk.com",
768
+ website: "https://elonmusk.com",
769
+ notes: "Address notes or delivery instructions.",
770
+ rowVersion: "1-12345",
771
+ },
772
+ },
773
+ departmentId: "12345",
774
+ locationId: "12345",
775
+ lineNumber: 1,
776
+ },
777
+ {
778
+ description:
779
+ "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.",
780
+ taxAmount: 27500,
781
+ subTotal: 27500,
782
+ totalAmount: 27500,
783
+ type: "debit",
784
+ taxRate: {
785
+ id: "123456",
786
+ rate: 10,
787
+ },
788
+ trackingCategories: [
789
+ {
790
+ id: "123456",
791
+ name: "New York",
792
+ },
793
+ {
794
+ id: "123456",
795
+ name: "New York",
796
+ },
797
+ ],
798
+ ledgerAccount: {
799
+ id: "123456",
800
+ nominalCode: "N091",
801
+ code: "453",
802
+ },
803
+ customer: {
804
+ id: "12345",
805
+ displayName: "Windsurf Shop",
806
+ email: "boring@boring.com",
807
+ },
808
+ supplier: {
809
+ id: "12345",
810
+ displayName: "Windsurf Shop",
811
+ address: {
812
+ id: "123",
813
+ type: "primary",
814
+ string: "25 Spring Street, Blackburn, VIC 3130",
815
+ name: "HQ US",
816
+ line1: "Main street",
817
+ line2: "apt #",
818
+ line3: "Suite #",
819
+ line4: "delivery instructions",
820
+ streetNumber: "25",
821
+ city: "San Francisco",
822
+ state: "CA",
823
+ postalCode: "94104",
824
+ country: "US",
825
+ latitude: "40.759211",
826
+ longitude: "-73.984638",
827
+ county: "Santa Clara",
828
+ contactName: "Elon Musk",
829
+ salutation: "Mr",
830
+ phoneNumber: "111-111-1111",
831
+ fax: "122-111-1111",
832
+ email: "elon@musk.com",
833
+ website: "https://elonmusk.com",
834
+ notes: "Address notes or delivery instructions.",
835
+ rowVersion: "1-12345",
836
+ },
837
+ },
838
+ departmentId: "12345",
839
+ locationId: "12345",
840
+ lineNumber: 1,
841
+ },
842
+ ],
843
+ memo: "Thank you for your business and have a great day!",
844
+ postedAt: new Date("2020-09-30T07:43:32.000Z"),
845
+ journalSymbol: "IND",
846
+ taxType: "sales",
847
+ taxCode: "1234",
848
+ number: "OIT00546",
849
+ trackingCategories: [
850
+ {
851
+ id: "123456",
852
+ name: "New York",
853
+ },
854
+ ],
855
+ accountingPeriod: "01-24",
856
+ rowVersion: "1-12345",
857
+ customFields: [
858
+ {
859
+ id: "2389328923893298",
860
+ name: "employee_level",
861
+ description: "Employee Level",
862
+ value: [
863
+ "<value>",
864
+ "<value>",
865
+ "<value>",
866
+ ],
867
+ },
868
+ ],
869
+ passThrough: [
870
+ {
871
+ serviceId: "<id>",
872
+ extendPaths: [
873
+ {
874
+ path: "$.nested.property",
875
+ value: {
876
+ "TaxClassificationRef": {
877
+ "value": "EUC-99990201-V1-00020000",
878
+ },
879
+ },
880
+ },
881
+ ],
882
+ },
883
+ ],
884
+ },
885
+ });
886
+ expect(result.httpMeta.response.status).toBe(201);
887
+ expect(result.createJournalEntryResponse).toBeDefined();
888
+ expect(result.createJournalEntryResponse).toEqual({
889
+ statusCode: 200,
890
+ status: "OK",
891
+ service: "quickbooks",
892
+ resource: "journal-entries",
893
+ operation: "add",
894
+ data: {
895
+ id: "12345",
896
+ },
897
+ });
697
898
  });
698
899
 
699
900
  test("Journalentries Accounting Journal Entries One", async () => {
@@ -1022,10 +1223,291 @@ test("Journalentries Accounting Journal Entries One", async () => {
1022
1223
  });
1023
1224
  });
1024
1225
 
1025
- it.skip("Journalentries Accounting Journal Entries Update", async () => {
1026
- assert.fail(
1027
- "incomplete test found please make sure to address the following errors: [`workflow step accounting.journalEntriesUpdate.test referencing operation accounting.journalEntriesUpdate with expression in requestBody with type not currently supported`]",
1226
+ test("Journalentries Accounting Journal Entries Update", async () => {
1227
+ const testHttpClient = createTestHTTPClient(
1228
+ "accounting.journalEntriesUpdate",
1028
1229
  );
1230
+
1231
+ const apideck = new Apideck({
1232
+ serverURL: process.env["TEST_SERVER_URL"] ?? "http://localhost:18080",
1233
+ httpClient: testHttpClient,
1234
+ apiKey: process.env["APIDECK_API_KEY"] ?? "value",
1235
+ });
1236
+
1237
+ const result = await apideck.accounting.journalEntries.update({
1238
+ id: "<id>",
1239
+ consumerId: "test-consumer",
1240
+ appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX",
1241
+ serviceId: "salesforce",
1242
+ journalEntry: {
1243
+ title: "Purchase Invoice-Inventory (USD): 2019/02/01 Batch Summary Entry",
1244
+ currencyRate: 0.69,
1245
+ currency: "USD",
1246
+ companyId: "12345",
1247
+ lineItems: [
1248
+ {
1249
+ description:
1250
+ "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.",
1251
+ taxAmount: 27500,
1252
+ subTotal: 27500,
1253
+ totalAmount: 27500,
1254
+ type: "debit",
1255
+ taxRate: {
1256
+ id: "123456",
1257
+ rate: 10,
1258
+ },
1259
+ trackingCategories: [
1260
+ {
1261
+ id: "123456",
1262
+ name: "New York",
1263
+ },
1264
+ {
1265
+ id: "123456",
1266
+ name: "New York",
1267
+ },
1268
+ ],
1269
+ ledgerAccount: {
1270
+ id: "123456",
1271
+ nominalCode: "N091",
1272
+ code: "453",
1273
+ },
1274
+ customer: {
1275
+ id: "12345",
1276
+ displayName: "Windsurf Shop",
1277
+ email: "boring@boring.com",
1278
+ },
1279
+ supplier: {
1280
+ id: "12345",
1281
+ displayName: "Windsurf Shop",
1282
+ address: {
1283
+ id: "123",
1284
+ type: "primary",
1285
+ string: "25 Spring Street, Blackburn, VIC 3130",
1286
+ name: "HQ US",
1287
+ line1: "Main street",
1288
+ line2: "apt #",
1289
+ line3: "Suite #",
1290
+ line4: "delivery instructions",
1291
+ streetNumber: "25",
1292
+ city: "San Francisco",
1293
+ state: "CA",
1294
+ postalCode: "94104",
1295
+ country: "US",
1296
+ latitude: "40.759211",
1297
+ longitude: "-73.984638",
1298
+ county: "Santa Clara",
1299
+ contactName: "Elon Musk",
1300
+ salutation: "Mr",
1301
+ phoneNumber: "111-111-1111",
1302
+ fax: "122-111-1111",
1303
+ email: "elon@musk.com",
1304
+ website: "https://elonmusk.com",
1305
+ notes: "Address notes or delivery instructions.",
1306
+ rowVersion: "1-12345",
1307
+ },
1308
+ },
1309
+ departmentId: "12345",
1310
+ locationId: "12345",
1311
+ lineNumber: 1,
1312
+ },
1313
+ {
1314
+ description:
1315
+ "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.",
1316
+ taxAmount: 27500,
1317
+ subTotal: 27500,
1318
+ totalAmount: 27500,
1319
+ type: "debit",
1320
+ taxRate: {
1321
+ id: "123456",
1322
+ rate: 10,
1323
+ },
1324
+ trackingCategories: [
1325
+ {
1326
+ id: "123456",
1327
+ name: "New York",
1328
+ },
1329
+ {
1330
+ id: "123456",
1331
+ name: "New York",
1332
+ },
1333
+ ],
1334
+ ledgerAccount: {
1335
+ id: "123456",
1336
+ nominalCode: "N091",
1337
+ code: "453",
1338
+ },
1339
+ customer: {
1340
+ id: "12345",
1341
+ displayName: "Windsurf Shop",
1342
+ email: "boring@boring.com",
1343
+ },
1344
+ supplier: {
1345
+ id: "12345",
1346
+ displayName: "Windsurf Shop",
1347
+ address: {
1348
+ id: "123",
1349
+ type: "primary",
1350
+ string: "25 Spring Street, Blackburn, VIC 3130",
1351
+ name: "HQ US",
1352
+ line1: "Main street",
1353
+ line2: "apt #",
1354
+ line3: "Suite #",
1355
+ line4: "delivery instructions",
1356
+ streetNumber: "25",
1357
+ city: "San Francisco",
1358
+ state: "CA",
1359
+ postalCode: "94104",
1360
+ country: "US",
1361
+ latitude: "40.759211",
1362
+ longitude: "-73.984638",
1363
+ county: "Santa Clara",
1364
+ contactName: "Elon Musk",
1365
+ salutation: "Mr",
1366
+ phoneNumber: "111-111-1111",
1367
+ fax: "122-111-1111",
1368
+ email: "elon@musk.com",
1369
+ website: "https://elonmusk.com",
1370
+ notes: "Address notes or delivery instructions.",
1371
+ rowVersion: "1-12345",
1372
+ },
1373
+ },
1374
+ departmentId: "12345",
1375
+ locationId: "12345",
1376
+ lineNumber: 1,
1377
+ },
1378
+ {
1379
+ description:
1380
+ "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.",
1381
+ taxAmount: 27500,
1382
+ subTotal: 27500,
1383
+ totalAmount: 27500,
1384
+ type: "debit",
1385
+ taxRate: {
1386
+ id: "123456",
1387
+ rate: 10,
1388
+ },
1389
+ trackingCategories: [
1390
+ {
1391
+ id: "123456",
1392
+ name: "New York",
1393
+ },
1394
+ {
1395
+ id: "123456",
1396
+ name: "New York",
1397
+ },
1398
+ {
1399
+ id: "123456",
1400
+ name: "New York",
1401
+ },
1402
+ ],
1403
+ ledgerAccount: {
1404
+ id: "123456",
1405
+ nominalCode: "N091",
1406
+ code: "453",
1407
+ },
1408
+ customer: {
1409
+ id: "12345",
1410
+ displayName: "Windsurf Shop",
1411
+ email: "boring@boring.com",
1412
+ },
1413
+ supplier: {
1414
+ id: "12345",
1415
+ displayName: "Windsurf Shop",
1416
+ address: {
1417
+ id: "123",
1418
+ type: "primary",
1419
+ string: "25 Spring Street, Blackburn, VIC 3130",
1420
+ name: "HQ US",
1421
+ line1: "Main street",
1422
+ line2: "apt #",
1423
+ line3: "Suite #",
1424
+ line4: "delivery instructions",
1425
+ streetNumber: "25",
1426
+ city: "San Francisco",
1427
+ state: "CA",
1428
+ postalCode: "94104",
1429
+ country: "US",
1430
+ latitude: "40.759211",
1431
+ longitude: "-73.984638",
1432
+ county: "Santa Clara",
1433
+ contactName: "Elon Musk",
1434
+ salutation: "Mr",
1435
+ phoneNumber: "111-111-1111",
1436
+ fax: "122-111-1111",
1437
+ email: "elon@musk.com",
1438
+ website: "https://elonmusk.com",
1439
+ notes: "Address notes or delivery instructions.",
1440
+ rowVersion: "1-12345",
1441
+ },
1442
+ },
1443
+ departmentId: "12345",
1444
+ locationId: "12345",
1445
+ lineNumber: 1,
1446
+ },
1447
+ ],
1448
+ memo: "Thank you for your business and have a great day!",
1449
+ postedAt: new Date("2020-09-30T07:43:32.000Z"),
1450
+ journalSymbol: "IND",
1451
+ taxType: "sales",
1452
+ taxCode: "1234",
1453
+ number: "OIT00546",
1454
+ trackingCategories: [
1455
+ {
1456
+ id: "123456",
1457
+ name: "New York",
1458
+ },
1459
+ {
1460
+ id: "123456",
1461
+ name: "New York",
1462
+ },
1463
+ ],
1464
+ accountingPeriod: "01-24",
1465
+ rowVersion: "1-12345",
1466
+ customFields: [
1467
+ {
1468
+ id: "2389328923893298",
1469
+ name: "employee_level",
1470
+ description: "Employee Level",
1471
+ value: {},
1472
+ },
1473
+ {
1474
+ id: "2389328923893298",
1475
+ name: "employee_level",
1476
+ description: "Employee Level",
1477
+ value: [
1478
+ {},
1479
+ ],
1480
+ },
1481
+ ],
1482
+ passThrough: [
1483
+ {
1484
+ serviceId: "<id>",
1485
+ extendPaths: [
1486
+ {
1487
+ path: "$.nested.property",
1488
+ value: {
1489
+ "TaxClassificationRef": {
1490
+ "value": "EUC-99990201-V1-00020000",
1491
+ },
1492
+ },
1493
+ },
1494
+ ],
1495
+ },
1496
+ ],
1497
+ },
1498
+ });
1499
+ expect(result.httpMeta.response.status).toBe(200);
1500
+ expect(result.updateJournalEntryResponse).toBeDefined();
1501
+ expect(result.updateJournalEntryResponse).toEqual({
1502
+ statusCode: 200,
1503
+ status: "OK",
1504
+ service: "quickbooks",
1505
+ resource: "journal-entries",
1506
+ operation: "update",
1507
+ data: {
1508
+ id: "12345",
1509
+ },
1510
+ });
1029
1511
  });
1030
1512
 
1031
1513
  test("Journalentries Accounting Journal Entries Delete", async () => {