@chift/chift-nodejs 1.0.13 → 1.0.15
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/.eslintcache +1 -1
- package/CHANGELOG.md +7 -1
- package/dist/src/modules/accounting.d.ts +59 -49
- package/dist/src/modules/api.d.ts +1626 -691
- package/dist/src/modules/consumer.d.ts +318 -131
- package/dist/src/modules/consumer.js +11 -0
- package/dist/src/modules/consumers.d.ts +1625 -690
- package/dist/src/modules/ecommerce.d.ts +11 -11
- package/dist/src/modules/integrations.d.ts +1 -1
- package/dist/src/modules/internalApi.d.ts +2 -0
- package/dist/src/modules/internalApi.js +6 -0
- package/dist/src/modules/invoicing.d.ts +6 -4
- package/dist/src/modules/pms.d.ts +15 -0
- package/dist/src/modules/pms.js +47 -0
- package/dist/src/modules/pos.d.ts +18 -18
- package/dist/src/modules/sync.d.ts +1299 -551
- package/dist/src/types/api.d.ts +1 -0
- package/dist/src/types/public-api/schema.d.ts +1870 -1178
- package/package.json +1 -1
- package/src/modules/consumer.ts +3 -0
- package/src/modules/pms.ts +67 -0
- package/src/modules/pos.ts +4 -4
- package/src/types/public-api/schema.d.ts +12029 -0
- package/src/types/public-api/schema.ts +987 -288
- package/test/modules/pos.test.ts +1 -1
|
@@ -66,6 +66,26 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
66
66
|
total_discount?: number | undefined;
|
|
67
67
|
total_refund?: number | undefined;
|
|
68
68
|
total_tip?: number | undefined;
|
|
69
|
+
currency?: string | undefined;
|
|
70
|
+
country?: string | undefined;
|
|
71
|
+
loyalty?: number | undefined;
|
|
72
|
+
customer_id?: string | undefined;
|
|
73
|
+
location_id?: string | undefined;
|
|
74
|
+
taxes?: {
|
|
75
|
+
tax_rate: number;
|
|
76
|
+
tax_amount: number;
|
|
77
|
+
total: number;
|
|
78
|
+
}[] | undefined;
|
|
79
|
+
payments: {
|
|
80
|
+
id?: string | undefined;
|
|
81
|
+
payment_method_id?: string | undefined;
|
|
82
|
+
payment_method_name?: string | undefined;
|
|
83
|
+
total: number;
|
|
84
|
+
tip?: number | undefined;
|
|
85
|
+
status?: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised" | undefined;
|
|
86
|
+
currency?: string | undefined;
|
|
87
|
+
date?: string | undefined;
|
|
88
|
+
}[];
|
|
69
89
|
items: {
|
|
70
90
|
id: string;
|
|
71
91
|
quantity: number;
|
|
@@ -81,28 +101,12 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
81
101
|
product_id?: string | undefined;
|
|
82
102
|
accounting_category_id?: string | undefined;
|
|
83
103
|
}[];
|
|
84
|
-
payments: {
|
|
85
|
-
id?: string | undefined;
|
|
86
|
-
payment_method_id?: string | undefined;
|
|
87
|
-
payment_method_name?: string | undefined;
|
|
88
|
-
total: number;
|
|
89
|
-
tip?: number | undefined;
|
|
90
|
-
status?: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised" | undefined;
|
|
91
|
-
currency?: string | undefined;
|
|
92
|
-
date?: string | undefined;
|
|
93
|
-
}[];
|
|
94
|
-
currency?: string | undefined;
|
|
95
|
-
country?: string | undefined;
|
|
96
|
-
loyalty?: number | undefined;
|
|
97
|
-
customer_id?: string | undefined;
|
|
98
|
-
location_id?: string | undefined;
|
|
99
|
-
taxes?: {
|
|
100
|
-
tax_rate: number;
|
|
101
|
-
tax_amount: number;
|
|
102
|
-
total: number;
|
|
103
|
-
}[] | undefined;
|
|
104
104
|
}[]>;
|
|
105
|
-
getCustomers(params
|
|
105
|
+
getCustomers(params?: {
|
|
106
|
+
search?: string | undefined;
|
|
107
|
+
email?: string | undefined;
|
|
108
|
+
phone?: string | undefined;
|
|
109
|
+
} | undefined): import("../types/api").RequestData<{
|
|
106
110
|
id: string;
|
|
107
111
|
first_name?: string | undefined;
|
|
108
112
|
last_name?: string | undefined;
|
|
@@ -135,6 +139,26 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
135
139
|
total_discount?: number | undefined;
|
|
136
140
|
total_refund?: number | undefined;
|
|
137
141
|
total_tip?: number | undefined;
|
|
142
|
+
currency?: string | undefined;
|
|
143
|
+
country?: string | undefined;
|
|
144
|
+
loyalty?: number | undefined;
|
|
145
|
+
customer_id?: string | undefined;
|
|
146
|
+
location_id?: string | undefined;
|
|
147
|
+
taxes?: {
|
|
148
|
+
tax_rate: number;
|
|
149
|
+
tax_amount: number;
|
|
150
|
+
total: number;
|
|
151
|
+
}[] | undefined;
|
|
152
|
+
payments: {
|
|
153
|
+
id?: string | undefined;
|
|
154
|
+
payment_method_id?: string | undefined;
|
|
155
|
+
payment_method_name?: string | undefined;
|
|
156
|
+
total: number;
|
|
157
|
+
tip?: number | undefined;
|
|
158
|
+
status?: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised" | undefined;
|
|
159
|
+
currency?: string | undefined;
|
|
160
|
+
date?: string | undefined;
|
|
161
|
+
}[];
|
|
138
162
|
items: {
|
|
139
163
|
id: string;
|
|
140
164
|
quantity: number;
|
|
@@ -150,26 +174,6 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
150
174
|
product_id?: string | undefined;
|
|
151
175
|
accounting_category_id?: string | undefined;
|
|
152
176
|
}[];
|
|
153
|
-
payments: {
|
|
154
|
-
id?: string | undefined;
|
|
155
|
-
payment_method_id?: string | undefined;
|
|
156
|
-
payment_method_name?: string | undefined;
|
|
157
|
-
total: number;
|
|
158
|
-
tip?: number | undefined;
|
|
159
|
-
status?: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised" | undefined;
|
|
160
|
-
currency?: string | undefined;
|
|
161
|
-
date?: string | undefined;
|
|
162
|
-
}[];
|
|
163
|
-
currency?: string | undefined;
|
|
164
|
-
country?: string | undefined;
|
|
165
|
-
loyalty?: number | undefined;
|
|
166
|
-
customer_id?: string | undefined;
|
|
167
|
-
location_id?: string | undefined;
|
|
168
|
-
taxes?: {
|
|
169
|
-
tax_rate: number;
|
|
170
|
-
tax_amount: number;
|
|
171
|
-
total: number;
|
|
172
|
-
}[] | undefined;
|
|
173
177
|
}>;
|
|
174
178
|
getCustomer(customerId: string): import("../types/api").RequestData<{
|
|
175
179
|
id: string;
|
|
@@ -227,12 +231,17 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
227
231
|
loyalty?: number | undefined;
|
|
228
232
|
birthdate?: string | undefined;
|
|
229
233
|
}>;
|
|
230
|
-
getPaymentMethods(params
|
|
234
|
+
getPaymentMethods(params?: {
|
|
235
|
+
location_id?: string | undefined;
|
|
236
|
+
} | undefined): import("../types/api").RequestData<{
|
|
231
237
|
id: string;
|
|
232
238
|
name: string;
|
|
233
239
|
extra?: string | undefined;
|
|
234
240
|
}[]>;
|
|
235
|
-
getProductCategories(params
|
|
241
|
+
getProductCategories(params?: {
|
|
242
|
+
location_id?: string | undefined;
|
|
243
|
+
only_parents?: "true" | "false" | undefined;
|
|
244
|
+
} | undefined): import("../types/api").RequestData<{
|
|
236
245
|
id: string;
|
|
237
246
|
source_ref: {
|
|
238
247
|
id?: string | undefined;
|
|
@@ -241,7 +250,9 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
241
250
|
name: string;
|
|
242
251
|
parent_id?: string | undefined;
|
|
243
252
|
}[]>;
|
|
244
|
-
getProducts(params
|
|
253
|
+
getProducts(params?: {
|
|
254
|
+
location_id?: string | undefined;
|
|
255
|
+
} | undefined): import("../types/api").RequestData<{
|
|
245
256
|
id: string;
|
|
246
257
|
categories?: string[] | undefined;
|
|
247
258
|
name: string;
|
|
@@ -265,7 +276,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
265
276
|
total: number;
|
|
266
277
|
}[] | undefined;
|
|
267
278
|
}>;
|
|
268
|
-
getClosure(date: string, params
|
|
279
|
+
getClosure(date: string, params?: {
|
|
269
280
|
location_id?: string | undefined;
|
|
270
281
|
} | undefined): import("../types/api").RequestData<{
|
|
271
282
|
date: string;
|
|
@@ -298,6 +309,26 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
298
309
|
total_discount?: number | undefined;
|
|
299
310
|
total_refund?: number | undefined;
|
|
300
311
|
total_tip?: number | undefined;
|
|
312
|
+
currency?: string | undefined;
|
|
313
|
+
country?: string | undefined;
|
|
314
|
+
loyalty?: number | undefined;
|
|
315
|
+
customer_id?: string | undefined;
|
|
316
|
+
location_id?: string | undefined;
|
|
317
|
+
taxes?: {
|
|
318
|
+
tax_rate: number;
|
|
319
|
+
tax_amount: number;
|
|
320
|
+
total: number;
|
|
321
|
+
}[] | undefined;
|
|
322
|
+
payments: {
|
|
323
|
+
id?: string | undefined;
|
|
324
|
+
payment_method_id?: string | undefined;
|
|
325
|
+
payment_method_name?: string | undefined;
|
|
326
|
+
total: number;
|
|
327
|
+
tip?: number | undefined;
|
|
328
|
+
status?: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised" | undefined;
|
|
329
|
+
currency?: string | undefined;
|
|
330
|
+
date?: string | undefined;
|
|
331
|
+
}[];
|
|
301
332
|
items: {
|
|
302
333
|
id: string;
|
|
303
334
|
quantity: number;
|
|
@@ -313,16 +344,53 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
313
344
|
product_id?: string | undefined;
|
|
314
345
|
accounting_category_id?: string | undefined;
|
|
315
346
|
}[];
|
|
316
|
-
|
|
347
|
+
}>;
|
|
348
|
+
getAccountingCategories(params?: {} | undefined): import("../types/api").RequestData<{
|
|
349
|
+
id: string;
|
|
350
|
+
name: string;
|
|
351
|
+
id_parent?: string | undefined;
|
|
352
|
+
code?: string | undefined;
|
|
353
|
+
ledger_account_code?: string | undefined;
|
|
354
|
+
posting_account_code?: string | undefined;
|
|
355
|
+
}[]>;
|
|
356
|
+
}>;
|
|
357
|
+
pms: import("../types/api").ApiFor<{
|
|
358
|
+
getLocations(): import("../types/api").RequestData<{
|
|
359
|
+
id: string;
|
|
360
|
+
name: string;
|
|
361
|
+
timezone?: string | undefined;
|
|
362
|
+
address?: {
|
|
363
|
+
address_type?: string | undefined;
|
|
364
|
+
name?: string | undefined;
|
|
365
|
+
street?: string | undefined;
|
|
366
|
+
number?: string | undefined;
|
|
367
|
+
box?: string | undefined;
|
|
368
|
+
city?: string | undefined;
|
|
369
|
+
postal_code?: string | undefined;
|
|
370
|
+
country?: string | undefined;
|
|
371
|
+
} | undefined;
|
|
372
|
+
}[]>;
|
|
373
|
+
getOrders(params: {
|
|
374
|
+
date_from: string;
|
|
375
|
+
date_to: string;
|
|
376
|
+
location_id?: string | undefined;
|
|
377
|
+
state?: "closed" | "consumed" | undefined;
|
|
378
|
+
}): import("../types/api").RequestData<{
|
|
379
|
+
id: string;
|
|
380
|
+
source_ref: {
|
|
317
381
|
id?: string | undefined;
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
382
|
+
model?: string | undefined;
|
|
383
|
+
};
|
|
384
|
+
order_number?: string | undefined;
|
|
385
|
+
creation_date: string;
|
|
386
|
+
closing_date?: string | undefined;
|
|
387
|
+
service_date?: string | undefined;
|
|
388
|
+
device_id?: string | undefined;
|
|
389
|
+
total: number;
|
|
390
|
+
tax_amount: number;
|
|
391
|
+
total_discount?: number | undefined;
|
|
392
|
+
total_refund?: number | undefined;
|
|
393
|
+
total_tip?: number | undefined;
|
|
326
394
|
currency?: string | undefined;
|
|
327
395
|
country?: string | undefined;
|
|
328
396
|
loyalty?: number | undefined;
|
|
@@ -333,9 +401,68 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
333
401
|
tax_amount: number;
|
|
334
402
|
total: number;
|
|
335
403
|
}[] | undefined;
|
|
404
|
+
items: {
|
|
405
|
+
id: string;
|
|
406
|
+
source_ref: {
|
|
407
|
+
id?: string | undefined;
|
|
408
|
+
model?: string | undefined;
|
|
409
|
+
};
|
|
410
|
+
quantity: number;
|
|
411
|
+
unit_price: number;
|
|
412
|
+
total: number;
|
|
413
|
+
tax_amount: number;
|
|
414
|
+
tax_rate?: number | undefined;
|
|
415
|
+
description?: string | undefined;
|
|
416
|
+
discounts?: {
|
|
417
|
+
name?: string | undefined;
|
|
418
|
+
total: number;
|
|
419
|
+
}[] | undefined;
|
|
420
|
+
product_id?: string | undefined;
|
|
421
|
+
accounting_category_id?: string | undefined;
|
|
422
|
+
}[];
|
|
423
|
+
service_id?: string | undefined;
|
|
424
|
+
}[]>;
|
|
425
|
+
getPaymentMethods(params?: {
|
|
426
|
+
location_id?: string | undefined;
|
|
427
|
+
} | undefined): import("../types/api").RequestData<{
|
|
428
|
+
id: string;
|
|
429
|
+
source_ref: {
|
|
430
|
+
id?: string | undefined;
|
|
431
|
+
model?: string | undefined;
|
|
432
|
+
};
|
|
433
|
+
name: string;
|
|
434
|
+
extra?: string | undefined;
|
|
435
|
+
ledger_account_code?: string | undefined;
|
|
436
|
+
}[]>;
|
|
437
|
+
getClosure(date: string, params?: {
|
|
438
|
+
location_id?: string | undefined;
|
|
439
|
+
} | undefined): import("../types/api").RequestData<{
|
|
440
|
+
date: string;
|
|
441
|
+
status: "open" | "closed";
|
|
336
442
|
}>;
|
|
337
|
-
|
|
443
|
+
getPayments(params: {
|
|
444
|
+
date_from: string;
|
|
445
|
+
date_to: string;
|
|
446
|
+
}): import("../types/api").RequestData<{
|
|
447
|
+
id?: string | undefined;
|
|
448
|
+
source_ref: {
|
|
449
|
+
id?: string | undefined;
|
|
450
|
+
model?: string | undefined;
|
|
451
|
+
};
|
|
452
|
+
payment_method_id?: string | undefined;
|
|
453
|
+
payment_method_name?: string | undefined;
|
|
454
|
+
total: number;
|
|
455
|
+
tip?: number | undefined;
|
|
456
|
+
status?: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised" | undefined;
|
|
457
|
+
currency?: string | undefined;
|
|
458
|
+
date?: string | undefined;
|
|
459
|
+
}[]>;
|
|
460
|
+
getAccountingCategories(params?: {} | undefined): import("../types/api").RequestData<{
|
|
338
461
|
id: string;
|
|
462
|
+
source_ref: {
|
|
463
|
+
id?: string | undefined;
|
|
464
|
+
model?: string | undefined;
|
|
465
|
+
};
|
|
339
466
|
name: string;
|
|
340
467
|
id_parent?: string | undefined;
|
|
341
468
|
code?: string | undefined;
|
|
@@ -344,19 +471,15 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
344
471
|
}[]>;
|
|
345
472
|
}>;
|
|
346
473
|
accounting: import("../types/api").ApiFor<{
|
|
347
|
-
getAnalyticPlans(params
|
|
474
|
+
getAnalyticPlans(params?: {
|
|
348
475
|
folder_id?: string | undefined;
|
|
349
|
-
page?: number | undefined;
|
|
350
|
-
size?: number | undefined;
|
|
351
476
|
} | undefined): import("../types/api").RequestData<{
|
|
352
477
|
id: string;
|
|
353
478
|
name: string;
|
|
354
479
|
active?: boolean | undefined;
|
|
355
480
|
}[]>;
|
|
356
|
-
getClients(params
|
|
481
|
+
getClients(params?: {
|
|
357
482
|
folder_id?: string | undefined;
|
|
358
|
-
page?: number | undefined;
|
|
359
|
-
size?: number | undefined;
|
|
360
483
|
} | undefined): import("../types/api").RequestData<{
|
|
361
484
|
external_reference?: string | undefined;
|
|
362
485
|
first_name?: string | undefined;
|
|
@@ -426,7 +549,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
426
549
|
country: string;
|
|
427
550
|
}[];
|
|
428
551
|
account_number?: string | undefined;
|
|
429
|
-
}, params
|
|
552
|
+
}, params?: {
|
|
430
553
|
force_merge?: string | undefined;
|
|
431
554
|
folder_id?: string | undefined;
|
|
432
555
|
} | undefined): import("../types/api").RequestData<{
|
|
@@ -465,7 +588,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
465
588
|
company_number?: string | undefined;
|
|
466
589
|
id?: string | undefined;
|
|
467
590
|
}>;
|
|
468
|
-
getClient(clientId: string, params
|
|
591
|
+
getClient(clientId: string, params?: {
|
|
469
592
|
folder_id?: string | undefined;
|
|
470
593
|
} | undefined): import("../types/api").RequestData<{
|
|
471
594
|
external_reference?: string | undefined;
|
|
@@ -535,7 +658,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
535
658
|
postal_code?: string | undefined;
|
|
536
659
|
country?: string | undefined;
|
|
537
660
|
}[] | undefined;
|
|
538
|
-
}, params
|
|
661
|
+
}, params?: {
|
|
539
662
|
folder_id?: string | undefined;
|
|
540
663
|
} | undefined): import("../types/api").RequestData<{
|
|
541
664
|
external_reference?: string | undefined;
|
|
@@ -573,10 +696,8 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
573
696
|
company_number?: string | undefined;
|
|
574
697
|
id?: string | undefined;
|
|
575
698
|
}>;
|
|
576
|
-
getSuppliers(params
|
|
699
|
+
getSuppliers(params?: {
|
|
577
700
|
folder_id?: string | undefined;
|
|
578
|
-
page?: number | undefined;
|
|
579
|
-
size?: number | undefined;
|
|
580
701
|
} | undefined): import("../types/api").RequestData<{
|
|
581
702
|
external_reference?: string | undefined;
|
|
582
703
|
first_name?: string | undefined;
|
|
@@ -646,7 +767,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
646
767
|
country: string;
|
|
647
768
|
}[];
|
|
648
769
|
account_number?: string | undefined;
|
|
649
|
-
}, params
|
|
770
|
+
}, params?: {
|
|
650
771
|
force_merge?: string | undefined;
|
|
651
772
|
folder_id?: string | undefined;
|
|
652
773
|
} | undefined): import("../types/api").RequestData<{
|
|
@@ -685,7 +806,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
685
806
|
company_number?: string | undefined;
|
|
686
807
|
id?: string | undefined;
|
|
687
808
|
}>;
|
|
688
|
-
getSupplier(supplierId: string, params
|
|
809
|
+
getSupplier(supplierId: string, params?: {
|
|
689
810
|
folder_id?: string | undefined;
|
|
690
811
|
} | undefined): import("../types/api").RequestData<{
|
|
691
812
|
external_reference?: string | undefined;
|
|
@@ -755,7 +876,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
755
876
|
postal_code?: string | undefined;
|
|
756
877
|
country?: string | undefined;
|
|
757
878
|
}[] | undefined;
|
|
758
|
-
}, params
|
|
879
|
+
}, params?: {
|
|
759
880
|
folder_id?: string | undefined;
|
|
760
881
|
} | undefined): import("../types/api").RequestData<{
|
|
761
882
|
external_reference?: string | undefined;
|
|
@@ -826,6 +947,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
826
947
|
iban: string;
|
|
827
948
|
};
|
|
828
949
|
} | undefined;
|
|
950
|
+
shipping_country?: string | undefined;
|
|
829
951
|
lines: {
|
|
830
952
|
line_number?: number | undefined;
|
|
831
953
|
description: string;
|
|
@@ -840,7 +962,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
840
962
|
tax_code: string;
|
|
841
963
|
analytic_account?: string | undefined;
|
|
842
964
|
}[];
|
|
843
|
-
}, params
|
|
965
|
+
}, params?: {
|
|
844
966
|
force_financial_period?: string | undefined;
|
|
845
967
|
regroup_lines?: "true" | "false" | undefined;
|
|
846
968
|
folder_id?: string | undefined;
|
|
@@ -922,6 +1044,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
922
1044
|
iban: string;
|
|
923
1045
|
};
|
|
924
1046
|
} | undefined;
|
|
1047
|
+
shipping_country?: string | undefined;
|
|
925
1048
|
lines: {
|
|
926
1049
|
line_number?: number | undefined;
|
|
927
1050
|
description: string;
|
|
@@ -942,7 +1065,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
942
1065
|
}[];
|
|
943
1066
|
}[] | undefined;
|
|
944
1067
|
}[];
|
|
945
|
-
}, params
|
|
1068
|
+
}, params?: {
|
|
946
1069
|
force_financial_period?: string | undefined;
|
|
947
1070
|
regroup_lines?: "true" | "false" | undefined;
|
|
948
1071
|
folder_id?: string | undefined;
|
|
@@ -997,7 +1120,14 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
997
1120
|
}[] | undefined;
|
|
998
1121
|
}[];
|
|
999
1122
|
}>;
|
|
1000
|
-
getInvoicesByType(invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund", params
|
|
1123
|
+
getInvoicesByType(invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund", params?: {
|
|
1124
|
+
date_from?: string | undefined;
|
|
1125
|
+
date_to?: string | undefined;
|
|
1126
|
+
folder_id?: string | undefined;
|
|
1127
|
+
journal_ids?: string | undefined;
|
|
1128
|
+
include_payments?: "true" | "false" | undefined;
|
|
1129
|
+
payment_status?: "all" | "paid" | "unpaid" | undefined;
|
|
1130
|
+
} | undefined): import("../types/api").RequestData<{
|
|
1001
1131
|
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
1002
1132
|
invoice_number?: string | undefined;
|
|
1003
1133
|
currency: string;
|
|
@@ -1042,7 +1172,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
1042
1172
|
analytic_account?: string | undefined;
|
|
1043
1173
|
}[];
|
|
1044
1174
|
}[]>;
|
|
1045
|
-
getInvoice(invoiceId: string, params
|
|
1175
|
+
getInvoice(invoiceId: string, params?: {
|
|
1046
1176
|
include_payments?: "true" | "false" | undefined;
|
|
1047
1177
|
folder_id?: string | undefined;
|
|
1048
1178
|
} | undefined): import("../types/api").RequestData<{
|
|
@@ -1090,7 +1220,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
1090
1220
|
analytic_account?: string | undefined;
|
|
1091
1221
|
}[];
|
|
1092
1222
|
}>;
|
|
1093
|
-
getInvoiceWithMultiplePlans(invoiceId: string, params
|
|
1223
|
+
getInvoiceWithMultiplePlans(invoiceId: string, params?: {
|
|
1094
1224
|
include_payments?: "true" | "false" | undefined;
|
|
1095
1225
|
folder_id?: string | undefined;
|
|
1096
1226
|
} | undefined): import("../types/api").RequestData<{
|
|
@@ -1144,7 +1274,14 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
1144
1274
|
}[] | undefined;
|
|
1145
1275
|
}[];
|
|
1146
1276
|
}>;
|
|
1147
|
-
getInvoicesByTypeWithMultiplePlans(invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund", params
|
|
1277
|
+
getInvoicesByTypeWithMultiplePlans(invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund", params?: {
|
|
1278
|
+
date_from?: string | undefined;
|
|
1279
|
+
date_to?: string | undefined;
|
|
1280
|
+
folder_id?: string | undefined;
|
|
1281
|
+
journal_ids?: string | undefined;
|
|
1282
|
+
include_payments?: "true" | "false" | undefined;
|
|
1283
|
+
payment_status?: "all" | "paid" | "unpaid" | undefined;
|
|
1284
|
+
} | undefined): import("../types/api").RequestData<{
|
|
1148
1285
|
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
1149
1286
|
invoice_number?: string | undefined;
|
|
1150
1287
|
currency: string;
|
|
@@ -1200,7 +1337,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
1200
1337
|
code: string;
|
|
1201
1338
|
name: string;
|
|
1202
1339
|
currency: string;
|
|
1203
|
-
}, params
|
|
1340
|
+
}, params?: {
|
|
1204
1341
|
folder_id?: string | undefined;
|
|
1205
1342
|
} | undefined): import("../types/api").RequestData<{
|
|
1206
1343
|
id: string;
|
|
@@ -1212,10 +1349,8 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
1212
1349
|
credit?: number | undefined;
|
|
1213
1350
|
debit?: number | undefined;
|
|
1214
1351
|
}>;
|
|
1215
|
-
getAnalyticAccounts(params
|
|
1352
|
+
getAnalyticAccounts(params?: {
|
|
1216
1353
|
folder_id?: string | undefined;
|
|
1217
|
-
page?: number | undefined;
|
|
1218
|
-
size?: number | undefined;
|
|
1219
1354
|
} | undefined): import("../types/api").RequestData<{
|
|
1220
1355
|
id: string;
|
|
1221
1356
|
active: boolean;
|
|
@@ -1231,7 +1366,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
1231
1366
|
code: string;
|
|
1232
1367
|
name: string;
|
|
1233
1368
|
currency: string;
|
|
1234
|
-
}, params
|
|
1369
|
+
}, params?: {
|
|
1235
1370
|
folder_id?: string | undefined;
|
|
1236
1371
|
} | undefined): import("../types/api").RequestData<{
|
|
1237
1372
|
id: string;
|
|
@@ -1244,7 +1379,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
1244
1379
|
debit?: number | undefined;
|
|
1245
1380
|
analytic_plan: string;
|
|
1246
1381
|
}>;
|
|
1247
|
-
getAnalyticAccount(analytic_account_id: string, params
|
|
1382
|
+
getAnalyticAccount(analytic_account_id: string, params?: {
|
|
1248
1383
|
folder_id?: string | undefined;
|
|
1249
1384
|
} | undefined): import("../types/api").RequestData<{
|
|
1250
1385
|
id: string;
|
|
@@ -1261,7 +1396,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
1261
1396
|
code?: string | undefined;
|
|
1262
1397
|
name?: string | undefined;
|
|
1263
1398
|
currency?: string | undefined;
|
|
1264
|
-
}, params
|
|
1399
|
+
}, params?: {
|
|
1265
1400
|
folder_id?: string | undefined;
|
|
1266
1401
|
} | undefined): import("../types/api").RequestData<{
|
|
1267
1402
|
id: string;
|
|
@@ -1273,7 +1408,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
1273
1408
|
credit?: number | undefined;
|
|
1274
1409
|
debit?: number | undefined;
|
|
1275
1410
|
}>;
|
|
1276
|
-
getAnalyticAccountWithMultiplePlans(analytic_account_id: string, analytic_plan: string, params
|
|
1411
|
+
getAnalyticAccountWithMultiplePlans(analytic_account_id: string, analytic_plan: string, params?: {
|
|
1277
1412
|
folder_id?: string | undefined;
|
|
1278
1413
|
} | undefined): import("../types/api").RequestData<{
|
|
1279
1414
|
id: string;
|
|
@@ -1291,7 +1426,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
1291
1426
|
code?: string | undefined;
|
|
1292
1427
|
name?: string | undefined;
|
|
1293
1428
|
currency?: string | undefined;
|
|
1294
|
-
}, params
|
|
1429
|
+
}, params?: {
|
|
1295
1430
|
folder_id?: string | undefined;
|
|
1296
1431
|
} | undefined): import("../types/api").RequestData<{
|
|
1297
1432
|
id: string;
|
|
@@ -1304,10 +1439,8 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
1304
1439
|
debit?: number | undefined;
|
|
1305
1440
|
analytic_plan: string;
|
|
1306
1441
|
}>;
|
|
1307
|
-
getAnalyticAccountsWithMultiplePlans(params
|
|
1442
|
+
getAnalyticAccountsWithMultiplePlans(params?: {
|
|
1308
1443
|
folder_id?: string | undefined;
|
|
1309
|
-
page?: number | undefined;
|
|
1310
|
-
size?: number | undefined;
|
|
1311
1444
|
} | undefined): import("../types/api").RequestData<{
|
|
1312
1445
|
id: string;
|
|
1313
1446
|
active: boolean;
|
|
@@ -1388,7 +1521,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
1388
1521
|
}[] | undefined;
|
|
1389
1522
|
}[] | undefined;
|
|
1390
1523
|
}[]>;
|
|
1391
|
-
getPaymentsByInvoiceId(invoice_id: string, params
|
|
1524
|
+
getPaymentsByInvoiceId(invoice_id: string, params?: {
|
|
1392
1525
|
folder_id?: string | undefined;
|
|
1393
1526
|
page?: number | undefined;
|
|
1394
1527
|
size?: number | undefined;
|
|
@@ -1406,20 +1539,16 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
1406
1539
|
communication?: string | undefined;
|
|
1407
1540
|
matching_number?: string | undefined;
|
|
1408
1541
|
}[]>;
|
|
1409
|
-
getJournals(params
|
|
1542
|
+
getJournals(params?: {
|
|
1410
1543
|
folder_id?: string | undefined;
|
|
1411
|
-
page?: number | undefined;
|
|
1412
|
-
size?: number | undefined;
|
|
1413
1544
|
} | undefined): import("../types/api").RequestData<{
|
|
1414
1545
|
id: string;
|
|
1415
1546
|
code?: string | undefined;
|
|
1416
1547
|
name: string;
|
|
1417
1548
|
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
1418
1549
|
}[]>;
|
|
1419
|
-
getVatCodes(params
|
|
1550
|
+
getVatCodes(params?: {
|
|
1420
1551
|
folder_id?: string | undefined;
|
|
1421
|
-
page?: number | undefined;
|
|
1422
|
-
size?: number | undefined;
|
|
1423
1552
|
} | undefined): import("../types/api").RequestData<{
|
|
1424
1553
|
id: string;
|
|
1425
1554
|
code?: string | undefined;
|
|
@@ -1430,7 +1559,12 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
1430
1559
|
deductible_account?: string | undefined;
|
|
1431
1560
|
payable_account?: string | undefined;
|
|
1432
1561
|
}[]>;
|
|
1433
|
-
getMiscOperations(params
|
|
1562
|
+
getMiscOperations(params?: {
|
|
1563
|
+
date_from?: string | undefined;
|
|
1564
|
+
date_to?: string | undefined;
|
|
1565
|
+
folder_id?: string | undefined;
|
|
1566
|
+
journal_ids?: string | undefined;
|
|
1567
|
+
} | undefined): import("../types/api").RequestData<{
|
|
1434
1568
|
operation_number?: string | undefined;
|
|
1435
1569
|
currency: string;
|
|
1436
1570
|
currency_exchange_rate?: number | undefined;
|
|
@@ -1464,7 +1598,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
1464
1598
|
operation_date: string;
|
|
1465
1599
|
journal_id?: string | undefined;
|
|
1466
1600
|
status?: "draft" | "posted" | undefined;
|
|
1467
|
-
}, params
|
|
1601
|
+
}, params?: {
|
|
1468
1602
|
folder_id?: string | undefined;
|
|
1469
1603
|
} | undefined): import("../types/api").RequestData<{
|
|
1470
1604
|
operation_number?: string | undefined;
|
|
@@ -1484,7 +1618,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
1484
1618
|
status: "cancelled" | "draft" | "posted" | "matched";
|
|
1485
1619
|
id: string;
|
|
1486
1620
|
}>;
|
|
1487
|
-
getMiscOperation(operation_id: string, params
|
|
1621
|
+
getMiscOperation(operation_id: string, params?: {
|
|
1488
1622
|
folder_id?: string | undefined;
|
|
1489
1623
|
} | undefined): import("../types/api").RequestData<{
|
|
1490
1624
|
operation_number?: string | undefined;
|
|
@@ -1506,24 +1640,25 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
1506
1640
|
}>;
|
|
1507
1641
|
attachPDF(invoice_id: string, attachment: {
|
|
1508
1642
|
base64_string: string;
|
|
1509
|
-
}, params
|
|
1643
|
+
}, params?: {
|
|
1510
1644
|
overwrite_existing?: "true" | "false" | undefined;
|
|
1511
1645
|
folder_id?: string | undefined;
|
|
1512
1646
|
} | undefined): import("../types/api").RequestData<{
|
|
1513
1647
|
content: {
|
|
1514
|
-
|
|
1648
|
+
'application/json': unknown;
|
|
1515
1649
|
};
|
|
1516
1650
|
}>;
|
|
1517
1651
|
getAttachments(params: {
|
|
1652
|
+
folder_id?: string | undefined;
|
|
1518
1653
|
type: "invoice" | "entry";
|
|
1519
1654
|
document_id: string;
|
|
1520
|
-
folder_id?: string | undefined;
|
|
1521
|
-
page?: number | undefined;
|
|
1522
|
-
size?: number | undefined;
|
|
1523
1655
|
}): import("../types/api").RequestData<{
|
|
1524
1656
|
base64_string: string;
|
|
1525
1657
|
}[]>;
|
|
1526
|
-
getChartOfAccounts(params
|
|
1658
|
+
getChartOfAccounts(params?: {
|
|
1659
|
+
classes?: string | undefined;
|
|
1660
|
+
folder_id?: string | undefined;
|
|
1661
|
+
} | undefined): import("../types/api").RequestData<{
|
|
1527
1662
|
number: string;
|
|
1528
1663
|
name: string;
|
|
1529
1664
|
active?: boolean | undefined;
|
|
@@ -1533,10 +1668,8 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
1533
1668
|
accounts: string[];
|
|
1534
1669
|
start?: string | undefined;
|
|
1535
1670
|
end: string;
|
|
1536
|
-
}, params
|
|
1671
|
+
}, params?: {
|
|
1537
1672
|
folder_id?: string | undefined;
|
|
1538
|
-
page?: number | undefined;
|
|
1539
|
-
size?: number | undefined;
|
|
1540
1673
|
} | undefined): import("../types/api").RequestData<{
|
|
1541
1674
|
account_number: string;
|
|
1542
1675
|
account_name?: string | undefined;
|
|
@@ -1544,10 +1677,8 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
1544
1677
|
credit: number;
|
|
1545
1678
|
balance: number;
|
|
1546
1679
|
}[]>;
|
|
1547
|
-
getEmployees(params
|
|
1680
|
+
getEmployees(params?: {
|
|
1548
1681
|
folder_id?: string | undefined;
|
|
1549
|
-
page?: number | undefined;
|
|
1550
|
-
size?: number | undefined;
|
|
1551
1682
|
} | undefined): import("../types/api").RequestData<{
|
|
1552
1683
|
id: string;
|
|
1553
1684
|
name: string;
|
|
@@ -1563,8 +1694,8 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
1563
1694
|
}[]>;
|
|
1564
1695
|
getOutstandings(params: {
|
|
1565
1696
|
folder_id?: string | undefined;
|
|
1566
|
-
unposted_allowed: "true" | "false";
|
|
1567
1697
|
type: "supplier" | "client";
|
|
1698
|
+
unposted_allowed: "true" | "false";
|
|
1568
1699
|
}): import("../types/api").RequestData<{
|
|
1569
1700
|
id: string;
|
|
1570
1701
|
number?: string | undefined;
|
|
@@ -1597,7 +1728,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
1597
1728
|
description?: string | undefined;
|
|
1598
1729
|
}[];
|
|
1599
1730
|
pdf?: string | undefined;
|
|
1600
|
-
}, params
|
|
1731
|
+
}, params?: {
|
|
1601
1732
|
financial_counterpart_account?: string | undefined;
|
|
1602
1733
|
folder_id?: string | undefined;
|
|
1603
1734
|
} | undefined): import("../types/api").RequestData<{
|
|
@@ -1631,7 +1762,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
1631
1762
|
description?: string | undefined;
|
|
1632
1763
|
}[];
|
|
1633
1764
|
pdf?: string | undefined;
|
|
1634
|
-
}, params
|
|
1765
|
+
}, params?: {
|
|
1635
1766
|
financial_counterpart_account?: string | undefined;
|
|
1636
1767
|
folder_id?: string | undefined;
|
|
1637
1768
|
} | undefined): import("../types/api").RequestData<{
|
|
@@ -1730,7 +1861,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
1730
1861
|
}[];
|
|
1731
1862
|
pdf?: string | undefined;
|
|
1732
1863
|
posted?: boolean | undefined;
|
|
1733
|
-
}, params
|
|
1864
|
+
}, params?: {
|
|
1734
1865
|
folder_id?: string | undefined;
|
|
1735
1866
|
} | undefined): import("../types/api").RequestData<{
|
|
1736
1867
|
reference?: string | undefined;
|
|
@@ -1765,7 +1896,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
1765
1896
|
matchEntries(body: {
|
|
1766
1897
|
entries: string[];
|
|
1767
1898
|
partner_id: string;
|
|
1768
|
-
}, params
|
|
1899
|
+
}, params?: {
|
|
1769
1900
|
folder_id?: string | undefined;
|
|
1770
1901
|
} | undefined): import("../types/api").RequestData<{
|
|
1771
1902
|
matching_number: string;
|
|
@@ -1775,17 +1906,17 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
1775
1906
|
id: string;
|
|
1776
1907
|
name: string;
|
|
1777
1908
|
selected?: boolean | undefined;
|
|
1909
|
+
vat?: string | undefined;
|
|
1910
|
+
company_number?: string | undefined;
|
|
1778
1911
|
}[]>;
|
|
1779
1912
|
}>;
|
|
1780
1913
|
invoicing: import("../types/api").ApiFor<{
|
|
1781
|
-
getInvoices(params
|
|
1782
|
-
invoice_type?: "all" | "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | undefined;
|
|
1783
|
-
payment_status?: "all" | "paid" | "unpaid" | undefined;
|
|
1914
|
+
getInvoices(params?: {
|
|
1784
1915
|
date_from?: string | undefined;
|
|
1785
1916
|
date_to?: string | undefined;
|
|
1917
|
+
payment_status?: "all" | "paid" | "unpaid" | undefined;
|
|
1918
|
+
invoice_type?: "all" | "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | undefined;
|
|
1786
1919
|
updated_after?: string | undefined;
|
|
1787
|
-
page?: number | undefined;
|
|
1788
|
-
size?: number | undefined;
|
|
1789
1920
|
} | undefined): import("../types/api").RequestData<{
|
|
1790
1921
|
id: string;
|
|
1791
1922
|
source_ref: {
|
|
@@ -1829,7 +1960,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
1829
1960
|
outstanding_amount?: number | undefined;
|
|
1830
1961
|
last_updated_on?: string | undefined;
|
|
1831
1962
|
}[]>;
|
|
1832
|
-
getInvoiceById(invoiceId: string, params
|
|
1963
|
+
getInvoiceById(invoiceId: string, params?: {
|
|
1833
1964
|
include_pdf?: "true" | "false" | undefined;
|
|
1834
1965
|
} | undefined): import("../types/api").RequestData<{
|
|
1835
1966
|
id: string;
|
|
@@ -2091,8 +2222,6 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
2091
2222
|
}>;
|
|
2092
2223
|
getContacts(params?: {
|
|
2093
2224
|
contact_type?: "prospect" | "customer" | "supplier" | "all" | undefined;
|
|
2094
|
-
page?: number | undefined;
|
|
2095
|
-
size?: number | undefined;
|
|
2096
2225
|
} | undefined): import("../types/api").RequestData<{
|
|
2097
2226
|
id: string;
|
|
2098
2227
|
source_ref: {
|
|
@@ -2503,7 +2632,13 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
2503
2632
|
id: string;
|
|
2504
2633
|
name: string;
|
|
2505
2634
|
}[]>;
|
|
2506
|
-
getOrders(params
|
|
2635
|
+
getOrders(params?: {
|
|
2636
|
+
date_from?: string | undefined;
|
|
2637
|
+
date_to?: string | undefined;
|
|
2638
|
+
updated_after?: string | undefined;
|
|
2639
|
+
include_detailed_refunds?: "true" | "false" | undefined;
|
|
2640
|
+
include_product_categories?: "true" | "false" | undefined;
|
|
2641
|
+
} | undefined): import("../types/api").RequestData<{
|
|
2507
2642
|
id: string;
|
|
2508
2643
|
source_ref: {
|
|
2509
2644
|
id?: string | undefined;
|
|
@@ -2549,8 +2684,9 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
2549
2684
|
created_on?: string | undefined;
|
|
2550
2685
|
last_updated_on?: string | undefined;
|
|
2551
2686
|
confirmed_on?: string | undefined;
|
|
2687
|
+
delivery_date?: string | undefined;
|
|
2552
2688
|
cancelled_on?: string | undefined;
|
|
2553
|
-
status: "cancelled" | "draft" | "confirmed" | "shipped" | "refunded";
|
|
2689
|
+
status: "cancelled" | "draft" | "cancelled_unpaid" | "confirmed" | "shipped" | "refunded";
|
|
2554
2690
|
discount_amount: number;
|
|
2555
2691
|
untaxed_amount_without_fees: number;
|
|
2556
2692
|
tax_amount_without_fees: number;
|
|
@@ -2574,6 +2710,10 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
2574
2710
|
id: string;
|
|
2575
2711
|
sku?: string | undefined;
|
|
2576
2712
|
name: string;
|
|
2713
|
+
categories?: {
|
|
2714
|
+
id: string;
|
|
2715
|
+
name: string;
|
|
2716
|
+
}[] | undefined;
|
|
2577
2717
|
} | undefined;
|
|
2578
2718
|
quantity: number;
|
|
2579
2719
|
untaxed_amount: number;
|
|
@@ -2591,6 +2731,13 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
2591
2731
|
tax_amount: number;
|
|
2592
2732
|
total: number;
|
|
2593
2733
|
}[] | undefined;
|
|
2734
|
+
transactions?: {
|
|
2735
|
+
id: string;
|
|
2736
|
+
payment_method_id?: string | undefined;
|
|
2737
|
+
payment_method_name?: string | undefined;
|
|
2738
|
+
amount: number;
|
|
2739
|
+
status: "failed" | "pending" | "success";
|
|
2740
|
+
}[] | undefined;
|
|
2594
2741
|
}[] | undefined;
|
|
2595
2742
|
currency: string;
|
|
2596
2743
|
note?: string | undefined;
|
|
@@ -2605,6 +2752,10 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
2605
2752
|
id: string;
|
|
2606
2753
|
sku?: string | undefined;
|
|
2607
2754
|
name: string;
|
|
2755
|
+
categories?: {
|
|
2756
|
+
id: string;
|
|
2757
|
+
name: string;
|
|
2758
|
+
}[] | undefined;
|
|
2608
2759
|
} | undefined;
|
|
2609
2760
|
quantity: number;
|
|
2610
2761
|
unit_price: number;
|
|
@@ -2740,8 +2891,9 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
2740
2891
|
created_on?: string | undefined;
|
|
2741
2892
|
last_updated_on?: string | undefined;
|
|
2742
2893
|
confirmed_on?: string | undefined;
|
|
2894
|
+
delivery_date?: string | undefined;
|
|
2743
2895
|
cancelled_on?: string | undefined;
|
|
2744
|
-
status: "cancelled" | "draft" | "confirmed" | "shipped" | "refunded";
|
|
2896
|
+
status: "cancelled" | "draft" | "cancelled_unpaid" | "confirmed" | "shipped" | "refunded";
|
|
2745
2897
|
discount_amount: number;
|
|
2746
2898
|
untaxed_amount_without_fees: number;
|
|
2747
2899
|
tax_amount_without_fees: number;
|
|
@@ -2765,6 +2917,10 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
2765
2917
|
id: string;
|
|
2766
2918
|
sku?: string | undefined;
|
|
2767
2919
|
name: string;
|
|
2920
|
+
categories?: {
|
|
2921
|
+
id: string;
|
|
2922
|
+
name: string;
|
|
2923
|
+
}[] | undefined;
|
|
2768
2924
|
} | undefined;
|
|
2769
2925
|
quantity: number;
|
|
2770
2926
|
untaxed_amount: number;
|
|
@@ -2782,6 +2938,13 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
2782
2938
|
tax_amount: number;
|
|
2783
2939
|
total: number;
|
|
2784
2940
|
}[] | undefined;
|
|
2941
|
+
transactions?: {
|
|
2942
|
+
id: string;
|
|
2943
|
+
payment_method_id?: string | undefined;
|
|
2944
|
+
payment_method_name?: string | undefined;
|
|
2945
|
+
amount: number;
|
|
2946
|
+
status: "failed" | "pending" | "success";
|
|
2947
|
+
}[] | undefined;
|
|
2785
2948
|
}[] | undefined;
|
|
2786
2949
|
currency: string;
|
|
2787
2950
|
note?: string | undefined;
|
|
@@ -2796,6 +2959,10 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
2796
2959
|
id: string;
|
|
2797
2960
|
sku?: string | undefined;
|
|
2798
2961
|
name: string;
|
|
2962
|
+
categories?: {
|
|
2963
|
+
id: string;
|
|
2964
|
+
name: string;
|
|
2965
|
+
}[] | undefined;
|
|
2799
2966
|
} | undefined;
|
|
2800
2967
|
quantity: number;
|
|
2801
2968
|
unit_price: number;
|
|
@@ -2890,8 +3057,9 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
2890
3057
|
created_on?: string | undefined;
|
|
2891
3058
|
last_updated_on?: string | undefined;
|
|
2892
3059
|
confirmed_on?: string | undefined;
|
|
3060
|
+
delivery_date?: string | undefined;
|
|
2893
3061
|
cancelled_on?: string | undefined;
|
|
2894
|
-
status: "cancelled" | "draft" | "confirmed" | "shipped" | "refunded";
|
|
3062
|
+
status: "cancelled" | "draft" | "cancelled_unpaid" | "confirmed" | "shipped" | "refunded";
|
|
2895
3063
|
discount_amount: number;
|
|
2896
3064
|
untaxed_amount_without_fees: number;
|
|
2897
3065
|
tax_amount_without_fees: number;
|
|
@@ -2915,6 +3083,10 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
2915
3083
|
id: string;
|
|
2916
3084
|
sku?: string | undefined;
|
|
2917
3085
|
name: string;
|
|
3086
|
+
categories?: {
|
|
3087
|
+
id: string;
|
|
3088
|
+
name: string;
|
|
3089
|
+
}[] | undefined;
|
|
2918
3090
|
} | undefined;
|
|
2919
3091
|
quantity: number;
|
|
2920
3092
|
untaxed_amount: number;
|
|
@@ -2932,6 +3104,13 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
2932
3104
|
tax_amount: number;
|
|
2933
3105
|
total: number;
|
|
2934
3106
|
}[] | undefined;
|
|
3107
|
+
transactions?: {
|
|
3108
|
+
id: string;
|
|
3109
|
+
payment_method_id?: string | undefined;
|
|
3110
|
+
payment_method_name?: string | undefined;
|
|
3111
|
+
amount: number;
|
|
3112
|
+
status: "failed" | "pending" | "success";
|
|
3113
|
+
}[] | undefined;
|
|
2935
3114
|
}[] | undefined;
|
|
2936
3115
|
currency: string;
|
|
2937
3116
|
note?: string | undefined;
|
|
@@ -2946,6 +3125,10 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
2946
3125
|
id: string;
|
|
2947
3126
|
sku?: string | undefined;
|
|
2948
3127
|
name: string;
|
|
3128
|
+
categories?: {
|
|
3129
|
+
id: string;
|
|
3130
|
+
name: string;
|
|
3131
|
+
}[] | undefined;
|
|
2949
3132
|
} | undefined;
|
|
2950
3133
|
quantity: number;
|
|
2951
3134
|
unit_price: number;
|
|
@@ -2994,7 +3177,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
2994
3177
|
name?: string | undefined;
|
|
2995
3178
|
}[] | undefined;
|
|
2996
3179
|
}>;
|
|
2997
|
-
getPaymentMethods(params
|
|
3180
|
+
getPaymentMethods(params?: {} | undefined): import("../types/api").RequestData<{
|
|
2998
3181
|
id: string;
|
|
2999
3182
|
source_ref: {
|
|
3000
3183
|
id?: string | undefined;
|
|
@@ -3003,7 +3186,9 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
3003
3186
|
name: string;
|
|
3004
3187
|
active: boolean;
|
|
3005
3188
|
}[]>;
|
|
3006
|
-
getProductCategories(params
|
|
3189
|
+
getProductCategories(params?: {
|
|
3190
|
+
only_parents?: "true" | "false" | undefined;
|
|
3191
|
+
} | undefined): import("../types/api").RequestData<{
|
|
3007
3192
|
id: string;
|
|
3008
3193
|
source_ref: {
|
|
3009
3194
|
id?: string | undefined;
|
|
@@ -3012,7 +3197,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
3012
3197
|
name: string;
|
|
3013
3198
|
parent_id?: string | undefined;
|
|
3014
3199
|
}[]>;
|
|
3015
|
-
getTaxes(params
|
|
3200
|
+
getTaxes(params?: {} | undefined): import("../types/api").RequestData<{
|
|
3016
3201
|
id: string;
|
|
3017
3202
|
source_ref: {
|
|
3018
3203
|
id?: string | undefined;
|
|
@@ -3022,7 +3207,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
3022
3207
|
rate: number;
|
|
3023
3208
|
country?: string | undefined;
|
|
3024
3209
|
}[]>;
|
|
3025
|
-
getCountries(params
|
|
3210
|
+
getCountries(params?: {} | undefined): import("../types/api").RequestData<{
|
|
3026
3211
|
code: string;
|
|
3027
3212
|
name: string;
|
|
3028
3213
|
}[]>;
|
|
@@ -3111,5 +3296,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
3111
3296
|
}[]>;
|
|
3112
3297
|
deleteDataStoreData: (dataStoreId: string, dataStoreDataId: string) => Promise<SimpleResponseModel>;
|
|
3113
3298
|
logData: (logs: ConsumerLog[]) => Promise<SimpleResponseModel>;
|
|
3299
|
+
setConnectionId: (connectionId: string) => Promise<void>;
|
|
3300
|
+
setIntegrationId: (integrationId: string) => Promise<void>;
|
|
3114
3301
|
};
|
|
3115
3302
|
export { Consumer };
|