@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.
- package/README.md +5 -5
- package/docs/sdks/companies/README.md +4 -4
- package/examples/README.md +26 -0
- package/examples/accountingTaxRatesList.example.ts +41 -0
- package/examples/package-lock.json +613 -0
- package/examples/package.json +18 -0
- package/funcs/crmCompaniesCreate.js +1 -1
- package/funcs/crmCompaniesCreate.js.map +1 -1
- package/funcs/crmCompaniesUpdate.js +1 -1
- package/funcs/crmCompaniesUpdate.js.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +4 -4
- package/lib/config.js +4 -4
- package/models/components/bankaccount.d.ts +5 -0
- package/models/components/bankaccount.d.ts.map +1 -1
- package/models/components/bankaccount.js +2 -0
- package/models/components/bankaccount.js.map +1 -1
- package/models/components/bankaccount1.d.ts +123 -0
- package/models/components/bankaccount1.d.ts.map +1 -0
- package/models/components/bankaccount1.js +128 -0
- package/models/components/bankaccount1.js.map +1 -0
- package/models/components/{company.d.ts → company1.d.ts} +32 -32
- package/models/components/company1.d.ts.map +1 -0
- package/models/components/{company.js → company1.js} +37 -37
- package/models/components/company1.js.map +1 -0
- package/models/components/companyinfo.d.ts +5 -0
- package/models/components/companyinfo.d.ts.map +1 -1
- package/models/components/companyinfo.js +4 -0
- package/models/components/companyinfo.js.map +1 -1
- package/models/components/getcompaniesresponse.d.ts +3 -3
- package/models/components/getcompaniesresponse.d.ts.map +1 -1
- package/models/components/getcompaniesresponse.js +3 -3
- package/models/components/getcompaniesresponse.js.map +1 -1
- package/models/components/getcompanyresponse.d.ts +3 -3
- package/models/components/getcompanyresponse.d.ts.map +1 -1
- package/models/components/getcompanyresponse.js +3 -3
- package/models/components/getcompanyresponse.js.map +1 -1
- package/models/components/index.d.ts +2 -1
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +2 -1
- package/models/components/index.js.map +1 -1
- package/models/components/supplier.d.ts +10 -0
- package/models/components/supplier.d.ts.map +1 -1
- package/models/components/supplier.js +4 -0
- package/models/components/supplier.js.map +1 -1
- package/models/errors/apierror.d.ts.map +1 -1
- package/models/errors/apierror.js +8 -2
- package/models/errors/apierror.js.map +1 -1
- package/models/errors/badrequestresponse.js +1 -1
- package/models/errors/badrequestresponse.js.map +1 -1
- package/models/errors/notfoundresponse.js +1 -1
- package/models/errors/notfoundresponse.js.map +1 -1
- package/models/errors/paymentrequiredresponse.js +1 -1
- package/models/errors/paymentrequiredresponse.js.map +1 -1
- package/models/errors/unauthorizedresponse.js +1 -1
- package/models/errors/unauthorizedresponse.js.map +1 -1
- package/models/errors/unprocessableresponse.js +1 -1
- package/models/errors/unprocessableresponse.js.map +1 -1
- package/models/operations/crmcompaniesadd.d.ts +2 -2
- package/models/operations/crmcompaniesadd.d.ts.map +1 -1
- package/models/operations/crmcompaniesadd.js +4 -4
- package/models/operations/crmcompaniesadd.js.map +1 -1
- package/models/operations/crmcompaniesupdate.d.ts +2 -2
- package/models/operations/crmcompaniesupdate.d.ts.map +1 -1
- package/models/operations/crmcompaniesupdate.js +4 -4
- package/models/operations/crmcompaniesupdate.js.map +1 -1
- package/package.json +1 -1
- package/src/__tests__/activities.test.ts +360 -9
- package/src/__tests__/apideckcompanies.test.ts +373 -9
- package/src/__tests__/apideckdepartments.test.ts +181 -9
- package/src/__tests__/applicants.test.ts +473 -9
- package/src/__tests__/applications.test.ts +189 -9
- package/src/__tests__/billpayments.test.ts +367 -9
- package/src/__tests__/bills.test.ts +500 -9
- package/src/__tests__/collectionticketcomments.test.ts +183 -7
- package/src/__tests__/collectiontickets.test.ts +191 -7
- package/src/__tests__/companies.test.ts +538 -9
- package/src/__tests__/connections.test.ts +409 -5
- package/src/__tests__/connectionsettings.test.ts +410 -5
- package/src/__tests__/contacts.test.ts +466 -9
- package/src/__tests__/creditnotes.test.ts +758 -87
- package/src/__tests__/customers.test.ts +513 -9
- package/src/__tests__/customobjects.test.ts +150 -9
- package/src/__tests__/customobjectschemas.test.ts +321 -9
- package/src/__tests__/departments.test.ts +173 -9
- package/src/__tests__/drivegroups.test.ts +181 -9
- package/src/__tests__/drives.test.ts +179 -9
- package/src/__tests__/employees.test.ts +829 -94
- package/src/__tests__/expenses.test.ts +332 -9
- package/src/__tests__/files.test.ts +106 -5
- package/src/__tests__/folders.test.ts +296 -13
- package/src/__tests__/invoiceitems.test.ts +272 -9
- package/src/__tests__/invoices.test.ts +673 -67
- package/src/__tests__/journalentries.test.ts +490 -8
- package/src/__tests__/leads.test.ts +446 -9
- package/src/__tests__/ledgeraccounts.test.ts +237 -8
- package/src/__tests__/locations.test.ts +298 -9
- package/src/__tests__/messages.test.ts +195 -9
- package/src/__tests__/notes.test.ts +191 -9
- package/src/__tests__/opportunities.test.ts +218 -9
- package/src/__tests__/payments.test.ts +312 -9
- package/src/__tests__/pipelines.test.ts +194 -9
- package/src/__tests__/purchaseorders.test.ts +773 -104
- package/src/__tests__/sharedlinks.test.ts +183 -9
- package/src/__tests__/subsidiaries.test.ts +183 -9
- package/src/__tests__/suppliers.test.ts +505 -9
- package/src/__tests__/taxrates.test.ts +232 -9
- package/src/__tests__/timeoffrequests.test.ts +210 -9
- package/src/__tests__/trackingcategories.test.ts +187 -7
- package/src/__tests__/uploadsessions.test.ts +78 -5
- package/src/__tests__/users.test.ts +356 -9
- package/src/funcs/crmCompaniesCreate.ts +1 -1
- package/src/funcs/crmCompaniesUpdate.ts +1 -1
- package/src/lib/config.ts +4 -4
- package/src/models/components/bankaccount.ts +7 -0
- package/src/models/components/bankaccount1.ts +207 -0
- package/src/models/components/{company.ts → company1.ts} +131 -128
- package/src/models/components/companyinfo.ts +9 -0
- package/src/models/components/getcompaniesresponse.ts +9 -9
- package/src/models/components/getcompanyresponse.ts +9 -9
- package/src/models/components/index.ts +2 -1
- package/src/models/components/supplier.ts +14 -0
- package/src/models/errors/apierror.ts +8 -2
- package/src/models/errors/badrequestresponse.ts +1 -1
- package/src/models/errors/notfoundresponse.ts +1 -1
- package/src/models/errors/paymentrequiredresponse.ts +1 -1
- package/src/models/errors/unauthorizedresponse.ts +1 -1
- package/src/models/errors/unprocessableresponse.ts +1 -1
- package/src/models/operations/crmcompaniesadd.ts +6 -6
- package/src/models/operations/crmcompaniesupdate.ts +6 -6
- package/models/components/company.d.ts.map +0 -1
- 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 {
|
|
5
|
+
import { expect, test } from "vitest";
|
|
6
6
|
import { Apideck } from "../index.js";
|
|
7
7
|
import { createTestHTTPClient } from "./testclient.js";
|
|
8
8
|
|
|
@@ -189,10 +189,82 @@ test("Sharedlinks File Storage Shared Links All", async () => {
|
|
|
189
189
|
});
|
|
190
190
|
});
|
|
191
191
|
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
192
|
+
test("Sharedlinks File Storage Shared Links Add", async () => {
|
|
193
|
+
const testHttpClient = createTestHTTPClient("fileStorage.sharedLinksAdd");
|
|
194
|
+
|
|
195
|
+
const apideck = new Apideck({
|
|
196
|
+
serverURL: process.env["TEST_SERVER_URL"] ?? "http://localhost:18080",
|
|
197
|
+
httpClient: testHttpClient,
|
|
198
|
+
apiKey: process.env["APIDECK_API_KEY"] ?? "value",
|
|
199
|
+
});
|
|
200
|
+
|
|
201
|
+
const result = await apideck.fileStorage.sharedLinks.create({
|
|
202
|
+
consumerId: "test-consumer",
|
|
203
|
+
appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX",
|
|
204
|
+
serviceId: "salesforce",
|
|
205
|
+
sharedLink: {
|
|
206
|
+
downloadUrl:
|
|
207
|
+
"https://www.box.com/shared/static/rh935iit6ewrmw0unyul.jpeg",
|
|
208
|
+
targetId: "<id>",
|
|
209
|
+
scope: "company",
|
|
210
|
+
passThrough: [
|
|
211
|
+
{
|
|
212
|
+
serviceId: "<id>",
|
|
213
|
+
extendPaths: [
|
|
214
|
+
{
|
|
215
|
+
path: "$.nested.property",
|
|
216
|
+
value: {
|
|
217
|
+
"TaxClassificationRef": {
|
|
218
|
+
"value": "EUC-99990201-V1-00020000",
|
|
219
|
+
},
|
|
220
|
+
},
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
path: "$.nested.property",
|
|
224
|
+
value: {
|
|
225
|
+
"TaxClassificationRef": {
|
|
226
|
+
"value": "EUC-99990201-V1-00020000",
|
|
227
|
+
},
|
|
228
|
+
},
|
|
229
|
+
},
|
|
230
|
+
],
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
serviceId: "<id>",
|
|
234
|
+
extendPaths: [
|
|
235
|
+
{
|
|
236
|
+
path: "$.nested.property",
|
|
237
|
+
value: {
|
|
238
|
+
"TaxClassificationRef": {
|
|
239
|
+
"value": "EUC-99990201-V1-00020000",
|
|
240
|
+
},
|
|
241
|
+
},
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
path: "$.nested.property",
|
|
245
|
+
value: {
|
|
246
|
+
"TaxClassificationRef": {
|
|
247
|
+
"value": "EUC-99990201-V1-00020000",
|
|
248
|
+
},
|
|
249
|
+
},
|
|
250
|
+
},
|
|
251
|
+
],
|
|
252
|
+
},
|
|
253
|
+
],
|
|
254
|
+
},
|
|
255
|
+
});
|
|
256
|
+
expect(result.httpMeta.response.status).toBe(201);
|
|
257
|
+
expect(result.createSharedLinkResponse).toBeDefined();
|
|
258
|
+
expect(result.createSharedLinkResponse).toEqual({
|
|
259
|
+
statusCode: 200,
|
|
260
|
+
status: "OK",
|
|
261
|
+
service: "dropbox",
|
|
262
|
+
resource: "Shared Links",
|
|
263
|
+
operation: "add",
|
|
264
|
+
data: {
|
|
265
|
+
id: "12345",
|
|
266
|
+
},
|
|
267
|
+
});
|
|
196
268
|
});
|
|
197
269
|
|
|
198
270
|
test("Sharedlinks File Storage Shared Links One", async () => {
|
|
@@ -301,10 +373,112 @@ test("Sharedlinks File Storage Shared Links One", async () => {
|
|
|
301
373
|
});
|
|
302
374
|
});
|
|
303
375
|
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
376
|
+
test("Sharedlinks File Storage Shared Links Update", async () => {
|
|
377
|
+
const testHttpClient = createTestHTTPClient("fileStorage.sharedLinksUpdate");
|
|
378
|
+
|
|
379
|
+
const apideck = new Apideck({
|
|
380
|
+
serverURL: process.env["TEST_SERVER_URL"] ?? "http://localhost:18080",
|
|
381
|
+
httpClient: testHttpClient,
|
|
382
|
+
apiKey: process.env["APIDECK_API_KEY"] ?? "value",
|
|
383
|
+
});
|
|
384
|
+
|
|
385
|
+
const result = await apideck.fileStorage.sharedLinks.update({
|
|
386
|
+
id: "<id>",
|
|
387
|
+
consumerId: "test-consumer",
|
|
388
|
+
appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX",
|
|
389
|
+
serviceId: "salesforce",
|
|
390
|
+
sharedLink: {
|
|
391
|
+
downloadUrl:
|
|
392
|
+
"https://www.box.com/shared/static/rh935iit6ewrmw0unyul.jpeg",
|
|
393
|
+
targetId: "<id>",
|
|
394
|
+
scope: "company",
|
|
395
|
+
passThrough: [
|
|
396
|
+
{
|
|
397
|
+
serviceId: "<id>",
|
|
398
|
+
extendPaths: [
|
|
399
|
+
{
|
|
400
|
+
path: "$.nested.property",
|
|
401
|
+
value: {
|
|
402
|
+
"TaxClassificationRef": {
|
|
403
|
+
"value": "EUC-99990201-V1-00020000",
|
|
404
|
+
},
|
|
405
|
+
},
|
|
406
|
+
},
|
|
407
|
+
{
|
|
408
|
+
path: "$.nested.property",
|
|
409
|
+
value: {
|
|
410
|
+
"TaxClassificationRef": {
|
|
411
|
+
"value": "EUC-99990201-V1-00020000",
|
|
412
|
+
},
|
|
413
|
+
},
|
|
414
|
+
},
|
|
415
|
+
],
|
|
416
|
+
},
|
|
417
|
+
{
|
|
418
|
+
serviceId: "<id>",
|
|
419
|
+
extendPaths: [
|
|
420
|
+
{
|
|
421
|
+
path: "$.nested.property",
|
|
422
|
+
value: {
|
|
423
|
+
"TaxClassificationRef": {
|
|
424
|
+
"value": "EUC-99990201-V1-00020000",
|
|
425
|
+
},
|
|
426
|
+
},
|
|
427
|
+
},
|
|
428
|
+
{
|
|
429
|
+
path: "$.nested.property",
|
|
430
|
+
value: {
|
|
431
|
+
"TaxClassificationRef": {
|
|
432
|
+
"value": "EUC-99990201-V1-00020000",
|
|
433
|
+
},
|
|
434
|
+
},
|
|
435
|
+
},
|
|
436
|
+
],
|
|
437
|
+
},
|
|
438
|
+
{
|
|
439
|
+
serviceId: "<id>",
|
|
440
|
+
extendPaths: [
|
|
441
|
+
{
|
|
442
|
+
path: "$.nested.property",
|
|
443
|
+
value: {
|
|
444
|
+
"TaxClassificationRef": {
|
|
445
|
+
"value": "EUC-99990201-V1-00020000",
|
|
446
|
+
},
|
|
447
|
+
},
|
|
448
|
+
},
|
|
449
|
+
{
|
|
450
|
+
path: "$.nested.property",
|
|
451
|
+
value: {
|
|
452
|
+
"TaxClassificationRef": {
|
|
453
|
+
"value": "EUC-99990201-V1-00020000",
|
|
454
|
+
},
|
|
455
|
+
},
|
|
456
|
+
},
|
|
457
|
+
{
|
|
458
|
+
path: "$.nested.property",
|
|
459
|
+
value: {
|
|
460
|
+
"TaxClassificationRef": {
|
|
461
|
+
"value": "EUC-99990201-V1-00020000",
|
|
462
|
+
},
|
|
463
|
+
},
|
|
464
|
+
},
|
|
465
|
+
],
|
|
466
|
+
},
|
|
467
|
+
],
|
|
468
|
+
},
|
|
469
|
+
});
|
|
470
|
+
expect(result.httpMeta.response.status).toBe(200);
|
|
471
|
+
expect(result.updateSharedLinkResponse).toBeDefined();
|
|
472
|
+
expect(result.updateSharedLinkResponse).toEqual({
|
|
473
|
+
statusCode: 200,
|
|
474
|
+
status: "OK",
|
|
475
|
+
service: "dropbox",
|
|
476
|
+
resource: "Shared Links",
|
|
477
|
+
operation: "update",
|
|
478
|
+
data: {
|
|
479
|
+
id: "12345",
|
|
480
|
+
},
|
|
481
|
+
});
|
|
308
482
|
});
|
|
309
483
|
|
|
310
484
|
test("Sharedlinks File Storage Shared Links Delete", async () => {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
import {
|
|
5
|
+
import { expect, test } from "vitest";
|
|
6
6
|
import { Apideck } from "../index.js";
|
|
7
7
|
import { createTestHTTPClient } from "./testclient.js";
|
|
8
8
|
|
|
@@ -177,10 +177,82 @@ test("Subsidiaries Accounting Subsidiaries All", async () => {
|
|
|
177
177
|
});
|
|
178
178
|
});
|
|
179
179
|
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
180
|
+
test("Subsidiaries Accounting Subsidiaries Add", async () => {
|
|
181
|
+
const testHttpClient = createTestHTTPClient("accounting.subsidiariesAdd");
|
|
182
|
+
|
|
183
|
+
const apideck = new Apideck({
|
|
184
|
+
serverURL: process.env["TEST_SERVER_URL"] ?? "http://localhost:18080",
|
|
185
|
+
httpClient: testHttpClient,
|
|
186
|
+
apiKey: process.env["APIDECK_API_KEY"] ?? "value",
|
|
187
|
+
});
|
|
188
|
+
|
|
189
|
+
const result = await apideck.accounting.subsidiaries.create({
|
|
190
|
+
consumerId: "test-consumer",
|
|
191
|
+
appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX",
|
|
192
|
+
serviceId: "salesforce",
|
|
193
|
+
subsidiary: {
|
|
194
|
+
parentId: "12345",
|
|
195
|
+
name: "SpaceX",
|
|
196
|
+
status: "active",
|
|
197
|
+
rowVersion: "1-12345",
|
|
198
|
+
passThrough: [
|
|
199
|
+
{
|
|
200
|
+
serviceId: "<id>",
|
|
201
|
+
extendPaths: [
|
|
202
|
+
{
|
|
203
|
+
path: "$.nested.property",
|
|
204
|
+
value: {
|
|
205
|
+
"TaxClassificationRef": {
|
|
206
|
+
"value": "EUC-99990201-V1-00020000",
|
|
207
|
+
},
|
|
208
|
+
},
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
path: "$.nested.property",
|
|
212
|
+
value: {
|
|
213
|
+
"TaxClassificationRef": {
|
|
214
|
+
"value": "EUC-99990201-V1-00020000",
|
|
215
|
+
},
|
|
216
|
+
},
|
|
217
|
+
},
|
|
218
|
+
],
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
serviceId: "<id>",
|
|
222
|
+
extendPaths: [
|
|
223
|
+
{
|
|
224
|
+
path: "$.nested.property",
|
|
225
|
+
value: {
|
|
226
|
+
"TaxClassificationRef": {
|
|
227
|
+
"value": "EUC-99990201-V1-00020000",
|
|
228
|
+
},
|
|
229
|
+
},
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
path: "$.nested.property",
|
|
233
|
+
value: {
|
|
234
|
+
"TaxClassificationRef": {
|
|
235
|
+
"value": "EUC-99990201-V1-00020000",
|
|
236
|
+
},
|
|
237
|
+
},
|
|
238
|
+
},
|
|
239
|
+
],
|
|
240
|
+
},
|
|
241
|
+
],
|
|
242
|
+
},
|
|
243
|
+
});
|
|
244
|
+
expect(result.httpMeta.response.status).toBe(201);
|
|
245
|
+
expect(result.createSubsidiaryResponse).toBeDefined();
|
|
246
|
+
expect(result.createSubsidiaryResponse).toEqual({
|
|
247
|
+
statusCode: 200,
|
|
248
|
+
status: "OK",
|
|
249
|
+
service: "quickbooks",
|
|
250
|
+
resource: "subsidiaries",
|
|
251
|
+
operation: "add",
|
|
252
|
+
data: {
|
|
253
|
+
id: "12345",
|
|
254
|
+
},
|
|
255
|
+
});
|
|
184
256
|
});
|
|
185
257
|
|
|
186
258
|
test("Subsidiaries Accounting Subsidiaries One", async () => {
|
|
@@ -286,10 +358,112 @@ test("Subsidiaries Accounting Subsidiaries One", async () => {
|
|
|
286
358
|
});
|
|
287
359
|
});
|
|
288
360
|
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
361
|
+
test("Subsidiaries Accounting Subsidiaries Update", async () => {
|
|
362
|
+
const testHttpClient = createTestHTTPClient("accounting.subsidiariesUpdate");
|
|
363
|
+
|
|
364
|
+
const apideck = new Apideck({
|
|
365
|
+
serverURL: process.env["TEST_SERVER_URL"] ?? "http://localhost:18080",
|
|
366
|
+
httpClient: testHttpClient,
|
|
367
|
+
apiKey: process.env["APIDECK_API_KEY"] ?? "value",
|
|
368
|
+
});
|
|
369
|
+
|
|
370
|
+
const result = await apideck.accounting.subsidiaries.update({
|
|
371
|
+
id: "<id>",
|
|
372
|
+
consumerId: "test-consumer",
|
|
373
|
+
appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX",
|
|
374
|
+
serviceId: "salesforce",
|
|
375
|
+
subsidiary: {
|
|
376
|
+
parentId: "12345",
|
|
377
|
+
name: "SpaceX",
|
|
378
|
+
status: "active",
|
|
379
|
+
rowVersion: "1-12345",
|
|
380
|
+
passThrough: [
|
|
381
|
+
{
|
|
382
|
+
serviceId: "<id>",
|
|
383
|
+
extendPaths: [
|
|
384
|
+
{
|
|
385
|
+
path: "$.nested.property",
|
|
386
|
+
value: {
|
|
387
|
+
"TaxClassificationRef": {
|
|
388
|
+
"value": "EUC-99990201-V1-00020000",
|
|
389
|
+
},
|
|
390
|
+
},
|
|
391
|
+
},
|
|
392
|
+
{
|
|
393
|
+
path: "$.nested.property",
|
|
394
|
+
value: {
|
|
395
|
+
"TaxClassificationRef": {
|
|
396
|
+
"value": "EUC-99990201-V1-00020000",
|
|
397
|
+
},
|
|
398
|
+
},
|
|
399
|
+
},
|
|
400
|
+
],
|
|
401
|
+
},
|
|
402
|
+
{
|
|
403
|
+
serviceId: "<id>",
|
|
404
|
+
extendPaths: [
|
|
405
|
+
{
|
|
406
|
+
path: "$.nested.property",
|
|
407
|
+
value: {
|
|
408
|
+
"TaxClassificationRef": {
|
|
409
|
+
"value": "EUC-99990201-V1-00020000",
|
|
410
|
+
},
|
|
411
|
+
},
|
|
412
|
+
},
|
|
413
|
+
{
|
|
414
|
+
path: "$.nested.property",
|
|
415
|
+
value: {
|
|
416
|
+
"TaxClassificationRef": {
|
|
417
|
+
"value": "EUC-99990201-V1-00020000",
|
|
418
|
+
},
|
|
419
|
+
},
|
|
420
|
+
},
|
|
421
|
+
],
|
|
422
|
+
},
|
|
423
|
+
{
|
|
424
|
+
serviceId: "<id>",
|
|
425
|
+
extendPaths: [
|
|
426
|
+
{
|
|
427
|
+
path: "$.nested.property",
|
|
428
|
+
value: {
|
|
429
|
+
"TaxClassificationRef": {
|
|
430
|
+
"value": "EUC-99990201-V1-00020000",
|
|
431
|
+
},
|
|
432
|
+
},
|
|
433
|
+
},
|
|
434
|
+
{
|
|
435
|
+
path: "$.nested.property",
|
|
436
|
+
value: {
|
|
437
|
+
"TaxClassificationRef": {
|
|
438
|
+
"value": "EUC-99990201-V1-00020000",
|
|
439
|
+
},
|
|
440
|
+
},
|
|
441
|
+
},
|
|
442
|
+
{
|
|
443
|
+
path: "$.nested.property",
|
|
444
|
+
value: {
|
|
445
|
+
"TaxClassificationRef": {
|
|
446
|
+
"value": "EUC-99990201-V1-00020000",
|
|
447
|
+
},
|
|
448
|
+
},
|
|
449
|
+
},
|
|
450
|
+
],
|
|
451
|
+
},
|
|
452
|
+
],
|
|
453
|
+
},
|
|
454
|
+
});
|
|
455
|
+
expect(result.httpMeta.response.status).toBe(200);
|
|
456
|
+
expect(result.updateSubsidiaryResponse).toBeDefined();
|
|
457
|
+
expect(result.updateSubsidiaryResponse).toEqual({
|
|
458
|
+
statusCode: 200,
|
|
459
|
+
status: "OK",
|
|
460
|
+
service: "quickbooks",
|
|
461
|
+
resource: "subsidiaries",
|
|
462
|
+
operation: "update",
|
|
463
|
+
data: {
|
|
464
|
+
id: "12345",
|
|
465
|
+
},
|
|
466
|
+
});
|
|
293
467
|
});
|
|
294
468
|
|
|
295
469
|
test("Subsidiaries Accounting Subsidiaries Delete", async () => {
|