@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
|
@@ -90,6 +90,26 @@ export declare class API {
|
|
|
90
90
|
total_discount?: number | undefined;
|
|
91
91
|
total_refund?: number | undefined;
|
|
92
92
|
total_tip?: number | undefined;
|
|
93
|
+
currency?: string | undefined;
|
|
94
|
+
country?: string | undefined;
|
|
95
|
+
loyalty?: number | undefined;
|
|
96
|
+
customer_id?: string | undefined;
|
|
97
|
+
location_id?: string | undefined;
|
|
98
|
+
taxes?: {
|
|
99
|
+
tax_rate: number;
|
|
100
|
+
tax_amount: number;
|
|
101
|
+
total: number;
|
|
102
|
+
}[] | undefined;
|
|
103
|
+
payments: {
|
|
104
|
+
id?: string | undefined;
|
|
105
|
+
payment_method_id?: string | undefined;
|
|
106
|
+
payment_method_name?: string | undefined;
|
|
107
|
+
total: number;
|
|
108
|
+
tip?: number | undefined;
|
|
109
|
+
status?: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised" | undefined;
|
|
110
|
+
currency?: string | undefined;
|
|
111
|
+
date?: string | undefined;
|
|
112
|
+
}[];
|
|
93
113
|
items: {
|
|
94
114
|
id: string;
|
|
95
115
|
quantity: number;
|
|
@@ -105,28 +125,12 @@ export declare class API {
|
|
|
105
125
|
product_id?: string | undefined;
|
|
106
126
|
accounting_category_id?: string | undefined;
|
|
107
127
|
}[];
|
|
108
|
-
payments: {
|
|
109
|
-
id?: string | undefined;
|
|
110
|
-
payment_method_id?: string | undefined;
|
|
111
|
-
payment_method_name?: string | undefined;
|
|
112
|
-
total: number;
|
|
113
|
-
tip?: number | undefined;
|
|
114
|
-
status?: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised" | undefined;
|
|
115
|
-
currency?: string | undefined;
|
|
116
|
-
date?: string | undefined;
|
|
117
|
-
}[];
|
|
118
|
-
currency?: string | undefined;
|
|
119
|
-
country?: string | undefined;
|
|
120
|
-
loyalty?: number | undefined;
|
|
121
|
-
customer_id?: string | undefined;
|
|
122
|
-
location_id?: string | undefined;
|
|
123
|
-
taxes?: {
|
|
124
|
-
tax_rate: number;
|
|
125
|
-
tax_amount: number;
|
|
126
|
-
total: number;
|
|
127
|
-
}[] | undefined;
|
|
128
128
|
}[]>;
|
|
129
|
-
getCustomers(params
|
|
129
|
+
getCustomers(params?: {
|
|
130
|
+
search?: string | undefined;
|
|
131
|
+
email?: string | undefined;
|
|
132
|
+
phone?: string | undefined;
|
|
133
|
+
} | undefined): import("../types/api").RequestData<{
|
|
130
134
|
id: string;
|
|
131
135
|
first_name?: string | undefined;
|
|
132
136
|
last_name?: string | undefined;
|
|
@@ -159,6 +163,26 @@ export declare class API {
|
|
|
159
163
|
total_discount?: number | undefined;
|
|
160
164
|
total_refund?: number | undefined;
|
|
161
165
|
total_tip?: number | undefined;
|
|
166
|
+
currency?: string | undefined;
|
|
167
|
+
country?: string | undefined;
|
|
168
|
+
loyalty?: number | undefined;
|
|
169
|
+
customer_id?: string | undefined;
|
|
170
|
+
location_id?: string | undefined;
|
|
171
|
+
taxes?: {
|
|
172
|
+
tax_rate: number;
|
|
173
|
+
tax_amount: number;
|
|
174
|
+
total: number;
|
|
175
|
+
}[] | undefined;
|
|
176
|
+
payments: {
|
|
177
|
+
id?: string | undefined;
|
|
178
|
+
payment_method_id?: string | undefined;
|
|
179
|
+
payment_method_name?: string | undefined;
|
|
180
|
+
total: number;
|
|
181
|
+
tip?: number | undefined;
|
|
182
|
+
status?: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised" | undefined;
|
|
183
|
+
currency?: string | undefined;
|
|
184
|
+
date?: string | undefined;
|
|
185
|
+
}[];
|
|
162
186
|
items: {
|
|
163
187
|
id: string;
|
|
164
188
|
quantity: number;
|
|
@@ -174,26 +198,6 @@ export declare class API {
|
|
|
174
198
|
product_id?: string | undefined;
|
|
175
199
|
accounting_category_id?: string | undefined;
|
|
176
200
|
}[];
|
|
177
|
-
payments: {
|
|
178
|
-
id?: string | undefined;
|
|
179
|
-
payment_method_id?: string | undefined;
|
|
180
|
-
payment_method_name?: string | undefined;
|
|
181
|
-
total: number;
|
|
182
|
-
tip?: number | undefined;
|
|
183
|
-
status?: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised" | undefined;
|
|
184
|
-
currency?: string | undefined;
|
|
185
|
-
date?: string | undefined;
|
|
186
|
-
}[];
|
|
187
|
-
currency?: string | undefined;
|
|
188
|
-
country?: string | undefined;
|
|
189
|
-
loyalty?: number | undefined;
|
|
190
|
-
customer_id?: string | undefined;
|
|
191
|
-
location_id?: string | undefined;
|
|
192
|
-
taxes?: {
|
|
193
|
-
tax_rate: number;
|
|
194
|
-
tax_amount: number;
|
|
195
|
-
total: number;
|
|
196
|
-
}[] | undefined;
|
|
197
201
|
}>;
|
|
198
202
|
getCustomer(customerId: string): import("../types/api").RequestData<{
|
|
199
203
|
id: string;
|
|
@@ -251,12 +255,17 @@ export declare class API {
|
|
|
251
255
|
loyalty?: number | undefined;
|
|
252
256
|
birthdate?: string | undefined;
|
|
253
257
|
}>;
|
|
254
|
-
getPaymentMethods(params
|
|
258
|
+
getPaymentMethods(params?: {
|
|
259
|
+
location_id?: string | undefined;
|
|
260
|
+
} | undefined): import("../types/api").RequestData<{
|
|
255
261
|
id: string;
|
|
256
262
|
name: string;
|
|
257
263
|
extra?: string | undefined;
|
|
258
264
|
}[]>;
|
|
259
|
-
getProductCategories(params
|
|
265
|
+
getProductCategories(params?: {
|
|
266
|
+
location_id?: string | undefined;
|
|
267
|
+
only_parents?: "true" | "false" | undefined;
|
|
268
|
+
} | undefined): import("../types/api").RequestData<{
|
|
260
269
|
id: string;
|
|
261
270
|
source_ref: {
|
|
262
271
|
id?: string | undefined;
|
|
@@ -265,7 +274,9 @@ export declare class API {
|
|
|
265
274
|
name: string;
|
|
266
275
|
parent_id?: string | undefined;
|
|
267
276
|
}[]>;
|
|
268
|
-
getProducts(params
|
|
277
|
+
getProducts(params?: {
|
|
278
|
+
location_id?: string | undefined;
|
|
279
|
+
} | undefined): import("../types/api").RequestData<{
|
|
269
280
|
id: string;
|
|
270
281
|
categories?: string[] | undefined;
|
|
271
282
|
name: string;
|
|
@@ -289,7 +300,7 @@ export declare class API {
|
|
|
289
300
|
total: number;
|
|
290
301
|
}[] | undefined;
|
|
291
302
|
}>;
|
|
292
|
-
getClosure(date: string, params
|
|
303
|
+
getClosure(date: string, params?: {
|
|
293
304
|
location_id?: string | undefined;
|
|
294
305
|
} | undefined): import("../types/api").RequestData<{
|
|
295
306
|
date: string;
|
|
@@ -322,6 +333,26 @@ export declare class API {
|
|
|
322
333
|
total_discount?: number | undefined;
|
|
323
334
|
total_refund?: number | undefined;
|
|
324
335
|
total_tip?: number | undefined;
|
|
336
|
+
currency?: string | undefined;
|
|
337
|
+
country?: string | undefined;
|
|
338
|
+
loyalty?: number | undefined;
|
|
339
|
+
customer_id?: string | undefined;
|
|
340
|
+
location_id?: string | undefined;
|
|
341
|
+
taxes?: {
|
|
342
|
+
tax_rate: number;
|
|
343
|
+
tax_amount: number;
|
|
344
|
+
total: number;
|
|
345
|
+
}[] | undefined;
|
|
346
|
+
payments: {
|
|
347
|
+
id?: string | undefined;
|
|
348
|
+
payment_method_id?: string | undefined;
|
|
349
|
+
payment_method_name?: string | undefined;
|
|
350
|
+
total: number;
|
|
351
|
+
tip?: number | undefined;
|
|
352
|
+
status?: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised" | undefined;
|
|
353
|
+
currency?: string | undefined;
|
|
354
|
+
date?: string | undefined;
|
|
355
|
+
}[];
|
|
325
356
|
items: {
|
|
326
357
|
id: string;
|
|
327
358
|
quantity: number;
|
|
@@ -337,16 +368,53 @@ export declare class API {
|
|
|
337
368
|
product_id?: string | undefined;
|
|
338
369
|
accounting_category_id?: string | undefined;
|
|
339
370
|
}[];
|
|
340
|
-
|
|
371
|
+
}>;
|
|
372
|
+
getAccountingCategories(params?: {} | undefined): import("../types/api").RequestData<{
|
|
373
|
+
id: string;
|
|
374
|
+
name: string;
|
|
375
|
+
id_parent?: string | undefined;
|
|
376
|
+
code?: string | undefined;
|
|
377
|
+
ledger_account_code?: string | undefined;
|
|
378
|
+
posting_account_code?: string | undefined;
|
|
379
|
+
}[]>;
|
|
380
|
+
}>;
|
|
381
|
+
pms: import("../types/api").ApiFor<{
|
|
382
|
+
getLocations(): import("../types/api").RequestData<{
|
|
383
|
+
id: string;
|
|
384
|
+
name: string;
|
|
385
|
+
timezone?: string | undefined;
|
|
386
|
+
address?: {
|
|
387
|
+
address_type?: string | undefined;
|
|
388
|
+
name?: string | undefined;
|
|
389
|
+
street?: string | undefined;
|
|
390
|
+
number?: string | undefined;
|
|
391
|
+
box?: string | undefined;
|
|
392
|
+
city?: string | undefined;
|
|
393
|
+
postal_code?: string | undefined;
|
|
394
|
+
country?: string | undefined;
|
|
395
|
+
} | undefined;
|
|
396
|
+
}[]>;
|
|
397
|
+
getOrders(params: {
|
|
398
|
+
date_from: string;
|
|
399
|
+
date_to: string;
|
|
400
|
+
location_id?: string | undefined;
|
|
401
|
+
state?: "closed" | "consumed" | undefined;
|
|
402
|
+
}): import("../types/api").RequestData<{
|
|
403
|
+
id: string;
|
|
404
|
+
source_ref: {
|
|
341
405
|
id?: string | undefined;
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
406
|
+
model?: string | undefined;
|
|
407
|
+
};
|
|
408
|
+
order_number?: string | undefined;
|
|
409
|
+
creation_date: string;
|
|
410
|
+
closing_date?: string | undefined;
|
|
411
|
+
service_date?: string | undefined;
|
|
412
|
+
device_id?: string | undefined;
|
|
413
|
+
total: number;
|
|
414
|
+
tax_amount: number;
|
|
415
|
+
total_discount?: number | undefined;
|
|
416
|
+
total_refund?: number | undefined;
|
|
417
|
+
total_tip?: number | undefined;
|
|
350
418
|
currency?: string | undefined;
|
|
351
419
|
country?: string | undefined;
|
|
352
420
|
loyalty?: number | undefined;
|
|
@@ -357,9 +425,68 @@ export declare class API {
|
|
|
357
425
|
tax_amount: number;
|
|
358
426
|
total: number;
|
|
359
427
|
}[] | undefined;
|
|
428
|
+
items: {
|
|
429
|
+
id: string;
|
|
430
|
+
source_ref: {
|
|
431
|
+
id?: string | undefined;
|
|
432
|
+
model?: string | undefined;
|
|
433
|
+
};
|
|
434
|
+
quantity: number;
|
|
435
|
+
unit_price: number;
|
|
436
|
+
total: number;
|
|
437
|
+
tax_amount: number;
|
|
438
|
+
tax_rate?: number | undefined;
|
|
439
|
+
description?: string | undefined;
|
|
440
|
+
discounts?: {
|
|
441
|
+
name?: string | undefined;
|
|
442
|
+
total: number;
|
|
443
|
+
}[] | undefined;
|
|
444
|
+
product_id?: string | undefined;
|
|
445
|
+
accounting_category_id?: string | undefined;
|
|
446
|
+
}[];
|
|
447
|
+
service_id?: string | undefined;
|
|
448
|
+
}[]>;
|
|
449
|
+
getPaymentMethods(params?: {
|
|
450
|
+
location_id?: string | undefined;
|
|
451
|
+
} | undefined): import("../types/api").RequestData<{
|
|
452
|
+
id: string;
|
|
453
|
+
source_ref: {
|
|
454
|
+
id?: string | undefined;
|
|
455
|
+
model?: string | undefined;
|
|
456
|
+
};
|
|
457
|
+
name: string;
|
|
458
|
+
extra?: string | undefined;
|
|
459
|
+
ledger_account_code?: string | undefined;
|
|
460
|
+
}[]>;
|
|
461
|
+
getClosure(date: string, params?: {
|
|
462
|
+
location_id?: string | undefined;
|
|
463
|
+
} | undefined): import("../types/api").RequestData<{
|
|
464
|
+
date: string;
|
|
465
|
+
status: "open" | "closed";
|
|
360
466
|
}>;
|
|
361
|
-
|
|
467
|
+
getPayments(params: {
|
|
468
|
+
date_from: string;
|
|
469
|
+
date_to: string;
|
|
470
|
+
}): import("../types/api").RequestData<{
|
|
471
|
+
id?: string | undefined;
|
|
472
|
+
source_ref: {
|
|
473
|
+
id?: string | undefined;
|
|
474
|
+
model?: string | undefined;
|
|
475
|
+
};
|
|
476
|
+
payment_method_id?: string | undefined;
|
|
477
|
+
payment_method_name?: string | undefined;
|
|
478
|
+
total: number;
|
|
479
|
+
tip?: number | undefined;
|
|
480
|
+
status?: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised" | undefined;
|
|
481
|
+
currency?: string | undefined;
|
|
482
|
+
date?: string | undefined;
|
|
483
|
+
}[]>;
|
|
484
|
+
getAccountingCategories(params?: {} | undefined): import("../types/api").RequestData<{
|
|
362
485
|
id: string;
|
|
486
|
+
source_ref: {
|
|
487
|
+
id?: string | undefined;
|
|
488
|
+
model?: string | undefined;
|
|
489
|
+
};
|
|
363
490
|
name: string;
|
|
364
491
|
id_parent?: string | undefined;
|
|
365
492
|
code?: string | undefined;
|
|
@@ -368,19 +495,15 @@ export declare class API {
|
|
|
368
495
|
}[]>;
|
|
369
496
|
}>;
|
|
370
497
|
accounting: import("../types/api").ApiFor<{
|
|
371
|
-
getAnalyticPlans(params
|
|
498
|
+
getAnalyticPlans(params?: {
|
|
372
499
|
folder_id?: string | undefined;
|
|
373
|
-
page?: number | undefined;
|
|
374
|
-
size?: number | undefined;
|
|
375
500
|
} | undefined): import("../types/api").RequestData<{
|
|
376
501
|
id: string;
|
|
377
502
|
name: string;
|
|
378
503
|
active?: boolean | undefined;
|
|
379
504
|
}[]>;
|
|
380
|
-
getClients(params
|
|
505
|
+
getClients(params?: {
|
|
381
506
|
folder_id?: string | undefined;
|
|
382
|
-
page?: number | undefined;
|
|
383
|
-
size?: number | undefined;
|
|
384
507
|
} | undefined): import("../types/api").RequestData<{
|
|
385
508
|
external_reference?: string | undefined;
|
|
386
509
|
first_name?: string | undefined;
|
|
@@ -450,7 +573,7 @@ export declare class API {
|
|
|
450
573
|
country: string;
|
|
451
574
|
}[];
|
|
452
575
|
account_number?: string | undefined;
|
|
453
|
-
}, params
|
|
576
|
+
}, params?: {
|
|
454
577
|
force_merge?: string | undefined;
|
|
455
578
|
folder_id?: string | undefined;
|
|
456
579
|
} | undefined): import("../types/api").RequestData<{
|
|
@@ -489,7 +612,7 @@ export declare class API {
|
|
|
489
612
|
company_number?: string | undefined;
|
|
490
613
|
id?: string | undefined;
|
|
491
614
|
}>;
|
|
492
|
-
getClient(clientId: string, params
|
|
615
|
+
getClient(clientId: string, params?: {
|
|
493
616
|
folder_id?: string | undefined;
|
|
494
617
|
} | undefined): import("../types/api").RequestData<{
|
|
495
618
|
external_reference?: string | undefined;
|
|
@@ -559,7 +682,7 @@ export declare class API {
|
|
|
559
682
|
postal_code?: string | undefined;
|
|
560
683
|
country?: string | undefined;
|
|
561
684
|
}[] | undefined;
|
|
562
|
-
}, params
|
|
685
|
+
}, params?: {
|
|
563
686
|
folder_id?: string | undefined;
|
|
564
687
|
} | undefined): import("../types/api").RequestData<{
|
|
565
688
|
external_reference?: string | undefined;
|
|
@@ -597,10 +720,8 @@ export declare class API {
|
|
|
597
720
|
company_number?: string | undefined;
|
|
598
721
|
id?: string | undefined;
|
|
599
722
|
}>;
|
|
600
|
-
getSuppliers(params
|
|
723
|
+
getSuppliers(params?: {
|
|
601
724
|
folder_id?: string | undefined;
|
|
602
|
-
page?: number | undefined;
|
|
603
|
-
size?: number | undefined;
|
|
604
725
|
} | undefined): import("../types/api").RequestData<{
|
|
605
726
|
external_reference?: string | undefined;
|
|
606
727
|
first_name?: string | undefined;
|
|
@@ -670,7 +791,7 @@ export declare class API {
|
|
|
670
791
|
country: string;
|
|
671
792
|
}[];
|
|
672
793
|
account_number?: string | undefined;
|
|
673
|
-
}, params
|
|
794
|
+
}, params?: {
|
|
674
795
|
force_merge?: string | undefined;
|
|
675
796
|
folder_id?: string | undefined;
|
|
676
797
|
} | undefined): import("../types/api").RequestData<{
|
|
@@ -709,7 +830,7 @@ export declare class API {
|
|
|
709
830
|
company_number?: string | undefined;
|
|
710
831
|
id?: string | undefined;
|
|
711
832
|
}>;
|
|
712
|
-
getSupplier(supplierId: string, params
|
|
833
|
+
getSupplier(supplierId: string, params?: {
|
|
713
834
|
folder_id?: string | undefined;
|
|
714
835
|
} | undefined): import("../types/api").RequestData<{
|
|
715
836
|
external_reference?: string | undefined;
|
|
@@ -779,7 +900,7 @@ export declare class API {
|
|
|
779
900
|
postal_code?: string | undefined;
|
|
780
901
|
country?: string | undefined;
|
|
781
902
|
}[] | undefined;
|
|
782
|
-
}, params
|
|
903
|
+
}, params?: {
|
|
783
904
|
folder_id?: string | undefined;
|
|
784
905
|
} | undefined): import("../types/api").RequestData<{
|
|
785
906
|
external_reference?: string | undefined;
|
|
@@ -850,6 +971,7 @@ export declare class API {
|
|
|
850
971
|
iban: string;
|
|
851
972
|
};
|
|
852
973
|
} | undefined;
|
|
974
|
+
shipping_country?: string | undefined;
|
|
853
975
|
lines: {
|
|
854
976
|
line_number?: number | undefined;
|
|
855
977
|
description: string;
|
|
@@ -864,7 +986,7 @@ export declare class API {
|
|
|
864
986
|
tax_code: string;
|
|
865
987
|
analytic_account?: string | undefined;
|
|
866
988
|
}[];
|
|
867
|
-
}, params
|
|
989
|
+
}, params?: {
|
|
868
990
|
force_financial_period?: string | undefined;
|
|
869
991
|
regroup_lines?: "true" | "false" | undefined;
|
|
870
992
|
folder_id?: string | undefined;
|
|
@@ -946,6 +1068,7 @@ export declare class API {
|
|
|
946
1068
|
iban: string;
|
|
947
1069
|
};
|
|
948
1070
|
} | undefined;
|
|
1071
|
+
shipping_country?: string | undefined;
|
|
949
1072
|
lines: {
|
|
950
1073
|
line_number?: number | undefined;
|
|
951
1074
|
description: string;
|
|
@@ -966,7 +1089,7 @@ export declare class API {
|
|
|
966
1089
|
}[];
|
|
967
1090
|
}[] | undefined;
|
|
968
1091
|
}[];
|
|
969
|
-
}, params
|
|
1092
|
+
}, params?: {
|
|
970
1093
|
force_financial_period?: string | undefined;
|
|
971
1094
|
regroup_lines?: "true" | "false" | undefined;
|
|
972
1095
|
folder_id?: string | undefined;
|
|
@@ -1021,7 +1144,14 @@ export declare class API {
|
|
|
1021
1144
|
}[] | undefined;
|
|
1022
1145
|
}[];
|
|
1023
1146
|
}>;
|
|
1024
|
-
getInvoicesByType(invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund", params
|
|
1147
|
+
getInvoicesByType(invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund", params?: {
|
|
1148
|
+
date_from?: string | undefined;
|
|
1149
|
+
date_to?: string | undefined;
|
|
1150
|
+
folder_id?: string | undefined;
|
|
1151
|
+
journal_ids?: string | undefined;
|
|
1152
|
+
include_payments?: "true" | "false" | undefined;
|
|
1153
|
+
payment_status?: "all" | "paid" | "unpaid" | undefined;
|
|
1154
|
+
} | undefined): import("../types/api").RequestData<{
|
|
1025
1155
|
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
1026
1156
|
invoice_number?: string | undefined;
|
|
1027
1157
|
currency: string;
|
|
@@ -1066,7 +1196,7 @@ export declare class API {
|
|
|
1066
1196
|
analytic_account?: string | undefined;
|
|
1067
1197
|
}[];
|
|
1068
1198
|
}[]>;
|
|
1069
|
-
getInvoice(invoiceId: string, params
|
|
1199
|
+
getInvoice(invoiceId: string, params?: {
|
|
1070
1200
|
include_payments?: "true" | "false" | undefined;
|
|
1071
1201
|
folder_id?: string | undefined;
|
|
1072
1202
|
} | undefined): import("../types/api").RequestData<{
|
|
@@ -1114,7 +1244,7 @@ export declare class API {
|
|
|
1114
1244
|
analytic_account?: string | undefined;
|
|
1115
1245
|
}[];
|
|
1116
1246
|
}>;
|
|
1117
|
-
getInvoiceWithMultiplePlans(invoiceId: string, params
|
|
1247
|
+
getInvoiceWithMultiplePlans(invoiceId: string, params?: {
|
|
1118
1248
|
include_payments?: "true" | "false" | undefined;
|
|
1119
1249
|
folder_id?: string | undefined;
|
|
1120
1250
|
} | undefined): import("../types/api").RequestData<{
|
|
@@ -1168,7 +1298,14 @@ export declare class API {
|
|
|
1168
1298
|
}[] | undefined;
|
|
1169
1299
|
}[];
|
|
1170
1300
|
}>;
|
|
1171
|
-
getInvoicesByTypeWithMultiplePlans(invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund", params
|
|
1301
|
+
getInvoicesByTypeWithMultiplePlans(invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund", params?: {
|
|
1302
|
+
date_from?: string | undefined;
|
|
1303
|
+
date_to?: string | undefined;
|
|
1304
|
+
folder_id?: string | undefined;
|
|
1305
|
+
journal_ids?: string | undefined;
|
|
1306
|
+
include_payments?: "true" | "false" | undefined;
|
|
1307
|
+
payment_status?: "all" | "paid" | "unpaid" | undefined;
|
|
1308
|
+
} | undefined): import("../types/api").RequestData<{
|
|
1172
1309
|
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
1173
1310
|
invoice_number?: string | undefined;
|
|
1174
1311
|
currency: string;
|
|
@@ -1224,7 +1361,7 @@ export declare class API {
|
|
|
1224
1361
|
code: string;
|
|
1225
1362
|
name: string;
|
|
1226
1363
|
currency: string;
|
|
1227
|
-
}, params
|
|
1364
|
+
}, params?: {
|
|
1228
1365
|
folder_id?: string | undefined;
|
|
1229
1366
|
} | undefined): import("../types/api").RequestData<{
|
|
1230
1367
|
id: string;
|
|
@@ -1236,10 +1373,8 @@ export declare class API {
|
|
|
1236
1373
|
credit?: number | undefined;
|
|
1237
1374
|
debit?: number | undefined;
|
|
1238
1375
|
}>;
|
|
1239
|
-
getAnalyticAccounts(params
|
|
1376
|
+
getAnalyticAccounts(params?: {
|
|
1240
1377
|
folder_id?: string | undefined;
|
|
1241
|
-
page?: number | undefined;
|
|
1242
|
-
size?: number | undefined;
|
|
1243
1378
|
} | undefined): import("../types/api").RequestData<{
|
|
1244
1379
|
id: string;
|
|
1245
1380
|
active: boolean;
|
|
@@ -1255,7 +1390,7 @@ export declare class API {
|
|
|
1255
1390
|
code: string;
|
|
1256
1391
|
name: string;
|
|
1257
1392
|
currency: string;
|
|
1258
|
-
}, params
|
|
1393
|
+
}, params?: {
|
|
1259
1394
|
folder_id?: string | undefined;
|
|
1260
1395
|
} | undefined): import("../types/api").RequestData<{
|
|
1261
1396
|
id: string;
|
|
@@ -1268,7 +1403,7 @@ export declare class API {
|
|
|
1268
1403
|
debit?: number | undefined;
|
|
1269
1404
|
analytic_plan: string;
|
|
1270
1405
|
}>;
|
|
1271
|
-
getAnalyticAccount(analytic_account_id: string, params
|
|
1406
|
+
getAnalyticAccount(analytic_account_id: string, params?: {
|
|
1272
1407
|
folder_id?: string | undefined;
|
|
1273
1408
|
} | undefined): import("../types/api").RequestData<{
|
|
1274
1409
|
id: string;
|
|
@@ -1285,7 +1420,7 @@ export declare class API {
|
|
|
1285
1420
|
code?: string | undefined;
|
|
1286
1421
|
name?: string | undefined;
|
|
1287
1422
|
currency?: string | undefined;
|
|
1288
|
-
}, params
|
|
1423
|
+
}, params?: {
|
|
1289
1424
|
folder_id?: string | undefined;
|
|
1290
1425
|
} | undefined): import("../types/api").RequestData<{
|
|
1291
1426
|
id: string;
|
|
@@ -1297,7 +1432,7 @@ export declare class API {
|
|
|
1297
1432
|
credit?: number | undefined;
|
|
1298
1433
|
debit?: number | undefined;
|
|
1299
1434
|
}>;
|
|
1300
|
-
getAnalyticAccountWithMultiplePlans(analytic_account_id: string, analytic_plan: string, params
|
|
1435
|
+
getAnalyticAccountWithMultiplePlans(analytic_account_id: string, analytic_plan: string, params?: {
|
|
1301
1436
|
folder_id?: string | undefined;
|
|
1302
1437
|
} | undefined): import("../types/api").RequestData<{
|
|
1303
1438
|
id: string;
|
|
@@ -1315,7 +1450,7 @@ export declare class API {
|
|
|
1315
1450
|
code?: string | undefined;
|
|
1316
1451
|
name?: string | undefined;
|
|
1317
1452
|
currency?: string | undefined;
|
|
1318
|
-
}, params
|
|
1453
|
+
}, params?: {
|
|
1319
1454
|
folder_id?: string | undefined;
|
|
1320
1455
|
} | undefined): import("../types/api").RequestData<{
|
|
1321
1456
|
id: string;
|
|
@@ -1328,10 +1463,8 @@ export declare class API {
|
|
|
1328
1463
|
debit?: number | undefined;
|
|
1329
1464
|
analytic_plan: string;
|
|
1330
1465
|
}>;
|
|
1331
|
-
getAnalyticAccountsWithMultiplePlans(params
|
|
1466
|
+
getAnalyticAccountsWithMultiplePlans(params?: {
|
|
1332
1467
|
folder_id?: string | undefined;
|
|
1333
|
-
page?: number | undefined;
|
|
1334
|
-
size?: number | undefined;
|
|
1335
1468
|
} | undefined): import("../types/api").RequestData<{
|
|
1336
1469
|
id: string;
|
|
1337
1470
|
active: boolean;
|
|
@@ -1412,7 +1545,7 @@ export declare class API {
|
|
|
1412
1545
|
}[] | undefined;
|
|
1413
1546
|
}[] | undefined;
|
|
1414
1547
|
}[]>;
|
|
1415
|
-
getPaymentsByInvoiceId(invoice_id: string, params
|
|
1548
|
+
getPaymentsByInvoiceId(invoice_id: string, params?: {
|
|
1416
1549
|
folder_id?: string | undefined;
|
|
1417
1550
|
page?: number | undefined;
|
|
1418
1551
|
size?: number | undefined;
|
|
@@ -1430,20 +1563,16 @@ export declare class API {
|
|
|
1430
1563
|
communication?: string | undefined;
|
|
1431
1564
|
matching_number?: string | undefined;
|
|
1432
1565
|
}[]>;
|
|
1433
|
-
getJournals(params
|
|
1566
|
+
getJournals(params?: {
|
|
1434
1567
|
folder_id?: string | undefined;
|
|
1435
|
-
page?: number | undefined;
|
|
1436
|
-
size?: number | undefined;
|
|
1437
1568
|
} | undefined): import("../types/api").RequestData<{
|
|
1438
1569
|
id: string;
|
|
1439
1570
|
code?: string | undefined;
|
|
1440
1571
|
name: string;
|
|
1441
1572
|
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
1442
1573
|
}[]>;
|
|
1443
|
-
getVatCodes(params
|
|
1574
|
+
getVatCodes(params?: {
|
|
1444
1575
|
folder_id?: string | undefined;
|
|
1445
|
-
page?: number | undefined;
|
|
1446
|
-
size?: number | undefined;
|
|
1447
1576
|
} | undefined): import("../types/api").RequestData<{
|
|
1448
1577
|
id: string;
|
|
1449
1578
|
code?: string | undefined;
|
|
@@ -1454,7 +1583,12 @@ export declare class API {
|
|
|
1454
1583
|
deductible_account?: string | undefined;
|
|
1455
1584
|
payable_account?: string | undefined;
|
|
1456
1585
|
}[]>;
|
|
1457
|
-
getMiscOperations(params
|
|
1586
|
+
getMiscOperations(params?: {
|
|
1587
|
+
date_from?: string | undefined;
|
|
1588
|
+
date_to?: string | undefined;
|
|
1589
|
+
folder_id?: string | undefined;
|
|
1590
|
+
journal_ids?: string | undefined;
|
|
1591
|
+
} | undefined): import("../types/api").RequestData<{
|
|
1458
1592
|
operation_number?: string | undefined;
|
|
1459
1593
|
currency: string;
|
|
1460
1594
|
currency_exchange_rate?: number | undefined;
|
|
@@ -1488,7 +1622,7 @@ export declare class API {
|
|
|
1488
1622
|
operation_date: string;
|
|
1489
1623
|
journal_id?: string | undefined;
|
|
1490
1624
|
status?: "draft" | "posted" | undefined;
|
|
1491
|
-
}, params
|
|
1625
|
+
}, params?: {
|
|
1492
1626
|
folder_id?: string | undefined;
|
|
1493
1627
|
} | undefined): import("../types/api").RequestData<{
|
|
1494
1628
|
operation_number?: string | undefined;
|
|
@@ -1508,7 +1642,7 @@ export declare class API {
|
|
|
1508
1642
|
status: "cancelled" | "draft" | "posted" | "matched";
|
|
1509
1643
|
id: string;
|
|
1510
1644
|
}>;
|
|
1511
|
-
getMiscOperation(operation_id: string, params
|
|
1645
|
+
getMiscOperation(operation_id: string, params?: {
|
|
1512
1646
|
folder_id?: string | undefined;
|
|
1513
1647
|
} | undefined): import("../types/api").RequestData<{
|
|
1514
1648
|
operation_number?: string | undefined;
|
|
@@ -1530,24 +1664,25 @@ export declare class API {
|
|
|
1530
1664
|
}>;
|
|
1531
1665
|
attachPDF(invoice_id: string, attachment: {
|
|
1532
1666
|
base64_string: string;
|
|
1533
|
-
}, params
|
|
1667
|
+
}, params?: {
|
|
1534
1668
|
overwrite_existing?: "true" | "false" | undefined;
|
|
1535
1669
|
folder_id?: string | undefined;
|
|
1536
1670
|
} | undefined): import("../types/api").RequestData<{
|
|
1537
1671
|
content: {
|
|
1538
|
-
|
|
1672
|
+
'application/json': unknown;
|
|
1539
1673
|
};
|
|
1540
1674
|
}>;
|
|
1541
1675
|
getAttachments(params: {
|
|
1676
|
+
folder_id?: string | undefined;
|
|
1542
1677
|
type: "invoice" | "entry";
|
|
1543
1678
|
document_id: string;
|
|
1544
|
-
folder_id?: string | undefined;
|
|
1545
|
-
page?: number | undefined;
|
|
1546
|
-
size?: number | undefined;
|
|
1547
1679
|
}): import("../types/api").RequestData<{
|
|
1548
1680
|
base64_string: string;
|
|
1549
1681
|
}[]>;
|
|
1550
|
-
getChartOfAccounts(params
|
|
1682
|
+
getChartOfAccounts(params?: {
|
|
1683
|
+
classes?: string | undefined;
|
|
1684
|
+
folder_id?: string | undefined;
|
|
1685
|
+
} | undefined): import("../types/api").RequestData<{
|
|
1551
1686
|
number: string;
|
|
1552
1687
|
name: string;
|
|
1553
1688
|
active?: boolean | undefined;
|
|
@@ -1557,10 +1692,8 @@ export declare class API {
|
|
|
1557
1692
|
accounts: string[];
|
|
1558
1693
|
start?: string | undefined;
|
|
1559
1694
|
end: string;
|
|
1560
|
-
}, params
|
|
1695
|
+
}, params?: {
|
|
1561
1696
|
folder_id?: string | undefined;
|
|
1562
|
-
page?: number | undefined;
|
|
1563
|
-
size?: number | undefined;
|
|
1564
1697
|
} | undefined): import("../types/api").RequestData<{
|
|
1565
1698
|
account_number: string;
|
|
1566
1699
|
account_name?: string | undefined;
|
|
@@ -1568,10 +1701,8 @@ export declare class API {
|
|
|
1568
1701
|
credit: number;
|
|
1569
1702
|
balance: number;
|
|
1570
1703
|
}[]>;
|
|
1571
|
-
getEmployees(params
|
|
1704
|
+
getEmployees(params?: {
|
|
1572
1705
|
folder_id?: string | undefined;
|
|
1573
|
-
page?: number | undefined;
|
|
1574
|
-
size?: number | undefined;
|
|
1575
1706
|
} | undefined): import("../types/api").RequestData<{
|
|
1576
1707
|
id: string;
|
|
1577
1708
|
name: string;
|
|
@@ -1587,8 +1718,8 @@ export declare class API {
|
|
|
1587
1718
|
}[]>;
|
|
1588
1719
|
getOutstandings(params: {
|
|
1589
1720
|
folder_id?: string | undefined;
|
|
1590
|
-
unposted_allowed: "true" | "false";
|
|
1591
1721
|
type: "supplier" | "client";
|
|
1722
|
+
unposted_allowed: "true" | "false";
|
|
1592
1723
|
}): import("../types/api").RequestData<{
|
|
1593
1724
|
id: string;
|
|
1594
1725
|
number?: string | undefined;
|
|
@@ -1621,7 +1752,7 @@ export declare class API {
|
|
|
1621
1752
|
description?: string | undefined;
|
|
1622
1753
|
}[];
|
|
1623
1754
|
pdf?: string | undefined;
|
|
1624
|
-
}, params
|
|
1755
|
+
}, params?: {
|
|
1625
1756
|
financial_counterpart_account?: string | undefined;
|
|
1626
1757
|
folder_id?: string | undefined;
|
|
1627
1758
|
} | undefined): import("../types/api").RequestData<{
|
|
@@ -1655,7 +1786,7 @@ export declare class API {
|
|
|
1655
1786
|
description?: string | undefined;
|
|
1656
1787
|
}[];
|
|
1657
1788
|
pdf?: string | undefined;
|
|
1658
|
-
}, params
|
|
1789
|
+
}, params?: {
|
|
1659
1790
|
financial_counterpart_account?: string | undefined;
|
|
1660
1791
|
folder_id?: string | undefined;
|
|
1661
1792
|
} | undefined): import("../types/api").RequestData<{
|
|
@@ -1754,7 +1885,7 @@ export declare class API {
|
|
|
1754
1885
|
}[];
|
|
1755
1886
|
pdf?: string | undefined;
|
|
1756
1887
|
posted?: boolean | undefined;
|
|
1757
|
-
}, params
|
|
1888
|
+
}, params?: {
|
|
1758
1889
|
folder_id?: string | undefined;
|
|
1759
1890
|
} | undefined): import("../types/api").RequestData<{
|
|
1760
1891
|
reference?: string | undefined;
|
|
@@ -1789,7 +1920,7 @@ export declare class API {
|
|
|
1789
1920
|
matchEntries(body: {
|
|
1790
1921
|
entries: string[];
|
|
1791
1922
|
partner_id: string;
|
|
1792
|
-
}, params
|
|
1923
|
+
}, params?: {
|
|
1793
1924
|
folder_id?: string | undefined;
|
|
1794
1925
|
} | undefined): import("../types/api").RequestData<{
|
|
1795
1926
|
matching_number: string;
|
|
@@ -1799,17 +1930,17 @@ export declare class API {
|
|
|
1799
1930
|
id: string;
|
|
1800
1931
|
name: string;
|
|
1801
1932
|
selected?: boolean | undefined;
|
|
1933
|
+
vat?: string | undefined;
|
|
1934
|
+
company_number?: string | undefined;
|
|
1802
1935
|
}[]>;
|
|
1803
1936
|
}>;
|
|
1804
1937
|
invoicing: import("../types/api").ApiFor<{
|
|
1805
|
-
getInvoices(params
|
|
1806
|
-
invoice_type?: "all" | "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | undefined;
|
|
1807
|
-
payment_status?: "all" | "paid" | "unpaid" | undefined;
|
|
1938
|
+
getInvoices(params?: {
|
|
1808
1939
|
date_from?: string | undefined;
|
|
1809
1940
|
date_to?: string | undefined;
|
|
1941
|
+
payment_status?: "all" | "paid" | "unpaid" | undefined;
|
|
1942
|
+
invoice_type?: "all" | "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | undefined;
|
|
1810
1943
|
updated_after?: string | undefined;
|
|
1811
|
-
page?: number | undefined;
|
|
1812
|
-
size?: number | undefined;
|
|
1813
1944
|
} | undefined): import("../types/api").RequestData<{
|
|
1814
1945
|
id: string;
|
|
1815
1946
|
source_ref: {
|
|
@@ -1853,7 +1984,7 @@ export declare class API {
|
|
|
1853
1984
|
outstanding_amount?: number | undefined;
|
|
1854
1985
|
last_updated_on?: string | undefined;
|
|
1855
1986
|
}[]>;
|
|
1856
|
-
getInvoiceById(invoiceId: string, params
|
|
1987
|
+
getInvoiceById(invoiceId: string, params?: {
|
|
1857
1988
|
include_pdf?: "true" | "false" | undefined;
|
|
1858
1989
|
} | undefined): import("../types/api").RequestData<{
|
|
1859
1990
|
id: string;
|
|
@@ -2115,8 +2246,6 @@ export declare class API {
|
|
|
2115
2246
|
}>;
|
|
2116
2247
|
getContacts(params?: {
|
|
2117
2248
|
contact_type?: "prospect" | "customer" | "supplier" | "all" | undefined;
|
|
2118
|
-
page?: number | undefined;
|
|
2119
|
-
size?: number | undefined;
|
|
2120
2249
|
} | undefined): import("../types/api").RequestData<{
|
|
2121
2250
|
id: string;
|
|
2122
2251
|
source_ref: {
|
|
@@ -2527,7 +2656,13 @@ export declare class API {
|
|
|
2527
2656
|
id: string;
|
|
2528
2657
|
name: string;
|
|
2529
2658
|
}[]>;
|
|
2530
|
-
getOrders(params
|
|
2659
|
+
getOrders(params?: {
|
|
2660
|
+
date_from?: string | undefined;
|
|
2661
|
+
date_to?: string | undefined;
|
|
2662
|
+
updated_after?: string | undefined;
|
|
2663
|
+
include_detailed_refunds?: "true" | "false" | undefined;
|
|
2664
|
+
include_product_categories?: "true" | "false" | undefined;
|
|
2665
|
+
} | undefined): import("../types/api").RequestData<{
|
|
2531
2666
|
id: string;
|
|
2532
2667
|
source_ref: {
|
|
2533
2668
|
id?: string | undefined;
|
|
@@ -2573,8 +2708,9 @@ export declare class API {
|
|
|
2573
2708
|
created_on?: string | undefined;
|
|
2574
2709
|
last_updated_on?: string | undefined;
|
|
2575
2710
|
confirmed_on?: string | undefined;
|
|
2711
|
+
delivery_date?: string | undefined;
|
|
2576
2712
|
cancelled_on?: string | undefined;
|
|
2577
|
-
status: "cancelled" | "draft" | "confirmed" | "shipped" | "refunded";
|
|
2713
|
+
status: "cancelled" | "draft" | "cancelled_unpaid" | "confirmed" | "shipped" | "refunded";
|
|
2578
2714
|
discount_amount: number;
|
|
2579
2715
|
untaxed_amount_without_fees: number;
|
|
2580
2716
|
tax_amount_without_fees: number;
|
|
@@ -2598,6 +2734,10 @@ export declare class API {
|
|
|
2598
2734
|
id: string;
|
|
2599
2735
|
sku?: string | undefined;
|
|
2600
2736
|
name: string;
|
|
2737
|
+
categories?: {
|
|
2738
|
+
id: string;
|
|
2739
|
+
name: string;
|
|
2740
|
+
}[] | undefined;
|
|
2601
2741
|
} | undefined;
|
|
2602
2742
|
quantity: number;
|
|
2603
2743
|
untaxed_amount: number;
|
|
@@ -2615,6 +2755,13 @@ export declare class API {
|
|
|
2615
2755
|
tax_amount: number;
|
|
2616
2756
|
total: number;
|
|
2617
2757
|
}[] | undefined;
|
|
2758
|
+
transactions?: {
|
|
2759
|
+
id: string;
|
|
2760
|
+
payment_method_id?: string | undefined;
|
|
2761
|
+
payment_method_name?: string | undefined;
|
|
2762
|
+
amount: number;
|
|
2763
|
+
status: "failed" | "pending" | "success";
|
|
2764
|
+
}[] | undefined;
|
|
2618
2765
|
}[] | undefined;
|
|
2619
2766
|
currency: string;
|
|
2620
2767
|
note?: string | undefined;
|
|
@@ -2629,6 +2776,10 @@ export declare class API {
|
|
|
2629
2776
|
id: string;
|
|
2630
2777
|
sku?: string | undefined;
|
|
2631
2778
|
name: string;
|
|
2779
|
+
categories?: {
|
|
2780
|
+
id: string;
|
|
2781
|
+
name: string;
|
|
2782
|
+
}[] | undefined;
|
|
2632
2783
|
} | undefined;
|
|
2633
2784
|
quantity: number;
|
|
2634
2785
|
unit_price: number;
|
|
@@ -2764,8 +2915,9 @@ export declare class API {
|
|
|
2764
2915
|
created_on?: string | undefined;
|
|
2765
2916
|
last_updated_on?: string | undefined;
|
|
2766
2917
|
confirmed_on?: string | undefined;
|
|
2918
|
+
delivery_date?: string | undefined;
|
|
2767
2919
|
cancelled_on?: string | undefined;
|
|
2768
|
-
status: "cancelled" | "draft" | "confirmed" | "shipped" | "refunded";
|
|
2920
|
+
status: "cancelled" | "draft" | "cancelled_unpaid" | "confirmed" | "shipped" | "refunded";
|
|
2769
2921
|
discount_amount: number;
|
|
2770
2922
|
untaxed_amount_without_fees: number;
|
|
2771
2923
|
tax_amount_without_fees: number;
|
|
@@ -2789,6 +2941,10 @@ export declare class API {
|
|
|
2789
2941
|
id: string;
|
|
2790
2942
|
sku?: string | undefined;
|
|
2791
2943
|
name: string;
|
|
2944
|
+
categories?: {
|
|
2945
|
+
id: string;
|
|
2946
|
+
name: string;
|
|
2947
|
+
}[] | undefined;
|
|
2792
2948
|
} | undefined;
|
|
2793
2949
|
quantity: number;
|
|
2794
2950
|
untaxed_amount: number;
|
|
@@ -2806,6 +2962,13 @@ export declare class API {
|
|
|
2806
2962
|
tax_amount: number;
|
|
2807
2963
|
total: number;
|
|
2808
2964
|
}[] | undefined;
|
|
2965
|
+
transactions?: {
|
|
2966
|
+
id: string;
|
|
2967
|
+
payment_method_id?: string | undefined;
|
|
2968
|
+
payment_method_name?: string | undefined;
|
|
2969
|
+
amount: number;
|
|
2970
|
+
status: "failed" | "pending" | "success";
|
|
2971
|
+
}[] | undefined;
|
|
2809
2972
|
}[] | undefined;
|
|
2810
2973
|
currency: string;
|
|
2811
2974
|
note?: string | undefined;
|
|
@@ -2820,6 +2983,10 @@ export declare class API {
|
|
|
2820
2983
|
id: string;
|
|
2821
2984
|
sku?: string | undefined;
|
|
2822
2985
|
name: string;
|
|
2986
|
+
categories?: {
|
|
2987
|
+
id: string;
|
|
2988
|
+
name: string;
|
|
2989
|
+
}[] | undefined;
|
|
2823
2990
|
} | undefined;
|
|
2824
2991
|
quantity: number;
|
|
2825
2992
|
unit_price: number;
|
|
@@ -2914,8 +3081,9 @@ export declare class API {
|
|
|
2914
3081
|
created_on?: string | undefined;
|
|
2915
3082
|
last_updated_on?: string | undefined;
|
|
2916
3083
|
confirmed_on?: string | undefined;
|
|
3084
|
+
delivery_date?: string | undefined;
|
|
2917
3085
|
cancelled_on?: string | undefined;
|
|
2918
|
-
status: "cancelled" | "draft" | "confirmed" | "shipped" | "refunded";
|
|
3086
|
+
status: "cancelled" | "draft" | "cancelled_unpaid" | "confirmed" | "shipped" | "refunded";
|
|
2919
3087
|
discount_amount: number;
|
|
2920
3088
|
untaxed_amount_without_fees: number;
|
|
2921
3089
|
tax_amount_without_fees: number;
|
|
@@ -2939,6 +3107,10 @@ export declare class API {
|
|
|
2939
3107
|
id: string;
|
|
2940
3108
|
sku?: string | undefined;
|
|
2941
3109
|
name: string;
|
|
3110
|
+
categories?: {
|
|
3111
|
+
id: string;
|
|
3112
|
+
name: string;
|
|
3113
|
+
}[] | undefined;
|
|
2942
3114
|
} | undefined;
|
|
2943
3115
|
quantity: number;
|
|
2944
3116
|
untaxed_amount: number;
|
|
@@ -2956,6 +3128,13 @@ export declare class API {
|
|
|
2956
3128
|
tax_amount: number;
|
|
2957
3129
|
total: number;
|
|
2958
3130
|
}[] | undefined;
|
|
3131
|
+
transactions?: {
|
|
3132
|
+
id: string;
|
|
3133
|
+
payment_method_id?: string | undefined;
|
|
3134
|
+
payment_method_name?: string | undefined;
|
|
3135
|
+
amount: number;
|
|
3136
|
+
status: "failed" | "pending" | "success";
|
|
3137
|
+
}[] | undefined;
|
|
2959
3138
|
}[] | undefined;
|
|
2960
3139
|
currency: string;
|
|
2961
3140
|
note?: string | undefined;
|
|
@@ -2970,6 +3149,10 @@ export declare class API {
|
|
|
2970
3149
|
id: string;
|
|
2971
3150
|
sku?: string | undefined;
|
|
2972
3151
|
name: string;
|
|
3152
|
+
categories?: {
|
|
3153
|
+
id: string;
|
|
3154
|
+
name: string;
|
|
3155
|
+
}[] | undefined;
|
|
2973
3156
|
} | undefined;
|
|
2974
3157
|
quantity: number;
|
|
2975
3158
|
unit_price: number;
|
|
@@ -3018,7 +3201,7 @@ export declare class API {
|
|
|
3018
3201
|
name?: string | undefined;
|
|
3019
3202
|
}[] | undefined;
|
|
3020
3203
|
}>;
|
|
3021
|
-
getPaymentMethods(params
|
|
3204
|
+
getPaymentMethods(params?: {} | undefined): import("../types/api").RequestData<{
|
|
3022
3205
|
id: string;
|
|
3023
3206
|
source_ref: {
|
|
3024
3207
|
id?: string | undefined;
|
|
@@ -3027,7 +3210,9 @@ export declare class API {
|
|
|
3027
3210
|
name: string;
|
|
3028
3211
|
active: boolean;
|
|
3029
3212
|
}[]>;
|
|
3030
|
-
getProductCategories(params
|
|
3213
|
+
getProductCategories(params?: {
|
|
3214
|
+
only_parents?: "true" | "false" | undefined;
|
|
3215
|
+
} | undefined): import("../types/api").RequestData<{
|
|
3031
3216
|
id: string;
|
|
3032
3217
|
source_ref: {
|
|
3033
3218
|
id?: string | undefined;
|
|
@@ -3036,7 +3221,7 @@ export declare class API {
|
|
|
3036
3221
|
name: string;
|
|
3037
3222
|
parent_id?: string | undefined;
|
|
3038
3223
|
}[]>;
|
|
3039
|
-
getTaxes(params
|
|
3224
|
+
getTaxes(params?: {} | undefined): import("../types/api").RequestData<{
|
|
3040
3225
|
id: string;
|
|
3041
3226
|
source_ref: {
|
|
3042
3227
|
id?: string | undefined;
|
|
@@ -3046,7 +3231,7 @@ export declare class API {
|
|
|
3046
3231
|
rate: number;
|
|
3047
3232
|
country?: string | undefined;
|
|
3048
3233
|
}[]>;
|
|
3049
|
-
getCountries(params
|
|
3234
|
+
getCountries(params?: {} | undefined): import("../types/api").RequestData<{
|
|
3050
3235
|
code: string;
|
|
3051
3236
|
name: string;
|
|
3052
3237
|
}[]>;
|
|
@@ -3141,6 +3326,8 @@ export declare class API {
|
|
|
3141
3326
|
}[]>;
|
|
3142
3327
|
deleteDataStoreData: (dataStoreId: string, dataStoreDataId: string) => Promise<import("../types/sync").SimpleResponseModel>;
|
|
3143
3328
|
logData: (logs: import("../types/consumers").ConsumerLog[]) => Promise<import("../types/sync").SimpleResponseModel>;
|
|
3329
|
+
setConnectionId: (connectionId: string) => Promise<void>;
|
|
3330
|
+
setIntegrationId: (integrationId: string) => Promise<void>;
|
|
3144
3331
|
}[]>;
|
|
3145
3332
|
createConsumer: (body: {
|
|
3146
3333
|
name: string;
|
|
@@ -3231,6 +3418,26 @@ export declare class API {
|
|
|
3231
3418
|
total_discount?: number | undefined;
|
|
3232
3419
|
total_refund?: number | undefined;
|
|
3233
3420
|
total_tip?: number | undefined;
|
|
3421
|
+
currency?: string | undefined;
|
|
3422
|
+
country?: string | undefined;
|
|
3423
|
+
loyalty?: number | undefined;
|
|
3424
|
+
customer_id?: string | undefined;
|
|
3425
|
+
location_id?: string | undefined;
|
|
3426
|
+
taxes?: {
|
|
3427
|
+
tax_rate: number;
|
|
3428
|
+
tax_amount: number;
|
|
3429
|
+
total: number;
|
|
3430
|
+
}[] | undefined;
|
|
3431
|
+
payments: {
|
|
3432
|
+
id?: string | undefined;
|
|
3433
|
+
payment_method_id?: string | undefined;
|
|
3434
|
+
payment_method_name?: string | undefined;
|
|
3435
|
+
total: number;
|
|
3436
|
+
tip?: number | undefined;
|
|
3437
|
+
status?: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised" | undefined;
|
|
3438
|
+
currency?: string | undefined;
|
|
3439
|
+
date?: string | undefined;
|
|
3440
|
+
}[];
|
|
3234
3441
|
items: {
|
|
3235
3442
|
id: string;
|
|
3236
3443
|
quantity: number;
|
|
@@ -3246,28 +3453,12 @@ export declare class API {
|
|
|
3246
3453
|
product_id?: string | undefined;
|
|
3247
3454
|
accounting_category_id?: string | undefined;
|
|
3248
3455
|
}[];
|
|
3249
|
-
payments: {
|
|
3250
|
-
id?: string | undefined;
|
|
3251
|
-
payment_method_id?: string | undefined;
|
|
3252
|
-
payment_method_name?: string | undefined;
|
|
3253
|
-
total: number;
|
|
3254
|
-
tip?: number | undefined;
|
|
3255
|
-
status?: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised" | undefined;
|
|
3256
|
-
currency?: string | undefined;
|
|
3257
|
-
date?: string | undefined;
|
|
3258
|
-
}[];
|
|
3259
|
-
currency?: string | undefined;
|
|
3260
|
-
country?: string | undefined;
|
|
3261
|
-
loyalty?: number | undefined;
|
|
3262
|
-
customer_id?: string | undefined;
|
|
3263
|
-
location_id?: string | undefined;
|
|
3264
|
-
taxes?: {
|
|
3265
|
-
tax_rate: number;
|
|
3266
|
-
tax_amount: number;
|
|
3267
|
-
total: number;
|
|
3268
|
-
}[] | undefined;
|
|
3269
3456
|
}[]>;
|
|
3270
|
-
getCustomers(params
|
|
3457
|
+
getCustomers(params?: {
|
|
3458
|
+
search?: string | undefined;
|
|
3459
|
+
email?: string | undefined;
|
|
3460
|
+
phone?: string | undefined;
|
|
3461
|
+
} | undefined): import("../types/api").RequestData<{
|
|
3271
3462
|
id: string;
|
|
3272
3463
|
first_name?: string | undefined;
|
|
3273
3464
|
last_name?: string | undefined;
|
|
@@ -3300,6 +3491,26 @@ export declare class API {
|
|
|
3300
3491
|
total_discount?: number | undefined;
|
|
3301
3492
|
total_refund?: number | undefined;
|
|
3302
3493
|
total_tip?: number | undefined;
|
|
3494
|
+
currency?: string | undefined;
|
|
3495
|
+
country?: string | undefined;
|
|
3496
|
+
loyalty?: number | undefined;
|
|
3497
|
+
customer_id?: string | undefined;
|
|
3498
|
+
location_id?: string | undefined;
|
|
3499
|
+
taxes?: {
|
|
3500
|
+
tax_rate: number;
|
|
3501
|
+
tax_amount: number;
|
|
3502
|
+
total: number;
|
|
3503
|
+
}[] | undefined;
|
|
3504
|
+
payments: {
|
|
3505
|
+
id?: string | undefined;
|
|
3506
|
+
payment_method_id?: string | undefined;
|
|
3507
|
+
payment_method_name?: string | undefined;
|
|
3508
|
+
total: number;
|
|
3509
|
+
tip?: number | undefined;
|
|
3510
|
+
status?: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised" | undefined;
|
|
3511
|
+
currency?: string | undefined;
|
|
3512
|
+
date?: string | undefined;
|
|
3513
|
+
}[];
|
|
3303
3514
|
items: {
|
|
3304
3515
|
id: string;
|
|
3305
3516
|
quantity: number;
|
|
@@ -3315,26 +3526,6 @@ export declare class API {
|
|
|
3315
3526
|
product_id?: string | undefined;
|
|
3316
3527
|
accounting_category_id?: string | undefined;
|
|
3317
3528
|
}[];
|
|
3318
|
-
payments: {
|
|
3319
|
-
id?: string | undefined;
|
|
3320
|
-
payment_method_id?: string | undefined;
|
|
3321
|
-
payment_method_name?: string | undefined;
|
|
3322
|
-
total: number;
|
|
3323
|
-
tip?: number | undefined;
|
|
3324
|
-
status?: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised" | undefined;
|
|
3325
|
-
currency?: string | undefined;
|
|
3326
|
-
date?: string | undefined;
|
|
3327
|
-
}[];
|
|
3328
|
-
currency?: string | undefined;
|
|
3329
|
-
country?: string | undefined;
|
|
3330
|
-
loyalty?: number | undefined;
|
|
3331
|
-
customer_id?: string | undefined;
|
|
3332
|
-
location_id?: string | undefined;
|
|
3333
|
-
taxes?: {
|
|
3334
|
-
tax_rate: number;
|
|
3335
|
-
tax_amount: number;
|
|
3336
|
-
total: number;
|
|
3337
|
-
}[] | undefined;
|
|
3338
3529
|
}>;
|
|
3339
3530
|
getCustomer(customerId: string): import("../types/api").RequestData<{
|
|
3340
3531
|
id: string;
|
|
@@ -3392,12 +3583,17 @@ export declare class API {
|
|
|
3392
3583
|
loyalty?: number | undefined;
|
|
3393
3584
|
birthdate?: string | undefined;
|
|
3394
3585
|
}>;
|
|
3395
|
-
getPaymentMethods(params
|
|
3586
|
+
getPaymentMethods(params?: {
|
|
3587
|
+
location_id?: string | undefined;
|
|
3588
|
+
} | undefined): import("../types/api").RequestData<{
|
|
3396
3589
|
id: string;
|
|
3397
3590
|
name: string;
|
|
3398
3591
|
extra?: string | undefined;
|
|
3399
3592
|
}[]>;
|
|
3400
|
-
getProductCategories(params
|
|
3593
|
+
getProductCategories(params?: {
|
|
3594
|
+
location_id?: string | undefined;
|
|
3595
|
+
only_parents?: "true" | "false" | undefined;
|
|
3596
|
+
} | undefined): import("../types/api").RequestData<{
|
|
3401
3597
|
id: string;
|
|
3402
3598
|
source_ref: {
|
|
3403
3599
|
id?: string | undefined;
|
|
@@ -3406,7 +3602,9 @@ export declare class API {
|
|
|
3406
3602
|
name: string;
|
|
3407
3603
|
parent_id?: string | undefined;
|
|
3408
3604
|
}[]>;
|
|
3409
|
-
getProducts(params
|
|
3605
|
+
getProducts(params?: {
|
|
3606
|
+
location_id?: string | undefined;
|
|
3607
|
+
} | undefined): import("../types/api").RequestData<{
|
|
3410
3608
|
id: string;
|
|
3411
3609
|
categories?: string[] | undefined;
|
|
3412
3610
|
name: string;
|
|
@@ -3430,7 +3628,7 @@ export declare class API {
|
|
|
3430
3628
|
total: number;
|
|
3431
3629
|
}[] | undefined;
|
|
3432
3630
|
}>;
|
|
3433
|
-
getClosure(date: string, params
|
|
3631
|
+
getClosure(date: string, params?: {
|
|
3434
3632
|
location_id?: string | undefined;
|
|
3435
3633
|
} | undefined): import("../types/api").RequestData<{
|
|
3436
3634
|
date: string;
|
|
@@ -3463,6 +3661,26 @@ export declare class API {
|
|
|
3463
3661
|
total_discount?: number | undefined;
|
|
3464
3662
|
total_refund?: number | undefined;
|
|
3465
3663
|
total_tip?: number | undefined;
|
|
3664
|
+
currency?: string | undefined;
|
|
3665
|
+
country?: string | undefined;
|
|
3666
|
+
loyalty?: number | undefined;
|
|
3667
|
+
customer_id?: string | undefined;
|
|
3668
|
+
location_id?: string | undefined;
|
|
3669
|
+
taxes?: {
|
|
3670
|
+
tax_rate: number;
|
|
3671
|
+
tax_amount: number;
|
|
3672
|
+
total: number;
|
|
3673
|
+
}[] | undefined;
|
|
3674
|
+
payments: {
|
|
3675
|
+
id?: string | undefined;
|
|
3676
|
+
payment_method_id?: string | undefined;
|
|
3677
|
+
payment_method_name?: string | undefined;
|
|
3678
|
+
total: number;
|
|
3679
|
+
tip?: number | undefined;
|
|
3680
|
+
status?: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised" | undefined;
|
|
3681
|
+
currency?: string | undefined;
|
|
3682
|
+
date?: string | undefined;
|
|
3683
|
+
}[];
|
|
3466
3684
|
items: {
|
|
3467
3685
|
id: string;
|
|
3468
3686
|
quantity: number;
|
|
@@ -3478,29 +3696,125 @@ export declare class API {
|
|
|
3478
3696
|
product_id?: string | undefined;
|
|
3479
3697
|
accounting_category_id?: string | undefined;
|
|
3480
3698
|
}[];
|
|
3481
|
-
|
|
3699
|
+
}>;
|
|
3700
|
+
getAccountingCategories(params?: {} | undefined): import("../types/api").RequestData<{
|
|
3701
|
+
id: string;
|
|
3702
|
+
name: string;
|
|
3703
|
+
id_parent?: string | undefined;
|
|
3704
|
+
code?: string | undefined;
|
|
3705
|
+
ledger_account_code?: string | undefined;
|
|
3706
|
+
posting_account_code?: string | undefined;
|
|
3707
|
+
}[]>;
|
|
3708
|
+
}>;
|
|
3709
|
+
pms: import("../types/api").ApiFor<{
|
|
3710
|
+
getLocations(): import("../types/api").RequestData<{
|
|
3711
|
+
id: string;
|
|
3712
|
+
name: string;
|
|
3713
|
+
timezone?: string | undefined;
|
|
3714
|
+
address?: {
|
|
3715
|
+
address_type?: string | undefined;
|
|
3716
|
+
name?: string | undefined;
|
|
3717
|
+
street?: string | undefined;
|
|
3718
|
+
number?: string | undefined;
|
|
3719
|
+
box?: string | undefined;
|
|
3720
|
+
city?: string | undefined;
|
|
3721
|
+
postal_code?: string | undefined;
|
|
3722
|
+
country?: string | undefined;
|
|
3723
|
+
} | undefined;
|
|
3724
|
+
}[]>;
|
|
3725
|
+
getOrders(params: {
|
|
3726
|
+
date_from: string;
|
|
3727
|
+
date_to: string;
|
|
3728
|
+
location_id?: string | undefined;
|
|
3729
|
+
state?: "closed" | "consumed" | undefined;
|
|
3730
|
+
}): import("../types/api").RequestData<{
|
|
3731
|
+
id: string;
|
|
3732
|
+
source_ref: {
|
|
3482
3733
|
id?: string | undefined;
|
|
3483
|
-
|
|
3484
|
-
|
|
3734
|
+
model?: string | undefined;
|
|
3735
|
+
};
|
|
3736
|
+
order_number?: string | undefined;
|
|
3737
|
+
creation_date: string;
|
|
3738
|
+
closing_date?: string | undefined;
|
|
3739
|
+
service_date?: string | undefined;
|
|
3740
|
+
device_id?: string | undefined;
|
|
3741
|
+
total: number;
|
|
3742
|
+
tax_amount: number;
|
|
3743
|
+
total_discount?: number | undefined;
|
|
3744
|
+
total_refund?: number | undefined;
|
|
3745
|
+
total_tip?: number | undefined;
|
|
3746
|
+
currency?: string | undefined;
|
|
3747
|
+
country?: string | undefined;
|
|
3748
|
+
loyalty?: number | undefined;
|
|
3749
|
+
customer_id?: string | undefined;
|
|
3750
|
+
location_id?: string | undefined;
|
|
3751
|
+
taxes?: {
|
|
3752
|
+
tax_rate: number;
|
|
3753
|
+
tax_amount: number;
|
|
3485
3754
|
total: number;
|
|
3486
|
-
|
|
3487
|
-
|
|
3488
|
-
|
|
3489
|
-
|
|
3755
|
+
}[] | undefined;
|
|
3756
|
+
items: {
|
|
3757
|
+
id: string;
|
|
3758
|
+
source_ref: {
|
|
3759
|
+
id?: string | undefined;
|
|
3760
|
+
model?: string | undefined;
|
|
3761
|
+
};
|
|
3762
|
+
quantity: number;
|
|
3763
|
+
unit_price: number;
|
|
3764
|
+
total: number;
|
|
3765
|
+
tax_amount: number;
|
|
3766
|
+
tax_rate?: number | undefined;
|
|
3767
|
+
description?: string | undefined;
|
|
3768
|
+
discounts?: {
|
|
3769
|
+
name?: string | undefined;
|
|
3770
|
+
total: number;
|
|
3771
|
+
}[] | undefined;
|
|
3772
|
+
product_id?: string | undefined;
|
|
3773
|
+
accounting_category_id?: string | undefined;
|
|
3490
3774
|
}[];
|
|
3775
|
+
service_id?: string | undefined;
|
|
3776
|
+
}[]>;
|
|
3777
|
+
getPaymentMethods(params?: {
|
|
3778
|
+
location_id?: string | undefined;
|
|
3779
|
+
} | undefined): import("../types/api").RequestData<{
|
|
3780
|
+
id: string;
|
|
3781
|
+
source_ref: {
|
|
3782
|
+
id?: string | undefined;
|
|
3783
|
+
model?: string | undefined;
|
|
3784
|
+
};
|
|
3785
|
+
name: string;
|
|
3786
|
+
extra?: string | undefined;
|
|
3787
|
+
ledger_account_code?: string | undefined;
|
|
3788
|
+
}[]>;
|
|
3789
|
+
getClosure(date: string, params?: {
|
|
3790
|
+
location_id?: string | undefined;
|
|
3791
|
+
} | undefined): import("../types/api").RequestData<{
|
|
3792
|
+
date: string;
|
|
3793
|
+
status: "open" | "closed";
|
|
3794
|
+
}>;
|
|
3795
|
+
getPayments(params: {
|
|
3796
|
+
date_from: string;
|
|
3797
|
+
date_to: string;
|
|
3798
|
+
}): import("../types/api").RequestData<{
|
|
3799
|
+
id?: string | undefined;
|
|
3800
|
+
source_ref: {
|
|
3801
|
+
id?: string | undefined;
|
|
3802
|
+
model?: string | undefined;
|
|
3803
|
+
};
|
|
3804
|
+
payment_method_id?: string | undefined;
|
|
3805
|
+
payment_method_name?: string | undefined;
|
|
3806
|
+
total: number;
|
|
3807
|
+
tip?: number | undefined;
|
|
3808
|
+
status?: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised" | undefined;
|
|
3491
3809
|
currency?: string | undefined;
|
|
3492
|
-
|
|
3493
|
-
|
|
3494
|
-
|
|
3495
|
-
location_id?: string | undefined;
|
|
3496
|
-
taxes?: {
|
|
3497
|
-
tax_rate: number;
|
|
3498
|
-
tax_amount: number;
|
|
3499
|
-
total: number;
|
|
3500
|
-
}[] | undefined;
|
|
3501
|
-
}>;
|
|
3502
|
-
getAccountingCategories(params: {}): import("../types/api").RequestData<{
|
|
3810
|
+
date?: string | undefined;
|
|
3811
|
+
}[]>;
|
|
3812
|
+
getAccountingCategories(params?: {} | undefined): import("../types/api").RequestData<{
|
|
3503
3813
|
id: string;
|
|
3814
|
+
source_ref: {
|
|
3815
|
+
id?: string | undefined;
|
|
3816
|
+
model?: string | undefined;
|
|
3817
|
+
};
|
|
3504
3818
|
name: string;
|
|
3505
3819
|
id_parent?: string | undefined;
|
|
3506
3820
|
code?: string | undefined;
|
|
@@ -3509,19 +3823,15 @@ export declare class API {
|
|
|
3509
3823
|
}[]>;
|
|
3510
3824
|
}>;
|
|
3511
3825
|
accounting: import("../types/api").ApiFor<{
|
|
3512
|
-
getAnalyticPlans(params
|
|
3826
|
+
getAnalyticPlans(params?: {
|
|
3513
3827
|
folder_id?: string | undefined;
|
|
3514
|
-
page?: number | undefined;
|
|
3515
|
-
size?: number | undefined;
|
|
3516
3828
|
} | undefined): import("../types/api").RequestData<{
|
|
3517
3829
|
id: string;
|
|
3518
3830
|
name: string;
|
|
3519
3831
|
active?: boolean | undefined;
|
|
3520
3832
|
}[]>;
|
|
3521
|
-
getClients(params
|
|
3833
|
+
getClients(params?: {
|
|
3522
3834
|
folder_id?: string | undefined;
|
|
3523
|
-
page?: number | undefined;
|
|
3524
|
-
size?: number | undefined;
|
|
3525
3835
|
} | undefined): import("../types/api").RequestData<{
|
|
3526
3836
|
external_reference?: string | undefined;
|
|
3527
3837
|
first_name?: string | undefined;
|
|
@@ -3591,7 +3901,7 @@ export declare class API {
|
|
|
3591
3901
|
country: string;
|
|
3592
3902
|
}[];
|
|
3593
3903
|
account_number?: string | undefined;
|
|
3594
|
-
}, params
|
|
3904
|
+
}, params?: {
|
|
3595
3905
|
force_merge?: string | undefined;
|
|
3596
3906
|
folder_id?: string | undefined;
|
|
3597
3907
|
} | undefined): import("../types/api").RequestData<{
|
|
@@ -3630,7 +3940,7 @@ export declare class API {
|
|
|
3630
3940
|
company_number?: string | undefined;
|
|
3631
3941
|
id?: string | undefined;
|
|
3632
3942
|
}>;
|
|
3633
|
-
getClient(clientId: string, params
|
|
3943
|
+
getClient(clientId: string, params?: {
|
|
3634
3944
|
folder_id?: string | undefined;
|
|
3635
3945
|
} | undefined): import("../types/api").RequestData<{
|
|
3636
3946
|
external_reference?: string | undefined;
|
|
@@ -3700,7 +4010,7 @@ export declare class API {
|
|
|
3700
4010
|
postal_code?: string | undefined;
|
|
3701
4011
|
country?: string | undefined;
|
|
3702
4012
|
}[] | undefined;
|
|
3703
|
-
}, params
|
|
4013
|
+
}, params?: {
|
|
3704
4014
|
folder_id?: string | undefined;
|
|
3705
4015
|
} | undefined): import("../types/api").RequestData<{
|
|
3706
4016
|
external_reference?: string | undefined;
|
|
@@ -3738,10 +4048,8 @@ export declare class API {
|
|
|
3738
4048
|
company_number?: string | undefined;
|
|
3739
4049
|
id?: string | undefined;
|
|
3740
4050
|
}>;
|
|
3741
|
-
getSuppliers(params
|
|
4051
|
+
getSuppliers(params?: {
|
|
3742
4052
|
folder_id?: string | undefined;
|
|
3743
|
-
page?: number | undefined;
|
|
3744
|
-
size?: number | undefined;
|
|
3745
4053
|
} | undefined): import("../types/api").RequestData<{
|
|
3746
4054
|
external_reference?: string | undefined;
|
|
3747
4055
|
first_name?: string | undefined;
|
|
@@ -3811,7 +4119,7 @@ export declare class API {
|
|
|
3811
4119
|
country: string;
|
|
3812
4120
|
}[];
|
|
3813
4121
|
account_number?: string | undefined;
|
|
3814
|
-
}, params
|
|
4122
|
+
}, params?: {
|
|
3815
4123
|
force_merge?: string | undefined;
|
|
3816
4124
|
folder_id?: string | undefined;
|
|
3817
4125
|
} | undefined): import("../types/api").RequestData<{
|
|
@@ -3850,7 +4158,7 @@ export declare class API {
|
|
|
3850
4158
|
company_number?: string | undefined;
|
|
3851
4159
|
id?: string | undefined;
|
|
3852
4160
|
}>;
|
|
3853
|
-
getSupplier(supplierId: string, params
|
|
4161
|
+
getSupplier(supplierId: string, params?: {
|
|
3854
4162
|
folder_id?: string | undefined;
|
|
3855
4163
|
} | undefined): import("../types/api").RequestData<{
|
|
3856
4164
|
external_reference?: string | undefined;
|
|
@@ -3920,7 +4228,7 @@ export declare class API {
|
|
|
3920
4228
|
postal_code?: string | undefined;
|
|
3921
4229
|
country?: string | undefined;
|
|
3922
4230
|
}[] | undefined;
|
|
3923
|
-
}, params
|
|
4231
|
+
}, params?: {
|
|
3924
4232
|
folder_id?: string | undefined;
|
|
3925
4233
|
} | undefined): import("../types/api").RequestData<{
|
|
3926
4234
|
external_reference?: string | undefined;
|
|
@@ -3991,6 +4299,7 @@ export declare class API {
|
|
|
3991
4299
|
iban: string;
|
|
3992
4300
|
};
|
|
3993
4301
|
} | undefined;
|
|
4302
|
+
shipping_country?: string | undefined;
|
|
3994
4303
|
lines: {
|
|
3995
4304
|
line_number?: number | undefined;
|
|
3996
4305
|
description: string;
|
|
@@ -4005,7 +4314,7 @@ export declare class API {
|
|
|
4005
4314
|
tax_code: string;
|
|
4006
4315
|
analytic_account?: string | undefined;
|
|
4007
4316
|
}[];
|
|
4008
|
-
}, params
|
|
4317
|
+
}, params?: {
|
|
4009
4318
|
force_financial_period?: string | undefined;
|
|
4010
4319
|
regroup_lines?: "true" | "false" | undefined;
|
|
4011
4320
|
folder_id?: string | undefined;
|
|
@@ -4087,6 +4396,7 @@ export declare class API {
|
|
|
4087
4396
|
iban: string;
|
|
4088
4397
|
};
|
|
4089
4398
|
} | undefined;
|
|
4399
|
+
shipping_country?: string | undefined;
|
|
4090
4400
|
lines: {
|
|
4091
4401
|
line_number?: number | undefined;
|
|
4092
4402
|
description: string;
|
|
@@ -4107,7 +4417,7 @@ export declare class API {
|
|
|
4107
4417
|
}[];
|
|
4108
4418
|
}[] | undefined;
|
|
4109
4419
|
}[];
|
|
4110
|
-
}, params
|
|
4420
|
+
}, params?: {
|
|
4111
4421
|
force_financial_period?: string | undefined;
|
|
4112
4422
|
regroup_lines?: "true" | "false" | undefined;
|
|
4113
4423
|
folder_id?: string | undefined;
|
|
@@ -4162,7 +4472,14 @@ export declare class API {
|
|
|
4162
4472
|
}[] | undefined;
|
|
4163
4473
|
}[];
|
|
4164
4474
|
}>;
|
|
4165
|
-
getInvoicesByType(invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund", params
|
|
4475
|
+
getInvoicesByType(invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund", params?: {
|
|
4476
|
+
date_from?: string | undefined;
|
|
4477
|
+
date_to?: string | undefined;
|
|
4478
|
+
folder_id?: string | undefined;
|
|
4479
|
+
journal_ids?: string | undefined;
|
|
4480
|
+
include_payments?: "true" | "false" | undefined;
|
|
4481
|
+
payment_status?: "all" | "paid" | "unpaid" | undefined;
|
|
4482
|
+
} | undefined): import("../types/api").RequestData<{
|
|
4166
4483
|
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
4167
4484
|
invoice_number?: string | undefined;
|
|
4168
4485
|
currency: string;
|
|
@@ -4207,7 +4524,7 @@ export declare class API {
|
|
|
4207
4524
|
analytic_account?: string | undefined;
|
|
4208
4525
|
}[];
|
|
4209
4526
|
}[]>;
|
|
4210
|
-
getInvoice(invoiceId: string, params
|
|
4527
|
+
getInvoice(invoiceId: string, params?: {
|
|
4211
4528
|
include_payments?: "true" | "false" | undefined;
|
|
4212
4529
|
folder_id?: string | undefined;
|
|
4213
4530
|
} | undefined): import("../types/api").RequestData<{
|
|
@@ -4255,7 +4572,7 @@ export declare class API {
|
|
|
4255
4572
|
analytic_account?: string | undefined;
|
|
4256
4573
|
}[];
|
|
4257
4574
|
}>;
|
|
4258
|
-
getInvoiceWithMultiplePlans(invoiceId: string, params
|
|
4575
|
+
getInvoiceWithMultiplePlans(invoiceId: string, params?: {
|
|
4259
4576
|
include_payments?: "true" | "false" | undefined;
|
|
4260
4577
|
folder_id?: string | undefined;
|
|
4261
4578
|
} | undefined): import("../types/api").RequestData<{
|
|
@@ -4309,7 +4626,14 @@ export declare class API {
|
|
|
4309
4626
|
}[] | undefined;
|
|
4310
4627
|
}[];
|
|
4311
4628
|
}>;
|
|
4312
|
-
getInvoicesByTypeWithMultiplePlans(invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund", params
|
|
4629
|
+
getInvoicesByTypeWithMultiplePlans(invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund", params?: {
|
|
4630
|
+
date_from?: string | undefined;
|
|
4631
|
+
date_to?: string | undefined;
|
|
4632
|
+
folder_id?: string | undefined;
|
|
4633
|
+
journal_ids?: string | undefined;
|
|
4634
|
+
include_payments?: "true" | "false" | undefined;
|
|
4635
|
+
payment_status?: "all" | "paid" | "unpaid" | undefined;
|
|
4636
|
+
} | undefined): import("../types/api").RequestData<{
|
|
4313
4637
|
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
4314
4638
|
invoice_number?: string | undefined;
|
|
4315
4639
|
currency: string;
|
|
@@ -4365,7 +4689,7 @@ export declare class API {
|
|
|
4365
4689
|
code: string;
|
|
4366
4690
|
name: string;
|
|
4367
4691
|
currency: string;
|
|
4368
|
-
}, params
|
|
4692
|
+
}, params?: {
|
|
4369
4693
|
folder_id?: string | undefined;
|
|
4370
4694
|
} | undefined): import("../types/api").RequestData<{
|
|
4371
4695
|
id: string;
|
|
@@ -4377,10 +4701,8 @@ export declare class API {
|
|
|
4377
4701
|
credit?: number | undefined;
|
|
4378
4702
|
debit?: number | undefined;
|
|
4379
4703
|
}>;
|
|
4380
|
-
getAnalyticAccounts(params
|
|
4704
|
+
getAnalyticAccounts(params?: {
|
|
4381
4705
|
folder_id?: string | undefined;
|
|
4382
|
-
page?: number | undefined;
|
|
4383
|
-
size?: number | undefined;
|
|
4384
4706
|
} | undefined): import("../types/api").RequestData<{
|
|
4385
4707
|
id: string;
|
|
4386
4708
|
active: boolean;
|
|
@@ -4396,7 +4718,7 @@ export declare class API {
|
|
|
4396
4718
|
code: string;
|
|
4397
4719
|
name: string;
|
|
4398
4720
|
currency: string;
|
|
4399
|
-
}, params
|
|
4721
|
+
}, params?: {
|
|
4400
4722
|
folder_id?: string | undefined;
|
|
4401
4723
|
} | undefined): import("../types/api").RequestData<{
|
|
4402
4724
|
id: string;
|
|
@@ -4409,7 +4731,7 @@ export declare class API {
|
|
|
4409
4731
|
debit?: number | undefined;
|
|
4410
4732
|
analytic_plan: string;
|
|
4411
4733
|
}>;
|
|
4412
|
-
getAnalyticAccount(analytic_account_id: string, params
|
|
4734
|
+
getAnalyticAccount(analytic_account_id: string, params?: {
|
|
4413
4735
|
folder_id?: string | undefined;
|
|
4414
4736
|
} | undefined): import("../types/api").RequestData<{
|
|
4415
4737
|
id: string;
|
|
@@ -4426,7 +4748,7 @@ export declare class API {
|
|
|
4426
4748
|
code?: string | undefined;
|
|
4427
4749
|
name?: string | undefined;
|
|
4428
4750
|
currency?: string | undefined;
|
|
4429
|
-
}, params
|
|
4751
|
+
}, params?: {
|
|
4430
4752
|
folder_id?: string | undefined;
|
|
4431
4753
|
} | undefined): import("../types/api").RequestData<{
|
|
4432
4754
|
id: string;
|
|
@@ -4438,7 +4760,7 @@ export declare class API {
|
|
|
4438
4760
|
credit?: number | undefined;
|
|
4439
4761
|
debit?: number | undefined;
|
|
4440
4762
|
}>;
|
|
4441
|
-
getAnalyticAccountWithMultiplePlans(analytic_account_id: string, analytic_plan: string, params
|
|
4763
|
+
getAnalyticAccountWithMultiplePlans(analytic_account_id: string, analytic_plan: string, params?: {
|
|
4442
4764
|
folder_id?: string | undefined;
|
|
4443
4765
|
} | undefined): import("../types/api").RequestData<{
|
|
4444
4766
|
id: string;
|
|
@@ -4456,7 +4778,7 @@ export declare class API {
|
|
|
4456
4778
|
code?: string | undefined;
|
|
4457
4779
|
name?: string | undefined;
|
|
4458
4780
|
currency?: string | undefined;
|
|
4459
|
-
}, params
|
|
4781
|
+
}, params?: {
|
|
4460
4782
|
folder_id?: string | undefined;
|
|
4461
4783
|
} | undefined): import("../types/api").RequestData<{
|
|
4462
4784
|
id: string;
|
|
@@ -4469,10 +4791,8 @@ export declare class API {
|
|
|
4469
4791
|
debit?: number | undefined;
|
|
4470
4792
|
analytic_plan: string;
|
|
4471
4793
|
}>;
|
|
4472
|
-
getAnalyticAccountsWithMultiplePlans(params
|
|
4794
|
+
getAnalyticAccountsWithMultiplePlans(params?: {
|
|
4473
4795
|
folder_id?: string | undefined;
|
|
4474
|
-
page?: number | undefined;
|
|
4475
|
-
size?: number | undefined;
|
|
4476
4796
|
} | undefined): import("../types/api").RequestData<{
|
|
4477
4797
|
id: string;
|
|
4478
4798
|
active: boolean;
|
|
@@ -4553,7 +4873,7 @@ export declare class API {
|
|
|
4553
4873
|
}[] | undefined;
|
|
4554
4874
|
}[] | undefined;
|
|
4555
4875
|
}[]>;
|
|
4556
|
-
getPaymentsByInvoiceId(invoice_id: string, params
|
|
4876
|
+
getPaymentsByInvoiceId(invoice_id: string, params?: {
|
|
4557
4877
|
folder_id?: string | undefined;
|
|
4558
4878
|
page?: number | undefined;
|
|
4559
4879
|
size?: number | undefined;
|
|
@@ -4571,20 +4891,16 @@ export declare class API {
|
|
|
4571
4891
|
communication?: string | undefined;
|
|
4572
4892
|
matching_number?: string | undefined;
|
|
4573
4893
|
}[]>;
|
|
4574
|
-
getJournals(params
|
|
4894
|
+
getJournals(params?: {
|
|
4575
4895
|
folder_id?: string | undefined;
|
|
4576
|
-
page?: number | undefined;
|
|
4577
|
-
size?: number | undefined;
|
|
4578
4896
|
} | undefined): import("../types/api").RequestData<{
|
|
4579
4897
|
id: string;
|
|
4580
4898
|
code?: string | undefined;
|
|
4581
4899
|
name: string;
|
|
4582
4900
|
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
4583
4901
|
}[]>;
|
|
4584
|
-
getVatCodes(params
|
|
4902
|
+
getVatCodes(params?: {
|
|
4585
4903
|
folder_id?: string | undefined;
|
|
4586
|
-
page?: number | undefined;
|
|
4587
|
-
size?: number | undefined;
|
|
4588
4904
|
} | undefined): import("../types/api").RequestData<{
|
|
4589
4905
|
id: string;
|
|
4590
4906
|
code?: string | undefined;
|
|
@@ -4595,7 +4911,12 @@ export declare class API {
|
|
|
4595
4911
|
deductible_account?: string | undefined;
|
|
4596
4912
|
payable_account?: string | undefined;
|
|
4597
4913
|
}[]>;
|
|
4598
|
-
getMiscOperations(params
|
|
4914
|
+
getMiscOperations(params?: {
|
|
4915
|
+
date_from?: string | undefined;
|
|
4916
|
+
date_to?: string | undefined;
|
|
4917
|
+
folder_id?: string | undefined;
|
|
4918
|
+
journal_ids?: string | undefined;
|
|
4919
|
+
} | undefined): import("../types/api").RequestData<{
|
|
4599
4920
|
operation_number?: string | undefined;
|
|
4600
4921
|
currency: string;
|
|
4601
4922
|
currency_exchange_rate?: number | undefined;
|
|
@@ -4629,7 +4950,7 @@ export declare class API {
|
|
|
4629
4950
|
operation_date: string;
|
|
4630
4951
|
journal_id?: string | undefined;
|
|
4631
4952
|
status?: "draft" | "posted" | undefined;
|
|
4632
|
-
}, params
|
|
4953
|
+
}, params?: {
|
|
4633
4954
|
folder_id?: string | undefined;
|
|
4634
4955
|
} | undefined): import("../types/api").RequestData<{
|
|
4635
4956
|
operation_number?: string | undefined;
|
|
@@ -4649,7 +4970,7 @@ export declare class API {
|
|
|
4649
4970
|
status: "cancelled" | "draft" | "posted" | "matched";
|
|
4650
4971
|
id: string;
|
|
4651
4972
|
}>;
|
|
4652
|
-
getMiscOperation(operation_id: string, params
|
|
4973
|
+
getMiscOperation(operation_id: string, params?: {
|
|
4653
4974
|
folder_id?: string | undefined;
|
|
4654
4975
|
} | undefined): import("../types/api").RequestData<{
|
|
4655
4976
|
operation_number?: string | undefined;
|
|
@@ -4671,24 +4992,25 @@ export declare class API {
|
|
|
4671
4992
|
}>;
|
|
4672
4993
|
attachPDF(invoice_id: string, attachment: {
|
|
4673
4994
|
base64_string: string;
|
|
4674
|
-
}, params
|
|
4995
|
+
}, params?: {
|
|
4675
4996
|
overwrite_existing?: "true" | "false" | undefined;
|
|
4676
4997
|
folder_id?: string | undefined;
|
|
4677
4998
|
} | undefined): import("../types/api").RequestData<{
|
|
4678
4999
|
content: {
|
|
4679
|
-
|
|
5000
|
+
'application/json': unknown;
|
|
4680
5001
|
};
|
|
4681
5002
|
}>;
|
|
4682
5003
|
getAttachments(params: {
|
|
5004
|
+
folder_id?: string | undefined;
|
|
4683
5005
|
type: "invoice" | "entry";
|
|
4684
5006
|
document_id: string;
|
|
4685
|
-
folder_id?: string | undefined;
|
|
4686
|
-
page?: number | undefined;
|
|
4687
|
-
size?: number | undefined;
|
|
4688
5007
|
}): import("../types/api").RequestData<{
|
|
4689
5008
|
base64_string: string;
|
|
4690
5009
|
}[]>;
|
|
4691
|
-
getChartOfAccounts(params
|
|
5010
|
+
getChartOfAccounts(params?: {
|
|
5011
|
+
classes?: string | undefined;
|
|
5012
|
+
folder_id?: string | undefined;
|
|
5013
|
+
} | undefined): import("../types/api").RequestData<{
|
|
4692
5014
|
number: string;
|
|
4693
5015
|
name: string;
|
|
4694
5016
|
active?: boolean | undefined;
|
|
@@ -4698,10 +5020,8 @@ export declare class API {
|
|
|
4698
5020
|
accounts: string[];
|
|
4699
5021
|
start?: string | undefined;
|
|
4700
5022
|
end: string;
|
|
4701
|
-
}, params
|
|
5023
|
+
}, params?: {
|
|
4702
5024
|
folder_id?: string | undefined;
|
|
4703
|
-
page?: number | undefined;
|
|
4704
|
-
size?: number | undefined;
|
|
4705
5025
|
} | undefined): import("../types/api").RequestData<{
|
|
4706
5026
|
account_number: string;
|
|
4707
5027
|
account_name?: string | undefined;
|
|
@@ -4709,10 +5029,8 @@ export declare class API {
|
|
|
4709
5029
|
credit: number;
|
|
4710
5030
|
balance: number;
|
|
4711
5031
|
}[]>;
|
|
4712
|
-
getEmployees(params
|
|
5032
|
+
getEmployees(params?: {
|
|
4713
5033
|
folder_id?: string | undefined;
|
|
4714
|
-
page?: number | undefined;
|
|
4715
|
-
size?: number | undefined;
|
|
4716
5034
|
} | undefined): import("../types/api").RequestData<{
|
|
4717
5035
|
id: string;
|
|
4718
5036
|
name: string;
|
|
@@ -4728,8 +5046,8 @@ export declare class API {
|
|
|
4728
5046
|
}[]>;
|
|
4729
5047
|
getOutstandings(params: {
|
|
4730
5048
|
folder_id?: string | undefined;
|
|
4731
|
-
unposted_allowed: "true" | "false";
|
|
4732
5049
|
type: "supplier" | "client";
|
|
5050
|
+
unposted_allowed: "true" | "false";
|
|
4733
5051
|
}): import("../types/api").RequestData<{
|
|
4734
5052
|
id: string;
|
|
4735
5053
|
number?: string | undefined;
|
|
@@ -4762,7 +5080,7 @@ export declare class API {
|
|
|
4762
5080
|
description?: string | undefined;
|
|
4763
5081
|
}[];
|
|
4764
5082
|
pdf?: string | undefined;
|
|
4765
|
-
}, params
|
|
5083
|
+
}, params?: {
|
|
4766
5084
|
financial_counterpart_account?: string | undefined;
|
|
4767
5085
|
folder_id?: string | undefined;
|
|
4768
5086
|
} | undefined): import("../types/api").RequestData<{
|
|
@@ -4796,7 +5114,7 @@ export declare class API {
|
|
|
4796
5114
|
description?: string | undefined;
|
|
4797
5115
|
}[];
|
|
4798
5116
|
pdf?: string | undefined;
|
|
4799
|
-
}, params
|
|
5117
|
+
}, params?: {
|
|
4800
5118
|
financial_counterpart_account?: string | undefined;
|
|
4801
5119
|
folder_id?: string | undefined;
|
|
4802
5120
|
} | undefined): import("../types/api").RequestData<{
|
|
@@ -4895,7 +5213,7 @@ export declare class API {
|
|
|
4895
5213
|
}[];
|
|
4896
5214
|
pdf?: string | undefined;
|
|
4897
5215
|
posted?: boolean | undefined;
|
|
4898
|
-
}, params
|
|
5216
|
+
}, params?: {
|
|
4899
5217
|
folder_id?: string | undefined;
|
|
4900
5218
|
} | undefined): import("../types/api").RequestData<{
|
|
4901
5219
|
reference?: string | undefined;
|
|
@@ -4930,7 +5248,7 @@ export declare class API {
|
|
|
4930
5248
|
matchEntries(body: {
|
|
4931
5249
|
entries: string[];
|
|
4932
5250
|
partner_id: string;
|
|
4933
|
-
}, params
|
|
5251
|
+
}, params?: {
|
|
4934
5252
|
folder_id?: string | undefined;
|
|
4935
5253
|
} | undefined): import("../types/api").RequestData<{
|
|
4936
5254
|
matching_number: string;
|
|
@@ -4940,17 +5258,17 @@ export declare class API {
|
|
|
4940
5258
|
id: string;
|
|
4941
5259
|
name: string;
|
|
4942
5260
|
selected?: boolean | undefined;
|
|
5261
|
+
vat?: string | undefined;
|
|
5262
|
+
company_number?: string | undefined;
|
|
4943
5263
|
}[]>;
|
|
4944
5264
|
}>;
|
|
4945
5265
|
invoicing: import("../types/api").ApiFor<{
|
|
4946
|
-
getInvoices(params
|
|
4947
|
-
invoice_type?: "all" | "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | undefined;
|
|
4948
|
-
payment_status?: "all" | "paid" | "unpaid" | undefined;
|
|
5266
|
+
getInvoices(params?: {
|
|
4949
5267
|
date_from?: string | undefined;
|
|
4950
5268
|
date_to?: string | undefined;
|
|
5269
|
+
payment_status?: "all" | "paid" | "unpaid" | undefined;
|
|
5270
|
+
invoice_type?: "all" | "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | undefined;
|
|
4951
5271
|
updated_after?: string | undefined;
|
|
4952
|
-
page?: number | undefined;
|
|
4953
|
-
size?: number | undefined;
|
|
4954
5272
|
} | undefined): import("../types/api").RequestData<{
|
|
4955
5273
|
id: string;
|
|
4956
5274
|
source_ref: {
|
|
@@ -4994,7 +5312,7 @@ export declare class API {
|
|
|
4994
5312
|
outstanding_amount?: number | undefined;
|
|
4995
5313
|
last_updated_on?: string | undefined;
|
|
4996
5314
|
}[]>;
|
|
4997
|
-
getInvoiceById(invoiceId: string, params
|
|
5315
|
+
getInvoiceById(invoiceId: string, params?: {
|
|
4998
5316
|
include_pdf?: "true" | "false" | undefined;
|
|
4999
5317
|
} | undefined): import("../types/api").RequestData<{
|
|
5000
5318
|
id: string;
|
|
@@ -5256,8 +5574,6 @@ export declare class API {
|
|
|
5256
5574
|
}>;
|
|
5257
5575
|
getContacts(params?: {
|
|
5258
5576
|
contact_type?: "prospect" | "customer" | "supplier" | "all" | undefined;
|
|
5259
|
-
page?: number | undefined;
|
|
5260
|
-
size?: number | undefined;
|
|
5261
5577
|
} | undefined): import("../types/api").RequestData<{
|
|
5262
5578
|
id: string;
|
|
5263
5579
|
source_ref: {
|
|
@@ -5668,7 +5984,13 @@ export declare class API {
|
|
|
5668
5984
|
id: string;
|
|
5669
5985
|
name: string;
|
|
5670
5986
|
}[]>;
|
|
5671
|
-
getOrders(params
|
|
5987
|
+
getOrders(params?: {
|
|
5988
|
+
date_from?: string | undefined;
|
|
5989
|
+
date_to?: string | undefined;
|
|
5990
|
+
updated_after?: string | undefined;
|
|
5991
|
+
include_detailed_refunds?: "true" | "false" | undefined;
|
|
5992
|
+
include_product_categories?: "true" | "false" | undefined;
|
|
5993
|
+
} | undefined): import("../types/api").RequestData<{
|
|
5672
5994
|
id: string;
|
|
5673
5995
|
source_ref: {
|
|
5674
5996
|
id?: string | undefined;
|
|
@@ -5714,8 +6036,9 @@ export declare class API {
|
|
|
5714
6036
|
created_on?: string | undefined;
|
|
5715
6037
|
last_updated_on?: string | undefined;
|
|
5716
6038
|
confirmed_on?: string | undefined;
|
|
6039
|
+
delivery_date?: string | undefined;
|
|
5717
6040
|
cancelled_on?: string | undefined;
|
|
5718
|
-
status: "cancelled" | "draft" | "confirmed" | "shipped" | "refunded";
|
|
6041
|
+
status: "cancelled" | "draft" | "cancelled_unpaid" | "confirmed" | "shipped" | "refunded";
|
|
5719
6042
|
discount_amount: number;
|
|
5720
6043
|
untaxed_amount_without_fees: number;
|
|
5721
6044
|
tax_amount_without_fees: number;
|
|
@@ -5739,6 +6062,10 @@ export declare class API {
|
|
|
5739
6062
|
id: string;
|
|
5740
6063
|
sku?: string | undefined;
|
|
5741
6064
|
name: string;
|
|
6065
|
+
categories?: {
|
|
6066
|
+
id: string;
|
|
6067
|
+
name: string;
|
|
6068
|
+
}[] | undefined;
|
|
5742
6069
|
} | undefined;
|
|
5743
6070
|
quantity: number;
|
|
5744
6071
|
untaxed_amount: number;
|
|
@@ -5756,6 +6083,13 @@ export declare class API {
|
|
|
5756
6083
|
tax_amount: number;
|
|
5757
6084
|
total: number;
|
|
5758
6085
|
}[] | undefined;
|
|
6086
|
+
transactions?: {
|
|
6087
|
+
id: string;
|
|
6088
|
+
payment_method_id?: string | undefined;
|
|
6089
|
+
payment_method_name?: string | undefined;
|
|
6090
|
+
amount: number;
|
|
6091
|
+
status: "failed" | "pending" | "success";
|
|
6092
|
+
}[] | undefined;
|
|
5759
6093
|
}[] | undefined;
|
|
5760
6094
|
currency: string;
|
|
5761
6095
|
note?: string | undefined;
|
|
@@ -5770,6 +6104,10 @@ export declare class API {
|
|
|
5770
6104
|
id: string;
|
|
5771
6105
|
sku?: string | undefined;
|
|
5772
6106
|
name: string;
|
|
6107
|
+
categories?: {
|
|
6108
|
+
id: string;
|
|
6109
|
+
name: string;
|
|
6110
|
+
}[] | undefined;
|
|
5773
6111
|
} | undefined;
|
|
5774
6112
|
quantity: number;
|
|
5775
6113
|
unit_price: number;
|
|
@@ -5905,8 +6243,9 @@ export declare class API {
|
|
|
5905
6243
|
created_on?: string | undefined;
|
|
5906
6244
|
last_updated_on?: string | undefined;
|
|
5907
6245
|
confirmed_on?: string | undefined;
|
|
6246
|
+
delivery_date?: string | undefined;
|
|
5908
6247
|
cancelled_on?: string | undefined;
|
|
5909
|
-
status: "cancelled" | "draft" | "confirmed" | "shipped" | "refunded";
|
|
6248
|
+
status: "cancelled" | "draft" | "cancelled_unpaid" | "confirmed" | "shipped" | "refunded";
|
|
5910
6249
|
discount_amount: number;
|
|
5911
6250
|
untaxed_amount_without_fees: number;
|
|
5912
6251
|
tax_amount_without_fees: number;
|
|
@@ -5930,6 +6269,10 @@ export declare class API {
|
|
|
5930
6269
|
id: string;
|
|
5931
6270
|
sku?: string | undefined;
|
|
5932
6271
|
name: string;
|
|
6272
|
+
categories?: {
|
|
6273
|
+
id: string;
|
|
6274
|
+
name: string;
|
|
6275
|
+
}[] | undefined;
|
|
5933
6276
|
} | undefined;
|
|
5934
6277
|
quantity: number;
|
|
5935
6278
|
untaxed_amount: number;
|
|
@@ -5947,6 +6290,13 @@ export declare class API {
|
|
|
5947
6290
|
tax_amount: number;
|
|
5948
6291
|
total: number;
|
|
5949
6292
|
}[] | undefined;
|
|
6293
|
+
transactions?: {
|
|
6294
|
+
id: string;
|
|
6295
|
+
payment_method_id?: string | undefined;
|
|
6296
|
+
payment_method_name?: string | undefined;
|
|
6297
|
+
amount: number;
|
|
6298
|
+
status: "failed" | "pending" | "success";
|
|
6299
|
+
}[] | undefined;
|
|
5950
6300
|
}[] | undefined;
|
|
5951
6301
|
currency: string;
|
|
5952
6302
|
note?: string | undefined;
|
|
@@ -5961,6 +6311,10 @@ export declare class API {
|
|
|
5961
6311
|
id: string;
|
|
5962
6312
|
sku?: string | undefined;
|
|
5963
6313
|
name: string;
|
|
6314
|
+
categories?: {
|
|
6315
|
+
id: string;
|
|
6316
|
+
name: string;
|
|
6317
|
+
}[] | undefined;
|
|
5964
6318
|
} | undefined;
|
|
5965
6319
|
quantity: number;
|
|
5966
6320
|
unit_price: number;
|
|
@@ -6055,8 +6409,9 @@ export declare class API {
|
|
|
6055
6409
|
created_on?: string | undefined;
|
|
6056
6410
|
last_updated_on?: string | undefined;
|
|
6057
6411
|
confirmed_on?: string | undefined;
|
|
6412
|
+
delivery_date?: string | undefined;
|
|
6058
6413
|
cancelled_on?: string | undefined;
|
|
6059
|
-
status: "cancelled" | "draft" | "confirmed" | "shipped" | "refunded";
|
|
6414
|
+
status: "cancelled" | "draft" | "cancelled_unpaid" | "confirmed" | "shipped" | "refunded";
|
|
6060
6415
|
discount_amount: number;
|
|
6061
6416
|
untaxed_amount_without_fees: number;
|
|
6062
6417
|
tax_amount_without_fees: number;
|
|
@@ -6080,6 +6435,10 @@ export declare class API {
|
|
|
6080
6435
|
id: string;
|
|
6081
6436
|
sku?: string | undefined;
|
|
6082
6437
|
name: string;
|
|
6438
|
+
categories?: {
|
|
6439
|
+
id: string;
|
|
6440
|
+
name: string;
|
|
6441
|
+
}[] | undefined;
|
|
6083
6442
|
} | undefined;
|
|
6084
6443
|
quantity: number;
|
|
6085
6444
|
untaxed_amount: number;
|
|
@@ -6097,6 +6456,13 @@ export declare class API {
|
|
|
6097
6456
|
tax_amount: number;
|
|
6098
6457
|
total: number;
|
|
6099
6458
|
}[] | undefined;
|
|
6459
|
+
transactions?: {
|
|
6460
|
+
id: string;
|
|
6461
|
+
payment_method_id?: string | undefined;
|
|
6462
|
+
payment_method_name?: string | undefined;
|
|
6463
|
+
amount: number;
|
|
6464
|
+
status: "failed" | "pending" | "success";
|
|
6465
|
+
}[] | undefined;
|
|
6100
6466
|
}[] | undefined;
|
|
6101
6467
|
currency: string;
|
|
6102
6468
|
note?: string | undefined;
|
|
@@ -6111,6 +6477,10 @@ export declare class API {
|
|
|
6111
6477
|
id: string;
|
|
6112
6478
|
sku?: string | undefined;
|
|
6113
6479
|
name: string;
|
|
6480
|
+
categories?: {
|
|
6481
|
+
id: string;
|
|
6482
|
+
name: string;
|
|
6483
|
+
}[] | undefined;
|
|
6114
6484
|
} | undefined;
|
|
6115
6485
|
quantity: number;
|
|
6116
6486
|
unit_price: number;
|
|
@@ -6159,7 +6529,7 @@ export declare class API {
|
|
|
6159
6529
|
name?: string | undefined;
|
|
6160
6530
|
}[] | undefined;
|
|
6161
6531
|
}>;
|
|
6162
|
-
getPaymentMethods(params
|
|
6532
|
+
getPaymentMethods(params?: {} | undefined): import("../types/api").RequestData<{
|
|
6163
6533
|
id: string;
|
|
6164
6534
|
source_ref: {
|
|
6165
6535
|
id?: string | undefined;
|
|
@@ -6168,7 +6538,9 @@ export declare class API {
|
|
|
6168
6538
|
name: string;
|
|
6169
6539
|
active: boolean;
|
|
6170
6540
|
}[]>;
|
|
6171
|
-
getProductCategories(params
|
|
6541
|
+
getProductCategories(params?: {
|
|
6542
|
+
only_parents?: "true" | "false" | undefined;
|
|
6543
|
+
} | undefined): import("../types/api").RequestData<{
|
|
6172
6544
|
id: string;
|
|
6173
6545
|
source_ref: {
|
|
6174
6546
|
id?: string | undefined;
|
|
@@ -6177,7 +6549,7 @@ export declare class API {
|
|
|
6177
6549
|
name: string;
|
|
6178
6550
|
parent_id?: string | undefined;
|
|
6179
6551
|
}[]>;
|
|
6180
|
-
getTaxes(params
|
|
6552
|
+
getTaxes(params?: {} | undefined): import("../types/api").RequestData<{
|
|
6181
6553
|
id: string;
|
|
6182
6554
|
source_ref: {
|
|
6183
6555
|
id?: string | undefined;
|
|
@@ -6187,7 +6559,7 @@ export declare class API {
|
|
|
6187
6559
|
rate: number;
|
|
6188
6560
|
country?: string | undefined;
|
|
6189
6561
|
}[]>;
|
|
6190
|
-
getCountries(params
|
|
6562
|
+
getCountries(params?: {} | undefined): import("../types/api").RequestData<{
|
|
6191
6563
|
code: string;
|
|
6192
6564
|
name: string;
|
|
6193
6565
|
}[]>;
|
|
@@ -6282,6 +6654,8 @@ export declare class API {
|
|
|
6282
6654
|
}[]>;
|
|
6283
6655
|
deleteDataStoreData: (dataStoreId: string, dataStoreDataId: string) => Promise<import("../types/sync").SimpleResponseModel>;
|
|
6284
6656
|
logData: (logs: import("../types/consumers").ConsumerLog[]) => Promise<import("../types/sync").SimpleResponseModel>;
|
|
6657
|
+
setConnectionId: (connectionId: string) => Promise<void>;
|
|
6658
|
+
setIntegrationId: (integrationId: string) => Promise<void>;
|
|
6285
6659
|
}>;
|
|
6286
6660
|
getConsumerById: (consumerId: string) => Promise<{
|
|
6287
6661
|
consumerId: string;
|
|
@@ -6368,6 +6742,26 @@ export declare class API {
|
|
|
6368
6742
|
total_discount?: number | undefined;
|
|
6369
6743
|
total_refund?: number | undefined;
|
|
6370
6744
|
total_tip?: number | undefined;
|
|
6745
|
+
currency?: string | undefined;
|
|
6746
|
+
country?: string | undefined;
|
|
6747
|
+
loyalty?: number | undefined;
|
|
6748
|
+
customer_id?: string | undefined;
|
|
6749
|
+
location_id?: string | undefined;
|
|
6750
|
+
taxes?: {
|
|
6751
|
+
tax_rate: number;
|
|
6752
|
+
tax_amount: number;
|
|
6753
|
+
total: number;
|
|
6754
|
+
}[] | undefined;
|
|
6755
|
+
payments: {
|
|
6756
|
+
id?: string | undefined;
|
|
6757
|
+
payment_method_id?: string | undefined;
|
|
6758
|
+
payment_method_name?: string | undefined;
|
|
6759
|
+
total: number;
|
|
6760
|
+
tip?: number | undefined;
|
|
6761
|
+
status?: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised" | undefined;
|
|
6762
|
+
currency?: string | undefined;
|
|
6763
|
+
date?: string | undefined;
|
|
6764
|
+
}[];
|
|
6371
6765
|
items: {
|
|
6372
6766
|
id: string;
|
|
6373
6767
|
quantity: number;
|
|
@@ -6383,28 +6777,12 @@ export declare class API {
|
|
|
6383
6777
|
product_id?: string | undefined;
|
|
6384
6778
|
accounting_category_id?: string | undefined;
|
|
6385
6779
|
}[];
|
|
6386
|
-
payments: {
|
|
6387
|
-
id?: string | undefined;
|
|
6388
|
-
payment_method_id?: string | undefined;
|
|
6389
|
-
payment_method_name?: string | undefined;
|
|
6390
|
-
total: number;
|
|
6391
|
-
tip?: number | undefined;
|
|
6392
|
-
status?: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised" | undefined;
|
|
6393
|
-
currency?: string | undefined;
|
|
6394
|
-
date?: string | undefined;
|
|
6395
|
-
}[];
|
|
6396
|
-
currency?: string | undefined;
|
|
6397
|
-
country?: string | undefined;
|
|
6398
|
-
loyalty?: number | undefined;
|
|
6399
|
-
customer_id?: string | undefined;
|
|
6400
|
-
location_id?: string | undefined;
|
|
6401
|
-
taxes?: {
|
|
6402
|
-
tax_rate: number;
|
|
6403
|
-
tax_amount: number;
|
|
6404
|
-
total: number;
|
|
6405
|
-
}[] | undefined;
|
|
6406
6780
|
}[]>;
|
|
6407
|
-
getCustomers(params
|
|
6781
|
+
getCustomers(params?: {
|
|
6782
|
+
search?: string | undefined;
|
|
6783
|
+
email?: string | undefined;
|
|
6784
|
+
phone?: string | undefined;
|
|
6785
|
+
} | undefined): import("../types/api").RequestData<{
|
|
6408
6786
|
id: string;
|
|
6409
6787
|
first_name?: string | undefined;
|
|
6410
6788
|
last_name?: string | undefined;
|
|
@@ -6437,6 +6815,26 @@ export declare class API {
|
|
|
6437
6815
|
total_discount?: number | undefined;
|
|
6438
6816
|
total_refund?: number | undefined;
|
|
6439
6817
|
total_tip?: number | undefined;
|
|
6818
|
+
currency?: string | undefined;
|
|
6819
|
+
country?: string | undefined;
|
|
6820
|
+
loyalty?: number | undefined;
|
|
6821
|
+
customer_id?: string | undefined;
|
|
6822
|
+
location_id?: string | undefined;
|
|
6823
|
+
taxes?: {
|
|
6824
|
+
tax_rate: number;
|
|
6825
|
+
tax_amount: number;
|
|
6826
|
+
total: number;
|
|
6827
|
+
}[] | undefined;
|
|
6828
|
+
payments: {
|
|
6829
|
+
id?: string | undefined;
|
|
6830
|
+
payment_method_id?: string | undefined;
|
|
6831
|
+
payment_method_name?: string | undefined;
|
|
6832
|
+
total: number;
|
|
6833
|
+
tip?: number | undefined;
|
|
6834
|
+
status?: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised" | undefined;
|
|
6835
|
+
currency?: string | undefined;
|
|
6836
|
+
date?: string | undefined;
|
|
6837
|
+
}[];
|
|
6440
6838
|
items: {
|
|
6441
6839
|
id: string;
|
|
6442
6840
|
quantity: number;
|
|
@@ -6452,26 +6850,6 @@ export declare class API {
|
|
|
6452
6850
|
product_id?: string | undefined;
|
|
6453
6851
|
accounting_category_id?: string | undefined;
|
|
6454
6852
|
}[];
|
|
6455
|
-
payments: {
|
|
6456
|
-
id?: string | undefined;
|
|
6457
|
-
payment_method_id?: string | undefined;
|
|
6458
|
-
payment_method_name?: string | undefined;
|
|
6459
|
-
total: number;
|
|
6460
|
-
tip?: number | undefined;
|
|
6461
|
-
status?: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised" | undefined;
|
|
6462
|
-
currency?: string | undefined;
|
|
6463
|
-
date?: string | undefined;
|
|
6464
|
-
}[];
|
|
6465
|
-
currency?: string | undefined;
|
|
6466
|
-
country?: string | undefined;
|
|
6467
|
-
loyalty?: number | undefined;
|
|
6468
|
-
customer_id?: string | undefined;
|
|
6469
|
-
location_id?: string | undefined;
|
|
6470
|
-
taxes?: {
|
|
6471
|
-
tax_rate: number;
|
|
6472
|
-
tax_amount: number;
|
|
6473
|
-
total: number;
|
|
6474
|
-
}[] | undefined;
|
|
6475
6853
|
}>;
|
|
6476
6854
|
getCustomer(customerId: string): import("../types/api").RequestData<{
|
|
6477
6855
|
id: string;
|
|
@@ -6529,12 +6907,17 @@ export declare class API {
|
|
|
6529
6907
|
loyalty?: number | undefined;
|
|
6530
6908
|
birthdate?: string | undefined;
|
|
6531
6909
|
}>;
|
|
6532
|
-
getPaymentMethods(params
|
|
6910
|
+
getPaymentMethods(params?: {
|
|
6911
|
+
location_id?: string | undefined;
|
|
6912
|
+
} | undefined): import("../types/api").RequestData<{
|
|
6533
6913
|
id: string;
|
|
6534
6914
|
name: string;
|
|
6535
6915
|
extra?: string | undefined;
|
|
6536
6916
|
}[]>;
|
|
6537
|
-
getProductCategories(params
|
|
6917
|
+
getProductCategories(params?: {
|
|
6918
|
+
location_id?: string | undefined;
|
|
6919
|
+
only_parents?: "true" | "false" | undefined;
|
|
6920
|
+
} | undefined): import("../types/api").RequestData<{
|
|
6538
6921
|
id: string;
|
|
6539
6922
|
source_ref: {
|
|
6540
6923
|
id?: string | undefined;
|
|
@@ -6543,7 +6926,9 @@ export declare class API {
|
|
|
6543
6926
|
name: string;
|
|
6544
6927
|
parent_id?: string | undefined;
|
|
6545
6928
|
}[]>;
|
|
6546
|
-
getProducts(params
|
|
6929
|
+
getProducts(params?: {
|
|
6930
|
+
location_id?: string | undefined;
|
|
6931
|
+
} | undefined): import("../types/api").RequestData<{
|
|
6547
6932
|
id: string;
|
|
6548
6933
|
categories?: string[] | undefined;
|
|
6549
6934
|
name: string;
|
|
@@ -6567,7 +6952,7 @@ export declare class API {
|
|
|
6567
6952
|
total: number;
|
|
6568
6953
|
}[] | undefined;
|
|
6569
6954
|
}>;
|
|
6570
|
-
getClosure(date: string, params
|
|
6955
|
+
getClosure(date: string, params?: {
|
|
6571
6956
|
location_id?: string | undefined;
|
|
6572
6957
|
} | undefined): import("../types/api").RequestData<{
|
|
6573
6958
|
date: string;
|
|
@@ -6576,20 +6961,102 @@ export declare class API {
|
|
|
6576
6961
|
getPayments(params: {
|
|
6577
6962
|
date_from: string;
|
|
6578
6963
|
date_to: string;
|
|
6579
|
-
}): import("../types/api").RequestData<{
|
|
6580
|
-
id?: string | undefined;
|
|
6581
|
-
payment_method_id?: string | undefined;
|
|
6582
|
-
payment_method_name?: string | undefined;
|
|
6583
|
-
total: number;
|
|
6584
|
-
tip?: number | undefined;
|
|
6585
|
-
status?: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised" | undefined;
|
|
6586
|
-
currency?: string | undefined;
|
|
6587
|
-
date?: string | undefined;
|
|
6588
|
-
}[]>;
|
|
6589
|
-
updateOrder(orderId: string, order: {
|
|
6590
|
-
customer_id?: string | undefined;
|
|
6964
|
+
}): import("../types/api").RequestData<{
|
|
6965
|
+
id?: string | undefined;
|
|
6966
|
+
payment_method_id?: string | undefined;
|
|
6967
|
+
payment_method_name?: string | undefined;
|
|
6968
|
+
total: number;
|
|
6969
|
+
tip?: number | undefined;
|
|
6970
|
+
status?: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised" | undefined;
|
|
6971
|
+
currency?: string | undefined;
|
|
6972
|
+
date?: string | undefined;
|
|
6973
|
+
}[]>;
|
|
6974
|
+
updateOrder(orderId: string, order: {
|
|
6975
|
+
customer_id?: string | undefined;
|
|
6976
|
+
}): import("../types/api").RequestData<{
|
|
6977
|
+
id: string;
|
|
6978
|
+
order_number?: string | undefined;
|
|
6979
|
+
creation_date: string;
|
|
6980
|
+
closing_date?: string | undefined;
|
|
6981
|
+
service_date?: string | undefined;
|
|
6982
|
+
device_id?: string | undefined;
|
|
6983
|
+
total: number;
|
|
6984
|
+
tax_amount: number;
|
|
6985
|
+
total_discount?: number | undefined;
|
|
6986
|
+
total_refund?: number | undefined;
|
|
6987
|
+
total_tip?: number | undefined;
|
|
6988
|
+
currency?: string | undefined;
|
|
6989
|
+
country?: string | undefined;
|
|
6990
|
+
loyalty?: number | undefined;
|
|
6991
|
+
customer_id?: string | undefined;
|
|
6992
|
+
location_id?: string | undefined;
|
|
6993
|
+
taxes?: {
|
|
6994
|
+
tax_rate: number;
|
|
6995
|
+
tax_amount: number;
|
|
6996
|
+
total: number;
|
|
6997
|
+
}[] | undefined;
|
|
6998
|
+
payments: {
|
|
6999
|
+
id?: string | undefined;
|
|
7000
|
+
payment_method_id?: string | undefined;
|
|
7001
|
+
payment_method_name?: string | undefined;
|
|
7002
|
+
total: number;
|
|
7003
|
+
tip?: number | undefined;
|
|
7004
|
+
status?: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised" | undefined;
|
|
7005
|
+
currency?: string | undefined;
|
|
7006
|
+
date?: string | undefined;
|
|
7007
|
+
}[];
|
|
7008
|
+
items: {
|
|
7009
|
+
id: string;
|
|
7010
|
+
quantity: number;
|
|
7011
|
+
unit_price: number;
|
|
7012
|
+
total: number;
|
|
7013
|
+
tax_amount: number;
|
|
7014
|
+
tax_rate?: number | undefined;
|
|
7015
|
+
description?: string | undefined;
|
|
7016
|
+
discounts?: {
|
|
7017
|
+
name?: string | undefined;
|
|
7018
|
+
total: number;
|
|
7019
|
+
}[] | undefined;
|
|
7020
|
+
product_id?: string | undefined;
|
|
7021
|
+
accounting_category_id?: string | undefined;
|
|
7022
|
+
}[];
|
|
7023
|
+
}>;
|
|
7024
|
+
getAccountingCategories(params?: {} | undefined): import("../types/api").RequestData<{
|
|
7025
|
+
id: string;
|
|
7026
|
+
name: string;
|
|
7027
|
+
id_parent?: string | undefined;
|
|
7028
|
+
code?: string | undefined;
|
|
7029
|
+
ledger_account_code?: string | undefined;
|
|
7030
|
+
posting_account_code?: string | undefined;
|
|
7031
|
+
}[]>;
|
|
7032
|
+
}>;
|
|
7033
|
+
pms: import("../types/api").ApiFor<{
|
|
7034
|
+
getLocations(): import("../types/api").RequestData<{
|
|
7035
|
+
id: string;
|
|
7036
|
+
name: string;
|
|
7037
|
+
timezone?: string | undefined;
|
|
7038
|
+
address?: {
|
|
7039
|
+
address_type?: string | undefined;
|
|
7040
|
+
name?: string | undefined;
|
|
7041
|
+
street?: string | undefined;
|
|
7042
|
+
number?: string | undefined;
|
|
7043
|
+
box?: string | undefined;
|
|
7044
|
+
city?: string | undefined;
|
|
7045
|
+
postal_code?: string | undefined;
|
|
7046
|
+
country?: string | undefined;
|
|
7047
|
+
} | undefined;
|
|
7048
|
+
}[]>;
|
|
7049
|
+
getOrders(params: {
|
|
7050
|
+
date_from: string;
|
|
7051
|
+
date_to: string;
|
|
7052
|
+
location_id?: string | undefined;
|
|
7053
|
+
state?: "closed" | "consumed" | undefined;
|
|
6591
7054
|
}): import("../types/api").RequestData<{
|
|
6592
7055
|
id: string;
|
|
7056
|
+
source_ref: {
|
|
7057
|
+
id?: string | undefined;
|
|
7058
|
+
model?: string | undefined;
|
|
7059
|
+
};
|
|
6593
7060
|
order_number?: string | undefined;
|
|
6594
7061
|
creation_date: string;
|
|
6595
7062
|
closing_date?: string | undefined;
|
|
@@ -6600,8 +7067,22 @@ export declare class API {
|
|
|
6600
7067
|
total_discount?: number | undefined;
|
|
6601
7068
|
total_refund?: number | undefined;
|
|
6602
7069
|
total_tip?: number | undefined;
|
|
7070
|
+
currency?: string | undefined;
|
|
7071
|
+
country?: string | undefined;
|
|
7072
|
+
loyalty?: number | undefined;
|
|
7073
|
+
customer_id?: string | undefined;
|
|
7074
|
+
location_id?: string | undefined;
|
|
7075
|
+
taxes?: {
|
|
7076
|
+
tax_rate: number;
|
|
7077
|
+
tax_amount: number;
|
|
7078
|
+
total: number;
|
|
7079
|
+
}[] | undefined;
|
|
6603
7080
|
items: {
|
|
6604
7081
|
id: string;
|
|
7082
|
+
source_ref: {
|
|
7083
|
+
id?: string | undefined;
|
|
7084
|
+
model?: string | undefined;
|
|
7085
|
+
};
|
|
6605
7086
|
quantity: number;
|
|
6606
7087
|
unit_price: number;
|
|
6607
7088
|
total: number;
|
|
@@ -6615,29 +7096,49 @@ export declare class API {
|
|
|
6615
7096
|
product_id?: string | undefined;
|
|
6616
7097
|
accounting_category_id?: string | undefined;
|
|
6617
7098
|
}[];
|
|
6618
|
-
|
|
7099
|
+
service_id?: string | undefined;
|
|
7100
|
+
}[]>;
|
|
7101
|
+
getPaymentMethods(params?: {
|
|
7102
|
+
location_id?: string | undefined;
|
|
7103
|
+
} | undefined): import("../types/api").RequestData<{
|
|
7104
|
+
id: string;
|
|
7105
|
+
source_ref: {
|
|
6619
7106
|
id?: string | undefined;
|
|
6620
|
-
|
|
6621
|
-
|
|
6622
|
-
|
|
6623
|
-
|
|
6624
|
-
|
|
6625
|
-
|
|
6626
|
-
|
|
6627
|
-
}[];
|
|
6628
|
-
currency?: string | undefined;
|
|
6629
|
-
country?: string | undefined;
|
|
6630
|
-
loyalty?: number | undefined;
|
|
6631
|
-
customer_id?: string | undefined;
|
|
7107
|
+
model?: string | undefined;
|
|
7108
|
+
};
|
|
7109
|
+
name: string;
|
|
7110
|
+
extra?: string | undefined;
|
|
7111
|
+
ledger_account_code?: string | undefined;
|
|
7112
|
+
}[]>;
|
|
7113
|
+
getClosure(date: string, params?: {
|
|
6632
7114
|
location_id?: string | undefined;
|
|
6633
|
-
|
|
6634
|
-
|
|
6635
|
-
|
|
6636
|
-
total: number;
|
|
6637
|
-
}[] | undefined;
|
|
7115
|
+
} | undefined): import("../types/api").RequestData<{
|
|
7116
|
+
date: string;
|
|
7117
|
+
status: "open" | "closed";
|
|
6638
7118
|
}>;
|
|
6639
|
-
|
|
7119
|
+
getPayments(params: {
|
|
7120
|
+
date_from: string;
|
|
7121
|
+
date_to: string;
|
|
7122
|
+
}): import("../types/api").RequestData<{
|
|
7123
|
+
id?: string | undefined;
|
|
7124
|
+
source_ref: {
|
|
7125
|
+
id?: string | undefined;
|
|
7126
|
+
model?: string | undefined;
|
|
7127
|
+
};
|
|
7128
|
+
payment_method_id?: string | undefined;
|
|
7129
|
+
payment_method_name?: string | undefined;
|
|
7130
|
+
total: number;
|
|
7131
|
+
tip?: number | undefined;
|
|
7132
|
+
status?: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised" | undefined;
|
|
7133
|
+
currency?: string | undefined;
|
|
7134
|
+
date?: string | undefined;
|
|
7135
|
+
}[]>;
|
|
7136
|
+
getAccountingCategories(params?: {} | undefined): import("../types/api").RequestData<{
|
|
6640
7137
|
id: string;
|
|
7138
|
+
source_ref: {
|
|
7139
|
+
id?: string | undefined;
|
|
7140
|
+
model?: string | undefined;
|
|
7141
|
+
};
|
|
6641
7142
|
name: string;
|
|
6642
7143
|
id_parent?: string | undefined;
|
|
6643
7144
|
code?: string | undefined;
|
|
@@ -6646,19 +7147,15 @@ export declare class API {
|
|
|
6646
7147
|
}[]>;
|
|
6647
7148
|
}>;
|
|
6648
7149
|
accounting: import("../types/api").ApiFor<{
|
|
6649
|
-
getAnalyticPlans(params
|
|
7150
|
+
getAnalyticPlans(params?: {
|
|
6650
7151
|
folder_id?: string | undefined;
|
|
6651
|
-
page?: number | undefined;
|
|
6652
|
-
size?: number | undefined;
|
|
6653
7152
|
} | undefined): import("../types/api").RequestData<{
|
|
6654
7153
|
id: string;
|
|
6655
7154
|
name: string;
|
|
6656
7155
|
active?: boolean | undefined;
|
|
6657
7156
|
}[]>;
|
|
6658
|
-
getClients(params
|
|
7157
|
+
getClients(params?: {
|
|
6659
7158
|
folder_id?: string | undefined;
|
|
6660
|
-
page?: number | undefined;
|
|
6661
|
-
size?: number | undefined;
|
|
6662
7159
|
} | undefined): import("../types/api").RequestData<{
|
|
6663
7160
|
external_reference?: string | undefined;
|
|
6664
7161
|
first_name?: string | undefined;
|
|
@@ -6728,7 +7225,7 @@ export declare class API {
|
|
|
6728
7225
|
country: string;
|
|
6729
7226
|
}[];
|
|
6730
7227
|
account_number?: string | undefined;
|
|
6731
|
-
}, params
|
|
7228
|
+
}, params?: {
|
|
6732
7229
|
force_merge?: string | undefined;
|
|
6733
7230
|
folder_id?: string | undefined;
|
|
6734
7231
|
} | undefined): import("../types/api").RequestData<{
|
|
@@ -6767,7 +7264,7 @@ export declare class API {
|
|
|
6767
7264
|
company_number?: string | undefined;
|
|
6768
7265
|
id?: string | undefined;
|
|
6769
7266
|
}>;
|
|
6770
|
-
getClient(clientId: string, params
|
|
7267
|
+
getClient(clientId: string, params?: {
|
|
6771
7268
|
folder_id?: string | undefined;
|
|
6772
7269
|
} | undefined): import("../types/api").RequestData<{
|
|
6773
7270
|
external_reference?: string | undefined;
|
|
@@ -6837,7 +7334,7 @@ export declare class API {
|
|
|
6837
7334
|
postal_code?: string | undefined;
|
|
6838
7335
|
country?: string | undefined;
|
|
6839
7336
|
}[] | undefined;
|
|
6840
|
-
}, params
|
|
7337
|
+
}, params?: {
|
|
6841
7338
|
folder_id?: string | undefined;
|
|
6842
7339
|
} | undefined): import("../types/api").RequestData<{
|
|
6843
7340
|
external_reference?: string | undefined;
|
|
@@ -6875,10 +7372,8 @@ export declare class API {
|
|
|
6875
7372
|
company_number?: string | undefined;
|
|
6876
7373
|
id?: string | undefined;
|
|
6877
7374
|
}>;
|
|
6878
|
-
getSuppliers(params
|
|
7375
|
+
getSuppliers(params?: {
|
|
6879
7376
|
folder_id?: string | undefined;
|
|
6880
|
-
page?: number | undefined;
|
|
6881
|
-
size?: number | undefined;
|
|
6882
7377
|
} | undefined): import("../types/api").RequestData<{
|
|
6883
7378
|
external_reference?: string | undefined;
|
|
6884
7379
|
first_name?: string | undefined;
|
|
@@ -6948,7 +7443,7 @@ export declare class API {
|
|
|
6948
7443
|
country: string;
|
|
6949
7444
|
}[];
|
|
6950
7445
|
account_number?: string | undefined;
|
|
6951
|
-
}, params
|
|
7446
|
+
}, params?: {
|
|
6952
7447
|
force_merge?: string | undefined;
|
|
6953
7448
|
folder_id?: string | undefined;
|
|
6954
7449
|
} | undefined): import("../types/api").RequestData<{
|
|
@@ -6987,7 +7482,7 @@ export declare class API {
|
|
|
6987
7482
|
company_number?: string | undefined;
|
|
6988
7483
|
id?: string | undefined;
|
|
6989
7484
|
}>;
|
|
6990
|
-
getSupplier(supplierId: string, params
|
|
7485
|
+
getSupplier(supplierId: string, params?: {
|
|
6991
7486
|
folder_id?: string | undefined;
|
|
6992
7487
|
} | undefined): import("../types/api").RequestData<{
|
|
6993
7488
|
external_reference?: string | undefined;
|
|
@@ -7057,7 +7552,7 @@ export declare class API {
|
|
|
7057
7552
|
postal_code?: string | undefined;
|
|
7058
7553
|
country?: string | undefined;
|
|
7059
7554
|
}[] | undefined;
|
|
7060
|
-
}, params
|
|
7555
|
+
}, params?: {
|
|
7061
7556
|
folder_id?: string | undefined;
|
|
7062
7557
|
} | undefined): import("../types/api").RequestData<{
|
|
7063
7558
|
external_reference?: string | undefined;
|
|
@@ -7128,6 +7623,7 @@ export declare class API {
|
|
|
7128
7623
|
iban: string;
|
|
7129
7624
|
};
|
|
7130
7625
|
} | undefined;
|
|
7626
|
+
shipping_country?: string | undefined;
|
|
7131
7627
|
lines: {
|
|
7132
7628
|
line_number?: number | undefined;
|
|
7133
7629
|
description: string;
|
|
@@ -7142,7 +7638,7 @@ export declare class API {
|
|
|
7142
7638
|
tax_code: string;
|
|
7143
7639
|
analytic_account?: string | undefined;
|
|
7144
7640
|
}[];
|
|
7145
|
-
}, params
|
|
7641
|
+
}, params?: {
|
|
7146
7642
|
force_financial_period?: string | undefined;
|
|
7147
7643
|
regroup_lines?: "true" | "false" | undefined;
|
|
7148
7644
|
folder_id?: string | undefined;
|
|
@@ -7224,6 +7720,7 @@ export declare class API {
|
|
|
7224
7720
|
iban: string;
|
|
7225
7721
|
};
|
|
7226
7722
|
} | undefined;
|
|
7723
|
+
shipping_country?: string | undefined;
|
|
7227
7724
|
lines: {
|
|
7228
7725
|
line_number?: number | undefined;
|
|
7229
7726
|
description: string;
|
|
@@ -7244,7 +7741,7 @@ export declare class API {
|
|
|
7244
7741
|
}[];
|
|
7245
7742
|
}[] | undefined;
|
|
7246
7743
|
}[];
|
|
7247
|
-
}, params
|
|
7744
|
+
}, params?: {
|
|
7248
7745
|
force_financial_period?: string | undefined;
|
|
7249
7746
|
regroup_lines?: "true" | "false" | undefined;
|
|
7250
7747
|
folder_id?: string | undefined;
|
|
@@ -7299,7 +7796,14 @@ export declare class API {
|
|
|
7299
7796
|
}[] | undefined;
|
|
7300
7797
|
}[];
|
|
7301
7798
|
}>;
|
|
7302
|
-
getInvoicesByType(invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund", params
|
|
7799
|
+
getInvoicesByType(invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund", params?: {
|
|
7800
|
+
date_from?: string | undefined;
|
|
7801
|
+
date_to?: string | undefined;
|
|
7802
|
+
folder_id?: string | undefined;
|
|
7803
|
+
journal_ids?: string | undefined;
|
|
7804
|
+
include_payments?: "true" | "false" | undefined;
|
|
7805
|
+
payment_status?: "all" | "paid" | "unpaid" | undefined;
|
|
7806
|
+
} | undefined): import("../types/api").RequestData<{
|
|
7303
7807
|
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
7304
7808
|
invoice_number?: string | undefined;
|
|
7305
7809
|
currency: string;
|
|
@@ -7344,7 +7848,7 @@ export declare class API {
|
|
|
7344
7848
|
analytic_account?: string | undefined;
|
|
7345
7849
|
}[];
|
|
7346
7850
|
}[]>;
|
|
7347
|
-
getInvoice(invoiceId: string, params
|
|
7851
|
+
getInvoice(invoiceId: string, params?: {
|
|
7348
7852
|
include_payments?: "true" | "false" | undefined;
|
|
7349
7853
|
folder_id?: string | undefined;
|
|
7350
7854
|
} | undefined): import("../types/api").RequestData<{
|
|
@@ -7392,7 +7896,7 @@ export declare class API {
|
|
|
7392
7896
|
analytic_account?: string | undefined;
|
|
7393
7897
|
}[];
|
|
7394
7898
|
}>;
|
|
7395
|
-
getInvoiceWithMultiplePlans(invoiceId: string, params
|
|
7899
|
+
getInvoiceWithMultiplePlans(invoiceId: string, params?: {
|
|
7396
7900
|
include_payments?: "true" | "false" | undefined;
|
|
7397
7901
|
folder_id?: string | undefined;
|
|
7398
7902
|
} | undefined): import("../types/api").RequestData<{
|
|
@@ -7446,7 +7950,14 @@ export declare class API {
|
|
|
7446
7950
|
}[] | undefined;
|
|
7447
7951
|
}[];
|
|
7448
7952
|
}>;
|
|
7449
|
-
getInvoicesByTypeWithMultiplePlans(invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund", params
|
|
7953
|
+
getInvoicesByTypeWithMultiplePlans(invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund", params?: {
|
|
7954
|
+
date_from?: string | undefined;
|
|
7955
|
+
date_to?: string | undefined;
|
|
7956
|
+
folder_id?: string | undefined;
|
|
7957
|
+
journal_ids?: string | undefined;
|
|
7958
|
+
include_payments?: "true" | "false" | undefined;
|
|
7959
|
+
payment_status?: "all" | "paid" | "unpaid" | undefined;
|
|
7960
|
+
} | undefined): import("../types/api").RequestData<{
|
|
7450
7961
|
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
7451
7962
|
invoice_number?: string | undefined;
|
|
7452
7963
|
currency: string;
|
|
@@ -7502,7 +8013,7 @@ export declare class API {
|
|
|
7502
8013
|
code: string;
|
|
7503
8014
|
name: string;
|
|
7504
8015
|
currency: string;
|
|
7505
|
-
}, params
|
|
8016
|
+
}, params?: {
|
|
7506
8017
|
folder_id?: string | undefined;
|
|
7507
8018
|
} | undefined): import("../types/api").RequestData<{
|
|
7508
8019
|
id: string;
|
|
@@ -7514,10 +8025,8 @@ export declare class API {
|
|
|
7514
8025
|
credit?: number | undefined;
|
|
7515
8026
|
debit?: number | undefined;
|
|
7516
8027
|
}>;
|
|
7517
|
-
getAnalyticAccounts(params
|
|
8028
|
+
getAnalyticAccounts(params?: {
|
|
7518
8029
|
folder_id?: string | undefined;
|
|
7519
|
-
page?: number | undefined;
|
|
7520
|
-
size?: number | undefined;
|
|
7521
8030
|
} | undefined): import("../types/api").RequestData<{
|
|
7522
8031
|
id: string;
|
|
7523
8032
|
active: boolean;
|
|
@@ -7533,7 +8042,7 @@ export declare class API {
|
|
|
7533
8042
|
code: string;
|
|
7534
8043
|
name: string;
|
|
7535
8044
|
currency: string;
|
|
7536
|
-
}, params
|
|
8045
|
+
}, params?: {
|
|
7537
8046
|
folder_id?: string | undefined;
|
|
7538
8047
|
} | undefined): import("../types/api").RequestData<{
|
|
7539
8048
|
id: string;
|
|
@@ -7546,7 +8055,7 @@ export declare class API {
|
|
|
7546
8055
|
debit?: number | undefined;
|
|
7547
8056
|
analytic_plan: string;
|
|
7548
8057
|
}>;
|
|
7549
|
-
getAnalyticAccount(analytic_account_id: string, params
|
|
8058
|
+
getAnalyticAccount(analytic_account_id: string, params?: {
|
|
7550
8059
|
folder_id?: string | undefined;
|
|
7551
8060
|
} | undefined): import("../types/api").RequestData<{
|
|
7552
8061
|
id: string;
|
|
@@ -7563,7 +8072,7 @@ export declare class API {
|
|
|
7563
8072
|
code?: string | undefined;
|
|
7564
8073
|
name?: string | undefined;
|
|
7565
8074
|
currency?: string | undefined;
|
|
7566
|
-
}, params
|
|
8075
|
+
}, params?: {
|
|
7567
8076
|
folder_id?: string | undefined;
|
|
7568
8077
|
} | undefined): import("../types/api").RequestData<{
|
|
7569
8078
|
id: string;
|
|
@@ -7575,7 +8084,7 @@ export declare class API {
|
|
|
7575
8084
|
credit?: number | undefined;
|
|
7576
8085
|
debit?: number | undefined;
|
|
7577
8086
|
}>;
|
|
7578
|
-
getAnalyticAccountWithMultiplePlans(analytic_account_id: string, analytic_plan: string, params
|
|
8087
|
+
getAnalyticAccountWithMultiplePlans(analytic_account_id: string, analytic_plan: string, params?: {
|
|
7579
8088
|
folder_id?: string | undefined;
|
|
7580
8089
|
} | undefined): import("../types/api").RequestData<{
|
|
7581
8090
|
id: string;
|
|
@@ -7593,7 +8102,7 @@ export declare class API {
|
|
|
7593
8102
|
code?: string | undefined;
|
|
7594
8103
|
name?: string | undefined;
|
|
7595
8104
|
currency?: string | undefined;
|
|
7596
|
-
}, params
|
|
8105
|
+
}, params?: {
|
|
7597
8106
|
folder_id?: string | undefined;
|
|
7598
8107
|
} | undefined): import("../types/api").RequestData<{
|
|
7599
8108
|
id: string;
|
|
@@ -7606,10 +8115,8 @@ export declare class API {
|
|
|
7606
8115
|
debit?: number | undefined;
|
|
7607
8116
|
analytic_plan: string;
|
|
7608
8117
|
}>;
|
|
7609
|
-
getAnalyticAccountsWithMultiplePlans(params
|
|
8118
|
+
getAnalyticAccountsWithMultiplePlans(params?: {
|
|
7610
8119
|
folder_id?: string | undefined;
|
|
7611
|
-
page?: number | undefined;
|
|
7612
|
-
size?: number | undefined;
|
|
7613
8120
|
} | undefined): import("../types/api").RequestData<{
|
|
7614
8121
|
id: string;
|
|
7615
8122
|
active: boolean;
|
|
@@ -7690,7 +8197,7 @@ export declare class API {
|
|
|
7690
8197
|
}[] | undefined;
|
|
7691
8198
|
}[] | undefined;
|
|
7692
8199
|
}[]>;
|
|
7693
|
-
getPaymentsByInvoiceId(invoice_id: string, params
|
|
8200
|
+
getPaymentsByInvoiceId(invoice_id: string, params?: {
|
|
7694
8201
|
folder_id?: string | undefined;
|
|
7695
8202
|
page?: number | undefined;
|
|
7696
8203
|
size?: number | undefined;
|
|
@@ -7708,20 +8215,16 @@ export declare class API {
|
|
|
7708
8215
|
communication?: string | undefined;
|
|
7709
8216
|
matching_number?: string | undefined;
|
|
7710
8217
|
}[]>;
|
|
7711
|
-
getJournals(params
|
|
8218
|
+
getJournals(params?: {
|
|
7712
8219
|
folder_id?: string | undefined;
|
|
7713
|
-
page?: number | undefined;
|
|
7714
|
-
size?: number | undefined;
|
|
7715
8220
|
} | undefined): import("../types/api").RequestData<{
|
|
7716
8221
|
id: string;
|
|
7717
8222
|
code?: string | undefined;
|
|
7718
8223
|
name: string;
|
|
7719
8224
|
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
7720
8225
|
}[]>;
|
|
7721
|
-
getVatCodes(params
|
|
8226
|
+
getVatCodes(params?: {
|
|
7722
8227
|
folder_id?: string | undefined;
|
|
7723
|
-
page?: number | undefined;
|
|
7724
|
-
size?: number | undefined;
|
|
7725
8228
|
} | undefined): import("../types/api").RequestData<{
|
|
7726
8229
|
id: string;
|
|
7727
8230
|
code?: string | undefined;
|
|
@@ -7732,7 +8235,12 @@ export declare class API {
|
|
|
7732
8235
|
deductible_account?: string | undefined;
|
|
7733
8236
|
payable_account?: string | undefined;
|
|
7734
8237
|
}[]>;
|
|
7735
|
-
getMiscOperations(params
|
|
8238
|
+
getMiscOperations(params?: {
|
|
8239
|
+
date_from?: string | undefined;
|
|
8240
|
+
date_to?: string | undefined;
|
|
8241
|
+
folder_id?: string | undefined;
|
|
8242
|
+
journal_ids?: string | undefined;
|
|
8243
|
+
} | undefined): import("../types/api").RequestData<{
|
|
7736
8244
|
operation_number?: string | undefined;
|
|
7737
8245
|
currency: string;
|
|
7738
8246
|
currency_exchange_rate?: number | undefined;
|
|
@@ -7766,7 +8274,7 @@ export declare class API {
|
|
|
7766
8274
|
operation_date: string;
|
|
7767
8275
|
journal_id?: string | undefined;
|
|
7768
8276
|
status?: "draft" | "posted" | undefined;
|
|
7769
|
-
}, params
|
|
8277
|
+
}, params?: {
|
|
7770
8278
|
folder_id?: string | undefined;
|
|
7771
8279
|
} | undefined): import("../types/api").RequestData<{
|
|
7772
8280
|
operation_number?: string | undefined;
|
|
@@ -7786,7 +8294,7 @@ export declare class API {
|
|
|
7786
8294
|
status: "cancelled" | "draft" | "posted" | "matched";
|
|
7787
8295
|
id: string;
|
|
7788
8296
|
}>;
|
|
7789
|
-
getMiscOperation(operation_id: string, params
|
|
8297
|
+
getMiscOperation(operation_id: string, params?: {
|
|
7790
8298
|
folder_id?: string | undefined;
|
|
7791
8299
|
} | undefined): import("../types/api").RequestData<{
|
|
7792
8300
|
operation_number?: string | undefined;
|
|
@@ -7808,24 +8316,25 @@ export declare class API {
|
|
|
7808
8316
|
}>;
|
|
7809
8317
|
attachPDF(invoice_id: string, attachment: {
|
|
7810
8318
|
base64_string: string;
|
|
7811
|
-
}, params
|
|
8319
|
+
}, params?: {
|
|
7812
8320
|
overwrite_existing?: "true" | "false" | undefined;
|
|
7813
8321
|
folder_id?: string | undefined;
|
|
7814
8322
|
} | undefined): import("../types/api").RequestData<{
|
|
7815
8323
|
content: {
|
|
7816
|
-
|
|
8324
|
+
'application/json': unknown;
|
|
7817
8325
|
};
|
|
7818
8326
|
}>;
|
|
7819
8327
|
getAttachments(params: {
|
|
8328
|
+
folder_id?: string | undefined;
|
|
7820
8329
|
type: "invoice" | "entry";
|
|
7821
8330
|
document_id: string;
|
|
7822
|
-
folder_id?: string | undefined;
|
|
7823
|
-
page?: number | undefined;
|
|
7824
|
-
size?: number | undefined;
|
|
7825
8331
|
}): import("../types/api").RequestData<{
|
|
7826
8332
|
base64_string: string;
|
|
7827
8333
|
}[]>;
|
|
7828
|
-
getChartOfAccounts(params
|
|
8334
|
+
getChartOfAccounts(params?: {
|
|
8335
|
+
classes?: string | undefined;
|
|
8336
|
+
folder_id?: string | undefined;
|
|
8337
|
+
} | undefined): import("../types/api").RequestData<{
|
|
7829
8338
|
number: string;
|
|
7830
8339
|
name: string;
|
|
7831
8340
|
active?: boolean | undefined;
|
|
@@ -7835,10 +8344,8 @@ export declare class API {
|
|
|
7835
8344
|
accounts: string[];
|
|
7836
8345
|
start?: string | undefined;
|
|
7837
8346
|
end: string;
|
|
7838
|
-
}, params
|
|
8347
|
+
}, params?: {
|
|
7839
8348
|
folder_id?: string | undefined;
|
|
7840
|
-
page?: number | undefined;
|
|
7841
|
-
size?: number | undefined;
|
|
7842
8349
|
} | undefined): import("../types/api").RequestData<{
|
|
7843
8350
|
account_number: string;
|
|
7844
8351
|
account_name?: string | undefined;
|
|
@@ -7846,10 +8353,8 @@ export declare class API {
|
|
|
7846
8353
|
credit: number;
|
|
7847
8354
|
balance: number;
|
|
7848
8355
|
}[]>;
|
|
7849
|
-
getEmployees(params
|
|
8356
|
+
getEmployees(params?: {
|
|
7850
8357
|
folder_id?: string | undefined;
|
|
7851
|
-
page?: number | undefined;
|
|
7852
|
-
size?: number | undefined;
|
|
7853
8358
|
} | undefined): import("../types/api").RequestData<{
|
|
7854
8359
|
id: string;
|
|
7855
8360
|
name: string;
|
|
@@ -7865,8 +8370,8 @@ export declare class API {
|
|
|
7865
8370
|
}[]>;
|
|
7866
8371
|
getOutstandings(params: {
|
|
7867
8372
|
folder_id?: string | undefined;
|
|
7868
|
-
unposted_allowed: "true" | "false";
|
|
7869
8373
|
type: "supplier" | "client";
|
|
8374
|
+
unposted_allowed: "true" | "false";
|
|
7870
8375
|
}): import("../types/api").RequestData<{
|
|
7871
8376
|
id: string;
|
|
7872
8377
|
number?: string | undefined;
|
|
@@ -7899,7 +8404,7 @@ export declare class API {
|
|
|
7899
8404
|
description?: string | undefined;
|
|
7900
8405
|
}[];
|
|
7901
8406
|
pdf?: string | undefined;
|
|
7902
|
-
}, params
|
|
8407
|
+
}, params?: {
|
|
7903
8408
|
financial_counterpart_account?: string | undefined;
|
|
7904
8409
|
folder_id?: string | undefined;
|
|
7905
8410
|
} | undefined): import("../types/api").RequestData<{
|
|
@@ -7933,7 +8438,7 @@ export declare class API {
|
|
|
7933
8438
|
description?: string | undefined;
|
|
7934
8439
|
}[];
|
|
7935
8440
|
pdf?: string | undefined;
|
|
7936
|
-
}, params
|
|
8441
|
+
}, params?: {
|
|
7937
8442
|
financial_counterpart_account?: string | undefined;
|
|
7938
8443
|
folder_id?: string | undefined;
|
|
7939
8444
|
} | undefined): import("../types/api").RequestData<{
|
|
@@ -8032,7 +8537,7 @@ export declare class API {
|
|
|
8032
8537
|
}[];
|
|
8033
8538
|
pdf?: string | undefined;
|
|
8034
8539
|
posted?: boolean | undefined;
|
|
8035
|
-
}, params
|
|
8540
|
+
}, params?: {
|
|
8036
8541
|
folder_id?: string | undefined;
|
|
8037
8542
|
} | undefined): import("../types/api").RequestData<{
|
|
8038
8543
|
reference?: string | undefined;
|
|
@@ -8067,7 +8572,7 @@ export declare class API {
|
|
|
8067
8572
|
matchEntries(body: {
|
|
8068
8573
|
entries: string[];
|
|
8069
8574
|
partner_id: string;
|
|
8070
|
-
}, params
|
|
8575
|
+
}, params?: {
|
|
8071
8576
|
folder_id?: string | undefined;
|
|
8072
8577
|
} | undefined): import("../types/api").RequestData<{
|
|
8073
8578
|
matching_number: string;
|
|
@@ -8077,17 +8582,17 @@ export declare class API {
|
|
|
8077
8582
|
id: string;
|
|
8078
8583
|
name: string;
|
|
8079
8584
|
selected?: boolean | undefined;
|
|
8585
|
+
vat?: string | undefined;
|
|
8586
|
+
company_number?: string | undefined;
|
|
8080
8587
|
}[]>;
|
|
8081
8588
|
}>;
|
|
8082
8589
|
invoicing: import("../types/api").ApiFor<{
|
|
8083
|
-
getInvoices(params
|
|
8084
|
-
invoice_type?: "all" | "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | undefined;
|
|
8085
|
-
payment_status?: "all" | "paid" | "unpaid" | undefined;
|
|
8590
|
+
getInvoices(params?: {
|
|
8086
8591
|
date_from?: string | undefined;
|
|
8087
8592
|
date_to?: string | undefined;
|
|
8593
|
+
payment_status?: "all" | "paid" | "unpaid" | undefined;
|
|
8594
|
+
invoice_type?: "all" | "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | undefined;
|
|
8088
8595
|
updated_after?: string | undefined;
|
|
8089
|
-
page?: number | undefined;
|
|
8090
|
-
size?: number | undefined;
|
|
8091
8596
|
} | undefined): import("../types/api").RequestData<{
|
|
8092
8597
|
id: string;
|
|
8093
8598
|
source_ref: {
|
|
@@ -8131,7 +8636,7 @@ export declare class API {
|
|
|
8131
8636
|
outstanding_amount?: number | undefined;
|
|
8132
8637
|
last_updated_on?: string | undefined;
|
|
8133
8638
|
}[]>;
|
|
8134
|
-
getInvoiceById(invoiceId: string, params
|
|
8639
|
+
getInvoiceById(invoiceId: string, params?: {
|
|
8135
8640
|
include_pdf?: "true" | "false" | undefined;
|
|
8136
8641
|
} | undefined): import("../types/api").RequestData<{
|
|
8137
8642
|
id: string;
|
|
@@ -8393,8 +8898,6 @@ export declare class API {
|
|
|
8393
8898
|
}>;
|
|
8394
8899
|
getContacts(params?: {
|
|
8395
8900
|
contact_type?: "prospect" | "customer" | "supplier" | "all" | undefined;
|
|
8396
|
-
page?: number | undefined;
|
|
8397
|
-
size?: number | undefined;
|
|
8398
8901
|
} | undefined): import("../types/api").RequestData<{
|
|
8399
8902
|
id: string;
|
|
8400
8903
|
source_ref: {
|
|
@@ -8805,7 +9308,13 @@ export declare class API {
|
|
|
8805
9308
|
id: string;
|
|
8806
9309
|
name: string;
|
|
8807
9310
|
}[]>;
|
|
8808
|
-
getOrders(params
|
|
9311
|
+
getOrders(params?: {
|
|
9312
|
+
date_from?: string | undefined;
|
|
9313
|
+
date_to?: string | undefined;
|
|
9314
|
+
updated_after?: string | undefined;
|
|
9315
|
+
include_detailed_refunds?: "true" | "false" | undefined;
|
|
9316
|
+
include_product_categories?: "true" | "false" | undefined;
|
|
9317
|
+
} | undefined): import("../types/api").RequestData<{
|
|
8809
9318
|
id: string;
|
|
8810
9319
|
source_ref: {
|
|
8811
9320
|
id?: string | undefined;
|
|
@@ -8851,8 +9360,9 @@ export declare class API {
|
|
|
8851
9360
|
created_on?: string | undefined;
|
|
8852
9361
|
last_updated_on?: string | undefined;
|
|
8853
9362
|
confirmed_on?: string | undefined;
|
|
9363
|
+
delivery_date?: string | undefined;
|
|
8854
9364
|
cancelled_on?: string | undefined;
|
|
8855
|
-
status: "cancelled" | "draft" | "confirmed" | "shipped" | "refunded";
|
|
9365
|
+
status: "cancelled" | "draft" | "cancelled_unpaid" | "confirmed" | "shipped" | "refunded";
|
|
8856
9366
|
discount_amount: number;
|
|
8857
9367
|
untaxed_amount_without_fees: number;
|
|
8858
9368
|
tax_amount_without_fees: number;
|
|
@@ -8876,6 +9386,10 @@ export declare class API {
|
|
|
8876
9386
|
id: string;
|
|
8877
9387
|
sku?: string | undefined;
|
|
8878
9388
|
name: string;
|
|
9389
|
+
categories?: {
|
|
9390
|
+
id: string;
|
|
9391
|
+
name: string;
|
|
9392
|
+
}[] | undefined;
|
|
8879
9393
|
} | undefined;
|
|
8880
9394
|
quantity: number;
|
|
8881
9395
|
untaxed_amount: number;
|
|
@@ -8893,6 +9407,13 @@ export declare class API {
|
|
|
8893
9407
|
tax_amount: number;
|
|
8894
9408
|
total: number;
|
|
8895
9409
|
}[] | undefined;
|
|
9410
|
+
transactions?: {
|
|
9411
|
+
id: string;
|
|
9412
|
+
payment_method_id?: string | undefined;
|
|
9413
|
+
payment_method_name?: string | undefined;
|
|
9414
|
+
amount: number;
|
|
9415
|
+
status: "failed" | "pending" | "success";
|
|
9416
|
+
}[] | undefined;
|
|
8896
9417
|
}[] | undefined;
|
|
8897
9418
|
currency: string;
|
|
8898
9419
|
note?: string | undefined;
|
|
@@ -8907,6 +9428,10 @@ export declare class API {
|
|
|
8907
9428
|
id: string;
|
|
8908
9429
|
sku?: string | undefined;
|
|
8909
9430
|
name: string;
|
|
9431
|
+
categories?: {
|
|
9432
|
+
id: string;
|
|
9433
|
+
name: string;
|
|
9434
|
+
}[] | undefined;
|
|
8910
9435
|
} | undefined;
|
|
8911
9436
|
quantity: number;
|
|
8912
9437
|
unit_price: number;
|
|
@@ -9042,8 +9567,9 @@ export declare class API {
|
|
|
9042
9567
|
created_on?: string | undefined;
|
|
9043
9568
|
last_updated_on?: string | undefined;
|
|
9044
9569
|
confirmed_on?: string | undefined;
|
|
9570
|
+
delivery_date?: string | undefined;
|
|
9045
9571
|
cancelled_on?: string | undefined;
|
|
9046
|
-
status: "cancelled" | "draft" | "confirmed" | "shipped" | "refunded";
|
|
9572
|
+
status: "cancelled" | "draft" | "cancelled_unpaid" | "confirmed" | "shipped" | "refunded";
|
|
9047
9573
|
discount_amount: number;
|
|
9048
9574
|
untaxed_amount_without_fees: number;
|
|
9049
9575
|
tax_amount_without_fees: number;
|
|
@@ -9067,6 +9593,10 @@ export declare class API {
|
|
|
9067
9593
|
id: string;
|
|
9068
9594
|
sku?: string | undefined;
|
|
9069
9595
|
name: string;
|
|
9596
|
+
categories?: {
|
|
9597
|
+
id: string;
|
|
9598
|
+
name: string;
|
|
9599
|
+
}[] | undefined;
|
|
9070
9600
|
} | undefined;
|
|
9071
9601
|
quantity: number;
|
|
9072
9602
|
untaxed_amount: number;
|
|
@@ -9084,6 +9614,13 @@ export declare class API {
|
|
|
9084
9614
|
tax_amount: number;
|
|
9085
9615
|
total: number;
|
|
9086
9616
|
}[] | undefined;
|
|
9617
|
+
transactions?: {
|
|
9618
|
+
id: string;
|
|
9619
|
+
payment_method_id?: string | undefined;
|
|
9620
|
+
payment_method_name?: string | undefined;
|
|
9621
|
+
amount: number;
|
|
9622
|
+
status: "failed" | "pending" | "success";
|
|
9623
|
+
}[] | undefined;
|
|
9087
9624
|
}[] | undefined;
|
|
9088
9625
|
currency: string;
|
|
9089
9626
|
note?: string | undefined;
|
|
@@ -9098,6 +9635,10 @@ export declare class API {
|
|
|
9098
9635
|
id: string;
|
|
9099
9636
|
sku?: string | undefined;
|
|
9100
9637
|
name: string;
|
|
9638
|
+
categories?: {
|
|
9639
|
+
id: string;
|
|
9640
|
+
name: string;
|
|
9641
|
+
}[] | undefined;
|
|
9101
9642
|
} | undefined;
|
|
9102
9643
|
quantity: number;
|
|
9103
9644
|
unit_price: number;
|
|
@@ -9192,8 +9733,9 @@ export declare class API {
|
|
|
9192
9733
|
created_on?: string | undefined;
|
|
9193
9734
|
last_updated_on?: string | undefined;
|
|
9194
9735
|
confirmed_on?: string | undefined;
|
|
9736
|
+
delivery_date?: string | undefined;
|
|
9195
9737
|
cancelled_on?: string | undefined;
|
|
9196
|
-
status: "cancelled" | "draft" | "confirmed" | "shipped" | "refunded";
|
|
9738
|
+
status: "cancelled" | "draft" | "cancelled_unpaid" | "confirmed" | "shipped" | "refunded";
|
|
9197
9739
|
discount_amount: number;
|
|
9198
9740
|
untaxed_amount_without_fees: number;
|
|
9199
9741
|
tax_amount_without_fees: number;
|
|
@@ -9217,6 +9759,10 @@ export declare class API {
|
|
|
9217
9759
|
id: string;
|
|
9218
9760
|
sku?: string | undefined;
|
|
9219
9761
|
name: string;
|
|
9762
|
+
categories?: {
|
|
9763
|
+
id: string;
|
|
9764
|
+
name: string;
|
|
9765
|
+
}[] | undefined;
|
|
9220
9766
|
} | undefined;
|
|
9221
9767
|
quantity: number;
|
|
9222
9768
|
untaxed_amount: number;
|
|
@@ -9234,6 +9780,13 @@ export declare class API {
|
|
|
9234
9780
|
tax_amount: number;
|
|
9235
9781
|
total: number;
|
|
9236
9782
|
}[] | undefined;
|
|
9783
|
+
transactions?: {
|
|
9784
|
+
id: string;
|
|
9785
|
+
payment_method_id?: string | undefined;
|
|
9786
|
+
payment_method_name?: string | undefined;
|
|
9787
|
+
amount: number;
|
|
9788
|
+
status: "failed" | "pending" | "success";
|
|
9789
|
+
}[] | undefined;
|
|
9237
9790
|
}[] | undefined;
|
|
9238
9791
|
currency: string;
|
|
9239
9792
|
note?: string | undefined;
|
|
@@ -9248,6 +9801,10 @@ export declare class API {
|
|
|
9248
9801
|
id: string;
|
|
9249
9802
|
sku?: string | undefined;
|
|
9250
9803
|
name: string;
|
|
9804
|
+
categories?: {
|
|
9805
|
+
id: string;
|
|
9806
|
+
name: string;
|
|
9807
|
+
}[] | undefined;
|
|
9251
9808
|
} | undefined;
|
|
9252
9809
|
quantity: number;
|
|
9253
9810
|
unit_price: number;
|
|
@@ -9296,7 +9853,7 @@ export declare class API {
|
|
|
9296
9853
|
name?: string | undefined;
|
|
9297
9854
|
}[] | undefined;
|
|
9298
9855
|
}>;
|
|
9299
|
-
getPaymentMethods(params
|
|
9856
|
+
getPaymentMethods(params?: {} | undefined): import("../types/api").RequestData<{
|
|
9300
9857
|
id: string;
|
|
9301
9858
|
source_ref: {
|
|
9302
9859
|
id?: string | undefined;
|
|
@@ -9305,7 +9862,9 @@ export declare class API {
|
|
|
9305
9862
|
name: string;
|
|
9306
9863
|
active: boolean;
|
|
9307
9864
|
}[]>;
|
|
9308
|
-
getProductCategories(params
|
|
9865
|
+
getProductCategories(params?: {
|
|
9866
|
+
only_parents?: "true" | "false" | undefined;
|
|
9867
|
+
} | undefined): import("../types/api").RequestData<{
|
|
9309
9868
|
id: string;
|
|
9310
9869
|
source_ref: {
|
|
9311
9870
|
id?: string | undefined;
|
|
@@ -9314,7 +9873,7 @@ export declare class API {
|
|
|
9314
9873
|
name: string;
|
|
9315
9874
|
parent_id?: string | undefined;
|
|
9316
9875
|
}[]>;
|
|
9317
|
-
getTaxes(params
|
|
9876
|
+
getTaxes(params?: {} | undefined): import("../types/api").RequestData<{
|
|
9318
9877
|
id: string;
|
|
9319
9878
|
source_ref: {
|
|
9320
9879
|
id?: string | undefined;
|
|
@@ -9324,7 +9883,7 @@ export declare class API {
|
|
|
9324
9883
|
rate: number;
|
|
9325
9884
|
country?: string | undefined;
|
|
9326
9885
|
}[]>;
|
|
9327
|
-
getCountries(params
|
|
9886
|
+
getCountries(params?: {} | undefined): import("../types/api").RequestData<{
|
|
9328
9887
|
code: string;
|
|
9329
9888
|
name: string;
|
|
9330
9889
|
}[]>;
|
|
@@ -9419,6 +9978,8 @@ export declare class API {
|
|
|
9419
9978
|
}[]>;
|
|
9420
9979
|
deleteDataStoreData: (dataStoreId: string, dataStoreDataId: string) => Promise<import("../types/sync").SimpleResponseModel>;
|
|
9421
9980
|
logData: (logs: import("../types/consumers").ConsumerLog[]) => Promise<import("../types/sync").SimpleResponseModel>;
|
|
9981
|
+
setConnectionId: (connectionId: string) => Promise<void>;
|
|
9982
|
+
setIntegrationId: (integrationId: string) => Promise<void>;
|
|
9422
9983
|
}>;
|
|
9423
9984
|
getConsumersByName: (consumerName: string) => Promise<{
|
|
9424
9985
|
consumerId: string;
|
|
@@ -9505,6 +10066,26 @@ export declare class API {
|
|
|
9505
10066
|
total_discount?: number | undefined;
|
|
9506
10067
|
total_refund?: number | undefined;
|
|
9507
10068
|
total_tip?: number | undefined;
|
|
10069
|
+
currency?: string | undefined;
|
|
10070
|
+
country?: string | undefined;
|
|
10071
|
+
loyalty?: number | undefined;
|
|
10072
|
+
customer_id?: string | undefined;
|
|
10073
|
+
location_id?: string | undefined;
|
|
10074
|
+
taxes?: {
|
|
10075
|
+
tax_rate: number;
|
|
10076
|
+
tax_amount: number;
|
|
10077
|
+
total: number;
|
|
10078
|
+
}[] | undefined;
|
|
10079
|
+
payments: {
|
|
10080
|
+
id?: string | undefined;
|
|
10081
|
+
payment_method_id?: string | undefined;
|
|
10082
|
+
payment_method_name?: string | undefined;
|
|
10083
|
+
total: number;
|
|
10084
|
+
tip?: number | undefined;
|
|
10085
|
+
status?: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised" | undefined;
|
|
10086
|
+
currency?: string | undefined;
|
|
10087
|
+
date?: string | undefined;
|
|
10088
|
+
}[];
|
|
9508
10089
|
items: {
|
|
9509
10090
|
id: string;
|
|
9510
10091
|
quantity: number;
|
|
@@ -9520,28 +10101,12 @@ export declare class API {
|
|
|
9520
10101
|
product_id?: string | undefined;
|
|
9521
10102
|
accounting_category_id?: string | undefined;
|
|
9522
10103
|
}[];
|
|
9523
|
-
payments: {
|
|
9524
|
-
id?: string | undefined;
|
|
9525
|
-
payment_method_id?: string | undefined;
|
|
9526
|
-
payment_method_name?: string | undefined;
|
|
9527
|
-
total: number;
|
|
9528
|
-
tip?: number | undefined;
|
|
9529
|
-
status?: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised" | undefined;
|
|
9530
|
-
currency?: string | undefined;
|
|
9531
|
-
date?: string | undefined;
|
|
9532
|
-
}[];
|
|
9533
|
-
currency?: string | undefined;
|
|
9534
|
-
country?: string | undefined;
|
|
9535
|
-
loyalty?: number | undefined;
|
|
9536
|
-
customer_id?: string | undefined;
|
|
9537
|
-
location_id?: string | undefined;
|
|
9538
|
-
taxes?: {
|
|
9539
|
-
tax_rate: number;
|
|
9540
|
-
tax_amount: number;
|
|
9541
|
-
total: number;
|
|
9542
|
-
}[] | undefined;
|
|
9543
10104
|
}[]>;
|
|
9544
|
-
getCustomers(params
|
|
10105
|
+
getCustomers(params?: {
|
|
10106
|
+
search?: string | undefined;
|
|
10107
|
+
email?: string | undefined;
|
|
10108
|
+
phone?: string | undefined;
|
|
10109
|
+
} | undefined): import("../types/api").RequestData<{
|
|
9545
10110
|
id: string;
|
|
9546
10111
|
first_name?: string | undefined;
|
|
9547
10112
|
last_name?: string | undefined;
|
|
@@ -9574,21 +10139,16 @@ export declare class API {
|
|
|
9574
10139
|
total_discount?: number | undefined;
|
|
9575
10140
|
total_refund?: number | undefined;
|
|
9576
10141
|
total_tip?: number | undefined;
|
|
9577
|
-
|
|
9578
|
-
|
|
9579
|
-
|
|
9580
|
-
|
|
9581
|
-
|
|
10142
|
+
currency?: string | undefined;
|
|
10143
|
+
country?: string | undefined;
|
|
10144
|
+
loyalty?: number | undefined;
|
|
10145
|
+
customer_id?: string | undefined;
|
|
10146
|
+
location_id?: string | undefined;
|
|
10147
|
+
taxes?: {
|
|
10148
|
+
tax_rate: number;
|
|
9582
10149
|
tax_amount: number;
|
|
9583
|
-
|
|
9584
|
-
|
|
9585
|
-
discounts?: {
|
|
9586
|
-
name?: string | undefined;
|
|
9587
|
-
total: number;
|
|
9588
|
-
}[] | undefined;
|
|
9589
|
-
product_id?: string | undefined;
|
|
9590
|
-
accounting_category_id?: string | undefined;
|
|
9591
|
-
}[];
|
|
10150
|
+
total: number;
|
|
10151
|
+
}[] | undefined;
|
|
9592
10152
|
payments: {
|
|
9593
10153
|
id?: string | undefined;
|
|
9594
10154
|
payment_method_id?: string | undefined;
|
|
@@ -9599,16 +10159,21 @@ export declare class API {
|
|
|
9599
10159
|
currency?: string | undefined;
|
|
9600
10160
|
date?: string | undefined;
|
|
9601
10161
|
}[];
|
|
9602
|
-
|
|
9603
|
-
|
|
9604
|
-
|
|
9605
|
-
|
|
9606
|
-
location_id?: string | undefined;
|
|
9607
|
-
taxes?: {
|
|
9608
|
-
tax_rate: number;
|
|
9609
|
-
tax_amount: number;
|
|
10162
|
+
items: {
|
|
10163
|
+
id: string;
|
|
10164
|
+
quantity: number;
|
|
10165
|
+
unit_price: number;
|
|
9610
10166
|
total: number;
|
|
9611
|
-
|
|
10167
|
+
tax_amount: number;
|
|
10168
|
+
tax_rate?: number | undefined;
|
|
10169
|
+
description?: string | undefined;
|
|
10170
|
+
discounts?: {
|
|
10171
|
+
name?: string | undefined;
|
|
10172
|
+
total: number;
|
|
10173
|
+
}[] | undefined;
|
|
10174
|
+
product_id?: string | undefined;
|
|
10175
|
+
accounting_category_id?: string | undefined;
|
|
10176
|
+
}[];
|
|
9612
10177
|
}>;
|
|
9613
10178
|
getCustomer(customerId: string): import("../types/api").RequestData<{
|
|
9614
10179
|
id: string;
|
|
@@ -9666,12 +10231,17 @@ export declare class API {
|
|
|
9666
10231
|
loyalty?: number | undefined;
|
|
9667
10232
|
birthdate?: string | undefined;
|
|
9668
10233
|
}>;
|
|
9669
|
-
getPaymentMethods(params
|
|
10234
|
+
getPaymentMethods(params?: {
|
|
10235
|
+
location_id?: string | undefined;
|
|
10236
|
+
} | undefined): import("../types/api").RequestData<{
|
|
9670
10237
|
id: string;
|
|
9671
10238
|
name: string;
|
|
9672
10239
|
extra?: string | undefined;
|
|
9673
10240
|
}[]>;
|
|
9674
|
-
getProductCategories(params
|
|
10241
|
+
getProductCategories(params?: {
|
|
10242
|
+
location_id?: string | undefined;
|
|
10243
|
+
only_parents?: "true" | "false" | undefined;
|
|
10244
|
+
} | undefined): import("../types/api").RequestData<{
|
|
9675
10245
|
id: string;
|
|
9676
10246
|
source_ref: {
|
|
9677
10247
|
id?: string | undefined;
|
|
@@ -9680,7 +10250,9 @@ export declare class API {
|
|
|
9680
10250
|
name: string;
|
|
9681
10251
|
parent_id?: string | undefined;
|
|
9682
10252
|
}[]>;
|
|
9683
|
-
getProducts(params
|
|
10253
|
+
getProducts(params?: {
|
|
10254
|
+
location_id?: string | undefined;
|
|
10255
|
+
} | undefined): import("../types/api").RequestData<{
|
|
9684
10256
|
id: string;
|
|
9685
10257
|
categories?: string[] | undefined;
|
|
9686
10258
|
name: string;
|
|
@@ -9704,7 +10276,7 @@ export declare class API {
|
|
|
9704
10276
|
total: number;
|
|
9705
10277
|
}[] | undefined;
|
|
9706
10278
|
}>;
|
|
9707
|
-
getClosure(date: string, params
|
|
10279
|
+
getClosure(date: string, params?: {
|
|
9708
10280
|
location_id?: string | undefined;
|
|
9709
10281
|
} | undefined): import("../types/api").RequestData<{
|
|
9710
10282
|
date: string;
|
|
@@ -9737,6 +10309,26 @@ export declare class API {
|
|
|
9737
10309
|
total_discount?: number | undefined;
|
|
9738
10310
|
total_refund?: number | undefined;
|
|
9739
10311
|
total_tip?: number | undefined;
|
|
10312
|
+
currency?: string | undefined;
|
|
10313
|
+
country?: string | undefined;
|
|
10314
|
+
loyalty?: number | undefined;
|
|
10315
|
+
customer_id?: string | undefined;
|
|
10316
|
+
location_id?: string | undefined;
|
|
10317
|
+
taxes?: {
|
|
10318
|
+
tax_rate: number;
|
|
10319
|
+
tax_amount: number;
|
|
10320
|
+
total: number;
|
|
10321
|
+
}[] | undefined;
|
|
10322
|
+
payments: {
|
|
10323
|
+
id?: string | undefined;
|
|
10324
|
+
payment_method_id?: string | undefined;
|
|
10325
|
+
payment_method_name?: string | undefined;
|
|
10326
|
+
total: number;
|
|
10327
|
+
tip?: number | undefined;
|
|
10328
|
+
status?: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised" | undefined;
|
|
10329
|
+
currency?: string | undefined;
|
|
10330
|
+
date?: string | undefined;
|
|
10331
|
+
}[];
|
|
9740
10332
|
items: {
|
|
9741
10333
|
id: string;
|
|
9742
10334
|
quantity: number;
|
|
@@ -9752,16 +10344,53 @@ export declare class API {
|
|
|
9752
10344
|
product_id?: string | undefined;
|
|
9753
10345
|
accounting_category_id?: string | undefined;
|
|
9754
10346
|
}[];
|
|
9755
|
-
|
|
10347
|
+
}>;
|
|
10348
|
+
getAccountingCategories(params?: {} | undefined): import("../types/api").RequestData<{
|
|
10349
|
+
id: string;
|
|
10350
|
+
name: string;
|
|
10351
|
+
id_parent?: string | undefined;
|
|
10352
|
+
code?: string | undefined;
|
|
10353
|
+
ledger_account_code?: string | undefined;
|
|
10354
|
+
posting_account_code?: string | undefined;
|
|
10355
|
+
}[]>;
|
|
10356
|
+
}>;
|
|
10357
|
+
pms: import("../types/api").ApiFor<{
|
|
10358
|
+
getLocations(): import("../types/api").RequestData<{
|
|
10359
|
+
id: string;
|
|
10360
|
+
name: string;
|
|
10361
|
+
timezone?: string | undefined;
|
|
10362
|
+
address?: {
|
|
10363
|
+
address_type?: string | undefined;
|
|
10364
|
+
name?: string | undefined;
|
|
10365
|
+
street?: string | undefined;
|
|
10366
|
+
number?: string | undefined;
|
|
10367
|
+
box?: string | undefined;
|
|
10368
|
+
city?: string | undefined;
|
|
10369
|
+
postal_code?: string | undefined;
|
|
10370
|
+
country?: string | undefined;
|
|
10371
|
+
} | undefined;
|
|
10372
|
+
}[]>;
|
|
10373
|
+
getOrders(params: {
|
|
10374
|
+
date_from: string;
|
|
10375
|
+
date_to: string;
|
|
10376
|
+
location_id?: string | undefined;
|
|
10377
|
+
state?: "closed" | "consumed" | undefined;
|
|
10378
|
+
}): import("../types/api").RequestData<{
|
|
10379
|
+
id: string;
|
|
10380
|
+
source_ref: {
|
|
9756
10381
|
id?: string | undefined;
|
|
9757
|
-
|
|
9758
|
-
|
|
9759
|
-
|
|
9760
|
-
|
|
9761
|
-
|
|
9762
|
-
|
|
9763
|
-
|
|
9764
|
-
|
|
10382
|
+
model?: string | undefined;
|
|
10383
|
+
};
|
|
10384
|
+
order_number?: string | undefined;
|
|
10385
|
+
creation_date: string;
|
|
10386
|
+
closing_date?: string | undefined;
|
|
10387
|
+
service_date?: string | undefined;
|
|
10388
|
+
device_id?: string | undefined;
|
|
10389
|
+
total: number;
|
|
10390
|
+
tax_amount: number;
|
|
10391
|
+
total_discount?: number | undefined;
|
|
10392
|
+
total_refund?: number | undefined;
|
|
10393
|
+
total_tip?: number | undefined;
|
|
9765
10394
|
currency?: string | undefined;
|
|
9766
10395
|
country?: string | undefined;
|
|
9767
10396
|
loyalty?: number | undefined;
|
|
@@ -9772,9 +10401,68 @@ export declare class API {
|
|
|
9772
10401
|
tax_amount: number;
|
|
9773
10402
|
total: number;
|
|
9774
10403
|
}[] | undefined;
|
|
10404
|
+
items: {
|
|
10405
|
+
id: string;
|
|
10406
|
+
source_ref: {
|
|
10407
|
+
id?: string | undefined;
|
|
10408
|
+
model?: string | undefined;
|
|
10409
|
+
};
|
|
10410
|
+
quantity: number;
|
|
10411
|
+
unit_price: number;
|
|
10412
|
+
total: number;
|
|
10413
|
+
tax_amount: number;
|
|
10414
|
+
tax_rate?: number | undefined;
|
|
10415
|
+
description?: string | undefined;
|
|
10416
|
+
discounts?: {
|
|
10417
|
+
name?: string | undefined;
|
|
10418
|
+
total: number;
|
|
10419
|
+
}[] | undefined;
|
|
10420
|
+
product_id?: string | undefined;
|
|
10421
|
+
accounting_category_id?: string | undefined;
|
|
10422
|
+
}[];
|
|
10423
|
+
service_id?: string | undefined;
|
|
10424
|
+
}[]>;
|
|
10425
|
+
getPaymentMethods(params?: {
|
|
10426
|
+
location_id?: string | undefined;
|
|
10427
|
+
} | undefined): import("../types/api").RequestData<{
|
|
10428
|
+
id: string;
|
|
10429
|
+
source_ref: {
|
|
10430
|
+
id?: string | undefined;
|
|
10431
|
+
model?: string | undefined;
|
|
10432
|
+
};
|
|
10433
|
+
name: string;
|
|
10434
|
+
extra?: string | undefined;
|
|
10435
|
+
ledger_account_code?: string | undefined;
|
|
10436
|
+
}[]>;
|
|
10437
|
+
getClosure(date: string, params?: {
|
|
10438
|
+
location_id?: string | undefined;
|
|
10439
|
+
} | undefined): import("../types/api").RequestData<{
|
|
10440
|
+
date: string;
|
|
10441
|
+
status: "open" | "closed";
|
|
9775
10442
|
}>;
|
|
9776
|
-
|
|
10443
|
+
getPayments(params: {
|
|
10444
|
+
date_from: string;
|
|
10445
|
+
date_to: string;
|
|
10446
|
+
}): import("../types/api").RequestData<{
|
|
10447
|
+
id?: string | undefined;
|
|
10448
|
+
source_ref: {
|
|
10449
|
+
id?: string | undefined;
|
|
10450
|
+
model?: string | undefined;
|
|
10451
|
+
};
|
|
10452
|
+
payment_method_id?: string | undefined;
|
|
10453
|
+
payment_method_name?: string | undefined;
|
|
10454
|
+
total: number;
|
|
10455
|
+
tip?: number | undefined;
|
|
10456
|
+
status?: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised" | undefined;
|
|
10457
|
+
currency?: string | undefined;
|
|
10458
|
+
date?: string | undefined;
|
|
10459
|
+
}[]>;
|
|
10460
|
+
getAccountingCategories(params?: {} | undefined): import("../types/api").RequestData<{
|
|
9777
10461
|
id: string;
|
|
10462
|
+
source_ref: {
|
|
10463
|
+
id?: string | undefined;
|
|
10464
|
+
model?: string | undefined;
|
|
10465
|
+
};
|
|
9778
10466
|
name: string;
|
|
9779
10467
|
id_parent?: string | undefined;
|
|
9780
10468
|
code?: string | undefined;
|
|
@@ -9783,19 +10471,15 @@ export declare class API {
|
|
|
9783
10471
|
}[]>;
|
|
9784
10472
|
}>;
|
|
9785
10473
|
accounting: import("../types/api").ApiFor<{
|
|
9786
|
-
getAnalyticPlans(params
|
|
10474
|
+
getAnalyticPlans(params?: {
|
|
9787
10475
|
folder_id?: string | undefined;
|
|
9788
|
-
page?: number | undefined;
|
|
9789
|
-
size?: number | undefined;
|
|
9790
10476
|
} | undefined): import("../types/api").RequestData<{
|
|
9791
10477
|
id: string;
|
|
9792
10478
|
name: string;
|
|
9793
10479
|
active?: boolean | undefined;
|
|
9794
10480
|
}[]>;
|
|
9795
|
-
getClients(params
|
|
10481
|
+
getClients(params?: {
|
|
9796
10482
|
folder_id?: string | undefined;
|
|
9797
|
-
page?: number | undefined;
|
|
9798
|
-
size?: number | undefined;
|
|
9799
10483
|
} | undefined): import("../types/api").RequestData<{
|
|
9800
10484
|
external_reference?: string | undefined;
|
|
9801
10485
|
first_name?: string | undefined;
|
|
@@ -9865,7 +10549,7 @@ export declare class API {
|
|
|
9865
10549
|
country: string;
|
|
9866
10550
|
}[];
|
|
9867
10551
|
account_number?: string | undefined;
|
|
9868
|
-
}, params
|
|
10552
|
+
}, params?: {
|
|
9869
10553
|
force_merge?: string | undefined;
|
|
9870
10554
|
folder_id?: string | undefined;
|
|
9871
10555
|
} | undefined): import("../types/api").RequestData<{
|
|
@@ -9904,7 +10588,7 @@ export declare class API {
|
|
|
9904
10588
|
company_number?: string | undefined;
|
|
9905
10589
|
id?: string | undefined;
|
|
9906
10590
|
}>;
|
|
9907
|
-
getClient(clientId: string, params
|
|
10591
|
+
getClient(clientId: string, params?: {
|
|
9908
10592
|
folder_id?: string | undefined;
|
|
9909
10593
|
} | undefined): import("../types/api").RequestData<{
|
|
9910
10594
|
external_reference?: string | undefined;
|
|
@@ -9974,7 +10658,7 @@ export declare class API {
|
|
|
9974
10658
|
postal_code?: string | undefined;
|
|
9975
10659
|
country?: string | undefined;
|
|
9976
10660
|
}[] | undefined;
|
|
9977
|
-
}, params
|
|
10661
|
+
}, params?: {
|
|
9978
10662
|
folder_id?: string | undefined;
|
|
9979
10663
|
} | undefined): import("../types/api").RequestData<{
|
|
9980
10664
|
external_reference?: string | undefined;
|
|
@@ -10012,10 +10696,8 @@ export declare class API {
|
|
|
10012
10696
|
company_number?: string | undefined;
|
|
10013
10697
|
id?: string | undefined;
|
|
10014
10698
|
}>;
|
|
10015
|
-
getSuppliers(params
|
|
10699
|
+
getSuppliers(params?: {
|
|
10016
10700
|
folder_id?: string | undefined;
|
|
10017
|
-
page?: number | undefined;
|
|
10018
|
-
size?: number | undefined;
|
|
10019
10701
|
} | undefined): import("../types/api").RequestData<{
|
|
10020
10702
|
external_reference?: string | undefined;
|
|
10021
10703
|
first_name?: string | undefined;
|
|
@@ -10085,7 +10767,7 @@ export declare class API {
|
|
|
10085
10767
|
country: string;
|
|
10086
10768
|
}[];
|
|
10087
10769
|
account_number?: string | undefined;
|
|
10088
|
-
}, params
|
|
10770
|
+
}, params?: {
|
|
10089
10771
|
force_merge?: string | undefined;
|
|
10090
10772
|
folder_id?: string | undefined;
|
|
10091
10773
|
} | undefined): import("../types/api").RequestData<{
|
|
@@ -10124,7 +10806,7 @@ export declare class API {
|
|
|
10124
10806
|
company_number?: string | undefined;
|
|
10125
10807
|
id?: string | undefined;
|
|
10126
10808
|
}>;
|
|
10127
|
-
getSupplier(supplierId: string, params
|
|
10809
|
+
getSupplier(supplierId: string, params?: {
|
|
10128
10810
|
folder_id?: string | undefined;
|
|
10129
10811
|
} | undefined): import("../types/api").RequestData<{
|
|
10130
10812
|
external_reference?: string | undefined;
|
|
@@ -10194,7 +10876,7 @@ export declare class API {
|
|
|
10194
10876
|
postal_code?: string | undefined;
|
|
10195
10877
|
country?: string | undefined;
|
|
10196
10878
|
}[] | undefined;
|
|
10197
|
-
}, params
|
|
10879
|
+
}, params?: {
|
|
10198
10880
|
folder_id?: string | undefined;
|
|
10199
10881
|
} | undefined): import("../types/api").RequestData<{
|
|
10200
10882
|
external_reference?: string | undefined;
|
|
@@ -10265,6 +10947,7 @@ export declare class API {
|
|
|
10265
10947
|
iban: string;
|
|
10266
10948
|
};
|
|
10267
10949
|
} | undefined;
|
|
10950
|
+
shipping_country?: string | undefined;
|
|
10268
10951
|
lines: {
|
|
10269
10952
|
line_number?: number | undefined;
|
|
10270
10953
|
description: string;
|
|
@@ -10279,7 +10962,7 @@ export declare class API {
|
|
|
10279
10962
|
tax_code: string;
|
|
10280
10963
|
analytic_account?: string | undefined;
|
|
10281
10964
|
}[];
|
|
10282
|
-
}, params
|
|
10965
|
+
}, params?: {
|
|
10283
10966
|
force_financial_period?: string | undefined;
|
|
10284
10967
|
regroup_lines?: "true" | "false" | undefined;
|
|
10285
10968
|
folder_id?: string | undefined;
|
|
@@ -10361,6 +11044,7 @@ export declare class API {
|
|
|
10361
11044
|
iban: string;
|
|
10362
11045
|
};
|
|
10363
11046
|
} | undefined;
|
|
11047
|
+
shipping_country?: string | undefined;
|
|
10364
11048
|
lines: {
|
|
10365
11049
|
line_number?: number | undefined;
|
|
10366
11050
|
description: string;
|
|
@@ -10381,7 +11065,7 @@ export declare class API {
|
|
|
10381
11065
|
}[];
|
|
10382
11066
|
}[] | undefined;
|
|
10383
11067
|
}[];
|
|
10384
|
-
}, params
|
|
11068
|
+
}, params?: {
|
|
10385
11069
|
force_financial_period?: string | undefined;
|
|
10386
11070
|
regroup_lines?: "true" | "false" | undefined;
|
|
10387
11071
|
folder_id?: string | undefined;
|
|
@@ -10436,7 +11120,14 @@ export declare class API {
|
|
|
10436
11120
|
}[] | undefined;
|
|
10437
11121
|
}[];
|
|
10438
11122
|
}>;
|
|
10439
|
-
getInvoicesByType(invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund", params
|
|
11123
|
+
getInvoicesByType(invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund", params?: {
|
|
11124
|
+
date_from?: string | undefined;
|
|
11125
|
+
date_to?: string | undefined;
|
|
11126
|
+
folder_id?: string | undefined;
|
|
11127
|
+
journal_ids?: string | undefined;
|
|
11128
|
+
include_payments?: "true" | "false" | undefined;
|
|
11129
|
+
payment_status?: "all" | "paid" | "unpaid" | undefined;
|
|
11130
|
+
} | undefined): import("../types/api").RequestData<{
|
|
10440
11131
|
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
10441
11132
|
invoice_number?: string | undefined;
|
|
10442
11133
|
currency: string;
|
|
@@ -10481,7 +11172,7 @@ export declare class API {
|
|
|
10481
11172
|
analytic_account?: string | undefined;
|
|
10482
11173
|
}[];
|
|
10483
11174
|
}[]>;
|
|
10484
|
-
getInvoice(invoiceId: string, params
|
|
11175
|
+
getInvoice(invoiceId: string, params?: {
|
|
10485
11176
|
include_payments?: "true" | "false" | undefined;
|
|
10486
11177
|
folder_id?: string | undefined;
|
|
10487
11178
|
} | undefined): import("../types/api").RequestData<{
|
|
@@ -10529,7 +11220,7 @@ export declare class API {
|
|
|
10529
11220
|
analytic_account?: string | undefined;
|
|
10530
11221
|
}[];
|
|
10531
11222
|
}>;
|
|
10532
|
-
getInvoiceWithMultiplePlans(invoiceId: string, params
|
|
11223
|
+
getInvoiceWithMultiplePlans(invoiceId: string, params?: {
|
|
10533
11224
|
include_payments?: "true" | "false" | undefined;
|
|
10534
11225
|
folder_id?: string | undefined;
|
|
10535
11226
|
} | undefined): import("../types/api").RequestData<{
|
|
@@ -10583,7 +11274,14 @@ export declare class API {
|
|
|
10583
11274
|
}[] | undefined;
|
|
10584
11275
|
}[];
|
|
10585
11276
|
}>;
|
|
10586
|
-
getInvoicesByTypeWithMultiplePlans(invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund", params
|
|
11277
|
+
getInvoicesByTypeWithMultiplePlans(invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund", params?: {
|
|
11278
|
+
date_from?: string | undefined;
|
|
11279
|
+
date_to?: string | undefined;
|
|
11280
|
+
folder_id?: string | undefined;
|
|
11281
|
+
journal_ids?: string | undefined;
|
|
11282
|
+
include_payments?: "true" | "false" | undefined;
|
|
11283
|
+
payment_status?: "all" | "paid" | "unpaid" | undefined;
|
|
11284
|
+
} | undefined): import("../types/api").RequestData<{
|
|
10587
11285
|
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
10588
11286
|
invoice_number?: string | undefined;
|
|
10589
11287
|
currency: string;
|
|
@@ -10639,7 +11337,7 @@ export declare class API {
|
|
|
10639
11337
|
code: string;
|
|
10640
11338
|
name: string;
|
|
10641
11339
|
currency: string;
|
|
10642
|
-
}, params
|
|
11340
|
+
}, params?: {
|
|
10643
11341
|
folder_id?: string | undefined;
|
|
10644
11342
|
} | undefined): import("../types/api").RequestData<{
|
|
10645
11343
|
id: string;
|
|
@@ -10651,10 +11349,8 @@ export declare class API {
|
|
|
10651
11349
|
credit?: number | undefined;
|
|
10652
11350
|
debit?: number | undefined;
|
|
10653
11351
|
}>;
|
|
10654
|
-
getAnalyticAccounts(params
|
|
11352
|
+
getAnalyticAccounts(params?: {
|
|
10655
11353
|
folder_id?: string | undefined;
|
|
10656
|
-
page?: number | undefined;
|
|
10657
|
-
size?: number | undefined;
|
|
10658
11354
|
} | undefined): import("../types/api").RequestData<{
|
|
10659
11355
|
id: string;
|
|
10660
11356
|
active: boolean;
|
|
@@ -10670,7 +11366,7 @@ export declare class API {
|
|
|
10670
11366
|
code: string;
|
|
10671
11367
|
name: string;
|
|
10672
11368
|
currency: string;
|
|
10673
|
-
}, params
|
|
11369
|
+
}, params?: {
|
|
10674
11370
|
folder_id?: string | undefined;
|
|
10675
11371
|
} | undefined): import("../types/api").RequestData<{
|
|
10676
11372
|
id: string;
|
|
@@ -10683,7 +11379,7 @@ export declare class API {
|
|
|
10683
11379
|
debit?: number | undefined;
|
|
10684
11380
|
analytic_plan: string;
|
|
10685
11381
|
}>;
|
|
10686
|
-
getAnalyticAccount(analytic_account_id: string, params
|
|
11382
|
+
getAnalyticAccount(analytic_account_id: string, params?: {
|
|
10687
11383
|
folder_id?: string | undefined;
|
|
10688
11384
|
} | undefined): import("../types/api").RequestData<{
|
|
10689
11385
|
id: string;
|
|
@@ -10700,7 +11396,7 @@ export declare class API {
|
|
|
10700
11396
|
code?: string | undefined;
|
|
10701
11397
|
name?: string | undefined;
|
|
10702
11398
|
currency?: string | undefined;
|
|
10703
|
-
}, params
|
|
11399
|
+
}, params?: {
|
|
10704
11400
|
folder_id?: string | undefined;
|
|
10705
11401
|
} | undefined): import("../types/api").RequestData<{
|
|
10706
11402
|
id: string;
|
|
@@ -10712,7 +11408,7 @@ export declare class API {
|
|
|
10712
11408
|
credit?: number | undefined;
|
|
10713
11409
|
debit?: number | undefined;
|
|
10714
11410
|
}>;
|
|
10715
|
-
getAnalyticAccountWithMultiplePlans(analytic_account_id: string, analytic_plan: string, params
|
|
11411
|
+
getAnalyticAccountWithMultiplePlans(analytic_account_id: string, analytic_plan: string, params?: {
|
|
10716
11412
|
folder_id?: string | undefined;
|
|
10717
11413
|
} | undefined): import("../types/api").RequestData<{
|
|
10718
11414
|
id: string;
|
|
@@ -10730,7 +11426,7 @@ export declare class API {
|
|
|
10730
11426
|
code?: string | undefined;
|
|
10731
11427
|
name?: string | undefined;
|
|
10732
11428
|
currency?: string | undefined;
|
|
10733
|
-
}, params
|
|
11429
|
+
}, params?: {
|
|
10734
11430
|
folder_id?: string | undefined;
|
|
10735
11431
|
} | undefined): import("../types/api").RequestData<{
|
|
10736
11432
|
id: string;
|
|
@@ -10743,10 +11439,8 @@ export declare class API {
|
|
|
10743
11439
|
debit?: number | undefined;
|
|
10744
11440
|
analytic_plan: string;
|
|
10745
11441
|
}>;
|
|
10746
|
-
getAnalyticAccountsWithMultiplePlans(params
|
|
11442
|
+
getAnalyticAccountsWithMultiplePlans(params?: {
|
|
10747
11443
|
folder_id?: string | undefined;
|
|
10748
|
-
page?: number | undefined;
|
|
10749
|
-
size?: number | undefined;
|
|
10750
11444
|
} | undefined): import("../types/api").RequestData<{
|
|
10751
11445
|
id: string;
|
|
10752
11446
|
active: boolean;
|
|
@@ -10827,7 +11521,7 @@ export declare class API {
|
|
|
10827
11521
|
}[] | undefined;
|
|
10828
11522
|
}[] | undefined;
|
|
10829
11523
|
}[]>;
|
|
10830
|
-
getPaymentsByInvoiceId(invoice_id: string, params
|
|
11524
|
+
getPaymentsByInvoiceId(invoice_id: string, params?: {
|
|
10831
11525
|
folder_id?: string | undefined;
|
|
10832
11526
|
page?: number | undefined;
|
|
10833
11527
|
size?: number | undefined;
|
|
@@ -10845,20 +11539,16 @@ export declare class API {
|
|
|
10845
11539
|
communication?: string | undefined;
|
|
10846
11540
|
matching_number?: string | undefined;
|
|
10847
11541
|
}[]>;
|
|
10848
|
-
getJournals(params
|
|
11542
|
+
getJournals(params?: {
|
|
10849
11543
|
folder_id?: string | undefined;
|
|
10850
|
-
page?: number | undefined;
|
|
10851
|
-
size?: number | undefined;
|
|
10852
11544
|
} | undefined): import("../types/api").RequestData<{
|
|
10853
11545
|
id: string;
|
|
10854
11546
|
code?: string | undefined;
|
|
10855
11547
|
name: string;
|
|
10856
11548
|
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
10857
11549
|
}[]>;
|
|
10858
|
-
getVatCodes(params
|
|
11550
|
+
getVatCodes(params?: {
|
|
10859
11551
|
folder_id?: string | undefined;
|
|
10860
|
-
page?: number | undefined;
|
|
10861
|
-
size?: number | undefined;
|
|
10862
11552
|
} | undefined): import("../types/api").RequestData<{
|
|
10863
11553
|
id: string;
|
|
10864
11554
|
code?: string | undefined;
|
|
@@ -10869,7 +11559,12 @@ export declare class API {
|
|
|
10869
11559
|
deductible_account?: string | undefined;
|
|
10870
11560
|
payable_account?: string | undefined;
|
|
10871
11561
|
}[]>;
|
|
10872
|
-
getMiscOperations(params
|
|
11562
|
+
getMiscOperations(params?: {
|
|
11563
|
+
date_from?: string | undefined;
|
|
11564
|
+
date_to?: string | undefined;
|
|
11565
|
+
folder_id?: string | undefined;
|
|
11566
|
+
journal_ids?: string | undefined;
|
|
11567
|
+
} | undefined): import("../types/api").RequestData<{
|
|
10873
11568
|
operation_number?: string | undefined;
|
|
10874
11569
|
currency: string;
|
|
10875
11570
|
currency_exchange_rate?: number | undefined;
|
|
@@ -10903,7 +11598,7 @@ export declare class API {
|
|
|
10903
11598
|
operation_date: string;
|
|
10904
11599
|
journal_id?: string | undefined;
|
|
10905
11600
|
status?: "draft" | "posted" | undefined;
|
|
10906
|
-
}, params
|
|
11601
|
+
}, params?: {
|
|
10907
11602
|
folder_id?: string | undefined;
|
|
10908
11603
|
} | undefined): import("../types/api").RequestData<{
|
|
10909
11604
|
operation_number?: string | undefined;
|
|
@@ -10923,7 +11618,7 @@ export declare class API {
|
|
|
10923
11618
|
status: "cancelled" | "draft" | "posted" | "matched";
|
|
10924
11619
|
id: string;
|
|
10925
11620
|
}>;
|
|
10926
|
-
getMiscOperation(operation_id: string, params
|
|
11621
|
+
getMiscOperation(operation_id: string, params?: {
|
|
10927
11622
|
folder_id?: string | undefined;
|
|
10928
11623
|
} | undefined): import("../types/api").RequestData<{
|
|
10929
11624
|
operation_number?: string | undefined;
|
|
@@ -10945,24 +11640,25 @@ export declare class API {
|
|
|
10945
11640
|
}>;
|
|
10946
11641
|
attachPDF(invoice_id: string, attachment: {
|
|
10947
11642
|
base64_string: string;
|
|
10948
|
-
}, params
|
|
11643
|
+
}, params?: {
|
|
10949
11644
|
overwrite_existing?: "true" | "false" | undefined;
|
|
10950
11645
|
folder_id?: string | undefined;
|
|
10951
11646
|
} | undefined): import("../types/api").RequestData<{
|
|
10952
11647
|
content: {
|
|
10953
|
-
|
|
11648
|
+
'application/json': unknown;
|
|
10954
11649
|
};
|
|
10955
11650
|
}>;
|
|
10956
11651
|
getAttachments(params: {
|
|
11652
|
+
folder_id?: string | undefined;
|
|
10957
11653
|
type: "invoice" | "entry";
|
|
10958
11654
|
document_id: string;
|
|
10959
|
-
folder_id?: string | undefined;
|
|
10960
|
-
page?: number | undefined;
|
|
10961
|
-
size?: number | undefined;
|
|
10962
11655
|
}): import("../types/api").RequestData<{
|
|
10963
11656
|
base64_string: string;
|
|
10964
11657
|
}[]>;
|
|
10965
|
-
getChartOfAccounts(params
|
|
11658
|
+
getChartOfAccounts(params?: {
|
|
11659
|
+
classes?: string | undefined;
|
|
11660
|
+
folder_id?: string | undefined;
|
|
11661
|
+
} | undefined): import("../types/api").RequestData<{
|
|
10966
11662
|
number: string;
|
|
10967
11663
|
name: string;
|
|
10968
11664
|
active?: boolean | undefined;
|
|
@@ -10972,10 +11668,8 @@ export declare class API {
|
|
|
10972
11668
|
accounts: string[];
|
|
10973
11669
|
start?: string | undefined;
|
|
10974
11670
|
end: string;
|
|
10975
|
-
}, params
|
|
11671
|
+
}, params?: {
|
|
10976
11672
|
folder_id?: string | undefined;
|
|
10977
|
-
page?: number | undefined;
|
|
10978
|
-
size?: number | undefined;
|
|
10979
11673
|
} | undefined): import("../types/api").RequestData<{
|
|
10980
11674
|
account_number: string;
|
|
10981
11675
|
account_name?: string | undefined;
|
|
@@ -10983,10 +11677,8 @@ export declare class API {
|
|
|
10983
11677
|
credit: number;
|
|
10984
11678
|
balance: number;
|
|
10985
11679
|
}[]>;
|
|
10986
|
-
getEmployees(params
|
|
11680
|
+
getEmployees(params?: {
|
|
10987
11681
|
folder_id?: string | undefined;
|
|
10988
|
-
page?: number | undefined;
|
|
10989
|
-
size?: number | undefined;
|
|
10990
11682
|
} | undefined): import("../types/api").RequestData<{
|
|
10991
11683
|
id: string;
|
|
10992
11684
|
name: string;
|
|
@@ -11002,8 +11694,8 @@ export declare class API {
|
|
|
11002
11694
|
}[]>;
|
|
11003
11695
|
getOutstandings(params: {
|
|
11004
11696
|
folder_id?: string | undefined;
|
|
11005
|
-
unposted_allowed: "true" | "false";
|
|
11006
11697
|
type: "supplier" | "client";
|
|
11698
|
+
unposted_allowed: "true" | "false";
|
|
11007
11699
|
}): import("../types/api").RequestData<{
|
|
11008
11700
|
id: string;
|
|
11009
11701
|
number?: string | undefined;
|
|
@@ -11036,7 +11728,7 @@ export declare class API {
|
|
|
11036
11728
|
description?: string | undefined;
|
|
11037
11729
|
}[];
|
|
11038
11730
|
pdf?: string | undefined;
|
|
11039
|
-
}, params
|
|
11731
|
+
}, params?: {
|
|
11040
11732
|
financial_counterpart_account?: string | undefined;
|
|
11041
11733
|
folder_id?: string | undefined;
|
|
11042
11734
|
} | undefined): import("../types/api").RequestData<{
|
|
@@ -11070,7 +11762,7 @@ export declare class API {
|
|
|
11070
11762
|
description?: string | undefined;
|
|
11071
11763
|
}[];
|
|
11072
11764
|
pdf?: string | undefined;
|
|
11073
|
-
}, params
|
|
11765
|
+
}, params?: {
|
|
11074
11766
|
financial_counterpart_account?: string | undefined;
|
|
11075
11767
|
folder_id?: string | undefined;
|
|
11076
11768
|
} | undefined): import("../types/api").RequestData<{
|
|
@@ -11169,7 +11861,7 @@ export declare class API {
|
|
|
11169
11861
|
}[];
|
|
11170
11862
|
pdf?: string | undefined;
|
|
11171
11863
|
posted?: boolean | undefined;
|
|
11172
|
-
}, params
|
|
11864
|
+
}, params?: {
|
|
11173
11865
|
folder_id?: string | undefined;
|
|
11174
11866
|
} | undefined): import("../types/api").RequestData<{
|
|
11175
11867
|
reference?: string | undefined;
|
|
@@ -11204,7 +11896,7 @@ export declare class API {
|
|
|
11204
11896
|
matchEntries(body: {
|
|
11205
11897
|
entries: string[];
|
|
11206
11898
|
partner_id: string;
|
|
11207
|
-
}, params
|
|
11899
|
+
}, params?: {
|
|
11208
11900
|
folder_id?: string | undefined;
|
|
11209
11901
|
} | undefined): import("../types/api").RequestData<{
|
|
11210
11902
|
matching_number: string;
|
|
@@ -11214,17 +11906,17 @@ export declare class API {
|
|
|
11214
11906
|
id: string;
|
|
11215
11907
|
name: string;
|
|
11216
11908
|
selected?: boolean | undefined;
|
|
11909
|
+
vat?: string | undefined;
|
|
11910
|
+
company_number?: string | undefined;
|
|
11217
11911
|
}[]>;
|
|
11218
11912
|
}>;
|
|
11219
11913
|
invoicing: import("../types/api").ApiFor<{
|
|
11220
|
-
getInvoices(params
|
|
11221
|
-
invoice_type?: "all" | "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | undefined;
|
|
11222
|
-
payment_status?: "all" | "paid" | "unpaid" | undefined;
|
|
11914
|
+
getInvoices(params?: {
|
|
11223
11915
|
date_from?: string | undefined;
|
|
11224
11916
|
date_to?: string | undefined;
|
|
11917
|
+
payment_status?: "all" | "paid" | "unpaid" | undefined;
|
|
11918
|
+
invoice_type?: "all" | "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | undefined;
|
|
11225
11919
|
updated_after?: string | undefined;
|
|
11226
|
-
page?: number | undefined;
|
|
11227
|
-
size?: number | undefined;
|
|
11228
11920
|
} | undefined): import("../types/api").RequestData<{
|
|
11229
11921
|
id: string;
|
|
11230
11922
|
source_ref: {
|
|
@@ -11268,7 +11960,7 @@ export declare class API {
|
|
|
11268
11960
|
outstanding_amount?: number | undefined;
|
|
11269
11961
|
last_updated_on?: string | undefined;
|
|
11270
11962
|
}[]>;
|
|
11271
|
-
getInvoiceById(invoiceId: string, params
|
|
11963
|
+
getInvoiceById(invoiceId: string, params?: {
|
|
11272
11964
|
include_pdf?: "true" | "false" | undefined;
|
|
11273
11965
|
} | undefined): import("../types/api").RequestData<{
|
|
11274
11966
|
id: string;
|
|
@@ -11530,8 +12222,6 @@ export declare class API {
|
|
|
11530
12222
|
}>;
|
|
11531
12223
|
getContacts(params?: {
|
|
11532
12224
|
contact_type?: "prospect" | "customer" | "supplier" | "all" | undefined;
|
|
11533
|
-
page?: number | undefined;
|
|
11534
|
-
size?: number | undefined;
|
|
11535
12225
|
} | undefined): import("../types/api").RequestData<{
|
|
11536
12226
|
id: string;
|
|
11537
12227
|
source_ref: {
|
|
@@ -11942,7 +12632,13 @@ export declare class API {
|
|
|
11942
12632
|
id: string;
|
|
11943
12633
|
name: string;
|
|
11944
12634
|
}[]>;
|
|
11945
|
-
getOrders(params
|
|
12635
|
+
getOrders(params?: {
|
|
12636
|
+
date_from?: string | undefined;
|
|
12637
|
+
date_to?: string | undefined;
|
|
12638
|
+
updated_after?: string | undefined;
|
|
12639
|
+
include_detailed_refunds?: "true" | "false" | undefined;
|
|
12640
|
+
include_product_categories?: "true" | "false" | undefined;
|
|
12641
|
+
} | undefined): import("../types/api").RequestData<{
|
|
11946
12642
|
id: string;
|
|
11947
12643
|
source_ref: {
|
|
11948
12644
|
id?: string | undefined;
|
|
@@ -11988,8 +12684,9 @@ export declare class API {
|
|
|
11988
12684
|
created_on?: string | undefined;
|
|
11989
12685
|
last_updated_on?: string | undefined;
|
|
11990
12686
|
confirmed_on?: string | undefined;
|
|
12687
|
+
delivery_date?: string | undefined;
|
|
11991
12688
|
cancelled_on?: string | undefined;
|
|
11992
|
-
status: "cancelled" | "draft" | "confirmed" | "shipped" | "refunded";
|
|
12689
|
+
status: "cancelled" | "draft" | "cancelled_unpaid" | "confirmed" | "shipped" | "refunded";
|
|
11993
12690
|
discount_amount: number;
|
|
11994
12691
|
untaxed_amount_without_fees: number;
|
|
11995
12692
|
tax_amount_without_fees: number;
|
|
@@ -12013,6 +12710,10 @@ export declare class API {
|
|
|
12013
12710
|
id: string;
|
|
12014
12711
|
sku?: string | undefined;
|
|
12015
12712
|
name: string;
|
|
12713
|
+
categories?: {
|
|
12714
|
+
id: string;
|
|
12715
|
+
name: string;
|
|
12716
|
+
}[] | undefined;
|
|
12016
12717
|
} | undefined;
|
|
12017
12718
|
quantity: number;
|
|
12018
12719
|
untaxed_amount: number;
|
|
@@ -12030,6 +12731,13 @@ export declare class API {
|
|
|
12030
12731
|
tax_amount: number;
|
|
12031
12732
|
total: number;
|
|
12032
12733
|
}[] | undefined;
|
|
12734
|
+
transactions?: {
|
|
12735
|
+
id: string;
|
|
12736
|
+
payment_method_id?: string | undefined;
|
|
12737
|
+
payment_method_name?: string | undefined;
|
|
12738
|
+
amount: number;
|
|
12739
|
+
status: "failed" | "pending" | "success";
|
|
12740
|
+
}[] | undefined;
|
|
12033
12741
|
}[] | undefined;
|
|
12034
12742
|
currency: string;
|
|
12035
12743
|
note?: string | undefined;
|
|
@@ -12044,6 +12752,10 @@ export declare class API {
|
|
|
12044
12752
|
id: string;
|
|
12045
12753
|
sku?: string | undefined;
|
|
12046
12754
|
name: string;
|
|
12755
|
+
categories?: {
|
|
12756
|
+
id: string;
|
|
12757
|
+
name: string;
|
|
12758
|
+
}[] | undefined;
|
|
12047
12759
|
} | undefined;
|
|
12048
12760
|
quantity: number;
|
|
12049
12761
|
unit_price: number;
|
|
@@ -12179,8 +12891,9 @@ export declare class API {
|
|
|
12179
12891
|
created_on?: string | undefined;
|
|
12180
12892
|
last_updated_on?: string | undefined;
|
|
12181
12893
|
confirmed_on?: string | undefined;
|
|
12894
|
+
delivery_date?: string | undefined;
|
|
12182
12895
|
cancelled_on?: string | undefined;
|
|
12183
|
-
status: "cancelled" | "draft" | "confirmed" | "shipped" | "refunded";
|
|
12896
|
+
status: "cancelled" | "draft" | "cancelled_unpaid" | "confirmed" | "shipped" | "refunded";
|
|
12184
12897
|
discount_amount: number;
|
|
12185
12898
|
untaxed_amount_without_fees: number;
|
|
12186
12899
|
tax_amount_without_fees: number;
|
|
@@ -12204,6 +12917,10 @@ export declare class API {
|
|
|
12204
12917
|
id: string;
|
|
12205
12918
|
sku?: string | undefined;
|
|
12206
12919
|
name: string;
|
|
12920
|
+
categories?: {
|
|
12921
|
+
id: string;
|
|
12922
|
+
name: string;
|
|
12923
|
+
}[] | undefined;
|
|
12207
12924
|
} | undefined;
|
|
12208
12925
|
quantity: number;
|
|
12209
12926
|
untaxed_amount: number;
|
|
@@ -12221,6 +12938,13 @@ export declare class API {
|
|
|
12221
12938
|
tax_amount: number;
|
|
12222
12939
|
total: number;
|
|
12223
12940
|
}[] | undefined;
|
|
12941
|
+
transactions?: {
|
|
12942
|
+
id: string;
|
|
12943
|
+
payment_method_id?: string | undefined;
|
|
12944
|
+
payment_method_name?: string | undefined;
|
|
12945
|
+
amount: number;
|
|
12946
|
+
status: "failed" | "pending" | "success";
|
|
12947
|
+
}[] | undefined;
|
|
12224
12948
|
}[] | undefined;
|
|
12225
12949
|
currency: string;
|
|
12226
12950
|
note?: string | undefined;
|
|
@@ -12235,6 +12959,10 @@ export declare class API {
|
|
|
12235
12959
|
id: string;
|
|
12236
12960
|
sku?: string | undefined;
|
|
12237
12961
|
name: string;
|
|
12962
|
+
categories?: {
|
|
12963
|
+
id: string;
|
|
12964
|
+
name: string;
|
|
12965
|
+
}[] | undefined;
|
|
12238
12966
|
} | undefined;
|
|
12239
12967
|
quantity: number;
|
|
12240
12968
|
unit_price: number;
|
|
@@ -12329,8 +13057,9 @@ export declare class API {
|
|
|
12329
13057
|
created_on?: string | undefined;
|
|
12330
13058
|
last_updated_on?: string | undefined;
|
|
12331
13059
|
confirmed_on?: string | undefined;
|
|
13060
|
+
delivery_date?: string | undefined;
|
|
12332
13061
|
cancelled_on?: string | undefined;
|
|
12333
|
-
status: "cancelled" | "draft" | "confirmed" | "shipped" | "refunded";
|
|
13062
|
+
status: "cancelled" | "draft" | "cancelled_unpaid" | "confirmed" | "shipped" | "refunded";
|
|
12334
13063
|
discount_amount: number;
|
|
12335
13064
|
untaxed_amount_without_fees: number;
|
|
12336
13065
|
tax_amount_without_fees: number;
|
|
@@ -12354,6 +13083,10 @@ export declare class API {
|
|
|
12354
13083
|
id: string;
|
|
12355
13084
|
sku?: string | undefined;
|
|
12356
13085
|
name: string;
|
|
13086
|
+
categories?: {
|
|
13087
|
+
id: string;
|
|
13088
|
+
name: string;
|
|
13089
|
+
}[] | undefined;
|
|
12357
13090
|
} | undefined;
|
|
12358
13091
|
quantity: number;
|
|
12359
13092
|
untaxed_amount: number;
|
|
@@ -12371,6 +13104,13 @@ export declare class API {
|
|
|
12371
13104
|
tax_amount: number;
|
|
12372
13105
|
total: number;
|
|
12373
13106
|
}[] | undefined;
|
|
13107
|
+
transactions?: {
|
|
13108
|
+
id: string;
|
|
13109
|
+
payment_method_id?: string | undefined;
|
|
13110
|
+
payment_method_name?: string | undefined;
|
|
13111
|
+
amount: number;
|
|
13112
|
+
status: "failed" | "pending" | "success";
|
|
13113
|
+
}[] | undefined;
|
|
12374
13114
|
}[] | undefined;
|
|
12375
13115
|
currency: string;
|
|
12376
13116
|
note?: string | undefined;
|
|
@@ -12385,6 +13125,10 @@ export declare class API {
|
|
|
12385
13125
|
id: string;
|
|
12386
13126
|
sku?: string | undefined;
|
|
12387
13127
|
name: string;
|
|
13128
|
+
categories?: {
|
|
13129
|
+
id: string;
|
|
13130
|
+
name: string;
|
|
13131
|
+
}[] | undefined;
|
|
12388
13132
|
} | undefined;
|
|
12389
13133
|
quantity: number;
|
|
12390
13134
|
unit_price: number;
|
|
@@ -12433,7 +13177,7 @@ export declare class API {
|
|
|
12433
13177
|
name?: string | undefined;
|
|
12434
13178
|
}[] | undefined;
|
|
12435
13179
|
}>;
|
|
12436
|
-
getPaymentMethods(params
|
|
13180
|
+
getPaymentMethods(params?: {} | undefined): import("../types/api").RequestData<{
|
|
12437
13181
|
id: string;
|
|
12438
13182
|
source_ref: {
|
|
12439
13183
|
id?: string | undefined;
|
|
@@ -12442,7 +13186,9 @@ export declare class API {
|
|
|
12442
13186
|
name: string;
|
|
12443
13187
|
active: boolean;
|
|
12444
13188
|
}[]>;
|
|
12445
|
-
getProductCategories(params
|
|
13189
|
+
getProductCategories(params?: {
|
|
13190
|
+
only_parents?: "true" | "false" | undefined;
|
|
13191
|
+
} | undefined): import("../types/api").RequestData<{
|
|
12446
13192
|
id: string;
|
|
12447
13193
|
source_ref: {
|
|
12448
13194
|
id?: string | undefined;
|
|
@@ -12451,7 +13197,7 @@ export declare class API {
|
|
|
12451
13197
|
name: string;
|
|
12452
13198
|
parent_id?: string | undefined;
|
|
12453
13199
|
}[]>;
|
|
12454
|
-
getTaxes(params
|
|
13200
|
+
getTaxes(params?: {} | undefined): import("../types/api").RequestData<{
|
|
12455
13201
|
id: string;
|
|
12456
13202
|
source_ref: {
|
|
12457
13203
|
id?: string | undefined;
|
|
@@ -12461,7 +13207,7 @@ export declare class API {
|
|
|
12461
13207
|
rate: number;
|
|
12462
13208
|
country?: string | undefined;
|
|
12463
13209
|
}[]>;
|
|
12464
|
-
getCountries(params
|
|
13210
|
+
getCountries(params?: {} | undefined): import("../types/api").RequestData<{
|
|
12465
13211
|
code: string;
|
|
12466
13212
|
name: string;
|
|
12467
13213
|
}[]>;
|
|
@@ -12556,6 +13302,8 @@ export declare class API {
|
|
|
12556
13302
|
}[]>;
|
|
12557
13303
|
deleteDataStoreData: (dataStoreId: string, dataStoreDataId: string) => Promise<import("../types/sync").SimpleResponseModel>;
|
|
12558
13304
|
logData: (logs: import("../types/consumers").ConsumerLog[]) => Promise<import("../types/sync").SimpleResponseModel>;
|
|
13305
|
+
setConnectionId: (connectionId: string) => Promise<void>;
|
|
13306
|
+
setIntegrationId: (integrationId: string) => Promise<void>;
|
|
12559
13307
|
}[]>;
|
|
12560
13308
|
updateConsumerById: (consumerId: string, body: {
|
|
12561
13309
|
name?: string | undefined;
|
|
@@ -12646,21 +13394,16 @@ export declare class API {
|
|
|
12646
13394
|
total_discount?: number | undefined;
|
|
12647
13395
|
total_refund?: number | undefined;
|
|
12648
13396
|
total_tip?: number | undefined;
|
|
12649
|
-
|
|
12650
|
-
|
|
12651
|
-
|
|
12652
|
-
|
|
12653
|
-
|
|
13397
|
+
currency?: string | undefined;
|
|
13398
|
+
country?: string | undefined;
|
|
13399
|
+
loyalty?: number | undefined;
|
|
13400
|
+
customer_id?: string | undefined;
|
|
13401
|
+
location_id?: string | undefined;
|
|
13402
|
+
taxes?: {
|
|
13403
|
+
tax_rate: number;
|
|
12654
13404
|
tax_amount: number;
|
|
12655
|
-
|
|
12656
|
-
|
|
12657
|
-
discounts?: {
|
|
12658
|
-
name?: string | undefined;
|
|
12659
|
-
total: number;
|
|
12660
|
-
}[] | undefined;
|
|
12661
|
-
product_id?: string | undefined;
|
|
12662
|
-
accounting_category_id?: string | undefined;
|
|
12663
|
-
}[];
|
|
13405
|
+
total: number;
|
|
13406
|
+
}[] | undefined;
|
|
12664
13407
|
payments: {
|
|
12665
13408
|
id?: string | undefined;
|
|
12666
13409
|
payment_method_id?: string | undefined;
|
|
@@ -12671,18 +13414,27 @@ export declare class API {
|
|
|
12671
13414
|
currency?: string | undefined;
|
|
12672
13415
|
date?: string | undefined;
|
|
12673
13416
|
}[];
|
|
12674
|
-
|
|
12675
|
-
|
|
12676
|
-
|
|
12677
|
-
|
|
12678
|
-
location_id?: string | undefined;
|
|
12679
|
-
taxes?: {
|
|
12680
|
-
tax_rate: number;
|
|
12681
|
-
tax_amount: number;
|
|
13417
|
+
items: {
|
|
13418
|
+
id: string;
|
|
13419
|
+
quantity: number;
|
|
13420
|
+
unit_price: number;
|
|
12682
13421
|
total: number;
|
|
12683
|
-
|
|
13422
|
+
tax_amount: number;
|
|
13423
|
+
tax_rate?: number | undefined;
|
|
13424
|
+
description?: string | undefined;
|
|
13425
|
+
discounts?: {
|
|
13426
|
+
name?: string | undefined;
|
|
13427
|
+
total: number;
|
|
13428
|
+
}[] | undefined;
|
|
13429
|
+
product_id?: string | undefined;
|
|
13430
|
+
accounting_category_id?: string | undefined;
|
|
13431
|
+
}[];
|
|
12684
13432
|
}[]>;
|
|
12685
|
-
getCustomers(params
|
|
13433
|
+
getCustomers(params?: {
|
|
13434
|
+
search?: string | undefined;
|
|
13435
|
+
email?: string | undefined;
|
|
13436
|
+
phone?: string | undefined;
|
|
13437
|
+
} | undefined): import("../types/api").RequestData<{
|
|
12686
13438
|
id: string;
|
|
12687
13439
|
first_name?: string | undefined;
|
|
12688
13440
|
last_name?: string | undefined;
|
|
@@ -12715,6 +13467,26 @@ export declare class API {
|
|
|
12715
13467
|
total_discount?: number | undefined;
|
|
12716
13468
|
total_refund?: number | undefined;
|
|
12717
13469
|
total_tip?: number | undefined;
|
|
13470
|
+
currency?: string | undefined;
|
|
13471
|
+
country?: string | undefined;
|
|
13472
|
+
loyalty?: number | undefined;
|
|
13473
|
+
customer_id?: string | undefined;
|
|
13474
|
+
location_id?: string | undefined;
|
|
13475
|
+
taxes?: {
|
|
13476
|
+
tax_rate: number;
|
|
13477
|
+
tax_amount: number;
|
|
13478
|
+
total: number;
|
|
13479
|
+
}[] | undefined;
|
|
13480
|
+
payments: {
|
|
13481
|
+
id?: string | undefined;
|
|
13482
|
+
payment_method_id?: string | undefined;
|
|
13483
|
+
payment_method_name?: string | undefined;
|
|
13484
|
+
total: number;
|
|
13485
|
+
tip?: number | undefined;
|
|
13486
|
+
status?: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised" | undefined;
|
|
13487
|
+
currency?: string | undefined;
|
|
13488
|
+
date?: string | undefined;
|
|
13489
|
+
}[];
|
|
12718
13490
|
items: {
|
|
12719
13491
|
id: string;
|
|
12720
13492
|
quantity: number;
|
|
@@ -12730,26 +13502,6 @@ export declare class API {
|
|
|
12730
13502
|
product_id?: string | undefined;
|
|
12731
13503
|
accounting_category_id?: string | undefined;
|
|
12732
13504
|
}[];
|
|
12733
|
-
payments: {
|
|
12734
|
-
id?: string | undefined;
|
|
12735
|
-
payment_method_id?: string | undefined;
|
|
12736
|
-
payment_method_name?: string | undefined;
|
|
12737
|
-
total: number;
|
|
12738
|
-
tip?: number | undefined;
|
|
12739
|
-
status?: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised" | undefined;
|
|
12740
|
-
currency?: string | undefined;
|
|
12741
|
-
date?: string | undefined;
|
|
12742
|
-
}[];
|
|
12743
|
-
currency?: string | undefined;
|
|
12744
|
-
country?: string | undefined;
|
|
12745
|
-
loyalty?: number | undefined;
|
|
12746
|
-
customer_id?: string | undefined;
|
|
12747
|
-
location_id?: string | undefined;
|
|
12748
|
-
taxes?: {
|
|
12749
|
-
tax_rate: number;
|
|
12750
|
-
tax_amount: number;
|
|
12751
|
-
total: number;
|
|
12752
|
-
}[] | undefined;
|
|
12753
13505
|
}>;
|
|
12754
13506
|
getCustomer(customerId: string): import("../types/api").RequestData<{
|
|
12755
13507
|
id: string;
|
|
@@ -12807,12 +13559,17 @@ export declare class API {
|
|
|
12807
13559
|
loyalty?: number | undefined;
|
|
12808
13560
|
birthdate?: string | undefined;
|
|
12809
13561
|
}>;
|
|
12810
|
-
getPaymentMethods(params
|
|
13562
|
+
getPaymentMethods(params?: {
|
|
13563
|
+
location_id?: string | undefined;
|
|
13564
|
+
} | undefined): import("../types/api").RequestData<{
|
|
12811
13565
|
id: string;
|
|
12812
13566
|
name: string;
|
|
12813
13567
|
extra?: string | undefined;
|
|
12814
13568
|
}[]>;
|
|
12815
|
-
getProductCategories(params
|
|
13569
|
+
getProductCategories(params?: {
|
|
13570
|
+
location_id?: string | undefined;
|
|
13571
|
+
only_parents?: "true" | "false" | undefined;
|
|
13572
|
+
} | undefined): import("../types/api").RequestData<{
|
|
12816
13573
|
id: string;
|
|
12817
13574
|
source_ref: {
|
|
12818
13575
|
id?: string | undefined;
|
|
@@ -12821,7 +13578,9 @@ export declare class API {
|
|
|
12821
13578
|
name: string;
|
|
12822
13579
|
parent_id?: string | undefined;
|
|
12823
13580
|
}[]>;
|
|
12824
|
-
getProducts(params
|
|
13581
|
+
getProducts(params?: {
|
|
13582
|
+
location_id?: string | undefined;
|
|
13583
|
+
} | undefined): import("../types/api").RequestData<{
|
|
12825
13584
|
id: string;
|
|
12826
13585
|
categories?: string[] | undefined;
|
|
12827
13586
|
name: string;
|
|
@@ -12845,7 +13604,7 @@ export declare class API {
|
|
|
12845
13604
|
total: number;
|
|
12846
13605
|
}[] | undefined;
|
|
12847
13606
|
}>;
|
|
12848
|
-
getClosure(date: string, params
|
|
13607
|
+
getClosure(date: string, params?: {
|
|
12849
13608
|
location_id?: string | undefined;
|
|
12850
13609
|
} | undefined): import("../types/api").RequestData<{
|
|
12851
13610
|
date: string;
|
|
@@ -12878,6 +13637,26 @@ export declare class API {
|
|
|
12878
13637
|
total_discount?: number | undefined;
|
|
12879
13638
|
total_refund?: number | undefined;
|
|
12880
13639
|
total_tip?: number | undefined;
|
|
13640
|
+
currency?: string | undefined;
|
|
13641
|
+
country?: string | undefined;
|
|
13642
|
+
loyalty?: number | undefined;
|
|
13643
|
+
customer_id?: string | undefined;
|
|
13644
|
+
location_id?: string | undefined;
|
|
13645
|
+
taxes?: {
|
|
13646
|
+
tax_rate: number;
|
|
13647
|
+
tax_amount: number;
|
|
13648
|
+
total: number;
|
|
13649
|
+
}[] | undefined;
|
|
13650
|
+
payments: {
|
|
13651
|
+
id?: string | undefined;
|
|
13652
|
+
payment_method_id?: string | undefined;
|
|
13653
|
+
payment_method_name?: string | undefined;
|
|
13654
|
+
total: number;
|
|
13655
|
+
tip?: number | undefined;
|
|
13656
|
+
status?: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised" | undefined;
|
|
13657
|
+
currency?: string | undefined;
|
|
13658
|
+
date?: string | undefined;
|
|
13659
|
+
}[];
|
|
12881
13660
|
items: {
|
|
12882
13661
|
id: string;
|
|
12883
13662
|
quantity: number;
|
|
@@ -12893,16 +13672,53 @@ export declare class API {
|
|
|
12893
13672
|
product_id?: string | undefined;
|
|
12894
13673
|
accounting_category_id?: string | undefined;
|
|
12895
13674
|
}[];
|
|
12896
|
-
|
|
13675
|
+
}>;
|
|
13676
|
+
getAccountingCategories(params?: {} | undefined): import("../types/api").RequestData<{
|
|
13677
|
+
id: string;
|
|
13678
|
+
name: string;
|
|
13679
|
+
id_parent?: string | undefined;
|
|
13680
|
+
code?: string | undefined;
|
|
13681
|
+
ledger_account_code?: string | undefined;
|
|
13682
|
+
posting_account_code?: string | undefined;
|
|
13683
|
+
}[]>;
|
|
13684
|
+
}>;
|
|
13685
|
+
pms: import("../types/api").ApiFor<{
|
|
13686
|
+
getLocations(): import("../types/api").RequestData<{
|
|
13687
|
+
id: string;
|
|
13688
|
+
name: string;
|
|
13689
|
+
timezone?: string | undefined;
|
|
13690
|
+
address?: {
|
|
13691
|
+
address_type?: string | undefined;
|
|
13692
|
+
name?: string | undefined;
|
|
13693
|
+
street?: string | undefined;
|
|
13694
|
+
number?: string | undefined;
|
|
13695
|
+
box?: string | undefined;
|
|
13696
|
+
city?: string | undefined;
|
|
13697
|
+
postal_code?: string | undefined;
|
|
13698
|
+
country?: string | undefined;
|
|
13699
|
+
} | undefined;
|
|
13700
|
+
}[]>;
|
|
13701
|
+
getOrders(params: {
|
|
13702
|
+
date_from: string;
|
|
13703
|
+
date_to: string;
|
|
13704
|
+
location_id?: string | undefined;
|
|
13705
|
+
state?: "closed" | "consumed" | undefined;
|
|
13706
|
+
}): import("../types/api").RequestData<{
|
|
13707
|
+
id: string;
|
|
13708
|
+
source_ref: {
|
|
12897
13709
|
id?: string | undefined;
|
|
12898
|
-
|
|
12899
|
-
|
|
12900
|
-
|
|
12901
|
-
|
|
12902
|
-
|
|
12903
|
-
|
|
12904
|
-
|
|
12905
|
-
|
|
13710
|
+
model?: string | undefined;
|
|
13711
|
+
};
|
|
13712
|
+
order_number?: string | undefined;
|
|
13713
|
+
creation_date: string;
|
|
13714
|
+
closing_date?: string | undefined;
|
|
13715
|
+
service_date?: string | undefined;
|
|
13716
|
+
device_id?: string | undefined;
|
|
13717
|
+
total: number;
|
|
13718
|
+
tax_amount: number;
|
|
13719
|
+
total_discount?: number | undefined;
|
|
13720
|
+
total_refund?: number | undefined;
|
|
13721
|
+
total_tip?: number | undefined;
|
|
12906
13722
|
currency?: string | undefined;
|
|
12907
13723
|
country?: string | undefined;
|
|
12908
13724
|
loyalty?: number | undefined;
|
|
@@ -12913,9 +13729,68 @@ export declare class API {
|
|
|
12913
13729
|
tax_amount: number;
|
|
12914
13730
|
total: number;
|
|
12915
13731
|
}[] | undefined;
|
|
13732
|
+
items: {
|
|
13733
|
+
id: string;
|
|
13734
|
+
source_ref: {
|
|
13735
|
+
id?: string | undefined;
|
|
13736
|
+
model?: string | undefined;
|
|
13737
|
+
};
|
|
13738
|
+
quantity: number;
|
|
13739
|
+
unit_price: number;
|
|
13740
|
+
total: number;
|
|
13741
|
+
tax_amount: number;
|
|
13742
|
+
tax_rate?: number | undefined;
|
|
13743
|
+
description?: string | undefined;
|
|
13744
|
+
discounts?: {
|
|
13745
|
+
name?: string | undefined;
|
|
13746
|
+
total: number;
|
|
13747
|
+
}[] | undefined;
|
|
13748
|
+
product_id?: string | undefined;
|
|
13749
|
+
accounting_category_id?: string | undefined;
|
|
13750
|
+
}[];
|
|
13751
|
+
service_id?: string | undefined;
|
|
13752
|
+
}[]>;
|
|
13753
|
+
getPaymentMethods(params?: {
|
|
13754
|
+
location_id?: string | undefined;
|
|
13755
|
+
} | undefined): import("../types/api").RequestData<{
|
|
13756
|
+
id: string;
|
|
13757
|
+
source_ref: {
|
|
13758
|
+
id?: string | undefined;
|
|
13759
|
+
model?: string | undefined;
|
|
13760
|
+
};
|
|
13761
|
+
name: string;
|
|
13762
|
+
extra?: string | undefined;
|
|
13763
|
+
ledger_account_code?: string | undefined;
|
|
13764
|
+
}[]>;
|
|
13765
|
+
getClosure(date: string, params?: {
|
|
13766
|
+
location_id?: string | undefined;
|
|
13767
|
+
} | undefined): import("../types/api").RequestData<{
|
|
13768
|
+
date: string;
|
|
13769
|
+
status: "open" | "closed";
|
|
12916
13770
|
}>;
|
|
12917
|
-
|
|
13771
|
+
getPayments(params: {
|
|
13772
|
+
date_from: string;
|
|
13773
|
+
date_to: string;
|
|
13774
|
+
}): import("../types/api").RequestData<{
|
|
13775
|
+
id?: string | undefined;
|
|
13776
|
+
source_ref: {
|
|
13777
|
+
id?: string | undefined;
|
|
13778
|
+
model?: string | undefined;
|
|
13779
|
+
};
|
|
13780
|
+
payment_method_id?: string | undefined;
|
|
13781
|
+
payment_method_name?: string | undefined;
|
|
13782
|
+
total: number;
|
|
13783
|
+
tip?: number | undefined;
|
|
13784
|
+
status?: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised" | undefined;
|
|
13785
|
+
currency?: string | undefined;
|
|
13786
|
+
date?: string | undefined;
|
|
13787
|
+
}[]>;
|
|
13788
|
+
getAccountingCategories(params?: {} | undefined): import("../types/api").RequestData<{
|
|
12918
13789
|
id: string;
|
|
13790
|
+
source_ref: {
|
|
13791
|
+
id?: string | undefined;
|
|
13792
|
+
model?: string | undefined;
|
|
13793
|
+
};
|
|
12919
13794
|
name: string;
|
|
12920
13795
|
id_parent?: string | undefined;
|
|
12921
13796
|
code?: string | undefined;
|
|
@@ -12924,19 +13799,15 @@ export declare class API {
|
|
|
12924
13799
|
}[]>;
|
|
12925
13800
|
}>;
|
|
12926
13801
|
accounting: import("../types/api").ApiFor<{
|
|
12927
|
-
getAnalyticPlans(params
|
|
13802
|
+
getAnalyticPlans(params?: {
|
|
12928
13803
|
folder_id?: string | undefined;
|
|
12929
|
-
page?: number | undefined;
|
|
12930
|
-
size?: number | undefined;
|
|
12931
13804
|
} | undefined): import("../types/api").RequestData<{
|
|
12932
13805
|
id: string;
|
|
12933
13806
|
name: string;
|
|
12934
13807
|
active?: boolean | undefined;
|
|
12935
13808
|
}[]>;
|
|
12936
|
-
getClients(params
|
|
13809
|
+
getClients(params?: {
|
|
12937
13810
|
folder_id?: string | undefined;
|
|
12938
|
-
page?: number | undefined;
|
|
12939
|
-
size?: number | undefined;
|
|
12940
13811
|
} | undefined): import("../types/api").RequestData<{
|
|
12941
13812
|
external_reference?: string | undefined;
|
|
12942
13813
|
first_name?: string | undefined;
|
|
@@ -13006,7 +13877,7 @@ export declare class API {
|
|
|
13006
13877
|
country: string;
|
|
13007
13878
|
}[];
|
|
13008
13879
|
account_number?: string | undefined;
|
|
13009
|
-
}, params
|
|
13880
|
+
}, params?: {
|
|
13010
13881
|
force_merge?: string | undefined;
|
|
13011
13882
|
folder_id?: string | undefined;
|
|
13012
13883
|
} | undefined): import("../types/api").RequestData<{
|
|
@@ -13045,7 +13916,7 @@ export declare class API {
|
|
|
13045
13916
|
company_number?: string | undefined;
|
|
13046
13917
|
id?: string | undefined;
|
|
13047
13918
|
}>;
|
|
13048
|
-
getClient(clientId: string, params
|
|
13919
|
+
getClient(clientId: string, params?: {
|
|
13049
13920
|
folder_id?: string | undefined;
|
|
13050
13921
|
} | undefined): import("../types/api").RequestData<{
|
|
13051
13922
|
external_reference?: string | undefined;
|
|
@@ -13115,7 +13986,7 @@ export declare class API {
|
|
|
13115
13986
|
postal_code?: string | undefined;
|
|
13116
13987
|
country?: string | undefined;
|
|
13117
13988
|
}[] | undefined;
|
|
13118
|
-
}, params
|
|
13989
|
+
}, params?: {
|
|
13119
13990
|
folder_id?: string | undefined;
|
|
13120
13991
|
} | undefined): import("../types/api").RequestData<{
|
|
13121
13992
|
external_reference?: string | undefined;
|
|
@@ -13153,10 +14024,8 @@ export declare class API {
|
|
|
13153
14024
|
company_number?: string | undefined;
|
|
13154
14025
|
id?: string | undefined;
|
|
13155
14026
|
}>;
|
|
13156
|
-
getSuppliers(params
|
|
14027
|
+
getSuppliers(params?: {
|
|
13157
14028
|
folder_id?: string | undefined;
|
|
13158
|
-
page?: number | undefined;
|
|
13159
|
-
size?: number | undefined;
|
|
13160
14029
|
} | undefined): import("../types/api").RequestData<{
|
|
13161
14030
|
external_reference?: string | undefined;
|
|
13162
14031
|
first_name?: string | undefined;
|
|
@@ -13226,7 +14095,7 @@ export declare class API {
|
|
|
13226
14095
|
country: string;
|
|
13227
14096
|
}[];
|
|
13228
14097
|
account_number?: string | undefined;
|
|
13229
|
-
}, params
|
|
14098
|
+
}, params?: {
|
|
13230
14099
|
force_merge?: string | undefined;
|
|
13231
14100
|
folder_id?: string | undefined;
|
|
13232
14101
|
} | undefined): import("../types/api").RequestData<{
|
|
@@ -13265,7 +14134,7 @@ export declare class API {
|
|
|
13265
14134
|
company_number?: string | undefined;
|
|
13266
14135
|
id?: string | undefined;
|
|
13267
14136
|
}>;
|
|
13268
|
-
getSupplier(supplierId: string, params
|
|
14137
|
+
getSupplier(supplierId: string, params?: {
|
|
13269
14138
|
folder_id?: string | undefined;
|
|
13270
14139
|
} | undefined): import("../types/api").RequestData<{
|
|
13271
14140
|
external_reference?: string | undefined;
|
|
@@ -13335,7 +14204,7 @@ export declare class API {
|
|
|
13335
14204
|
postal_code?: string | undefined;
|
|
13336
14205
|
country?: string | undefined;
|
|
13337
14206
|
}[] | undefined;
|
|
13338
|
-
}, params
|
|
14207
|
+
}, params?: {
|
|
13339
14208
|
folder_id?: string | undefined;
|
|
13340
14209
|
} | undefined): import("../types/api").RequestData<{
|
|
13341
14210
|
external_reference?: string | undefined;
|
|
@@ -13406,6 +14275,7 @@ export declare class API {
|
|
|
13406
14275
|
iban: string;
|
|
13407
14276
|
};
|
|
13408
14277
|
} | undefined;
|
|
14278
|
+
shipping_country?: string | undefined;
|
|
13409
14279
|
lines: {
|
|
13410
14280
|
line_number?: number | undefined;
|
|
13411
14281
|
description: string;
|
|
@@ -13420,7 +14290,7 @@ export declare class API {
|
|
|
13420
14290
|
tax_code: string;
|
|
13421
14291
|
analytic_account?: string | undefined;
|
|
13422
14292
|
}[];
|
|
13423
|
-
}, params
|
|
14293
|
+
}, params?: {
|
|
13424
14294
|
force_financial_period?: string | undefined;
|
|
13425
14295
|
regroup_lines?: "true" | "false" | undefined;
|
|
13426
14296
|
folder_id?: string | undefined;
|
|
@@ -13502,6 +14372,7 @@ export declare class API {
|
|
|
13502
14372
|
iban: string;
|
|
13503
14373
|
};
|
|
13504
14374
|
} | undefined;
|
|
14375
|
+
shipping_country?: string | undefined;
|
|
13505
14376
|
lines: {
|
|
13506
14377
|
line_number?: number | undefined;
|
|
13507
14378
|
description: string;
|
|
@@ -13522,7 +14393,7 @@ export declare class API {
|
|
|
13522
14393
|
}[];
|
|
13523
14394
|
}[] | undefined;
|
|
13524
14395
|
}[];
|
|
13525
|
-
}, params
|
|
14396
|
+
}, params?: {
|
|
13526
14397
|
force_financial_period?: string | undefined;
|
|
13527
14398
|
regroup_lines?: "true" | "false" | undefined;
|
|
13528
14399
|
folder_id?: string | undefined;
|
|
@@ -13577,7 +14448,14 @@ export declare class API {
|
|
|
13577
14448
|
}[] | undefined;
|
|
13578
14449
|
}[];
|
|
13579
14450
|
}>;
|
|
13580
|
-
getInvoicesByType(invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund", params
|
|
14451
|
+
getInvoicesByType(invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund", params?: {
|
|
14452
|
+
date_from?: string | undefined;
|
|
14453
|
+
date_to?: string | undefined;
|
|
14454
|
+
folder_id?: string | undefined;
|
|
14455
|
+
journal_ids?: string | undefined;
|
|
14456
|
+
include_payments?: "true" | "false" | undefined;
|
|
14457
|
+
payment_status?: "all" | "paid" | "unpaid" | undefined;
|
|
14458
|
+
} | undefined): import("../types/api").RequestData<{
|
|
13581
14459
|
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
13582
14460
|
invoice_number?: string | undefined;
|
|
13583
14461
|
currency: string;
|
|
@@ -13622,7 +14500,7 @@ export declare class API {
|
|
|
13622
14500
|
analytic_account?: string | undefined;
|
|
13623
14501
|
}[];
|
|
13624
14502
|
}[]>;
|
|
13625
|
-
getInvoice(invoiceId: string, params
|
|
14503
|
+
getInvoice(invoiceId: string, params?: {
|
|
13626
14504
|
include_payments?: "true" | "false" | undefined;
|
|
13627
14505
|
folder_id?: string | undefined;
|
|
13628
14506
|
} | undefined): import("../types/api").RequestData<{
|
|
@@ -13670,7 +14548,7 @@ export declare class API {
|
|
|
13670
14548
|
analytic_account?: string | undefined;
|
|
13671
14549
|
}[];
|
|
13672
14550
|
}>;
|
|
13673
|
-
getInvoiceWithMultiplePlans(invoiceId: string, params
|
|
14551
|
+
getInvoiceWithMultiplePlans(invoiceId: string, params?: {
|
|
13674
14552
|
include_payments?: "true" | "false" | undefined;
|
|
13675
14553
|
folder_id?: string | undefined;
|
|
13676
14554
|
} | undefined): import("../types/api").RequestData<{
|
|
@@ -13724,7 +14602,14 @@ export declare class API {
|
|
|
13724
14602
|
}[] | undefined;
|
|
13725
14603
|
}[];
|
|
13726
14604
|
}>;
|
|
13727
|
-
getInvoicesByTypeWithMultiplePlans(invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund", params
|
|
14605
|
+
getInvoicesByTypeWithMultiplePlans(invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund", params?: {
|
|
14606
|
+
date_from?: string | undefined;
|
|
14607
|
+
date_to?: string | undefined;
|
|
14608
|
+
folder_id?: string | undefined;
|
|
14609
|
+
journal_ids?: string | undefined;
|
|
14610
|
+
include_payments?: "true" | "false" | undefined;
|
|
14611
|
+
payment_status?: "all" | "paid" | "unpaid" | undefined;
|
|
14612
|
+
} | undefined): import("../types/api").RequestData<{
|
|
13728
14613
|
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
13729
14614
|
invoice_number?: string | undefined;
|
|
13730
14615
|
currency: string;
|
|
@@ -13780,7 +14665,7 @@ export declare class API {
|
|
|
13780
14665
|
code: string;
|
|
13781
14666
|
name: string;
|
|
13782
14667
|
currency: string;
|
|
13783
|
-
}, params
|
|
14668
|
+
}, params?: {
|
|
13784
14669
|
folder_id?: string | undefined;
|
|
13785
14670
|
} | undefined): import("../types/api").RequestData<{
|
|
13786
14671
|
id: string;
|
|
@@ -13792,10 +14677,8 @@ export declare class API {
|
|
|
13792
14677
|
credit?: number | undefined;
|
|
13793
14678
|
debit?: number | undefined;
|
|
13794
14679
|
}>;
|
|
13795
|
-
getAnalyticAccounts(params
|
|
14680
|
+
getAnalyticAccounts(params?: {
|
|
13796
14681
|
folder_id?: string | undefined;
|
|
13797
|
-
page?: number | undefined;
|
|
13798
|
-
size?: number | undefined;
|
|
13799
14682
|
} | undefined): import("../types/api").RequestData<{
|
|
13800
14683
|
id: string;
|
|
13801
14684
|
active: boolean;
|
|
@@ -13811,7 +14694,7 @@ export declare class API {
|
|
|
13811
14694
|
code: string;
|
|
13812
14695
|
name: string;
|
|
13813
14696
|
currency: string;
|
|
13814
|
-
}, params
|
|
14697
|
+
}, params?: {
|
|
13815
14698
|
folder_id?: string | undefined;
|
|
13816
14699
|
} | undefined): import("../types/api").RequestData<{
|
|
13817
14700
|
id: string;
|
|
@@ -13824,7 +14707,7 @@ export declare class API {
|
|
|
13824
14707
|
debit?: number | undefined;
|
|
13825
14708
|
analytic_plan: string;
|
|
13826
14709
|
}>;
|
|
13827
|
-
getAnalyticAccount(analytic_account_id: string, params
|
|
14710
|
+
getAnalyticAccount(analytic_account_id: string, params?: {
|
|
13828
14711
|
folder_id?: string | undefined;
|
|
13829
14712
|
} | undefined): import("../types/api").RequestData<{
|
|
13830
14713
|
id: string;
|
|
@@ -13841,7 +14724,7 @@ export declare class API {
|
|
|
13841
14724
|
code?: string | undefined;
|
|
13842
14725
|
name?: string | undefined;
|
|
13843
14726
|
currency?: string | undefined;
|
|
13844
|
-
}, params
|
|
14727
|
+
}, params?: {
|
|
13845
14728
|
folder_id?: string | undefined;
|
|
13846
14729
|
} | undefined): import("../types/api").RequestData<{
|
|
13847
14730
|
id: string;
|
|
@@ -13853,7 +14736,7 @@ export declare class API {
|
|
|
13853
14736
|
credit?: number | undefined;
|
|
13854
14737
|
debit?: number | undefined;
|
|
13855
14738
|
}>;
|
|
13856
|
-
getAnalyticAccountWithMultiplePlans(analytic_account_id: string, analytic_plan: string, params
|
|
14739
|
+
getAnalyticAccountWithMultiplePlans(analytic_account_id: string, analytic_plan: string, params?: {
|
|
13857
14740
|
folder_id?: string | undefined;
|
|
13858
14741
|
} | undefined): import("../types/api").RequestData<{
|
|
13859
14742
|
id: string;
|
|
@@ -13871,7 +14754,7 @@ export declare class API {
|
|
|
13871
14754
|
code?: string | undefined;
|
|
13872
14755
|
name?: string | undefined;
|
|
13873
14756
|
currency?: string | undefined;
|
|
13874
|
-
}, params
|
|
14757
|
+
}, params?: {
|
|
13875
14758
|
folder_id?: string | undefined;
|
|
13876
14759
|
} | undefined): import("../types/api").RequestData<{
|
|
13877
14760
|
id: string;
|
|
@@ -13884,10 +14767,8 @@ export declare class API {
|
|
|
13884
14767
|
debit?: number | undefined;
|
|
13885
14768
|
analytic_plan: string;
|
|
13886
14769
|
}>;
|
|
13887
|
-
getAnalyticAccountsWithMultiplePlans(params
|
|
14770
|
+
getAnalyticAccountsWithMultiplePlans(params?: {
|
|
13888
14771
|
folder_id?: string | undefined;
|
|
13889
|
-
page?: number | undefined;
|
|
13890
|
-
size?: number | undefined;
|
|
13891
14772
|
} | undefined): import("../types/api").RequestData<{
|
|
13892
14773
|
id: string;
|
|
13893
14774
|
active: boolean;
|
|
@@ -13968,7 +14849,7 @@ export declare class API {
|
|
|
13968
14849
|
}[] | undefined;
|
|
13969
14850
|
}[] | undefined;
|
|
13970
14851
|
}[]>;
|
|
13971
|
-
getPaymentsByInvoiceId(invoice_id: string, params
|
|
14852
|
+
getPaymentsByInvoiceId(invoice_id: string, params?: {
|
|
13972
14853
|
folder_id?: string | undefined;
|
|
13973
14854
|
page?: number | undefined;
|
|
13974
14855
|
size?: number | undefined;
|
|
@@ -13986,20 +14867,16 @@ export declare class API {
|
|
|
13986
14867
|
communication?: string | undefined;
|
|
13987
14868
|
matching_number?: string | undefined;
|
|
13988
14869
|
}[]>;
|
|
13989
|
-
getJournals(params
|
|
14870
|
+
getJournals(params?: {
|
|
13990
14871
|
folder_id?: string | undefined;
|
|
13991
|
-
page?: number | undefined;
|
|
13992
|
-
size?: number | undefined;
|
|
13993
14872
|
} | undefined): import("../types/api").RequestData<{
|
|
13994
14873
|
id: string;
|
|
13995
14874
|
code?: string | undefined;
|
|
13996
14875
|
name: string;
|
|
13997
14876
|
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
13998
14877
|
}[]>;
|
|
13999
|
-
getVatCodes(params
|
|
14878
|
+
getVatCodes(params?: {
|
|
14000
14879
|
folder_id?: string | undefined;
|
|
14001
|
-
page?: number | undefined;
|
|
14002
|
-
size?: number | undefined;
|
|
14003
14880
|
} | undefined): import("../types/api").RequestData<{
|
|
14004
14881
|
id: string;
|
|
14005
14882
|
code?: string | undefined;
|
|
@@ -14010,7 +14887,12 @@ export declare class API {
|
|
|
14010
14887
|
deductible_account?: string | undefined;
|
|
14011
14888
|
payable_account?: string | undefined;
|
|
14012
14889
|
}[]>;
|
|
14013
|
-
getMiscOperations(params
|
|
14890
|
+
getMiscOperations(params?: {
|
|
14891
|
+
date_from?: string | undefined;
|
|
14892
|
+
date_to?: string | undefined;
|
|
14893
|
+
folder_id?: string | undefined;
|
|
14894
|
+
journal_ids?: string | undefined;
|
|
14895
|
+
} | undefined): import("../types/api").RequestData<{
|
|
14014
14896
|
operation_number?: string | undefined;
|
|
14015
14897
|
currency: string;
|
|
14016
14898
|
currency_exchange_rate?: number | undefined;
|
|
@@ -14044,7 +14926,7 @@ export declare class API {
|
|
|
14044
14926
|
operation_date: string;
|
|
14045
14927
|
journal_id?: string | undefined;
|
|
14046
14928
|
status?: "draft" | "posted" | undefined;
|
|
14047
|
-
}, params
|
|
14929
|
+
}, params?: {
|
|
14048
14930
|
folder_id?: string | undefined;
|
|
14049
14931
|
} | undefined): import("../types/api").RequestData<{
|
|
14050
14932
|
operation_number?: string | undefined;
|
|
@@ -14064,7 +14946,7 @@ export declare class API {
|
|
|
14064
14946
|
status: "cancelled" | "draft" | "posted" | "matched";
|
|
14065
14947
|
id: string;
|
|
14066
14948
|
}>;
|
|
14067
|
-
getMiscOperation(operation_id: string, params
|
|
14949
|
+
getMiscOperation(operation_id: string, params?: {
|
|
14068
14950
|
folder_id?: string | undefined;
|
|
14069
14951
|
} | undefined): import("../types/api").RequestData<{
|
|
14070
14952
|
operation_number?: string | undefined;
|
|
@@ -14086,24 +14968,25 @@ export declare class API {
|
|
|
14086
14968
|
}>;
|
|
14087
14969
|
attachPDF(invoice_id: string, attachment: {
|
|
14088
14970
|
base64_string: string;
|
|
14089
|
-
}, params
|
|
14971
|
+
}, params?: {
|
|
14090
14972
|
overwrite_existing?: "true" | "false" | undefined;
|
|
14091
14973
|
folder_id?: string | undefined;
|
|
14092
14974
|
} | undefined): import("../types/api").RequestData<{
|
|
14093
14975
|
content: {
|
|
14094
|
-
|
|
14976
|
+
'application/json': unknown;
|
|
14095
14977
|
};
|
|
14096
14978
|
}>;
|
|
14097
14979
|
getAttachments(params: {
|
|
14980
|
+
folder_id?: string | undefined;
|
|
14098
14981
|
type: "invoice" | "entry";
|
|
14099
14982
|
document_id: string;
|
|
14100
|
-
folder_id?: string | undefined;
|
|
14101
|
-
page?: number | undefined;
|
|
14102
|
-
size?: number | undefined;
|
|
14103
14983
|
}): import("../types/api").RequestData<{
|
|
14104
14984
|
base64_string: string;
|
|
14105
14985
|
}[]>;
|
|
14106
|
-
getChartOfAccounts(params
|
|
14986
|
+
getChartOfAccounts(params?: {
|
|
14987
|
+
classes?: string | undefined;
|
|
14988
|
+
folder_id?: string | undefined;
|
|
14989
|
+
} | undefined): import("../types/api").RequestData<{
|
|
14107
14990
|
number: string;
|
|
14108
14991
|
name: string;
|
|
14109
14992
|
active?: boolean | undefined;
|
|
@@ -14113,10 +14996,8 @@ export declare class API {
|
|
|
14113
14996
|
accounts: string[];
|
|
14114
14997
|
start?: string | undefined;
|
|
14115
14998
|
end: string;
|
|
14116
|
-
}, params
|
|
14999
|
+
}, params?: {
|
|
14117
15000
|
folder_id?: string | undefined;
|
|
14118
|
-
page?: number | undefined;
|
|
14119
|
-
size?: number | undefined;
|
|
14120
15001
|
} | undefined): import("../types/api").RequestData<{
|
|
14121
15002
|
account_number: string;
|
|
14122
15003
|
account_name?: string | undefined;
|
|
@@ -14124,10 +15005,8 @@ export declare class API {
|
|
|
14124
15005
|
credit: number;
|
|
14125
15006
|
balance: number;
|
|
14126
15007
|
}[]>;
|
|
14127
|
-
getEmployees(params
|
|
15008
|
+
getEmployees(params?: {
|
|
14128
15009
|
folder_id?: string | undefined;
|
|
14129
|
-
page?: number | undefined;
|
|
14130
|
-
size?: number | undefined;
|
|
14131
15010
|
} | undefined): import("../types/api").RequestData<{
|
|
14132
15011
|
id: string;
|
|
14133
15012
|
name: string;
|
|
@@ -14143,8 +15022,8 @@ export declare class API {
|
|
|
14143
15022
|
}[]>;
|
|
14144
15023
|
getOutstandings(params: {
|
|
14145
15024
|
folder_id?: string | undefined;
|
|
14146
|
-
unposted_allowed: "true" | "false";
|
|
14147
15025
|
type: "supplier" | "client";
|
|
15026
|
+
unposted_allowed: "true" | "false";
|
|
14148
15027
|
}): import("../types/api").RequestData<{
|
|
14149
15028
|
id: string;
|
|
14150
15029
|
number?: string | undefined;
|
|
@@ -14177,7 +15056,7 @@ export declare class API {
|
|
|
14177
15056
|
description?: string | undefined;
|
|
14178
15057
|
}[];
|
|
14179
15058
|
pdf?: string | undefined;
|
|
14180
|
-
}, params
|
|
15059
|
+
}, params?: {
|
|
14181
15060
|
financial_counterpart_account?: string | undefined;
|
|
14182
15061
|
folder_id?: string | undefined;
|
|
14183
15062
|
} | undefined): import("../types/api").RequestData<{
|
|
@@ -14211,7 +15090,7 @@ export declare class API {
|
|
|
14211
15090
|
description?: string | undefined;
|
|
14212
15091
|
}[];
|
|
14213
15092
|
pdf?: string | undefined;
|
|
14214
|
-
}, params
|
|
15093
|
+
}, params?: {
|
|
14215
15094
|
financial_counterpart_account?: string | undefined;
|
|
14216
15095
|
folder_id?: string | undefined;
|
|
14217
15096
|
} | undefined): import("../types/api").RequestData<{
|
|
@@ -14310,7 +15189,7 @@ export declare class API {
|
|
|
14310
15189
|
}[];
|
|
14311
15190
|
pdf?: string | undefined;
|
|
14312
15191
|
posted?: boolean | undefined;
|
|
14313
|
-
}, params
|
|
15192
|
+
}, params?: {
|
|
14314
15193
|
folder_id?: string | undefined;
|
|
14315
15194
|
} | undefined): import("../types/api").RequestData<{
|
|
14316
15195
|
reference?: string | undefined;
|
|
@@ -14345,7 +15224,7 @@ export declare class API {
|
|
|
14345
15224
|
matchEntries(body: {
|
|
14346
15225
|
entries: string[];
|
|
14347
15226
|
partner_id: string;
|
|
14348
|
-
}, params
|
|
15227
|
+
}, params?: {
|
|
14349
15228
|
folder_id?: string | undefined;
|
|
14350
15229
|
} | undefined): import("../types/api").RequestData<{
|
|
14351
15230
|
matching_number: string;
|
|
@@ -14355,17 +15234,17 @@ export declare class API {
|
|
|
14355
15234
|
id: string;
|
|
14356
15235
|
name: string;
|
|
14357
15236
|
selected?: boolean | undefined;
|
|
15237
|
+
vat?: string | undefined;
|
|
15238
|
+
company_number?: string | undefined;
|
|
14358
15239
|
}[]>;
|
|
14359
15240
|
}>;
|
|
14360
15241
|
invoicing: import("../types/api").ApiFor<{
|
|
14361
|
-
getInvoices(params
|
|
14362
|
-
invoice_type?: "all" | "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | undefined;
|
|
14363
|
-
payment_status?: "all" | "paid" | "unpaid" | undefined;
|
|
15242
|
+
getInvoices(params?: {
|
|
14364
15243
|
date_from?: string | undefined;
|
|
14365
15244
|
date_to?: string | undefined;
|
|
15245
|
+
payment_status?: "all" | "paid" | "unpaid" | undefined;
|
|
15246
|
+
invoice_type?: "all" | "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | undefined;
|
|
14366
15247
|
updated_after?: string | undefined;
|
|
14367
|
-
page?: number | undefined;
|
|
14368
|
-
size?: number | undefined;
|
|
14369
15248
|
} | undefined): import("../types/api").RequestData<{
|
|
14370
15249
|
id: string;
|
|
14371
15250
|
source_ref: {
|
|
@@ -14409,7 +15288,7 @@ export declare class API {
|
|
|
14409
15288
|
outstanding_amount?: number | undefined;
|
|
14410
15289
|
last_updated_on?: string | undefined;
|
|
14411
15290
|
}[]>;
|
|
14412
|
-
getInvoiceById(invoiceId: string, params
|
|
15291
|
+
getInvoiceById(invoiceId: string, params?: {
|
|
14413
15292
|
include_pdf?: "true" | "false" | undefined;
|
|
14414
15293
|
} | undefined): import("../types/api").RequestData<{
|
|
14415
15294
|
id: string;
|
|
@@ -14671,8 +15550,6 @@ export declare class API {
|
|
|
14671
15550
|
}>;
|
|
14672
15551
|
getContacts(params?: {
|
|
14673
15552
|
contact_type?: "prospect" | "customer" | "supplier" | "all" | undefined;
|
|
14674
|
-
page?: number | undefined;
|
|
14675
|
-
size?: number | undefined;
|
|
14676
15553
|
} | undefined): import("../types/api").RequestData<{
|
|
14677
15554
|
id: string;
|
|
14678
15555
|
source_ref: {
|
|
@@ -15083,7 +15960,13 @@ export declare class API {
|
|
|
15083
15960
|
id: string;
|
|
15084
15961
|
name: string;
|
|
15085
15962
|
}[]>;
|
|
15086
|
-
getOrders(params
|
|
15963
|
+
getOrders(params?: {
|
|
15964
|
+
date_from?: string | undefined;
|
|
15965
|
+
date_to?: string | undefined;
|
|
15966
|
+
updated_after?: string | undefined;
|
|
15967
|
+
include_detailed_refunds?: "true" | "false" | undefined;
|
|
15968
|
+
include_product_categories?: "true" | "false" | undefined;
|
|
15969
|
+
} | undefined): import("../types/api").RequestData<{
|
|
15087
15970
|
id: string;
|
|
15088
15971
|
source_ref: {
|
|
15089
15972
|
id?: string | undefined;
|
|
@@ -15129,8 +16012,9 @@ export declare class API {
|
|
|
15129
16012
|
created_on?: string | undefined;
|
|
15130
16013
|
last_updated_on?: string | undefined;
|
|
15131
16014
|
confirmed_on?: string | undefined;
|
|
16015
|
+
delivery_date?: string | undefined;
|
|
15132
16016
|
cancelled_on?: string | undefined;
|
|
15133
|
-
status: "cancelled" | "draft" | "confirmed" | "shipped" | "refunded";
|
|
16017
|
+
status: "cancelled" | "draft" | "cancelled_unpaid" | "confirmed" | "shipped" | "refunded";
|
|
15134
16018
|
discount_amount: number;
|
|
15135
16019
|
untaxed_amount_without_fees: number;
|
|
15136
16020
|
tax_amount_without_fees: number;
|
|
@@ -15154,6 +16038,10 @@ export declare class API {
|
|
|
15154
16038
|
id: string;
|
|
15155
16039
|
sku?: string | undefined;
|
|
15156
16040
|
name: string;
|
|
16041
|
+
categories?: {
|
|
16042
|
+
id: string;
|
|
16043
|
+
name: string;
|
|
16044
|
+
}[] | undefined;
|
|
15157
16045
|
} | undefined;
|
|
15158
16046
|
quantity: number;
|
|
15159
16047
|
untaxed_amount: number;
|
|
@@ -15171,6 +16059,13 @@ export declare class API {
|
|
|
15171
16059
|
tax_amount: number;
|
|
15172
16060
|
total: number;
|
|
15173
16061
|
}[] | undefined;
|
|
16062
|
+
transactions?: {
|
|
16063
|
+
id: string;
|
|
16064
|
+
payment_method_id?: string | undefined;
|
|
16065
|
+
payment_method_name?: string | undefined;
|
|
16066
|
+
amount: number;
|
|
16067
|
+
status: "failed" | "pending" | "success";
|
|
16068
|
+
}[] | undefined;
|
|
15174
16069
|
}[] | undefined;
|
|
15175
16070
|
currency: string;
|
|
15176
16071
|
note?: string | undefined;
|
|
@@ -15185,6 +16080,10 @@ export declare class API {
|
|
|
15185
16080
|
id: string;
|
|
15186
16081
|
sku?: string | undefined;
|
|
15187
16082
|
name: string;
|
|
16083
|
+
categories?: {
|
|
16084
|
+
id: string;
|
|
16085
|
+
name: string;
|
|
16086
|
+
}[] | undefined;
|
|
15188
16087
|
} | undefined;
|
|
15189
16088
|
quantity: number;
|
|
15190
16089
|
unit_price: number;
|
|
@@ -15320,8 +16219,9 @@ export declare class API {
|
|
|
15320
16219
|
created_on?: string | undefined;
|
|
15321
16220
|
last_updated_on?: string | undefined;
|
|
15322
16221
|
confirmed_on?: string | undefined;
|
|
16222
|
+
delivery_date?: string | undefined;
|
|
15323
16223
|
cancelled_on?: string | undefined;
|
|
15324
|
-
status: "cancelled" | "draft" | "confirmed" | "shipped" | "refunded";
|
|
16224
|
+
status: "cancelled" | "draft" | "cancelled_unpaid" | "confirmed" | "shipped" | "refunded";
|
|
15325
16225
|
discount_amount: number;
|
|
15326
16226
|
untaxed_amount_without_fees: number;
|
|
15327
16227
|
tax_amount_without_fees: number;
|
|
@@ -15345,6 +16245,10 @@ export declare class API {
|
|
|
15345
16245
|
id: string;
|
|
15346
16246
|
sku?: string | undefined;
|
|
15347
16247
|
name: string;
|
|
16248
|
+
categories?: {
|
|
16249
|
+
id: string;
|
|
16250
|
+
name: string;
|
|
16251
|
+
}[] | undefined;
|
|
15348
16252
|
} | undefined;
|
|
15349
16253
|
quantity: number;
|
|
15350
16254
|
untaxed_amount: number;
|
|
@@ -15362,6 +16266,13 @@ export declare class API {
|
|
|
15362
16266
|
tax_amount: number;
|
|
15363
16267
|
total: number;
|
|
15364
16268
|
}[] | undefined;
|
|
16269
|
+
transactions?: {
|
|
16270
|
+
id: string;
|
|
16271
|
+
payment_method_id?: string | undefined;
|
|
16272
|
+
payment_method_name?: string | undefined;
|
|
16273
|
+
amount: number;
|
|
16274
|
+
status: "failed" | "pending" | "success";
|
|
16275
|
+
}[] | undefined;
|
|
15365
16276
|
}[] | undefined;
|
|
15366
16277
|
currency: string;
|
|
15367
16278
|
note?: string | undefined;
|
|
@@ -15376,6 +16287,10 @@ export declare class API {
|
|
|
15376
16287
|
id: string;
|
|
15377
16288
|
sku?: string | undefined;
|
|
15378
16289
|
name: string;
|
|
16290
|
+
categories?: {
|
|
16291
|
+
id: string;
|
|
16292
|
+
name: string;
|
|
16293
|
+
}[] | undefined;
|
|
15379
16294
|
} | undefined;
|
|
15380
16295
|
quantity: number;
|
|
15381
16296
|
unit_price: number;
|
|
@@ -15470,8 +16385,9 @@ export declare class API {
|
|
|
15470
16385
|
created_on?: string | undefined;
|
|
15471
16386
|
last_updated_on?: string | undefined;
|
|
15472
16387
|
confirmed_on?: string | undefined;
|
|
16388
|
+
delivery_date?: string | undefined;
|
|
15473
16389
|
cancelled_on?: string | undefined;
|
|
15474
|
-
status: "cancelled" | "draft" | "confirmed" | "shipped" | "refunded";
|
|
16390
|
+
status: "cancelled" | "draft" | "cancelled_unpaid" | "confirmed" | "shipped" | "refunded";
|
|
15475
16391
|
discount_amount: number;
|
|
15476
16392
|
untaxed_amount_without_fees: number;
|
|
15477
16393
|
tax_amount_without_fees: number;
|
|
@@ -15495,6 +16411,10 @@ export declare class API {
|
|
|
15495
16411
|
id: string;
|
|
15496
16412
|
sku?: string | undefined;
|
|
15497
16413
|
name: string;
|
|
16414
|
+
categories?: {
|
|
16415
|
+
id: string;
|
|
16416
|
+
name: string;
|
|
16417
|
+
}[] | undefined;
|
|
15498
16418
|
} | undefined;
|
|
15499
16419
|
quantity: number;
|
|
15500
16420
|
untaxed_amount: number;
|
|
@@ -15512,6 +16432,13 @@ export declare class API {
|
|
|
15512
16432
|
tax_amount: number;
|
|
15513
16433
|
total: number;
|
|
15514
16434
|
}[] | undefined;
|
|
16435
|
+
transactions?: {
|
|
16436
|
+
id: string;
|
|
16437
|
+
payment_method_id?: string | undefined;
|
|
16438
|
+
payment_method_name?: string | undefined;
|
|
16439
|
+
amount: number;
|
|
16440
|
+
status: "failed" | "pending" | "success";
|
|
16441
|
+
}[] | undefined;
|
|
15515
16442
|
}[] | undefined;
|
|
15516
16443
|
currency: string;
|
|
15517
16444
|
note?: string | undefined;
|
|
@@ -15526,6 +16453,10 @@ export declare class API {
|
|
|
15526
16453
|
id: string;
|
|
15527
16454
|
sku?: string | undefined;
|
|
15528
16455
|
name: string;
|
|
16456
|
+
categories?: {
|
|
16457
|
+
id: string;
|
|
16458
|
+
name: string;
|
|
16459
|
+
}[] | undefined;
|
|
15529
16460
|
} | undefined;
|
|
15530
16461
|
quantity: number;
|
|
15531
16462
|
unit_price: number;
|
|
@@ -15574,7 +16505,7 @@ export declare class API {
|
|
|
15574
16505
|
name?: string | undefined;
|
|
15575
16506
|
}[] | undefined;
|
|
15576
16507
|
}>;
|
|
15577
|
-
getPaymentMethods(params
|
|
16508
|
+
getPaymentMethods(params?: {} | undefined): import("../types/api").RequestData<{
|
|
15578
16509
|
id: string;
|
|
15579
16510
|
source_ref: {
|
|
15580
16511
|
id?: string | undefined;
|
|
@@ -15583,7 +16514,9 @@ export declare class API {
|
|
|
15583
16514
|
name: string;
|
|
15584
16515
|
active: boolean;
|
|
15585
16516
|
}[]>;
|
|
15586
|
-
getProductCategories(params
|
|
16517
|
+
getProductCategories(params?: {
|
|
16518
|
+
only_parents?: "true" | "false" | undefined;
|
|
16519
|
+
} | undefined): import("../types/api").RequestData<{
|
|
15587
16520
|
id: string;
|
|
15588
16521
|
source_ref: {
|
|
15589
16522
|
id?: string | undefined;
|
|
@@ -15592,7 +16525,7 @@ export declare class API {
|
|
|
15592
16525
|
name: string;
|
|
15593
16526
|
parent_id?: string | undefined;
|
|
15594
16527
|
}[]>;
|
|
15595
|
-
getTaxes(params
|
|
16528
|
+
getTaxes(params?: {} | undefined): import("../types/api").RequestData<{
|
|
15596
16529
|
id: string;
|
|
15597
16530
|
source_ref: {
|
|
15598
16531
|
id?: string | undefined;
|
|
@@ -15602,7 +16535,7 @@ export declare class API {
|
|
|
15602
16535
|
rate: number;
|
|
15603
16536
|
country?: string | undefined;
|
|
15604
16537
|
}[]>;
|
|
15605
|
-
getCountries(params
|
|
16538
|
+
getCountries(params?: {} | undefined): import("../types/api").RequestData<{
|
|
15606
16539
|
code: string;
|
|
15607
16540
|
name: string;
|
|
15608
16541
|
}[]>;
|
|
@@ -15697,6 +16630,8 @@ export declare class API {
|
|
|
15697
16630
|
}[]>;
|
|
15698
16631
|
deleteDataStoreData: (dataStoreId: string, dataStoreDataId: string) => Promise<import("../types/sync").SimpleResponseModel>;
|
|
15699
16632
|
logData: (logs: import("../types/consumers").ConsumerLog[]) => Promise<import("../types/sync").SimpleResponseModel>;
|
|
16633
|
+
setConnectionId: (connectionId: string) => Promise<void>;
|
|
16634
|
+
setIntegrationId: (integrationId: string) => Promise<void>;
|
|
15700
16635
|
}>;
|
|
15701
16636
|
deleteConsumerById: (consumerId: string) => Promise<{
|
|
15702
16637
|
content: never;
|
|
@@ -15710,7 +16645,7 @@ export declare class API {
|
|
|
15710
16645
|
integrationid: number;
|
|
15711
16646
|
name: string;
|
|
15712
16647
|
status: "active" | "inactive";
|
|
15713
|
-
api: "Point of Sale" | "eCommerce" | "Accounting" | "Invoicing" | "Communication" | "Banking" | "Custom" | "Payment";
|
|
16648
|
+
api: "Point of Sale" | "eCommerce" | "Accounting" | "Invoicing" | "Communication" | "Banking" | "Custom" | "Payment" | "Property Management System";
|
|
15714
16649
|
logo_url: string;
|
|
15715
16650
|
icon_url: string;
|
|
15716
16651
|
credentials?: {
|