@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
|
@@ -87,6 +87,26 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
87
87
|
total_discount?: number | undefined;
|
|
88
88
|
total_refund?: number | undefined;
|
|
89
89
|
total_tip?: number | undefined;
|
|
90
|
+
currency?: string | undefined;
|
|
91
|
+
country?: string | undefined;
|
|
92
|
+
loyalty?: number | undefined;
|
|
93
|
+
customer_id?: string | undefined;
|
|
94
|
+
location_id?: string | undefined;
|
|
95
|
+
taxes?: {
|
|
96
|
+
tax_rate: number;
|
|
97
|
+
tax_amount: number;
|
|
98
|
+
total: number;
|
|
99
|
+
}[] | undefined;
|
|
100
|
+
payments: {
|
|
101
|
+
id?: string | undefined;
|
|
102
|
+
payment_method_id?: string | undefined;
|
|
103
|
+
payment_method_name?: string | undefined;
|
|
104
|
+
total: number;
|
|
105
|
+
tip?: number | undefined;
|
|
106
|
+
status?: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised" | undefined;
|
|
107
|
+
currency?: string | undefined;
|
|
108
|
+
date?: string | undefined;
|
|
109
|
+
}[];
|
|
90
110
|
items: {
|
|
91
111
|
id: string;
|
|
92
112
|
quantity: number;
|
|
@@ -102,28 +122,12 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
102
122
|
product_id?: string | undefined;
|
|
103
123
|
accounting_category_id?: string | undefined;
|
|
104
124
|
}[];
|
|
105
|
-
payments: {
|
|
106
|
-
id?: string | undefined;
|
|
107
|
-
payment_method_id?: string | undefined;
|
|
108
|
-
payment_method_name?: string | undefined;
|
|
109
|
-
total: number;
|
|
110
|
-
tip?: number | undefined;
|
|
111
|
-
status?: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised" | undefined;
|
|
112
|
-
currency?: string | undefined;
|
|
113
|
-
date?: string | undefined;
|
|
114
|
-
}[];
|
|
115
|
-
currency?: string | undefined;
|
|
116
|
-
country?: string | undefined;
|
|
117
|
-
loyalty?: number | undefined;
|
|
118
|
-
customer_id?: string | undefined;
|
|
119
|
-
location_id?: string | undefined;
|
|
120
|
-
taxes?: {
|
|
121
|
-
tax_rate: number;
|
|
122
|
-
tax_amount: number;
|
|
123
|
-
total: number;
|
|
124
|
-
}[] | undefined;
|
|
125
125
|
}[]>;
|
|
126
|
-
getCustomers(params
|
|
126
|
+
getCustomers(params?: {
|
|
127
|
+
search?: string | undefined;
|
|
128
|
+
email?: string | undefined;
|
|
129
|
+
phone?: string | undefined;
|
|
130
|
+
} | undefined): import("../types/api").RequestData<{
|
|
127
131
|
id: string;
|
|
128
132
|
first_name?: string | undefined;
|
|
129
133
|
last_name?: string | undefined;
|
|
@@ -156,6 +160,26 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
156
160
|
total_discount?: number | undefined;
|
|
157
161
|
total_refund?: number | undefined;
|
|
158
162
|
total_tip?: number | undefined;
|
|
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
|
+
payments: {
|
|
174
|
+
id?: string | undefined;
|
|
175
|
+
payment_method_id?: string | undefined;
|
|
176
|
+
payment_method_name?: string | undefined;
|
|
177
|
+
total: number;
|
|
178
|
+
tip?: number | undefined;
|
|
179
|
+
status?: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised" | undefined;
|
|
180
|
+
currency?: string | undefined;
|
|
181
|
+
date?: string | undefined;
|
|
182
|
+
}[];
|
|
159
183
|
items: {
|
|
160
184
|
id: string;
|
|
161
185
|
quantity: number;
|
|
@@ -171,26 +195,6 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
171
195
|
product_id?: string | undefined;
|
|
172
196
|
accounting_category_id?: string | undefined;
|
|
173
197
|
}[];
|
|
174
|
-
payments: {
|
|
175
|
-
id?: string | undefined;
|
|
176
|
-
payment_method_id?: string | undefined;
|
|
177
|
-
payment_method_name?: string | undefined;
|
|
178
|
-
total: number;
|
|
179
|
-
tip?: number | undefined;
|
|
180
|
-
status?: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised" | undefined;
|
|
181
|
-
currency?: string | undefined;
|
|
182
|
-
date?: string | undefined;
|
|
183
|
-
}[];
|
|
184
|
-
currency?: string | undefined;
|
|
185
|
-
country?: string | undefined;
|
|
186
|
-
loyalty?: number | undefined;
|
|
187
|
-
customer_id?: string | undefined;
|
|
188
|
-
location_id?: string | undefined;
|
|
189
|
-
taxes?: {
|
|
190
|
-
tax_rate: number;
|
|
191
|
-
tax_amount: number;
|
|
192
|
-
total: number;
|
|
193
|
-
}[] | undefined;
|
|
194
198
|
}>;
|
|
195
199
|
getCustomer(customerId: string): import("../types/api").RequestData<{
|
|
196
200
|
id: string;
|
|
@@ -248,12 +252,17 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
248
252
|
loyalty?: number | undefined;
|
|
249
253
|
birthdate?: string | undefined;
|
|
250
254
|
}>;
|
|
251
|
-
getPaymentMethods(params
|
|
255
|
+
getPaymentMethods(params?: {
|
|
256
|
+
location_id?: string | undefined;
|
|
257
|
+
} | undefined): import("../types/api").RequestData<{
|
|
252
258
|
id: string;
|
|
253
259
|
name: string;
|
|
254
260
|
extra?: string | undefined;
|
|
255
261
|
}[]>;
|
|
256
|
-
getProductCategories(params
|
|
262
|
+
getProductCategories(params?: {
|
|
263
|
+
location_id?: string | undefined;
|
|
264
|
+
only_parents?: "true" | "false" | undefined;
|
|
265
|
+
} | undefined): import("../types/api").RequestData<{
|
|
257
266
|
id: string;
|
|
258
267
|
source_ref: {
|
|
259
268
|
id?: string | undefined;
|
|
@@ -262,7 +271,9 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
262
271
|
name: string;
|
|
263
272
|
parent_id?: string | undefined;
|
|
264
273
|
}[]>;
|
|
265
|
-
getProducts(params
|
|
274
|
+
getProducts(params?: {
|
|
275
|
+
location_id?: string | undefined;
|
|
276
|
+
} | undefined): import("../types/api").RequestData<{
|
|
266
277
|
id: string;
|
|
267
278
|
categories?: string[] | undefined;
|
|
268
279
|
name: string;
|
|
@@ -286,7 +297,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
286
297
|
total: number;
|
|
287
298
|
}[] | undefined;
|
|
288
299
|
}>;
|
|
289
|
-
getClosure(date: string, params
|
|
300
|
+
getClosure(date: string, params?: {
|
|
290
301
|
location_id?: string | undefined;
|
|
291
302
|
} | undefined): import("../types/api").RequestData<{
|
|
292
303
|
date: string;
|
|
@@ -319,6 +330,26 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
319
330
|
total_discount?: number | undefined;
|
|
320
331
|
total_refund?: number | undefined;
|
|
321
332
|
total_tip?: number | undefined;
|
|
333
|
+
currency?: string | undefined;
|
|
334
|
+
country?: string | undefined;
|
|
335
|
+
loyalty?: number | undefined;
|
|
336
|
+
customer_id?: string | undefined;
|
|
337
|
+
location_id?: string | undefined;
|
|
338
|
+
taxes?: {
|
|
339
|
+
tax_rate: number;
|
|
340
|
+
tax_amount: number;
|
|
341
|
+
total: number;
|
|
342
|
+
}[] | undefined;
|
|
343
|
+
payments: {
|
|
344
|
+
id?: string | undefined;
|
|
345
|
+
payment_method_id?: string | undefined;
|
|
346
|
+
payment_method_name?: string | undefined;
|
|
347
|
+
total: number;
|
|
348
|
+
tip?: number | undefined;
|
|
349
|
+
status?: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised" | undefined;
|
|
350
|
+
currency?: string | undefined;
|
|
351
|
+
date?: string | undefined;
|
|
352
|
+
}[];
|
|
322
353
|
items: {
|
|
323
354
|
id: string;
|
|
324
355
|
quantity: number;
|
|
@@ -334,16 +365,53 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
334
365
|
product_id?: string | undefined;
|
|
335
366
|
accounting_category_id?: string | undefined;
|
|
336
367
|
}[];
|
|
337
|
-
|
|
368
|
+
}>;
|
|
369
|
+
getAccountingCategories(params?: {} | undefined): import("../types/api").RequestData<{
|
|
370
|
+
id: string;
|
|
371
|
+
name: string;
|
|
372
|
+
id_parent?: string | undefined;
|
|
373
|
+
code?: string | undefined;
|
|
374
|
+
ledger_account_code?: string | undefined;
|
|
375
|
+
posting_account_code?: string | undefined;
|
|
376
|
+
}[]>;
|
|
377
|
+
}>;
|
|
378
|
+
pms: import("../types/api").ApiFor<{
|
|
379
|
+
getLocations(): import("../types/api").RequestData<{
|
|
380
|
+
id: string;
|
|
381
|
+
name: string;
|
|
382
|
+
timezone?: string | undefined;
|
|
383
|
+
address?: {
|
|
384
|
+
address_type?: string | undefined;
|
|
385
|
+
name?: string | undefined;
|
|
386
|
+
street?: string | undefined;
|
|
387
|
+
number?: string | undefined;
|
|
388
|
+
box?: string | undefined;
|
|
389
|
+
city?: string | undefined;
|
|
390
|
+
postal_code?: string | undefined;
|
|
391
|
+
country?: string | undefined;
|
|
392
|
+
} | undefined;
|
|
393
|
+
}[]>;
|
|
394
|
+
getOrders(params: {
|
|
395
|
+
date_from: string;
|
|
396
|
+
date_to: string;
|
|
397
|
+
location_id?: string | undefined;
|
|
398
|
+
state?: "closed" | "consumed" | undefined;
|
|
399
|
+
}): import("../types/api").RequestData<{
|
|
400
|
+
id: string;
|
|
401
|
+
source_ref: {
|
|
338
402
|
id?: string | undefined;
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
403
|
+
model?: string | undefined;
|
|
404
|
+
};
|
|
405
|
+
order_number?: string | undefined;
|
|
406
|
+
creation_date: string;
|
|
407
|
+
closing_date?: string | undefined;
|
|
408
|
+
service_date?: string | undefined;
|
|
409
|
+
device_id?: string | undefined;
|
|
410
|
+
total: number;
|
|
411
|
+
tax_amount: number;
|
|
412
|
+
total_discount?: number | undefined;
|
|
413
|
+
total_refund?: number | undefined;
|
|
414
|
+
total_tip?: number | undefined;
|
|
347
415
|
currency?: string | undefined;
|
|
348
416
|
country?: string | undefined;
|
|
349
417
|
loyalty?: number | undefined;
|
|
@@ -354,9 +422,68 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
354
422
|
tax_amount: number;
|
|
355
423
|
total: number;
|
|
356
424
|
}[] | undefined;
|
|
425
|
+
items: {
|
|
426
|
+
id: string;
|
|
427
|
+
source_ref: {
|
|
428
|
+
id?: string | undefined;
|
|
429
|
+
model?: string | undefined;
|
|
430
|
+
};
|
|
431
|
+
quantity: number;
|
|
432
|
+
unit_price: number;
|
|
433
|
+
total: number;
|
|
434
|
+
tax_amount: number;
|
|
435
|
+
tax_rate?: number | undefined;
|
|
436
|
+
description?: string | undefined;
|
|
437
|
+
discounts?: {
|
|
438
|
+
name?: string | undefined;
|
|
439
|
+
total: number;
|
|
440
|
+
}[] | undefined;
|
|
441
|
+
product_id?: string | undefined;
|
|
442
|
+
accounting_category_id?: string | undefined;
|
|
443
|
+
}[];
|
|
444
|
+
service_id?: string | undefined;
|
|
445
|
+
}[]>;
|
|
446
|
+
getPaymentMethods(params?: {
|
|
447
|
+
location_id?: string | undefined;
|
|
448
|
+
} | undefined): import("../types/api").RequestData<{
|
|
449
|
+
id: string;
|
|
450
|
+
source_ref: {
|
|
451
|
+
id?: string | undefined;
|
|
452
|
+
model?: string | undefined;
|
|
453
|
+
};
|
|
454
|
+
name: string;
|
|
455
|
+
extra?: string | undefined;
|
|
456
|
+
ledger_account_code?: string | undefined;
|
|
457
|
+
}[]>;
|
|
458
|
+
getClosure(date: string, params?: {
|
|
459
|
+
location_id?: string | undefined;
|
|
460
|
+
} | undefined): import("../types/api").RequestData<{
|
|
461
|
+
date: string;
|
|
462
|
+
status: "open" | "closed";
|
|
357
463
|
}>;
|
|
358
|
-
|
|
464
|
+
getPayments(params: {
|
|
465
|
+
date_from: string;
|
|
466
|
+
date_to: string;
|
|
467
|
+
}): import("../types/api").RequestData<{
|
|
468
|
+
id?: string | undefined;
|
|
469
|
+
source_ref: {
|
|
470
|
+
id?: string | undefined;
|
|
471
|
+
model?: string | undefined;
|
|
472
|
+
};
|
|
473
|
+
payment_method_id?: string | undefined;
|
|
474
|
+
payment_method_name?: string | undefined;
|
|
475
|
+
total: number;
|
|
476
|
+
tip?: number | undefined;
|
|
477
|
+
status?: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised" | undefined;
|
|
478
|
+
currency?: string | undefined;
|
|
479
|
+
date?: string | undefined;
|
|
480
|
+
}[]>;
|
|
481
|
+
getAccountingCategories(params?: {} | undefined): import("../types/api").RequestData<{
|
|
359
482
|
id: string;
|
|
483
|
+
source_ref: {
|
|
484
|
+
id?: string | undefined;
|
|
485
|
+
model?: string | undefined;
|
|
486
|
+
};
|
|
360
487
|
name: string;
|
|
361
488
|
id_parent?: string | undefined;
|
|
362
489
|
code?: string | undefined;
|
|
@@ -365,19 +492,15 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
365
492
|
}[]>;
|
|
366
493
|
}>;
|
|
367
494
|
accounting: import("../types/api").ApiFor<{
|
|
368
|
-
getAnalyticPlans(params
|
|
495
|
+
getAnalyticPlans(params?: {
|
|
369
496
|
folder_id?: string | undefined;
|
|
370
|
-
page?: number | undefined;
|
|
371
|
-
size?: number | undefined;
|
|
372
497
|
} | undefined): import("../types/api").RequestData<{
|
|
373
498
|
id: string;
|
|
374
499
|
name: string;
|
|
375
500
|
active?: boolean | undefined;
|
|
376
501
|
}[]>;
|
|
377
|
-
getClients(params
|
|
502
|
+
getClients(params?: {
|
|
378
503
|
folder_id?: string | undefined;
|
|
379
|
-
page?: number | undefined;
|
|
380
|
-
size?: number | undefined;
|
|
381
504
|
} | undefined): import("../types/api").RequestData<{
|
|
382
505
|
external_reference?: string | undefined;
|
|
383
506
|
first_name?: string | undefined;
|
|
@@ -447,7 +570,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
447
570
|
country: string;
|
|
448
571
|
}[];
|
|
449
572
|
account_number?: string | undefined;
|
|
450
|
-
}, params
|
|
573
|
+
}, params?: {
|
|
451
574
|
force_merge?: string | undefined;
|
|
452
575
|
folder_id?: string | undefined;
|
|
453
576
|
} | undefined): import("../types/api").RequestData<{
|
|
@@ -486,7 +609,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
486
609
|
company_number?: string | undefined;
|
|
487
610
|
id?: string | undefined;
|
|
488
611
|
}>;
|
|
489
|
-
getClient(clientId: string, params
|
|
612
|
+
getClient(clientId: string, params?: {
|
|
490
613
|
folder_id?: string | undefined;
|
|
491
614
|
} | undefined): import("../types/api").RequestData<{
|
|
492
615
|
external_reference?: string | undefined;
|
|
@@ -556,7 +679,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
556
679
|
postal_code?: string | undefined;
|
|
557
680
|
country?: string | undefined;
|
|
558
681
|
}[] | undefined;
|
|
559
|
-
}, params
|
|
682
|
+
}, params?: {
|
|
560
683
|
folder_id?: string | undefined;
|
|
561
684
|
} | undefined): import("../types/api").RequestData<{
|
|
562
685
|
external_reference?: string | undefined;
|
|
@@ -594,10 +717,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
594
717
|
company_number?: string | undefined;
|
|
595
718
|
id?: string | undefined;
|
|
596
719
|
}>;
|
|
597
|
-
getSuppliers(params
|
|
720
|
+
getSuppliers(params?: {
|
|
598
721
|
folder_id?: string | undefined;
|
|
599
|
-
page?: number | undefined;
|
|
600
|
-
size?: number | undefined;
|
|
601
722
|
} | undefined): import("../types/api").RequestData<{
|
|
602
723
|
external_reference?: string | undefined;
|
|
603
724
|
first_name?: string | undefined;
|
|
@@ -667,7 +788,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
667
788
|
country: string;
|
|
668
789
|
}[];
|
|
669
790
|
account_number?: string | undefined;
|
|
670
|
-
}, params
|
|
791
|
+
}, params?: {
|
|
671
792
|
force_merge?: string | undefined;
|
|
672
793
|
folder_id?: string | undefined;
|
|
673
794
|
} | undefined): import("../types/api").RequestData<{
|
|
@@ -706,7 +827,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
706
827
|
company_number?: string | undefined;
|
|
707
828
|
id?: string | undefined;
|
|
708
829
|
}>;
|
|
709
|
-
getSupplier(supplierId: string, params
|
|
830
|
+
getSupplier(supplierId: string, params?: {
|
|
710
831
|
folder_id?: string | undefined;
|
|
711
832
|
} | undefined): import("../types/api").RequestData<{
|
|
712
833
|
external_reference?: string | undefined;
|
|
@@ -776,7 +897,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
776
897
|
postal_code?: string | undefined;
|
|
777
898
|
country?: string | undefined;
|
|
778
899
|
}[] | undefined;
|
|
779
|
-
}, params
|
|
900
|
+
}, params?: {
|
|
780
901
|
folder_id?: string | undefined;
|
|
781
902
|
} | undefined): import("../types/api").RequestData<{
|
|
782
903
|
external_reference?: string | undefined;
|
|
@@ -847,6 +968,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
847
968
|
iban: string;
|
|
848
969
|
};
|
|
849
970
|
} | undefined;
|
|
971
|
+
shipping_country?: string | undefined;
|
|
850
972
|
lines: {
|
|
851
973
|
line_number?: number | undefined;
|
|
852
974
|
description: string;
|
|
@@ -861,7 +983,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
861
983
|
tax_code: string;
|
|
862
984
|
analytic_account?: string | undefined;
|
|
863
985
|
}[];
|
|
864
|
-
}, params
|
|
986
|
+
}, params?: {
|
|
865
987
|
force_financial_period?: string | undefined;
|
|
866
988
|
regroup_lines?: "true" | "false" | undefined;
|
|
867
989
|
folder_id?: string | undefined;
|
|
@@ -943,6 +1065,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
943
1065
|
iban: string;
|
|
944
1066
|
};
|
|
945
1067
|
} | undefined;
|
|
1068
|
+
shipping_country?: string | undefined;
|
|
946
1069
|
lines: {
|
|
947
1070
|
line_number?: number | undefined;
|
|
948
1071
|
description: string;
|
|
@@ -963,7 +1086,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
963
1086
|
}[];
|
|
964
1087
|
}[] | undefined;
|
|
965
1088
|
}[];
|
|
966
|
-
}, params
|
|
1089
|
+
}, params?: {
|
|
967
1090
|
force_financial_period?: string | undefined;
|
|
968
1091
|
regroup_lines?: "true" | "false" | undefined;
|
|
969
1092
|
folder_id?: string | undefined;
|
|
@@ -1018,7 +1141,14 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
1018
1141
|
}[] | undefined;
|
|
1019
1142
|
}[];
|
|
1020
1143
|
}>;
|
|
1021
|
-
getInvoicesByType(invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund", params
|
|
1144
|
+
getInvoicesByType(invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund", params?: {
|
|
1145
|
+
date_from?: string | undefined;
|
|
1146
|
+
date_to?: string | undefined;
|
|
1147
|
+
folder_id?: string | undefined;
|
|
1148
|
+
journal_ids?: string | undefined;
|
|
1149
|
+
include_payments?: "true" | "false" | undefined;
|
|
1150
|
+
payment_status?: "all" | "paid" | "unpaid" | undefined;
|
|
1151
|
+
} | undefined): import("../types/api").RequestData<{
|
|
1022
1152
|
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
1023
1153
|
invoice_number?: string | undefined;
|
|
1024
1154
|
currency: string;
|
|
@@ -1063,7 +1193,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
1063
1193
|
analytic_account?: string | undefined;
|
|
1064
1194
|
}[];
|
|
1065
1195
|
}[]>;
|
|
1066
|
-
getInvoice(invoiceId: string, params
|
|
1196
|
+
getInvoice(invoiceId: string, params?: {
|
|
1067
1197
|
include_payments?: "true" | "false" | undefined;
|
|
1068
1198
|
folder_id?: string | undefined;
|
|
1069
1199
|
} | undefined): import("../types/api").RequestData<{
|
|
@@ -1111,7 +1241,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
1111
1241
|
analytic_account?: string | undefined;
|
|
1112
1242
|
}[];
|
|
1113
1243
|
}>;
|
|
1114
|
-
getInvoiceWithMultiplePlans(invoiceId: string, params
|
|
1244
|
+
getInvoiceWithMultiplePlans(invoiceId: string, params?: {
|
|
1115
1245
|
include_payments?: "true" | "false" | undefined;
|
|
1116
1246
|
folder_id?: string | undefined;
|
|
1117
1247
|
} | undefined): import("../types/api").RequestData<{
|
|
@@ -1165,7 +1295,14 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
1165
1295
|
}[] | undefined;
|
|
1166
1296
|
}[];
|
|
1167
1297
|
}>;
|
|
1168
|
-
getInvoicesByTypeWithMultiplePlans(invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund", params
|
|
1298
|
+
getInvoicesByTypeWithMultiplePlans(invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund", params?: {
|
|
1299
|
+
date_from?: string | undefined;
|
|
1300
|
+
date_to?: string | undefined;
|
|
1301
|
+
folder_id?: string | undefined;
|
|
1302
|
+
journal_ids?: string | undefined;
|
|
1303
|
+
include_payments?: "true" | "false" | undefined;
|
|
1304
|
+
payment_status?: "all" | "paid" | "unpaid" | undefined;
|
|
1305
|
+
} | undefined): import("../types/api").RequestData<{
|
|
1169
1306
|
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
1170
1307
|
invoice_number?: string | undefined;
|
|
1171
1308
|
currency: string;
|
|
@@ -1221,7 +1358,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
1221
1358
|
code: string;
|
|
1222
1359
|
name: string;
|
|
1223
1360
|
currency: string;
|
|
1224
|
-
}, params
|
|
1361
|
+
}, params?: {
|
|
1225
1362
|
folder_id?: string | undefined;
|
|
1226
1363
|
} | undefined): import("../types/api").RequestData<{
|
|
1227
1364
|
id: string;
|
|
@@ -1233,10 +1370,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
1233
1370
|
credit?: number | undefined;
|
|
1234
1371
|
debit?: number | undefined;
|
|
1235
1372
|
}>;
|
|
1236
|
-
getAnalyticAccounts(params
|
|
1373
|
+
getAnalyticAccounts(params?: {
|
|
1237
1374
|
folder_id?: string | undefined;
|
|
1238
|
-
page?: number | undefined;
|
|
1239
|
-
size?: number | undefined;
|
|
1240
1375
|
} | undefined): import("../types/api").RequestData<{
|
|
1241
1376
|
id: string;
|
|
1242
1377
|
active: boolean;
|
|
@@ -1252,7 +1387,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
1252
1387
|
code: string;
|
|
1253
1388
|
name: string;
|
|
1254
1389
|
currency: string;
|
|
1255
|
-
}, params
|
|
1390
|
+
}, params?: {
|
|
1256
1391
|
folder_id?: string | undefined;
|
|
1257
1392
|
} | undefined): import("../types/api").RequestData<{
|
|
1258
1393
|
id: string;
|
|
@@ -1265,7 +1400,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
1265
1400
|
debit?: number | undefined;
|
|
1266
1401
|
analytic_plan: string;
|
|
1267
1402
|
}>;
|
|
1268
|
-
getAnalyticAccount(analytic_account_id: string, params
|
|
1403
|
+
getAnalyticAccount(analytic_account_id: string, params?: {
|
|
1269
1404
|
folder_id?: string | undefined;
|
|
1270
1405
|
} | undefined): import("../types/api").RequestData<{
|
|
1271
1406
|
id: string;
|
|
@@ -1282,7 +1417,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
1282
1417
|
code?: string | undefined;
|
|
1283
1418
|
name?: string | undefined;
|
|
1284
1419
|
currency?: string | undefined;
|
|
1285
|
-
}, params
|
|
1420
|
+
}, params?: {
|
|
1286
1421
|
folder_id?: string | undefined;
|
|
1287
1422
|
} | undefined): import("../types/api").RequestData<{
|
|
1288
1423
|
id: string;
|
|
@@ -1294,7 +1429,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
1294
1429
|
credit?: number | undefined;
|
|
1295
1430
|
debit?: number | undefined;
|
|
1296
1431
|
}>;
|
|
1297
|
-
getAnalyticAccountWithMultiplePlans(analytic_account_id: string, analytic_plan: string, params
|
|
1432
|
+
getAnalyticAccountWithMultiplePlans(analytic_account_id: string, analytic_plan: string, params?: {
|
|
1298
1433
|
folder_id?: string | undefined;
|
|
1299
1434
|
} | undefined): import("../types/api").RequestData<{
|
|
1300
1435
|
id: string;
|
|
@@ -1312,7 +1447,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
1312
1447
|
code?: string | undefined;
|
|
1313
1448
|
name?: string | undefined;
|
|
1314
1449
|
currency?: string | undefined;
|
|
1315
|
-
}, params
|
|
1450
|
+
}, params?: {
|
|
1316
1451
|
folder_id?: string | undefined;
|
|
1317
1452
|
} | undefined): import("../types/api").RequestData<{
|
|
1318
1453
|
id: string;
|
|
@@ -1325,10 +1460,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
1325
1460
|
debit?: number | undefined;
|
|
1326
1461
|
analytic_plan: string;
|
|
1327
1462
|
}>;
|
|
1328
|
-
getAnalyticAccountsWithMultiplePlans(params
|
|
1463
|
+
getAnalyticAccountsWithMultiplePlans(params?: {
|
|
1329
1464
|
folder_id?: string | undefined;
|
|
1330
|
-
page?: number | undefined;
|
|
1331
|
-
size?: number | undefined;
|
|
1332
1465
|
} | undefined): import("../types/api").RequestData<{
|
|
1333
1466
|
id: string;
|
|
1334
1467
|
active: boolean;
|
|
@@ -1409,7 +1542,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
1409
1542
|
}[] | undefined;
|
|
1410
1543
|
}[] | undefined;
|
|
1411
1544
|
}[]>;
|
|
1412
|
-
getPaymentsByInvoiceId(invoice_id: string, params
|
|
1545
|
+
getPaymentsByInvoiceId(invoice_id: string, params?: {
|
|
1413
1546
|
folder_id?: string | undefined;
|
|
1414
1547
|
page?: number | undefined;
|
|
1415
1548
|
size?: number | undefined;
|
|
@@ -1427,20 +1560,16 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
1427
1560
|
communication?: string | undefined;
|
|
1428
1561
|
matching_number?: string | undefined;
|
|
1429
1562
|
}[]>;
|
|
1430
|
-
getJournals(params
|
|
1563
|
+
getJournals(params?: {
|
|
1431
1564
|
folder_id?: string | undefined;
|
|
1432
|
-
page?: number | undefined;
|
|
1433
|
-
size?: number | undefined;
|
|
1434
1565
|
} | undefined): import("../types/api").RequestData<{
|
|
1435
1566
|
id: string;
|
|
1436
1567
|
code?: string | undefined;
|
|
1437
1568
|
name: string;
|
|
1438
1569
|
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
1439
1570
|
}[]>;
|
|
1440
|
-
getVatCodes(params
|
|
1571
|
+
getVatCodes(params?: {
|
|
1441
1572
|
folder_id?: string | undefined;
|
|
1442
|
-
page?: number | undefined;
|
|
1443
|
-
size?: number | undefined;
|
|
1444
1573
|
} | undefined): import("../types/api").RequestData<{
|
|
1445
1574
|
id: string;
|
|
1446
1575
|
code?: string | undefined;
|
|
@@ -1451,7 +1580,12 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
1451
1580
|
deductible_account?: string | undefined;
|
|
1452
1581
|
payable_account?: string | undefined;
|
|
1453
1582
|
}[]>;
|
|
1454
|
-
getMiscOperations(params
|
|
1583
|
+
getMiscOperations(params?: {
|
|
1584
|
+
date_from?: string | undefined;
|
|
1585
|
+
date_to?: string | undefined;
|
|
1586
|
+
folder_id?: string | undefined;
|
|
1587
|
+
journal_ids?: string | undefined;
|
|
1588
|
+
} | undefined): import("../types/api").RequestData<{
|
|
1455
1589
|
operation_number?: string | undefined;
|
|
1456
1590
|
currency: string;
|
|
1457
1591
|
currency_exchange_rate?: number | undefined;
|
|
@@ -1485,7 +1619,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
1485
1619
|
operation_date: string;
|
|
1486
1620
|
journal_id?: string | undefined;
|
|
1487
1621
|
status?: "draft" | "posted" | undefined;
|
|
1488
|
-
}, params
|
|
1622
|
+
}, params?: {
|
|
1489
1623
|
folder_id?: string | undefined;
|
|
1490
1624
|
} | undefined): import("../types/api").RequestData<{
|
|
1491
1625
|
operation_number?: string | undefined;
|
|
@@ -1505,7 +1639,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
1505
1639
|
status: "cancelled" | "draft" | "posted" | "matched";
|
|
1506
1640
|
id: string;
|
|
1507
1641
|
}>;
|
|
1508
|
-
getMiscOperation(operation_id: string, params
|
|
1642
|
+
getMiscOperation(operation_id: string, params?: {
|
|
1509
1643
|
folder_id?: string | undefined;
|
|
1510
1644
|
} | undefined): import("../types/api").RequestData<{
|
|
1511
1645
|
operation_number?: string | undefined;
|
|
@@ -1527,24 +1661,25 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
1527
1661
|
}>;
|
|
1528
1662
|
attachPDF(invoice_id: string, attachment: {
|
|
1529
1663
|
base64_string: string;
|
|
1530
|
-
}, params
|
|
1664
|
+
}, params?: {
|
|
1531
1665
|
overwrite_existing?: "true" | "false" | undefined;
|
|
1532
1666
|
folder_id?: string | undefined;
|
|
1533
1667
|
} | undefined): import("../types/api").RequestData<{
|
|
1534
1668
|
content: {
|
|
1535
|
-
|
|
1669
|
+
'application/json': unknown;
|
|
1536
1670
|
};
|
|
1537
1671
|
}>;
|
|
1538
1672
|
getAttachments(params: {
|
|
1673
|
+
folder_id?: string | undefined;
|
|
1539
1674
|
type: "invoice" | "entry";
|
|
1540
1675
|
document_id: string;
|
|
1541
|
-
folder_id?: string | undefined;
|
|
1542
|
-
page?: number | undefined;
|
|
1543
|
-
size?: number | undefined;
|
|
1544
1676
|
}): import("../types/api").RequestData<{
|
|
1545
1677
|
base64_string: string;
|
|
1546
1678
|
}[]>;
|
|
1547
|
-
getChartOfAccounts(params
|
|
1679
|
+
getChartOfAccounts(params?: {
|
|
1680
|
+
classes?: string | undefined;
|
|
1681
|
+
folder_id?: string | undefined;
|
|
1682
|
+
} | undefined): import("../types/api").RequestData<{
|
|
1548
1683
|
number: string;
|
|
1549
1684
|
name: string;
|
|
1550
1685
|
active?: boolean | undefined;
|
|
@@ -1554,10 +1689,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
1554
1689
|
accounts: string[];
|
|
1555
1690
|
start?: string | undefined;
|
|
1556
1691
|
end: string;
|
|
1557
|
-
}, params
|
|
1692
|
+
}, params?: {
|
|
1558
1693
|
folder_id?: string | undefined;
|
|
1559
|
-
page?: number | undefined;
|
|
1560
|
-
size?: number | undefined;
|
|
1561
1694
|
} | undefined): import("../types/api").RequestData<{
|
|
1562
1695
|
account_number: string;
|
|
1563
1696
|
account_name?: string | undefined;
|
|
@@ -1565,10 +1698,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
1565
1698
|
credit: number;
|
|
1566
1699
|
balance: number;
|
|
1567
1700
|
}[]>;
|
|
1568
|
-
getEmployees(params
|
|
1701
|
+
getEmployees(params?: {
|
|
1569
1702
|
folder_id?: string | undefined;
|
|
1570
|
-
page?: number | undefined;
|
|
1571
|
-
size?: number | undefined;
|
|
1572
1703
|
} | undefined): import("../types/api").RequestData<{
|
|
1573
1704
|
id: string;
|
|
1574
1705
|
name: string;
|
|
@@ -1584,8 +1715,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
1584
1715
|
}[]>;
|
|
1585
1716
|
getOutstandings(params: {
|
|
1586
1717
|
folder_id?: string | undefined;
|
|
1587
|
-
unposted_allowed: "true" | "false";
|
|
1588
1718
|
type: "supplier" | "client";
|
|
1719
|
+
unposted_allowed: "true" | "false";
|
|
1589
1720
|
}): import("../types/api").RequestData<{
|
|
1590
1721
|
id: string;
|
|
1591
1722
|
number?: string | undefined;
|
|
@@ -1618,7 +1749,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
1618
1749
|
description?: string | undefined;
|
|
1619
1750
|
}[];
|
|
1620
1751
|
pdf?: string | undefined;
|
|
1621
|
-
}, params
|
|
1752
|
+
}, params?: {
|
|
1622
1753
|
financial_counterpart_account?: string | undefined;
|
|
1623
1754
|
folder_id?: string | undefined;
|
|
1624
1755
|
} | undefined): import("../types/api").RequestData<{
|
|
@@ -1652,7 +1783,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
1652
1783
|
description?: string | undefined;
|
|
1653
1784
|
}[];
|
|
1654
1785
|
pdf?: string | undefined;
|
|
1655
|
-
}, params
|
|
1786
|
+
}, params?: {
|
|
1656
1787
|
financial_counterpart_account?: string | undefined;
|
|
1657
1788
|
folder_id?: string | undefined;
|
|
1658
1789
|
} | undefined): import("../types/api").RequestData<{
|
|
@@ -1751,7 +1882,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
1751
1882
|
}[];
|
|
1752
1883
|
pdf?: string | undefined;
|
|
1753
1884
|
posted?: boolean | undefined;
|
|
1754
|
-
}, params
|
|
1885
|
+
}, params?: {
|
|
1755
1886
|
folder_id?: string | undefined;
|
|
1756
1887
|
} | undefined): import("../types/api").RequestData<{
|
|
1757
1888
|
reference?: string | undefined;
|
|
@@ -1786,7 +1917,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
1786
1917
|
matchEntries(body: {
|
|
1787
1918
|
entries: string[];
|
|
1788
1919
|
partner_id: string;
|
|
1789
|
-
}, params
|
|
1920
|
+
}, params?: {
|
|
1790
1921
|
folder_id?: string | undefined;
|
|
1791
1922
|
} | undefined): import("../types/api").RequestData<{
|
|
1792
1923
|
matching_number: string;
|
|
@@ -1796,17 +1927,17 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
1796
1927
|
id: string;
|
|
1797
1928
|
name: string;
|
|
1798
1929
|
selected?: boolean | undefined;
|
|
1930
|
+
vat?: string | undefined;
|
|
1931
|
+
company_number?: string | undefined;
|
|
1799
1932
|
}[]>;
|
|
1800
1933
|
}>;
|
|
1801
1934
|
invoicing: import("../types/api").ApiFor<{
|
|
1802
|
-
getInvoices(params
|
|
1803
|
-
invoice_type?: "all" | "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | undefined;
|
|
1804
|
-
payment_status?: "all" | "paid" | "unpaid" | undefined;
|
|
1935
|
+
getInvoices(params?: {
|
|
1805
1936
|
date_from?: string | undefined;
|
|
1806
1937
|
date_to?: string | undefined;
|
|
1938
|
+
payment_status?: "all" | "paid" | "unpaid" | undefined;
|
|
1939
|
+
invoice_type?: "all" | "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | undefined;
|
|
1807
1940
|
updated_after?: string | undefined;
|
|
1808
|
-
page?: number | undefined;
|
|
1809
|
-
size?: number | undefined;
|
|
1810
1941
|
} | undefined): import("../types/api").RequestData<{
|
|
1811
1942
|
id: string;
|
|
1812
1943
|
source_ref: {
|
|
@@ -1850,7 +1981,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
1850
1981
|
outstanding_amount?: number | undefined;
|
|
1851
1982
|
last_updated_on?: string | undefined;
|
|
1852
1983
|
}[]>;
|
|
1853
|
-
getInvoiceById(invoiceId: string, params
|
|
1984
|
+
getInvoiceById(invoiceId: string, params?: {
|
|
1854
1985
|
include_pdf?: "true" | "false" | undefined;
|
|
1855
1986
|
} | undefined): import("../types/api").RequestData<{
|
|
1856
1987
|
id: string;
|
|
@@ -2112,8 +2243,6 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
2112
2243
|
}>;
|
|
2113
2244
|
getContacts(params?: {
|
|
2114
2245
|
contact_type?: "prospect" | "customer" | "supplier" | "all" | undefined;
|
|
2115
|
-
page?: number | undefined;
|
|
2116
|
-
size?: number | undefined;
|
|
2117
2246
|
} | undefined): import("../types/api").RequestData<{
|
|
2118
2247
|
id: string;
|
|
2119
2248
|
source_ref: {
|
|
@@ -2524,7 +2653,13 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
2524
2653
|
id: string;
|
|
2525
2654
|
name: string;
|
|
2526
2655
|
}[]>;
|
|
2527
|
-
getOrders(params
|
|
2656
|
+
getOrders(params?: {
|
|
2657
|
+
date_from?: string | undefined;
|
|
2658
|
+
date_to?: string | undefined;
|
|
2659
|
+
updated_after?: string | undefined;
|
|
2660
|
+
include_detailed_refunds?: "true" | "false" | undefined;
|
|
2661
|
+
include_product_categories?: "true" | "false" | undefined;
|
|
2662
|
+
} | undefined): import("../types/api").RequestData<{
|
|
2528
2663
|
id: string;
|
|
2529
2664
|
source_ref: {
|
|
2530
2665
|
id?: string | undefined;
|
|
@@ -2570,8 +2705,9 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
2570
2705
|
created_on?: string | undefined;
|
|
2571
2706
|
last_updated_on?: string | undefined;
|
|
2572
2707
|
confirmed_on?: string | undefined;
|
|
2708
|
+
delivery_date?: string | undefined;
|
|
2573
2709
|
cancelled_on?: string | undefined;
|
|
2574
|
-
status: "cancelled" | "draft" | "confirmed" | "shipped" | "refunded";
|
|
2710
|
+
status: "cancelled" | "draft" | "cancelled_unpaid" | "confirmed" | "shipped" | "refunded";
|
|
2575
2711
|
discount_amount: number;
|
|
2576
2712
|
untaxed_amount_without_fees: number;
|
|
2577
2713
|
tax_amount_without_fees: number;
|
|
@@ -2595,6 +2731,10 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
2595
2731
|
id: string;
|
|
2596
2732
|
sku?: string | undefined;
|
|
2597
2733
|
name: string;
|
|
2734
|
+
categories?: {
|
|
2735
|
+
id: string;
|
|
2736
|
+
name: string;
|
|
2737
|
+
}[] | undefined;
|
|
2598
2738
|
} | undefined;
|
|
2599
2739
|
quantity: number;
|
|
2600
2740
|
untaxed_amount: number;
|
|
@@ -2612,6 +2752,13 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
2612
2752
|
tax_amount: number;
|
|
2613
2753
|
total: number;
|
|
2614
2754
|
}[] | undefined;
|
|
2755
|
+
transactions?: {
|
|
2756
|
+
id: string;
|
|
2757
|
+
payment_method_id?: string | undefined;
|
|
2758
|
+
payment_method_name?: string | undefined;
|
|
2759
|
+
amount: number;
|
|
2760
|
+
status: "failed" | "pending" | "success";
|
|
2761
|
+
}[] | undefined;
|
|
2615
2762
|
}[] | undefined;
|
|
2616
2763
|
currency: string;
|
|
2617
2764
|
note?: string | undefined;
|
|
@@ -2626,6 +2773,10 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
2626
2773
|
id: string;
|
|
2627
2774
|
sku?: string | undefined;
|
|
2628
2775
|
name: string;
|
|
2776
|
+
categories?: {
|
|
2777
|
+
id: string;
|
|
2778
|
+
name: string;
|
|
2779
|
+
}[] | undefined;
|
|
2629
2780
|
} | undefined;
|
|
2630
2781
|
quantity: number;
|
|
2631
2782
|
unit_price: number;
|
|
@@ -2761,8 +2912,9 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
2761
2912
|
created_on?: string | undefined;
|
|
2762
2913
|
last_updated_on?: string | undefined;
|
|
2763
2914
|
confirmed_on?: string | undefined;
|
|
2915
|
+
delivery_date?: string | undefined;
|
|
2764
2916
|
cancelled_on?: string | undefined;
|
|
2765
|
-
status: "cancelled" | "draft" | "confirmed" | "shipped" | "refunded";
|
|
2917
|
+
status: "cancelled" | "draft" | "cancelled_unpaid" | "confirmed" | "shipped" | "refunded";
|
|
2766
2918
|
discount_amount: number;
|
|
2767
2919
|
untaxed_amount_without_fees: number;
|
|
2768
2920
|
tax_amount_without_fees: number;
|
|
@@ -2786,6 +2938,10 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
2786
2938
|
id: string;
|
|
2787
2939
|
sku?: string | undefined;
|
|
2788
2940
|
name: string;
|
|
2941
|
+
categories?: {
|
|
2942
|
+
id: string;
|
|
2943
|
+
name: string;
|
|
2944
|
+
}[] | undefined;
|
|
2789
2945
|
} | undefined;
|
|
2790
2946
|
quantity: number;
|
|
2791
2947
|
untaxed_amount: number;
|
|
@@ -2803,6 +2959,13 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
2803
2959
|
tax_amount: number;
|
|
2804
2960
|
total: number;
|
|
2805
2961
|
}[] | undefined;
|
|
2962
|
+
transactions?: {
|
|
2963
|
+
id: string;
|
|
2964
|
+
payment_method_id?: string | undefined;
|
|
2965
|
+
payment_method_name?: string | undefined;
|
|
2966
|
+
amount: number;
|
|
2967
|
+
status: "failed" | "pending" | "success";
|
|
2968
|
+
}[] | undefined;
|
|
2806
2969
|
}[] | undefined;
|
|
2807
2970
|
currency: string;
|
|
2808
2971
|
note?: string | undefined;
|
|
@@ -2817,6 +2980,10 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
2817
2980
|
id: string;
|
|
2818
2981
|
sku?: string | undefined;
|
|
2819
2982
|
name: string;
|
|
2983
|
+
categories?: {
|
|
2984
|
+
id: string;
|
|
2985
|
+
name: string;
|
|
2986
|
+
}[] | undefined;
|
|
2820
2987
|
} | undefined;
|
|
2821
2988
|
quantity: number;
|
|
2822
2989
|
unit_price: number;
|
|
@@ -2911,8 +3078,9 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
2911
3078
|
created_on?: string | undefined;
|
|
2912
3079
|
last_updated_on?: string | undefined;
|
|
2913
3080
|
confirmed_on?: string | undefined;
|
|
3081
|
+
delivery_date?: string | undefined;
|
|
2914
3082
|
cancelled_on?: string | undefined;
|
|
2915
|
-
status: "cancelled" | "draft" | "confirmed" | "shipped" | "refunded";
|
|
3083
|
+
status: "cancelled" | "draft" | "cancelled_unpaid" | "confirmed" | "shipped" | "refunded";
|
|
2916
3084
|
discount_amount: number;
|
|
2917
3085
|
untaxed_amount_without_fees: number;
|
|
2918
3086
|
tax_amount_without_fees: number;
|
|
@@ -2936,6 +3104,10 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
2936
3104
|
id: string;
|
|
2937
3105
|
sku?: string | undefined;
|
|
2938
3106
|
name: string;
|
|
3107
|
+
categories?: {
|
|
3108
|
+
id: string;
|
|
3109
|
+
name: string;
|
|
3110
|
+
}[] | undefined;
|
|
2939
3111
|
} | undefined;
|
|
2940
3112
|
quantity: number;
|
|
2941
3113
|
untaxed_amount: number;
|
|
@@ -2953,6 +3125,13 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
2953
3125
|
tax_amount: number;
|
|
2954
3126
|
total: number;
|
|
2955
3127
|
}[] | undefined;
|
|
3128
|
+
transactions?: {
|
|
3129
|
+
id: string;
|
|
3130
|
+
payment_method_id?: string | undefined;
|
|
3131
|
+
payment_method_name?: string | undefined;
|
|
3132
|
+
amount: number;
|
|
3133
|
+
status: "failed" | "pending" | "success";
|
|
3134
|
+
}[] | undefined;
|
|
2956
3135
|
}[] | undefined;
|
|
2957
3136
|
currency: string;
|
|
2958
3137
|
note?: string | undefined;
|
|
@@ -2967,6 +3146,10 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
2967
3146
|
id: string;
|
|
2968
3147
|
sku?: string | undefined;
|
|
2969
3148
|
name: string;
|
|
3149
|
+
categories?: {
|
|
3150
|
+
id: string;
|
|
3151
|
+
name: string;
|
|
3152
|
+
}[] | undefined;
|
|
2970
3153
|
} | undefined;
|
|
2971
3154
|
quantity: number;
|
|
2972
3155
|
unit_price: number;
|
|
@@ -3015,7 +3198,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
3015
3198
|
name?: string | undefined;
|
|
3016
3199
|
}[] | undefined;
|
|
3017
3200
|
}>;
|
|
3018
|
-
getPaymentMethods(params
|
|
3201
|
+
getPaymentMethods(params?: {} | undefined): import("../types/api").RequestData<{
|
|
3019
3202
|
id: string;
|
|
3020
3203
|
source_ref: {
|
|
3021
3204
|
id?: string | undefined;
|
|
@@ -3024,7 +3207,9 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
3024
3207
|
name: string;
|
|
3025
3208
|
active: boolean;
|
|
3026
3209
|
}[]>;
|
|
3027
|
-
getProductCategories(params
|
|
3210
|
+
getProductCategories(params?: {
|
|
3211
|
+
only_parents?: "true" | "false" | undefined;
|
|
3212
|
+
} | undefined): import("../types/api").RequestData<{
|
|
3028
3213
|
id: string;
|
|
3029
3214
|
source_ref: {
|
|
3030
3215
|
id?: string | undefined;
|
|
@@ -3033,7 +3218,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
3033
3218
|
name: string;
|
|
3034
3219
|
parent_id?: string | undefined;
|
|
3035
3220
|
}[]>;
|
|
3036
|
-
getTaxes(params
|
|
3221
|
+
getTaxes(params?: {} | undefined): import("../types/api").RequestData<{
|
|
3037
3222
|
id: string;
|
|
3038
3223
|
source_ref: {
|
|
3039
3224
|
id?: string | undefined;
|
|
@@ -3043,7 +3228,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
3043
3228
|
rate: number;
|
|
3044
3229
|
country?: string | undefined;
|
|
3045
3230
|
}[]>;
|
|
3046
|
-
getCountries(params
|
|
3231
|
+
getCountries(params?: {} | undefined): import("../types/api").RequestData<{
|
|
3047
3232
|
code: string;
|
|
3048
3233
|
name: string;
|
|
3049
3234
|
}[]>;
|
|
@@ -3138,6 +3323,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
3138
3323
|
}[]>;
|
|
3139
3324
|
deleteDataStoreData: (dataStoreId: string, dataStoreDataId: string) => Promise<import("../types/sync").SimpleResponseModel>;
|
|
3140
3325
|
logData: (logs: import("../types/consumers").ConsumerLog[]) => Promise<import("../types/sync").SimpleResponseModel>;
|
|
3326
|
+
setConnectionId: (connectionId: string) => Promise<void>;
|
|
3327
|
+
setIntegrationId: (integrationId: string) => Promise<void>;
|
|
3141
3328
|
}[]>;
|
|
3142
3329
|
createConsumer: (body: operations[chiftOperations['createConsumer']]['requestBody']['content']['application/json']) => Promise<{
|
|
3143
3330
|
consumerId: string;
|
|
@@ -3224,6 +3411,26 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
3224
3411
|
total_discount?: number | undefined;
|
|
3225
3412
|
total_refund?: number | undefined;
|
|
3226
3413
|
total_tip?: number | undefined;
|
|
3414
|
+
currency?: string | undefined;
|
|
3415
|
+
country?: string | undefined;
|
|
3416
|
+
loyalty?: number | undefined;
|
|
3417
|
+
customer_id?: string | undefined;
|
|
3418
|
+
location_id?: string | undefined;
|
|
3419
|
+
taxes?: {
|
|
3420
|
+
tax_rate: number;
|
|
3421
|
+
tax_amount: number;
|
|
3422
|
+
total: number;
|
|
3423
|
+
}[] | undefined;
|
|
3424
|
+
payments: {
|
|
3425
|
+
id?: string | undefined;
|
|
3426
|
+
payment_method_id?: string | undefined;
|
|
3427
|
+
payment_method_name?: string | undefined;
|
|
3428
|
+
total: number;
|
|
3429
|
+
tip?: number | undefined;
|
|
3430
|
+
status?: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised" | undefined;
|
|
3431
|
+
currency?: string | undefined;
|
|
3432
|
+
date?: string | undefined;
|
|
3433
|
+
}[];
|
|
3227
3434
|
items: {
|
|
3228
3435
|
id: string;
|
|
3229
3436
|
quantity: number;
|
|
@@ -3239,28 +3446,12 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
3239
3446
|
product_id?: string | undefined;
|
|
3240
3447
|
accounting_category_id?: string | undefined;
|
|
3241
3448
|
}[];
|
|
3242
|
-
payments: {
|
|
3243
|
-
id?: string | undefined;
|
|
3244
|
-
payment_method_id?: string | undefined;
|
|
3245
|
-
payment_method_name?: string | undefined;
|
|
3246
|
-
total: number;
|
|
3247
|
-
tip?: number | undefined;
|
|
3248
|
-
status?: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised" | undefined;
|
|
3249
|
-
currency?: string | undefined;
|
|
3250
|
-
date?: string | undefined;
|
|
3251
|
-
}[];
|
|
3252
|
-
currency?: string | undefined;
|
|
3253
|
-
country?: string | undefined;
|
|
3254
|
-
loyalty?: number | undefined;
|
|
3255
|
-
customer_id?: string | undefined;
|
|
3256
|
-
location_id?: string | undefined;
|
|
3257
|
-
taxes?: {
|
|
3258
|
-
tax_rate: number;
|
|
3259
|
-
tax_amount: number;
|
|
3260
|
-
total: number;
|
|
3261
|
-
}[] | undefined;
|
|
3262
3449
|
}[]>;
|
|
3263
|
-
getCustomers(params
|
|
3450
|
+
getCustomers(params?: {
|
|
3451
|
+
search?: string | undefined;
|
|
3452
|
+
email?: string | undefined;
|
|
3453
|
+
phone?: string | undefined;
|
|
3454
|
+
} | undefined): import("../types/api").RequestData<{
|
|
3264
3455
|
id: string;
|
|
3265
3456
|
first_name?: string | undefined;
|
|
3266
3457
|
last_name?: string | undefined;
|
|
@@ -3293,6 +3484,26 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
3293
3484
|
total_discount?: number | undefined;
|
|
3294
3485
|
total_refund?: number | undefined;
|
|
3295
3486
|
total_tip?: number | undefined;
|
|
3487
|
+
currency?: string | undefined;
|
|
3488
|
+
country?: string | undefined;
|
|
3489
|
+
loyalty?: number | undefined;
|
|
3490
|
+
customer_id?: string | undefined;
|
|
3491
|
+
location_id?: string | undefined;
|
|
3492
|
+
taxes?: {
|
|
3493
|
+
tax_rate: number;
|
|
3494
|
+
tax_amount: number;
|
|
3495
|
+
total: number;
|
|
3496
|
+
}[] | undefined;
|
|
3497
|
+
payments: {
|
|
3498
|
+
id?: string | undefined;
|
|
3499
|
+
payment_method_id?: string | undefined;
|
|
3500
|
+
payment_method_name?: string | undefined;
|
|
3501
|
+
total: number;
|
|
3502
|
+
tip?: number | undefined;
|
|
3503
|
+
status?: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised" | undefined;
|
|
3504
|
+
currency?: string | undefined;
|
|
3505
|
+
date?: string | undefined;
|
|
3506
|
+
}[];
|
|
3296
3507
|
items: {
|
|
3297
3508
|
id: string;
|
|
3298
3509
|
quantity: number;
|
|
@@ -3308,26 +3519,6 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
3308
3519
|
product_id?: string | undefined;
|
|
3309
3520
|
accounting_category_id?: string | undefined;
|
|
3310
3521
|
}[];
|
|
3311
|
-
payments: {
|
|
3312
|
-
id?: string | undefined;
|
|
3313
|
-
payment_method_id?: string | undefined;
|
|
3314
|
-
payment_method_name?: string | undefined;
|
|
3315
|
-
total: number;
|
|
3316
|
-
tip?: number | undefined;
|
|
3317
|
-
status?: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised" | undefined;
|
|
3318
|
-
currency?: string | undefined;
|
|
3319
|
-
date?: string | undefined;
|
|
3320
|
-
}[];
|
|
3321
|
-
currency?: string | undefined;
|
|
3322
|
-
country?: string | undefined;
|
|
3323
|
-
loyalty?: number | undefined;
|
|
3324
|
-
customer_id?: string | undefined;
|
|
3325
|
-
location_id?: string | undefined;
|
|
3326
|
-
taxes?: {
|
|
3327
|
-
tax_rate: number;
|
|
3328
|
-
tax_amount: number;
|
|
3329
|
-
total: number;
|
|
3330
|
-
}[] | undefined;
|
|
3331
3522
|
}>;
|
|
3332
3523
|
getCustomer(customerId: string): import("../types/api").RequestData<{
|
|
3333
3524
|
id: string;
|
|
@@ -3385,12 +3576,17 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
3385
3576
|
loyalty?: number | undefined;
|
|
3386
3577
|
birthdate?: string | undefined;
|
|
3387
3578
|
}>;
|
|
3388
|
-
getPaymentMethods(params
|
|
3579
|
+
getPaymentMethods(params?: {
|
|
3580
|
+
location_id?: string | undefined;
|
|
3581
|
+
} | undefined): import("../types/api").RequestData<{
|
|
3389
3582
|
id: string;
|
|
3390
3583
|
name: string;
|
|
3391
3584
|
extra?: string | undefined;
|
|
3392
3585
|
}[]>;
|
|
3393
|
-
getProductCategories(params
|
|
3586
|
+
getProductCategories(params?: {
|
|
3587
|
+
location_id?: string | undefined;
|
|
3588
|
+
only_parents?: "true" | "false" | undefined;
|
|
3589
|
+
} | undefined): import("../types/api").RequestData<{
|
|
3394
3590
|
id: string;
|
|
3395
3591
|
source_ref: {
|
|
3396
3592
|
id?: string | undefined;
|
|
@@ -3399,7 +3595,9 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
3399
3595
|
name: string;
|
|
3400
3596
|
parent_id?: string | undefined;
|
|
3401
3597
|
}[]>;
|
|
3402
|
-
getProducts(params
|
|
3598
|
+
getProducts(params?: {
|
|
3599
|
+
location_id?: string | undefined;
|
|
3600
|
+
} | undefined): import("../types/api").RequestData<{
|
|
3403
3601
|
id: string;
|
|
3404
3602
|
categories?: string[] | undefined;
|
|
3405
3603
|
name: string;
|
|
@@ -3423,7 +3621,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
3423
3621
|
total: number;
|
|
3424
3622
|
}[] | undefined;
|
|
3425
3623
|
}>;
|
|
3426
|
-
getClosure(date: string, params
|
|
3624
|
+
getClosure(date: string, params?: {
|
|
3427
3625
|
location_id?: string | undefined;
|
|
3428
3626
|
} | undefined): import("../types/api").RequestData<{
|
|
3429
3627
|
date: string;
|
|
@@ -3456,6 +3654,26 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
3456
3654
|
total_discount?: number | undefined;
|
|
3457
3655
|
total_refund?: number | undefined;
|
|
3458
3656
|
total_tip?: number | undefined;
|
|
3657
|
+
currency?: string | undefined;
|
|
3658
|
+
country?: string | undefined;
|
|
3659
|
+
loyalty?: number | undefined;
|
|
3660
|
+
customer_id?: string | undefined;
|
|
3661
|
+
location_id?: string | undefined;
|
|
3662
|
+
taxes?: {
|
|
3663
|
+
tax_rate: number;
|
|
3664
|
+
tax_amount: number;
|
|
3665
|
+
total: number;
|
|
3666
|
+
}[] | undefined;
|
|
3667
|
+
payments: {
|
|
3668
|
+
id?: string | undefined;
|
|
3669
|
+
payment_method_id?: string | undefined;
|
|
3670
|
+
payment_method_name?: string | undefined;
|
|
3671
|
+
total: number;
|
|
3672
|
+
tip?: number | undefined;
|
|
3673
|
+
status?: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised" | undefined;
|
|
3674
|
+
currency?: string | undefined;
|
|
3675
|
+
date?: string | undefined;
|
|
3676
|
+
}[];
|
|
3459
3677
|
items: {
|
|
3460
3678
|
id: string;
|
|
3461
3679
|
quantity: number;
|
|
@@ -3471,29 +3689,125 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
3471
3689
|
product_id?: string | undefined;
|
|
3472
3690
|
accounting_category_id?: string | undefined;
|
|
3473
3691
|
}[];
|
|
3474
|
-
|
|
3692
|
+
}>;
|
|
3693
|
+
getAccountingCategories(params?: {} | undefined): import("../types/api").RequestData<{
|
|
3694
|
+
id: string;
|
|
3695
|
+
name: string;
|
|
3696
|
+
id_parent?: string | undefined;
|
|
3697
|
+
code?: string | undefined;
|
|
3698
|
+
ledger_account_code?: string | undefined;
|
|
3699
|
+
posting_account_code?: string | undefined;
|
|
3700
|
+
}[]>;
|
|
3701
|
+
}>;
|
|
3702
|
+
pms: import("../types/api").ApiFor<{
|
|
3703
|
+
getLocations(): import("../types/api").RequestData<{
|
|
3704
|
+
id: string;
|
|
3705
|
+
name: string;
|
|
3706
|
+
timezone?: string | undefined;
|
|
3707
|
+
address?: {
|
|
3708
|
+
address_type?: string | undefined;
|
|
3709
|
+
name?: string | undefined;
|
|
3710
|
+
street?: string | undefined;
|
|
3711
|
+
number?: string | undefined;
|
|
3712
|
+
box?: string | undefined;
|
|
3713
|
+
city?: string | undefined;
|
|
3714
|
+
postal_code?: string | undefined;
|
|
3715
|
+
country?: string | undefined;
|
|
3716
|
+
} | undefined;
|
|
3717
|
+
}[]>;
|
|
3718
|
+
getOrders(params: {
|
|
3719
|
+
date_from: string;
|
|
3720
|
+
date_to: string;
|
|
3721
|
+
location_id?: string | undefined;
|
|
3722
|
+
state?: "closed" | "consumed" | undefined;
|
|
3723
|
+
}): import("../types/api").RequestData<{
|
|
3724
|
+
id: string;
|
|
3725
|
+
source_ref: {
|
|
3475
3726
|
id?: string | undefined;
|
|
3476
|
-
|
|
3477
|
-
|
|
3727
|
+
model?: string | undefined;
|
|
3728
|
+
};
|
|
3729
|
+
order_number?: string | undefined;
|
|
3730
|
+
creation_date: string;
|
|
3731
|
+
closing_date?: string | undefined;
|
|
3732
|
+
service_date?: string | undefined;
|
|
3733
|
+
device_id?: string | undefined;
|
|
3734
|
+
total: number;
|
|
3735
|
+
tax_amount: number;
|
|
3736
|
+
total_discount?: number | undefined;
|
|
3737
|
+
total_refund?: number | undefined;
|
|
3738
|
+
total_tip?: number | undefined;
|
|
3739
|
+
currency?: string | undefined;
|
|
3740
|
+
country?: string | undefined;
|
|
3741
|
+
loyalty?: number | undefined;
|
|
3742
|
+
customer_id?: string | undefined;
|
|
3743
|
+
location_id?: string | undefined;
|
|
3744
|
+
taxes?: {
|
|
3745
|
+
tax_rate: number;
|
|
3746
|
+
tax_amount: number;
|
|
3478
3747
|
total: number;
|
|
3479
|
-
|
|
3480
|
-
|
|
3481
|
-
|
|
3482
|
-
|
|
3748
|
+
}[] | undefined;
|
|
3749
|
+
items: {
|
|
3750
|
+
id: string;
|
|
3751
|
+
source_ref: {
|
|
3752
|
+
id?: string | undefined;
|
|
3753
|
+
model?: string | undefined;
|
|
3754
|
+
};
|
|
3755
|
+
quantity: number;
|
|
3756
|
+
unit_price: number;
|
|
3757
|
+
total: number;
|
|
3758
|
+
tax_amount: number;
|
|
3759
|
+
tax_rate?: number | undefined;
|
|
3760
|
+
description?: string | undefined;
|
|
3761
|
+
discounts?: {
|
|
3762
|
+
name?: string | undefined;
|
|
3763
|
+
total: number;
|
|
3764
|
+
}[] | undefined;
|
|
3765
|
+
product_id?: string | undefined;
|
|
3766
|
+
accounting_category_id?: string | undefined;
|
|
3483
3767
|
}[];
|
|
3768
|
+
service_id?: string | undefined;
|
|
3769
|
+
}[]>;
|
|
3770
|
+
getPaymentMethods(params?: {
|
|
3771
|
+
location_id?: string | undefined;
|
|
3772
|
+
} | undefined): import("../types/api").RequestData<{
|
|
3773
|
+
id: string;
|
|
3774
|
+
source_ref: {
|
|
3775
|
+
id?: string | undefined;
|
|
3776
|
+
model?: string | undefined;
|
|
3777
|
+
};
|
|
3778
|
+
name: string;
|
|
3779
|
+
extra?: string | undefined;
|
|
3780
|
+
ledger_account_code?: string | undefined;
|
|
3781
|
+
}[]>;
|
|
3782
|
+
getClosure(date: string, params?: {
|
|
3783
|
+
location_id?: string | undefined;
|
|
3784
|
+
} | undefined): import("../types/api").RequestData<{
|
|
3785
|
+
date: string;
|
|
3786
|
+
status: "open" | "closed";
|
|
3787
|
+
}>;
|
|
3788
|
+
getPayments(params: {
|
|
3789
|
+
date_from: string;
|
|
3790
|
+
date_to: string;
|
|
3791
|
+
}): import("../types/api").RequestData<{
|
|
3792
|
+
id?: string | undefined;
|
|
3793
|
+
source_ref: {
|
|
3794
|
+
id?: string | undefined;
|
|
3795
|
+
model?: string | undefined;
|
|
3796
|
+
};
|
|
3797
|
+
payment_method_id?: string | undefined;
|
|
3798
|
+
payment_method_name?: string | undefined;
|
|
3799
|
+
total: number;
|
|
3800
|
+
tip?: number | undefined;
|
|
3801
|
+
status?: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised" | undefined;
|
|
3484
3802
|
currency?: string | undefined;
|
|
3485
|
-
|
|
3486
|
-
|
|
3487
|
-
|
|
3488
|
-
location_id?: string | undefined;
|
|
3489
|
-
taxes?: {
|
|
3490
|
-
tax_rate: number;
|
|
3491
|
-
tax_amount: number;
|
|
3492
|
-
total: number;
|
|
3493
|
-
}[] | undefined;
|
|
3494
|
-
}>;
|
|
3495
|
-
getAccountingCategories(params: {}): import("../types/api").RequestData<{
|
|
3803
|
+
date?: string | undefined;
|
|
3804
|
+
}[]>;
|
|
3805
|
+
getAccountingCategories(params?: {} | undefined): import("../types/api").RequestData<{
|
|
3496
3806
|
id: string;
|
|
3807
|
+
source_ref: {
|
|
3808
|
+
id?: string | undefined;
|
|
3809
|
+
model?: string | undefined;
|
|
3810
|
+
};
|
|
3497
3811
|
name: string;
|
|
3498
3812
|
id_parent?: string | undefined;
|
|
3499
3813
|
code?: string | undefined;
|
|
@@ -3502,19 +3816,15 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
3502
3816
|
}[]>;
|
|
3503
3817
|
}>;
|
|
3504
3818
|
accounting: import("../types/api").ApiFor<{
|
|
3505
|
-
getAnalyticPlans(params
|
|
3819
|
+
getAnalyticPlans(params?: {
|
|
3506
3820
|
folder_id?: string | undefined;
|
|
3507
|
-
page?: number | undefined;
|
|
3508
|
-
size?: number | undefined;
|
|
3509
3821
|
} | undefined): import("../types/api").RequestData<{
|
|
3510
3822
|
id: string;
|
|
3511
3823
|
name: string;
|
|
3512
3824
|
active?: boolean | undefined;
|
|
3513
3825
|
}[]>;
|
|
3514
|
-
getClients(params
|
|
3826
|
+
getClients(params?: {
|
|
3515
3827
|
folder_id?: string | undefined;
|
|
3516
|
-
page?: number | undefined;
|
|
3517
|
-
size?: number | undefined;
|
|
3518
3828
|
} | undefined): import("../types/api").RequestData<{
|
|
3519
3829
|
external_reference?: string | undefined;
|
|
3520
3830
|
first_name?: string | undefined;
|
|
@@ -3584,7 +3894,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
3584
3894
|
country: string;
|
|
3585
3895
|
}[];
|
|
3586
3896
|
account_number?: string | undefined;
|
|
3587
|
-
}, params
|
|
3897
|
+
}, params?: {
|
|
3588
3898
|
force_merge?: string | undefined;
|
|
3589
3899
|
folder_id?: string | undefined;
|
|
3590
3900
|
} | undefined): import("../types/api").RequestData<{
|
|
@@ -3623,7 +3933,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
3623
3933
|
company_number?: string | undefined;
|
|
3624
3934
|
id?: string | undefined;
|
|
3625
3935
|
}>;
|
|
3626
|
-
getClient(clientId: string, params
|
|
3936
|
+
getClient(clientId: string, params?: {
|
|
3627
3937
|
folder_id?: string | undefined;
|
|
3628
3938
|
} | undefined): import("../types/api").RequestData<{
|
|
3629
3939
|
external_reference?: string | undefined;
|
|
@@ -3693,7 +4003,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
3693
4003
|
postal_code?: string | undefined;
|
|
3694
4004
|
country?: string | undefined;
|
|
3695
4005
|
}[] | undefined;
|
|
3696
|
-
}, params
|
|
4006
|
+
}, params?: {
|
|
3697
4007
|
folder_id?: string | undefined;
|
|
3698
4008
|
} | undefined): import("../types/api").RequestData<{
|
|
3699
4009
|
external_reference?: string | undefined;
|
|
@@ -3731,10 +4041,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
3731
4041
|
company_number?: string | undefined;
|
|
3732
4042
|
id?: string | undefined;
|
|
3733
4043
|
}>;
|
|
3734
|
-
getSuppliers(params
|
|
4044
|
+
getSuppliers(params?: {
|
|
3735
4045
|
folder_id?: string | undefined;
|
|
3736
|
-
page?: number | undefined;
|
|
3737
|
-
size?: number | undefined;
|
|
3738
4046
|
} | undefined): import("../types/api").RequestData<{
|
|
3739
4047
|
external_reference?: string | undefined;
|
|
3740
4048
|
first_name?: string | undefined;
|
|
@@ -3804,7 +4112,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
3804
4112
|
country: string;
|
|
3805
4113
|
}[];
|
|
3806
4114
|
account_number?: string | undefined;
|
|
3807
|
-
}, params
|
|
4115
|
+
}, params?: {
|
|
3808
4116
|
force_merge?: string | undefined;
|
|
3809
4117
|
folder_id?: string | undefined;
|
|
3810
4118
|
} | undefined): import("../types/api").RequestData<{
|
|
@@ -3843,7 +4151,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
3843
4151
|
company_number?: string | undefined;
|
|
3844
4152
|
id?: string | undefined;
|
|
3845
4153
|
}>;
|
|
3846
|
-
getSupplier(supplierId: string, params
|
|
4154
|
+
getSupplier(supplierId: string, params?: {
|
|
3847
4155
|
folder_id?: string | undefined;
|
|
3848
4156
|
} | undefined): import("../types/api").RequestData<{
|
|
3849
4157
|
external_reference?: string | undefined;
|
|
@@ -3913,7 +4221,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
3913
4221
|
postal_code?: string | undefined;
|
|
3914
4222
|
country?: string | undefined;
|
|
3915
4223
|
}[] | undefined;
|
|
3916
|
-
}, params
|
|
4224
|
+
}, params?: {
|
|
3917
4225
|
folder_id?: string | undefined;
|
|
3918
4226
|
} | undefined): import("../types/api").RequestData<{
|
|
3919
4227
|
external_reference?: string | undefined;
|
|
@@ -3984,6 +4292,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
3984
4292
|
iban: string;
|
|
3985
4293
|
};
|
|
3986
4294
|
} | undefined;
|
|
4295
|
+
shipping_country?: string | undefined;
|
|
3987
4296
|
lines: {
|
|
3988
4297
|
line_number?: number | undefined;
|
|
3989
4298
|
description: string;
|
|
@@ -3998,7 +4307,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
3998
4307
|
tax_code: string;
|
|
3999
4308
|
analytic_account?: string | undefined;
|
|
4000
4309
|
}[];
|
|
4001
|
-
}, params
|
|
4310
|
+
}, params?: {
|
|
4002
4311
|
force_financial_period?: string | undefined;
|
|
4003
4312
|
regroup_lines?: "true" | "false" | undefined;
|
|
4004
4313
|
folder_id?: string | undefined;
|
|
@@ -4080,6 +4389,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
4080
4389
|
iban: string;
|
|
4081
4390
|
};
|
|
4082
4391
|
} | undefined;
|
|
4392
|
+
shipping_country?: string | undefined;
|
|
4083
4393
|
lines: {
|
|
4084
4394
|
line_number?: number | undefined;
|
|
4085
4395
|
description: string;
|
|
@@ -4100,7 +4410,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
4100
4410
|
}[];
|
|
4101
4411
|
}[] | undefined;
|
|
4102
4412
|
}[];
|
|
4103
|
-
}, params
|
|
4413
|
+
}, params?: {
|
|
4104
4414
|
force_financial_period?: string | undefined;
|
|
4105
4415
|
regroup_lines?: "true" | "false" | undefined;
|
|
4106
4416
|
folder_id?: string | undefined;
|
|
@@ -4155,7 +4465,14 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
4155
4465
|
}[] | undefined;
|
|
4156
4466
|
}[];
|
|
4157
4467
|
}>;
|
|
4158
|
-
getInvoicesByType(invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund", params
|
|
4468
|
+
getInvoicesByType(invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund", params?: {
|
|
4469
|
+
date_from?: string | undefined;
|
|
4470
|
+
date_to?: string | undefined;
|
|
4471
|
+
folder_id?: string | undefined;
|
|
4472
|
+
journal_ids?: string | undefined;
|
|
4473
|
+
include_payments?: "true" | "false" | undefined;
|
|
4474
|
+
payment_status?: "all" | "paid" | "unpaid" | undefined;
|
|
4475
|
+
} | undefined): import("../types/api").RequestData<{
|
|
4159
4476
|
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
4160
4477
|
invoice_number?: string | undefined;
|
|
4161
4478
|
currency: string;
|
|
@@ -4200,7 +4517,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
4200
4517
|
analytic_account?: string | undefined;
|
|
4201
4518
|
}[];
|
|
4202
4519
|
}[]>;
|
|
4203
|
-
getInvoice(invoiceId: string, params
|
|
4520
|
+
getInvoice(invoiceId: string, params?: {
|
|
4204
4521
|
include_payments?: "true" | "false" | undefined;
|
|
4205
4522
|
folder_id?: string | undefined;
|
|
4206
4523
|
} | undefined): import("../types/api").RequestData<{
|
|
@@ -4248,7 +4565,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
4248
4565
|
analytic_account?: string | undefined;
|
|
4249
4566
|
}[];
|
|
4250
4567
|
}>;
|
|
4251
|
-
getInvoiceWithMultiplePlans(invoiceId: string, params
|
|
4568
|
+
getInvoiceWithMultiplePlans(invoiceId: string, params?: {
|
|
4252
4569
|
include_payments?: "true" | "false" | undefined;
|
|
4253
4570
|
folder_id?: string | undefined;
|
|
4254
4571
|
} | undefined): import("../types/api").RequestData<{
|
|
@@ -4302,7 +4619,14 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
4302
4619
|
}[] | undefined;
|
|
4303
4620
|
}[];
|
|
4304
4621
|
}>;
|
|
4305
|
-
getInvoicesByTypeWithMultiplePlans(invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund", params
|
|
4622
|
+
getInvoicesByTypeWithMultiplePlans(invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund", params?: {
|
|
4623
|
+
date_from?: string | undefined;
|
|
4624
|
+
date_to?: string | undefined;
|
|
4625
|
+
folder_id?: string | undefined;
|
|
4626
|
+
journal_ids?: string | undefined;
|
|
4627
|
+
include_payments?: "true" | "false" | undefined;
|
|
4628
|
+
payment_status?: "all" | "paid" | "unpaid" | undefined;
|
|
4629
|
+
} | undefined): import("../types/api").RequestData<{
|
|
4306
4630
|
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
4307
4631
|
invoice_number?: string | undefined;
|
|
4308
4632
|
currency: string;
|
|
@@ -4358,7 +4682,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
4358
4682
|
code: string;
|
|
4359
4683
|
name: string;
|
|
4360
4684
|
currency: string;
|
|
4361
|
-
}, params
|
|
4685
|
+
}, params?: {
|
|
4362
4686
|
folder_id?: string | undefined;
|
|
4363
4687
|
} | undefined): import("../types/api").RequestData<{
|
|
4364
4688
|
id: string;
|
|
@@ -4370,10 +4694,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
4370
4694
|
credit?: number | undefined;
|
|
4371
4695
|
debit?: number | undefined;
|
|
4372
4696
|
}>;
|
|
4373
|
-
getAnalyticAccounts(params
|
|
4697
|
+
getAnalyticAccounts(params?: {
|
|
4374
4698
|
folder_id?: string | undefined;
|
|
4375
|
-
page?: number | undefined;
|
|
4376
|
-
size?: number | undefined;
|
|
4377
4699
|
} | undefined): import("../types/api").RequestData<{
|
|
4378
4700
|
id: string;
|
|
4379
4701
|
active: boolean;
|
|
@@ -4389,7 +4711,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
4389
4711
|
code: string;
|
|
4390
4712
|
name: string;
|
|
4391
4713
|
currency: string;
|
|
4392
|
-
}, params
|
|
4714
|
+
}, params?: {
|
|
4393
4715
|
folder_id?: string | undefined;
|
|
4394
4716
|
} | undefined): import("../types/api").RequestData<{
|
|
4395
4717
|
id: string;
|
|
@@ -4402,7 +4724,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
4402
4724
|
debit?: number | undefined;
|
|
4403
4725
|
analytic_plan: string;
|
|
4404
4726
|
}>;
|
|
4405
|
-
getAnalyticAccount(analytic_account_id: string, params
|
|
4727
|
+
getAnalyticAccount(analytic_account_id: string, params?: {
|
|
4406
4728
|
folder_id?: string | undefined;
|
|
4407
4729
|
} | undefined): import("../types/api").RequestData<{
|
|
4408
4730
|
id: string;
|
|
@@ -4419,7 +4741,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
4419
4741
|
code?: string | undefined;
|
|
4420
4742
|
name?: string | undefined;
|
|
4421
4743
|
currency?: string | undefined;
|
|
4422
|
-
}, params
|
|
4744
|
+
}, params?: {
|
|
4423
4745
|
folder_id?: string | undefined;
|
|
4424
4746
|
} | undefined): import("../types/api").RequestData<{
|
|
4425
4747
|
id: string;
|
|
@@ -4431,7 +4753,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
4431
4753
|
credit?: number | undefined;
|
|
4432
4754
|
debit?: number | undefined;
|
|
4433
4755
|
}>;
|
|
4434
|
-
getAnalyticAccountWithMultiplePlans(analytic_account_id: string, analytic_plan: string, params
|
|
4756
|
+
getAnalyticAccountWithMultiplePlans(analytic_account_id: string, analytic_plan: string, params?: {
|
|
4435
4757
|
folder_id?: string | undefined;
|
|
4436
4758
|
} | undefined): import("../types/api").RequestData<{
|
|
4437
4759
|
id: string;
|
|
@@ -4449,7 +4771,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
4449
4771
|
code?: string | undefined;
|
|
4450
4772
|
name?: string | undefined;
|
|
4451
4773
|
currency?: string | undefined;
|
|
4452
|
-
}, params
|
|
4774
|
+
}, params?: {
|
|
4453
4775
|
folder_id?: string | undefined;
|
|
4454
4776
|
} | undefined): import("../types/api").RequestData<{
|
|
4455
4777
|
id: string;
|
|
@@ -4462,10 +4784,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
4462
4784
|
debit?: number | undefined;
|
|
4463
4785
|
analytic_plan: string;
|
|
4464
4786
|
}>;
|
|
4465
|
-
getAnalyticAccountsWithMultiplePlans(params
|
|
4787
|
+
getAnalyticAccountsWithMultiplePlans(params?: {
|
|
4466
4788
|
folder_id?: string | undefined;
|
|
4467
|
-
page?: number | undefined;
|
|
4468
|
-
size?: number | undefined;
|
|
4469
4789
|
} | undefined): import("../types/api").RequestData<{
|
|
4470
4790
|
id: string;
|
|
4471
4791
|
active: boolean;
|
|
@@ -4546,7 +4866,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
4546
4866
|
}[] | undefined;
|
|
4547
4867
|
}[] | undefined;
|
|
4548
4868
|
}[]>;
|
|
4549
|
-
getPaymentsByInvoiceId(invoice_id: string, params
|
|
4869
|
+
getPaymentsByInvoiceId(invoice_id: string, params?: {
|
|
4550
4870
|
folder_id?: string | undefined;
|
|
4551
4871
|
page?: number | undefined;
|
|
4552
4872
|
size?: number | undefined;
|
|
@@ -4564,20 +4884,16 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
4564
4884
|
communication?: string | undefined;
|
|
4565
4885
|
matching_number?: string | undefined;
|
|
4566
4886
|
}[]>;
|
|
4567
|
-
getJournals(params
|
|
4887
|
+
getJournals(params?: {
|
|
4568
4888
|
folder_id?: string | undefined;
|
|
4569
|
-
page?: number | undefined;
|
|
4570
|
-
size?: number | undefined;
|
|
4571
4889
|
} | undefined): import("../types/api").RequestData<{
|
|
4572
4890
|
id: string;
|
|
4573
4891
|
code?: string | undefined;
|
|
4574
4892
|
name: string;
|
|
4575
4893
|
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
4576
4894
|
}[]>;
|
|
4577
|
-
getVatCodes(params
|
|
4895
|
+
getVatCodes(params?: {
|
|
4578
4896
|
folder_id?: string | undefined;
|
|
4579
|
-
page?: number | undefined;
|
|
4580
|
-
size?: number | undefined;
|
|
4581
4897
|
} | undefined): import("../types/api").RequestData<{
|
|
4582
4898
|
id: string;
|
|
4583
4899
|
code?: string | undefined;
|
|
@@ -4588,7 +4904,12 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
4588
4904
|
deductible_account?: string | undefined;
|
|
4589
4905
|
payable_account?: string | undefined;
|
|
4590
4906
|
}[]>;
|
|
4591
|
-
getMiscOperations(params
|
|
4907
|
+
getMiscOperations(params?: {
|
|
4908
|
+
date_from?: string | undefined;
|
|
4909
|
+
date_to?: string | undefined;
|
|
4910
|
+
folder_id?: string | undefined;
|
|
4911
|
+
journal_ids?: string | undefined;
|
|
4912
|
+
} | undefined): import("../types/api").RequestData<{
|
|
4592
4913
|
operation_number?: string | undefined;
|
|
4593
4914
|
currency: string;
|
|
4594
4915
|
currency_exchange_rate?: number | undefined;
|
|
@@ -4622,7 +4943,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
4622
4943
|
operation_date: string;
|
|
4623
4944
|
journal_id?: string | undefined;
|
|
4624
4945
|
status?: "draft" | "posted" | undefined;
|
|
4625
|
-
}, params
|
|
4946
|
+
}, params?: {
|
|
4626
4947
|
folder_id?: string | undefined;
|
|
4627
4948
|
} | undefined): import("../types/api").RequestData<{
|
|
4628
4949
|
operation_number?: string | undefined;
|
|
@@ -4642,7 +4963,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
4642
4963
|
status: "cancelled" | "draft" | "posted" | "matched";
|
|
4643
4964
|
id: string;
|
|
4644
4965
|
}>;
|
|
4645
|
-
getMiscOperation(operation_id: string, params
|
|
4966
|
+
getMiscOperation(operation_id: string, params?: {
|
|
4646
4967
|
folder_id?: string | undefined;
|
|
4647
4968
|
} | undefined): import("../types/api").RequestData<{
|
|
4648
4969
|
operation_number?: string | undefined;
|
|
@@ -4664,24 +4985,25 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
4664
4985
|
}>;
|
|
4665
4986
|
attachPDF(invoice_id: string, attachment: {
|
|
4666
4987
|
base64_string: string;
|
|
4667
|
-
}, params
|
|
4988
|
+
}, params?: {
|
|
4668
4989
|
overwrite_existing?: "true" | "false" | undefined;
|
|
4669
4990
|
folder_id?: string | undefined;
|
|
4670
4991
|
} | undefined): import("../types/api").RequestData<{
|
|
4671
4992
|
content: {
|
|
4672
|
-
|
|
4993
|
+
'application/json': unknown;
|
|
4673
4994
|
};
|
|
4674
4995
|
}>;
|
|
4675
4996
|
getAttachments(params: {
|
|
4997
|
+
folder_id?: string | undefined;
|
|
4676
4998
|
type: "invoice" | "entry";
|
|
4677
4999
|
document_id: string;
|
|
4678
|
-
folder_id?: string | undefined;
|
|
4679
|
-
page?: number | undefined;
|
|
4680
|
-
size?: number | undefined;
|
|
4681
5000
|
}): import("../types/api").RequestData<{
|
|
4682
5001
|
base64_string: string;
|
|
4683
5002
|
}[]>;
|
|
4684
|
-
getChartOfAccounts(params
|
|
5003
|
+
getChartOfAccounts(params?: {
|
|
5004
|
+
classes?: string | undefined;
|
|
5005
|
+
folder_id?: string | undefined;
|
|
5006
|
+
} | undefined): import("../types/api").RequestData<{
|
|
4685
5007
|
number: string;
|
|
4686
5008
|
name: string;
|
|
4687
5009
|
active?: boolean | undefined;
|
|
@@ -4691,10 +5013,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
4691
5013
|
accounts: string[];
|
|
4692
5014
|
start?: string | undefined;
|
|
4693
5015
|
end: string;
|
|
4694
|
-
}, params
|
|
5016
|
+
}, params?: {
|
|
4695
5017
|
folder_id?: string | undefined;
|
|
4696
|
-
page?: number | undefined;
|
|
4697
|
-
size?: number | undefined;
|
|
4698
5018
|
} | undefined): import("../types/api").RequestData<{
|
|
4699
5019
|
account_number: string;
|
|
4700
5020
|
account_name?: string | undefined;
|
|
@@ -4702,10 +5022,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
4702
5022
|
credit: number;
|
|
4703
5023
|
balance: number;
|
|
4704
5024
|
}[]>;
|
|
4705
|
-
getEmployees(params
|
|
5025
|
+
getEmployees(params?: {
|
|
4706
5026
|
folder_id?: string | undefined;
|
|
4707
|
-
page?: number | undefined;
|
|
4708
|
-
size?: number | undefined;
|
|
4709
5027
|
} | undefined): import("../types/api").RequestData<{
|
|
4710
5028
|
id: string;
|
|
4711
5029
|
name: string;
|
|
@@ -4721,8 +5039,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
4721
5039
|
}[]>;
|
|
4722
5040
|
getOutstandings(params: {
|
|
4723
5041
|
folder_id?: string | undefined;
|
|
4724
|
-
unposted_allowed: "true" | "false";
|
|
4725
5042
|
type: "supplier" | "client";
|
|
5043
|
+
unposted_allowed: "true" | "false";
|
|
4726
5044
|
}): import("../types/api").RequestData<{
|
|
4727
5045
|
id: string;
|
|
4728
5046
|
number?: string | undefined;
|
|
@@ -4755,7 +5073,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
4755
5073
|
description?: string | undefined;
|
|
4756
5074
|
}[];
|
|
4757
5075
|
pdf?: string | undefined;
|
|
4758
|
-
}, params
|
|
5076
|
+
}, params?: {
|
|
4759
5077
|
financial_counterpart_account?: string | undefined;
|
|
4760
5078
|
folder_id?: string | undefined;
|
|
4761
5079
|
} | undefined): import("../types/api").RequestData<{
|
|
@@ -4789,7 +5107,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
4789
5107
|
description?: string | undefined;
|
|
4790
5108
|
}[];
|
|
4791
5109
|
pdf?: string | undefined;
|
|
4792
|
-
}, params
|
|
5110
|
+
}, params?: {
|
|
4793
5111
|
financial_counterpart_account?: string | undefined;
|
|
4794
5112
|
folder_id?: string | undefined;
|
|
4795
5113
|
} | undefined): import("../types/api").RequestData<{
|
|
@@ -4888,7 +5206,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
4888
5206
|
}[];
|
|
4889
5207
|
pdf?: string | undefined;
|
|
4890
5208
|
posted?: boolean | undefined;
|
|
4891
|
-
}, params
|
|
5209
|
+
}, params?: {
|
|
4892
5210
|
folder_id?: string | undefined;
|
|
4893
5211
|
} | undefined): import("../types/api").RequestData<{
|
|
4894
5212
|
reference?: string | undefined;
|
|
@@ -4923,7 +5241,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
4923
5241
|
matchEntries(body: {
|
|
4924
5242
|
entries: string[];
|
|
4925
5243
|
partner_id: string;
|
|
4926
|
-
}, params
|
|
5244
|
+
}, params?: {
|
|
4927
5245
|
folder_id?: string | undefined;
|
|
4928
5246
|
} | undefined): import("../types/api").RequestData<{
|
|
4929
5247
|
matching_number: string;
|
|
@@ -4933,17 +5251,17 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
4933
5251
|
id: string;
|
|
4934
5252
|
name: string;
|
|
4935
5253
|
selected?: boolean | undefined;
|
|
5254
|
+
vat?: string | undefined;
|
|
5255
|
+
company_number?: string | undefined;
|
|
4936
5256
|
}[]>;
|
|
4937
5257
|
}>;
|
|
4938
5258
|
invoicing: import("../types/api").ApiFor<{
|
|
4939
|
-
getInvoices(params
|
|
4940
|
-
invoice_type?: "all" | "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | undefined;
|
|
4941
|
-
payment_status?: "all" | "paid" | "unpaid" | undefined;
|
|
5259
|
+
getInvoices(params?: {
|
|
4942
5260
|
date_from?: string | undefined;
|
|
4943
5261
|
date_to?: string | undefined;
|
|
5262
|
+
payment_status?: "all" | "paid" | "unpaid" | undefined;
|
|
5263
|
+
invoice_type?: "all" | "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | undefined;
|
|
4944
5264
|
updated_after?: string | undefined;
|
|
4945
|
-
page?: number | undefined;
|
|
4946
|
-
size?: number | undefined;
|
|
4947
5265
|
} | undefined): import("../types/api").RequestData<{
|
|
4948
5266
|
id: string;
|
|
4949
5267
|
source_ref: {
|
|
@@ -4987,7 +5305,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
4987
5305
|
outstanding_amount?: number | undefined;
|
|
4988
5306
|
last_updated_on?: string | undefined;
|
|
4989
5307
|
}[]>;
|
|
4990
|
-
getInvoiceById(invoiceId: string, params
|
|
5308
|
+
getInvoiceById(invoiceId: string, params?: {
|
|
4991
5309
|
include_pdf?: "true" | "false" | undefined;
|
|
4992
5310
|
} | undefined): import("../types/api").RequestData<{
|
|
4993
5311
|
id: string;
|
|
@@ -5249,8 +5567,6 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
5249
5567
|
}>;
|
|
5250
5568
|
getContacts(params?: {
|
|
5251
5569
|
contact_type?: "prospect" | "customer" | "supplier" | "all" | undefined;
|
|
5252
|
-
page?: number | undefined;
|
|
5253
|
-
size?: number | undefined;
|
|
5254
5570
|
} | undefined): import("../types/api").RequestData<{
|
|
5255
5571
|
id: string;
|
|
5256
5572
|
source_ref: {
|
|
@@ -5661,7 +5977,13 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
5661
5977
|
id: string;
|
|
5662
5978
|
name: string;
|
|
5663
5979
|
}[]>;
|
|
5664
|
-
getOrders(params
|
|
5980
|
+
getOrders(params?: {
|
|
5981
|
+
date_from?: string | undefined;
|
|
5982
|
+
date_to?: string | undefined;
|
|
5983
|
+
updated_after?: string | undefined;
|
|
5984
|
+
include_detailed_refunds?: "true" | "false" | undefined;
|
|
5985
|
+
include_product_categories?: "true" | "false" | undefined;
|
|
5986
|
+
} | undefined): import("../types/api").RequestData<{
|
|
5665
5987
|
id: string;
|
|
5666
5988
|
source_ref: {
|
|
5667
5989
|
id?: string | undefined;
|
|
@@ -5707,8 +6029,9 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
5707
6029
|
created_on?: string | undefined;
|
|
5708
6030
|
last_updated_on?: string | undefined;
|
|
5709
6031
|
confirmed_on?: string | undefined;
|
|
6032
|
+
delivery_date?: string | undefined;
|
|
5710
6033
|
cancelled_on?: string | undefined;
|
|
5711
|
-
status: "cancelled" | "draft" | "confirmed" | "shipped" | "refunded";
|
|
6034
|
+
status: "cancelled" | "draft" | "cancelled_unpaid" | "confirmed" | "shipped" | "refunded";
|
|
5712
6035
|
discount_amount: number;
|
|
5713
6036
|
untaxed_amount_without_fees: number;
|
|
5714
6037
|
tax_amount_without_fees: number;
|
|
@@ -5732,6 +6055,10 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
5732
6055
|
id: string;
|
|
5733
6056
|
sku?: string | undefined;
|
|
5734
6057
|
name: string;
|
|
6058
|
+
categories?: {
|
|
6059
|
+
id: string;
|
|
6060
|
+
name: string;
|
|
6061
|
+
}[] | undefined;
|
|
5735
6062
|
} | undefined;
|
|
5736
6063
|
quantity: number;
|
|
5737
6064
|
untaxed_amount: number;
|
|
@@ -5749,6 +6076,13 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
5749
6076
|
tax_amount: number;
|
|
5750
6077
|
total: number;
|
|
5751
6078
|
}[] | undefined;
|
|
6079
|
+
transactions?: {
|
|
6080
|
+
id: string;
|
|
6081
|
+
payment_method_id?: string | undefined;
|
|
6082
|
+
payment_method_name?: string | undefined;
|
|
6083
|
+
amount: number;
|
|
6084
|
+
status: "failed" | "pending" | "success";
|
|
6085
|
+
}[] | undefined;
|
|
5752
6086
|
}[] | undefined;
|
|
5753
6087
|
currency: string;
|
|
5754
6088
|
note?: string | undefined;
|
|
@@ -5763,6 +6097,10 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
5763
6097
|
id: string;
|
|
5764
6098
|
sku?: string | undefined;
|
|
5765
6099
|
name: string;
|
|
6100
|
+
categories?: {
|
|
6101
|
+
id: string;
|
|
6102
|
+
name: string;
|
|
6103
|
+
}[] | undefined;
|
|
5766
6104
|
} | undefined;
|
|
5767
6105
|
quantity: number;
|
|
5768
6106
|
unit_price: number;
|
|
@@ -5898,8 +6236,9 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
5898
6236
|
created_on?: string | undefined;
|
|
5899
6237
|
last_updated_on?: string | undefined;
|
|
5900
6238
|
confirmed_on?: string | undefined;
|
|
6239
|
+
delivery_date?: string | undefined;
|
|
5901
6240
|
cancelled_on?: string | undefined;
|
|
5902
|
-
status: "cancelled" | "draft" | "confirmed" | "shipped" | "refunded";
|
|
6241
|
+
status: "cancelled" | "draft" | "cancelled_unpaid" | "confirmed" | "shipped" | "refunded";
|
|
5903
6242
|
discount_amount: number;
|
|
5904
6243
|
untaxed_amount_without_fees: number;
|
|
5905
6244
|
tax_amount_without_fees: number;
|
|
@@ -5923,6 +6262,10 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
5923
6262
|
id: string;
|
|
5924
6263
|
sku?: string | undefined;
|
|
5925
6264
|
name: string;
|
|
6265
|
+
categories?: {
|
|
6266
|
+
id: string;
|
|
6267
|
+
name: string;
|
|
6268
|
+
}[] | undefined;
|
|
5926
6269
|
} | undefined;
|
|
5927
6270
|
quantity: number;
|
|
5928
6271
|
untaxed_amount: number;
|
|
@@ -5940,6 +6283,13 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
5940
6283
|
tax_amount: number;
|
|
5941
6284
|
total: number;
|
|
5942
6285
|
}[] | undefined;
|
|
6286
|
+
transactions?: {
|
|
6287
|
+
id: string;
|
|
6288
|
+
payment_method_id?: string | undefined;
|
|
6289
|
+
payment_method_name?: string | undefined;
|
|
6290
|
+
amount: number;
|
|
6291
|
+
status: "failed" | "pending" | "success";
|
|
6292
|
+
}[] | undefined;
|
|
5943
6293
|
}[] | undefined;
|
|
5944
6294
|
currency: string;
|
|
5945
6295
|
note?: string | undefined;
|
|
@@ -5954,6 +6304,10 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
5954
6304
|
id: string;
|
|
5955
6305
|
sku?: string | undefined;
|
|
5956
6306
|
name: string;
|
|
6307
|
+
categories?: {
|
|
6308
|
+
id: string;
|
|
6309
|
+
name: string;
|
|
6310
|
+
}[] | undefined;
|
|
5957
6311
|
} | undefined;
|
|
5958
6312
|
quantity: number;
|
|
5959
6313
|
unit_price: number;
|
|
@@ -6048,8 +6402,9 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
6048
6402
|
created_on?: string | undefined;
|
|
6049
6403
|
last_updated_on?: string | undefined;
|
|
6050
6404
|
confirmed_on?: string | undefined;
|
|
6405
|
+
delivery_date?: string | undefined;
|
|
6051
6406
|
cancelled_on?: string | undefined;
|
|
6052
|
-
status: "cancelled" | "draft" | "confirmed" | "shipped" | "refunded";
|
|
6407
|
+
status: "cancelled" | "draft" | "cancelled_unpaid" | "confirmed" | "shipped" | "refunded";
|
|
6053
6408
|
discount_amount: number;
|
|
6054
6409
|
untaxed_amount_without_fees: number;
|
|
6055
6410
|
tax_amount_without_fees: number;
|
|
@@ -6073,6 +6428,10 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
6073
6428
|
id: string;
|
|
6074
6429
|
sku?: string | undefined;
|
|
6075
6430
|
name: string;
|
|
6431
|
+
categories?: {
|
|
6432
|
+
id: string;
|
|
6433
|
+
name: string;
|
|
6434
|
+
}[] | undefined;
|
|
6076
6435
|
} | undefined;
|
|
6077
6436
|
quantity: number;
|
|
6078
6437
|
untaxed_amount: number;
|
|
@@ -6090,6 +6449,13 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
6090
6449
|
tax_amount: number;
|
|
6091
6450
|
total: number;
|
|
6092
6451
|
}[] | undefined;
|
|
6452
|
+
transactions?: {
|
|
6453
|
+
id: string;
|
|
6454
|
+
payment_method_id?: string | undefined;
|
|
6455
|
+
payment_method_name?: string | undefined;
|
|
6456
|
+
amount: number;
|
|
6457
|
+
status: "failed" | "pending" | "success";
|
|
6458
|
+
}[] | undefined;
|
|
6093
6459
|
}[] | undefined;
|
|
6094
6460
|
currency: string;
|
|
6095
6461
|
note?: string | undefined;
|
|
@@ -6104,6 +6470,10 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
6104
6470
|
id: string;
|
|
6105
6471
|
sku?: string | undefined;
|
|
6106
6472
|
name: string;
|
|
6473
|
+
categories?: {
|
|
6474
|
+
id: string;
|
|
6475
|
+
name: string;
|
|
6476
|
+
}[] | undefined;
|
|
6107
6477
|
} | undefined;
|
|
6108
6478
|
quantity: number;
|
|
6109
6479
|
unit_price: number;
|
|
@@ -6152,7 +6522,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
6152
6522
|
name?: string | undefined;
|
|
6153
6523
|
}[] | undefined;
|
|
6154
6524
|
}>;
|
|
6155
|
-
getPaymentMethods(params
|
|
6525
|
+
getPaymentMethods(params?: {} | undefined): import("../types/api").RequestData<{
|
|
6156
6526
|
id: string;
|
|
6157
6527
|
source_ref: {
|
|
6158
6528
|
id?: string | undefined;
|
|
@@ -6161,7 +6531,9 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
6161
6531
|
name: string;
|
|
6162
6532
|
active: boolean;
|
|
6163
6533
|
}[]>;
|
|
6164
|
-
getProductCategories(params
|
|
6534
|
+
getProductCategories(params?: {
|
|
6535
|
+
only_parents?: "true" | "false" | undefined;
|
|
6536
|
+
} | undefined): import("../types/api").RequestData<{
|
|
6165
6537
|
id: string;
|
|
6166
6538
|
source_ref: {
|
|
6167
6539
|
id?: string | undefined;
|
|
@@ -6170,7 +6542,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
6170
6542
|
name: string;
|
|
6171
6543
|
parent_id?: string | undefined;
|
|
6172
6544
|
}[]>;
|
|
6173
|
-
getTaxes(params
|
|
6545
|
+
getTaxes(params?: {} | undefined): import("../types/api").RequestData<{
|
|
6174
6546
|
id: string;
|
|
6175
6547
|
source_ref: {
|
|
6176
6548
|
id?: string | undefined;
|
|
@@ -6180,7 +6552,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
6180
6552
|
rate: number;
|
|
6181
6553
|
country?: string | undefined;
|
|
6182
6554
|
}[]>;
|
|
6183
|
-
getCountries(params
|
|
6555
|
+
getCountries(params?: {} | undefined): import("../types/api").RequestData<{
|
|
6184
6556
|
code: string;
|
|
6185
6557
|
name: string;
|
|
6186
6558
|
}[]>;
|
|
@@ -6275,6 +6647,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
6275
6647
|
}[]>;
|
|
6276
6648
|
deleteDataStoreData: (dataStoreId: string, dataStoreDataId: string) => Promise<import("../types/sync").SimpleResponseModel>;
|
|
6277
6649
|
logData: (logs: import("../types/consumers").ConsumerLog[]) => Promise<import("../types/sync").SimpleResponseModel>;
|
|
6650
|
+
setConnectionId: (connectionId: string) => Promise<void>;
|
|
6651
|
+
setIntegrationId: (integrationId: string) => Promise<void>;
|
|
6278
6652
|
}>;
|
|
6279
6653
|
getConsumerById: (consumerId: string) => Promise<{
|
|
6280
6654
|
consumerId: string;
|
|
@@ -6361,6 +6735,26 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
6361
6735
|
total_discount?: number | undefined;
|
|
6362
6736
|
total_refund?: number | undefined;
|
|
6363
6737
|
total_tip?: number | undefined;
|
|
6738
|
+
currency?: string | undefined;
|
|
6739
|
+
country?: string | undefined;
|
|
6740
|
+
loyalty?: number | undefined;
|
|
6741
|
+
customer_id?: string | undefined;
|
|
6742
|
+
location_id?: string | undefined;
|
|
6743
|
+
taxes?: {
|
|
6744
|
+
tax_rate: number;
|
|
6745
|
+
tax_amount: number;
|
|
6746
|
+
total: number;
|
|
6747
|
+
}[] | undefined;
|
|
6748
|
+
payments: {
|
|
6749
|
+
id?: string | undefined;
|
|
6750
|
+
payment_method_id?: string | undefined;
|
|
6751
|
+
payment_method_name?: string | undefined;
|
|
6752
|
+
total: number;
|
|
6753
|
+
tip?: number | undefined;
|
|
6754
|
+
status?: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised" | undefined;
|
|
6755
|
+
currency?: string | undefined;
|
|
6756
|
+
date?: string | undefined;
|
|
6757
|
+
}[];
|
|
6364
6758
|
items: {
|
|
6365
6759
|
id: string;
|
|
6366
6760
|
quantity: number;
|
|
@@ -6376,28 +6770,12 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
6376
6770
|
product_id?: string | undefined;
|
|
6377
6771
|
accounting_category_id?: string | undefined;
|
|
6378
6772
|
}[];
|
|
6379
|
-
payments: {
|
|
6380
|
-
id?: string | undefined;
|
|
6381
|
-
payment_method_id?: string | undefined;
|
|
6382
|
-
payment_method_name?: string | undefined;
|
|
6383
|
-
total: number;
|
|
6384
|
-
tip?: number | undefined;
|
|
6385
|
-
status?: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised" | undefined;
|
|
6386
|
-
currency?: string | undefined;
|
|
6387
|
-
date?: string | undefined;
|
|
6388
|
-
}[];
|
|
6389
|
-
currency?: string | undefined;
|
|
6390
|
-
country?: string | undefined;
|
|
6391
|
-
loyalty?: number | undefined;
|
|
6392
|
-
customer_id?: string | undefined;
|
|
6393
|
-
location_id?: string | undefined;
|
|
6394
|
-
taxes?: {
|
|
6395
|
-
tax_rate: number;
|
|
6396
|
-
tax_amount: number;
|
|
6397
|
-
total: number;
|
|
6398
|
-
}[] | undefined;
|
|
6399
6773
|
}[]>;
|
|
6400
|
-
getCustomers(params
|
|
6774
|
+
getCustomers(params?: {
|
|
6775
|
+
search?: string | undefined;
|
|
6776
|
+
email?: string | undefined;
|
|
6777
|
+
phone?: string | undefined;
|
|
6778
|
+
} | undefined): import("../types/api").RequestData<{
|
|
6401
6779
|
id: string;
|
|
6402
6780
|
first_name?: string | undefined;
|
|
6403
6781
|
last_name?: string | undefined;
|
|
@@ -6430,6 +6808,26 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
6430
6808
|
total_discount?: number | undefined;
|
|
6431
6809
|
total_refund?: number | undefined;
|
|
6432
6810
|
total_tip?: number | undefined;
|
|
6811
|
+
currency?: string | undefined;
|
|
6812
|
+
country?: string | undefined;
|
|
6813
|
+
loyalty?: number | undefined;
|
|
6814
|
+
customer_id?: string | undefined;
|
|
6815
|
+
location_id?: string | undefined;
|
|
6816
|
+
taxes?: {
|
|
6817
|
+
tax_rate: number;
|
|
6818
|
+
tax_amount: number;
|
|
6819
|
+
total: number;
|
|
6820
|
+
}[] | undefined;
|
|
6821
|
+
payments: {
|
|
6822
|
+
id?: string | undefined;
|
|
6823
|
+
payment_method_id?: string | undefined;
|
|
6824
|
+
payment_method_name?: string | undefined;
|
|
6825
|
+
total: number;
|
|
6826
|
+
tip?: number | undefined;
|
|
6827
|
+
status?: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised" | undefined;
|
|
6828
|
+
currency?: string | undefined;
|
|
6829
|
+
date?: string | undefined;
|
|
6830
|
+
}[];
|
|
6433
6831
|
items: {
|
|
6434
6832
|
id: string;
|
|
6435
6833
|
quantity: number;
|
|
@@ -6445,26 +6843,6 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
6445
6843
|
product_id?: string | undefined;
|
|
6446
6844
|
accounting_category_id?: string | undefined;
|
|
6447
6845
|
}[];
|
|
6448
|
-
payments: {
|
|
6449
|
-
id?: string | undefined;
|
|
6450
|
-
payment_method_id?: string | undefined;
|
|
6451
|
-
payment_method_name?: string | undefined;
|
|
6452
|
-
total: number;
|
|
6453
|
-
tip?: number | undefined;
|
|
6454
|
-
status?: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised" | undefined;
|
|
6455
|
-
currency?: string | undefined;
|
|
6456
|
-
date?: string | undefined;
|
|
6457
|
-
}[];
|
|
6458
|
-
currency?: string | undefined;
|
|
6459
|
-
country?: string | undefined;
|
|
6460
|
-
loyalty?: number | undefined;
|
|
6461
|
-
customer_id?: string | undefined;
|
|
6462
|
-
location_id?: string | undefined;
|
|
6463
|
-
taxes?: {
|
|
6464
|
-
tax_rate: number;
|
|
6465
|
-
tax_amount: number;
|
|
6466
|
-
total: number;
|
|
6467
|
-
}[] | undefined;
|
|
6468
6846
|
}>;
|
|
6469
6847
|
getCustomer(customerId: string): import("../types/api").RequestData<{
|
|
6470
6848
|
id: string;
|
|
@@ -6522,12 +6900,17 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
6522
6900
|
loyalty?: number | undefined;
|
|
6523
6901
|
birthdate?: string | undefined;
|
|
6524
6902
|
}>;
|
|
6525
|
-
getPaymentMethods(params
|
|
6903
|
+
getPaymentMethods(params?: {
|
|
6904
|
+
location_id?: string | undefined;
|
|
6905
|
+
} | undefined): import("../types/api").RequestData<{
|
|
6526
6906
|
id: string;
|
|
6527
6907
|
name: string;
|
|
6528
6908
|
extra?: string | undefined;
|
|
6529
6909
|
}[]>;
|
|
6530
|
-
getProductCategories(params
|
|
6910
|
+
getProductCategories(params?: {
|
|
6911
|
+
location_id?: string | undefined;
|
|
6912
|
+
only_parents?: "true" | "false" | undefined;
|
|
6913
|
+
} | undefined): import("../types/api").RequestData<{
|
|
6531
6914
|
id: string;
|
|
6532
6915
|
source_ref: {
|
|
6533
6916
|
id?: string | undefined;
|
|
@@ -6536,7 +6919,9 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
6536
6919
|
name: string;
|
|
6537
6920
|
parent_id?: string | undefined;
|
|
6538
6921
|
}[]>;
|
|
6539
|
-
getProducts(params
|
|
6922
|
+
getProducts(params?: {
|
|
6923
|
+
location_id?: string | undefined;
|
|
6924
|
+
} | undefined): import("../types/api").RequestData<{
|
|
6540
6925
|
id: string;
|
|
6541
6926
|
categories?: string[] | undefined;
|
|
6542
6927
|
name: string;
|
|
@@ -6560,7 +6945,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
6560
6945
|
total: number;
|
|
6561
6946
|
}[] | undefined;
|
|
6562
6947
|
}>;
|
|
6563
|
-
getClosure(date: string, params
|
|
6948
|
+
getClosure(date: string, params?: {
|
|
6564
6949
|
location_id?: string | undefined;
|
|
6565
6950
|
} | undefined): import("../types/api").RequestData<{
|
|
6566
6951
|
date: string;
|
|
@@ -6569,20 +6954,102 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
6569
6954
|
getPayments(params: {
|
|
6570
6955
|
date_from: string;
|
|
6571
6956
|
date_to: string;
|
|
6572
|
-
}): import("../types/api").RequestData<{
|
|
6573
|
-
id?: string | undefined;
|
|
6574
|
-
payment_method_id?: string | undefined;
|
|
6575
|
-
payment_method_name?: string | undefined;
|
|
6576
|
-
total: number;
|
|
6577
|
-
tip?: number | undefined;
|
|
6578
|
-
status?: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised" | undefined;
|
|
6579
|
-
currency?: string | undefined;
|
|
6580
|
-
date?: string | undefined;
|
|
6581
|
-
}[]>;
|
|
6582
|
-
updateOrder(orderId: string, order: {
|
|
6583
|
-
customer_id?: string | undefined;
|
|
6957
|
+
}): import("../types/api").RequestData<{
|
|
6958
|
+
id?: string | undefined;
|
|
6959
|
+
payment_method_id?: string | undefined;
|
|
6960
|
+
payment_method_name?: string | undefined;
|
|
6961
|
+
total: number;
|
|
6962
|
+
tip?: number | undefined;
|
|
6963
|
+
status?: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised" | undefined;
|
|
6964
|
+
currency?: string | undefined;
|
|
6965
|
+
date?: string | undefined;
|
|
6966
|
+
}[]>;
|
|
6967
|
+
updateOrder(orderId: string, order: {
|
|
6968
|
+
customer_id?: string | undefined;
|
|
6969
|
+
}): import("../types/api").RequestData<{
|
|
6970
|
+
id: string;
|
|
6971
|
+
order_number?: string | undefined;
|
|
6972
|
+
creation_date: string;
|
|
6973
|
+
closing_date?: string | undefined;
|
|
6974
|
+
service_date?: string | undefined;
|
|
6975
|
+
device_id?: string | undefined;
|
|
6976
|
+
total: number;
|
|
6977
|
+
tax_amount: number;
|
|
6978
|
+
total_discount?: number | undefined;
|
|
6979
|
+
total_refund?: number | undefined;
|
|
6980
|
+
total_tip?: number | undefined;
|
|
6981
|
+
currency?: string | undefined;
|
|
6982
|
+
country?: string | undefined;
|
|
6983
|
+
loyalty?: number | undefined;
|
|
6984
|
+
customer_id?: string | undefined;
|
|
6985
|
+
location_id?: string | undefined;
|
|
6986
|
+
taxes?: {
|
|
6987
|
+
tax_rate: number;
|
|
6988
|
+
tax_amount: number;
|
|
6989
|
+
total: number;
|
|
6990
|
+
}[] | undefined;
|
|
6991
|
+
payments: {
|
|
6992
|
+
id?: string | undefined;
|
|
6993
|
+
payment_method_id?: string | undefined;
|
|
6994
|
+
payment_method_name?: string | undefined;
|
|
6995
|
+
total: number;
|
|
6996
|
+
tip?: number | undefined;
|
|
6997
|
+
status?: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised" | undefined;
|
|
6998
|
+
currency?: string | undefined;
|
|
6999
|
+
date?: string | undefined;
|
|
7000
|
+
}[];
|
|
7001
|
+
items: {
|
|
7002
|
+
id: string;
|
|
7003
|
+
quantity: number;
|
|
7004
|
+
unit_price: number;
|
|
7005
|
+
total: number;
|
|
7006
|
+
tax_amount: number;
|
|
7007
|
+
tax_rate?: number | undefined;
|
|
7008
|
+
description?: string | undefined;
|
|
7009
|
+
discounts?: {
|
|
7010
|
+
name?: string | undefined;
|
|
7011
|
+
total: number;
|
|
7012
|
+
}[] | undefined;
|
|
7013
|
+
product_id?: string | undefined;
|
|
7014
|
+
accounting_category_id?: string | undefined;
|
|
7015
|
+
}[];
|
|
7016
|
+
}>;
|
|
7017
|
+
getAccountingCategories(params?: {} | undefined): import("../types/api").RequestData<{
|
|
7018
|
+
id: string;
|
|
7019
|
+
name: string;
|
|
7020
|
+
id_parent?: string | undefined;
|
|
7021
|
+
code?: string | undefined;
|
|
7022
|
+
ledger_account_code?: string | undefined;
|
|
7023
|
+
posting_account_code?: string | undefined;
|
|
7024
|
+
}[]>;
|
|
7025
|
+
}>;
|
|
7026
|
+
pms: import("../types/api").ApiFor<{
|
|
7027
|
+
getLocations(): import("../types/api").RequestData<{
|
|
7028
|
+
id: string;
|
|
7029
|
+
name: string;
|
|
7030
|
+
timezone?: string | undefined;
|
|
7031
|
+
address?: {
|
|
7032
|
+
address_type?: string | undefined;
|
|
7033
|
+
name?: string | undefined;
|
|
7034
|
+
street?: string | undefined;
|
|
7035
|
+
number?: string | undefined;
|
|
7036
|
+
box?: string | undefined;
|
|
7037
|
+
city?: string | undefined;
|
|
7038
|
+
postal_code?: string | undefined;
|
|
7039
|
+
country?: string | undefined;
|
|
7040
|
+
} | undefined;
|
|
7041
|
+
}[]>;
|
|
7042
|
+
getOrders(params: {
|
|
7043
|
+
date_from: string;
|
|
7044
|
+
date_to: string;
|
|
7045
|
+
location_id?: string | undefined;
|
|
7046
|
+
state?: "closed" | "consumed" | undefined;
|
|
6584
7047
|
}): import("../types/api").RequestData<{
|
|
6585
7048
|
id: string;
|
|
7049
|
+
source_ref: {
|
|
7050
|
+
id?: string | undefined;
|
|
7051
|
+
model?: string | undefined;
|
|
7052
|
+
};
|
|
6586
7053
|
order_number?: string | undefined;
|
|
6587
7054
|
creation_date: string;
|
|
6588
7055
|
closing_date?: string | undefined;
|
|
@@ -6593,8 +7060,22 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
6593
7060
|
total_discount?: number | undefined;
|
|
6594
7061
|
total_refund?: number | undefined;
|
|
6595
7062
|
total_tip?: number | undefined;
|
|
7063
|
+
currency?: string | undefined;
|
|
7064
|
+
country?: string | undefined;
|
|
7065
|
+
loyalty?: number | undefined;
|
|
7066
|
+
customer_id?: string | undefined;
|
|
7067
|
+
location_id?: string | undefined;
|
|
7068
|
+
taxes?: {
|
|
7069
|
+
tax_rate: number;
|
|
7070
|
+
tax_amount: number;
|
|
7071
|
+
total: number;
|
|
7072
|
+
}[] | undefined;
|
|
6596
7073
|
items: {
|
|
6597
7074
|
id: string;
|
|
7075
|
+
source_ref: {
|
|
7076
|
+
id?: string | undefined;
|
|
7077
|
+
model?: string | undefined;
|
|
7078
|
+
};
|
|
6598
7079
|
quantity: number;
|
|
6599
7080
|
unit_price: number;
|
|
6600
7081
|
total: number;
|
|
@@ -6608,29 +7089,49 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
6608
7089
|
product_id?: string | undefined;
|
|
6609
7090
|
accounting_category_id?: string | undefined;
|
|
6610
7091
|
}[];
|
|
6611
|
-
|
|
7092
|
+
service_id?: string | undefined;
|
|
7093
|
+
}[]>;
|
|
7094
|
+
getPaymentMethods(params?: {
|
|
7095
|
+
location_id?: string | undefined;
|
|
7096
|
+
} | undefined): import("../types/api").RequestData<{
|
|
7097
|
+
id: string;
|
|
7098
|
+
source_ref: {
|
|
6612
7099
|
id?: string | undefined;
|
|
6613
|
-
|
|
6614
|
-
|
|
6615
|
-
|
|
6616
|
-
|
|
6617
|
-
|
|
6618
|
-
|
|
6619
|
-
|
|
6620
|
-
}[];
|
|
6621
|
-
currency?: string | undefined;
|
|
6622
|
-
country?: string | undefined;
|
|
6623
|
-
loyalty?: number | undefined;
|
|
6624
|
-
customer_id?: string | undefined;
|
|
7100
|
+
model?: string | undefined;
|
|
7101
|
+
};
|
|
7102
|
+
name: string;
|
|
7103
|
+
extra?: string | undefined;
|
|
7104
|
+
ledger_account_code?: string | undefined;
|
|
7105
|
+
}[]>;
|
|
7106
|
+
getClosure(date: string, params?: {
|
|
6625
7107
|
location_id?: string | undefined;
|
|
6626
|
-
|
|
6627
|
-
|
|
6628
|
-
|
|
6629
|
-
total: number;
|
|
6630
|
-
}[] | undefined;
|
|
7108
|
+
} | undefined): import("../types/api").RequestData<{
|
|
7109
|
+
date: string;
|
|
7110
|
+
status: "open" | "closed";
|
|
6631
7111
|
}>;
|
|
6632
|
-
|
|
7112
|
+
getPayments(params: {
|
|
7113
|
+
date_from: string;
|
|
7114
|
+
date_to: string;
|
|
7115
|
+
}): import("../types/api").RequestData<{
|
|
7116
|
+
id?: string | undefined;
|
|
7117
|
+
source_ref: {
|
|
7118
|
+
id?: string | undefined;
|
|
7119
|
+
model?: string | undefined;
|
|
7120
|
+
};
|
|
7121
|
+
payment_method_id?: string | undefined;
|
|
7122
|
+
payment_method_name?: string | undefined;
|
|
7123
|
+
total: number;
|
|
7124
|
+
tip?: number | undefined;
|
|
7125
|
+
status?: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised" | undefined;
|
|
7126
|
+
currency?: string | undefined;
|
|
7127
|
+
date?: string | undefined;
|
|
7128
|
+
}[]>;
|
|
7129
|
+
getAccountingCategories(params?: {} | undefined): import("../types/api").RequestData<{
|
|
6633
7130
|
id: string;
|
|
7131
|
+
source_ref: {
|
|
7132
|
+
id?: string | undefined;
|
|
7133
|
+
model?: string | undefined;
|
|
7134
|
+
};
|
|
6634
7135
|
name: string;
|
|
6635
7136
|
id_parent?: string | undefined;
|
|
6636
7137
|
code?: string | undefined;
|
|
@@ -6639,19 +7140,15 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
6639
7140
|
}[]>;
|
|
6640
7141
|
}>;
|
|
6641
7142
|
accounting: import("../types/api").ApiFor<{
|
|
6642
|
-
getAnalyticPlans(params
|
|
7143
|
+
getAnalyticPlans(params?: {
|
|
6643
7144
|
folder_id?: string | undefined;
|
|
6644
|
-
page?: number | undefined;
|
|
6645
|
-
size?: number | undefined;
|
|
6646
7145
|
} | undefined): import("../types/api").RequestData<{
|
|
6647
7146
|
id: string;
|
|
6648
7147
|
name: string;
|
|
6649
7148
|
active?: boolean | undefined;
|
|
6650
7149
|
}[]>;
|
|
6651
|
-
getClients(params
|
|
7150
|
+
getClients(params?: {
|
|
6652
7151
|
folder_id?: string | undefined;
|
|
6653
|
-
page?: number | undefined;
|
|
6654
|
-
size?: number | undefined;
|
|
6655
7152
|
} | undefined): import("../types/api").RequestData<{
|
|
6656
7153
|
external_reference?: string | undefined;
|
|
6657
7154
|
first_name?: string | undefined;
|
|
@@ -6721,7 +7218,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
6721
7218
|
country: string;
|
|
6722
7219
|
}[];
|
|
6723
7220
|
account_number?: string | undefined;
|
|
6724
|
-
}, params
|
|
7221
|
+
}, params?: {
|
|
6725
7222
|
force_merge?: string | undefined;
|
|
6726
7223
|
folder_id?: string | undefined;
|
|
6727
7224
|
} | undefined): import("../types/api").RequestData<{
|
|
@@ -6760,7 +7257,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
6760
7257
|
company_number?: string | undefined;
|
|
6761
7258
|
id?: string | undefined;
|
|
6762
7259
|
}>;
|
|
6763
|
-
getClient(clientId: string, params
|
|
7260
|
+
getClient(clientId: string, params?: {
|
|
6764
7261
|
folder_id?: string | undefined;
|
|
6765
7262
|
} | undefined): import("../types/api").RequestData<{
|
|
6766
7263
|
external_reference?: string | undefined;
|
|
@@ -6830,7 +7327,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
6830
7327
|
postal_code?: string | undefined;
|
|
6831
7328
|
country?: string | undefined;
|
|
6832
7329
|
}[] | undefined;
|
|
6833
|
-
}, params
|
|
7330
|
+
}, params?: {
|
|
6834
7331
|
folder_id?: string | undefined;
|
|
6835
7332
|
} | undefined): import("../types/api").RequestData<{
|
|
6836
7333
|
external_reference?: string | undefined;
|
|
@@ -6868,10 +7365,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
6868
7365
|
company_number?: string | undefined;
|
|
6869
7366
|
id?: string | undefined;
|
|
6870
7367
|
}>;
|
|
6871
|
-
getSuppliers(params
|
|
7368
|
+
getSuppliers(params?: {
|
|
6872
7369
|
folder_id?: string | undefined;
|
|
6873
|
-
page?: number | undefined;
|
|
6874
|
-
size?: number | undefined;
|
|
6875
7370
|
} | undefined): import("../types/api").RequestData<{
|
|
6876
7371
|
external_reference?: string | undefined;
|
|
6877
7372
|
first_name?: string | undefined;
|
|
@@ -6941,7 +7436,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
6941
7436
|
country: string;
|
|
6942
7437
|
}[];
|
|
6943
7438
|
account_number?: string | undefined;
|
|
6944
|
-
}, params
|
|
7439
|
+
}, params?: {
|
|
6945
7440
|
force_merge?: string | undefined;
|
|
6946
7441
|
folder_id?: string | undefined;
|
|
6947
7442
|
} | undefined): import("../types/api").RequestData<{
|
|
@@ -6980,7 +7475,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
6980
7475
|
company_number?: string | undefined;
|
|
6981
7476
|
id?: string | undefined;
|
|
6982
7477
|
}>;
|
|
6983
|
-
getSupplier(supplierId: string, params
|
|
7478
|
+
getSupplier(supplierId: string, params?: {
|
|
6984
7479
|
folder_id?: string | undefined;
|
|
6985
7480
|
} | undefined): import("../types/api").RequestData<{
|
|
6986
7481
|
external_reference?: string | undefined;
|
|
@@ -7050,7 +7545,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
7050
7545
|
postal_code?: string | undefined;
|
|
7051
7546
|
country?: string | undefined;
|
|
7052
7547
|
}[] | undefined;
|
|
7053
|
-
}, params
|
|
7548
|
+
}, params?: {
|
|
7054
7549
|
folder_id?: string | undefined;
|
|
7055
7550
|
} | undefined): import("../types/api").RequestData<{
|
|
7056
7551
|
external_reference?: string | undefined;
|
|
@@ -7121,6 +7616,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
7121
7616
|
iban: string;
|
|
7122
7617
|
};
|
|
7123
7618
|
} | undefined;
|
|
7619
|
+
shipping_country?: string | undefined;
|
|
7124
7620
|
lines: {
|
|
7125
7621
|
line_number?: number | undefined;
|
|
7126
7622
|
description: string;
|
|
@@ -7135,7 +7631,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
7135
7631
|
tax_code: string;
|
|
7136
7632
|
analytic_account?: string | undefined;
|
|
7137
7633
|
}[];
|
|
7138
|
-
}, params
|
|
7634
|
+
}, params?: {
|
|
7139
7635
|
force_financial_period?: string | undefined;
|
|
7140
7636
|
regroup_lines?: "true" | "false" | undefined;
|
|
7141
7637
|
folder_id?: string | undefined;
|
|
@@ -7217,6 +7713,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
7217
7713
|
iban: string;
|
|
7218
7714
|
};
|
|
7219
7715
|
} | undefined;
|
|
7716
|
+
shipping_country?: string | undefined;
|
|
7220
7717
|
lines: {
|
|
7221
7718
|
line_number?: number | undefined;
|
|
7222
7719
|
description: string;
|
|
@@ -7237,7 +7734,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
7237
7734
|
}[];
|
|
7238
7735
|
}[] | undefined;
|
|
7239
7736
|
}[];
|
|
7240
|
-
}, params
|
|
7737
|
+
}, params?: {
|
|
7241
7738
|
force_financial_period?: string | undefined;
|
|
7242
7739
|
regroup_lines?: "true" | "false" | undefined;
|
|
7243
7740
|
folder_id?: string | undefined;
|
|
@@ -7292,7 +7789,14 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
7292
7789
|
}[] | undefined;
|
|
7293
7790
|
}[];
|
|
7294
7791
|
}>;
|
|
7295
|
-
getInvoicesByType(invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund", params
|
|
7792
|
+
getInvoicesByType(invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund", params?: {
|
|
7793
|
+
date_from?: string | undefined;
|
|
7794
|
+
date_to?: string | undefined;
|
|
7795
|
+
folder_id?: string | undefined;
|
|
7796
|
+
journal_ids?: string | undefined;
|
|
7797
|
+
include_payments?: "true" | "false" | undefined;
|
|
7798
|
+
payment_status?: "all" | "paid" | "unpaid" | undefined;
|
|
7799
|
+
} | undefined): import("../types/api").RequestData<{
|
|
7296
7800
|
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
7297
7801
|
invoice_number?: string | undefined;
|
|
7298
7802
|
currency: string;
|
|
@@ -7337,7 +7841,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
7337
7841
|
analytic_account?: string | undefined;
|
|
7338
7842
|
}[];
|
|
7339
7843
|
}[]>;
|
|
7340
|
-
getInvoice(invoiceId: string, params
|
|
7844
|
+
getInvoice(invoiceId: string, params?: {
|
|
7341
7845
|
include_payments?: "true" | "false" | undefined;
|
|
7342
7846
|
folder_id?: string | undefined;
|
|
7343
7847
|
} | undefined): import("../types/api").RequestData<{
|
|
@@ -7385,7 +7889,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
7385
7889
|
analytic_account?: string | undefined;
|
|
7386
7890
|
}[];
|
|
7387
7891
|
}>;
|
|
7388
|
-
getInvoiceWithMultiplePlans(invoiceId: string, params
|
|
7892
|
+
getInvoiceWithMultiplePlans(invoiceId: string, params?: {
|
|
7389
7893
|
include_payments?: "true" | "false" | undefined;
|
|
7390
7894
|
folder_id?: string | undefined;
|
|
7391
7895
|
} | undefined): import("../types/api").RequestData<{
|
|
@@ -7439,7 +7943,14 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
7439
7943
|
}[] | undefined;
|
|
7440
7944
|
}[];
|
|
7441
7945
|
}>;
|
|
7442
|
-
getInvoicesByTypeWithMultiplePlans(invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund", params
|
|
7946
|
+
getInvoicesByTypeWithMultiplePlans(invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund", params?: {
|
|
7947
|
+
date_from?: string | undefined;
|
|
7948
|
+
date_to?: string | undefined;
|
|
7949
|
+
folder_id?: string | undefined;
|
|
7950
|
+
journal_ids?: string | undefined;
|
|
7951
|
+
include_payments?: "true" | "false" | undefined;
|
|
7952
|
+
payment_status?: "all" | "paid" | "unpaid" | undefined;
|
|
7953
|
+
} | undefined): import("../types/api").RequestData<{
|
|
7443
7954
|
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
7444
7955
|
invoice_number?: string | undefined;
|
|
7445
7956
|
currency: string;
|
|
@@ -7495,7 +8006,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
7495
8006
|
code: string;
|
|
7496
8007
|
name: string;
|
|
7497
8008
|
currency: string;
|
|
7498
|
-
}, params
|
|
8009
|
+
}, params?: {
|
|
7499
8010
|
folder_id?: string | undefined;
|
|
7500
8011
|
} | undefined): import("../types/api").RequestData<{
|
|
7501
8012
|
id: string;
|
|
@@ -7507,10 +8018,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
7507
8018
|
credit?: number | undefined;
|
|
7508
8019
|
debit?: number | undefined;
|
|
7509
8020
|
}>;
|
|
7510
|
-
getAnalyticAccounts(params
|
|
8021
|
+
getAnalyticAccounts(params?: {
|
|
7511
8022
|
folder_id?: string | undefined;
|
|
7512
|
-
page?: number | undefined;
|
|
7513
|
-
size?: number | undefined;
|
|
7514
8023
|
} | undefined): import("../types/api").RequestData<{
|
|
7515
8024
|
id: string;
|
|
7516
8025
|
active: boolean;
|
|
@@ -7526,7 +8035,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
7526
8035
|
code: string;
|
|
7527
8036
|
name: string;
|
|
7528
8037
|
currency: string;
|
|
7529
|
-
}, params
|
|
8038
|
+
}, params?: {
|
|
7530
8039
|
folder_id?: string | undefined;
|
|
7531
8040
|
} | undefined): import("../types/api").RequestData<{
|
|
7532
8041
|
id: string;
|
|
@@ -7539,7 +8048,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
7539
8048
|
debit?: number | undefined;
|
|
7540
8049
|
analytic_plan: string;
|
|
7541
8050
|
}>;
|
|
7542
|
-
getAnalyticAccount(analytic_account_id: string, params
|
|
8051
|
+
getAnalyticAccount(analytic_account_id: string, params?: {
|
|
7543
8052
|
folder_id?: string | undefined;
|
|
7544
8053
|
} | undefined): import("../types/api").RequestData<{
|
|
7545
8054
|
id: string;
|
|
@@ -7556,7 +8065,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
7556
8065
|
code?: string | undefined;
|
|
7557
8066
|
name?: string | undefined;
|
|
7558
8067
|
currency?: string | undefined;
|
|
7559
|
-
}, params
|
|
8068
|
+
}, params?: {
|
|
7560
8069
|
folder_id?: string | undefined;
|
|
7561
8070
|
} | undefined): import("../types/api").RequestData<{
|
|
7562
8071
|
id: string;
|
|
@@ -7568,7 +8077,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
7568
8077
|
credit?: number | undefined;
|
|
7569
8078
|
debit?: number | undefined;
|
|
7570
8079
|
}>;
|
|
7571
|
-
getAnalyticAccountWithMultiplePlans(analytic_account_id: string, analytic_plan: string, params
|
|
8080
|
+
getAnalyticAccountWithMultiplePlans(analytic_account_id: string, analytic_plan: string, params?: {
|
|
7572
8081
|
folder_id?: string | undefined;
|
|
7573
8082
|
} | undefined): import("../types/api").RequestData<{
|
|
7574
8083
|
id: string;
|
|
@@ -7586,7 +8095,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
7586
8095
|
code?: string | undefined;
|
|
7587
8096
|
name?: string | undefined;
|
|
7588
8097
|
currency?: string | undefined;
|
|
7589
|
-
}, params
|
|
8098
|
+
}, params?: {
|
|
7590
8099
|
folder_id?: string | undefined;
|
|
7591
8100
|
} | undefined): import("../types/api").RequestData<{
|
|
7592
8101
|
id: string;
|
|
@@ -7599,10 +8108,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
7599
8108
|
debit?: number | undefined;
|
|
7600
8109
|
analytic_plan: string;
|
|
7601
8110
|
}>;
|
|
7602
|
-
getAnalyticAccountsWithMultiplePlans(params
|
|
8111
|
+
getAnalyticAccountsWithMultiplePlans(params?: {
|
|
7603
8112
|
folder_id?: string | undefined;
|
|
7604
|
-
page?: number | undefined;
|
|
7605
|
-
size?: number | undefined;
|
|
7606
8113
|
} | undefined): import("../types/api").RequestData<{
|
|
7607
8114
|
id: string;
|
|
7608
8115
|
active: boolean;
|
|
@@ -7683,7 +8190,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
7683
8190
|
}[] | undefined;
|
|
7684
8191
|
}[] | undefined;
|
|
7685
8192
|
}[]>;
|
|
7686
|
-
getPaymentsByInvoiceId(invoice_id: string, params
|
|
8193
|
+
getPaymentsByInvoiceId(invoice_id: string, params?: {
|
|
7687
8194
|
folder_id?: string | undefined;
|
|
7688
8195
|
page?: number | undefined;
|
|
7689
8196
|
size?: number | undefined;
|
|
@@ -7701,20 +8208,16 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
7701
8208
|
communication?: string | undefined;
|
|
7702
8209
|
matching_number?: string | undefined;
|
|
7703
8210
|
}[]>;
|
|
7704
|
-
getJournals(params
|
|
8211
|
+
getJournals(params?: {
|
|
7705
8212
|
folder_id?: string | undefined;
|
|
7706
|
-
page?: number | undefined;
|
|
7707
|
-
size?: number | undefined;
|
|
7708
8213
|
} | undefined): import("../types/api").RequestData<{
|
|
7709
8214
|
id: string;
|
|
7710
8215
|
code?: string | undefined;
|
|
7711
8216
|
name: string;
|
|
7712
8217
|
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
7713
8218
|
}[]>;
|
|
7714
|
-
getVatCodes(params
|
|
8219
|
+
getVatCodes(params?: {
|
|
7715
8220
|
folder_id?: string | undefined;
|
|
7716
|
-
page?: number | undefined;
|
|
7717
|
-
size?: number | undefined;
|
|
7718
8221
|
} | undefined): import("../types/api").RequestData<{
|
|
7719
8222
|
id: string;
|
|
7720
8223
|
code?: string | undefined;
|
|
@@ -7725,7 +8228,12 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
7725
8228
|
deductible_account?: string | undefined;
|
|
7726
8229
|
payable_account?: string | undefined;
|
|
7727
8230
|
}[]>;
|
|
7728
|
-
getMiscOperations(params
|
|
8231
|
+
getMiscOperations(params?: {
|
|
8232
|
+
date_from?: string | undefined;
|
|
8233
|
+
date_to?: string | undefined;
|
|
8234
|
+
folder_id?: string | undefined;
|
|
8235
|
+
journal_ids?: string | undefined;
|
|
8236
|
+
} | undefined): import("../types/api").RequestData<{
|
|
7729
8237
|
operation_number?: string | undefined;
|
|
7730
8238
|
currency: string;
|
|
7731
8239
|
currency_exchange_rate?: number | undefined;
|
|
@@ -7759,7 +8267,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
7759
8267
|
operation_date: string;
|
|
7760
8268
|
journal_id?: string | undefined;
|
|
7761
8269
|
status?: "draft" | "posted" | undefined;
|
|
7762
|
-
}, params
|
|
8270
|
+
}, params?: {
|
|
7763
8271
|
folder_id?: string | undefined;
|
|
7764
8272
|
} | undefined): import("../types/api").RequestData<{
|
|
7765
8273
|
operation_number?: string | undefined;
|
|
@@ -7779,7 +8287,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
7779
8287
|
status: "cancelled" | "draft" | "posted" | "matched";
|
|
7780
8288
|
id: string;
|
|
7781
8289
|
}>;
|
|
7782
|
-
getMiscOperation(operation_id: string, params
|
|
8290
|
+
getMiscOperation(operation_id: string, params?: {
|
|
7783
8291
|
folder_id?: string | undefined;
|
|
7784
8292
|
} | undefined): import("../types/api").RequestData<{
|
|
7785
8293
|
operation_number?: string | undefined;
|
|
@@ -7801,24 +8309,25 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
7801
8309
|
}>;
|
|
7802
8310
|
attachPDF(invoice_id: string, attachment: {
|
|
7803
8311
|
base64_string: string;
|
|
7804
|
-
}, params
|
|
8312
|
+
}, params?: {
|
|
7805
8313
|
overwrite_existing?: "true" | "false" | undefined;
|
|
7806
8314
|
folder_id?: string | undefined;
|
|
7807
8315
|
} | undefined): import("../types/api").RequestData<{
|
|
7808
8316
|
content: {
|
|
7809
|
-
|
|
8317
|
+
'application/json': unknown;
|
|
7810
8318
|
};
|
|
7811
8319
|
}>;
|
|
7812
8320
|
getAttachments(params: {
|
|
8321
|
+
folder_id?: string | undefined;
|
|
7813
8322
|
type: "invoice" | "entry";
|
|
7814
8323
|
document_id: string;
|
|
7815
|
-
folder_id?: string | undefined;
|
|
7816
|
-
page?: number | undefined;
|
|
7817
|
-
size?: number | undefined;
|
|
7818
8324
|
}): import("../types/api").RequestData<{
|
|
7819
8325
|
base64_string: string;
|
|
7820
8326
|
}[]>;
|
|
7821
|
-
getChartOfAccounts(params
|
|
8327
|
+
getChartOfAccounts(params?: {
|
|
8328
|
+
classes?: string | undefined;
|
|
8329
|
+
folder_id?: string | undefined;
|
|
8330
|
+
} | undefined): import("../types/api").RequestData<{
|
|
7822
8331
|
number: string;
|
|
7823
8332
|
name: string;
|
|
7824
8333
|
active?: boolean | undefined;
|
|
@@ -7828,10 +8337,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
7828
8337
|
accounts: string[];
|
|
7829
8338
|
start?: string | undefined;
|
|
7830
8339
|
end: string;
|
|
7831
|
-
}, params
|
|
8340
|
+
}, params?: {
|
|
7832
8341
|
folder_id?: string | undefined;
|
|
7833
|
-
page?: number | undefined;
|
|
7834
|
-
size?: number | undefined;
|
|
7835
8342
|
} | undefined): import("../types/api").RequestData<{
|
|
7836
8343
|
account_number: string;
|
|
7837
8344
|
account_name?: string | undefined;
|
|
@@ -7839,10 +8346,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
7839
8346
|
credit: number;
|
|
7840
8347
|
balance: number;
|
|
7841
8348
|
}[]>;
|
|
7842
|
-
getEmployees(params
|
|
8349
|
+
getEmployees(params?: {
|
|
7843
8350
|
folder_id?: string | undefined;
|
|
7844
|
-
page?: number | undefined;
|
|
7845
|
-
size?: number | undefined;
|
|
7846
8351
|
} | undefined): import("../types/api").RequestData<{
|
|
7847
8352
|
id: string;
|
|
7848
8353
|
name: string;
|
|
@@ -7858,8 +8363,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
7858
8363
|
}[]>;
|
|
7859
8364
|
getOutstandings(params: {
|
|
7860
8365
|
folder_id?: string | undefined;
|
|
7861
|
-
unposted_allowed: "true" | "false";
|
|
7862
8366
|
type: "supplier" | "client";
|
|
8367
|
+
unposted_allowed: "true" | "false";
|
|
7863
8368
|
}): import("../types/api").RequestData<{
|
|
7864
8369
|
id: string;
|
|
7865
8370
|
number?: string | undefined;
|
|
@@ -7892,7 +8397,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
7892
8397
|
description?: string | undefined;
|
|
7893
8398
|
}[];
|
|
7894
8399
|
pdf?: string | undefined;
|
|
7895
|
-
}, params
|
|
8400
|
+
}, params?: {
|
|
7896
8401
|
financial_counterpart_account?: string | undefined;
|
|
7897
8402
|
folder_id?: string | undefined;
|
|
7898
8403
|
} | undefined): import("../types/api").RequestData<{
|
|
@@ -7926,7 +8431,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
7926
8431
|
description?: string | undefined;
|
|
7927
8432
|
}[];
|
|
7928
8433
|
pdf?: string | undefined;
|
|
7929
|
-
}, params
|
|
8434
|
+
}, params?: {
|
|
7930
8435
|
financial_counterpart_account?: string | undefined;
|
|
7931
8436
|
folder_id?: string | undefined;
|
|
7932
8437
|
} | undefined): import("../types/api").RequestData<{
|
|
@@ -8025,7 +8530,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
8025
8530
|
}[];
|
|
8026
8531
|
pdf?: string | undefined;
|
|
8027
8532
|
posted?: boolean | undefined;
|
|
8028
|
-
}, params
|
|
8533
|
+
}, params?: {
|
|
8029
8534
|
folder_id?: string | undefined;
|
|
8030
8535
|
} | undefined): import("../types/api").RequestData<{
|
|
8031
8536
|
reference?: string | undefined;
|
|
@@ -8060,7 +8565,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
8060
8565
|
matchEntries(body: {
|
|
8061
8566
|
entries: string[];
|
|
8062
8567
|
partner_id: string;
|
|
8063
|
-
}, params
|
|
8568
|
+
}, params?: {
|
|
8064
8569
|
folder_id?: string | undefined;
|
|
8065
8570
|
} | undefined): import("../types/api").RequestData<{
|
|
8066
8571
|
matching_number: string;
|
|
@@ -8070,17 +8575,17 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
8070
8575
|
id: string;
|
|
8071
8576
|
name: string;
|
|
8072
8577
|
selected?: boolean | undefined;
|
|
8578
|
+
vat?: string | undefined;
|
|
8579
|
+
company_number?: string | undefined;
|
|
8073
8580
|
}[]>;
|
|
8074
8581
|
}>;
|
|
8075
8582
|
invoicing: import("../types/api").ApiFor<{
|
|
8076
|
-
getInvoices(params
|
|
8077
|
-
invoice_type?: "all" | "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | undefined;
|
|
8078
|
-
payment_status?: "all" | "paid" | "unpaid" | undefined;
|
|
8583
|
+
getInvoices(params?: {
|
|
8079
8584
|
date_from?: string | undefined;
|
|
8080
8585
|
date_to?: string | undefined;
|
|
8586
|
+
payment_status?: "all" | "paid" | "unpaid" | undefined;
|
|
8587
|
+
invoice_type?: "all" | "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | undefined;
|
|
8081
8588
|
updated_after?: string | undefined;
|
|
8082
|
-
page?: number | undefined;
|
|
8083
|
-
size?: number | undefined;
|
|
8084
8589
|
} | undefined): import("../types/api").RequestData<{
|
|
8085
8590
|
id: string;
|
|
8086
8591
|
source_ref: {
|
|
@@ -8124,7 +8629,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
8124
8629
|
outstanding_amount?: number | undefined;
|
|
8125
8630
|
last_updated_on?: string | undefined;
|
|
8126
8631
|
}[]>;
|
|
8127
|
-
getInvoiceById(invoiceId: string, params
|
|
8632
|
+
getInvoiceById(invoiceId: string, params?: {
|
|
8128
8633
|
include_pdf?: "true" | "false" | undefined;
|
|
8129
8634
|
} | undefined): import("../types/api").RequestData<{
|
|
8130
8635
|
id: string;
|
|
@@ -8386,8 +8891,6 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
8386
8891
|
}>;
|
|
8387
8892
|
getContacts(params?: {
|
|
8388
8893
|
contact_type?: "prospect" | "customer" | "supplier" | "all" | undefined;
|
|
8389
|
-
page?: number | undefined;
|
|
8390
|
-
size?: number | undefined;
|
|
8391
8894
|
} | undefined): import("../types/api").RequestData<{
|
|
8392
8895
|
id: string;
|
|
8393
8896
|
source_ref: {
|
|
@@ -8798,7 +9301,13 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
8798
9301
|
id: string;
|
|
8799
9302
|
name: string;
|
|
8800
9303
|
}[]>;
|
|
8801
|
-
getOrders(params
|
|
9304
|
+
getOrders(params?: {
|
|
9305
|
+
date_from?: string | undefined;
|
|
9306
|
+
date_to?: string | undefined;
|
|
9307
|
+
updated_after?: string | undefined;
|
|
9308
|
+
include_detailed_refunds?: "true" | "false" | undefined;
|
|
9309
|
+
include_product_categories?: "true" | "false" | undefined;
|
|
9310
|
+
} | undefined): import("../types/api").RequestData<{
|
|
8802
9311
|
id: string;
|
|
8803
9312
|
source_ref: {
|
|
8804
9313
|
id?: string | undefined;
|
|
@@ -8844,8 +9353,9 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
8844
9353
|
created_on?: string | undefined;
|
|
8845
9354
|
last_updated_on?: string | undefined;
|
|
8846
9355
|
confirmed_on?: string | undefined;
|
|
9356
|
+
delivery_date?: string | undefined;
|
|
8847
9357
|
cancelled_on?: string | undefined;
|
|
8848
|
-
status: "cancelled" | "draft" | "confirmed" | "shipped" | "refunded";
|
|
9358
|
+
status: "cancelled" | "draft" | "cancelled_unpaid" | "confirmed" | "shipped" | "refunded";
|
|
8849
9359
|
discount_amount: number;
|
|
8850
9360
|
untaxed_amount_without_fees: number;
|
|
8851
9361
|
tax_amount_without_fees: number;
|
|
@@ -8869,6 +9379,10 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
8869
9379
|
id: string;
|
|
8870
9380
|
sku?: string | undefined;
|
|
8871
9381
|
name: string;
|
|
9382
|
+
categories?: {
|
|
9383
|
+
id: string;
|
|
9384
|
+
name: string;
|
|
9385
|
+
}[] | undefined;
|
|
8872
9386
|
} | undefined;
|
|
8873
9387
|
quantity: number;
|
|
8874
9388
|
untaxed_amount: number;
|
|
@@ -8886,6 +9400,13 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
8886
9400
|
tax_amount: number;
|
|
8887
9401
|
total: number;
|
|
8888
9402
|
}[] | undefined;
|
|
9403
|
+
transactions?: {
|
|
9404
|
+
id: string;
|
|
9405
|
+
payment_method_id?: string | undefined;
|
|
9406
|
+
payment_method_name?: string | undefined;
|
|
9407
|
+
amount: number;
|
|
9408
|
+
status: "failed" | "pending" | "success";
|
|
9409
|
+
}[] | undefined;
|
|
8889
9410
|
}[] | undefined;
|
|
8890
9411
|
currency: string;
|
|
8891
9412
|
note?: string | undefined;
|
|
@@ -8900,6 +9421,10 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
8900
9421
|
id: string;
|
|
8901
9422
|
sku?: string | undefined;
|
|
8902
9423
|
name: string;
|
|
9424
|
+
categories?: {
|
|
9425
|
+
id: string;
|
|
9426
|
+
name: string;
|
|
9427
|
+
}[] | undefined;
|
|
8903
9428
|
} | undefined;
|
|
8904
9429
|
quantity: number;
|
|
8905
9430
|
unit_price: number;
|
|
@@ -9035,8 +9560,9 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
9035
9560
|
created_on?: string | undefined;
|
|
9036
9561
|
last_updated_on?: string | undefined;
|
|
9037
9562
|
confirmed_on?: string | undefined;
|
|
9563
|
+
delivery_date?: string | undefined;
|
|
9038
9564
|
cancelled_on?: string | undefined;
|
|
9039
|
-
status: "cancelled" | "draft" | "confirmed" | "shipped" | "refunded";
|
|
9565
|
+
status: "cancelled" | "draft" | "cancelled_unpaid" | "confirmed" | "shipped" | "refunded";
|
|
9040
9566
|
discount_amount: number;
|
|
9041
9567
|
untaxed_amount_without_fees: number;
|
|
9042
9568
|
tax_amount_without_fees: number;
|
|
@@ -9060,6 +9586,10 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
9060
9586
|
id: string;
|
|
9061
9587
|
sku?: string | undefined;
|
|
9062
9588
|
name: string;
|
|
9589
|
+
categories?: {
|
|
9590
|
+
id: string;
|
|
9591
|
+
name: string;
|
|
9592
|
+
}[] | undefined;
|
|
9063
9593
|
} | undefined;
|
|
9064
9594
|
quantity: number;
|
|
9065
9595
|
untaxed_amount: number;
|
|
@@ -9077,6 +9607,13 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
9077
9607
|
tax_amount: number;
|
|
9078
9608
|
total: number;
|
|
9079
9609
|
}[] | undefined;
|
|
9610
|
+
transactions?: {
|
|
9611
|
+
id: string;
|
|
9612
|
+
payment_method_id?: string | undefined;
|
|
9613
|
+
payment_method_name?: string | undefined;
|
|
9614
|
+
amount: number;
|
|
9615
|
+
status: "failed" | "pending" | "success";
|
|
9616
|
+
}[] | undefined;
|
|
9080
9617
|
}[] | undefined;
|
|
9081
9618
|
currency: string;
|
|
9082
9619
|
note?: string | undefined;
|
|
@@ -9091,6 +9628,10 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
9091
9628
|
id: string;
|
|
9092
9629
|
sku?: string | undefined;
|
|
9093
9630
|
name: string;
|
|
9631
|
+
categories?: {
|
|
9632
|
+
id: string;
|
|
9633
|
+
name: string;
|
|
9634
|
+
}[] | undefined;
|
|
9094
9635
|
} | undefined;
|
|
9095
9636
|
quantity: number;
|
|
9096
9637
|
unit_price: number;
|
|
@@ -9185,8 +9726,9 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
9185
9726
|
created_on?: string | undefined;
|
|
9186
9727
|
last_updated_on?: string | undefined;
|
|
9187
9728
|
confirmed_on?: string | undefined;
|
|
9729
|
+
delivery_date?: string | undefined;
|
|
9188
9730
|
cancelled_on?: string | undefined;
|
|
9189
|
-
status: "cancelled" | "draft" | "confirmed" | "shipped" | "refunded";
|
|
9731
|
+
status: "cancelled" | "draft" | "cancelled_unpaid" | "confirmed" | "shipped" | "refunded";
|
|
9190
9732
|
discount_amount: number;
|
|
9191
9733
|
untaxed_amount_without_fees: number;
|
|
9192
9734
|
tax_amount_without_fees: number;
|
|
@@ -9210,6 +9752,10 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
9210
9752
|
id: string;
|
|
9211
9753
|
sku?: string | undefined;
|
|
9212
9754
|
name: string;
|
|
9755
|
+
categories?: {
|
|
9756
|
+
id: string;
|
|
9757
|
+
name: string;
|
|
9758
|
+
}[] | undefined;
|
|
9213
9759
|
} | undefined;
|
|
9214
9760
|
quantity: number;
|
|
9215
9761
|
untaxed_amount: number;
|
|
@@ -9227,6 +9773,13 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
9227
9773
|
tax_amount: number;
|
|
9228
9774
|
total: number;
|
|
9229
9775
|
}[] | undefined;
|
|
9776
|
+
transactions?: {
|
|
9777
|
+
id: string;
|
|
9778
|
+
payment_method_id?: string | undefined;
|
|
9779
|
+
payment_method_name?: string | undefined;
|
|
9780
|
+
amount: number;
|
|
9781
|
+
status: "failed" | "pending" | "success";
|
|
9782
|
+
}[] | undefined;
|
|
9230
9783
|
}[] | undefined;
|
|
9231
9784
|
currency: string;
|
|
9232
9785
|
note?: string | undefined;
|
|
@@ -9241,6 +9794,10 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
9241
9794
|
id: string;
|
|
9242
9795
|
sku?: string | undefined;
|
|
9243
9796
|
name: string;
|
|
9797
|
+
categories?: {
|
|
9798
|
+
id: string;
|
|
9799
|
+
name: string;
|
|
9800
|
+
}[] | undefined;
|
|
9244
9801
|
} | undefined;
|
|
9245
9802
|
quantity: number;
|
|
9246
9803
|
unit_price: number;
|
|
@@ -9289,7 +9846,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
9289
9846
|
name?: string | undefined;
|
|
9290
9847
|
}[] | undefined;
|
|
9291
9848
|
}>;
|
|
9292
|
-
getPaymentMethods(params
|
|
9849
|
+
getPaymentMethods(params?: {} | undefined): import("../types/api").RequestData<{
|
|
9293
9850
|
id: string;
|
|
9294
9851
|
source_ref: {
|
|
9295
9852
|
id?: string | undefined;
|
|
@@ -9298,7 +9855,9 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
9298
9855
|
name: string;
|
|
9299
9856
|
active: boolean;
|
|
9300
9857
|
}[]>;
|
|
9301
|
-
getProductCategories(params
|
|
9858
|
+
getProductCategories(params?: {
|
|
9859
|
+
only_parents?: "true" | "false" | undefined;
|
|
9860
|
+
} | undefined): import("../types/api").RequestData<{
|
|
9302
9861
|
id: string;
|
|
9303
9862
|
source_ref: {
|
|
9304
9863
|
id?: string | undefined;
|
|
@@ -9307,7 +9866,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
9307
9866
|
name: string;
|
|
9308
9867
|
parent_id?: string | undefined;
|
|
9309
9868
|
}[]>;
|
|
9310
|
-
getTaxes(params
|
|
9869
|
+
getTaxes(params?: {} | undefined): import("../types/api").RequestData<{
|
|
9311
9870
|
id: string;
|
|
9312
9871
|
source_ref: {
|
|
9313
9872
|
id?: string | undefined;
|
|
@@ -9317,7 +9876,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
9317
9876
|
rate: number;
|
|
9318
9877
|
country?: string | undefined;
|
|
9319
9878
|
}[]>;
|
|
9320
|
-
getCountries(params
|
|
9879
|
+
getCountries(params?: {} | undefined): import("../types/api").RequestData<{
|
|
9321
9880
|
code: string;
|
|
9322
9881
|
name: string;
|
|
9323
9882
|
}[]>;
|
|
@@ -9412,6 +9971,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
9412
9971
|
}[]>;
|
|
9413
9972
|
deleteDataStoreData: (dataStoreId: string, dataStoreDataId: string) => Promise<import("../types/sync").SimpleResponseModel>;
|
|
9414
9973
|
logData: (logs: import("../types/consumers").ConsumerLog[]) => Promise<import("../types/sync").SimpleResponseModel>;
|
|
9974
|
+
setConnectionId: (connectionId: string) => Promise<void>;
|
|
9975
|
+
setIntegrationId: (integrationId: string) => Promise<void>;
|
|
9415
9976
|
}>;
|
|
9416
9977
|
getConsumersByName: (consumerName: string) => Promise<{
|
|
9417
9978
|
consumerId: string;
|
|
@@ -9498,6 +10059,26 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
9498
10059
|
total_discount?: number | undefined;
|
|
9499
10060
|
total_refund?: number | undefined;
|
|
9500
10061
|
total_tip?: number | undefined;
|
|
10062
|
+
currency?: string | undefined;
|
|
10063
|
+
country?: string | undefined;
|
|
10064
|
+
loyalty?: number | undefined;
|
|
10065
|
+
customer_id?: string | undefined;
|
|
10066
|
+
location_id?: string | undefined;
|
|
10067
|
+
taxes?: {
|
|
10068
|
+
tax_rate: number;
|
|
10069
|
+
tax_amount: number;
|
|
10070
|
+
total: number;
|
|
10071
|
+
}[] | undefined;
|
|
10072
|
+
payments: {
|
|
10073
|
+
id?: string | undefined;
|
|
10074
|
+
payment_method_id?: string | undefined;
|
|
10075
|
+
payment_method_name?: string | undefined;
|
|
10076
|
+
total: number;
|
|
10077
|
+
tip?: number | undefined;
|
|
10078
|
+
status?: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised" | undefined;
|
|
10079
|
+
currency?: string | undefined;
|
|
10080
|
+
date?: string | undefined;
|
|
10081
|
+
}[];
|
|
9501
10082
|
items: {
|
|
9502
10083
|
id: string;
|
|
9503
10084
|
quantity: number;
|
|
@@ -9513,28 +10094,12 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
9513
10094
|
product_id?: string | undefined;
|
|
9514
10095
|
accounting_category_id?: string | undefined;
|
|
9515
10096
|
}[];
|
|
9516
|
-
payments: {
|
|
9517
|
-
id?: string | undefined;
|
|
9518
|
-
payment_method_id?: string | undefined;
|
|
9519
|
-
payment_method_name?: string | undefined;
|
|
9520
|
-
total: number;
|
|
9521
|
-
tip?: number | undefined;
|
|
9522
|
-
status?: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised" | undefined;
|
|
9523
|
-
currency?: string | undefined;
|
|
9524
|
-
date?: string | undefined;
|
|
9525
|
-
}[];
|
|
9526
|
-
currency?: string | undefined;
|
|
9527
|
-
country?: string | undefined;
|
|
9528
|
-
loyalty?: number | undefined;
|
|
9529
|
-
customer_id?: string | undefined;
|
|
9530
|
-
location_id?: string | undefined;
|
|
9531
|
-
taxes?: {
|
|
9532
|
-
tax_rate: number;
|
|
9533
|
-
tax_amount: number;
|
|
9534
|
-
total: number;
|
|
9535
|
-
}[] | undefined;
|
|
9536
10097
|
}[]>;
|
|
9537
|
-
getCustomers(params
|
|
10098
|
+
getCustomers(params?: {
|
|
10099
|
+
search?: string | undefined;
|
|
10100
|
+
email?: string | undefined;
|
|
10101
|
+
phone?: string | undefined;
|
|
10102
|
+
} | undefined): import("../types/api").RequestData<{
|
|
9538
10103
|
id: string;
|
|
9539
10104
|
first_name?: string | undefined;
|
|
9540
10105
|
last_name?: string | undefined;
|
|
@@ -9567,21 +10132,16 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
9567
10132
|
total_discount?: number | undefined;
|
|
9568
10133
|
total_refund?: number | undefined;
|
|
9569
10134
|
total_tip?: number | undefined;
|
|
9570
|
-
|
|
9571
|
-
|
|
9572
|
-
|
|
9573
|
-
|
|
9574
|
-
|
|
10135
|
+
currency?: string | undefined;
|
|
10136
|
+
country?: string | undefined;
|
|
10137
|
+
loyalty?: number | undefined;
|
|
10138
|
+
customer_id?: string | undefined;
|
|
10139
|
+
location_id?: string | undefined;
|
|
10140
|
+
taxes?: {
|
|
10141
|
+
tax_rate: number;
|
|
9575
10142
|
tax_amount: number;
|
|
9576
|
-
|
|
9577
|
-
|
|
9578
|
-
discounts?: {
|
|
9579
|
-
name?: string | undefined;
|
|
9580
|
-
total: number;
|
|
9581
|
-
}[] | undefined;
|
|
9582
|
-
product_id?: string | undefined;
|
|
9583
|
-
accounting_category_id?: string | undefined;
|
|
9584
|
-
}[];
|
|
10143
|
+
total: number;
|
|
10144
|
+
}[] | undefined;
|
|
9585
10145
|
payments: {
|
|
9586
10146
|
id?: string | undefined;
|
|
9587
10147
|
payment_method_id?: string | undefined;
|
|
@@ -9592,16 +10152,21 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
9592
10152
|
currency?: string | undefined;
|
|
9593
10153
|
date?: string | undefined;
|
|
9594
10154
|
}[];
|
|
9595
|
-
|
|
9596
|
-
|
|
9597
|
-
|
|
9598
|
-
|
|
9599
|
-
location_id?: string | undefined;
|
|
9600
|
-
taxes?: {
|
|
9601
|
-
tax_rate: number;
|
|
9602
|
-
tax_amount: number;
|
|
10155
|
+
items: {
|
|
10156
|
+
id: string;
|
|
10157
|
+
quantity: number;
|
|
10158
|
+
unit_price: number;
|
|
9603
10159
|
total: number;
|
|
9604
|
-
|
|
10160
|
+
tax_amount: number;
|
|
10161
|
+
tax_rate?: number | undefined;
|
|
10162
|
+
description?: string | undefined;
|
|
10163
|
+
discounts?: {
|
|
10164
|
+
name?: string | undefined;
|
|
10165
|
+
total: number;
|
|
10166
|
+
}[] | undefined;
|
|
10167
|
+
product_id?: string | undefined;
|
|
10168
|
+
accounting_category_id?: string | undefined;
|
|
10169
|
+
}[];
|
|
9605
10170
|
}>;
|
|
9606
10171
|
getCustomer(customerId: string): import("../types/api").RequestData<{
|
|
9607
10172
|
id: string;
|
|
@@ -9659,12 +10224,17 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
9659
10224
|
loyalty?: number | undefined;
|
|
9660
10225
|
birthdate?: string | undefined;
|
|
9661
10226
|
}>;
|
|
9662
|
-
getPaymentMethods(params
|
|
10227
|
+
getPaymentMethods(params?: {
|
|
10228
|
+
location_id?: string | undefined;
|
|
10229
|
+
} | undefined): import("../types/api").RequestData<{
|
|
9663
10230
|
id: string;
|
|
9664
10231
|
name: string;
|
|
9665
10232
|
extra?: string | undefined;
|
|
9666
10233
|
}[]>;
|
|
9667
|
-
getProductCategories(params
|
|
10234
|
+
getProductCategories(params?: {
|
|
10235
|
+
location_id?: string | undefined;
|
|
10236
|
+
only_parents?: "true" | "false" | undefined;
|
|
10237
|
+
} | undefined): import("../types/api").RequestData<{
|
|
9668
10238
|
id: string;
|
|
9669
10239
|
source_ref: {
|
|
9670
10240
|
id?: string | undefined;
|
|
@@ -9673,7 +10243,9 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
9673
10243
|
name: string;
|
|
9674
10244
|
parent_id?: string | undefined;
|
|
9675
10245
|
}[]>;
|
|
9676
|
-
getProducts(params
|
|
10246
|
+
getProducts(params?: {
|
|
10247
|
+
location_id?: string | undefined;
|
|
10248
|
+
} | undefined): import("../types/api").RequestData<{
|
|
9677
10249
|
id: string;
|
|
9678
10250
|
categories?: string[] | undefined;
|
|
9679
10251
|
name: string;
|
|
@@ -9697,7 +10269,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
9697
10269
|
total: number;
|
|
9698
10270
|
}[] | undefined;
|
|
9699
10271
|
}>;
|
|
9700
|
-
getClosure(date: string, params
|
|
10272
|
+
getClosure(date: string, params?: {
|
|
9701
10273
|
location_id?: string | undefined;
|
|
9702
10274
|
} | undefined): import("../types/api").RequestData<{
|
|
9703
10275
|
date: string;
|
|
@@ -9730,6 +10302,26 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
9730
10302
|
total_discount?: number | undefined;
|
|
9731
10303
|
total_refund?: number | undefined;
|
|
9732
10304
|
total_tip?: number | undefined;
|
|
10305
|
+
currency?: string | undefined;
|
|
10306
|
+
country?: string | undefined;
|
|
10307
|
+
loyalty?: number | undefined;
|
|
10308
|
+
customer_id?: string | undefined;
|
|
10309
|
+
location_id?: string | undefined;
|
|
10310
|
+
taxes?: {
|
|
10311
|
+
tax_rate: number;
|
|
10312
|
+
tax_amount: number;
|
|
10313
|
+
total: number;
|
|
10314
|
+
}[] | undefined;
|
|
10315
|
+
payments: {
|
|
10316
|
+
id?: string | undefined;
|
|
10317
|
+
payment_method_id?: string | undefined;
|
|
10318
|
+
payment_method_name?: string | undefined;
|
|
10319
|
+
total: number;
|
|
10320
|
+
tip?: number | undefined;
|
|
10321
|
+
status?: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised" | undefined;
|
|
10322
|
+
currency?: string | undefined;
|
|
10323
|
+
date?: string | undefined;
|
|
10324
|
+
}[];
|
|
9733
10325
|
items: {
|
|
9734
10326
|
id: string;
|
|
9735
10327
|
quantity: number;
|
|
@@ -9745,16 +10337,53 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
9745
10337
|
product_id?: string | undefined;
|
|
9746
10338
|
accounting_category_id?: string | undefined;
|
|
9747
10339
|
}[];
|
|
9748
|
-
|
|
10340
|
+
}>;
|
|
10341
|
+
getAccountingCategories(params?: {} | undefined): import("../types/api").RequestData<{
|
|
10342
|
+
id: string;
|
|
10343
|
+
name: string;
|
|
10344
|
+
id_parent?: string | undefined;
|
|
10345
|
+
code?: string | undefined;
|
|
10346
|
+
ledger_account_code?: string | undefined;
|
|
10347
|
+
posting_account_code?: string | undefined;
|
|
10348
|
+
}[]>;
|
|
10349
|
+
}>;
|
|
10350
|
+
pms: import("../types/api").ApiFor<{
|
|
10351
|
+
getLocations(): import("../types/api").RequestData<{
|
|
10352
|
+
id: string;
|
|
10353
|
+
name: string;
|
|
10354
|
+
timezone?: string | undefined;
|
|
10355
|
+
address?: {
|
|
10356
|
+
address_type?: string | undefined;
|
|
10357
|
+
name?: string | undefined;
|
|
10358
|
+
street?: string | undefined;
|
|
10359
|
+
number?: string | undefined;
|
|
10360
|
+
box?: string | undefined;
|
|
10361
|
+
city?: string | undefined;
|
|
10362
|
+
postal_code?: string | undefined;
|
|
10363
|
+
country?: string | undefined;
|
|
10364
|
+
} | undefined;
|
|
10365
|
+
}[]>;
|
|
10366
|
+
getOrders(params: {
|
|
10367
|
+
date_from: string;
|
|
10368
|
+
date_to: string;
|
|
10369
|
+
location_id?: string | undefined;
|
|
10370
|
+
state?: "closed" | "consumed" | undefined;
|
|
10371
|
+
}): import("../types/api").RequestData<{
|
|
10372
|
+
id: string;
|
|
10373
|
+
source_ref: {
|
|
9749
10374
|
id?: string | undefined;
|
|
9750
|
-
|
|
9751
|
-
|
|
9752
|
-
|
|
9753
|
-
|
|
9754
|
-
|
|
9755
|
-
|
|
9756
|
-
|
|
9757
|
-
|
|
10375
|
+
model?: string | undefined;
|
|
10376
|
+
};
|
|
10377
|
+
order_number?: string | undefined;
|
|
10378
|
+
creation_date: string;
|
|
10379
|
+
closing_date?: string | undefined;
|
|
10380
|
+
service_date?: string | undefined;
|
|
10381
|
+
device_id?: string | undefined;
|
|
10382
|
+
total: number;
|
|
10383
|
+
tax_amount: number;
|
|
10384
|
+
total_discount?: number | undefined;
|
|
10385
|
+
total_refund?: number | undefined;
|
|
10386
|
+
total_tip?: number | undefined;
|
|
9758
10387
|
currency?: string | undefined;
|
|
9759
10388
|
country?: string | undefined;
|
|
9760
10389
|
loyalty?: number | undefined;
|
|
@@ -9765,9 +10394,68 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
9765
10394
|
tax_amount: number;
|
|
9766
10395
|
total: number;
|
|
9767
10396
|
}[] | undefined;
|
|
10397
|
+
items: {
|
|
10398
|
+
id: string;
|
|
10399
|
+
source_ref: {
|
|
10400
|
+
id?: string | undefined;
|
|
10401
|
+
model?: string | undefined;
|
|
10402
|
+
};
|
|
10403
|
+
quantity: number;
|
|
10404
|
+
unit_price: number;
|
|
10405
|
+
total: number;
|
|
10406
|
+
tax_amount: number;
|
|
10407
|
+
tax_rate?: number | undefined;
|
|
10408
|
+
description?: string | undefined;
|
|
10409
|
+
discounts?: {
|
|
10410
|
+
name?: string | undefined;
|
|
10411
|
+
total: number;
|
|
10412
|
+
}[] | undefined;
|
|
10413
|
+
product_id?: string | undefined;
|
|
10414
|
+
accounting_category_id?: string | undefined;
|
|
10415
|
+
}[];
|
|
10416
|
+
service_id?: string | undefined;
|
|
10417
|
+
}[]>;
|
|
10418
|
+
getPaymentMethods(params?: {
|
|
10419
|
+
location_id?: string | undefined;
|
|
10420
|
+
} | undefined): import("../types/api").RequestData<{
|
|
10421
|
+
id: string;
|
|
10422
|
+
source_ref: {
|
|
10423
|
+
id?: string | undefined;
|
|
10424
|
+
model?: string | undefined;
|
|
10425
|
+
};
|
|
10426
|
+
name: string;
|
|
10427
|
+
extra?: string | undefined;
|
|
10428
|
+
ledger_account_code?: string | undefined;
|
|
10429
|
+
}[]>;
|
|
10430
|
+
getClosure(date: string, params?: {
|
|
10431
|
+
location_id?: string | undefined;
|
|
10432
|
+
} | undefined): import("../types/api").RequestData<{
|
|
10433
|
+
date: string;
|
|
10434
|
+
status: "open" | "closed";
|
|
9768
10435
|
}>;
|
|
9769
|
-
|
|
10436
|
+
getPayments(params: {
|
|
10437
|
+
date_from: string;
|
|
10438
|
+
date_to: string;
|
|
10439
|
+
}): import("../types/api").RequestData<{
|
|
10440
|
+
id?: string | undefined;
|
|
10441
|
+
source_ref: {
|
|
10442
|
+
id?: string | undefined;
|
|
10443
|
+
model?: string | undefined;
|
|
10444
|
+
};
|
|
10445
|
+
payment_method_id?: string | undefined;
|
|
10446
|
+
payment_method_name?: string | undefined;
|
|
10447
|
+
total: number;
|
|
10448
|
+
tip?: number | undefined;
|
|
10449
|
+
status?: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised" | undefined;
|
|
10450
|
+
currency?: string | undefined;
|
|
10451
|
+
date?: string | undefined;
|
|
10452
|
+
}[]>;
|
|
10453
|
+
getAccountingCategories(params?: {} | undefined): import("../types/api").RequestData<{
|
|
9770
10454
|
id: string;
|
|
10455
|
+
source_ref: {
|
|
10456
|
+
id?: string | undefined;
|
|
10457
|
+
model?: string | undefined;
|
|
10458
|
+
};
|
|
9771
10459
|
name: string;
|
|
9772
10460
|
id_parent?: string | undefined;
|
|
9773
10461
|
code?: string | undefined;
|
|
@@ -9776,19 +10464,15 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
9776
10464
|
}[]>;
|
|
9777
10465
|
}>;
|
|
9778
10466
|
accounting: import("../types/api").ApiFor<{
|
|
9779
|
-
getAnalyticPlans(params
|
|
10467
|
+
getAnalyticPlans(params?: {
|
|
9780
10468
|
folder_id?: string | undefined;
|
|
9781
|
-
page?: number | undefined;
|
|
9782
|
-
size?: number | undefined;
|
|
9783
10469
|
} | undefined): import("../types/api").RequestData<{
|
|
9784
10470
|
id: string;
|
|
9785
10471
|
name: string;
|
|
9786
10472
|
active?: boolean | undefined;
|
|
9787
10473
|
}[]>;
|
|
9788
|
-
getClients(params
|
|
10474
|
+
getClients(params?: {
|
|
9789
10475
|
folder_id?: string | undefined;
|
|
9790
|
-
page?: number | undefined;
|
|
9791
|
-
size?: number | undefined;
|
|
9792
10476
|
} | undefined): import("../types/api").RequestData<{
|
|
9793
10477
|
external_reference?: string | undefined;
|
|
9794
10478
|
first_name?: string | undefined;
|
|
@@ -9858,7 +10542,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
9858
10542
|
country: string;
|
|
9859
10543
|
}[];
|
|
9860
10544
|
account_number?: string | undefined;
|
|
9861
|
-
}, params
|
|
10545
|
+
}, params?: {
|
|
9862
10546
|
force_merge?: string | undefined;
|
|
9863
10547
|
folder_id?: string | undefined;
|
|
9864
10548
|
} | undefined): import("../types/api").RequestData<{
|
|
@@ -9897,7 +10581,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
9897
10581
|
company_number?: string | undefined;
|
|
9898
10582
|
id?: string | undefined;
|
|
9899
10583
|
}>;
|
|
9900
|
-
getClient(clientId: string, params
|
|
10584
|
+
getClient(clientId: string, params?: {
|
|
9901
10585
|
folder_id?: string | undefined;
|
|
9902
10586
|
} | undefined): import("../types/api").RequestData<{
|
|
9903
10587
|
external_reference?: string | undefined;
|
|
@@ -9967,7 +10651,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
9967
10651
|
postal_code?: string | undefined;
|
|
9968
10652
|
country?: string | undefined;
|
|
9969
10653
|
}[] | undefined;
|
|
9970
|
-
}, params
|
|
10654
|
+
}, params?: {
|
|
9971
10655
|
folder_id?: string | undefined;
|
|
9972
10656
|
} | undefined): import("../types/api").RequestData<{
|
|
9973
10657
|
external_reference?: string | undefined;
|
|
@@ -10005,10 +10689,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
10005
10689
|
company_number?: string | undefined;
|
|
10006
10690
|
id?: string | undefined;
|
|
10007
10691
|
}>;
|
|
10008
|
-
getSuppliers(params
|
|
10692
|
+
getSuppliers(params?: {
|
|
10009
10693
|
folder_id?: string | undefined;
|
|
10010
|
-
page?: number | undefined;
|
|
10011
|
-
size?: number | undefined;
|
|
10012
10694
|
} | undefined): import("../types/api").RequestData<{
|
|
10013
10695
|
external_reference?: string | undefined;
|
|
10014
10696
|
first_name?: string | undefined;
|
|
@@ -10078,7 +10760,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
10078
10760
|
country: string;
|
|
10079
10761
|
}[];
|
|
10080
10762
|
account_number?: string | undefined;
|
|
10081
|
-
}, params
|
|
10763
|
+
}, params?: {
|
|
10082
10764
|
force_merge?: string | undefined;
|
|
10083
10765
|
folder_id?: string | undefined;
|
|
10084
10766
|
} | undefined): import("../types/api").RequestData<{
|
|
@@ -10117,7 +10799,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
10117
10799
|
company_number?: string | undefined;
|
|
10118
10800
|
id?: string | undefined;
|
|
10119
10801
|
}>;
|
|
10120
|
-
getSupplier(supplierId: string, params
|
|
10802
|
+
getSupplier(supplierId: string, params?: {
|
|
10121
10803
|
folder_id?: string | undefined;
|
|
10122
10804
|
} | undefined): import("../types/api").RequestData<{
|
|
10123
10805
|
external_reference?: string | undefined;
|
|
@@ -10187,7 +10869,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
10187
10869
|
postal_code?: string | undefined;
|
|
10188
10870
|
country?: string | undefined;
|
|
10189
10871
|
}[] | undefined;
|
|
10190
|
-
}, params
|
|
10872
|
+
}, params?: {
|
|
10191
10873
|
folder_id?: string | undefined;
|
|
10192
10874
|
} | undefined): import("../types/api").RequestData<{
|
|
10193
10875
|
external_reference?: string | undefined;
|
|
@@ -10258,6 +10940,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
10258
10940
|
iban: string;
|
|
10259
10941
|
};
|
|
10260
10942
|
} | undefined;
|
|
10943
|
+
shipping_country?: string | undefined;
|
|
10261
10944
|
lines: {
|
|
10262
10945
|
line_number?: number | undefined;
|
|
10263
10946
|
description: string;
|
|
@@ -10272,7 +10955,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
10272
10955
|
tax_code: string;
|
|
10273
10956
|
analytic_account?: string | undefined;
|
|
10274
10957
|
}[];
|
|
10275
|
-
}, params
|
|
10958
|
+
}, params?: {
|
|
10276
10959
|
force_financial_period?: string | undefined;
|
|
10277
10960
|
regroup_lines?: "true" | "false" | undefined;
|
|
10278
10961
|
folder_id?: string | undefined;
|
|
@@ -10354,6 +11037,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
10354
11037
|
iban: string;
|
|
10355
11038
|
};
|
|
10356
11039
|
} | undefined;
|
|
11040
|
+
shipping_country?: string | undefined;
|
|
10357
11041
|
lines: {
|
|
10358
11042
|
line_number?: number | undefined;
|
|
10359
11043
|
description: string;
|
|
@@ -10374,7 +11058,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
10374
11058
|
}[];
|
|
10375
11059
|
}[] | undefined;
|
|
10376
11060
|
}[];
|
|
10377
|
-
}, params
|
|
11061
|
+
}, params?: {
|
|
10378
11062
|
force_financial_period?: string | undefined;
|
|
10379
11063
|
regroup_lines?: "true" | "false" | undefined;
|
|
10380
11064
|
folder_id?: string | undefined;
|
|
@@ -10429,7 +11113,14 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
10429
11113
|
}[] | undefined;
|
|
10430
11114
|
}[];
|
|
10431
11115
|
}>;
|
|
10432
|
-
getInvoicesByType(invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund", params
|
|
11116
|
+
getInvoicesByType(invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund", params?: {
|
|
11117
|
+
date_from?: string | undefined;
|
|
11118
|
+
date_to?: string | undefined;
|
|
11119
|
+
folder_id?: string | undefined;
|
|
11120
|
+
journal_ids?: string | undefined;
|
|
11121
|
+
include_payments?: "true" | "false" | undefined;
|
|
11122
|
+
payment_status?: "all" | "paid" | "unpaid" | undefined;
|
|
11123
|
+
} | undefined): import("../types/api").RequestData<{
|
|
10433
11124
|
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
10434
11125
|
invoice_number?: string | undefined;
|
|
10435
11126
|
currency: string;
|
|
@@ -10474,7 +11165,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
10474
11165
|
analytic_account?: string | undefined;
|
|
10475
11166
|
}[];
|
|
10476
11167
|
}[]>;
|
|
10477
|
-
getInvoice(invoiceId: string, params
|
|
11168
|
+
getInvoice(invoiceId: string, params?: {
|
|
10478
11169
|
include_payments?: "true" | "false" | undefined;
|
|
10479
11170
|
folder_id?: string | undefined;
|
|
10480
11171
|
} | undefined): import("../types/api").RequestData<{
|
|
@@ -10522,7 +11213,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
10522
11213
|
analytic_account?: string | undefined;
|
|
10523
11214
|
}[];
|
|
10524
11215
|
}>;
|
|
10525
|
-
getInvoiceWithMultiplePlans(invoiceId: string, params
|
|
11216
|
+
getInvoiceWithMultiplePlans(invoiceId: string, params?: {
|
|
10526
11217
|
include_payments?: "true" | "false" | undefined;
|
|
10527
11218
|
folder_id?: string | undefined;
|
|
10528
11219
|
} | undefined): import("../types/api").RequestData<{
|
|
@@ -10576,7 +11267,14 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
10576
11267
|
}[] | undefined;
|
|
10577
11268
|
}[];
|
|
10578
11269
|
}>;
|
|
10579
|
-
getInvoicesByTypeWithMultiplePlans(invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund", params
|
|
11270
|
+
getInvoicesByTypeWithMultiplePlans(invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund", params?: {
|
|
11271
|
+
date_from?: string | undefined;
|
|
11272
|
+
date_to?: string | undefined;
|
|
11273
|
+
folder_id?: string | undefined;
|
|
11274
|
+
journal_ids?: string | undefined;
|
|
11275
|
+
include_payments?: "true" | "false" | undefined;
|
|
11276
|
+
payment_status?: "all" | "paid" | "unpaid" | undefined;
|
|
11277
|
+
} | undefined): import("../types/api").RequestData<{
|
|
10580
11278
|
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
10581
11279
|
invoice_number?: string | undefined;
|
|
10582
11280
|
currency: string;
|
|
@@ -10632,7 +11330,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
10632
11330
|
code: string;
|
|
10633
11331
|
name: string;
|
|
10634
11332
|
currency: string;
|
|
10635
|
-
}, params
|
|
11333
|
+
}, params?: {
|
|
10636
11334
|
folder_id?: string | undefined;
|
|
10637
11335
|
} | undefined): import("../types/api").RequestData<{
|
|
10638
11336
|
id: string;
|
|
@@ -10644,10 +11342,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
10644
11342
|
credit?: number | undefined;
|
|
10645
11343
|
debit?: number | undefined;
|
|
10646
11344
|
}>;
|
|
10647
|
-
getAnalyticAccounts(params
|
|
11345
|
+
getAnalyticAccounts(params?: {
|
|
10648
11346
|
folder_id?: string | undefined;
|
|
10649
|
-
page?: number | undefined;
|
|
10650
|
-
size?: number | undefined;
|
|
10651
11347
|
} | undefined): import("../types/api").RequestData<{
|
|
10652
11348
|
id: string;
|
|
10653
11349
|
active: boolean;
|
|
@@ -10663,7 +11359,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
10663
11359
|
code: string;
|
|
10664
11360
|
name: string;
|
|
10665
11361
|
currency: string;
|
|
10666
|
-
}, params
|
|
11362
|
+
}, params?: {
|
|
10667
11363
|
folder_id?: string | undefined;
|
|
10668
11364
|
} | undefined): import("../types/api").RequestData<{
|
|
10669
11365
|
id: string;
|
|
@@ -10676,7 +11372,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
10676
11372
|
debit?: number | undefined;
|
|
10677
11373
|
analytic_plan: string;
|
|
10678
11374
|
}>;
|
|
10679
|
-
getAnalyticAccount(analytic_account_id: string, params
|
|
11375
|
+
getAnalyticAccount(analytic_account_id: string, params?: {
|
|
10680
11376
|
folder_id?: string | undefined;
|
|
10681
11377
|
} | undefined): import("../types/api").RequestData<{
|
|
10682
11378
|
id: string;
|
|
@@ -10693,7 +11389,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
10693
11389
|
code?: string | undefined;
|
|
10694
11390
|
name?: string | undefined;
|
|
10695
11391
|
currency?: string | undefined;
|
|
10696
|
-
}, params
|
|
11392
|
+
}, params?: {
|
|
10697
11393
|
folder_id?: string | undefined;
|
|
10698
11394
|
} | undefined): import("../types/api").RequestData<{
|
|
10699
11395
|
id: string;
|
|
@@ -10705,7 +11401,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
10705
11401
|
credit?: number | undefined;
|
|
10706
11402
|
debit?: number | undefined;
|
|
10707
11403
|
}>;
|
|
10708
|
-
getAnalyticAccountWithMultiplePlans(analytic_account_id: string, analytic_plan: string, params
|
|
11404
|
+
getAnalyticAccountWithMultiplePlans(analytic_account_id: string, analytic_plan: string, params?: {
|
|
10709
11405
|
folder_id?: string | undefined;
|
|
10710
11406
|
} | undefined): import("../types/api").RequestData<{
|
|
10711
11407
|
id: string;
|
|
@@ -10723,7 +11419,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
10723
11419
|
code?: string | undefined;
|
|
10724
11420
|
name?: string | undefined;
|
|
10725
11421
|
currency?: string | undefined;
|
|
10726
|
-
}, params
|
|
11422
|
+
}, params?: {
|
|
10727
11423
|
folder_id?: string | undefined;
|
|
10728
11424
|
} | undefined): import("../types/api").RequestData<{
|
|
10729
11425
|
id: string;
|
|
@@ -10736,10 +11432,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
10736
11432
|
debit?: number | undefined;
|
|
10737
11433
|
analytic_plan: string;
|
|
10738
11434
|
}>;
|
|
10739
|
-
getAnalyticAccountsWithMultiplePlans(params
|
|
11435
|
+
getAnalyticAccountsWithMultiplePlans(params?: {
|
|
10740
11436
|
folder_id?: string | undefined;
|
|
10741
|
-
page?: number | undefined;
|
|
10742
|
-
size?: number | undefined;
|
|
10743
11437
|
} | undefined): import("../types/api").RequestData<{
|
|
10744
11438
|
id: string;
|
|
10745
11439
|
active: boolean;
|
|
@@ -10820,7 +11514,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
10820
11514
|
}[] | undefined;
|
|
10821
11515
|
}[] | undefined;
|
|
10822
11516
|
}[]>;
|
|
10823
|
-
getPaymentsByInvoiceId(invoice_id: string, params
|
|
11517
|
+
getPaymentsByInvoiceId(invoice_id: string, params?: {
|
|
10824
11518
|
folder_id?: string | undefined;
|
|
10825
11519
|
page?: number | undefined;
|
|
10826
11520
|
size?: number | undefined;
|
|
@@ -10838,20 +11532,16 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
10838
11532
|
communication?: string | undefined;
|
|
10839
11533
|
matching_number?: string | undefined;
|
|
10840
11534
|
}[]>;
|
|
10841
|
-
getJournals(params
|
|
11535
|
+
getJournals(params?: {
|
|
10842
11536
|
folder_id?: string | undefined;
|
|
10843
|
-
page?: number | undefined;
|
|
10844
|
-
size?: number | undefined;
|
|
10845
11537
|
} | undefined): import("../types/api").RequestData<{
|
|
10846
11538
|
id: string;
|
|
10847
11539
|
code?: string | undefined;
|
|
10848
11540
|
name: string;
|
|
10849
11541
|
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
10850
11542
|
}[]>;
|
|
10851
|
-
getVatCodes(params
|
|
11543
|
+
getVatCodes(params?: {
|
|
10852
11544
|
folder_id?: string | undefined;
|
|
10853
|
-
page?: number | undefined;
|
|
10854
|
-
size?: number | undefined;
|
|
10855
11545
|
} | undefined): import("../types/api").RequestData<{
|
|
10856
11546
|
id: string;
|
|
10857
11547
|
code?: string | undefined;
|
|
@@ -10862,7 +11552,12 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
10862
11552
|
deductible_account?: string | undefined;
|
|
10863
11553
|
payable_account?: string | undefined;
|
|
10864
11554
|
}[]>;
|
|
10865
|
-
getMiscOperations(params
|
|
11555
|
+
getMiscOperations(params?: {
|
|
11556
|
+
date_from?: string | undefined;
|
|
11557
|
+
date_to?: string | undefined;
|
|
11558
|
+
folder_id?: string | undefined;
|
|
11559
|
+
journal_ids?: string | undefined;
|
|
11560
|
+
} | undefined): import("../types/api").RequestData<{
|
|
10866
11561
|
operation_number?: string | undefined;
|
|
10867
11562
|
currency: string;
|
|
10868
11563
|
currency_exchange_rate?: number | undefined;
|
|
@@ -10896,7 +11591,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
10896
11591
|
operation_date: string;
|
|
10897
11592
|
journal_id?: string | undefined;
|
|
10898
11593
|
status?: "draft" | "posted" | undefined;
|
|
10899
|
-
}, params
|
|
11594
|
+
}, params?: {
|
|
10900
11595
|
folder_id?: string | undefined;
|
|
10901
11596
|
} | undefined): import("../types/api").RequestData<{
|
|
10902
11597
|
operation_number?: string | undefined;
|
|
@@ -10916,7 +11611,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
10916
11611
|
status: "cancelled" | "draft" | "posted" | "matched";
|
|
10917
11612
|
id: string;
|
|
10918
11613
|
}>;
|
|
10919
|
-
getMiscOperation(operation_id: string, params
|
|
11614
|
+
getMiscOperation(operation_id: string, params?: {
|
|
10920
11615
|
folder_id?: string | undefined;
|
|
10921
11616
|
} | undefined): import("../types/api").RequestData<{
|
|
10922
11617
|
operation_number?: string | undefined;
|
|
@@ -10938,24 +11633,25 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
10938
11633
|
}>;
|
|
10939
11634
|
attachPDF(invoice_id: string, attachment: {
|
|
10940
11635
|
base64_string: string;
|
|
10941
|
-
}, params
|
|
11636
|
+
}, params?: {
|
|
10942
11637
|
overwrite_existing?: "true" | "false" | undefined;
|
|
10943
11638
|
folder_id?: string | undefined;
|
|
10944
11639
|
} | undefined): import("../types/api").RequestData<{
|
|
10945
11640
|
content: {
|
|
10946
|
-
|
|
11641
|
+
'application/json': unknown;
|
|
10947
11642
|
};
|
|
10948
11643
|
}>;
|
|
10949
11644
|
getAttachments(params: {
|
|
11645
|
+
folder_id?: string | undefined;
|
|
10950
11646
|
type: "invoice" | "entry";
|
|
10951
11647
|
document_id: string;
|
|
10952
|
-
folder_id?: string | undefined;
|
|
10953
|
-
page?: number | undefined;
|
|
10954
|
-
size?: number | undefined;
|
|
10955
11648
|
}): import("../types/api").RequestData<{
|
|
10956
11649
|
base64_string: string;
|
|
10957
11650
|
}[]>;
|
|
10958
|
-
getChartOfAccounts(params
|
|
11651
|
+
getChartOfAccounts(params?: {
|
|
11652
|
+
classes?: string | undefined;
|
|
11653
|
+
folder_id?: string | undefined;
|
|
11654
|
+
} | undefined): import("../types/api").RequestData<{
|
|
10959
11655
|
number: string;
|
|
10960
11656
|
name: string;
|
|
10961
11657
|
active?: boolean | undefined;
|
|
@@ -10965,10 +11661,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
10965
11661
|
accounts: string[];
|
|
10966
11662
|
start?: string | undefined;
|
|
10967
11663
|
end: string;
|
|
10968
|
-
}, params
|
|
11664
|
+
}, params?: {
|
|
10969
11665
|
folder_id?: string | undefined;
|
|
10970
|
-
page?: number | undefined;
|
|
10971
|
-
size?: number | undefined;
|
|
10972
11666
|
} | undefined): import("../types/api").RequestData<{
|
|
10973
11667
|
account_number: string;
|
|
10974
11668
|
account_name?: string | undefined;
|
|
@@ -10976,10 +11670,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
10976
11670
|
credit: number;
|
|
10977
11671
|
balance: number;
|
|
10978
11672
|
}[]>;
|
|
10979
|
-
getEmployees(params
|
|
11673
|
+
getEmployees(params?: {
|
|
10980
11674
|
folder_id?: string | undefined;
|
|
10981
|
-
page?: number | undefined;
|
|
10982
|
-
size?: number | undefined;
|
|
10983
11675
|
} | undefined): import("../types/api").RequestData<{
|
|
10984
11676
|
id: string;
|
|
10985
11677
|
name: string;
|
|
@@ -10995,8 +11687,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
10995
11687
|
}[]>;
|
|
10996
11688
|
getOutstandings(params: {
|
|
10997
11689
|
folder_id?: string | undefined;
|
|
10998
|
-
unposted_allowed: "true" | "false";
|
|
10999
11690
|
type: "supplier" | "client";
|
|
11691
|
+
unposted_allowed: "true" | "false";
|
|
11000
11692
|
}): import("../types/api").RequestData<{
|
|
11001
11693
|
id: string;
|
|
11002
11694
|
number?: string | undefined;
|
|
@@ -11029,7 +11721,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
11029
11721
|
description?: string | undefined;
|
|
11030
11722
|
}[];
|
|
11031
11723
|
pdf?: string | undefined;
|
|
11032
|
-
}, params
|
|
11724
|
+
}, params?: {
|
|
11033
11725
|
financial_counterpart_account?: string | undefined;
|
|
11034
11726
|
folder_id?: string | undefined;
|
|
11035
11727
|
} | undefined): import("../types/api").RequestData<{
|
|
@@ -11063,7 +11755,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
11063
11755
|
description?: string | undefined;
|
|
11064
11756
|
}[];
|
|
11065
11757
|
pdf?: string | undefined;
|
|
11066
|
-
}, params
|
|
11758
|
+
}, params?: {
|
|
11067
11759
|
financial_counterpart_account?: string | undefined;
|
|
11068
11760
|
folder_id?: string | undefined;
|
|
11069
11761
|
} | undefined): import("../types/api").RequestData<{
|
|
@@ -11162,7 +11854,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
11162
11854
|
}[];
|
|
11163
11855
|
pdf?: string | undefined;
|
|
11164
11856
|
posted?: boolean | undefined;
|
|
11165
|
-
}, params
|
|
11857
|
+
}, params?: {
|
|
11166
11858
|
folder_id?: string | undefined;
|
|
11167
11859
|
} | undefined): import("../types/api").RequestData<{
|
|
11168
11860
|
reference?: string | undefined;
|
|
@@ -11197,7 +11889,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
11197
11889
|
matchEntries(body: {
|
|
11198
11890
|
entries: string[];
|
|
11199
11891
|
partner_id: string;
|
|
11200
|
-
}, params
|
|
11892
|
+
}, params?: {
|
|
11201
11893
|
folder_id?: string | undefined;
|
|
11202
11894
|
} | undefined): import("../types/api").RequestData<{
|
|
11203
11895
|
matching_number: string;
|
|
@@ -11207,17 +11899,17 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
11207
11899
|
id: string;
|
|
11208
11900
|
name: string;
|
|
11209
11901
|
selected?: boolean | undefined;
|
|
11902
|
+
vat?: string | undefined;
|
|
11903
|
+
company_number?: string | undefined;
|
|
11210
11904
|
}[]>;
|
|
11211
11905
|
}>;
|
|
11212
11906
|
invoicing: import("../types/api").ApiFor<{
|
|
11213
|
-
getInvoices(params
|
|
11214
|
-
invoice_type?: "all" | "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | undefined;
|
|
11215
|
-
payment_status?: "all" | "paid" | "unpaid" | undefined;
|
|
11907
|
+
getInvoices(params?: {
|
|
11216
11908
|
date_from?: string | undefined;
|
|
11217
11909
|
date_to?: string | undefined;
|
|
11910
|
+
payment_status?: "all" | "paid" | "unpaid" | undefined;
|
|
11911
|
+
invoice_type?: "all" | "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | undefined;
|
|
11218
11912
|
updated_after?: string | undefined;
|
|
11219
|
-
page?: number | undefined;
|
|
11220
|
-
size?: number | undefined;
|
|
11221
11913
|
} | undefined): import("../types/api").RequestData<{
|
|
11222
11914
|
id: string;
|
|
11223
11915
|
source_ref: {
|
|
@@ -11261,7 +11953,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
11261
11953
|
outstanding_amount?: number | undefined;
|
|
11262
11954
|
last_updated_on?: string | undefined;
|
|
11263
11955
|
}[]>;
|
|
11264
|
-
getInvoiceById(invoiceId: string, params
|
|
11956
|
+
getInvoiceById(invoiceId: string, params?: {
|
|
11265
11957
|
include_pdf?: "true" | "false" | undefined;
|
|
11266
11958
|
} | undefined): import("../types/api").RequestData<{
|
|
11267
11959
|
id: string;
|
|
@@ -11523,8 +12215,6 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
11523
12215
|
}>;
|
|
11524
12216
|
getContacts(params?: {
|
|
11525
12217
|
contact_type?: "prospect" | "customer" | "supplier" | "all" | undefined;
|
|
11526
|
-
page?: number | undefined;
|
|
11527
|
-
size?: number | undefined;
|
|
11528
12218
|
} | undefined): import("../types/api").RequestData<{
|
|
11529
12219
|
id: string;
|
|
11530
12220
|
source_ref: {
|
|
@@ -11935,7 +12625,13 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
11935
12625
|
id: string;
|
|
11936
12626
|
name: string;
|
|
11937
12627
|
}[]>;
|
|
11938
|
-
getOrders(params
|
|
12628
|
+
getOrders(params?: {
|
|
12629
|
+
date_from?: string | undefined;
|
|
12630
|
+
date_to?: string | undefined;
|
|
12631
|
+
updated_after?: string | undefined;
|
|
12632
|
+
include_detailed_refunds?: "true" | "false" | undefined;
|
|
12633
|
+
include_product_categories?: "true" | "false" | undefined;
|
|
12634
|
+
} | undefined): import("../types/api").RequestData<{
|
|
11939
12635
|
id: string;
|
|
11940
12636
|
source_ref: {
|
|
11941
12637
|
id?: string | undefined;
|
|
@@ -11981,8 +12677,9 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
11981
12677
|
created_on?: string | undefined;
|
|
11982
12678
|
last_updated_on?: string | undefined;
|
|
11983
12679
|
confirmed_on?: string | undefined;
|
|
12680
|
+
delivery_date?: string | undefined;
|
|
11984
12681
|
cancelled_on?: string | undefined;
|
|
11985
|
-
status: "cancelled" | "draft" | "confirmed" | "shipped" | "refunded";
|
|
12682
|
+
status: "cancelled" | "draft" | "cancelled_unpaid" | "confirmed" | "shipped" | "refunded";
|
|
11986
12683
|
discount_amount: number;
|
|
11987
12684
|
untaxed_amount_without_fees: number;
|
|
11988
12685
|
tax_amount_without_fees: number;
|
|
@@ -12006,6 +12703,10 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
12006
12703
|
id: string;
|
|
12007
12704
|
sku?: string | undefined;
|
|
12008
12705
|
name: string;
|
|
12706
|
+
categories?: {
|
|
12707
|
+
id: string;
|
|
12708
|
+
name: string;
|
|
12709
|
+
}[] | undefined;
|
|
12009
12710
|
} | undefined;
|
|
12010
12711
|
quantity: number;
|
|
12011
12712
|
untaxed_amount: number;
|
|
@@ -12023,6 +12724,13 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
12023
12724
|
tax_amount: number;
|
|
12024
12725
|
total: number;
|
|
12025
12726
|
}[] | undefined;
|
|
12727
|
+
transactions?: {
|
|
12728
|
+
id: string;
|
|
12729
|
+
payment_method_id?: string | undefined;
|
|
12730
|
+
payment_method_name?: string | undefined;
|
|
12731
|
+
amount: number;
|
|
12732
|
+
status: "failed" | "pending" | "success";
|
|
12733
|
+
}[] | undefined;
|
|
12026
12734
|
}[] | undefined;
|
|
12027
12735
|
currency: string;
|
|
12028
12736
|
note?: string | undefined;
|
|
@@ -12037,6 +12745,10 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
12037
12745
|
id: string;
|
|
12038
12746
|
sku?: string | undefined;
|
|
12039
12747
|
name: string;
|
|
12748
|
+
categories?: {
|
|
12749
|
+
id: string;
|
|
12750
|
+
name: string;
|
|
12751
|
+
}[] | undefined;
|
|
12040
12752
|
} | undefined;
|
|
12041
12753
|
quantity: number;
|
|
12042
12754
|
unit_price: number;
|
|
@@ -12172,8 +12884,9 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
12172
12884
|
created_on?: string | undefined;
|
|
12173
12885
|
last_updated_on?: string | undefined;
|
|
12174
12886
|
confirmed_on?: string | undefined;
|
|
12887
|
+
delivery_date?: string | undefined;
|
|
12175
12888
|
cancelled_on?: string | undefined;
|
|
12176
|
-
status: "cancelled" | "draft" | "confirmed" | "shipped" | "refunded";
|
|
12889
|
+
status: "cancelled" | "draft" | "cancelled_unpaid" | "confirmed" | "shipped" | "refunded";
|
|
12177
12890
|
discount_amount: number;
|
|
12178
12891
|
untaxed_amount_without_fees: number;
|
|
12179
12892
|
tax_amount_without_fees: number;
|
|
@@ -12197,6 +12910,10 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
12197
12910
|
id: string;
|
|
12198
12911
|
sku?: string | undefined;
|
|
12199
12912
|
name: string;
|
|
12913
|
+
categories?: {
|
|
12914
|
+
id: string;
|
|
12915
|
+
name: string;
|
|
12916
|
+
}[] | undefined;
|
|
12200
12917
|
} | undefined;
|
|
12201
12918
|
quantity: number;
|
|
12202
12919
|
untaxed_amount: number;
|
|
@@ -12214,6 +12931,13 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
12214
12931
|
tax_amount: number;
|
|
12215
12932
|
total: number;
|
|
12216
12933
|
}[] | undefined;
|
|
12934
|
+
transactions?: {
|
|
12935
|
+
id: string;
|
|
12936
|
+
payment_method_id?: string | undefined;
|
|
12937
|
+
payment_method_name?: string | undefined;
|
|
12938
|
+
amount: number;
|
|
12939
|
+
status: "failed" | "pending" | "success";
|
|
12940
|
+
}[] | undefined;
|
|
12217
12941
|
}[] | undefined;
|
|
12218
12942
|
currency: string;
|
|
12219
12943
|
note?: string | undefined;
|
|
@@ -12228,6 +12952,10 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
12228
12952
|
id: string;
|
|
12229
12953
|
sku?: string | undefined;
|
|
12230
12954
|
name: string;
|
|
12955
|
+
categories?: {
|
|
12956
|
+
id: string;
|
|
12957
|
+
name: string;
|
|
12958
|
+
}[] | undefined;
|
|
12231
12959
|
} | undefined;
|
|
12232
12960
|
quantity: number;
|
|
12233
12961
|
unit_price: number;
|
|
@@ -12322,8 +13050,9 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
12322
13050
|
created_on?: string | undefined;
|
|
12323
13051
|
last_updated_on?: string | undefined;
|
|
12324
13052
|
confirmed_on?: string | undefined;
|
|
13053
|
+
delivery_date?: string | undefined;
|
|
12325
13054
|
cancelled_on?: string | undefined;
|
|
12326
|
-
status: "cancelled" | "draft" | "confirmed" | "shipped" | "refunded";
|
|
13055
|
+
status: "cancelled" | "draft" | "cancelled_unpaid" | "confirmed" | "shipped" | "refunded";
|
|
12327
13056
|
discount_amount: number;
|
|
12328
13057
|
untaxed_amount_without_fees: number;
|
|
12329
13058
|
tax_amount_without_fees: number;
|
|
@@ -12347,6 +13076,10 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
12347
13076
|
id: string;
|
|
12348
13077
|
sku?: string | undefined;
|
|
12349
13078
|
name: string;
|
|
13079
|
+
categories?: {
|
|
13080
|
+
id: string;
|
|
13081
|
+
name: string;
|
|
13082
|
+
}[] | undefined;
|
|
12350
13083
|
} | undefined;
|
|
12351
13084
|
quantity: number;
|
|
12352
13085
|
untaxed_amount: number;
|
|
@@ -12364,6 +13097,13 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
12364
13097
|
tax_amount: number;
|
|
12365
13098
|
total: number;
|
|
12366
13099
|
}[] | undefined;
|
|
13100
|
+
transactions?: {
|
|
13101
|
+
id: string;
|
|
13102
|
+
payment_method_id?: string | undefined;
|
|
13103
|
+
payment_method_name?: string | undefined;
|
|
13104
|
+
amount: number;
|
|
13105
|
+
status: "failed" | "pending" | "success";
|
|
13106
|
+
}[] | undefined;
|
|
12367
13107
|
}[] | undefined;
|
|
12368
13108
|
currency: string;
|
|
12369
13109
|
note?: string | undefined;
|
|
@@ -12378,6 +13118,10 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
12378
13118
|
id: string;
|
|
12379
13119
|
sku?: string | undefined;
|
|
12380
13120
|
name: string;
|
|
13121
|
+
categories?: {
|
|
13122
|
+
id: string;
|
|
13123
|
+
name: string;
|
|
13124
|
+
}[] | undefined;
|
|
12381
13125
|
} | undefined;
|
|
12382
13126
|
quantity: number;
|
|
12383
13127
|
unit_price: number;
|
|
@@ -12426,7 +13170,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
12426
13170
|
name?: string | undefined;
|
|
12427
13171
|
}[] | undefined;
|
|
12428
13172
|
}>;
|
|
12429
|
-
getPaymentMethods(params
|
|
13173
|
+
getPaymentMethods(params?: {} | undefined): import("../types/api").RequestData<{
|
|
12430
13174
|
id: string;
|
|
12431
13175
|
source_ref: {
|
|
12432
13176
|
id?: string | undefined;
|
|
@@ -12435,7 +13179,9 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
12435
13179
|
name: string;
|
|
12436
13180
|
active: boolean;
|
|
12437
13181
|
}[]>;
|
|
12438
|
-
getProductCategories(params
|
|
13182
|
+
getProductCategories(params?: {
|
|
13183
|
+
only_parents?: "true" | "false" | undefined;
|
|
13184
|
+
} | undefined): import("../types/api").RequestData<{
|
|
12439
13185
|
id: string;
|
|
12440
13186
|
source_ref: {
|
|
12441
13187
|
id?: string | undefined;
|
|
@@ -12444,7 +13190,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
12444
13190
|
name: string;
|
|
12445
13191
|
parent_id?: string | undefined;
|
|
12446
13192
|
}[]>;
|
|
12447
|
-
getTaxes(params
|
|
13193
|
+
getTaxes(params?: {} | undefined): import("../types/api").RequestData<{
|
|
12448
13194
|
id: string;
|
|
12449
13195
|
source_ref: {
|
|
12450
13196
|
id?: string | undefined;
|
|
@@ -12454,7 +13200,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
12454
13200
|
rate: number;
|
|
12455
13201
|
country?: string | undefined;
|
|
12456
13202
|
}[]>;
|
|
12457
|
-
getCountries(params
|
|
13203
|
+
getCountries(params?: {} | undefined): import("../types/api").RequestData<{
|
|
12458
13204
|
code: string;
|
|
12459
13205
|
name: string;
|
|
12460
13206
|
}[]>;
|
|
@@ -12549,6 +13295,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
12549
13295
|
}[]>;
|
|
12550
13296
|
deleteDataStoreData: (dataStoreId: string, dataStoreDataId: string) => Promise<import("../types/sync").SimpleResponseModel>;
|
|
12551
13297
|
logData: (logs: import("../types/consumers").ConsumerLog[]) => Promise<import("../types/sync").SimpleResponseModel>;
|
|
13298
|
+
setConnectionId: (connectionId: string) => Promise<void>;
|
|
13299
|
+
setIntegrationId: (integrationId: string) => Promise<void>;
|
|
12552
13300
|
}[]>;
|
|
12553
13301
|
updateConsumerById: (consumerId: string, body: operations[chiftOperations['updateConsumer']]['requestBody']['content']['application/json']) => Promise<{
|
|
12554
13302
|
consumerId: string;
|
|
@@ -12635,21 +13383,16 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
12635
13383
|
total_discount?: number | undefined;
|
|
12636
13384
|
total_refund?: number | undefined;
|
|
12637
13385
|
total_tip?: number | undefined;
|
|
12638
|
-
|
|
12639
|
-
|
|
12640
|
-
|
|
12641
|
-
|
|
12642
|
-
|
|
13386
|
+
currency?: string | undefined;
|
|
13387
|
+
country?: string | undefined;
|
|
13388
|
+
loyalty?: number | undefined;
|
|
13389
|
+
customer_id?: string | undefined;
|
|
13390
|
+
location_id?: string | undefined;
|
|
13391
|
+
taxes?: {
|
|
13392
|
+
tax_rate: number;
|
|
12643
13393
|
tax_amount: number;
|
|
12644
|
-
|
|
12645
|
-
|
|
12646
|
-
discounts?: {
|
|
12647
|
-
name?: string | undefined;
|
|
12648
|
-
total: number;
|
|
12649
|
-
}[] | undefined;
|
|
12650
|
-
product_id?: string | undefined;
|
|
12651
|
-
accounting_category_id?: string | undefined;
|
|
12652
|
-
}[];
|
|
13394
|
+
total: number;
|
|
13395
|
+
}[] | undefined;
|
|
12653
13396
|
payments: {
|
|
12654
13397
|
id?: string | undefined;
|
|
12655
13398
|
payment_method_id?: string | undefined;
|
|
@@ -12660,18 +13403,27 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
12660
13403
|
currency?: string | undefined;
|
|
12661
13404
|
date?: string | undefined;
|
|
12662
13405
|
}[];
|
|
12663
|
-
|
|
12664
|
-
|
|
12665
|
-
|
|
12666
|
-
|
|
12667
|
-
location_id?: string | undefined;
|
|
12668
|
-
taxes?: {
|
|
12669
|
-
tax_rate: number;
|
|
12670
|
-
tax_amount: number;
|
|
13406
|
+
items: {
|
|
13407
|
+
id: string;
|
|
13408
|
+
quantity: number;
|
|
13409
|
+
unit_price: number;
|
|
12671
13410
|
total: number;
|
|
12672
|
-
|
|
13411
|
+
tax_amount: number;
|
|
13412
|
+
tax_rate?: number | undefined;
|
|
13413
|
+
description?: string | undefined;
|
|
13414
|
+
discounts?: {
|
|
13415
|
+
name?: string | undefined;
|
|
13416
|
+
total: number;
|
|
13417
|
+
}[] | undefined;
|
|
13418
|
+
product_id?: string | undefined;
|
|
13419
|
+
accounting_category_id?: string | undefined;
|
|
13420
|
+
}[];
|
|
12673
13421
|
}[]>;
|
|
12674
|
-
getCustomers(params
|
|
13422
|
+
getCustomers(params?: {
|
|
13423
|
+
search?: string | undefined;
|
|
13424
|
+
email?: string | undefined;
|
|
13425
|
+
phone?: string | undefined;
|
|
13426
|
+
} | undefined): import("../types/api").RequestData<{
|
|
12675
13427
|
id: string;
|
|
12676
13428
|
first_name?: string | undefined;
|
|
12677
13429
|
last_name?: string | undefined;
|
|
@@ -12704,6 +13456,26 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
12704
13456
|
total_discount?: number | undefined;
|
|
12705
13457
|
total_refund?: number | undefined;
|
|
12706
13458
|
total_tip?: number | undefined;
|
|
13459
|
+
currency?: string | undefined;
|
|
13460
|
+
country?: string | undefined;
|
|
13461
|
+
loyalty?: number | undefined;
|
|
13462
|
+
customer_id?: string | undefined;
|
|
13463
|
+
location_id?: string | undefined;
|
|
13464
|
+
taxes?: {
|
|
13465
|
+
tax_rate: number;
|
|
13466
|
+
tax_amount: number;
|
|
13467
|
+
total: number;
|
|
13468
|
+
}[] | undefined;
|
|
13469
|
+
payments: {
|
|
13470
|
+
id?: string | undefined;
|
|
13471
|
+
payment_method_id?: string | undefined;
|
|
13472
|
+
payment_method_name?: string | undefined;
|
|
13473
|
+
total: number;
|
|
13474
|
+
tip?: number | undefined;
|
|
13475
|
+
status?: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised" | undefined;
|
|
13476
|
+
currency?: string | undefined;
|
|
13477
|
+
date?: string | undefined;
|
|
13478
|
+
}[];
|
|
12707
13479
|
items: {
|
|
12708
13480
|
id: string;
|
|
12709
13481
|
quantity: number;
|
|
@@ -12719,26 +13491,6 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
12719
13491
|
product_id?: string | undefined;
|
|
12720
13492
|
accounting_category_id?: string | undefined;
|
|
12721
13493
|
}[];
|
|
12722
|
-
payments: {
|
|
12723
|
-
id?: string | undefined;
|
|
12724
|
-
payment_method_id?: string | undefined;
|
|
12725
|
-
payment_method_name?: string | undefined;
|
|
12726
|
-
total: number;
|
|
12727
|
-
tip?: number | undefined;
|
|
12728
|
-
status?: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised" | undefined;
|
|
12729
|
-
currency?: string | undefined;
|
|
12730
|
-
date?: string | undefined;
|
|
12731
|
-
}[];
|
|
12732
|
-
currency?: string | undefined;
|
|
12733
|
-
country?: string | undefined;
|
|
12734
|
-
loyalty?: number | undefined;
|
|
12735
|
-
customer_id?: string | undefined;
|
|
12736
|
-
location_id?: string | undefined;
|
|
12737
|
-
taxes?: {
|
|
12738
|
-
tax_rate: number;
|
|
12739
|
-
tax_amount: number;
|
|
12740
|
-
total: number;
|
|
12741
|
-
}[] | undefined;
|
|
12742
13494
|
}>;
|
|
12743
13495
|
getCustomer(customerId: string): import("../types/api").RequestData<{
|
|
12744
13496
|
id: string;
|
|
@@ -12796,12 +13548,17 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
12796
13548
|
loyalty?: number | undefined;
|
|
12797
13549
|
birthdate?: string | undefined;
|
|
12798
13550
|
}>;
|
|
12799
|
-
getPaymentMethods(params
|
|
13551
|
+
getPaymentMethods(params?: {
|
|
13552
|
+
location_id?: string | undefined;
|
|
13553
|
+
} | undefined): import("../types/api").RequestData<{
|
|
12800
13554
|
id: string;
|
|
12801
13555
|
name: string;
|
|
12802
13556
|
extra?: string | undefined;
|
|
12803
13557
|
}[]>;
|
|
12804
|
-
getProductCategories(params
|
|
13558
|
+
getProductCategories(params?: {
|
|
13559
|
+
location_id?: string | undefined;
|
|
13560
|
+
only_parents?: "true" | "false" | undefined;
|
|
13561
|
+
} | undefined): import("../types/api").RequestData<{
|
|
12805
13562
|
id: string;
|
|
12806
13563
|
source_ref: {
|
|
12807
13564
|
id?: string | undefined;
|
|
@@ -12810,7 +13567,9 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
12810
13567
|
name: string;
|
|
12811
13568
|
parent_id?: string | undefined;
|
|
12812
13569
|
}[]>;
|
|
12813
|
-
getProducts(params
|
|
13570
|
+
getProducts(params?: {
|
|
13571
|
+
location_id?: string | undefined;
|
|
13572
|
+
} | undefined): import("../types/api").RequestData<{
|
|
12814
13573
|
id: string;
|
|
12815
13574
|
categories?: string[] | undefined;
|
|
12816
13575
|
name: string;
|
|
@@ -12834,7 +13593,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
12834
13593
|
total: number;
|
|
12835
13594
|
}[] | undefined;
|
|
12836
13595
|
}>;
|
|
12837
|
-
getClosure(date: string, params
|
|
13596
|
+
getClosure(date: string, params?: {
|
|
12838
13597
|
location_id?: string | undefined;
|
|
12839
13598
|
} | undefined): import("../types/api").RequestData<{
|
|
12840
13599
|
date: string;
|
|
@@ -12867,6 +13626,26 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
12867
13626
|
total_discount?: number | undefined;
|
|
12868
13627
|
total_refund?: number | undefined;
|
|
12869
13628
|
total_tip?: number | undefined;
|
|
13629
|
+
currency?: string | undefined;
|
|
13630
|
+
country?: string | undefined;
|
|
13631
|
+
loyalty?: number | undefined;
|
|
13632
|
+
customer_id?: string | undefined;
|
|
13633
|
+
location_id?: string | undefined;
|
|
13634
|
+
taxes?: {
|
|
13635
|
+
tax_rate: number;
|
|
13636
|
+
tax_amount: number;
|
|
13637
|
+
total: number;
|
|
13638
|
+
}[] | undefined;
|
|
13639
|
+
payments: {
|
|
13640
|
+
id?: string | undefined;
|
|
13641
|
+
payment_method_id?: string | undefined;
|
|
13642
|
+
payment_method_name?: string | undefined;
|
|
13643
|
+
total: number;
|
|
13644
|
+
tip?: number | undefined;
|
|
13645
|
+
status?: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised" | undefined;
|
|
13646
|
+
currency?: string | undefined;
|
|
13647
|
+
date?: string | undefined;
|
|
13648
|
+
}[];
|
|
12870
13649
|
items: {
|
|
12871
13650
|
id: string;
|
|
12872
13651
|
quantity: number;
|
|
@@ -12882,16 +13661,53 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
12882
13661
|
product_id?: string | undefined;
|
|
12883
13662
|
accounting_category_id?: string | undefined;
|
|
12884
13663
|
}[];
|
|
12885
|
-
|
|
13664
|
+
}>;
|
|
13665
|
+
getAccountingCategories(params?: {} | undefined): import("../types/api").RequestData<{
|
|
13666
|
+
id: string;
|
|
13667
|
+
name: string;
|
|
13668
|
+
id_parent?: string | undefined;
|
|
13669
|
+
code?: string | undefined;
|
|
13670
|
+
ledger_account_code?: string | undefined;
|
|
13671
|
+
posting_account_code?: string | undefined;
|
|
13672
|
+
}[]>;
|
|
13673
|
+
}>;
|
|
13674
|
+
pms: import("../types/api").ApiFor<{
|
|
13675
|
+
getLocations(): import("../types/api").RequestData<{
|
|
13676
|
+
id: string;
|
|
13677
|
+
name: string;
|
|
13678
|
+
timezone?: string | undefined;
|
|
13679
|
+
address?: {
|
|
13680
|
+
address_type?: string | undefined;
|
|
13681
|
+
name?: string | undefined;
|
|
13682
|
+
street?: string | undefined;
|
|
13683
|
+
number?: string | undefined;
|
|
13684
|
+
box?: string | undefined;
|
|
13685
|
+
city?: string | undefined;
|
|
13686
|
+
postal_code?: string | undefined;
|
|
13687
|
+
country?: string | undefined;
|
|
13688
|
+
} | undefined;
|
|
13689
|
+
}[]>;
|
|
13690
|
+
getOrders(params: {
|
|
13691
|
+
date_from: string;
|
|
13692
|
+
date_to: string;
|
|
13693
|
+
location_id?: string | undefined;
|
|
13694
|
+
state?: "closed" | "consumed" | undefined;
|
|
13695
|
+
}): import("../types/api").RequestData<{
|
|
13696
|
+
id: string;
|
|
13697
|
+
source_ref: {
|
|
12886
13698
|
id?: string | undefined;
|
|
12887
|
-
|
|
12888
|
-
|
|
12889
|
-
|
|
12890
|
-
|
|
12891
|
-
|
|
12892
|
-
|
|
12893
|
-
|
|
12894
|
-
|
|
13699
|
+
model?: string | undefined;
|
|
13700
|
+
};
|
|
13701
|
+
order_number?: string | undefined;
|
|
13702
|
+
creation_date: string;
|
|
13703
|
+
closing_date?: string | undefined;
|
|
13704
|
+
service_date?: string | undefined;
|
|
13705
|
+
device_id?: string | undefined;
|
|
13706
|
+
total: number;
|
|
13707
|
+
tax_amount: number;
|
|
13708
|
+
total_discount?: number | undefined;
|
|
13709
|
+
total_refund?: number | undefined;
|
|
13710
|
+
total_tip?: number | undefined;
|
|
12895
13711
|
currency?: string | undefined;
|
|
12896
13712
|
country?: string | undefined;
|
|
12897
13713
|
loyalty?: number | undefined;
|
|
@@ -12902,9 +13718,68 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
12902
13718
|
tax_amount: number;
|
|
12903
13719
|
total: number;
|
|
12904
13720
|
}[] | undefined;
|
|
13721
|
+
items: {
|
|
13722
|
+
id: string;
|
|
13723
|
+
source_ref: {
|
|
13724
|
+
id?: string | undefined;
|
|
13725
|
+
model?: string | undefined;
|
|
13726
|
+
};
|
|
13727
|
+
quantity: number;
|
|
13728
|
+
unit_price: number;
|
|
13729
|
+
total: number;
|
|
13730
|
+
tax_amount: number;
|
|
13731
|
+
tax_rate?: number | undefined;
|
|
13732
|
+
description?: string | undefined;
|
|
13733
|
+
discounts?: {
|
|
13734
|
+
name?: string | undefined;
|
|
13735
|
+
total: number;
|
|
13736
|
+
}[] | undefined;
|
|
13737
|
+
product_id?: string | undefined;
|
|
13738
|
+
accounting_category_id?: string | undefined;
|
|
13739
|
+
}[];
|
|
13740
|
+
service_id?: string | undefined;
|
|
13741
|
+
}[]>;
|
|
13742
|
+
getPaymentMethods(params?: {
|
|
13743
|
+
location_id?: string | undefined;
|
|
13744
|
+
} | undefined): import("../types/api").RequestData<{
|
|
13745
|
+
id: string;
|
|
13746
|
+
source_ref: {
|
|
13747
|
+
id?: string | undefined;
|
|
13748
|
+
model?: string | undefined;
|
|
13749
|
+
};
|
|
13750
|
+
name: string;
|
|
13751
|
+
extra?: string | undefined;
|
|
13752
|
+
ledger_account_code?: string | undefined;
|
|
13753
|
+
}[]>;
|
|
13754
|
+
getClosure(date: string, params?: {
|
|
13755
|
+
location_id?: string | undefined;
|
|
13756
|
+
} | undefined): import("../types/api").RequestData<{
|
|
13757
|
+
date: string;
|
|
13758
|
+
status: "open" | "closed";
|
|
12905
13759
|
}>;
|
|
12906
|
-
|
|
13760
|
+
getPayments(params: {
|
|
13761
|
+
date_from: string;
|
|
13762
|
+
date_to: string;
|
|
13763
|
+
}): import("../types/api").RequestData<{
|
|
13764
|
+
id?: string | undefined;
|
|
13765
|
+
source_ref: {
|
|
13766
|
+
id?: string | undefined;
|
|
13767
|
+
model?: string | undefined;
|
|
13768
|
+
};
|
|
13769
|
+
payment_method_id?: string | undefined;
|
|
13770
|
+
payment_method_name?: string | undefined;
|
|
13771
|
+
total: number;
|
|
13772
|
+
tip?: number | undefined;
|
|
13773
|
+
status?: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised" | undefined;
|
|
13774
|
+
currency?: string | undefined;
|
|
13775
|
+
date?: string | undefined;
|
|
13776
|
+
}[]>;
|
|
13777
|
+
getAccountingCategories(params?: {} | undefined): import("../types/api").RequestData<{
|
|
12907
13778
|
id: string;
|
|
13779
|
+
source_ref: {
|
|
13780
|
+
id?: string | undefined;
|
|
13781
|
+
model?: string | undefined;
|
|
13782
|
+
};
|
|
12908
13783
|
name: string;
|
|
12909
13784
|
id_parent?: string | undefined;
|
|
12910
13785
|
code?: string | undefined;
|
|
@@ -12913,19 +13788,15 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
12913
13788
|
}[]>;
|
|
12914
13789
|
}>;
|
|
12915
13790
|
accounting: import("../types/api").ApiFor<{
|
|
12916
|
-
getAnalyticPlans(params
|
|
13791
|
+
getAnalyticPlans(params?: {
|
|
12917
13792
|
folder_id?: string | undefined;
|
|
12918
|
-
page?: number | undefined;
|
|
12919
|
-
size?: number | undefined;
|
|
12920
13793
|
} | undefined): import("../types/api").RequestData<{
|
|
12921
13794
|
id: string;
|
|
12922
13795
|
name: string;
|
|
12923
13796
|
active?: boolean | undefined;
|
|
12924
13797
|
}[]>;
|
|
12925
|
-
getClients(params
|
|
13798
|
+
getClients(params?: {
|
|
12926
13799
|
folder_id?: string | undefined;
|
|
12927
|
-
page?: number | undefined;
|
|
12928
|
-
size?: number | undefined;
|
|
12929
13800
|
} | undefined): import("../types/api").RequestData<{
|
|
12930
13801
|
external_reference?: string | undefined;
|
|
12931
13802
|
first_name?: string | undefined;
|
|
@@ -12995,7 +13866,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
12995
13866
|
country: string;
|
|
12996
13867
|
}[];
|
|
12997
13868
|
account_number?: string | undefined;
|
|
12998
|
-
}, params
|
|
13869
|
+
}, params?: {
|
|
12999
13870
|
force_merge?: string | undefined;
|
|
13000
13871
|
folder_id?: string | undefined;
|
|
13001
13872
|
} | undefined): import("../types/api").RequestData<{
|
|
@@ -13034,7 +13905,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
13034
13905
|
company_number?: string | undefined;
|
|
13035
13906
|
id?: string | undefined;
|
|
13036
13907
|
}>;
|
|
13037
|
-
getClient(clientId: string, params
|
|
13908
|
+
getClient(clientId: string, params?: {
|
|
13038
13909
|
folder_id?: string | undefined;
|
|
13039
13910
|
} | undefined): import("../types/api").RequestData<{
|
|
13040
13911
|
external_reference?: string | undefined;
|
|
@@ -13104,7 +13975,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
13104
13975
|
postal_code?: string | undefined;
|
|
13105
13976
|
country?: string | undefined;
|
|
13106
13977
|
}[] | undefined;
|
|
13107
|
-
}, params
|
|
13978
|
+
}, params?: {
|
|
13108
13979
|
folder_id?: string | undefined;
|
|
13109
13980
|
} | undefined): import("../types/api").RequestData<{
|
|
13110
13981
|
external_reference?: string | undefined;
|
|
@@ -13142,10 +14013,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
13142
14013
|
company_number?: string | undefined;
|
|
13143
14014
|
id?: string | undefined;
|
|
13144
14015
|
}>;
|
|
13145
|
-
getSuppliers(params
|
|
14016
|
+
getSuppliers(params?: {
|
|
13146
14017
|
folder_id?: string | undefined;
|
|
13147
|
-
page?: number | undefined;
|
|
13148
|
-
size?: number | undefined;
|
|
13149
14018
|
} | undefined): import("../types/api").RequestData<{
|
|
13150
14019
|
external_reference?: string | undefined;
|
|
13151
14020
|
first_name?: string | undefined;
|
|
@@ -13215,7 +14084,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
13215
14084
|
country: string;
|
|
13216
14085
|
}[];
|
|
13217
14086
|
account_number?: string | undefined;
|
|
13218
|
-
}, params
|
|
14087
|
+
}, params?: {
|
|
13219
14088
|
force_merge?: string | undefined;
|
|
13220
14089
|
folder_id?: string | undefined;
|
|
13221
14090
|
} | undefined): import("../types/api").RequestData<{
|
|
@@ -13254,7 +14123,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
13254
14123
|
company_number?: string | undefined;
|
|
13255
14124
|
id?: string | undefined;
|
|
13256
14125
|
}>;
|
|
13257
|
-
getSupplier(supplierId: string, params
|
|
14126
|
+
getSupplier(supplierId: string, params?: {
|
|
13258
14127
|
folder_id?: string | undefined;
|
|
13259
14128
|
} | undefined): import("../types/api").RequestData<{
|
|
13260
14129
|
external_reference?: string | undefined;
|
|
@@ -13324,7 +14193,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
13324
14193
|
postal_code?: string | undefined;
|
|
13325
14194
|
country?: string | undefined;
|
|
13326
14195
|
}[] | undefined;
|
|
13327
|
-
}, params
|
|
14196
|
+
}, params?: {
|
|
13328
14197
|
folder_id?: string | undefined;
|
|
13329
14198
|
} | undefined): import("../types/api").RequestData<{
|
|
13330
14199
|
external_reference?: string | undefined;
|
|
@@ -13395,6 +14264,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
13395
14264
|
iban: string;
|
|
13396
14265
|
};
|
|
13397
14266
|
} | undefined;
|
|
14267
|
+
shipping_country?: string | undefined;
|
|
13398
14268
|
lines: {
|
|
13399
14269
|
line_number?: number | undefined;
|
|
13400
14270
|
description: string;
|
|
@@ -13409,7 +14279,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
13409
14279
|
tax_code: string;
|
|
13410
14280
|
analytic_account?: string | undefined;
|
|
13411
14281
|
}[];
|
|
13412
|
-
}, params
|
|
14282
|
+
}, params?: {
|
|
13413
14283
|
force_financial_period?: string | undefined;
|
|
13414
14284
|
regroup_lines?: "true" | "false" | undefined;
|
|
13415
14285
|
folder_id?: string | undefined;
|
|
@@ -13491,6 +14361,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
13491
14361
|
iban: string;
|
|
13492
14362
|
};
|
|
13493
14363
|
} | undefined;
|
|
14364
|
+
shipping_country?: string | undefined;
|
|
13494
14365
|
lines: {
|
|
13495
14366
|
line_number?: number | undefined;
|
|
13496
14367
|
description: string;
|
|
@@ -13511,7 +14382,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
13511
14382
|
}[];
|
|
13512
14383
|
}[] | undefined;
|
|
13513
14384
|
}[];
|
|
13514
|
-
}, params
|
|
14385
|
+
}, params?: {
|
|
13515
14386
|
force_financial_period?: string | undefined;
|
|
13516
14387
|
regroup_lines?: "true" | "false" | undefined;
|
|
13517
14388
|
folder_id?: string | undefined;
|
|
@@ -13566,7 +14437,14 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
13566
14437
|
}[] | undefined;
|
|
13567
14438
|
}[];
|
|
13568
14439
|
}>;
|
|
13569
|
-
getInvoicesByType(invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund", params
|
|
14440
|
+
getInvoicesByType(invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund", params?: {
|
|
14441
|
+
date_from?: string | undefined;
|
|
14442
|
+
date_to?: string | undefined;
|
|
14443
|
+
folder_id?: string | undefined;
|
|
14444
|
+
journal_ids?: string | undefined;
|
|
14445
|
+
include_payments?: "true" | "false" | undefined;
|
|
14446
|
+
payment_status?: "all" | "paid" | "unpaid" | undefined;
|
|
14447
|
+
} | undefined): import("../types/api").RequestData<{
|
|
13570
14448
|
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
13571
14449
|
invoice_number?: string | undefined;
|
|
13572
14450
|
currency: string;
|
|
@@ -13611,7 +14489,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
13611
14489
|
analytic_account?: string | undefined;
|
|
13612
14490
|
}[];
|
|
13613
14491
|
}[]>;
|
|
13614
|
-
getInvoice(invoiceId: string, params
|
|
14492
|
+
getInvoice(invoiceId: string, params?: {
|
|
13615
14493
|
include_payments?: "true" | "false" | undefined;
|
|
13616
14494
|
folder_id?: string | undefined;
|
|
13617
14495
|
} | undefined): import("../types/api").RequestData<{
|
|
@@ -13659,7 +14537,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
13659
14537
|
analytic_account?: string | undefined;
|
|
13660
14538
|
}[];
|
|
13661
14539
|
}>;
|
|
13662
|
-
getInvoiceWithMultiplePlans(invoiceId: string, params
|
|
14540
|
+
getInvoiceWithMultiplePlans(invoiceId: string, params?: {
|
|
13663
14541
|
include_payments?: "true" | "false" | undefined;
|
|
13664
14542
|
folder_id?: string | undefined;
|
|
13665
14543
|
} | undefined): import("../types/api").RequestData<{
|
|
@@ -13713,7 +14591,14 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
13713
14591
|
}[] | undefined;
|
|
13714
14592
|
}[];
|
|
13715
14593
|
}>;
|
|
13716
|
-
getInvoicesByTypeWithMultiplePlans(invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund", params
|
|
14594
|
+
getInvoicesByTypeWithMultiplePlans(invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund", params?: {
|
|
14595
|
+
date_from?: string | undefined;
|
|
14596
|
+
date_to?: string | undefined;
|
|
14597
|
+
folder_id?: string | undefined;
|
|
14598
|
+
journal_ids?: string | undefined;
|
|
14599
|
+
include_payments?: "true" | "false" | undefined;
|
|
14600
|
+
payment_status?: "all" | "paid" | "unpaid" | undefined;
|
|
14601
|
+
} | undefined): import("../types/api").RequestData<{
|
|
13717
14602
|
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
13718
14603
|
invoice_number?: string | undefined;
|
|
13719
14604
|
currency: string;
|
|
@@ -13769,7 +14654,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
13769
14654
|
code: string;
|
|
13770
14655
|
name: string;
|
|
13771
14656
|
currency: string;
|
|
13772
|
-
}, params
|
|
14657
|
+
}, params?: {
|
|
13773
14658
|
folder_id?: string | undefined;
|
|
13774
14659
|
} | undefined): import("../types/api").RequestData<{
|
|
13775
14660
|
id: string;
|
|
@@ -13781,10 +14666,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
13781
14666
|
credit?: number | undefined;
|
|
13782
14667
|
debit?: number | undefined;
|
|
13783
14668
|
}>;
|
|
13784
|
-
getAnalyticAccounts(params
|
|
14669
|
+
getAnalyticAccounts(params?: {
|
|
13785
14670
|
folder_id?: string | undefined;
|
|
13786
|
-
page?: number | undefined;
|
|
13787
|
-
size?: number | undefined;
|
|
13788
14671
|
} | undefined): import("../types/api").RequestData<{
|
|
13789
14672
|
id: string;
|
|
13790
14673
|
active: boolean;
|
|
@@ -13800,7 +14683,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
13800
14683
|
code: string;
|
|
13801
14684
|
name: string;
|
|
13802
14685
|
currency: string;
|
|
13803
|
-
}, params
|
|
14686
|
+
}, params?: {
|
|
13804
14687
|
folder_id?: string | undefined;
|
|
13805
14688
|
} | undefined): import("../types/api").RequestData<{
|
|
13806
14689
|
id: string;
|
|
@@ -13813,7 +14696,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
13813
14696
|
debit?: number | undefined;
|
|
13814
14697
|
analytic_plan: string;
|
|
13815
14698
|
}>;
|
|
13816
|
-
getAnalyticAccount(analytic_account_id: string, params
|
|
14699
|
+
getAnalyticAccount(analytic_account_id: string, params?: {
|
|
13817
14700
|
folder_id?: string | undefined;
|
|
13818
14701
|
} | undefined): import("../types/api").RequestData<{
|
|
13819
14702
|
id: string;
|
|
@@ -13830,7 +14713,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
13830
14713
|
code?: string | undefined;
|
|
13831
14714
|
name?: string | undefined;
|
|
13832
14715
|
currency?: string | undefined;
|
|
13833
|
-
}, params
|
|
14716
|
+
}, params?: {
|
|
13834
14717
|
folder_id?: string | undefined;
|
|
13835
14718
|
} | undefined): import("../types/api").RequestData<{
|
|
13836
14719
|
id: string;
|
|
@@ -13842,7 +14725,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
13842
14725
|
credit?: number | undefined;
|
|
13843
14726
|
debit?: number | undefined;
|
|
13844
14727
|
}>;
|
|
13845
|
-
getAnalyticAccountWithMultiplePlans(analytic_account_id: string, analytic_plan: string, params
|
|
14728
|
+
getAnalyticAccountWithMultiplePlans(analytic_account_id: string, analytic_plan: string, params?: {
|
|
13846
14729
|
folder_id?: string | undefined;
|
|
13847
14730
|
} | undefined): import("../types/api").RequestData<{
|
|
13848
14731
|
id: string;
|
|
@@ -13860,7 +14743,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
13860
14743
|
code?: string | undefined;
|
|
13861
14744
|
name?: string | undefined;
|
|
13862
14745
|
currency?: string | undefined;
|
|
13863
|
-
}, params
|
|
14746
|
+
}, params?: {
|
|
13864
14747
|
folder_id?: string | undefined;
|
|
13865
14748
|
} | undefined): import("../types/api").RequestData<{
|
|
13866
14749
|
id: string;
|
|
@@ -13873,10 +14756,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
13873
14756
|
debit?: number | undefined;
|
|
13874
14757
|
analytic_plan: string;
|
|
13875
14758
|
}>;
|
|
13876
|
-
getAnalyticAccountsWithMultiplePlans(params
|
|
14759
|
+
getAnalyticAccountsWithMultiplePlans(params?: {
|
|
13877
14760
|
folder_id?: string | undefined;
|
|
13878
|
-
page?: number | undefined;
|
|
13879
|
-
size?: number | undefined;
|
|
13880
14761
|
} | undefined): import("../types/api").RequestData<{
|
|
13881
14762
|
id: string;
|
|
13882
14763
|
active: boolean;
|
|
@@ -13957,7 +14838,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
13957
14838
|
}[] | undefined;
|
|
13958
14839
|
}[] | undefined;
|
|
13959
14840
|
}[]>;
|
|
13960
|
-
getPaymentsByInvoiceId(invoice_id: string, params
|
|
14841
|
+
getPaymentsByInvoiceId(invoice_id: string, params?: {
|
|
13961
14842
|
folder_id?: string | undefined;
|
|
13962
14843
|
page?: number | undefined;
|
|
13963
14844
|
size?: number | undefined;
|
|
@@ -13975,20 +14856,16 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
13975
14856
|
communication?: string | undefined;
|
|
13976
14857
|
matching_number?: string | undefined;
|
|
13977
14858
|
}[]>;
|
|
13978
|
-
getJournals(params
|
|
14859
|
+
getJournals(params?: {
|
|
13979
14860
|
folder_id?: string | undefined;
|
|
13980
|
-
page?: number | undefined;
|
|
13981
|
-
size?: number | undefined;
|
|
13982
14861
|
} | undefined): import("../types/api").RequestData<{
|
|
13983
14862
|
id: string;
|
|
13984
14863
|
code?: string | undefined;
|
|
13985
14864
|
name: string;
|
|
13986
14865
|
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
13987
14866
|
}[]>;
|
|
13988
|
-
getVatCodes(params
|
|
14867
|
+
getVatCodes(params?: {
|
|
13989
14868
|
folder_id?: string | undefined;
|
|
13990
|
-
page?: number | undefined;
|
|
13991
|
-
size?: number | undefined;
|
|
13992
14869
|
} | undefined): import("../types/api").RequestData<{
|
|
13993
14870
|
id: string;
|
|
13994
14871
|
code?: string | undefined;
|
|
@@ -13999,7 +14876,12 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
13999
14876
|
deductible_account?: string | undefined;
|
|
14000
14877
|
payable_account?: string | undefined;
|
|
14001
14878
|
}[]>;
|
|
14002
|
-
getMiscOperations(params
|
|
14879
|
+
getMiscOperations(params?: {
|
|
14880
|
+
date_from?: string | undefined;
|
|
14881
|
+
date_to?: string | undefined;
|
|
14882
|
+
folder_id?: string | undefined;
|
|
14883
|
+
journal_ids?: string | undefined;
|
|
14884
|
+
} | undefined): import("../types/api").RequestData<{
|
|
14003
14885
|
operation_number?: string | undefined;
|
|
14004
14886
|
currency: string;
|
|
14005
14887
|
currency_exchange_rate?: number | undefined;
|
|
@@ -14033,7 +14915,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
14033
14915
|
operation_date: string;
|
|
14034
14916
|
journal_id?: string | undefined;
|
|
14035
14917
|
status?: "draft" | "posted" | undefined;
|
|
14036
|
-
}, params
|
|
14918
|
+
}, params?: {
|
|
14037
14919
|
folder_id?: string | undefined;
|
|
14038
14920
|
} | undefined): import("../types/api").RequestData<{
|
|
14039
14921
|
operation_number?: string | undefined;
|
|
@@ -14053,7 +14935,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
14053
14935
|
status: "cancelled" | "draft" | "posted" | "matched";
|
|
14054
14936
|
id: string;
|
|
14055
14937
|
}>;
|
|
14056
|
-
getMiscOperation(operation_id: string, params
|
|
14938
|
+
getMiscOperation(operation_id: string, params?: {
|
|
14057
14939
|
folder_id?: string | undefined;
|
|
14058
14940
|
} | undefined): import("../types/api").RequestData<{
|
|
14059
14941
|
operation_number?: string | undefined;
|
|
@@ -14075,24 +14957,25 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
14075
14957
|
}>;
|
|
14076
14958
|
attachPDF(invoice_id: string, attachment: {
|
|
14077
14959
|
base64_string: string;
|
|
14078
|
-
}, params
|
|
14960
|
+
}, params?: {
|
|
14079
14961
|
overwrite_existing?: "true" | "false" | undefined;
|
|
14080
14962
|
folder_id?: string | undefined;
|
|
14081
14963
|
} | undefined): import("../types/api").RequestData<{
|
|
14082
14964
|
content: {
|
|
14083
|
-
|
|
14965
|
+
'application/json': unknown;
|
|
14084
14966
|
};
|
|
14085
14967
|
}>;
|
|
14086
14968
|
getAttachments(params: {
|
|
14969
|
+
folder_id?: string | undefined;
|
|
14087
14970
|
type: "invoice" | "entry";
|
|
14088
14971
|
document_id: string;
|
|
14089
|
-
folder_id?: string | undefined;
|
|
14090
|
-
page?: number | undefined;
|
|
14091
|
-
size?: number | undefined;
|
|
14092
14972
|
}): import("../types/api").RequestData<{
|
|
14093
14973
|
base64_string: string;
|
|
14094
14974
|
}[]>;
|
|
14095
|
-
getChartOfAccounts(params
|
|
14975
|
+
getChartOfAccounts(params?: {
|
|
14976
|
+
classes?: string | undefined;
|
|
14977
|
+
folder_id?: string | undefined;
|
|
14978
|
+
} | undefined): import("../types/api").RequestData<{
|
|
14096
14979
|
number: string;
|
|
14097
14980
|
name: string;
|
|
14098
14981
|
active?: boolean | undefined;
|
|
@@ -14102,10 +14985,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
14102
14985
|
accounts: string[];
|
|
14103
14986
|
start?: string | undefined;
|
|
14104
14987
|
end: string;
|
|
14105
|
-
}, params
|
|
14988
|
+
}, params?: {
|
|
14106
14989
|
folder_id?: string | undefined;
|
|
14107
|
-
page?: number | undefined;
|
|
14108
|
-
size?: number | undefined;
|
|
14109
14990
|
} | undefined): import("../types/api").RequestData<{
|
|
14110
14991
|
account_number: string;
|
|
14111
14992
|
account_name?: string | undefined;
|
|
@@ -14113,10 +14994,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
14113
14994
|
credit: number;
|
|
14114
14995
|
balance: number;
|
|
14115
14996
|
}[]>;
|
|
14116
|
-
getEmployees(params
|
|
14997
|
+
getEmployees(params?: {
|
|
14117
14998
|
folder_id?: string | undefined;
|
|
14118
|
-
page?: number | undefined;
|
|
14119
|
-
size?: number | undefined;
|
|
14120
14999
|
} | undefined): import("../types/api").RequestData<{
|
|
14121
15000
|
id: string;
|
|
14122
15001
|
name: string;
|
|
@@ -14132,8 +15011,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
14132
15011
|
}[]>;
|
|
14133
15012
|
getOutstandings(params: {
|
|
14134
15013
|
folder_id?: string | undefined;
|
|
14135
|
-
unposted_allowed: "true" | "false";
|
|
14136
15014
|
type: "supplier" | "client";
|
|
15015
|
+
unposted_allowed: "true" | "false";
|
|
14137
15016
|
}): import("../types/api").RequestData<{
|
|
14138
15017
|
id: string;
|
|
14139
15018
|
number?: string | undefined;
|
|
@@ -14166,7 +15045,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
14166
15045
|
description?: string | undefined;
|
|
14167
15046
|
}[];
|
|
14168
15047
|
pdf?: string | undefined;
|
|
14169
|
-
}, params
|
|
15048
|
+
}, params?: {
|
|
14170
15049
|
financial_counterpart_account?: string | undefined;
|
|
14171
15050
|
folder_id?: string | undefined;
|
|
14172
15051
|
} | undefined): import("../types/api").RequestData<{
|
|
@@ -14200,7 +15079,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
14200
15079
|
description?: string | undefined;
|
|
14201
15080
|
}[];
|
|
14202
15081
|
pdf?: string | undefined;
|
|
14203
|
-
}, params
|
|
15082
|
+
}, params?: {
|
|
14204
15083
|
financial_counterpart_account?: string | undefined;
|
|
14205
15084
|
folder_id?: string | undefined;
|
|
14206
15085
|
} | undefined): import("../types/api").RequestData<{
|
|
@@ -14299,7 +15178,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
14299
15178
|
}[];
|
|
14300
15179
|
pdf?: string | undefined;
|
|
14301
15180
|
posted?: boolean | undefined;
|
|
14302
|
-
}, params
|
|
15181
|
+
}, params?: {
|
|
14303
15182
|
folder_id?: string | undefined;
|
|
14304
15183
|
} | undefined): import("../types/api").RequestData<{
|
|
14305
15184
|
reference?: string | undefined;
|
|
@@ -14334,7 +15213,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
14334
15213
|
matchEntries(body: {
|
|
14335
15214
|
entries: string[];
|
|
14336
15215
|
partner_id: string;
|
|
14337
|
-
}, params
|
|
15216
|
+
}, params?: {
|
|
14338
15217
|
folder_id?: string | undefined;
|
|
14339
15218
|
} | undefined): import("../types/api").RequestData<{
|
|
14340
15219
|
matching_number: string;
|
|
@@ -14344,17 +15223,17 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
14344
15223
|
id: string;
|
|
14345
15224
|
name: string;
|
|
14346
15225
|
selected?: boolean | undefined;
|
|
15226
|
+
vat?: string | undefined;
|
|
15227
|
+
company_number?: string | undefined;
|
|
14347
15228
|
}[]>;
|
|
14348
15229
|
}>;
|
|
14349
15230
|
invoicing: import("../types/api").ApiFor<{
|
|
14350
|
-
getInvoices(params
|
|
14351
|
-
invoice_type?: "all" | "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | undefined;
|
|
14352
|
-
payment_status?: "all" | "paid" | "unpaid" | undefined;
|
|
15231
|
+
getInvoices(params?: {
|
|
14353
15232
|
date_from?: string | undefined;
|
|
14354
15233
|
date_to?: string | undefined;
|
|
15234
|
+
payment_status?: "all" | "paid" | "unpaid" | undefined;
|
|
15235
|
+
invoice_type?: "all" | "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | undefined;
|
|
14355
15236
|
updated_after?: string | undefined;
|
|
14356
|
-
page?: number | undefined;
|
|
14357
|
-
size?: number | undefined;
|
|
14358
15237
|
} | undefined): import("../types/api").RequestData<{
|
|
14359
15238
|
id: string;
|
|
14360
15239
|
source_ref: {
|
|
@@ -14398,7 +15277,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
14398
15277
|
outstanding_amount?: number | undefined;
|
|
14399
15278
|
last_updated_on?: string | undefined;
|
|
14400
15279
|
}[]>;
|
|
14401
|
-
getInvoiceById(invoiceId: string, params
|
|
15280
|
+
getInvoiceById(invoiceId: string, params?: {
|
|
14402
15281
|
include_pdf?: "true" | "false" | undefined;
|
|
14403
15282
|
} | undefined): import("../types/api").RequestData<{
|
|
14404
15283
|
id: string;
|
|
@@ -14660,8 +15539,6 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
14660
15539
|
}>;
|
|
14661
15540
|
getContacts(params?: {
|
|
14662
15541
|
contact_type?: "prospect" | "customer" | "supplier" | "all" | undefined;
|
|
14663
|
-
page?: number | undefined;
|
|
14664
|
-
size?: number | undefined;
|
|
14665
15542
|
} | undefined): import("../types/api").RequestData<{
|
|
14666
15543
|
id: string;
|
|
14667
15544
|
source_ref: {
|
|
@@ -15072,7 +15949,13 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
15072
15949
|
id: string;
|
|
15073
15950
|
name: string;
|
|
15074
15951
|
}[]>;
|
|
15075
|
-
getOrders(params
|
|
15952
|
+
getOrders(params?: {
|
|
15953
|
+
date_from?: string | undefined;
|
|
15954
|
+
date_to?: string | undefined;
|
|
15955
|
+
updated_after?: string | undefined;
|
|
15956
|
+
include_detailed_refunds?: "true" | "false" | undefined;
|
|
15957
|
+
include_product_categories?: "true" | "false" | undefined;
|
|
15958
|
+
} | undefined): import("../types/api").RequestData<{
|
|
15076
15959
|
id: string;
|
|
15077
15960
|
source_ref: {
|
|
15078
15961
|
id?: string | undefined;
|
|
@@ -15118,8 +16001,9 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
15118
16001
|
created_on?: string | undefined;
|
|
15119
16002
|
last_updated_on?: string | undefined;
|
|
15120
16003
|
confirmed_on?: string | undefined;
|
|
16004
|
+
delivery_date?: string | undefined;
|
|
15121
16005
|
cancelled_on?: string | undefined;
|
|
15122
|
-
status: "cancelled" | "draft" | "confirmed" | "shipped" | "refunded";
|
|
16006
|
+
status: "cancelled" | "draft" | "cancelled_unpaid" | "confirmed" | "shipped" | "refunded";
|
|
15123
16007
|
discount_amount: number;
|
|
15124
16008
|
untaxed_amount_without_fees: number;
|
|
15125
16009
|
tax_amount_without_fees: number;
|
|
@@ -15143,6 +16027,10 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
15143
16027
|
id: string;
|
|
15144
16028
|
sku?: string | undefined;
|
|
15145
16029
|
name: string;
|
|
16030
|
+
categories?: {
|
|
16031
|
+
id: string;
|
|
16032
|
+
name: string;
|
|
16033
|
+
}[] | undefined;
|
|
15146
16034
|
} | undefined;
|
|
15147
16035
|
quantity: number;
|
|
15148
16036
|
untaxed_amount: number;
|
|
@@ -15160,6 +16048,13 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
15160
16048
|
tax_amount: number;
|
|
15161
16049
|
total: number;
|
|
15162
16050
|
}[] | undefined;
|
|
16051
|
+
transactions?: {
|
|
16052
|
+
id: string;
|
|
16053
|
+
payment_method_id?: string | undefined;
|
|
16054
|
+
payment_method_name?: string | undefined;
|
|
16055
|
+
amount: number;
|
|
16056
|
+
status: "failed" | "pending" | "success";
|
|
16057
|
+
}[] | undefined;
|
|
15163
16058
|
}[] | undefined;
|
|
15164
16059
|
currency: string;
|
|
15165
16060
|
note?: string | undefined;
|
|
@@ -15174,6 +16069,10 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
15174
16069
|
id: string;
|
|
15175
16070
|
sku?: string | undefined;
|
|
15176
16071
|
name: string;
|
|
16072
|
+
categories?: {
|
|
16073
|
+
id: string;
|
|
16074
|
+
name: string;
|
|
16075
|
+
}[] | undefined;
|
|
15177
16076
|
} | undefined;
|
|
15178
16077
|
quantity: number;
|
|
15179
16078
|
unit_price: number;
|
|
@@ -15309,8 +16208,9 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
15309
16208
|
created_on?: string | undefined;
|
|
15310
16209
|
last_updated_on?: string | undefined;
|
|
15311
16210
|
confirmed_on?: string | undefined;
|
|
16211
|
+
delivery_date?: string | undefined;
|
|
15312
16212
|
cancelled_on?: string | undefined;
|
|
15313
|
-
status: "cancelled" | "draft" | "confirmed" | "shipped" | "refunded";
|
|
16213
|
+
status: "cancelled" | "draft" | "cancelled_unpaid" | "confirmed" | "shipped" | "refunded";
|
|
15314
16214
|
discount_amount: number;
|
|
15315
16215
|
untaxed_amount_without_fees: number;
|
|
15316
16216
|
tax_amount_without_fees: number;
|
|
@@ -15334,6 +16234,10 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
15334
16234
|
id: string;
|
|
15335
16235
|
sku?: string | undefined;
|
|
15336
16236
|
name: string;
|
|
16237
|
+
categories?: {
|
|
16238
|
+
id: string;
|
|
16239
|
+
name: string;
|
|
16240
|
+
}[] | undefined;
|
|
15337
16241
|
} | undefined;
|
|
15338
16242
|
quantity: number;
|
|
15339
16243
|
untaxed_amount: number;
|
|
@@ -15351,6 +16255,13 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
15351
16255
|
tax_amount: number;
|
|
15352
16256
|
total: number;
|
|
15353
16257
|
}[] | undefined;
|
|
16258
|
+
transactions?: {
|
|
16259
|
+
id: string;
|
|
16260
|
+
payment_method_id?: string | undefined;
|
|
16261
|
+
payment_method_name?: string | undefined;
|
|
16262
|
+
amount: number;
|
|
16263
|
+
status: "failed" | "pending" | "success";
|
|
16264
|
+
}[] | undefined;
|
|
15354
16265
|
}[] | undefined;
|
|
15355
16266
|
currency: string;
|
|
15356
16267
|
note?: string | undefined;
|
|
@@ -15365,6 +16276,10 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
15365
16276
|
id: string;
|
|
15366
16277
|
sku?: string | undefined;
|
|
15367
16278
|
name: string;
|
|
16279
|
+
categories?: {
|
|
16280
|
+
id: string;
|
|
16281
|
+
name: string;
|
|
16282
|
+
}[] | undefined;
|
|
15368
16283
|
} | undefined;
|
|
15369
16284
|
quantity: number;
|
|
15370
16285
|
unit_price: number;
|
|
@@ -15459,8 +16374,9 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
15459
16374
|
created_on?: string | undefined;
|
|
15460
16375
|
last_updated_on?: string | undefined;
|
|
15461
16376
|
confirmed_on?: string | undefined;
|
|
16377
|
+
delivery_date?: string | undefined;
|
|
15462
16378
|
cancelled_on?: string | undefined;
|
|
15463
|
-
status: "cancelled" | "draft" | "confirmed" | "shipped" | "refunded";
|
|
16379
|
+
status: "cancelled" | "draft" | "cancelled_unpaid" | "confirmed" | "shipped" | "refunded";
|
|
15464
16380
|
discount_amount: number;
|
|
15465
16381
|
untaxed_amount_without_fees: number;
|
|
15466
16382
|
tax_amount_without_fees: number;
|
|
@@ -15484,6 +16400,10 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
15484
16400
|
id: string;
|
|
15485
16401
|
sku?: string | undefined;
|
|
15486
16402
|
name: string;
|
|
16403
|
+
categories?: {
|
|
16404
|
+
id: string;
|
|
16405
|
+
name: string;
|
|
16406
|
+
}[] | undefined;
|
|
15487
16407
|
} | undefined;
|
|
15488
16408
|
quantity: number;
|
|
15489
16409
|
untaxed_amount: number;
|
|
@@ -15501,6 +16421,13 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
15501
16421
|
tax_amount: number;
|
|
15502
16422
|
total: number;
|
|
15503
16423
|
}[] | undefined;
|
|
16424
|
+
transactions?: {
|
|
16425
|
+
id: string;
|
|
16426
|
+
payment_method_id?: string | undefined;
|
|
16427
|
+
payment_method_name?: string | undefined;
|
|
16428
|
+
amount: number;
|
|
16429
|
+
status: "failed" | "pending" | "success";
|
|
16430
|
+
}[] | undefined;
|
|
15504
16431
|
}[] | undefined;
|
|
15505
16432
|
currency: string;
|
|
15506
16433
|
note?: string | undefined;
|
|
@@ -15515,6 +16442,10 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
15515
16442
|
id: string;
|
|
15516
16443
|
sku?: string | undefined;
|
|
15517
16444
|
name: string;
|
|
16445
|
+
categories?: {
|
|
16446
|
+
id: string;
|
|
16447
|
+
name: string;
|
|
16448
|
+
}[] | undefined;
|
|
15518
16449
|
} | undefined;
|
|
15519
16450
|
quantity: number;
|
|
15520
16451
|
unit_price: number;
|
|
@@ -15563,7 +16494,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
15563
16494
|
name?: string | undefined;
|
|
15564
16495
|
}[] | undefined;
|
|
15565
16496
|
}>;
|
|
15566
|
-
getPaymentMethods(params
|
|
16497
|
+
getPaymentMethods(params?: {} | undefined): import("../types/api").RequestData<{
|
|
15567
16498
|
id: string;
|
|
15568
16499
|
source_ref: {
|
|
15569
16500
|
id?: string | undefined;
|
|
@@ -15572,7 +16503,9 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
15572
16503
|
name: string;
|
|
15573
16504
|
active: boolean;
|
|
15574
16505
|
}[]>;
|
|
15575
|
-
getProductCategories(params
|
|
16506
|
+
getProductCategories(params?: {
|
|
16507
|
+
only_parents?: "true" | "false" | undefined;
|
|
16508
|
+
} | undefined): import("../types/api").RequestData<{
|
|
15576
16509
|
id: string;
|
|
15577
16510
|
source_ref: {
|
|
15578
16511
|
id?: string | undefined;
|
|
@@ -15581,7 +16514,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
15581
16514
|
name: string;
|
|
15582
16515
|
parent_id?: string | undefined;
|
|
15583
16516
|
}[]>;
|
|
15584
|
-
getTaxes(params
|
|
16517
|
+
getTaxes(params?: {} | undefined): import("../types/api").RequestData<{
|
|
15585
16518
|
id: string;
|
|
15586
16519
|
source_ref: {
|
|
15587
16520
|
id?: string | undefined;
|
|
@@ -15591,7 +16524,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
15591
16524
|
rate: number;
|
|
15592
16525
|
country?: string | undefined;
|
|
15593
16526
|
}[]>;
|
|
15594
|
-
getCountries(params
|
|
16527
|
+
getCountries(params?: {} | undefined): import("../types/api").RequestData<{
|
|
15595
16528
|
code: string;
|
|
15596
16529
|
name: string;
|
|
15597
16530
|
}[]>;
|
|
@@ -15686,6 +16619,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
15686
16619
|
}[]>;
|
|
15687
16620
|
deleteDataStoreData: (dataStoreId: string, dataStoreDataId: string) => Promise<import("../types/sync").SimpleResponseModel>;
|
|
15688
16621
|
logData: (logs: import("../types/consumers").ConsumerLog[]) => Promise<import("../types/sync").SimpleResponseModel>;
|
|
16622
|
+
setConnectionId: (connectionId: string) => Promise<void>;
|
|
16623
|
+
setIntegrationId: (integrationId: string) => Promise<void>;
|
|
15689
16624
|
}>;
|
|
15690
16625
|
deleteConsumerById: (consumerId: string) => Promise<{
|
|
15691
16626
|
content: never;
|