@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
|
@@ -101,6 +101,26 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
101
101
|
total_discount?: number | undefined;
|
|
102
102
|
total_refund?: number | undefined;
|
|
103
103
|
total_tip?: number | undefined;
|
|
104
|
+
currency?: string | undefined;
|
|
105
|
+
country?: string | undefined;
|
|
106
|
+
loyalty?: number | undefined;
|
|
107
|
+
customer_id?: string | undefined;
|
|
108
|
+
location_id?: string | undefined;
|
|
109
|
+
taxes?: {
|
|
110
|
+
tax_rate: number;
|
|
111
|
+
tax_amount: number;
|
|
112
|
+
total: number;
|
|
113
|
+
}[] | undefined;
|
|
114
|
+
payments: {
|
|
115
|
+
id?: string | undefined;
|
|
116
|
+
payment_method_id?: string | undefined;
|
|
117
|
+
payment_method_name?: string | undefined;
|
|
118
|
+
total: number;
|
|
119
|
+
tip?: number | undefined;
|
|
120
|
+
status?: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised" | undefined;
|
|
121
|
+
currency?: string | undefined;
|
|
122
|
+
date?: string | undefined;
|
|
123
|
+
}[];
|
|
104
124
|
items: {
|
|
105
125
|
id: string;
|
|
106
126
|
quantity: number;
|
|
@@ -116,28 +136,12 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
116
136
|
product_id?: string | undefined;
|
|
117
137
|
accounting_category_id?: string | undefined;
|
|
118
138
|
}[];
|
|
119
|
-
payments: {
|
|
120
|
-
id?: string | undefined;
|
|
121
|
-
payment_method_id?: string | undefined;
|
|
122
|
-
payment_method_name?: string | undefined;
|
|
123
|
-
total: number;
|
|
124
|
-
tip?: number | undefined;
|
|
125
|
-
status?: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised" | undefined;
|
|
126
|
-
currency?: string | undefined;
|
|
127
|
-
date?: string | undefined;
|
|
128
|
-
}[];
|
|
129
|
-
currency?: string | undefined;
|
|
130
|
-
country?: string | undefined;
|
|
131
|
-
loyalty?: number | undefined;
|
|
132
|
-
customer_id?: string | undefined;
|
|
133
|
-
location_id?: string | undefined;
|
|
134
|
-
taxes?: {
|
|
135
|
-
tax_rate: number;
|
|
136
|
-
tax_amount: number;
|
|
137
|
-
total: number;
|
|
138
|
-
}[] | undefined;
|
|
139
139
|
}[]>;
|
|
140
|
-
getCustomers(params
|
|
140
|
+
getCustomers(params?: {
|
|
141
|
+
search?: string | undefined;
|
|
142
|
+
email?: string | undefined;
|
|
143
|
+
phone?: string | undefined;
|
|
144
|
+
} | undefined): import("../types/api").RequestData<{
|
|
141
145
|
id: string;
|
|
142
146
|
first_name?: string | undefined;
|
|
143
147
|
last_name?: string | undefined;
|
|
@@ -170,6 +174,26 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
170
174
|
total_discount?: number | undefined;
|
|
171
175
|
total_refund?: number | undefined;
|
|
172
176
|
total_tip?: number | undefined;
|
|
177
|
+
currency?: string | undefined;
|
|
178
|
+
country?: string | undefined;
|
|
179
|
+
loyalty?: number | undefined;
|
|
180
|
+
customer_id?: string | undefined;
|
|
181
|
+
location_id?: string | undefined;
|
|
182
|
+
taxes?: {
|
|
183
|
+
tax_rate: number;
|
|
184
|
+
tax_amount: number;
|
|
185
|
+
total: number;
|
|
186
|
+
}[] | undefined;
|
|
187
|
+
payments: {
|
|
188
|
+
id?: string | undefined;
|
|
189
|
+
payment_method_id?: string | undefined;
|
|
190
|
+
payment_method_name?: string | undefined;
|
|
191
|
+
total: number;
|
|
192
|
+
tip?: number | undefined;
|
|
193
|
+
status?: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised" | undefined;
|
|
194
|
+
currency?: string | undefined;
|
|
195
|
+
date?: string | undefined;
|
|
196
|
+
}[];
|
|
173
197
|
items: {
|
|
174
198
|
id: string;
|
|
175
199
|
quantity: number;
|
|
@@ -185,26 +209,6 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
185
209
|
product_id?: string | undefined;
|
|
186
210
|
accounting_category_id?: string | undefined;
|
|
187
211
|
}[];
|
|
188
|
-
payments: {
|
|
189
|
-
id?: string | undefined;
|
|
190
|
-
payment_method_id?: string | undefined;
|
|
191
|
-
payment_method_name?: string | undefined;
|
|
192
|
-
total: number;
|
|
193
|
-
tip?: number | undefined;
|
|
194
|
-
status?: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised" | undefined;
|
|
195
|
-
currency?: string | undefined;
|
|
196
|
-
date?: string | undefined;
|
|
197
|
-
}[];
|
|
198
|
-
currency?: string | undefined;
|
|
199
|
-
country?: string | undefined;
|
|
200
|
-
loyalty?: number | undefined;
|
|
201
|
-
customer_id?: string | undefined;
|
|
202
|
-
location_id?: string | undefined;
|
|
203
|
-
taxes?: {
|
|
204
|
-
tax_rate: number;
|
|
205
|
-
tax_amount: number;
|
|
206
|
-
total: number;
|
|
207
|
-
}[] | undefined;
|
|
208
212
|
}>;
|
|
209
213
|
getCustomer(customerId: string): import("../types/api").RequestData<{
|
|
210
214
|
id: string;
|
|
@@ -262,12 +266,17 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
262
266
|
loyalty?: number | undefined;
|
|
263
267
|
birthdate?: string | undefined;
|
|
264
268
|
}>;
|
|
265
|
-
getPaymentMethods(params
|
|
269
|
+
getPaymentMethods(params?: {
|
|
270
|
+
location_id?: string | undefined;
|
|
271
|
+
} | undefined): import("../types/api").RequestData<{
|
|
266
272
|
id: string;
|
|
267
273
|
name: string;
|
|
268
274
|
extra?: string | undefined;
|
|
269
275
|
}[]>;
|
|
270
|
-
getProductCategories(params
|
|
276
|
+
getProductCategories(params?: {
|
|
277
|
+
location_id?: string | undefined;
|
|
278
|
+
only_parents?: "true" | "false" | undefined;
|
|
279
|
+
} | undefined): import("../types/api").RequestData<{
|
|
271
280
|
id: string;
|
|
272
281
|
source_ref: {
|
|
273
282
|
id?: string | undefined;
|
|
@@ -276,7 +285,9 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
276
285
|
name: string;
|
|
277
286
|
parent_id?: string | undefined;
|
|
278
287
|
}[]>;
|
|
279
|
-
getProducts(params
|
|
288
|
+
getProducts(params?: {
|
|
289
|
+
location_id?: string | undefined;
|
|
290
|
+
} | undefined): import("../types/api").RequestData<{
|
|
280
291
|
id: string;
|
|
281
292
|
categories?: string[] | undefined;
|
|
282
293
|
name: string;
|
|
@@ -300,7 +311,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
300
311
|
total: number;
|
|
301
312
|
}[] | undefined;
|
|
302
313
|
}>;
|
|
303
|
-
getClosure(date: string, params
|
|
314
|
+
getClosure(date: string, params?: {
|
|
304
315
|
location_id?: string | undefined;
|
|
305
316
|
} | undefined): import("../types/api").RequestData<{
|
|
306
317
|
date: string;
|
|
@@ -333,6 +344,26 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
333
344
|
total_discount?: number | undefined;
|
|
334
345
|
total_refund?: number | undefined;
|
|
335
346
|
total_tip?: number | undefined;
|
|
347
|
+
currency?: string | undefined;
|
|
348
|
+
country?: string | undefined;
|
|
349
|
+
loyalty?: number | undefined;
|
|
350
|
+
customer_id?: string | undefined;
|
|
351
|
+
location_id?: string | undefined;
|
|
352
|
+
taxes?: {
|
|
353
|
+
tax_rate: number;
|
|
354
|
+
tax_amount: number;
|
|
355
|
+
total: number;
|
|
356
|
+
}[] | undefined;
|
|
357
|
+
payments: {
|
|
358
|
+
id?: string | undefined;
|
|
359
|
+
payment_method_id?: string | undefined;
|
|
360
|
+
payment_method_name?: string | undefined;
|
|
361
|
+
total: number;
|
|
362
|
+
tip?: number | undefined;
|
|
363
|
+
status?: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised" | undefined;
|
|
364
|
+
currency?: string | undefined;
|
|
365
|
+
date?: string | undefined;
|
|
366
|
+
}[];
|
|
336
367
|
items: {
|
|
337
368
|
id: string;
|
|
338
369
|
quantity: number;
|
|
@@ -348,16 +379,53 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
348
379
|
product_id?: string | undefined;
|
|
349
380
|
accounting_category_id?: string | undefined;
|
|
350
381
|
}[];
|
|
351
|
-
|
|
382
|
+
}>;
|
|
383
|
+
getAccountingCategories(params?: {} | undefined): import("../types/api").RequestData<{
|
|
384
|
+
id: string;
|
|
385
|
+
name: string;
|
|
386
|
+
id_parent?: string | undefined;
|
|
387
|
+
code?: string | undefined;
|
|
388
|
+
ledger_account_code?: string | undefined;
|
|
389
|
+
posting_account_code?: string | undefined;
|
|
390
|
+
}[]>;
|
|
391
|
+
}>;
|
|
392
|
+
pms: import("../types/api").ApiFor<{
|
|
393
|
+
getLocations(): import("../types/api").RequestData<{
|
|
394
|
+
id: string;
|
|
395
|
+
name: string;
|
|
396
|
+
timezone?: string | undefined;
|
|
397
|
+
address?: {
|
|
398
|
+
address_type?: string | undefined;
|
|
399
|
+
name?: string | undefined;
|
|
400
|
+
street?: string | undefined;
|
|
401
|
+
number?: string | undefined;
|
|
402
|
+
box?: string | undefined;
|
|
403
|
+
city?: string | undefined;
|
|
404
|
+
postal_code?: string | undefined;
|
|
405
|
+
country?: string | undefined;
|
|
406
|
+
} | undefined;
|
|
407
|
+
}[]>;
|
|
408
|
+
getOrders(params: {
|
|
409
|
+
date_from: string;
|
|
410
|
+
date_to: string;
|
|
411
|
+
location_id?: string | undefined;
|
|
412
|
+
state?: "closed" | "consumed" | undefined;
|
|
413
|
+
}): import("../types/api").RequestData<{
|
|
414
|
+
id: string;
|
|
415
|
+
source_ref: {
|
|
352
416
|
id?: string | undefined;
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
417
|
+
model?: string | undefined;
|
|
418
|
+
};
|
|
419
|
+
order_number?: string | undefined;
|
|
420
|
+
creation_date: string;
|
|
421
|
+
closing_date?: string | undefined;
|
|
422
|
+
service_date?: string | undefined;
|
|
423
|
+
device_id?: string | undefined;
|
|
424
|
+
total: number;
|
|
425
|
+
tax_amount: number;
|
|
426
|
+
total_discount?: number | undefined;
|
|
427
|
+
total_refund?: number | undefined;
|
|
428
|
+
total_tip?: number | undefined;
|
|
361
429
|
currency?: string | undefined;
|
|
362
430
|
country?: string | undefined;
|
|
363
431
|
loyalty?: number | undefined;
|
|
@@ -368,9 +436,68 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
368
436
|
tax_amount: number;
|
|
369
437
|
total: number;
|
|
370
438
|
}[] | undefined;
|
|
439
|
+
items: {
|
|
440
|
+
id: string;
|
|
441
|
+
source_ref: {
|
|
442
|
+
id?: string | undefined;
|
|
443
|
+
model?: string | undefined;
|
|
444
|
+
};
|
|
445
|
+
quantity: number;
|
|
446
|
+
unit_price: number;
|
|
447
|
+
total: number;
|
|
448
|
+
tax_amount: number;
|
|
449
|
+
tax_rate?: number | undefined;
|
|
450
|
+
description?: string | undefined;
|
|
451
|
+
discounts?: {
|
|
452
|
+
name?: string | undefined;
|
|
453
|
+
total: number;
|
|
454
|
+
}[] | undefined;
|
|
455
|
+
product_id?: string | undefined;
|
|
456
|
+
accounting_category_id?: string | undefined;
|
|
457
|
+
}[];
|
|
458
|
+
service_id?: string | undefined;
|
|
459
|
+
}[]>;
|
|
460
|
+
getPaymentMethods(params?: {
|
|
461
|
+
location_id?: string | undefined;
|
|
462
|
+
} | undefined): import("../types/api").RequestData<{
|
|
463
|
+
id: string;
|
|
464
|
+
source_ref: {
|
|
465
|
+
id?: string | undefined;
|
|
466
|
+
model?: string | undefined;
|
|
467
|
+
};
|
|
468
|
+
name: string;
|
|
469
|
+
extra?: string | undefined;
|
|
470
|
+
ledger_account_code?: string | undefined;
|
|
471
|
+
}[]>;
|
|
472
|
+
getClosure(date: string, params?: {
|
|
473
|
+
location_id?: string | undefined;
|
|
474
|
+
} | undefined): import("../types/api").RequestData<{
|
|
475
|
+
date: string;
|
|
476
|
+
status: "open" | "closed";
|
|
371
477
|
}>;
|
|
372
|
-
|
|
478
|
+
getPayments(params: {
|
|
479
|
+
date_from: string;
|
|
480
|
+
date_to: string;
|
|
481
|
+
}): import("../types/api").RequestData<{
|
|
482
|
+
id?: string | undefined;
|
|
483
|
+
source_ref: {
|
|
484
|
+
id?: string | undefined;
|
|
485
|
+
model?: string | undefined;
|
|
486
|
+
};
|
|
487
|
+
payment_method_id?: string | undefined;
|
|
488
|
+
payment_method_name?: string | undefined;
|
|
489
|
+
total: number;
|
|
490
|
+
tip?: number | undefined;
|
|
491
|
+
status?: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised" | undefined;
|
|
492
|
+
currency?: string | undefined;
|
|
493
|
+
date?: string | undefined;
|
|
494
|
+
}[]>;
|
|
495
|
+
getAccountingCategories(params?: {} | undefined): import("../types/api").RequestData<{
|
|
373
496
|
id: string;
|
|
497
|
+
source_ref: {
|
|
498
|
+
id?: string | undefined;
|
|
499
|
+
model?: string | undefined;
|
|
500
|
+
};
|
|
374
501
|
name: string;
|
|
375
502
|
id_parent?: string | undefined;
|
|
376
503
|
code?: string | undefined;
|
|
@@ -379,19 +506,15 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
379
506
|
}[]>;
|
|
380
507
|
}>;
|
|
381
508
|
accounting: import("../types/api").ApiFor<{
|
|
382
|
-
getAnalyticPlans(params
|
|
509
|
+
getAnalyticPlans(params?: {
|
|
383
510
|
folder_id?: string | undefined;
|
|
384
|
-
page?: number | undefined;
|
|
385
|
-
size?: number | undefined;
|
|
386
511
|
} | undefined): import("../types/api").RequestData<{
|
|
387
512
|
id: string;
|
|
388
513
|
name: string;
|
|
389
514
|
active?: boolean | undefined;
|
|
390
515
|
}[]>;
|
|
391
|
-
getClients(params
|
|
516
|
+
getClients(params?: {
|
|
392
517
|
folder_id?: string | undefined;
|
|
393
|
-
page?: number | undefined;
|
|
394
|
-
size?: number | undefined;
|
|
395
518
|
} | undefined): import("../types/api").RequestData<{
|
|
396
519
|
external_reference?: string | undefined;
|
|
397
520
|
first_name?: string | undefined;
|
|
@@ -461,7 +584,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
461
584
|
country: string;
|
|
462
585
|
}[];
|
|
463
586
|
account_number?: string | undefined;
|
|
464
|
-
}, params
|
|
587
|
+
}, params?: {
|
|
465
588
|
force_merge?: string | undefined;
|
|
466
589
|
folder_id?: string | undefined;
|
|
467
590
|
} | undefined): import("../types/api").RequestData<{
|
|
@@ -500,7 +623,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
500
623
|
company_number?: string | undefined;
|
|
501
624
|
id?: string | undefined;
|
|
502
625
|
}>;
|
|
503
|
-
getClient(clientId: string, params
|
|
626
|
+
getClient(clientId: string, params?: {
|
|
504
627
|
folder_id?: string | undefined;
|
|
505
628
|
} | undefined): import("../types/api").RequestData<{
|
|
506
629
|
external_reference?: string | undefined;
|
|
@@ -570,7 +693,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
570
693
|
postal_code?: string | undefined;
|
|
571
694
|
country?: string | undefined;
|
|
572
695
|
}[] | undefined;
|
|
573
|
-
}, params
|
|
696
|
+
}, params?: {
|
|
574
697
|
folder_id?: string | undefined;
|
|
575
698
|
} | undefined): import("../types/api").RequestData<{
|
|
576
699
|
external_reference?: string | undefined;
|
|
@@ -608,10 +731,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
608
731
|
company_number?: string | undefined;
|
|
609
732
|
id?: string | undefined;
|
|
610
733
|
}>;
|
|
611
|
-
getSuppliers(params
|
|
734
|
+
getSuppliers(params?: {
|
|
612
735
|
folder_id?: string | undefined;
|
|
613
|
-
page?: number | undefined;
|
|
614
|
-
size?: number | undefined;
|
|
615
736
|
} | undefined): import("../types/api").RequestData<{
|
|
616
737
|
external_reference?: string | undefined;
|
|
617
738
|
first_name?: string | undefined;
|
|
@@ -681,7 +802,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
681
802
|
country: string;
|
|
682
803
|
}[];
|
|
683
804
|
account_number?: string | undefined;
|
|
684
|
-
}, params
|
|
805
|
+
}, params?: {
|
|
685
806
|
force_merge?: string | undefined;
|
|
686
807
|
folder_id?: string | undefined;
|
|
687
808
|
} | undefined): import("../types/api").RequestData<{
|
|
@@ -720,7 +841,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
720
841
|
company_number?: string | undefined;
|
|
721
842
|
id?: string | undefined;
|
|
722
843
|
}>;
|
|
723
|
-
getSupplier(supplierId: string, params
|
|
844
|
+
getSupplier(supplierId: string, params?: {
|
|
724
845
|
folder_id?: string | undefined;
|
|
725
846
|
} | undefined): import("../types/api").RequestData<{
|
|
726
847
|
external_reference?: string | undefined;
|
|
@@ -790,7 +911,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
790
911
|
postal_code?: string | undefined;
|
|
791
912
|
country?: string | undefined;
|
|
792
913
|
}[] | undefined;
|
|
793
|
-
}, params
|
|
914
|
+
}, params?: {
|
|
794
915
|
folder_id?: string | undefined;
|
|
795
916
|
} | undefined): import("../types/api").RequestData<{
|
|
796
917
|
external_reference?: string | undefined;
|
|
@@ -861,6 +982,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
861
982
|
iban: string;
|
|
862
983
|
};
|
|
863
984
|
} | undefined;
|
|
985
|
+
shipping_country?: string | undefined;
|
|
864
986
|
lines: {
|
|
865
987
|
line_number?: number | undefined;
|
|
866
988
|
description: string;
|
|
@@ -875,7 +997,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
875
997
|
tax_code: string;
|
|
876
998
|
analytic_account?: string | undefined;
|
|
877
999
|
}[];
|
|
878
|
-
}, params
|
|
1000
|
+
}, params?: {
|
|
879
1001
|
force_financial_period?: string | undefined;
|
|
880
1002
|
regroup_lines?: "true" | "false" | undefined;
|
|
881
1003
|
folder_id?: string | undefined;
|
|
@@ -957,6 +1079,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
957
1079
|
iban: string;
|
|
958
1080
|
};
|
|
959
1081
|
} | undefined;
|
|
1082
|
+
shipping_country?: string | undefined;
|
|
960
1083
|
lines: {
|
|
961
1084
|
line_number?: number | undefined;
|
|
962
1085
|
description: string;
|
|
@@ -977,7 +1100,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
977
1100
|
}[];
|
|
978
1101
|
}[] | undefined;
|
|
979
1102
|
}[];
|
|
980
|
-
}, params
|
|
1103
|
+
}, params?: {
|
|
981
1104
|
force_financial_period?: string | undefined;
|
|
982
1105
|
regroup_lines?: "true" | "false" | undefined;
|
|
983
1106
|
folder_id?: string | undefined;
|
|
@@ -1032,7 +1155,14 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
1032
1155
|
}[] | undefined;
|
|
1033
1156
|
}[];
|
|
1034
1157
|
}>;
|
|
1035
|
-
getInvoicesByType(invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund", params
|
|
1158
|
+
getInvoicesByType(invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund", params?: {
|
|
1159
|
+
date_from?: string | undefined;
|
|
1160
|
+
date_to?: string | undefined;
|
|
1161
|
+
folder_id?: string | undefined;
|
|
1162
|
+
journal_ids?: string | undefined;
|
|
1163
|
+
include_payments?: "true" | "false" | undefined;
|
|
1164
|
+
payment_status?: "all" | "paid" | "unpaid" | undefined;
|
|
1165
|
+
} | undefined): import("../types/api").RequestData<{
|
|
1036
1166
|
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
1037
1167
|
invoice_number?: string | undefined;
|
|
1038
1168
|
currency: string;
|
|
@@ -1077,7 +1207,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
1077
1207
|
analytic_account?: string | undefined;
|
|
1078
1208
|
}[];
|
|
1079
1209
|
}[]>;
|
|
1080
|
-
getInvoice(invoiceId: string, params
|
|
1210
|
+
getInvoice(invoiceId: string, params?: {
|
|
1081
1211
|
include_payments?: "true" | "false" | undefined;
|
|
1082
1212
|
folder_id?: string | undefined;
|
|
1083
1213
|
} | undefined): import("../types/api").RequestData<{
|
|
@@ -1125,7 +1255,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
1125
1255
|
analytic_account?: string | undefined;
|
|
1126
1256
|
}[];
|
|
1127
1257
|
}>;
|
|
1128
|
-
getInvoiceWithMultiplePlans(invoiceId: string, params
|
|
1258
|
+
getInvoiceWithMultiplePlans(invoiceId: string, params?: {
|
|
1129
1259
|
include_payments?: "true" | "false" | undefined;
|
|
1130
1260
|
folder_id?: string | undefined;
|
|
1131
1261
|
} | undefined): import("../types/api").RequestData<{
|
|
@@ -1179,7 +1309,14 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
1179
1309
|
}[] | undefined;
|
|
1180
1310
|
}[];
|
|
1181
1311
|
}>;
|
|
1182
|
-
getInvoicesByTypeWithMultiplePlans(invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund", params
|
|
1312
|
+
getInvoicesByTypeWithMultiplePlans(invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund", params?: {
|
|
1313
|
+
date_from?: string | undefined;
|
|
1314
|
+
date_to?: string | undefined;
|
|
1315
|
+
folder_id?: string | undefined;
|
|
1316
|
+
journal_ids?: string | undefined;
|
|
1317
|
+
include_payments?: "true" | "false" | undefined;
|
|
1318
|
+
payment_status?: "all" | "paid" | "unpaid" | undefined;
|
|
1319
|
+
} | undefined): import("../types/api").RequestData<{
|
|
1183
1320
|
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
1184
1321
|
invoice_number?: string | undefined;
|
|
1185
1322
|
currency: string;
|
|
@@ -1235,7 +1372,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
1235
1372
|
code: string;
|
|
1236
1373
|
name: string;
|
|
1237
1374
|
currency: string;
|
|
1238
|
-
}, params
|
|
1375
|
+
}, params?: {
|
|
1239
1376
|
folder_id?: string | undefined;
|
|
1240
1377
|
} | undefined): import("../types/api").RequestData<{
|
|
1241
1378
|
id: string;
|
|
@@ -1247,10 +1384,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
1247
1384
|
credit?: number | undefined;
|
|
1248
1385
|
debit?: number | undefined;
|
|
1249
1386
|
}>;
|
|
1250
|
-
getAnalyticAccounts(params
|
|
1387
|
+
getAnalyticAccounts(params?: {
|
|
1251
1388
|
folder_id?: string | undefined;
|
|
1252
|
-
page?: number | undefined;
|
|
1253
|
-
size?: number | undefined;
|
|
1254
1389
|
} | undefined): import("../types/api").RequestData<{
|
|
1255
1390
|
id: string;
|
|
1256
1391
|
active: boolean;
|
|
@@ -1266,7 +1401,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
1266
1401
|
code: string;
|
|
1267
1402
|
name: string;
|
|
1268
1403
|
currency: string;
|
|
1269
|
-
}, params
|
|
1404
|
+
}, params?: {
|
|
1270
1405
|
folder_id?: string | undefined;
|
|
1271
1406
|
} | undefined): import("../types/api").RequestData<{
|
|
1272
1407
|
id: string;
|
|
@@ -1279,7 +1414,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
1279
1414
|
debit?: number | undefined;
|
|
1280
1415
|
analytic_plan: string;
|
|
1281
1416
|
}>;
|
|
1282
|
-
getAnalyticAccount(analytic_account_id: string, params
|
|
1417
|
+
getAnalyticAccount(analytic_account_id: string, params?: {
|
|
1283
1418
|
folder_id?: string | undefined;
|
|
1284
1419
|
} | undefined): import("../types/api").RequestData<{
|
|
1285
1420
|
id: string;
|
|
@@ -1296,7 +1431,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
1296
1431
|
code?: string | undefined;
|
|
1297
1432
|
name?: string | undefined;
|
|
1298
1433
|
currency?: string | undefined;
|
|
1299
|
-
}, params
|
|
1434
|
+
}, params?: {
|
|
1300
1435
|
folder_id?: string | undefined;
|
|
1301
1436
|
} | undefined): import("../types/api").RequestData<{
|
|
1302
1437
|
id: string;
|
|
@@ -1308,7 +1443,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
1308
1443
|
credit?: number | undefined;
|
|
1309
1444
|
debit?: number | undefined;
|
|
1310
1445
|
}>;
|
|
1311
|
-
getAnalyticAccountWithMultiplePlans(analytic_account_id: string, analytic_plan: string, params
|
|
1446
|
+
getAnalyticAccountWithMultiplePlans(analytic_account_id: string, analytic_plan: string, params?: {
|
|
1312
1447
|
folder_id?: string | undefined;
|
|
1313
1448
|
} | undefined): import("../types/api").RequestData<{
|
|
1314
1449
|
id: string;
|
|
@@ -1326,7 +1461,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
1326
1461
|
code?: string | undefined;
|
|
1327
1462
|
name?: string | undefined;
|
|
1328
1463
|
currency?: string | undefined;
|
|
1329
|
-
}, params
|
|
1464
|
+
}, params?: {
|
|
1330
1465
|
folder_id?: string | undefined;
|
|
1331
1466
|
} | undefined): import("../types/api").RequestData<{
|
|
1332
1467
|
id: string;
|
|
@@ -1339,10 +1474,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
1339
1474
|
debit?: number | undefined;
|
|
1340
1475
|
analytic_plan: string;
|
|
1341
1476
|
}>;
|
|
1342
|
-
getAnalyticAccountsWithMultiplePlans(params
|
|
1477
|
+
getAnalyticAccountsWithMultiplePlans(params?: {
|
|
1343
1478
|
folder_id?: string | undefined;
|
|
1344
|
-
page?: number | undefined;
|
|
1345
|
-
size?: number | undefined;
|
|
1346
1479
|
} | undefined): import("../types/api").RequestData<{
|
|
1347
1480
|
id: string;
|
|
1348
1481
|
active: boolean;
|
|
@@ -1423,7 +1556,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
1423
1556
|
}[] | undefined;
|
|
1424
1557
|
}[] | undefined;
|
|
1425
1558
|
}[]>;
|
|
1426
|
-
getPaymentsByInvoiceId(invoice_id: string, params
|
|
1559
|
+
getPaymentsByInvoiceId(invoice_id: string, params?: {
|
|
1427
1560
|
folder_id?: string | undefined;
|
|
1428
1561
|
page?: number | undefined;
|
|
1429
1562
|
size?: number | undefined;
|
|
@@ -1441,20 +1574,16 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
1441
1574
|
communication?: string | undefined;
|
|
1442
1575
|
matching_number?: string | undefined;
|
|
1443
1576
|
}[]>;
|
|
1444
|
-
getJournals(params
|
|
1577
|
+
getJournals(params?: {
|
|
1445
1578
|
folder_id?: string | undefined;
|
|
1446
|
-
page?: number | undefined;
|
|
1447
|
-
size?: number | undefined;
|
|
1448
1579
|
} | undefined): import("../types/api").RequestData<{
|
|
1449
1580
|
id: string;
|
|
1450
1581
|
code?: string | undefined;
|
|
1451
1582
|
name: string;
|
|
1452
1583
|
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
1453
1584
|
}[]>;
|
|
1454
|
-
getVatCodes(params
|
|
1585
|
+
getVatCodes(params?: {
|
|
1455
1586
|
folder_id?: string | undefined;
|
|
1456
|
-
page?: number | undefined;
|
|
1457
|
-
size?: number | undefined;
|
|
1458
1587
|
} | undefined): import("../types/api").RequestData<{
|
|
1459
1588
|
id: string;
|
|
1460
1589
|
code?: string | undefined;
|
|
@@ -1465,7 +1594,12 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
1465
1594
|
deductible_account?: string | undefined;
|
|
1466
1595
|
payable_account?: string | undefined;
|
|
1467
1596
|
}[]>;
|
|
1468
|
-
getMiscOperations(params
|
|
1597
|
+
getMiscOperations(params?: {
|
|
1598
|
+
date_from?: string | undefined;
|
|
1599
|
+
date_to?: string | undefined;
|
|
1600
|
+
folder_id?: string | undefined;
|
|
1601
|
+
journal_ids?: string | undefined;
|
|
1602
|
+
} | undefined): import("../types/api").RequestData<{
|
|
1469
1603
|
operation_number?: string | undefined;
|
|
1470
1604
|
currency: string;
|
|
1471
1605
|
currency_exchange_rate?: number | undefined;
|
|
@@ -1499,7 +1633,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
1499
1633
|
operation_date: string;
|
|
1500
1634
|
journal_id?: string | undefined;
|
|
1501
1635
|
status?: "draft" | "posted" | undefined;
|
|
1502
|
-
}, params
|
|
1636
|
+
}, params?: {
|
|
1503
1637
|
folder_id?: string | undefined;
|
|
1504
1638
|
} | undefined): import("../types/api").RequestData<{
|
|
1505
1639
|
operation_number?: string | undefined;
|
|
@@ -1519,7 +1653,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
1519
1653
|
status: "cancelled" | "draft" | "posted" | "matched";
|
|
1520
1654
|
id: string;
|
|
1521
1655
|
}>;
|
|
1522
|
-
getMiscOperation(operation_id: string, params
|
|
1656
|
+
getMiscOperation(operation_id: string, params?: {
|
|
1523
1657
|
folder_id?: string | undefined;
|
|
1524
1658
|
} | undefined): import("../types/api").RequestData<{
|
|
1525
1659
|
operation_number?: string | undefined;
|
|
@@ -1541,24 +1675,25 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
1541
1675
|
}>;
|
|
1542
1676
|
attachPDF(invoice_id: string, attachment: {
|
|
1543
1677
|
base64_string: string;
|
|
1544
|
-
}, params
|
|
1678
|
+
}, params?: {
|
|
1545
1679
|
overwrite_existing?: "true" | "false" | undefined;
|
|
1546
1680
|
folder_id?: string | undefined;
|
|
1547
1681
|
} | undefined): import("../types/api").RequestData<{
|
|
1548
1682
|
content: {
|
|
1549
|
-
|
|
1683
|
+
'application/json': unknown;
|
|
1550
1684
|
};
|
|
1551
1685
|
}>;
|
|
1552
1686
|
getAttachments(params: {
|
|
1687
|
+
folder_id?: string | undefined;
|
|
1553
1688
|
type: "invoice" | "entry";
|
|
1554
1689
|
document_id: string;
|
|
1555
|
-
folder_id?: string | undefined;
|
|
1556
|
-
page?: number | undefined;
|
|
1557
|
-
size?: number | undefined;
|
|
1558
1690
|
}): import("../types/api").RequestData<{
|
|
1559
1691
|
base64_string: string;
|
|
1560
1692
|
}[]>;
|
|
1561
|
-
getChartOfAccounts(params
|
|
1693
|
+
getChartOfAccounts(params?: {
|
|
1694
|
+
classes?: string | undefined;
|
|
1695
|
+
folder_id?: string | undefined;
|
|
1696
|
+
} | undefined): import("../types/api").RequestData<{
|
|
1562
1697
|
number: string;
|
|
1563
1698
|
name: string;
|
|
1564
1699
|
active?: boolean | undefined;
|
|
@@ -1568,10 +1703,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
1568
1703
|
accounts: string[];
|
|
1569
1704
|
start?: string | undefined;
|
|
1570
1705
|
end: string;
|
|
1571
|
-
}, params
|
|
1706
|
+
}, params?: {
|
|
1572
1707
|
folder_id?: string | undefined;
|
|
1573
|
-
page?: number | undefined;
|
|
1574
|
-
size?: number | undefined;
|
|
1575
1708
|
} | undefined): import("../types/api").RequestData<{
|
|
1576
1709
|
account_number: string;
|
|
1577
1710
|
account_name?: string | undefined;
|
|
@@ -1579,10 +1712,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
1579
1712
|
credit: number;
|
|
1580
1713
|
balance: number;
|
|
1581
1714
|
}[]>;
|
|
1582
|
-
getEmployees(params
|
|
1715
|
+
getEmployees(params?: {
|
|
1583
1716
|
folder_id?: string | undefined;
|
|
1584
|
-
page?: number | undefined;
|
|
1585
|
-
size?: number | undefined;
|
|
1586
1717
|
} | undefined): import("../types/api").RequestData<{
|
|
1587
1718
|
id: string;
|
|
1588
1719
|
name: string;
|
|
@@ -1598,8 +1729,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
1598
1729
|
}[]>;
|
|
1599
1730
|
getOutstandings(params: {
|
|
1600
1731
|
folder_id?: string | undefined;
|
|
1601
|
-
unposted_allowed: "true" | "false";
|
|
1602
1732
|
type: "supplier" | "client";
|
|
1733
|
+
unposted_allowed: "true" | "false";
|
|
1603
1734
|
}): import("../types/api").RequestData<{
|
|
1604
1735
|
id: string;
|
|
1605
1736
|
number?: string | undefined;
|
|
@@ -1632,7 +1763,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
1632
1763
|
description?: string | undefined;
|
|
1633
1764
|
}[];
|
|
1634
1765
|
pdf?: string | undefined;
|
|
1635
|
-
}, params
|
|
1766
|
+
}, params?: {
|
|
1636
1767
|
financial_counterpart_account?: string | undefined;
|
|
1637
1768
|
folder_id?: string | undefined;
|
|
1638
1769
|
} | undefined): import("../types/api").RequestData<{
|
|
@@ -1666,7 +1797,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
1666
1797
|
description?: string | undefined;
|
|
1667
1798
|
}[];
|
|
1668
1799
|
pdf?: string | undefined;
|
|
1669
|
-
}, params
|
|
1800
|
+
}, params?: {
|
|
1670
1801
|
financial_counterpart_account?: string | undefined;
|
|
1671
1802
|
folder_id?: string | undefined;
|
|
1672
1803
|
} | undefined): import("../types/api").RequestData<{
|
|
@@ -1765,7 +1896,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
1765
1896
|
}[];
|
|
1766
1897
|
pdf?: string | undefined;
|
|
1767
1898
|
posted?: boolean | undefined;
|
|
1768
|
-
}, params
|
|
1899
|
+
}, params?: {
|
|
1769
1900
|
folder_id?: string | undefined;
|
|
1770
1901
|
} | undefined): import("../types/api").RequestData<{
|
|
1771
1902
|
reference?: string | undefined;
|
|
@@ -1800,7 +1931,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
1800
1931
|
matchEntries(body: {
|
|
1801
1932
|
entries: string[];
|
|
1802
1933
|
partner_id: string;
|
|
1803
|
-
}, params
|
|
1934
|
+
}, params?: {
|
|
1804
1935
|
folder_id?: string | undefined;
|
|
1805
1936
|
} | undefined): import("../types/api").RequestData<{
|
|
1806
1937
|
matching_number: string;
|
|
@@ -1810,17 +1941,17 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
1810
1941
|
id: string;
|
|
1811
1942
|
name: string;
|
|
1812
1943
|
selected?: boolean | undefined;
|
|
1944
|
+
vat?: string | undefined;
|
|
1945
|
+
company_number?: string | undefined;
|
|
1813
1946
|
}[]>;
|
|
1814
1947
|
}>;
|
|
1815
1948
|
invoicing: import("../types/api").ApiFor<{
|
|
1816
|
-
getInvoices(params
|
|
1817
|
-
invoice_type?: "all" | "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | undefined;
|
|
1818
|
-
payment_status?: "all" | "paid" | "unpaid" | undefined;
|
|
1949
|
+
getInvoices(params?: {
|
|
1819
1950
|
date_from?: string | undefined;
|
|
1820
1951
|
date_to?: string | undefined;
|
|
1952
|
+
payment_status?: "all" | "paid" | "unpaid" | undefined;
|
|
1953
|
+
invoice_type?: "all" | "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | undefined;
|
|
1821
1954
|
updated_after?: string | undefined;
|
|
1822
|
-
page?: number | undefined;
|
|
1823
|
-
size?: number | undefined;
|
|
1824
1955
|
} | undefined): import("../types/api").RequestData<{
|
|
1825
1956
|
id: string;
|
|
1826
1957
|
source_ref: {
|
|
@@ -1864,7 +1995,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
1864
1995
|
outstanding_amount?: number | undefined;
|
|
1865
1996
|
last_updated_on?: string | undefined;
|
|
1866
1997
|
}[]>;
|
|
1867
|
-
getInvoiceById(invoiceId: string, params
|
|
1998
|
+
getInvoiceById(invoiceId: string, params?: {
|
|
1868
1999
|
include_pdf?: "true" | "false" | undefined;
|
|
1869
2000
|
} | undefined): import("../types/api").RequestData<{
|
|
1870
2001
|
id: string;
|
|
@@ -2126,8 +2257,6 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
2126
2257
|
}>;
|
|
2127
2258
|
getContacts(params?: {
|
|
2128
2259
|
contact_type?: "prospect" | "customer" | "supplier" | "all" | undefined;
|
|
2129
|
-
page?: number | undefined;
|
|
2130
|
-
size?: number | undefined;
|
|
2131
2260
|
} | undefined): import("../types/api").RequestData<{
|
|
2132
2261
|
id: string;
|
|
2133
2262
|
source_ref: {
|
|
@@ -2538,7 +2667,13 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
2538
2667
|
id: string;
|
|
2539
2668
|
name: string;
|
|
2540
2669
|
}[]>;
|
|
2541
|
-
getOrders(params
|
|
2670
|
+
getOrders(params?: {
|
|
2671
|
+
date_from?: string | undefined;
|
|
2672
|
+
date_to?: string | undefined;
|
|
2673
|
+
updated_after?: string | undefined;
|
|
2674
|
+
include_detailed_refunds?: "true" | "false" | undefined;
|
|
2675
|
+
include_product_categories?: "true" | "false" | undefined;
|
|
2676
|
+
} | undefined): import("../types/api").RequestData<{
|
|
2542
2677
|
id: string;
|
|
2543
2678
|
source_ref: {
|
|
2544
2679
|
id?: string | undefined;
|
|
@@ -2584,8 +2719,9 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
2584
2719
|
created_on?: string | undefined;
|
|
2585
2720
|
last_updated_on?: string | undefined;
|
|
2586
2721
|
confirmed_on?: string | undefined;
|
|
2722
|
+
delivery_date?: string | undefined;
|
|
2587
2723
|
cancelled_on?: string | undefined;
|
|
2588
|
-
status: "cancelled" | "draft" | "confirmed" | "shipped" | "refunded";
|
|
2724
|
+
status: "cancelled" | "draft" | "cancelled_unpaid" | "confirmed" | "shipped" | "refunded";
|
|
2589
2725
|
discount_amount: number;
|
|
2590
2726
|
untaxed_amount_without_fees: number;
|
|
2591
2727
|
tax_amount_without_fees: number;
|
|
@@ -2609,6 +2745,10 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
2609
2745
|
id: string;
|
|
2610
2746
|
sku?: string | undefined;
|
|
2611
2747
|
name: string;
|
|
2748
|
+
categories?: {
|
|
2749
|
+
id: string;
|
|
2750
|
+
name: string;
|
|
2751
|
+
}[] | undefined;
|
|
2612
2752
|
} | undefined;
|
|
2613
2753
|
quantity: number;
|
|
2614
2754
|
untaxed_amount: number;
|
|
@@ -2626,6 +2766,13 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
2626
2766
|
tax_amount: number;
|
|
2627
2767
|
total: number;
|
|
2628
2768
|
}[] | undefined;
|
|
2769
|
+
transactions?: {
|
|
2770
|
+
id: string;
|
|
2771
|
+
payment_method_id?: string | undefined;
|
|
2772
|
+
payment_method_name?: string | undefined;
|
|
2773
|
+
amount: number;
|
|
2774
|
+
status: "failed" | "pending" | "success";
|
|
2775
|
+
}[] | undefined;
|
|
2629
2776
|
}[] | undefined;
|
|
2630
2777
|
currency: string;
|
|
2631
2778
|
note?: string | undefined;
|
|
@@ -2640,6 +2787,10 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
2640
2787
|
id: string;
|
|
2641
2788
|
sku?: string | undefined;
|
|
2642
2789
|
name: string;
|
|
2790
|
+
categories?: {
|
|
2791
|
+
id: string;
|
|
2792
|
+
name: string;
|
|
2793
|
+
}[] | undefined;
|
|
2643
2794
|
} | undefined;
|
|
2644
2795
|
quantity: number;
|
|
2645
2796
|
unit_price: number;
|
|
@@ -2775,8 +2926,9 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
2775
2926
|
created_on?: string | undefined;
|
|
2776
2927
|
last_updated_on?: string | undefined;
|
|
2777
2928
|
confirmed_on?: string | undefined;
|
|
2929
|
+
delivery_date?: string | undefined;
|
|
2778
2930
|
cancelled_on?: string | undefined;
|
|
2779
|
-
status: "cancelled" | "draft" | "confirmed" | "shipped" | "refunded";
|
|
2931
|
+
status: "cancelled" | "draft" | "cancelled_unpaid" | "confirmed" | "shipped" | "refunded";
|
|
2780
2932
|
discount_amount: number;
|
|
2781
2933
|
untaxed_amount_without_fees: number;
|
|
2782
2934
|
tax_amount_without_fees: number;
|
|
@@ -2800,6 +2952,10 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
2800
2952
|
id: string;
|
|
2801
2953
|
sku?: string | undefined;
|
|
2802
2954
|
name: string;
|
|
2955
|
+
categories?: {
|
|
2956
|
+
id: string;
|
|
2957
|
+
name: string;
|
|
2958
|
+
}[] | undefined;
|
|
2803
2959
|
} | undefined;
|
|
2804
2960
|
quantity: number;
|
|
2805
2961
|
untaxed_amount: number;
|
|
@@ -2817,6 +2973,13 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
2817
2973
|
tax_amount: number;
|
|
2818
2974
|
total: number;
|
|
2819
2975
|
}[] | undefined;
|
|
2976
|
+
transactions?: {
|
|
2977
|
+
id: string;
|
|
2978
|
+
payment_method_id?: string | undefined;
|
|
2979
|
+
payment_method_name?: string | undefined;
|
|
2980
|
+
amount: number;
|
|
2981
|
+
status: "failed" | "pending" | "success";
|
|
2982
|
+
}[] | undefined;
|
|
2820
2983
|
}[] | undefined;
|
|
2821
2984
|
currency: string;
|
|
2822
2985
|
note?: string | undefined;
|
|
@@ -2831,6 +2994,10 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
2831
2994
|
id: string;
|
|
2832
2995
|
sku?: string | undefined;
|
|
2833
2996
|
name: string;
|
|
2997
|
+
categories?: {
|
|
2998
|
+
id: string;
|
|
2999
|
+
name: string;
|
|
3000
|
+
}[] | undefined;
|
|
2834
3001
|
} | undefined;
|
|
2835
3002
|
quantity: number;
|
|
2836
3003
|
unit_price: number;
|
|
@@ -2925,8 +3092,9 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
2925
3092
|
created_on?: string | undefined;
|
|
2926
3093
|
last_updated_on?: string | undefined;
|
|
2927
3094
|
confirmed_on?: string | undefined;
|
|
3095
|
+
delivery_date?: string | undefined;
|
|
2928
3096
|
cancelled_on?: string | undefined;
|
|
2929
|
-
status: "cancelled" | "draft" | "confirmed" | "shipped" | "refunded";
|
|
3097
|
+
status: "cancelled" | "draft" | "cancelled_unpaid" | "confirmed" | "shipped" | "refunded";
|
|
2930
3098
|
discount_amount: number;
|
|
2931
3099
|
untaxed_amount_without_fees: number;
|
|
2932
3100
|
tax_amount_without_fees: number;
|
|
@@ -2950,6 +3118,10 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
2950
3118
|
id: string;
|
|
2951
3119
|
sku?: string | undefined;
|
|
2952
3120
|
name: string;
|
|
3121
|
+
categories?: {
|
|
3122
|
+
id: string;
|
|
3123
|
+
name: string;
|
|
3124
|
+
}[] | undefined;
|
|
2953
3125
|
} | undefined;
|
|
2954
3126
|
quantity: number;
|
|
2955
3127
|
untaxed_amount: number;
|
|
@@ -2967,6 +3139,13 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
2967
3139
|
tax_amount: number;
|
|
2968
3140
|
total: number;
|
|
2969
3141
|
}[] | undefined;
|
|
3142
|
+
transactions?: {
|
|
3143
|
+
id: string;
|
|
3144
|
+
payment_method_id?: string | undefined;
|
|
3145
|
+
payment_method_name?: string | undefined;
|
|
3146
|
+
amount: number;
|
|
3147
|
+
status: "failed" | "pending" | "success";
|
|
3148
|
+
}[] | undefined;
|
|
2970
3149
|
}[] | undefined;
|
|
2971
3150
|
currency: string;
|
|
2972
3151
|
note?: string | undefined;
|
|
@@ -2981,6 +3160,10 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
2981
3160
|
id: string;
|
|
2982
3161
|
sku?: string | undefined;
|
|
2983
3162
|
name: string;
|
|
3163
|
+
categories?: {
|
|
3164
|
+
id: string;
|
|
3165
|
+
name: string;
|
|
3166
|
+
}[] | undefined;
|
|
2984
3167
|
} | undefined;
|
|
2985
3168
|
quantity: number;
|
|
2986
3169
|
unit_price: number;
|
|
@@ -3029,7 +3212,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
3029
3212
|
name?: string | undefined;
|
|
3030
3213
|
}[] | undefined;
|
|
3031
3214
|
}>;
|
|
3032
|
-
getPaymentMethods(params
|
|
3215
|
+
getPaymentMethods(params?: {} | undefined): import("../types/api").RequestData<{
|
|
3033
3216
|
id: string;
|
|
3034
3217
|
source_ref: {
|
|
3035
3218
|
id?: string | undefined;
|
|
@@ -3038,7 +3221,9 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
3038
3221
|
name: string;
|
|
3039
3222
|
active: boolean;
|
|
3040
3223
|
}[]>;
|
|
3041
|
-
getProductCategories(params
|
|
3224
|
+
getProductCategories(params?: {
|
|
3225
|
+
only_parents?: "true" | "false" | undefined;
|
|
3226
|
+
} | undefined): import("../types/api").RequestData<{
|
|
3042
3227
|
id: string;
|
|
3043
3228
|
source_ref: {
|
|
3044
3229
|
id?: string | undefined;
|
|
@@ -3047,7 +3232,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
3047
3232
|
name: string;
|
|
3048
3233
|
parent_id?: string | undefined;
|
|
3049
3234
|
}[]>;
|
|
3050
|
-
getTaxes(params
|
|
3235
|
+
getTaxes(params?: {} | undefined): import("../types/api").RequestData<{
|
|
3051
3236
|
id: string;
|
|
3052
3237
|
source_ref: {
|
|
3053
3238
|
id?: string | undefined;
|
|
@@ -3057,7 +3242,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
3057
3242
|
rate: number;
|
|
3058
3243
|
country?: string | undefined;
|
|
3059
3244
|
}[]>;
|
|
3060
|
-
getCountries(params
|
|
3245
|
+
getCountries(params?: {} | undefined): import("../types/api").RequestData<{
|
|
3061
3246
|
code: string;
|
|
3062
3247
|
name: string;
|
|
3063
3248
|
}[]>;
|
|
@@ -3152,6 +3337,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
3152
3337
|
}[]>;
|
|
3153
3338
|
deleteDataStoreData: (dataStoreId: string, dataStoreDataId: string) => Promise<import("../types/sync").SimpleResponseModel>;
|
|
3154
3339
|
logData: (logs: import("../types/consumers").ConsumerLog[]) => Promise<import("../types/sync").SimpleResponseModel>;
|
|
3340
|
+
setConnectionId: (connectionId: string) => Promise<void>;
|
|
3341
|
+
setIntegrationId: (integrationId: string) => Promise<void>;
|
|
3155
3342
|
}, context: any) => any, log?: boolean) => Promise<void>;
|
|
3156
3343
|
flowId: string;
|
|
3157
3344
|
name: string;
|
|
@@ -3254,6 +3441,26 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
3254
3441
|
total_discount?: number | undefined;
|
|
3255
3442
|
total_refund?: number | undefined;
|
|
3256
3443
|
total_tip?: number | undefined;
|
|
3444
|
+
currency?: string | undefined;
|
|
3445
|
+
country?: string | undefined;
|
|
3446
|
+
loyalty?: number | undefined;
|
|
3447
|
+
customer_id?: string | undefined;
|
|
3448
|
+
location_id?: string | undefined;
|
|
3449
|
+
taxes?: {
|
|
3450
|
+
tax_rate: number;
|
|
3451
|
+
tax_amount: number;
|
|
3452
|
+
total: number;
|
|
3453
|
+
}[] | undefined;
|
|
3454
|
+
payments: {
|
|
3455
|
+
id?: string | undefined;
|
|
3456
|
+
payment_method_id?: string | undefined;
|
|
3457
|
+
payment_method_name?: string | undefined;
|
|
3458
|
+
total: number;
|
|
3459
|
+
tip?: number | undefined;
|
|
3460
|
+
status?: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised" | undefined;
|
|
3461
|
+
currency?: string | undefined;
|
|
3462
|
+
date?: string | undefined;
|
|
3463
|
+
}[];
|
|
3257
3464
|
items: {
|
|
3258
3465
|
id: string;
|
|
3259
3466
|
quantity: number;
|
|
@@ -3269,28 +3476,12 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
3269
3476
|
product_id?: string | undefined;
|
|
3270
3477
|
accounting_category_id?: string | undefined;
|
|
3271
3478
|
}[];
|
|
3272
|
-
payments: {
|
|
3273
|
-
id?: string | undefined;
|
|
3274
|
-
payment_method_id?: string | undefined;
|
|
3275
|
-
payment_method_name?: string | undefined;
|
|
3276
|
-
total: number;
|
|
3277
|
-
tip?: number | undefined;
|
|
3278
|
-
status?: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised" | undefined;
|
|
3279
|
-
currency?: string | undefined;
|
|
3280
|
-
date?: string | undefined;
|
|
3281
|
-
}[];
|
|
3282
|
-
currency?: string | undefined;
|
|
3283
|
-
country?: string | undefined;
|
|
3284
|
-
loyalty?: number | undefined;
|
|
3285
|
-
customer_id?: string | undefined;
|
|
3286
|
-
location_id?: string | undefined;
|
|
3287
|
-
taxes?: {
|
|
3288
|
-
tax_rate: number;
|
|
3289
|
-
tax_amount: number;
|
|
3290
|
-
total: number;
|
|
3291
|
-
}[] | undefined;
|
|
3292
3479
|
}[]>;
|
|
3293
|
-
getCustomers(params
|
|
3480
|
+
getCustomers(params?: {
|
|
3481
|
+
search?: string | undefined;
|
|
3482
|
+
email?: string | undefined;
|
|
3483
|
+
phone?: string | undefined;
|
|
3484
|
+
} | undefined): import("../types/api").RequestData<{
|
|
3294
3485
|
id: string;
|
|
3295
3486
|
first_name?: string | undefined;
|
|
3296
3487
|
last_name?: string | undefined;
|
|
@@ -3323,6 +3514,26 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
3323
3514
|
total_discount?: number | undefined;
|
|
3324
3515
|
total_refund?: number | undefined;
|
|
3325
3516
|
total_tip?: number | undefined;
|
|
3517
|
+
currency?: string | undefined;
|
|
3518
|
+
country?: string | undefined;
|
|
3519
|
+
loyalty?: number | undefined;
|
|
3520
|
+
customer_id?: string | undefined;
|
|
3521
|
+
location_id?: string | undefined;
|
|
3522
|
+
taxes?: {
|
|
3523
|
+
tax_rate: number;
|
|
3524
|
+
tax_amount: number;
|
|
3525
|
+
total: number;
|
|
3526
|
+
}[] | undefined;
|
|
3527
|
+
payments: {
|
|
3528
|
+
id?: string | undefined;
|
|
3529
|
+
payment_method_id?: string | undefined;
|
|
3530
|
+
payment_method_name?: string | undefined;
|
|
3531
|
+
total: number;
|
|
3532
|
+
tip?: number | undefined;
|
|
3533
|
+
status?: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised" | undefined;
|
|
3534
|
+
currency?: string | undefined;
|
|
3535
|
+
date?: string | undefined;
|
|
3536
|
+
}[];
|
|
3326
3537
|
items: {
|
|
3327
3538
|
id: string;
|
|
3328
3539
|
quantity: number;
|
|
@@ -3338,26 +3549,6 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
3338
3549
|
product_id?: string | undefined;
|
|
3339
3550
|
accounting_category_id?: string | undefined;
|
|
3340
3551
|
}[];
|
|
3341
|
-
payments: {
|
|
3342
|
-
id?: string | undefined;
|
|
3343
|
-
payment_method_id?: string | undefined;
|
|
3344
|
-
payment_method_name?: string | undefined;
|
|
3345
|
-
total: number;
|
|
3346
|
-
tip?: number | undefined;
|
|
3347
|
-
status?: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised" | undefined;
|
|
3348
|
-
currency?: string | undefined;
|
|
3349
|
-
date?: string | undefined;
|
|
3350
|
-
}[];
|
|
3351
|
-
currency?: string | undefined;
|
|
3352
|
-
country?: string | undefined;
|
|
3353
|
-
loyalty?: number | undefined;
|
|
3354
|
-
customer_id?: string | undefined;
|
|
3355
|
-
location_id?: string | undefined;
|
|
3356
|
-
taxes?: {
|
|
3357
|
-
tax_rate: number;
|
|
3358
|
-
tax_amount: number;
|
|
3359
|
-
total: number;
|
|
3360
|
-
}[] | undefined;
|
|
3361
3552
|
}>;
|
|
3362
3553
|
getCustomer(customerId: string): import("../types/api").RequestData<{
|
|
3363
3554
|
id: string;
|
|
@@ -3415,12 +3606,17 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
3415
3606
|
loyalty?: number | undefined;
|
|
3416
3607
|
birthdate?: string | undefined;
|
|
3417
3608
|
}>;
|
|
3418
|
-
getPaymentMethods(params
|
|
3609
|
+
getPaymentMethods(params?: {
|
|
3610
|
+
location_id?: string | undefined;
|
|
3611
|
+
} | undefined): import("../types/api").RequestData<{
|
|
3419
3612
|
id: string;
|
|
3420
3613
|
name: string;
|
|
3421
3614
|
extra?: string | undefined;
|
|
3422
3615
|
}[]>;
|
|
3423
|
-
getProductCategories(params
|
|
3616
|
+
getProductCategories(params?: {
|
|
3617
|
+
location_id?: string | undefined;
|
|
3618
|
+
only_parents?: "true" | "false" | undefined;
|
|
3619
|
+
} | undefined): import("../types/api").RequestData<{
|
|
3424
3620
|
id: string;
|
|
3425
3621
|
source_ref: {
|
|
3426
3622
|
id?: string | undefined;
|
|
@@ -3429,7 +3625,9 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
3429
3625
|
name: string;
|
|
3430
3626
|
parent_id?: string | undefined;
|
|
3431
3627
|
}[]>;
|
|
3432
|
-
getProducts(params
|
|
3628
|
+
getProducts(params?: {
|
|
3629
|
+
location_id?: string | undefined;
|
|
3630
|
+
} | undefined): import("../types/api").RequestData<{
|
|
3433
3631
|
id: string;
|
|
3434
3632
|
categories?: string[] | undefined;
|
|
3435
3633
|
name: string;
|
|
@@ -3453,7 +3651,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
3453
3651
|
total: number;
|
|
3454
3652
|
}[] | undefined;
|
|
3455
3653
|
}>;
|
|
3456
|
-
getClosure(date: string, params
|
|
3654
|
+
getClosure(date: string, params?: {
|
|
3457
3655
|
location_id?: string | undefined;
|
|
3458
3656
|
} | undefined): import("../types/api").RequestData<{
|
|
3459
3657
|
date: string;
|
|
@@ -3462,20 +3660,102 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
3462
3660
|
getPayments(params: {
|
|
3463
3661
|
date_from: string;
|
|
3464
3662
|
date_to: string;
|
|
3465
|
-
}): import("../types/api").RequestData<{
|
|
3466
|
-
id?: string | undefined;
|
|
3467
|
-
payment_method_id?: string | undefined;
|
|
3468
|
-
payment_method_name?: string | undefined;
|
|
3469
|
-
total: number;
|
|
3470
|
-
tip?: number | undefined;
|
|
3471
|
-
status?: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised" | undefined;
|
|
3472
|
-
currency?: string | undefined;
|
|
3473
|
-
date?: string | undefined;
|
|
3474
|
-
}[]>;
|
|
3475
|
-
updateOrder(orderId: string, order: {
|
|
3476
|
-
customer_id?: string | undefined;
|
|
3663
|
+
}): import("../types/api").RequestData<{
|
|
3664
|
+
id?: string | undefined;
|
|
3665
|
+
payment_method_id?: string | undefined;
|
|
3666
|
+
payment_method_name?: string | undefined;
|
|
3667
|
+
total: number;
|
|
3668
|
+
tip?: number | undefined;
|
|
3669
|
+
status?: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised" | undefined;
|
|
3670
|
+
currency?: string | undefined;
|
|
3671
|
+
date?: string | undefined;
|
|
3672
|
+
}[]>;
|
|
3673
|
+
updateOrder(orderId: string, order: {
|
|
3674
|
+
customer_id?: string | undefined;
|
|
3675
|
+
}): import("../types/api").RequestData<{
|
|
3676
|
+
id: string;
|
|
3677
|
+
order_number?: string | undefined;
|
|
3678
|
+
creation_date: string;
|
|
3679
|
+
closing_date?: string | undefined;
|
|
3680
|
+
service_date?: string | undefined;
|
|
3681
|
+
device_id?: string | undefined;
|
|
3682
|
+
total: number;
|
|
3683
|
+
tax_amount: number;
|
|
3684
|
+
total_discount?: number | undefined;
|
|
3685
|
+
total_refund?: number | undefined;
|
|
3686
|
+
total_tip?: number | undefined;
|
|
3687
|
+
currency?: string | undefined;
|
|
3688
|
+
country?: string | undefined;
|
|
3689
|
+
loyalty?: number | undefined;
|
|
3690
|
+
customer_id?: string | undefined;
|
|
3691
|
+
location_id?: string | undefined;
|
|
3692
|
+
taxes?: {
|
|
3693
|
+
tax_rate: number;
|
|
3694
|
+
tax_amount: number;
|
|
3695
|
+
total: number;
|
|
3696
|
+
}[] | undefined;
|
|
3697
|
+
payments: {
|
|
3698
|
+
id?: string | undefined;
|
|
3699
|
+
payment_method_id?: string | undefined;
|
|
3700
|
+
payment_method_name?: string | undefined;
|
|
3701
|
+
total: number;
|
|
3702
|
+
tip?: number | undefined;
|
|
3703
|
+
status?: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised" | undefined;
|
|
3704
|
+
currency?: string | undefined;
|
|
3705
|
+
date?: string | undefined;
|
|
3706
|
+
}[];
|
|
3707
|
+
items: {
|
|
3708
|
+
id: string;
|
|
3709
|
+
quantity: number;
|
|
3710
|
+
unit_price: number;
|
|
3711
|
+
total: number;
|
|
3712
|
+
tax_amount: number;
|
|
3713
|
+
tax_rate?: number | undefined;
|
|
3714
|
+
description?: string | undefined;
|
|
3715
|
+
discounts?: {
|
|
3716
|
+
name?: string | undefined;
|
|
3717
|
+
total: number;
|
|
3718
|
+
}[] | undefined;
|
|
3719
|
+
product_id?: string | undefined;
|
|
3720
|
+
accounting_category_id?: string | undefined;
|
|
3721
|
+
}[];
|
|
3722
|
+
}>;
|
|
3723
|
+
getAccountingCategories(params?: {} | undefined): import("../types/api").RequestData<{
|
|
3724
|
+
id: string;
|
|
3725
|
+
name: string;
|
|
3726
|
+
id_parent?: string | undefined;
|
|
3727
|
+
code?: string | undefined;
|
|
3728
|
+
ledger_account_code?: string | undefined;
|
|
3729
|
+
posting_account_code?: string | undefined;
|
|
3730
|
+
}[]>;
|
|
3731
|
+
}>;
|
|
3732
|
+
pms: import("../types/api").ApiFor<{
|
|
3733
|
+
getLocations(): import("../types/api").RequestData<{
|
|
3734
|
+
id: string;
|
|
3735
|
+
name: string;
|
|
3736
|
+
timezone?: string | undefined;
|
|
3737
|
+
address?: {
|
|
3738
|
+
address_type?: string | undefined;
|
|
3739
|
+
name?: string | undefined;
|
|
3740
|
+
street?: string | undefined;
|
|
3741
|
+
number?: string | undefined;
|
|
3742
|
+
box?: string | undefined;
|
|
3743
|
+
city?: string | undefined;
|
|
3744
|
+
postal_code?: string | undefined;
|
|
3745
|
+
country?: string | undefined;
|
|
3746
|
+
} | undefined;
|
|
3747
|
+
}[]>;
|
|
3748
|
+
getOrders(params: {
|
|
3749
|
+
date_from: string;
|
|
3750
|
+
date_to: string;
|
|
3751
|
+
location_id?: string | undefined;
|
|
3752
|
+
state?: "closed" | "consumed" | undefined;
|
|
3477
3753
|
}): import("../types/api").RequestData<{
|
|
3478
3754
|
id: string;
|
|
3755
|
+
source_ref: {
|
|
3756
|
+
id?: string | undefined;
|
|
3757
|
+
model?: string | undefined;
|
|
3758
|
+
};
|
|
3479
3759
|
order_number?: string | undefined;
|
|
3480
3760
|
creation_date: string;
|
|
3481
3761
|
closing_date?: string | undefined;
|
|
@@ -3486,8 +3766,22 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
3486
3766
|
total_discount?: number | undefined;
|
|
3487
3767
|
total_refund?: number | undefined;
|
|
3488
3768
|
total_tip?: number | undefined;
|
|
3769
|
+
currency?: string | undefined;
|
|
3770
|
+
country?: string | undefined;
|
|
3771
|
+
loyalty?: number | undefined;
|
|
3772
|
+
customer_id?: string | undefined;
|
|
3773
|
+
location_id?: string | undefined;
|
|
3774
|
+
taxes?: {
|
|
3775
|
+
tax_rate: number;
|
|
3776
|
+
tax_amount: number;
|
|
3777
|
+
total: number;
|
|
3778
|
+
}[] | undefined;
|
|
3489
3779
|
items: {
|
|
3490
3780
|
id: string;
|
|
3781
|
+
source_ref: {
|
|
3782
|
+
id?: string | undefined;
|
|
3783
|
+
model?: string | undefined;
|
|
3784
|
+
};
|
|
3491
3785
|
quantity: number;
|
|
3492
3786
|
unit_price: number;
|
|
3493
3787
|
total: number;
|
|
@@ -3501,29 +3795,49 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
3501
3795
|
product_id?: string | undefined;
|
|
3502
3796
|
accounting_category_id?: string | undefined;
|
|
3503
3797
|
}[];
|
|
3504
|
-
|
|
3798
|
+
service_id?: string | undefined;
|
|
3799
|
+
}[]>;
|
|
3800
|
+
getPaymentMethods(params?: {
|
|
3801
|
+
location_id?: string | undefined;
|
|
3802
|
+
} | undefined): import("../types/api").RequestData<{
|
|
3803
|
+
id: string;
|
|
3804
|
+
source_ref: {
|
|
3505
3805
|
id?: string | undefined;
|
|
3506
|
-
|
|
3507
|
-
|
|
3508
|
-
|
|
3509
|
-
|
|
3510
|
-
|
|
3511
|
-
|
|
3512
|
-
|
|
3513
|
-
}[];
|
|
3514
|
-
currency?: string | undefined;
|
|
3515
|
-
country?: string | undefined;
|
|
3516
|
-
loyalty?: number | undefined;
|
|
3517
|
-
customer_id?: string | undefined;
|
|
3806
|
+
model?: string | undefined;
|
|
3807
|
+
};
|
|
3808
|
+
name: string;
|
|
3809
|
+
extra?: string | undefined;
|
|
3810
|
+
ledger_account_code?: string | undefined;
|
|
3811
|
+
}[]>;
|
|
3812
|
+
getClosure(date: string, params?: {
|
|
3518
3813
|
location_id?: string | undefined;
|
|
3519
|
-
|
|
3520
|
-
|
|
3521
|
-
|
|
3522
|
-
total: number;
|
|
3523
|
-
}[] | undefined;
|
|
3814
|
+
} | undefined): import("../types/api").RequestData<{
|
|
3815
|
+
date: string;
|
|
3816
|
+
status: "open" | "closed";
|
|
3524
3817
|
}>;
|
|
3525
|
-
|
|
3818
|
+
getPayments(params: {
|
|
3819
|
+
date_from: string;
|
|
3820
|
+
date_to: string;
|
|
3821
|
+
}): import("../types/api").RequestData<{
|
|
3822
|
+
id?: string | undefined;
|
|
3823
|
+
source_ref: {
|
|
3824
|
+
id?: string | undefined;
|
|
3825
|
+
model?: string | undefined;
|
|
3826
|
+
};
|
|
3827
|
+
payment_method_id?: string | undefined;
|
|
3828
|
+
payment_method_name?: string | undefined;
|
|
3829
|
+
total: number;
|
|
3830
|
+
tip?: number | undefined;
|
|
3831
|
+
status?: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised" | undefined;
|
|
3832
|
+
currency?: string | undefined;
|
|
3833
|
+
date?: string | undefined;
|
|
3834
|
+
}[]>;
|
|
3835
|
+
getAccountingCategories(params?: {} | undefined): import("../types/api").RequestData<{
|
|
3526
3836
|
id: string;
|
|
3837
|
+
source_ref: {
|
|
3838
|
+
id?: string | undefined;
|
|
3839
|
+
model?: string | undefined;
|
|
3840
|
+
};
|
|
3527
3841
|
name: string;
|
|
3528
3842
|
id_parent?: string | undefined;
|
|
3529
3843
|
code?: string | undefined;
|
|
@@ -3532,19 +3846,15 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
3532
3846
|
}[]>;
|
|
3533
3847
|
}>;
|
|
3534
3848
|
accounting: import("../types/api").ApiFor<{
|
|
3535
|
-
getAnalyticPlans(params
|
|
3849
|
+
getAnalyticPlans(params?: {
|
|
3536
3850
|
folder_id?: string | undefined;
|
|
3537
|
-
page?: number | undefined;
|
|
3538
|
-
size?: number | undefined;
|
|
3539
3851
|
} | undefined): import("../types/api").RequestData<{
|
|
3540
3852
|
id: string;
|
|
3541
3853
|
name: string;
|
|
3542
3854
|
active?: boolean | undefined;
|
|
3543
3855
|
}[]>;
|
|
3544
|
-
getClients(params
|
|
3856
|
+
getClients(params?: {
|
|
3545
3857
|
folder_id?: string | undefined;
|
|
3546
|
-
page?: number | undefined;
|
|
3547
|
-
size?: number | undefined;
|
|
3548
3858
|
} | undefined): import("../types/api").RequestData<{
|
|
3549
3859
|
external_reference?: string | undefined;
|
|
3550
3860
|
first_name?: string | undefined;
|
|
@@ -3614,7 +3924,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
3614
3924
|
country: string;
|
|
3615
3925
|
}[];
|
|
3616
3926
|
account_number?: string | undefined;
|
|
3617
|
-
}, params
|
|
3927
|
+
}, params?: {
|
|
3618
3928
|
force_merge?: string | undefined;
|
|
3619
3929
|
folder_id?: string | undefined;
|
|
3620
3930
|
} | undefined): import("../types/api").RequestData<{
|
|
@@ -3653,7 +3963,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
3653
3963
|
company_number?: string | undefined;
|
|
3654
3964
|
id?: string | undefined;
|
|
3655
3965
|
}>;
|
|
3656
|
-
getClient(clientId: string, params
|
|
3966
|
+
getClient(clientId: string, params?: {
|
|
3657
3967
|
folder_id?: string | undefined;
|
|
3658
3968
|
} | undefined): import("../types/api").RequestData<{
|
|
3659
3969
|
external_reference?: string | undefined;
|
|
@@ -3723,7 +4033,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
3723
4033
|
postal_code?: string | undefined;
|
|
3724
4034
|
country?: string | undefined;
|
|
3725
4035
|
}[] | undefined;
|
|
3726
|
-
}, params
|
|
4036
|
+
}, params?: {
|
|
3727
4037
|
folder_id?: string | undefined;
|
|
3728
4038
|
} | undefined): import("../types/api").RequestData<{
|
|
3729
4039
|
external_reference?: string | undefined;
|
|
@@ -3761,10 +4071,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
3761
4071
|
company_number?: string | undefined;
|
|
3762
4072
|
id?: string | undefined;
|
|
3763
4073
|
}>;
|
|
3764
|
-
getSuppliers(params
|
|
4074
|
+
getSuppliers(params?: {
|
|
3765
4075
|
folder_id?: string | undefined;
|
|
3766
|
-
page?: number | undefined;
|
|
3767
|
-
size?: number | undefined;
|
|
3768
4076
|
} | undefined): import("../types/api").RequestData<{
|
|
3769
4077
|
external_reference?: string | undefined;
|
|
3770
4078
|
first_name?: string | undefined;
|
|
@@ -3834,7 +4142,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
3834
4142
|
country: string;
|
|
3835
4143
|
}[];
|
|
3836
4144
|
account_number?: string | undefined;
|
|
3837
|
-
}, params
|
|
4145
|
+
}, params?: {
|
|
3838
4146
|
force_merge?: string | undefined;
|
|
3839
4147
|
folder_id?: string | undefined;
|
|
3840
4148
|
} | undefined): import("../types/api").RequestData<{
|
|
@@ -3873,7 +4181,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
3873
4181
|
company_number?: string | undefined;
|
|
3874
4182
|
id?: string | undefined;
|
|
3875
4183
|
}>;
|
|
3876
|
-
getSupplier(supplierId: string, params
|
|
4184
|
+
getSupplier(supplierId: string, params?: {
|
|
3877
4185
|
folder_id?: string | undefined;
|
|
3878
4186
|
} | undefined): import("../types/api").RequestData<{
|
|
3879
4187
|
external_reference?: string | undefined;
|
|
@@ -3943,7 +4251,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
3943
4251
|
postal_code?: string | undefined;
|
|
3944
4252
|
country?: string | undefined;
|
|
3945
4253
|
}[] | undefined;
|
|
3946
|
-
}, params
|
|
4254
|
+
}, params?: {
|
|
3947
4255
|
folder_id?: string | undefined;
|
|
3948
4256
|
} | undefined): import("../types/api").RequestData<{
|
|
3949
4257
|
external_reference?: string | undefined;
|
|
@@ -4014,6 +4322,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
4014
4322
|
iban: string;
|
|
4015
4323
|
};
|
|
4016
4324
|
} | undefined;
|
|
4325
|
+
shipping_country?: string | undefined;
|
|
4017
4326
|
lines: {
|
|
4018
4327
|
line_number?: number | undefined;
|
|
4019
4328
|
description: string;
|
|
@@ -4028,7 +4337,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
4028
4337
|
tax_code: string;
|
|
4029
4338
|
analytic_account?: string | undefined;
|
|
4030
4339
|
}[];
|
|
4031
|
-
}, params
|
|
4340
|
+
}, params?: {
|
|
4032
4341
|
force_financial_period?: string | undefined;
|
|
4033
4342
|
regroup_lines?: "true" | "false" | undefined;
|
|
4034
4343
|
folder_id?: string | undefined;
|
|
@@ -4110,6 +4419,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
4110
4419
|
iban: string;
|
|
4111
4420
|
};
|
|
4112
4421
|
} | undefined;
|
|
4422
|
+
shipping_country?: string | undefined;
|
|
4113
4423
|
lines: {
|
|
4114
4424
|
line_number?: number | undefined;
|
|
4115
4425
|
description: string;
|
|
@@ -4130,7 +4440,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
4130
4440
|
}[];
|
|
4131
4441
|
}[] | undefined;
|
|
4132
4442
|
}[];
|
|
4133
|
-
}, params
|
|
4443
|
+
}, params?: {
|
|
4134
4444
|
force_financial_period?: string | undefined;
|
|
4135
4445
|
regroup_lines?: "true" | "false" | undefined;
|
|
4136
4446
|
folder_id?: string | undefined;
|
|
@@ -4185,7 +4495,14 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
4185
4495
|
}[] | undefined;
|
|
4186
4496
|
}[];
|
|
4187
4497
|
}>;
|
|
4188
|
-
getInvoicesByType(invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund", params
|
|
4498
|
+
getInvoicesByType(invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund", params?: {
|
|
4499
|
+
date_from?: string | undefined;
|
|
4500
|
+
date_to?: string | undefined;
|
|
4501
|
+
folder_id?: string | undefined;
|
|
4502
|
+
journal_ids?: string | undefined;
|
|
4503
|
+
include_payments?: "true" | "false" | undefined;
|
|
4504
|
+
payment_status?: "all" | "paid" | "unpaid" | undefined;
|
|
4505
|
+
} | undefined): import("../types/api").RequestData<{
|
|
4189
4506
|
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
4190
4507
|
invoice_number?: string | undefined;
|
|
4191
4508
|
currency: string;
|
|
@@ -4230,7 +4547,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
4230
4547
|
analytic_account?: string | undefined;
|
|
4231
4548
|
}[];
|
|
4232
4549
|
}[]>;
|
|
4233
|
-
getInvoice(invoiceId: string, params
|
|
4550
|
+
getInvoice(invoiceId: string, params?: {
|
|
4234
4551
|
include_payments?: "true" | "false" | undefined;
|
|
4235
4552
|
folder_id?: string | undefined;
|
|
4236
4553
|
} | undefined): import("../types/api").RequestData<{
|
|
@@ -4278,7 +4595,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
4278
4595
|
analytic_account?: string | undefined;
|
|
4279
4596
|
}[];
|
|
4280
4597
|
}>;
|
|
4281
|
-
getInvoiceWithMultiplePlans(invoiceId: string, params
|
|
4598
|
+
getInvoiceWithMultiplePlans(invoiceId: string, params?: {
|
|
4282
4599
|
include_payments?: "true" | "false" | undefined;
|
|
4283
4600
|
folder_id?: string | undefined;
|
|
4284
4601
|
} | undefined): import("../types/api").RequestData<{
|
|
@@ -4332,7 +4649,14 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
4332
4649
|
}[] | undefined;
|
|
4333
4650
|
}[];
|
|
4334
4651
|
}>;
|
|
4335
|
-
getInvoicesByTypeWithMultiplePlans(invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund", params
|
|
4652
|
+
getInvoicesByTypeWithMultiplePlans(invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund", params?: {
|
|
4653
|
+
date_from?: string | undefined;
|
|
4654
|
+
date_to?: string | undefined;
|
|
4655
|
+
folder_id?: string | undefined;
|
|
4656
|
+
journal_ids?: string | undefined;
|
|
4657
|
+
include_payments?: "true" | "false" | undefined;
|
|
4658
|
+
payment_status?: "all" | "paid" | "unpaid" | undefined;
|
|
4659
|
+
} | undefined): import("../types/api").RequestData<{
|
|
4336
4660
|
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
4337
4661
|
invoice_number?: string | undefined;
|
|
4338
4662
|
currency: string;
|
|
@@ -4388,7 +4712,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
4388
4712
|
code: string;
|
|
4389
4713
|
name: string;
|
|
4390
4714
|
currency: string;
|
|
4391
|
-
}, params
|
|
4715
|
+
}, params?: {
|
|
4392
4716
|
folder_id?: string | undefined;
|
|
4393
4717
|
} | undefined): import("../types/api").RequestData<{
|
|
4394
4718
|
id: string;
|
|
@@ -4400,10 +4724,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
4400
4724
|
credit?: number | undefined;
|
|
4401
4725
|
debit?: number | undefined;
|
|
4402
4726
|
}>;
|
|
4403
|
-
getAnalyticAccounts(params
|
|
4727
|
+
getAnalyticAccounts(params?: {
|
|
4404
4728
|
folder_id?: string | undefined;
|
|
4405
|
-
page?: number | undefined;
|
|
4406
|
-
size?: number | undefined;
|
|
4407
4729
|
} | undefined): import("../types/api").RequestData<{
|
|
4408
4730
|
id: string;
|
|
4409
4731
|
active: boolean;
|
|
@@ -4419,7 +4741,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
4419
4741
|
code: string;
|
|
4420
4742
|
name: string;
|
|
4421
4743
|
currency: string;
|
|
4422
|
-
}, params
|
|
4744
|
+
}, params?: {
|
|
4423
4745
|
folder_id?: string | undefined;
|
|
4424
4746
|
} | undefined): import("../types/api").RequestData<{
|
|
4425
4747
|
id: string;
|
|
@@ -4432,7 +4754,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
4432
4754
|
debit?: number | undefined;
|
|
4433
4755
|
analytic_plan: string;
|
|
4434
4756
|
}>;
|
|
4435
|
-
getAnalyticAccount(analytic_account_id: string, params
|
|
4757
|
+
getAnalyticAccount(analytic_account_id: string, params?: {
|
|
4436
4758
|
folder_id?: string | undefined;
|
|
4437
4759
|
} | undefined): import("../types/api").RequestData<{
|
|
4438
4760
|
id: string;
|
|
@@ -4449,7 +4771,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
4449
4771
|
code?: string | undefined;
|
|
4450
4772
|
name?: string | undefined;
|
|
4451
4773
|
currency?: string | undefined;
|
|
4452
|
-
}, params
|
|
4774
|
+
}, params?: {
|
|
4453
4775
|
folder_id?: string | undefined;
|
|
4454
4776
|
} | undefined): import("../types/api").RequestData<{
|
|
4455
4777
|
id: string;
|
|
@@ -4461,7 +4783,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
4461
4783
|
credit?: number | undefined;
|
|
4462
4784
|
debit?: number | undefined;
|
|
4463
4785
|
}>;
|
|
4464
|
-
getAnalyticAccountWithMultiplePlans(analytic_account_id: string, analytic_plan: string, params
|
|
4786
|
+
getAnalyticAccountWithMultiplePlans(analytic_account_id: string, analytic_plan: string, params?: {
|
|
4465
4787
|
folder_id?: string | undefined;
|
|
4466
4788
|
} | undefined): import("../types/api").RequestData<{
|
|
4467
4789
|
id: string;
|
|
@@ -4479,7 +4801,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
4479
4801
|
code?: string | undefined;
|
|
4480
4802
|
name?: string | undefined;
|
|
4481
4803
|
currency?: string | undefined;
|
|
4482
|
-
}, params
|
|
4804
|
+
}, params?: {
|
|
4483
4805
|
folder_id?: string | undefined;
|
|
4484
4806
|
} | undefined): import("../types/api").RequestData<{
|
|
4485
4807
|
id: string;
|
|
@@ -4492,10 +4814,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
4492
4814
|
debit?: number | undefined;
|
|
4493
4815
|
analytic_plan: string;
|
|
4494
4816
|
}>;
|
|
4495
|
-
getAnalyticAccountsWithMultiplePlans(params
|
|
4817
|
+
getAnalyticAccountsWithMultiplePlans(params?: {
|
|
4496
4818
|
folder_id?: string | undefined;
|
|
4497
|
-
page?: number | undefined;
|
|
4498
|
-
size?: number | undefined;
|
|
4499
4819
|
} | undefined): import("../types/api").RequestData<{
|
|
4500
4820
|
id: string;
|
|
4501
4821
|
active: boolean;
|
|
@@ -4576,7 +4896,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
4576
4896
|
}[] | undefined;
|
|
4577
4897
|
}[] | undefined;
|
|
4578
4898
|
}[]>;
|
|
4579
|
-
getPaymentsByInvoiceId(invoice_id: string, params
|
|
4899
|
+
getPaymentsByInvoiceId(invoice_id: string, params?: {
|
|
4580
4900
|
folder_id?: string | undefined;
|
|
4581
4901
|
page?: number | undefined;
|
|
4582
4902
|
size?: number | undefined;
|
|
@@ -4594,20 +4914,16 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
4594
4914
|
communication?: string | undefined;
|
|
4595
4915
|
matching_number?: string | undefined;
|
|
4596
4916
|
}[]>;
|
|
4597
|
-
getJournals(params
|
|
4917
|
+
getJournals(params?: {
|
|
4598
4918
|
folder_id?: string | undefined;
|
|
4599
|
-
page?: number | undefined;
|
|
4600
|
-
size?: number | undefined;
|
|
4601
4919
|
} | undefined): import("../types/api").RequestData<{
|
|
4602
4920
|
id: string;
|
|
4603
4921
|
code?: string | undefined;
|
|
4604
4922
|
name: string;
|
|
4605
4923
|
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
4606
4924
|
}[]>;
|
|
4607
|
-
getVatCodes(params
|
|
4925
|
+
getVatCodes(params?: {
|
|
4608
4926
|
folder_id?: string | undefined;
|
|
4609
|
-
page?: number | undefined;
|
|
4610
|
-
size?: number | undefined;
|
|
4611
4927
|
} | undefined): import("../types/api").RequestData<{
|
|
4612
4928
|
id: string;
|
|
4613
4929
|
code?: string | undefined;
|
|
@@ -4618,7 +4934,12 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
4618
4934
|
deductible_account?: string | undefined;
|
|
4619
4935
|
payable_account?: string | undefined;
|
|
4620
4936
|
}[]>;
|
|
4621
|
-
getMiscOperations(params
|
|
4937
|
+
getMiscOperations(params?: {
|
|
4938
|
+
date_from?: string | undefined;
|
|
4939
|
+
date_to?: string | undefined;
|
|
4940
|
+
folder_id?: string | undefined;
|
|
4941
|
+
journal_ids?: string | undefined;
|
|
4942
|
+
} | undefined): import("../types/api").RequestData<{
|
|
4622
4943
|
operation_number?: string | undefined;
|
|
4623
4944
|
currency: string;
|
|
4624
4945
|
currency_exchange_rate?: number | undefined;
|
|
@@ -4652,7 +4973,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
4652
4973
|
operation_date: string;
|
|
4653
4974
|
journal_id?: string | undefined;
|
|
4654
4975
|
status?: "draft" | "posted" | undefined;
|
|
4655
|
-
}, params
|
|
4976
|
+
}, params?: {
|
|
4656
4977
|
folder_id?: string | undefined;
|
|
4657
4978
|
} | undefined): import("../types/api").RequestData<{
|
|
4658
4979
|
operation_number?: string | undefined;
|
|
@@ -4672,7 +4993,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
4672
4993
|
status: "cancelled" | "draft" | "posted" | "matched";
|
|
4673
4994
|
id: string;
|
|
4674
4995
|
}>;
|
|
4675
|
-
getMiscOperation(operation_id: string, params
|
|
4996
|
+
getMiscOperation(operation_id: string, params?: {
|
|
4676
4997
|
folder_id?: string | undefined;
|
|
4677
4998
|
} | undefined): import("../types/api").RequestData<{
|
|
4678
4999
|
operation_number?: string | undefined;
|
|
@@ -4694,24 +5015,25 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
4694
5015
|
}>;
|
|
4695
5016
|
attachPDF(invoice_id: string, attachment: {
|
|
4696
5017
|
base64_string: string;
|
|
4697
|
-
}, params
|
|
5018
|
+
}, params?: {
|
|
4698
5019
|
overwrite_existing?: "true" | "false" | undefined;
|
|
4699
5020
|
folder_id?: string | undefined;
|
|
4700
5021
|
} | undefined): import("../types/api").RequestData<{
|
|
4701
5022
|
content: {
|
|
4702
|
-
|
|
5023
|
+
'application/json': unknown;
|
|
4703
5024
|
};
|
|
4704
5025
|
}>;
|
|
4705
5026
|
getAttachments(params: {
|
|
5027
|
+
folder_id?: string | undefined;
|
|
4706
5028
|
type: "invoice" | "entry";
|
|
4707
5029
|
document_id: string;
|
|
4708
|
-
folder_id?: string | undefined;
|
|
4709
|
-
page?: number | undefined;
|
|
4710
|
-
size?: number | undefined;
|
|
4711
5030
|
}): import("../types/api").RequestData<{
|
|
4712
5031
|
base64_string: string;
|
|
4713
5032
|
}[]>;
|
|
4714
|
-
getChartOfAccounts(params
|
|
5033
|
+
getChartOfAccounts(params?: {
|
|
5034
|
+
classes?: string | undefined;
|
|
5035
|
+
folder_id?: string | undefined;
|
|
5036
|
+
} | undefined): import("../types/api").RequestData<{
|
|
4715
5037
|
number: string;
|
|
4716
5038
|
name: string;
|
|
4717
5039
|
active?: boolean | undefined;
|
|
@@ -4721,10 +5043,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
4721
5043
|
accounts: string[];
|
|
4722
5044
|
start?: string | undefined;
|
|
4723
5045
|
end: string;
|
|
4724
|
-
}, params
|
|
5046
|
+
}, params?: {
|
|
4725
5047
|
folder_id?: string | undefined;
|
|
4726
|
-
page?: number | undefined;
|
|
4727
|
-
size?: number | undefined;
|
|
4728
5048
|
} | undefined): import("../types/api").RequestData<{
|
|
4729
5049
|
account_number: string;
|
|
4730
5050
|
account_name?: string | undefined;
|
|
@@ -4732,10 +5052,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
4732
5052
|
credit: number;
|
|
4733
5053
|
balance: number;
|
|
4734
5054
|
}[]>;
|
|
4735
|
-
getEmployees(params
|
|
5055
|
+
getEmployees(params?: {
|
|
4736
5056
|
folder_id?: string | undefined;
|
|
4737
|
-
page?: number | undefined;
|
|
4738
|
-
size?: number | undefined;
|
|
4739
5057
|
} | undefined): import("../types/api").RequestData<{
|
|
4740
5058
|
id: string;
|
|
4741
5059
|
name: string;
|
|
@@ -4751,8 +5069,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
4751
5069
|
}[]>;
|
|
4752
5070
|
getOutstandings(params: {
|
|
4753
5071
|
folder_id?: string | undefined;
|
|
4754
|
-
unposted_allowed: "true" | "false";
|
|
4755
5072
|
type: "supplier" | "client";
|
|
5073
|
+
unposted_allowed: "true" | "false";
|
|
4756
5074
|
}): import("../types/api").RequestData<{
|
|
4757
5075
|
id: string;
|
|
4758
5076
|
number?: string | undefined;
|
|
@@ -4785,7 +5103,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
4785
5103
|
description?: string | undefined;
|
|
4786
5104
|
}[];
|
|
4787
5105
|
pdf?: string | undefined;
|
|
4788
|
-
}, params
|
|
5106
|
+
}, params?: {
|
|
4789
5107
|
financial_counterpart_account?: string | undefined;
|
|
4790
5108
|
folder_id?: string | undefined;
|
|
4791
5109
|
} | undefined): import("../types/api").RequestData<{
|
|
@@ -4819,7 +5137,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
4819
5137
|
description?: string | undefined;
|
|
4820
5138
|
}[];
|
|
4821
5139
|
pdf?: string | undefined;
|
|
4822
|
-
}, params
|
|
5140
|
+
}, params?: {
|
|
4823
5141
|
financial_counterpart_account?: string | undefined;
|
|
4824
5142
|
folder_id?: string | undefined;
|
|
4825
5143
|
} | undefined): import("../types/api").RequestData<{
|
|
@@ -4918,7 +5236,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
4918
5236
|
}[];
|
|
4919
5237
|
pdf?: string | undefined;
|
|
4920
5238
|
posted?: boolean | undefined;
|
|
4921
|
-
}, params
|
|
5239
|
+
}, params?: {
|
|
4922
5240
|
folder_id?: string | undefined;
|
|
4923
5241
|
} | undefined): import("../types/api").RequestData<{
|
|
4924
5242
|
reference?: string | undefined;
|
|
@@ -4953,7 +5271,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
4953
5271
|
matchEntries(body: {
|
|
4954
5272
|
entries: string[];
|
|
4955
5273
|
partner_id: string;
|
|
4956
|
-
}, params
|
|
5274
|
+
}, params?: {
|
|
4957
5275
|
folder_id?: string | undefined;
|
|
4958
5276
|
} | undefined): import("../types/api").RequestData<{
|
|
4959
5277
|
matching_number: string;
|
|
@@ -4963,17 +5281,17 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
4963
5281
|
id: string;
|
|
4964
5282
|
name: string;
|
|
4965
5283
|
selected?: boolean | undefined;
|
|
5284
|
+
vat?: string | undefined;
|
|
5285
|
+
company_number?: string | undefined;
|
|
4966
5286
|
}[]>;
|
|
4967
5287
|
}>;
|
|
4968
5288
|
invoicing: import("../types/api").ApiFor<{
|
|
4969
|
-
getInvoices(params
|
|
4970
|
-
invoice_type?: "all" | "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | undefined;
|
|
4971
|
-
payment_status?: "all" | "paid" | "unpaid" | undefined;
|
|
5289
|
+
getInvoices(params?: {
|
|
4972
5290
|
date_from?: string | undefined;
|
|
4973
5291
|
date_to?: string | undefined;
|
|
5292
|
+
payment_status?: "all" | "paid" | "unpaid" | undefined;
|
|
5293
|
+
invoice_type?: "all" | "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | undefined;
|
|
4974
5294
|
updated_after?: string | undefined;
|
|
4975
|
-
page?: number | undefined;
|
|
4976
|
-
size?: number | undefined;
|
|
4977
5295
|
} | undefined): import("../types/api").RequestData<{
|
|
4978
5296
|
id: string;
|
|
4979
5297
|
source_ref: {
|
|
@@ -5017,7 +5335,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
5017
5335
|
outstanding_amount?: number | undefined;
|
|
5018
5336
|
last_updated_on?: string | undefined;
|
|
5019
5337
|
}[]>;
|
|
5020
|
-
getInvoiceById(invoiceId: string, params
|
|
5338
|
+
getInvoiceById(invoiceId: string, params?: {
|
|
5021
5339
|
include_pdf?: "true" | "false" | undefined;
|
|
5022
5340
|
} | undefined): import("../types/api").RequestData<{
|
|
5023
5341
|
id: string;
|
|
@@ -5279,8 +5597,6 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
5279
5597
|
}>;
|
|
5280
5598
|
getContacts(params?: {
|
|
5281
5599
|
contact_type?: "prospect" | "customer" | "supplier" | "all" | undefined;
|
|
5282
|
-
page?: number | undefined;
|
|
5283
|
-
size?: number | undefined;
|
|
5284
5600
|
} | undefined): import("../types/api").RequestData<{
|
|
5285
5601
|
id: string;
|
|
5286
5602
|
source_ref: {
|
|
@@ -5691,7 +6007,13 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
5691
6007
|
id: string;
|
|
5692
6008
|
name: string;
|
|
5693
6009
|
}[]>;
|
|
5694
|
-
getOrders(params
|
|
6010
|
+
getOrders(params?: {
|
|
6011
|
+
date_from?: string | undefined;
|
|
6012
|
+
date_to?: string | undefined;
|
|
6013
|
+
updated_after?: string | undefined;
|
|
6014
|
+
include_detailed_refunds?: "true" | "false" | undefined;
|
|
6015
|
+
include_product_categories?: "true" | "false" | undefined;
|
|
6016
|
+
} | undefined): import("../types/api").RequestData<{
|
|
5695
6017
|
id: string;
|
|
5696
6018
|
source_ref: {
|
|
5697
6019
|
id?: string | undefined;
|
|
@@ -5737,8 +6059,9 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
5737
6059
|
created_on?: string | undefined;
|
|
5738
6060
|
last_updated_on?: string | undefined;
|
|
5739
6061
|
confirmed_on?: string | undefined;
|
|
6062
|
+
delivery_date?: string | undefined;
|
|
5740
6063
|
cancelled_on?: string | undefined;
|
|
5741
|
-
status: "cancelled" | "draft" | "confirmed" | "shipped" | "refunded";
|
|
6064
|
+
status: "cancelled" | "draft" | "cancelled_unpaid" | "confirmed" | "shipped" | "refunded";
|
|
5742
6065
|
discount_amount: number;
|
|
5743
6066
|
untaxed_amount_without_fees: number;
|
|
5744
6067
|
tax_amount_without_fees: number;
|
|
@@ -5762,6 +6085,10 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
5762
6085
|
id: string;
|
|
5763
6086
|
sku?: string | undefined;
|
|
5764
6087
|
name: string;
|
|
6088
|
+
categories?: {
|
|
6089
|
+
id: string;
|
|
6090
|
+
name: string;
|
|
6091
|
+
}[] | undefined;
|
|
5765
6092
|
} | undefined;
|
|
5766
6093
|
quantity: number;
|
|
5767
6094
|
untaxed_amount: number;
|
|
@@ -5779,6 +6106,13 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
5779
6106
|
tax_amount: number;
|
|
5780
6107
|
total: number;
|
|
5781
6108
|
}[] | undefined;
|
|
6109
|
+
transactions?: {
|
|
6110
|
+
id: string;
|
|
6111
|
+
payment_method_id?: string | undefined;
|
|
6112
|
+
payment_method_name?: string | undefined;
|
|
6113
|
+
amount: number;
|
|
6114
|
+
status: "failed" | "pending" | "success";
|
|
6115
|
+
}[] | undefined;
|
|
5782
6116
|
}[] | undefined;
|
|
5783
6117
|
currency: string;
|
|
5784
6118
|
note?: string | undefined;
|
|
@@ -5793,6 +6127,10 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
5793
6127
|
id: string;
|
|
5794
6128
|
sku?: string | undefined;
|
|
5795
6129
|
name: string;
|
|
6130
|
+
categories?: {
|
|
6131
|
+
id: string;
|
|
6132
|
+
name: string;
|
|
6133
|
+
}[] | undefined;
|
|
5796
6134
|
} | undefined;
|
|
5797
6135
|
quantity: number;
|
|
5798
6136
|
unit_price: number;
|
|
@@ -5928,8 +6266,9 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
5928
6266
|
created_on?: string | undefined;
|
|
5929
6267
|
last_updated_on?: string | undefined;
|
|
5930
6268
|
confirmed_on?: string | undefined;
|
|
6269
|
+
delivery_date?: string | undefined;
|
|
5931
6270
|
cancelled_on?: string | undefined;
|
|
5932
|
-
status: "cancelled" | "draft" | "confirmed" | "shipped" | "refunded";
|
|
6271
|
+
status: "cancelled" | "draft" | "cancelled_unpaid" | "confirmed" | "shipped" | "refunded";
|
|
5933
6272
|
discount_amount: number;
|
|
5934
6273
|
untaxed_amount_without_fees: number;
|
|
5935
6274
|
tax_amount_without_fees: number;
|
|
@@ -5953,6 +6292,10 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
5953
6292
|
id: string;
|
|
5954
6293
|
sku?: string | undefined;
|
|
5955
6294
|
name: string;
|
|
6295
|
+
categories?: {
|
|
6296
|
+
id: string;
|
|
6297
|
+
name: string;
|
|
6298
|
+
}[] | undefined;
|
|
5956
6299
|
} | undefined;
|
|
5957
6300
|
quantity: number;
|
|
5958
6301
|
untaxed_amount: number;
|
|
@@ -5970,6 +6313,13 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
5970
6313
|
tax_amount: number;
|
|
5971
6314
|
total: number;
|
|
5972
6315
|
}[] | undefined;
|
|
6316
|
+
transactions?: {
|
|
6317
|
+
id: string;
|
|
6318
|
+
payment_method_id?: string | undefined;
|
|
6319
|
+
payment_method_name?: string | undefined;
|
|
6320
|
+
amount: number;
|
|
6321
|
+
status: "failed" | "pending" | "success";
|
|
6322
|
+
}[] | undefined;
|
|
5973
6323
|
}[] | undefined;
|
|
5974
6324
|
currency: string;
|
|
5975
6325
|
note?: string | undefined;
|
|
@@ -5984,6 +6334,10 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
5984
6334
|
id: string;
|
|
5985
6335
|
sku?: string | undefined;
|
|
5986
6336
|
name: string;
|
|
6337
|
+
categories?: {
|
|
6338
|
+
id: string;
|
|
6339
|
+
name: string;
|
|
6340
|
+
}[] | undefined;
|
|
5987
6341
|
} | undefined;
|
|
5988
6342
|
quantity: number;
|
|
5989
6343
|
unit_price: number;
|
|
@@ -6078,8 +6432,9 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
6078
6432
|
created_on?: string | undefined;
|
|
6079
6433
|
last_updated_on?: string | undefined;
|
|
6080
6434
|
confirmed_on?: string | undefined;
|
|
6435
|
+
delivery_date?: string | undefined;
|
|
6081
6436
|
cancelled_on?: string | undefined;
|
|
6082
|
-
status: "cancelled" | "draft" | "confirmed" | "shipped" | "refunded";
|
|
6437
|
+
status: "cancelled" | "draft" | "cancelled_unpaid" | "confirmed" | "shipped" | "refunded";
|
|
6083
6438
|
discount_amount: number;
|
|
6084
6439
|
untaxed_amount_without_fees: number;
|
|
6085
6440
|
tax_amount_without_fees: number;
|
|
@@ -6103,6 +6458,10 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
6103
6458
|
id: string;
|
|
6104
6459
|
sku?: string | undefined;
|
|
6105
6460
|
name: string;
|
|
6461
|
+
categories?: {
|
|
6462
|
+
id: string;
|
|
6463
|
+
name: string;
|
|
6464
|
+
}[] | undefined;
|
|
6106
6465
|
} | undefined;
|
|
6107
6466
|
quantity: number;
|
|
6108
6467
|
untaxed_amount: number;
|
|
@@ -6120,6 +6479,13 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
6120
6479
|
tax_amount: number;
|
|
6121
6480
|
total: number;
|
|
6122
6481
|
}[] | undefined;
|
|
6482
|
+
transactions?: {
|
|
6483
|
+
id: string;
|
|
6484
|
+
payment_method_id?: string | undefined;
|
|
6485
|
+
payment_method_name?: string | undefined;
|
|
6486
|
+
amount: number;
|
|
6487
|
+
status: "failed" | "pending" | "success";
|
|
6488
|
+
}[] | undefined;
|
|
6123
6489
|
}[] | undefined;
|
|
6124
6490
|
currency: string;
|
|
6125
6491
|
note?: string | undefined;
|
|
@@ -6134,6 +6500,10 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
6134
6500
|
id: string;
|
|
6135
6501
|
sku?: string | undefined;
|
|
6136
6502
|
name: string;
|
|
6503
|
+
categories?: {
|
|
6504
|
+
id: string;
|
|
6505
|
+
name: string;
|
|
6506
|
+
}[] | undefined;
|
|
6137
6507
|
} | undefined;
|
|
6138
6508
|
quantity: number;
|
|
6139
6509
|
unit_price: number;
|
|
@@ -6182,7 +6552,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
6182
6552
|
name?: string | undefined;
|
|
6183
6553
|
}[] | undefined;
|
|
6184
6554
|
}>;
|
|
6185
|
-
getPaymentMethods(params
|
|
6555
|
+
getPaymentMethods(params?: {} | undefined): import("../types/api").RequestData<{
|
|
6186
6556
|
id: string;
|
|
6187
6557
|
source_ref: {
|
|
6188
6558
|
id?: string | undefined;
|
|
@@ -6191,7 +6561,9 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
6191
6561
|
name: string;
|
|
6192
6562
|
active: boolean;
|
|
6193
6563
|
}[]>;
|
|
6194
|
-
getProductCategories(params
|
|
6564
|
+
getProductCategories(params?: {
|
|
6565
|
+
only_parents?: "true" | "false" | undefined;
|
|
6566
|
+
} | undefined): import("../types/api").RequestData<{
|
|
6195
6567
|
id: string;
|
|
6196
6568
|
source_ref: {
|
|
6197
6569
|
id?: string | undefined;
|
|
@@ -6200,7 +6572,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
6200
6572
|
name: string;
|
|
6201
6573
|
parent_id?: string | undefined;
|
|
6202
6574
|
}[]>;
|
|
6203
|
-
getTaxes(params
|
|
6575
|
+
getTaxes(params?: {} | undefined): import("../types/api").RequestData<{
|
|
6204
6576
|
id: string;
|
|
6205
6577
|
source_ref: {
|
|
6206
6578
|
id?: string | undefined;
|
|
@@ -6210,7 +6582,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
6210
6582
|
rate: number;
|
|
6211
6583
|
country?: string | undefined;
|
|
6212
6584
|
}[]>;
|
|
6213
|
-
getCountries(params
|
|
6585
|
+
getCountries(params?: {} | undefined): import("../types/api").RequestData<{
|
|
6214
6586
|
code: string;
|
|
6215
6587
|
name: string;
|
|
6216
6588
|
}[]>;
|
|
@@ -6305,6 +6677,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
6305
6677
|
}[]>;
|
|
6306
6678
|
deleteDataStoreData: (dataStoreId: string, dataStoreDataId: string) => Promise<import("../types/sync").SimpleResponseModel>;
|
|
6307
6679
|
logData: (logs: import("../types/consumers").ConsumerLog[]) => Promise<import("../types/sync").SimpleResponseModel>;
|
|
6680
|
+
setConnectionId: (connectionId: string) => Promise<void>;
|
|
6681
|
+
setIntegrationId: (integrationId: string) => Promise<void>;
|
|
6308
6682
|
}, context: any) => any, log?: boolean) => Promise<void>;
|
|
6309
6683
|
flowId: string;
|
|
6310
6684
|
name: string;
|
|
@@ -6407,6 +6781,26 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
6407
6781
|
total_discount?: number | undefined;
|
|
6408
6782
|
total_refund?: number | undefined;
|
|
6409
6783
|
total_tip?: number | undefined;
|
|
6784
|
+
currency?: string | undefined;
|
|
6785
|
+
country?: string | undefined;
|
|
6786
|
+
loyalty?: number | undefined;
|
|
6787
|
+
customer_id?: string | undefined;
|
|
6788
|
+
location_id?: string | undefined;
|
|
6789
|
+
taxes?: {
|
|
6790
|
+
tax_rate: number;
|
|
6791
|
+
tax_amount: number;
|
|
6792
|
+
total: number;
|
|
6793
|
+
}[] | undefined;
|
|
6794
|
+
payments: {
|
|
6795
|
+
id?: string | undefined;
|
|
6796
|
+
payment_method_id?: string | undefined;
|
|
6797
|
+
payment_method_name?: string | undefined;
|
|
6798
|
+
total: number;
|
|
6799
|
+
tip?: number | undefined;
|
|
6800
|
+
status?: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised" | undefined;
|
|
6801
|
+
currency?: string | undefined;
|
|
6802
|
+
date?: string | undefined;
|
|
6803
|
+
}[];
|
|
6410
6804
|
items: {
|
|
6411
6805
|
id: string;
|
|
6412
6806
|
quantity: number;
|
|
@@ -6422,28 +6816,12 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
6422
6816
|
product_id?: string | undefined;
|
|
6423
6817
|
accounting_category_id?: string | undefined;
|
|
6424
6818
|
}[];
|
|
6425
|
-
payments: {
|
|
6426
|
-
id?: string | undefined;
|
|
6427
|
-
payment_method_id?: string | undefined;
|
|
6428
|
-
payment_method_name?: string | undefined;
|
|
6429
|
-
total: number;
|
|
6430
|
-
tip?: number | undefined;
|
|
6431
|
-
status?: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised" | undefined;
|
|
6432
|
-
currency?: string | undefined;
|
|
6433
|
-
date?: string | undefined;
|
|
6434
|
-
}[];
|
|
6435
|
-
currency?: string | undefined;
|
|
6436
|
-
country?: string | undefined;
|
|
6437
|
-
loyalty?: number | undefined;
|
|
6438
|
-
customer_id?: string | undefined;
|
|
6439
|
-
location_id?: string | undefined;
|
|
6440
|
-
taxes?: {
|
|
6441
|
-
tax_rate: number;
|
|
6442
|
-
tax_amount: number;
|
|
6443
|
-
total: number;
|
|
6444
|
-
}[] | undefined;
|
|
6445
6819
|
}[]>;
|
|
6446
|
-
getCustomers(params
|
|
6820
|
+
getCustomers(params?: {
|
|
6821
|
+
search?: string | undefined;
|
|
6822
|
+
email?: string | undefined;
|
|
6823
|
+
phone?: string | undefined;
|
|
6824
|
+
} | undefined): import("../types/api").RequestData<{
|
|
6447
6825
|
id: string;
|
|
6448
6826
|
first_name?: string | undefined;
|
|
6449
6827
|
last_name?: string | undefined;
|
|
@@ -6476,21 +6854,16 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
6476
6854
|
total_discount?: number | undefined;
|
|
6477
6855
|
total_refund?: number | undefined;
|
|
6478
6856
|
total_tip?: number | undefined;
|
|
6479
|
-
|
|
6480
|
-
|
|
6481
|
-
|
|
6482
|
-
|
|
6483
|
-
|
|
6857
|
+
currency?: string | undefined;
|
|
6858
|
+
country?: string | undefined;
|
|
6859
|
+
loyalty?: number | undefined;
|
|
6860
|
+
customer_id?: string | undefined;
|
|
6861
|
+
location_id?: string | undefined;
|
|
6862
|
+
taxes?: {
|
|
6863
|
+
tax_rate: number;
|
|
6484
6864
|
tax_amount: number;
|
|
6485
|
-
|
|
6486
|
-
|
|
6487
|
-
discounts?: {
|
|
6488
|
-
name?: string | undefined;
|
|
6489
|
-
total: number;
|
|
6490
|
-
}[] | undefined;
|
|
6491
|
-
product_id?: string | undefined;
|
|
6492
|
-
accounting_category_id?: string | undefined;
|
|
6493
|
-
}[];
|
|
6865
|
+
total: number;
|
|
6866
|
+
}[] | undefined;
|
|
6494
6867
|
payments: {
|
|
6495
6868
|
id?: string | undefined;
|
|
6496
6869
|
payment_method_id?: string | undefined;
|
|
@@ -6501,16 +6874,21 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
6501
6874
|
currency?: string | undefined;
|
|
6502
6875
|
date?: string | undefined;
|
|
6503
6876
|
}[];
|
|
6504
|
-
|
|
6505
|
-
|
|
6506
|
-
|
|
6507
|
-
|
|
6508
|
-
location_id?: string | undefined;
|
|
6509
|
-
taxes?: {
|
|
6510
|
-
tax_rate: number;
|
|
6511
|
-
tax_amount: number;
|
|
6877
|
+
items: {
|
|
6878
|
+
id: string;
|
|
6879
|
+
quantity: number;
|
|
6880
|
+
unit_price: number;
|
|
6512
6881
|
total: number;
|
|
6513
|
-
|
|
6882
|
+
tax_amount: number;
|
|
6883
|
+
tax_rate?: number | undefined;
|
|
6884
|
+
description?: string | undefined;
|
|
6885
|
+
discounts?: {
|
|
6886
|
+
name?: string | undefined;
|
|
6887
|
+
total: number;
|
|
6888
|
+
}[] | undefined;
|
|
6889
|
+
product_id?: string | undefined;
|
|
6890
|
+
accounting_category_id?: string | undefined;
|
|
6891
|
+
}[];
|
|
6514
6892
|
}>;
|
|
6515
6893
|
getCustomer(customerId: string): import("../types/api").RequestData<{
|
|
6516
6894
|
id: string;
|
|
@@ -6568,12 +6946,17 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
6568
6946
|
loyalty?: number | undefined;
|
|
6569
6947
|
birthdate?: string | undefined;
|
|
6570
6948
|
}>;
|
|
6571
|
-
getPaymentMethods(params
|
|
6949
|
+
getPaymentMethods(params?: {
|
|
6950
|
+
location_id?: string | undefined;
|
|
6951
|
+
} | undefined): import("../types/api").RequestData<{
|
|
6572
6952
|
id: string;
|
|
6573
6953
|
name: string;
|
|
6574
6954
|
extra?: string | undefined;
|
|
6575
6955
|
}[]>;
|
|
6576
|
-
getProductCategories(params
|
|
6956
|
+
getProductCategories(params?: {
|
|
6957
|
+
location_id?: string | undefined;
|
|
6958
|
+
only_parents?: "true" | "false" | undefined;
|
|
6959
|
+
} | undefined): import("../types/api").RequestData<{
|
|
6577
6960
|
id: string;
|
|
6578
6961
|
source_ref: {
|
|
6579
6962
|
id?: string | undefined;
|
|
@@ -6582,7 +6965,9 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
6582
6965
|
name: string;
|
|
6583
6966
|
parent_id?: string | undefined;
|
|
6584
6967
|
}[]>;
|
|
6585
|
-
getProducts(params
|
|
6968
|
+
getProducts(params?: {
|
|
6969
|
+
location_id?: string | undefined;
|
|
6970
|
+
} | undefined): import("../types/api").RequestData<{
|
|
6586
6971
|
id: string;
|
|
6587
6972
|
categories?: string[] | undefined;
|
|
6588
6973
|
name: string;
|
|
@@ -6606,7 +6991,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
6606
6991
|
total: number;
|
|
6607
6992
|
}[] | undefined;
|
|
6608
6993
|
}>;
|
|
6609
|
-
getClosure(date: string, params
|
|
6994
|
+
getClosure(date: string, params?: {
|
|
6610
6995
|
location_id?: string | undefined;
|
|
6611
6996
|
} | undefined): import("../types/api").RequestData<{
|
|
6612
6997
|
date: string;
|
|
@@ -6639,6 +7024,26 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
6639
7024
|
total_discount?: number | undefined;
|
|
6640
7025
|
total_refund?: number | undefined;
|
|
6641
7026
|
total_tip?: number | undefined;
|
|
7027
|
+
currency?: string | undefined;
|
|
7028
|
+
country?: string | undefined;
|
|
7029
|
+
loyalty?: number | undefined;
|
|
7030
|
+
customer_id?: string | undefined;
|
|
7031
|
+
location_id?: string | undefined;
|
|
7032
|
+
taxes?: {
|
|
7033
|
+
tax_rate: number;
|
|
7034
|
+
tax_amount: number;
|
|
7035
|
+
total: number;
|
|
7036
|
+
}[] | undefined;
|
|
7037
|
+
payments: {
|
|
7038
|
+
id?: string | undefined;
|
|
7039
|
+
payment_method_id?: string | undefined;
|
|
7040
|
+
payment_method_name?: string | undefined;
|
|
7041
|
+
total: number;
|
|
7042
|
+
tip?: number | undefined;
|
|
7043
|
+
status?: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised" | undefined;
|
|
7044
|
+
currency?: string | undefined;
|
|
7045
|
+
date?: string | undefined;
|
|
7046
|
+
}[];
|
|
6642
7047
|
items: {
|
|
6643
7048
|
id: string;
|
|
6644
7049
|
quantity: number;
|
|
@@ -6654,16 +7059,53 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
6654
7059
|
product_id?: string | undefined;
|
|
6655
7060
|
accounting_category_id?: string | undefined;
|
|
6656
7061
|
}[];
|
|
6657
|
-
|
|
7062
|
+
}>;
|
|
7063
|
+
getAccountingCategories(params?: {} | undefined): import("../types/api").RequestData<{
|
|
7064
|
+
id: string;
|
|
7065
|
+
name: string;
|
|
7066
|
+
id_parent?: string | undefined;
|
|
7067
|
+
code?: string | undefined;
|
|
7068
|
+
ledger_account_code?: string | undefined;
|
|
7069
|
+
posting_account_code?: string | undefined;
|
|
7070
|
+
}[]>;
|
|
7071
|
+
}>;
|
|
7072
|
+
pms: import("../types/api").ApiFor<{
|
|
7073
|
+
getLocations(): import("../types/api").RequestData<{
|
|
7074
|
+
id: string;
|
|
7075
|
+
name: string;
|
|
7076
|
+
timezone?: string | undefined;
|
|
7077
|
+
address?: {
|
|
7078
|
+
address_type?: string | undefined;
|
|
7079
|
+
name?: string | undefined;
|
|
7080
|
+
street?: string | undefined;
|
|
7081
|
+
number?: string | undefined;
|
|
7082
|
+
box?: string | undefined;
|
|
7083
|
+
city?: string | undefined;
|
|
7084
|
+
postal_code?: string | undefined;
|
|
7085
|
+
country?: string | undefined;
|
|
7086
|
+
} | undefined;
|
|
7087
|
+
}[]>;
|
|
7088
|
+
getOrders(params: {
|
|
7089
|
+
date_from: string;
|
|
7090
|
+
date_to: string;
|
|
7091
|
+
location_id?: string | undefined;
|
|
7092
|
+
state?: "closed" | "consumed" | undefined;
|
|
7093
|
+
}): import("../types/api").RequestData<{
|
|
7094
|
+
id: string;
|
|
7095
|
+
source_ref: {
|
|
6658
7096
|
id?: string | undefined;
|
|
6659
|
-
|
|
6660
|
-
|
|
6661
|
-
|
|
6662
|
-
|
|
6663
|
-
|
|
6664
|
-
|
|
6665
|
-
|
|
6666
|
-
|
|
7097
|
+
model?: string | undefined;
|
|
7098
|
+
};
|
|
7099
|
+
order_number?: string | undefined;
|
|
7100
|
+
creation_date: string;
|
|
7101
|
+
closing_date?: string | undefined;
|
|
7102
|
+
service_date?: string | undefined;
|
|
7103
|
+
device_id?: string | undefined;
|
|
7104
|
+
total: number;
|
|
7105
|
+
tax_amount: number;
|
|
7106
|
+
total_discount?: number | undefined;
|
|
7107
|
+
total_refund?: number | undefined;
|
|
7108
|
+
total_tip?: number | undefined;
|
|
6667
7109
|
currency?: string | undefined;
|
|
6668
7110
|
country?: string | undefined;
|
|
6669
7111
|
loyalty?: number | undefined;
|
|
@@ -6674,9 +7116,68 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
6674
7116
|
tax_amount: number;
|
|
6675
7117
|
total: number;
|
|
6676
7118
|
}[] | undefined;
|
|
7119
|
+
items: {
|
|
7120
|
+
id: string;
|
|
7121
|
+
source_ref: {
|
|
7122
|
+
id?: string | undefined;
|
|
7123
|
+
model?: string | undefined;
|
|
7124
|
+
};
|
|
7125
|
+
quantity: number;
|
|
7126
|
+
unit_price: number;
|
|
7127
|
+
total: number;
|
|
7128
|
+
tax_amount: number;
|
|
7129
|
+
tax_rate?: number | undefined;
|
|
7130
|
+
description?: string | undefined;
|
|
7131
|
+
discounts?: {
|
|
7132
|
+
name?: string | undefined;
|
|
7133
|
+
total: number;
|
|
7134
|
+
}[] | undefined;
|
|
7135
|
+
product_id?: string | undefined;
|
|
7136
|
+
accounting_category_id?: string | undefined;
|
|
7137
|
+
}[];
|
|
7138
|
+
service_id?: string | undefined;
|
|
7139
|
+
}[]>;
|
|
7140
|
+
getPaymentMethods(params?: {
|
|
7141
|
+
location_id?: string | undefined;
|
|
7142
|
+
} | undefined): import("../types/api").RequestData<{
|
|
7143
|
+
id: string;
|
|
7144
|
+
source_ref: {
|
|
7145
|
+
id?: string | undefined;
|
|
7146
|
+
model?: string | undefined;
|
|
7147
|
+
};
|
|
7148
|
+
name: string;
|
|
7149
|
+
extra?: string | undefined;
|
|
7150
|
+
ledger_account_code?: string | undefined;
|
|
7151
|
+
}[]>;
|
|
7152
|
+
getClosure(date: string, params?: {
|
|
7153
|
+
location_id?: string | undefined;
|
|
7154
|
+
} | undefined): import("../types/api").RequestData<{
|
|
7155
|
+
date: string;
|
|
7156
|
+
status: "open" | "closed";
|
|
6677
7157
|
}>;
|
|
6678
|
-
|
|
7158
|
+
getPayments(params: {
|
|
7159
|
+
date_from: string;
|
|
7160
|
+
date_to: string;
|
|
7161
|
+
}): import("../types/api").RequestData<{
|
|
7162
|
+
id?: string | undefined;
|
|
7163
|
+
source_ref: {
|
|
7164
|
+
id?: string | undefined;
|
|
7165
|
+
model?: string | undefined;
|
|
7166
|
+
};
|
|
7167
|
+
payment_method_id?: string | undefined;
|
|
7168
|
+
payment_method_name?: string | undefined;
|
|
7169
|
+
total: number;
|
|
7170
|
+
tip?: number | undefined;
|
|
7171
|
+
status?: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised" | undefined;
|
|
7172
|
+
currency?: string | undefined;
|
|
7173
|
+
date?: string | undefined;
|
|
7174
|
+
}[]>;
|
|
7175
|
+
getAccountingCategories(params?: {} | undefined): import("../types/api").RequestData<{
|
|
6679
7176
|
id: string;
|
|
7177
|
+
source_ref: {
|
|
7178
|
+
id?: string | undefined;
|
|
7179
|
+
model?: string | undefined;
|
|
7180
|
+
};
|
|
6680
7181
|
name: string;
|
|
6681
7182
|
id_parent?: string | undefined;
|
|
6682
7183
|
code?: string | undefined;
|
|
@@ -6685,19 +7186,15 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
6685
7186
|
}[]>;
|
|
6686
7187
|
}>;
|
|
6687
7188
|
accounting: import("../types/api").ApiFor<{
|
|
6688
|
-
getAnalyticPlans(params
|
|
7189
|
+
getAnalyticPlans(params?: {
|
|
6689
7190
|
folder_id?: string | undefined;
|
|
6690
|
-
page?: number | undefined;
|
|
6691
|
-
size?: number | undefined;
|
|
6692
7191
|
} | undefined): import("../types/api").RequestData<{
|
|
6693
7192
|
id: string;
|
|
6694
7193
|
name: string;
|
|
6695
7194
|
active?: boolean | undefined;
|
|
6696
7195
|
}[]>;
|
|
6697
|
-
getClients(params
|
|
7196
|
+
getClients(params?: {
|
|
6698
7197
|
folder_id?: string | undefined;
|
|
6699
|
-
page?: number | undefined;
|
|
6700
|
-
size?: number | undefined;
|
|
6701
7198
|
} | undefined): import("../types/api").RequestData<{
|
|
6702
7199
|
external_reference?: string | undefined;
|
|
6703
7200
|
first_name?: string | undefined;
|
|
@@ -6767,7 +7264,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
6767
7264
|
country: string;
|
|
6768
7265
|
}[];
|
|
6769
7266
|
account_number?: string | undefined;
|
|
6770
|
-
}, params
|
|
7267
|
+
}, params?: {
|
|
6771
7268
|
force_merge?: string | undefined;
|
|
6772
7269
|
folder_id?: string | undefined;
|
|
6773
7270
|
} | undefined): import("../types/api").RequestData<{
|
|
@@ -6806,7 +7303,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
6806
7303
|
company_number?: string | undefined;
|
|
6807
7304
|
id?: string | undefined;
|
|
6808
7305
|
}>;
|
|
6809
|
-
getClient(clientId: string, params
|
|
7306
|
+
getClient(clientId: string, params?: {
|
|
6810
7307
|
folder_id?: string | undefined;
|
|
6811
7308
|
} | undefined): import("../types/api").RequestData<{
|
|
6812
7309
|
external_reference?: string | undefined;
|
|
@@ -6876,7 +7373,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
6876
7373
|
postal_code?: string | undefined;
|
|
6877
7374
|
country?: string | undefined;
|
|
6878
7375
|
}[] | undefined;
|
|
6879
|
-
}, params
|
|
7376
|
+
}, params?: {
|
|
6880
7377
|
folder_id?: string | undefined;
|
|
6881
7378
|
} | undefined): import("../types/api").RequestData<{
|
|
6882
7379
|
external_reference?: string | undefined;
|
|
@@ -6914,10 +7411,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
6914
7411
|
company_number?: string | undefined;
|
|
6915
7412
|
id?: string | undefined;
|
|
6916
7413
|
}>;
|
|
6917
|
-
getSuppliers(params
|
|
7414
|
+
getSuppliers(params?: {
|
|
6918
7415
|
folder_id?: string | undefined;
|
|
6919
|
-
page?: number | undefined;
|
|
6920
|
-
size?: number | undefined;
|
|
6921
7416
|
} | undefined): import("../types/api").RequestData<{
|
|
6922
7417
|
external_reference?: string | undefined;
|
|
6923
7418
|
first_name?: string | undefined;
|
|
@@ -6987,7 +7482,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
6987
7482
|
country: string;
|
|
6988
7483
|
}[];
|
|
6989
7484
|
account_number?: string | undefined;
|
|
6990
|
-
}, params
|
|
7485
|
+
}, params?: {
|
|
6991
7486
|
force_merge?: string | undefined;
|
|
6992
7487
|
folder_id?: string | undefined;
|
|
6993
7488
|
} | undefined): import("../types/api").RequestData<{
|
|
@@ -7026,7 +7521,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
7026
7521
|
company_number?: string | undefined;
|
|
7027
7522
|
id?: string | undefined;
|
|
7028
7523
|
}>;
|
|
7029
|
-
getSupplier(supplierId: string, params
|
|
7524
|
+
getSupplier(supplierId: string, params?: {
|
|
7030
7525
|
folder_id?: string | undefined;
|
|
7031
7526
|
} | undefined): import("../types/api").RequestData<{
|
|
7032
7527
|
external_reference?: string | undefined;
|
|
@@ -7096,7 +7591,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
7096
7591
|
postal_code?: string | undefined;
|
|
7097
7592
|
country?: string | undefined;
|
|
7098
7593
|
}[] | undefined;
|
|
7099
|
-
}, params
|
|
7594
|
+
}, params?: {
|
|
7100
7595
|
folder_id?: string | undefined;
|
|
7101
7596
|
} | undefined): import("../types/api").RequestData<{
|
|
7102
7597
|
external_reference?: string | undefined;
|
|
@@ -7167,6 +7662,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
7167
7662
|
iban: string;
|
|
7168
7663
|
};
|
|
7169
7664
|
} | undefined;
|
|
7665
|
+
shipping_country?: string | undefined;
|
|
7170
7666
|
lines: {
|
|
7171
7667
|
line_number?: number | undefined;
|
|
7172
7668
|
description: string;
|
|
@@ -7181,7 +7677,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
7181
7677
|
tax_code: string;
|
|
7182
7678
|
analytic_account?: string | undefined;
|
|
7183
7679
|
}[];
|
|
7184
|
-
}, params
|
|
7680
|
+
}, params?: {
|
|
7185
7681
|
force_financial_period?: string | undefined;
|
|
7186
7682
|
regroup_lines?: "true" | "false" | undefined;
|
|
7187
7683
|
folder_id?: string | undefined;
|
|
@@ -7263,6 +7759,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
7263
7759
|
iban: string;
|
|
7264
7760
|
};
|
|
7265
7761
|
} | undefined;
|
|
7762
|
+
shipping_country?: string | undefined;
|
|
7266
7763
|
lines: {
|
|
7267
7764
|
line_number?: number | undefined;
|
|
7268
7765
|
description: string;
|
|
@@ -7283,7 +7780,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
7283
7780
|
}[];
|
|
7284
7781
|
}[] | undefined;
|
|
7285
7782
|
}[];
|
|
7286
|
-
}, params
|
|
7783
|
+
}, params?: {
|
|
7287
7784
|
force_financial_period?: string | undefined;
|
|
7288
7785
|
regroup_lines?: "true" | "false" | undefined;
|
|
7289
7786
|
folder_id?: string | undefined;
|
|
@@ -7338,7 +7835,14 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
7338
7835
|
}[] | undefined;
|
|
7339
7836
|
}[];
|
|
7340
7837
|
}>;
|
|
7341
|
-
getInvoicesByType(invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund", params
|
|
7838
|
+
getInvoicesByType(invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund", params?: {
|
|
7839
|
+
date_from?: string | undefined;
|
|
7840
|
+
date_to?: string | undefined;
|
|
7841
|
+
folder_id?: string | undefined;
|
|
7842
|
+
journal_ids?: string | undefined;
|
|
7843
|
+
include_payments?: "true" | "false" | undefined;
|
|
7844
|
+
payment_status?: "all" | "paid" | "unpaid" | undefined;
|
|
7845
|
+
} | undefined): import("../types/api").RequestData<{
|
|
7342
7846
|
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
7343
7847
|
invoice_number?: string | undefined;
|
|
7344
7848
|
currency: string;
|
|
@@ -7383,7 +7887,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
7383
7887
|
analytic_account?: string | undefined;
|
|
7384
7888
|
}[];
|
|
7385
7889
|
}[]>;
|
|
7386
|
-
getInvoice(invoiceId: string, params
|
|
7890
|
+
getInvoice(invoiceId: string, params?: {
|
|
7387
7891
|
include_payments?: "true" | "false" | undefined;
|
|
7388
7892
|
folder_id?: string | undefined;
|
|
7389
7893
|
} | undefined): import("../types/api").RequestData<{
|
|
@@ -7431,7 +7935,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
7431
7935
|
analytic_account?: string | undefined;
|
|
7432
7936
|
}[];
|
|
7433
7937
|
}>;
|
|
7434
|
-
getInvoiceWithMultiplePlans(invoiceId: string, params
|
|
7938
|
+
getInvoiceWithMultiplePlans(invoiceId: string, params?: {
|
|
7435
7939
|
include_payments?: "true" | "false" | undefined;
|
|
7436
7940
|
folder_id?: string | undefined;
|
|
7437
7941
|
} | undefined): import("../types/api").RequestData<{
|
|
@@ -7485,7 +7989,14 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
7485
7989
|
}[] | undefined;
|
|
7486
7990
|
}[];
|
|
7487
7991
|
}>;
|
|
7488
|
-
getInvoicesByTypeWithMultiplePlans(invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund", params
|
|
7992
|
+
getInvoicesByTypeWithMultiplePlans(invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund", params?: {
|
|
7993
|
+
date_from?: string | undefined;
|
|
7994
|
+
date_to?: string | undefined;
|
|
7995
|
+
folder_id?: string | undefined;
|
|
7996
|
+
journal_ids?: string | undefined;
|
|
7997
|
+
include_payments?: "true" | "false" | undefined;
|
|
7998
|
+
payment_status?: "all" | "paid" | "unpaid" | undefined;
|
|
7999
|
+
} | undefined): import("../types/api").RequestData<{
|
|
7489
8000
|
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
7490
8001
|
invoice_number?: string | undefined;
|
|
7491
8002
|
currency: string;
|
|
@@ -7541,7 +8052,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
7541
8052
|
code: string;
|
|
7542
8053
|
name: string;
|
|
7543
8054
|
currency: string;
|
|
7544
|
-
}, params
|
|
8055
|
+
}, params?: {
|
|
7545
8056
|
folder_id?: string | undefined;
|
|
7546
8057
|
} | undefined): import("../types/api").RequestData<{
|
|
7547
8058
|
id: string;
|
|
@@ -7553,10 +8064,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
7553
8064
|
credit?: number | undefined;
|
|
7554
8065
|
debit?: number | undefined;
|
|
7555
8066
|
}>;
|
|
7556
|
-
getAnalyticAccounts(params
|
|
8067
|
+
getAnalyticAccounts(params?: {
|
|
7557
8068
|
folder_id?: string | undefined;
|
|
7558
|
-
page?: number | undefined;
|
|
7559
|
-
size?: number | undefined;
|
|
7560
8069
|
} | undefined): import("../types/api").RequestData<{
|
|
7561
8070
|
id: string;
|
|
7562
8071
|
active: boolean;
|
|
@@ -7572,7 +8081,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
7572
8081
|
code: string;
|
|
7573
8082
|
name: string;
|
|
7574
8083
|
currency: string;
|
|
7575
|
-
}, params
|
|
8084
|
+
}, params?: {
|
|
7576
8085
|
folder_id?: string | undefined;
|
|
7577
8086
|
} | undefined): import("../types/api").RequestData<{
|
|
7578
8087
|
id: string;
|
|
@@ -7585,7 +8094,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
7585
8094
|
debit?: number | undefined;
|
|
7586
8095
|
analytic_plan: string;
|
|
7587
8096
|
}>;
|
|
7588
|
-
getAnalyticAccount(analytic_account_id: string, params
|
|
8097
|
+
getAnalyticAccount(analytic_account_id: string, params?: {
|
|
7589
8098
|
folder_id?: string | undefined;
|
|
7590
8099
|
} | undefined): import("../types/api").RequestData<{
|
|
7591
8100
|
id: string;
|
|
@@ -7602,7 +8111,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
7602
8111
|
code?: string | undefined;
|
|
7603
8112
|
name?: string | undefined;
|
|
7604
8113
|
currency?: string | undefined;
|
|
7605
|
-
}, params
|
|
8114
|
+
}, params?: {
|
|
7606
8115
|
folder_id?: string | undefined;
|
|
7607
8116
|
} | undefined): import("../types/api").RequestData<{
|
|
7608
8117
|
id: string;
|
|
@@ -7614,7 +8123,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
7614
8123
|
credit?: number | undefined;
|
|
7615
8124
|
debit?: number | undefined;
|
|
7616
8125
|
}>;
|
|
7617
|
-
getAnalyticAccountWithMultiplePlans(analytic_account_id: string, analytic_plan: string, params
|
|
8126
|
+
getAnalyticAccountWithMultiplePlans(analytic_account_id: string, analytic_plan: string, params?: {
|
|
7618
8127
|
folder_id?: string | undefined;
|
|
7619
8128
|
} | undefined): import("../types/api").RequestData<{
|
|
7620
8129
|
id: string;
|
|
@@ -7632,7 +8141,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
7632
8141
|
code?: string | undefined;
|
|
7633
8142
|
name?: string | undefined;
|
|
7634
8143
|
currency?: string | undefined;
|
|
7635
|
-
}, params
|
|
8144
|
+
}, params?: {
|
|
7636
8145
|
folder_id?: string | undefined;
|
|
7637
8146
|
} | undefined): import("../types/api").RequestData<{
|
|
7638
8147
|
id: string;
|
|
@@ -7645,10 +8154,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
7645
8154
|
debit?: number | undefined;
|
|
7646
8155
|
analytic_plan: string;
|
|
7647
8156
|
}>;
|
|
7648
|
-
getAnalyticAccountsWithMultiplePlans(params
|
|
8157
|
+
getAnalyticAccountsWithMultiplePlans(params?: {
|
|
7649
8158
|
folder_id?: string | undefined;
|
|
7650
|
-
page?: number | undefined;
|
|
7651
|
-
size?: number | undefined;
|
|
7652
8159
|
} | undefined): import("../types/api").RequestData<{
|
|
7653
8160
|
id: string;
|
|
7654
8161
|
active: boolean;
|
|
@@ -7729,7 +8236,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
7729
8236
|
}[] | undefined;
|
|
7730
8237
|
}[] | undefined;
|
|
7731
8238
|
}[]>;
|
|
7732
|
-
getPaymentsByInvoiceId(invoice_id: string, params
|
|
8239
|
+
getPaymentsByInvoiceId(invoice_id: string, params?: {
|
|
7733
8240
|
folder_id?: string | undefined;
|
|
7734
8241
|
page?: number | undefined;
|
|
7735
8242
|
size?: number | undefined;
|
|
@@ -7747,20 +8254,16 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
7747
8254
|
communication?: string | undefined;
|
|
7748
8255
|
matching_number?: string | undefined;
|
|
7749
8256
|
}[]>;
|
|
7750
|
-
getJournals(params
|
|
8257
|
+
getJournals(params?: {
|
|
7751
8258
|
folder_id?: string | undefined;
|
|
7752
|
-
page?: number | undefined;
|
|
7753
|
-
size?: number | undefined;
|
|
7754
8259
|
} | undefined): import("../types/api").RequestData<{
|
|
7755
8260
|
id: string;
|
|
7756
8261
|
code?: string | undefined;
|
|
7757
8262
|
name: string;
|
|
7758
8263
|
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
7759
8264
|
}[]>;
|
|
7760
|
-
getVatCodes(params
|
|
8265
|
+
getVatCodes(params?: {
|
|
7761
8266
|
folder_id?: string | undefined;
|
|
7762
|
-
page?: number | undefined;
|
|
7763
|
-
size?: number | undefined;
|
|
7764
8267
|
} | undefined): import("../types/api").RequestData<{
|
|
7765
8268
|
id: string;
|
|
7766
8269
|
code?: string | undefined;
|
|
@@ -7771,7 +8274,12 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
7771
8274
|
deductible_account?: string | undefined;
|
|
7772
8275
|
payable_account?: string | undefined;
|
|
7773
8276
|
}[]>;
|
|
7774
|
-
getMiscOperations(params
|
|
8277
|
+
getMiscOperations(params?: {
|
|
8278
|
+
date_from?: string | undefined;
|
|
8279
|
+
date_to?: string | undefined;
|
|
8280
|
+
folder_id?: string | undefined;
|
|
8281
|
+
journal_ids?: string | undefined;
|
|
8282
|
+
} | undefined): import("../types/api").RequestData<{
|
|
7775
8283
|
operation_number?: string | undefined;
|
|
7776
8284
|
currency: string;
|
|
7777
8285
|
currency_exchange_rate?: number | undefined;
|
|
@@ -7805,7 +8313,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
7805
8313
|
operation_date: string;
|
|
7806
8314
|
journal_id?: string | undefined;
|
|
7807
8315
|
status?: "draft" | "posted" | undefined;
|
|
7808
|
-
}, params
|
|
8316
|
+
}, params?: {
|
|
7809
8317
|
folder_id?: string | undefined;
|
|
7810
8318
|
} | undefined): import("../types/api").RequestData<{
|
|
7811
8319
|
operation_number?: string | undefined;
|
|
@@ -7825,7 +8333,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
7825
8333
|
status: "cancelled" | "draft" | "posted" | "matched";
|
|
7826
8334
|
id: string;
|
|
7827
8335
|
}>;
|
|
7828
|
-
getMiscOperation(operation_id: string, params
|
|
8336
|
+
getMiscOperation(operation_id: string, params?: {
|
|
7829
8337
|
folder_id?: string | undefined;
|
|
7830
8338
|
} | undefined): import("../types/api").RequestData<{
|
|
7831
8339
|
operation_number?: string | undefined;
|
|
@@ -7847,24 +8355,25 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
7847
8355
|
}>;
|
|
7848
8356
|
attachPDF(invoice_id: string, attachment: {
|
|
7849
8357
|
base64_string: string;
|
|
7850
|
-
}, params
|
|
8358
|
+
}, params?: {
|
|
7851
8359
|
overwrite_existing?: "true" | "false" | undefined;
|
|
7852
8360
|
folder_id?: string | undefined;
|
|
7853
8361
|
} | undefined): import("../types/api").RequestData<{
|
|
7854
8362
|
content: {
|
|
7855
|
-
|
|
8363
|
+
'application/json': unknown;
|
|
7856
8364
|
};
|
|
7857
8365
|
}>;
|
|
7858
8366
|
getAttachments(params: {
|
|
8367
|
+
folder_id?: string | undefined;
|
|
7859
8368
|
type: "invoice" | "entry";
|
|
7860
8369
|
document_id: string;
|
|
7861
|
-
folder_id?: string | undefined;
|
|
7862
|
-
page?: number | undefined;
|
|
7863
|
-
size?: number | undefined;
|
|
7864
8370
|
}): import("../types/api").RequestData<{
|
|
7865
8371
|
base64_string: string;
|
|
7866
8372
|
}[]>;
|
|
7867
|
-
getChartOfAccounts(params
|
|
8373
|
+
getChartOfAccounts(params?: {
|
|
8374
|
+
classes?: string | undefined;
|
|
8375
|
+
folder_id?: string | undefined;
|
|
8376
|
+
} | undefined): import("../types/api").RequestData<{
|
|
7868
8377
|
number: string;
|
|
7869
8378
|
name: string;
|
|
7870
8379
|
active?: boolean | undefined;
|
|
@@ -7874,10 +8383,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
7874
8383
|
accounts: string[];
|
|
7875
8384
|
start?: string | undefined;
|
|
7876
8385
|
end: string;
|
|
7877
|
-
}, params
|
|
8386
|
+
}, params?: {
|
|
7878
8387
|
folder_id?: string | undefined;
|
|
7879
|
-
page?: number | undefined;
|
|
7880
|
-
size?: number | undefined;
|
|
7881
8388
|
} | undefined): import("../types/api").RequestData<{
|
|
7882
8389
|
account_number: string;
|
|
7883
8390
|
account_name?: string | undefined;
|
|
@@ -7885,10 +8392,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
7885
8392
|
credit: number;
|
|
7886
8393
|
balance: number;
|
|
7887
8394
|
}[]>;
|
|
7888
|
-
getEmployees(params
|
|
8395
|
+
getEmployees(params?: {
|
|
7889
8396
|
folder_id?: string | undefined;
|
|
7890
|
-
page?: number | undefined;
|
|
7891
|
-
size?: number | undefined;
|
|
7892
8397
|
} | undefined): import("../types/api").RequestData<{
|
|
7893
8398
|
id: string;
|
|
7894
8399
|
name: string;
|
|
@@ -7904,8 +8409,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
7904
8409
|
}[]>;
|
|
7905
8410
|
getOutstandings(params: {
|
|
7906
8411
|
folder_id?: string | undefined;
|
|
7907
|
-
unposted_allowed: "true" | "false";
|
|
7908
8412
|
type: "supplier" | "client";
|
|
8413
|
+
unposted_allowed: "true" | "false";
|
|
7909
8414
|
}): import("../types/api").RequestData<{
|
|
7910
8415
|
id: string;
|
|
7911
8416
|
number?: string | undefined;
|
|
@@ -7938,7 +8443,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
7938
8443
|
description?: string | undefined;
|
|
7939
8444
|
}[];
|
|
7940
8445
|
pdf?: string | undefined;
|
|
7941
|
-
}, params
|
|
8446
|
+
}, params?: {
|
|
7942
8447
|
financial_counterpart_account?: string | undefined;
|
|
7943
8448
|
folder_id?: string | undefined;
|
|
7944
8449
|
} | undefined): import("../types/api").RequestData<{
|
|
@@ -7972,7 +8477,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
7972
8477
|
description?: string | undefined;
|
|
7973
8478
|
}[];
|
|
7974
8479
|
pdf?: string | undefined;
|
|
7975
|
-
}, params
|
|
8480
|
+
}, params?: {
|
|
7976
8481
|
financial_counterpart_account?: string | undefined;
|
|
7977
8482
|
folder_id?: string | undefined;
|
|
7978
8483
|
} | undefined): import("../types/api").RequestData<{
|
|
@@ -8071,7 +8576,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
8071
8576
|
}[];
|
|
8072
8577
|
pdf?: string | undefined;
|
|
8073
8578
|
posted?: boolean | undefined;
|
|
8074
|
-
}, params
|
|
8579
|
+
}, params?: {
|
|
8075
8580
|
folder_id?: string | undefined;
|
|
8076
8581
|
} | undefined): import("../types/api").RequestData<{
|
|
8077
8582
|
reference?: string | undefined;
|
|
@@ -8106,7 +8611,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
8106
8611
|
matchEntries(body: {
|
|
8107
8612
|
entries: string[];
|
|
8108
8613
|
partner_id: string;
|
|
8109
|
-
}, params
|
|
8614
|
+
}, params?: {
|
|
8110
8615
|
folder_id?: string | undefined;
|
|
8111
8616
|
} | undefined): import("../types/api").RequestData<{
|
|
8112
8617
|
matching_number: string;
|
|
@@ -8116,17 +8621,17 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
8116
8621
|
id: string;
|
|
8117
8622
|
name: string;
|
|
8118
8623
|
selected?: boolean | undefined;
|
|
8624
|
+
vat?: string | undefined;
|
|
8625
|
+
company_number?: string | undefined;
|
|
8119
8626
|
}[]>;
|
|
8120
8627
|
}>;
|
|
8121
8628
|
invoicing: import("../types/api").ApiFor<{
|
|
8122
|
-
getInvoices(params
|
|
8123
|
-
invoice_type?: "all" | "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | undefined;
|
|
8124
|
-
payment_status?: "all" | "paid" | "unpaid" | undefined;
|
|
8629
|
+
getInvoices(params?: {
|
|
8125
8630
|
date_from?: string | undefined;
|
|
8126
8631
|
date_to?: string | undefined;
|
|
8632
|
+
payment_status?: "all" | "paid" | "unpaid" | undefined;
|
|
8633
|
+
invoice_type?: "all" | "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | undefined;
|
|
8127
8634
|
updated_after?: string | undefined;
|
|
8128
|
-
page?: number | undefined;
|
|
8129
|
-
size?: number | undefined;
|
|
8130
8635
|
} | undefined): import("../types/api").RequestData<{
|
|
8131
8636
|
id: string;
|
|
8132
8637
|
source_ref: {
|
|
@@ -8170,7 +8675,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
8170
8675
|
outstanding_amount?: number | undefined;
|
|
8171
8676
|
last_updated_on?: string | undefined;
|
|
8172
8677
|
}[]>;
|
|
8173
|
-
getInvoiceById(invoiceId: string, params
|
|
8678
|
+
getInvoiceById(invoiceId: string, params?: {
|
|
8174
8679
|
include_pdf?: "true" | "false" | undefined;
|
|
8175
8680
|
} | undefined): import("../types/api").RequestData<{
|
|
8176
8681
|
id: string;
|
|
@@ -8432,8 +8937,6 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
8432
8937
|
}>;
|
|
8433
8938
|
getContacts(params?: {
|
|
8434
8939
|
contact_type?: "prospect" | "customer" | "supplier" | "all" | undefined;
|
|
8435
|
-
page?: number | undefined;
|
|
8436
|
-
size?: number | undefined;
|
|
8437
8940
|
} | undefined): import("../types/api").RequestData<{
|
|
8438
8941
|
id: string;
|
|
8439
8942
|
source_ref: {
|
|
@@ -8844,7 +9347,13 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
8844
9347
|
id: string;
|
|
8845
9348
|
name: string;
|
|
8846
9349
|
}[]>;
|
|
8847
|
-
getOrders(params
|
|
9350
|
+
getOrders(params?: {
|
|
9351
|
+
date_from?: string | undefined;
|
|
9352
|
+
date_to?: string | undefined;
|
|
9353
|
+
updated_after?: string | undefined;
|
|
9354
|
+
include_detailed_refunds?: "true" | "false" | undefined;
|
|
9355
|
+
include_product_categories?: "true" | "false" | undefined;
|
|
9356
|
+
} | undefined): import("../types/api").RequestData<{
|
|
8848
9357
|
id: string;
|
|
8849
9358
|
source_ref: {
|
|
8850
9359
|
id?: string | undefined;
|
|
@@ -8890,8 +9399,9 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
8890
9399
|
created_on?: string | undefined;
|
|
8891
9400
|
last_updated_on?: string | undefined;
|
|
8892
9401
|
confirmed_on?: string | undefined;
|
|
9402
|
+
delivery_date?: string | undefined;
|
|
8893
9403
|
cancelled_on?: string | undefined;
|
|
8894
|
-
status: "cancelled" | "draft" | "confirmed" | "shipped" | "refunded";
|
|
9404
|
+
status: "cancelled" | "draft" | "cancelled_unpaid" | "confirmed" | "shipped" | "refunded";
|
|
8895
9405
|
discount_amount: number;
|
|
8896
9406
|
untaxed_amount_without_fees: number;
|
|
8897
9407
|
tax_amount_without_fees: number;
|
|
@@ -8915,6 +9425,10 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
8915
9425
|
id: string;
|
|
8916
9426
|
sku?: string | undefined;
|
|
8917
9427
|
name: string;
|
|
9428
|
+
categories?: {
|
|
9429
|
+
id: string;
|
|
9430
|
+
name: string;
|
|
9431
|
+
}[] | undefined;
|
|
8918
9432
|
} | undefined;
|
|
8919
9433
|
quantity: number;
|
|
8920
9434
|
untaxed_amount: number;
|
|
@@ -8932,6 +9446,13 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
8932
9446
|
tax_amount: number;
|
|
8933
9447
|
total: number;
|
|
8934
9448
|
}[] | undefined;
|
|
9449
|
+
transactions?: {
|
|
9450
|
+
id: string;
|
|
9451
|
+
payment_method_id?: string | undefined;
|
|
9452
|
+
payment_method_name?: string | undefined;
|
|
9453
|
+
amount: number;
|
|
9454
|
+
status: "failed" | "pending" | "success";
|
|
9455
|
+
}[] | undefined;
|
|
8935
9456
|
}[] | undefined;
|
|
8936
9457
|
currency: string;
|
|
8937
9458
|
note?: string | undefined;
|
|
@@ -8946,6 +9467,10 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
8946
9467
|
id: string;
|
|
8947
9468
|
sku?: string | undefined;
|
|
8948
9469
|
name: string;
|
|
9470
|
+
categories?: {
|
|
9471
|
+
id: string;
|
|
9472
|
+
name: string;
|
|
9473
|
+
}[] | undefined;
|
|
8949
9474
|
} | undefined;
|
|
8950
9475
|
quantity: number;
|
|
8951
9476
|
unit_price: number;
|
|
@@ -9081,8 +9606,9 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
9081
9606
|
created_on?: string | undefined;
|
|
9082
9607
|
last_updated_on?: string | undefined;
|
|
9083
9608
|
confirmed_on?: string | undefined;
|
|
9609
|
+
delivery_date?: string | undefined;
|
|
9084
9610
|
cancelled_on?: string | undefined;
|
|
9085
|
-
status: "cancelled" | "draft" | "confirmed" | "shipped" | "refunded";
|
|
9611
|
+
status: "cancelled" | "draft" | "cancelled_unpaid" | "confirmed" | "shipped" | "refunded";
|
|
9086
9612
|
discount_amount: number;
|
|
9087
9613
|
untaxed_amount_without_fees: number;
|
|
9088
9614
|
tax_amount_without_fees: number;
|
|
@@ -9106,6 +9632,10 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
9106
9632
|
id: string;
|
|
9107
9633
|
sku?: string | undefined;
|
|
9108
9634
|
name: string;
|
|
9635
|
+
categories?: {
|
|
9636
|
+
id: string;
|
|
9637
|
+
name: string;
|
|
9638
|
+
}[] | undefined;
|
|
9109
9639
|
} | undefined;
|
|
9110
9640
|
quantity: number;
|
|
9111
9641
|
untaxed_amount: number;
|
|
@@ -9123,6 +9653,13 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
9123
9653
|
tax_amount: number;
|
|
9124
9654
|
total: number;
|
|
9125
9655
|
}[] | undefined;
|
|
9656
|
+
transactions?: {
|
|
9657
|
+
id: string;
|
|
9658
|
+
payment_method_id?: string | undefined;
|
|
9659
|
+
payment_method_name?: string | undefined;
|
|
9660
|
+
amount: number;
|
|
9661
|
+
status: "failed" | "pending" | "success";
|
|
9662
|
+
}[] | undefined;
|
|
9126
9663
|
}[] | undefined;
|
|
9127
9664
|
currency: string;
|
|
9128
9665
|
note?: string | undefined;
|
|
@@ -9137,6 +9674,10 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
9137
9674
|
id: string;
|
|
9138
9675
|
sku?: string | undefined;
|
|
9139
9676
|
name: string;
|
|
9677
|
+
categories?: {
|
|
9678
|
+
id: string;
|
|
9679
|
+
name: string;
|
|
9680
|
+
}[] | undefined;
|
|
9140
9681
|
} | undefined;
|
|
9141
9682
|
quantity: number;
|
|
9142
9683
|
unit_price: number;
|
|
@@ -9231,8 +9772,9 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
9231
9772
|
created_on?: string | undefined;
|
|
9232
9773
|
last_updated_on?: string | undefined;
|
|
9233
9774
|
confirmed_on?: string | undefined;
|
|
9775
|
+
delivery_date?: string | undefined;
|
|
9234
9776
|
cancelled_on?: string | undefined;
|
|
9235
|
-
status: "cancelled" | "draft" | "confirmed" | "shipped" | "refunded";
|
|
9777
|
+
status: "cancelled" | "draft" | "cancelled_unpaid" | "confirmed" | "shipped" | "refunded";
|
|
9236
9778
|
discount_amount: number;
|
|
9237
9779
|
untaxed_amount_without_fees: number;
|
|
9238
9780
|
tax_amount_without_fees: number;
|
|
@@ -9256,6 +9798,10 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
9256
9798
|
id: string;
|
|
9257
9799
|
sku?: string | undefined;
|
|
9258
9800
|
name: string;
|
|
9801
|
+
categories?: {
|
|
9802
|
+
id: string;
|
|
9803
|
+
name: string;
|
|
9804
|
+
}[] | undefined;
|
|
9259
9805
|
} | undefined;
|
|
9260
9806
|
quantity: number;
|
|
9261
9807
|
untaxed_amount: number;
|
|
@@ -9273,6 +9819,13 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
9273
9819
|
tax_amount: number;
|
|
9274
9820
|
total: number;
|
|
9275
9821
|
}[] | undefined;
|
|
9822
|
+
transactions?: {
|
|
9823
|
+
id: string;
|
|
9824
|
+
payment_method_id?: string | undefined;
|
|
9825
|
+
payment_method_name?: string | undefined;
|
|
9826
|
+
amount: number;
|
|
9827
|
+
status: "failed" | "pending" | "success";
|
|
9828
|
+
}[] | undefined;
|
|
9276
9829
|
}[] | undefined;
|
|
9277
9830
|
currency: string;
|
|
9278
9831
|
note?: string | undefined;
|
|
@@ -9287,6 +9840,10 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
9287
9840
|
id: string;
|
|
9288
9841
|
sku?: string | undefined;
|
|
9289
9842
|
name: string;
|
|
9843
|
+
categories?: {
|
|
9844
|
+
id: string;
|
|
9845
|
+
name: string;
|
|
9846
|
+
}[] | undefined;
|
|
9290
9847
|
} | undefined;
|
|
9291
9848
|
quantity: number;
|
|
9292
9849
|
unit_price: number;
|
|
@@ -9335,7 +9892,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
9335
9892
|
name?: string | undefined;
|
|
9336
9893
|
}[] | undefined;
|
|
9337
9894
|
}>;
|
|
9338
|
-
getPaymentMethods(params
|
|
9895
|
+
getPaymentMethods(params?: {} | undefined): import("../types/api").RequestData<{
|
|
9339
9896
|
id: string;
|
|
9340
9897
|
source_ref: {
|
|
9341
9898
|
id?: string | undefined;
|
|
@@ -9344,7 +9901,9 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
9344
9901
|
name: string;
|
|
9345
9902
|
active: boolean;
|
|
9346
9903
|
}[]>;
|
|
9347
|
-
getProductCategories(params
|
|
9904
|
+
getProductCategories(params?: {
|
|
9905
|
+
only_parents?: "true" | "false" | undefined;
|
|
9906
|
+
} | undefined): import("../types/api").RequestData<{
|
|
9348
9907
|
id: string;
|
|
9349
9908
|
source_ref: {
|
|
9350
9909
|
id?: string | undefined;
|
|
@@ -9353,7 +9912,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
9353
9912
|
name: string;
|
|
9354
9913
|
parent_id?: string | undefined;
|
|
9355
9914
|
}[]>;
|
|
9356
|
-
getTaxes(params
|
|
9915
|
+
getTaxes(params?: {} | undefined): import("../types/api").RequestData<{
|
|
9357
9916
|
id: string;
|
|
9358
9917
|
source_ref: {
|
|
9359
9918
|
id?: string | undefined;
|
|
@@ -9363,7 +9922,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
9363
9922
|
rate: number;
|
|
9364
9923
|
country?: string | undefined;
|
|
9365
9924
|
}[]>;
|
|
9366
|
-
getCountries(params
|
|
9925
|
+
getCountries(params?: {} | undefined): import("../types/api").RequestData<{
|
|
9367
9926
|
code: string;
|
|
9368
9927
|
name: string;
|
|
9369
9928
|
}[]>;
|
|
@@ -9458,6 +10017,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
9458
10017
|
}[]>;
|
|
9459
10018
|
deleteDataStoreData: (dataStoreId: string, dataStoreDataId: string) => Promise<import("../types/sync").SimpleResponseModel>;
|
|
9460
10019
|
logData: (logs: import("../types/consumers").ConsumerLog[]) => Promise<import("../types/sync").SimpleResponseModel>;
|
|
10020
|
+
setConnectionId: (connectionId: string) => Promise<void>;
|
|
10021
|
+
setIntegrationId: (integrationId: string) => Promise<void>;
|
|
9461
10022
|
}, context: any) => any, log?: boolean) => Promise<void>;
|
|
9462
10023
|
flowId: string;
|
|
9463
10024
|
name: string;
|
|
@@ -9560,21 +10121,16 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
9560
10121
|
total_discount?: number | undefined;
|
|
9561
10122
|
total_refund?: number | undefined;
|
|
9562
10123
|
total_tip?: number | undefined;
|
|
9563
|
-
|
|
9564
|
-
|
|
9565
|
-
|
|
9566
|
-
|
|
9567
|
-
|
|
10124
|
+
currency?: string | undefined;
|
|
10125
|
+
country?: string | undefined;
|
|
10126
|
+
loyalty?: number | undefined;
|
|
10127
|
+
customer_id?: string | undefined;
|
|
10128
|
+
location_id?: string | undefined;
|
|
10129
|
+
taxes?: {
|
|
10130
|
+
tax_rate: number;
|
|
9568
10131
|
tax_amount: number;
|
|
9569
|
-
|
|
9570
|
-
|
|
9571
|
-
discounts?: {
|
|
9572
|
-
name?: string | undefined;
|
|
9573
|
-
total: number;
|
|
9574
|
-
}[] | undefined;
|
|
9575
|
-
product_id?: string | undefined;
|
|
9576
|
-
accounting_category_id?: string | undefined;
|
|
9577
|
-
}[];
|
|
10132
|
+
total: number;
|
|
10133
|
+
}[] | undefined;
|
|
9578
10134
|
payments: {
|
|
9579
10135
|
id?: string | undefined;
|
|
9580
10136
|
payment_method_id?: string | undefined;
|
|
@@ -9585,18 +10141,27 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
9585
10141
|
currency?: string | undefined;
|
|
9586
10142
|
date?: string | undefined;
|
|
9587
10143
|
}[];
|
|
9588
|
-
|
|
9589
|
-
|
|
9590
|
-
|
|
9591
|
-
|
|
9592
|
-
location_id?: string | undefined;
|
|
9593
|
-
taxes?: {
|
|
9594
|
-
tax_rate: number;
|
|
9595
|
-
tax_amount: number;
|
|
10144
|
+
items: {
|
|
10145
|
+
id: string;
|
|
10146
|
+
quantity: number;
|
|
10147
|
+
unit_price: number;
|
|
9596
10148
|
total: number;
|
|
9597
|
-
|
|
10149
|
+
tax_amount: number;
|
|
10150
|
+
tax_rate?: number | undefined;
|
|
10151
|
+
description?: string | undefined;
|
|
10152
|
+
discounts?: {
|
|
10153
|
+
name?: string | undefined;
|
|
10154
|
+
total: number;
|
|
10155
|
+
}[] | undefined;
|
|
10156
|
+
product_id?: string | undefined;
|
|
10157
|
+
accounting_category_id?: string | undefined;
|
|
10158
|
+
}[];
|
|
9598
10159
|
}[]>;
|
|
9599
|
-
getCustomers(params
|
|
10160
|
+
getCustomers(params?: {
|
|
10161
|
+
search?: string | undefined;
|
|
10162
|
+
email?: string | undefined;
|
|
10163
|
+
phone?: string | undefined;
|
|
10164
|
+
} | undefined): import("../types/api").RequestData<{
|
|
9600
10165
|
id: string;
|
|
9601
10166
|
first_name?: string | undefined;
|
|
9602
10167
|
last_name?: string | undefined;
|
|
@@ -9629,6 +10194,26 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
9629
10194
|
total_discount?: number | undefined;
|
|
9630
10195
|
total_refund?: number | undefined;
|
|
9631
10196
|
total_tip?: number | undefined;
|
|
10197
|
+
currency?: string | undefined;
|
|
10198
|
+
country?: string | undefined;
|
|
10199
|
+
loyalty?: number | undefined;
|
|
10200
|
+
customer_id?: string | undefined;
|
|
10201
|
+
location_id?: string | undefined;
|
|
10202
|
+
taxes?: {
|
|
10203
|
+
tax_rate: number;
|
|
10204
|
+
tax_amount: number;
|
|
10205
|
+
total: number;
|
|
10206
|
+
}[] | undefined;
|
|
10207
|
+
payments: {
|
|
10208
|
+
id?: string | undefined;
|
|
10209
|
+
payment_method_id?: string | undefined;
|
|
10210
|
+
payment_method_name?: string | undefined;
|
|
10211
|
+
total: number;
|
|
10212
|
+
tip?: number | undefined;
|
|
10213
|
+
status?: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised" | undefined;
|
|
10214
|
+
currency?: string | undefined;
|
|
10215
|
+
date?: string | undefined;
|
|
10216
|
+
}[];
|
|
9632
10217
|
items: {
|
|
9633
10218
|
id: string;
|
|
9634
10219
|
quantity: number;
|
|
@@ -9644,26 +10229,6 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
9644
10229
|
product_id?: string | undefined;
|
|
9645
10230
|
accounting_category_id?: string | undefined;
|
|
9646
10231
|
}[];
|
|
9647
|
-
payments: {
|
|
9648
|
-
id?: string | undefined;
|
|
9649
|
-
payment_method_id?: string | undefined;
|
|
9650
|
-
payment_method_name?: string | undefined;
|
|
9651
|
-
total: number;
|
|
9652
|
-
tip?: number | undefined;
|
|
9653
|
-
status?: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised" | undefined;
|
|
9654
|
-
currency?: string | undefined;
|
|
9655
|
-
date?: string | undefined;
|
|
9656
|
-
}[];
|
|
9657
|
-
currency?: string | undefined;
|
|
9658
|
-
country?: string | undefined;
|
|
9659
|
-
loyalty?: number | undefined;
|
|
9660
|
-
customer_id?: string | undefined;
|
|
9661
|
-
location_id?: string | undefined;
|
|
9662
|
-
taxes?: {
|
|
9663
|
-
tax_rate: number;
|
|
9664
|
-
tax_amount: number;
|
|
9665
|
-
total: number;
|
|
9666
|
-
}[] | undefined;
|
|
9667
10232
|
}>;
|
|
9668
10233
|
getCustomer(customerId: string): import("../types/api").RequestData<{
|
|
9669
10234
|
id: string;
|
|
@@ -9721,12 +10286,17 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
9721
10286
|
loyalty?: number | undefined;
|
|
9722
10287
|
birthdate?: string | undefined;
|
|
9723
10288
|
}>;
|
|
9724
|
-
getPaymentMethods(params
|
|
10289
|
+
getPaymentMethods(params?: {
|
|
10290
|
+
location_id?: string | undefined;
|
|
10291
|
+
} | undefined): import("../types/api").RequestData<{
|
|
9725
10292
|
id: string;
|
|
9726
10293
|
name: string;
|
|
9727
10294
|
extra?: string | undefined;
|
|
9728
10295
|
}[]>;
|
|
9729
|
-
getProductCategories(params
|
|
10296
|
+
getProductCategories(params?: {
|
|
10297
|
+
location_id?: string | undefined;
|
|
10298
|
+
only_parents?: "true" | "false" | undefined;
|
|
10299
|
+
} | undefined): import("../types/api").RequestData<{
|
|
9730
10300
|
id: string;
|
|
9731
10301
|
source_ref: {
|
|
9732
10302
|
id?: string | undefined;
|
|
@@ -9735,7 +10305,9 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
9735
10305
|
name: string;
|
|
9736
10306
|
parent_id?: string | undefined;
|
|
9737
10307
|
}[]>;
|
|
9738
|
-
getProducts(params
|
|
10308
|
+
getProducts(params?: {
|
|
10309
|
+
location_id?: string | undefined;
|
|
10310
|
+
} | undefined): import("../types/api").RequestData<{
|
|
9739
10311
|
id: string;
|
|
9740
10312
|
categories?: string[] | undefined;
|
|
9741
10313
|
name: string;
|
|
@@ -9759,7 +10331,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
9759
10331
|
total: number;
|
|
9760
10332
|
}[] | undefined;
|
|
9761
10333
|
}>;
|
|
9762
|
-
getClosure(date: string, params
|
|
10334
|
+
getClosure(date: string, params?: {
|
|
9763
10335
|
location_id?: string | undefined;
|
|
9764
10336
|
} | undefined): import("../types/api").RequestData<{
|
|
9765
10337
|
date: string;
|
|
@@ -9792,6 +10364,26 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
9792
10364
|
total_discount?: number | undefined;
|
|
9793
10365
|
total_refund?: number | undefined;
|
|
9794
10366
|
total_tip?: number | undefined;
|
|
10367
|
+
currency?: string | undefined;
|
|
10368
|
+
country?: string | undefined;
|
|
10369
|
+
loyalty?: number | undefined;
|
|
10370
|
+
customer_id?: string | undefined;
|
|
10371
|
+
location_id?: string | undefined;
|
|
10372
|
+
taxes?: {
|
|
10373
|
+
tax_rate: number;
|
|
10374
|
+
tax_amount: number;
|
|
10375
|
+
total: number;
|
|
10376
|
+
}[] | undefined;
|
|
10377
|
+
payments: {
|
|
10378
|
+
id?: string | undefined;
|
|
10379
|
+
payment_method_id?: string | undefined;
|
|
10380
|
+
payment_method_name?: string | undefined;
|
|
10381
|
+
total: number;
|
|
10382
|
+
tip?: number | undefined;
|
|
10383
|
+
status?: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised" | undefined;
|
|
10384
|
+
currency?: string | undefined;
|
|
10385
|
+
date?: string | undefined;
|
|
10386
|
+
}[];
|
|
9795
10387
|
items: {
|
|
9796
10388
|
id: string;
|
|
9797
10389
|
quantity: number;
|
|
@@ -9807,16 +10399,53 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
9807
10399
|
product_id?: string | undefined;
|
|
9808
10400
|
accounting_category_id?: string | undefined;
|
|
9809
10401
|
}[];
|
|
9810
|
-
|
|
10402
|
+
}>;
|
|
10403
|
+
getAccountingCategories(params?: {} | undefined): import("../types/api").RequestData<{
|
|
10404
|
+
id: string;
|
|
10405
|
+
name: string;
|
|
10406
|
+
id_parent?: string | undefined;
|
|
10407
|
+
code?: string | undefined;
|
|
10408
|
+
ledger_account_code?: string | undefined;
|
|
10409
|
+
posting_account_code?: string | undefined;
|
|
10410
|
+
}[]>;
|
|
10411
|
+
}>;
|
|
10412
|
+
pms: import("../types/api").ApiFor<{
|
|
10413
|
+
getLocations(): import("../types/api").RequestData<{
|
|
10414
|
+
id: string;
|
|
10415
|
+
name: string;
|
|
10416
|
+
timezone?: string | undefined;
|
|
10417
|
+
address?: {
|
|
10418
|
+
address_type?: string | undefined;
|
|
10419
|
+
name?: string | undefined;
|
|
10420
|
+
street?: string | undefined;
|
|
10421
|
+
number?: string | undefined;
|
|
10422
|
+
box?: string | undefined;
|
|
10423
|
+
city?: string | undefined;
|
|
10424
|
+
postal_code?: string | undefined;
|
|
10425
|
+
country?: string | undefined;
|
|
10426
|
+
} | undefined;
|
|
10427
|
+
}[]>;
|
|
10428
|
+
getOrders(params: {
|
|
10429
|
+
date_from: string;
|
|
10430
|
+
date_to: string;
|
|
10431
|
+
location_id?: string | undefined;
|
|
10432
|
+
state?: "closed" | "consumed" | undefined;
|
|
10433
|
+
}): import("../types/api").RequestData<{
|
|
10434
|
+
id: string;
|
|
10435
|
+
source_ref: {
|
|
9811
10436
|
id?: string | undefined;
|
|
9812
|
-
|
|
9813
|
-
|
|
9814
|
-
|
|
9815
|
-
|
|
9816
|
-
|
|
9817
|
-
|
|
9818
|
-
|
|
9819
|
-
|
|
10437
|
+
model?: string | undefined;
|
|
10438
|
+
};
|
|
10439
|
+
order_number?: string | undefined;
|
|
10440
|
+
creation_date: string;
|
|
10441
|
+
closing_date?: string | undefined;
|
|
10442
|
+
service_date?: string | undefined;
|
|
10443
|
+
device_id?: string | undefined;
|
|
10444
|
+
total: number;
|
|
10445
|
+
tax_amount: number;
|
|
10446
|
+
total_discount?: number | undefined;
|
|
10447
|
+
total_refund?: number | undefined;
|
|
10448
|
+
total_tip?: number | undefined;
|
|
9820
10449
|
currency?: string | undefined;
|
|
9821
10450
|
country?: string | undefined;
|
|
9822
10451
|
loyalty?: number | undefined;
|
|
@@ -9827,9 +10456,68 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
9827
10456
|
tax_amount: number;
|
|
9828
10457
|
total: number;
|
|
9829
10458
|
}[] | undefined;
|
|
10459
|
+
items: {
|
|
10460
|
+
id: string;
|
|
10461
|
+
source_ref: {
|
|
10462
|
+
id?: string | undefined;
|
|
10463
|
+
model?: string | undefined;
|
|
10464
|
+
};
|
|
10465
|
+
quantity: number;
|
|
10466
|
+
unit_price: number;
|
|
10467
|
+
total: number;
|
|
10468
|
+
tax_amount: number;
|
|
10469
|
+
tax_rate?: number | undefined;
|
|
10470
|
+
description?: string | undefined;
|
|
10471
|
+
discounts?: {
|
|
10472
|
+
name?: string | undefined;
|
|
10473
|
+
total: number;
|
|
10474
|
+
}[] | undefined;
|
|
10475
|
+
product_id?: string | undefined;
|
|
10476
|
+
accounting_category_id?: string | undefined;
|
|
10477
|
+
}[];
|
|
10478
|
+
service_id?: string | undefined;
|
|
10479
|
+
}[]>;
|
|
10480
|
+
getPaymentMethods(params?: {
|
|
10481
|
+
location_id?: string | undefined;
|
|
10482
|
+
} | undefined): import("../types/api").RequestData<{
|
|
10483
|
+
id: string;
|
|
10484
|
+
source_ref: {
|
|
10485
|
+
id?: string | undefined;
|
|
10486
|
+
model?: string | undefined;
|
|
10487
|
+
};
|
|
10488
|
+
name: string;
|
|
10489
|
+
extra?: string | undefined;
|
|
10490
|
+
ledger_account_code?: string | undefined;
|
|
10491
|
+
}[]>;
|
|
10492
|
+
getClosure(date: string, params?: {
|
|
10493
|
+
location_id?: string | undefined;
|
|
10494
|
+
} | undefined): import("../types/api").RequestData<{
|
|
10495
|
+
date: string;
|
|
10496
|
+
status: "open" | "closed";
|
|
9830
10497
|
}>;
|
|
9831
|
-
|
|
10498
|
+
getPayments(params: {
|
|
10499
|
+
date_from: string;
|
|
10500
|
+
date_to: string;
|
|
10501
|
+
}): import("../types/api").RequestData<{
|
|
10502
|
+
id?: string | undefined;
|
|
10503
|
+
source_ref: {
|
|
10504
|
+
id?: string | undefined;
|
|
10505
|
+
model?: string | undefined;
|
|
10506
|
+
};
|
|
10507
|
+
payment_method_id?: string | undefined;
|
|
10508
|
+
payment_method_name?: string | undefined;
|
|
10509
|
+
total: number;
|
|
10510
|
+
tip?: number | undefined;
|
|
10511
|
+
status?: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised" | undefined;
|
|
10512
|
+
currency?: string | undefined;
|
|
10513
|
+
date?: string | undefined;
|
|
10514
|
+
}[]>;
|
|
10515
|
+
getAccountingCategories(params?: {} | undefined): import("../types/api").RequestData<{
|
|
9832
10516
|
id: string;
|
|
10517
|
+
source_ref: {
|
|
10518
|
+
id?: string | undefined;
|
|
10519
|
+
model?: string | undefined;
|
|
10520
|
+
};
|
|
9833
10521
|
name: string;
|
|
9834
10522
|
id_parent?: string | undefined;
|
|
9835
10523
|
code?: string | undefined;
|
|
@@ -9838,19 +10526,15 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
9838
10526
|
}[]>;
|
|
9839
10527
|
}>;
|
|
9840
10528
|
accounting: import("../types/api").ApiFor<{
|
|
9841
|
-
getAnalyticPlans(params
|
|
10529
|
+
getAnalyticPlans(params?: {
|
|
9842
10530
|
folder_id?: string | undefined;
|
|
9843
|
-
page?: number | undefined;
|
|
9844
|
-
size?: number | undefined;
|
|
9845
10531
|
} | undefined): import("../types/api").RequestData<{
|
|
9846
10532
|
id: string;
|
|
9847
10533
|
name: string;
|
|
9848
10534
|
active?: boolean | undefined;
|
|
9849
10535
|
}[]>;
|
|
9850
|
-
getClients(params
|
|
10536
|
+
getClients(params?: {
|
|
9851
10537
|
folder_id?: string | undefined;
|
|
9852
|
-
page?: number | undefined;
|
|
9853
|
-
size?: number | undefined;
|
|
9854
10538
|
} | undefined): import("../types/api").RequestData<{
|
|
9855
10539
|
external_reference?: string | undefined;
|
|
9856
10540
|
first_name?: string | undefined;
|
|
@@ -9920,7 +10604,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
9920
10604
|
country: string;
|
|
9921
10605
|
}[];
|
|
9922
10606
|
account_number?: string | undefined;
|
|
9923
|
-
}, params
|
|
10607
|
+
}, params?: {
|
|
9924
10608
|
force_merge?: string | undefined;
|
|
9925
10609
|
folder_id?: string | undefined;
|
|
9926
10610
|
} | undefined): import("../types/api").RequestData<{
|
|
@@ -9959,7 +10643,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
9959
10643
|
company_number?: string | undefined;
|
|
9960
10644
|
id?: string | undefined;
|
|
9961
10645
|
}>;
|
|
9962
|
-
getClient(clientId: string, params
|
|
10646
|
+
getClient(clientId: string, params?: {
|
|
9963
10647
|
folder_id?: string | undefined;
|
|
9964
10648
|
} | undefined): import("../types/api").RequestData<{
|
|
9965
10649
|
external_reference?: string | undefined;
|
|
@@ -10029,7 +10713,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
10029
10713
|
postal_code?: string | undefined;
|
|
10030
10714
|
country?: string | undefined;
|
|
10031
10715
|
}[] | undefined;
|
|
10032
|
-
}, params
|
|
10716
|
+
}, params?: {
|
|
10033
10717
|
folder_id?: string | undefined;
|
|
10034
10718
|
} | undefined): import("../types/api").RequestData<{
|
|
10035
10719
|
external_reference?: string | undefined;
|
|
@@ -10067,10 +10751,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
10067
10751
|
company_number?: string | undefined;
|
|
10068
10752
|
id?: string | undefined;
|
|
10069
10753
|
}>;
|
|
10070
|
-
getSuppliers(params
|
|
10754
|
+
getSuppliers(params?: {
|
|
10071
10755
|
folder_id?: string | undefined;
|
|
10072
|
-
page?: number | undefined;
|
|
10073
|
-
size?: number | undefined;
|
|
10074
10756
|
} | undefined): import("../types/api").RequestData<{
|
|
10075
10757
|
external_reference?: string | undefined;
|
|
10076
10758
|
first_name?: string | undefined;
|
|
@@ -10140,7 +10822,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
10140
10822
|
country: string;
|
|
10141
10823
|
}[];
|
|
10142
10824
|
account_number?: string | undefined;
|
|
10143
|
-
}, params
|
|
10825
|
+
}, params?: {
|
|
10144
10826
|
force_merge?: string | undefined;
|
|
10145
10827
|
folder_id?: string | undefined;
|
|
10146
10828
|
} | undefined): import("../types/api").RequestData<{
|
|
@@ -10179,7 +10861,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
10179
10861
|
company_number?: string | undefined;
|
|
10180
10862
|
id?: string | undefined;
|
|
10181
10863
|
}>;
|
|
10182
|
-
getSupplier(supplierId: string, params
|
|
10864
|
+
getSupplier(supplierId: string, params?: {
|
|
10183
10865
|
folder_id?: string | undefined;
|
|
10184
10866
|
} | undefined): import("../types/api").RequestData<{
|
|
10185
10867
|
external_reference?: string | undefined;
|
|
@@ -10249,7 +10931,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
10249
10931
|
postal_code?: string | undefined;
|
|
10250
10932
|
country?: string | undefined;
|
|
10251
10933
|
}[] | undefined;
|
|
10252
|
-
}, params
|
|
10934
|
+
}, params?: {
|
|
10253
10935
|
folder_id?: string | undefined;
|
|
10254
10936
|
} | undefined): import("../types/api").RequestData<{
|
|
10255
10937
|
external_reference?: string | undefined;
|
|
@@ -10320,6 +11002,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
10320
11002
|
iban: string;
|
|
10321
11003
|
};
|
|
10322
11004
|
} | undefined;
|
|
11005
|
+
shipping_country?: string | undefined;
|
|
10323
11006
|
lines: {
|
|
10324
11007
|
line_number?: number | undefined;
|
|
10325
11008
|
description: string;
|
|
@@ -10334,7 +11017,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
10334
11017
|
tax_code: string;
|
|
10335
11018
|
analytic_account?: string | undefined;
|
|
10336
11019
|
}[];
|
|
10337
|
-
}, params
|
|
11020
|
+
}, params?: {
|
|
10338
11021
|
force_financial_period?: string | undefined;
|
|
10339
11022
|
regroup_lines?: "true" | "false" | undefined;
|
|
10340
11023
|
folder_id?: string | undefined;
|
|
@@ -10416,6 +11099,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
10416
11099
|
iban: string;
|
|
10417
11100
|
};
|
|
10418
11101
|
} | undefined;
|
|
11102
|
+
shipping_country?: string | undefined;
|
|
10419
11103
|
lines: {
|
|
10420
11104
|
line_number?: number | undefined;
|
|
10421
11105
|
description: string;
|
|
@@ -10436,7 +11120,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
10436
11120
|
}[];
|
|
10437
11121
|
}[] | undefined;
|
|
10438
11122
|
}[];
|
|
10439
|
-
}, params
|
|
11123
|
+
}, params?: {
|
|
10440
11124
|
force_financial_period?: string | undefined;
|
|
10441
11125
|
regroup_lines?: "true" | "false" | undefined;
|
|
10442
11126
|
folder_id?: string | undefined;
|
|
@@ -10491,7 +11175,14 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
10491
11175
|
}[] | undefined;
|
|
10492
11176
|
}[];
|
|
10493
11177
|
}>;
|
|
10494
|
-
getInvoicesByType(invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund", params
|
|
11178
|
+
getInvoicesByType(invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund", params?: {
|
|
11179
|
+
date_from?: string | undefined;
|
|
11180
|
+
date_to?: string | undefined;
|
|
11181
|
+
folder_id?: string | undefined;
|
|
11182
|
+
journal_ids?: string | undefined;
|
|
11183
|
+
include_payments?: "true" | "false" | undefined;
|
|
11184
|
+
payment_status?: "all" | "paid" | "unpaid" | undefined;
|
|
11185
|
+
} | undefined): import("../types/api").RequestData<{
|
|
10495
11186
|
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
10496
11187
|
invoice_number?: string | undefined;
|
|
10497
11188
|
currency: string;
|
|
@@ -10536,7 +11227,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
10536
11227
|
analytic_account?: string | undefined;
|
|
10537
11228
|
}[];
|
|
10538
11229
|
}[]>;
|
|
10539
|
-
getInvoice(invoiceId: string, params
|
|
11230
|
+
getInvoice(invoiceId: string, params?: {
|
|
10540
11231
|
include_payments?: "true" | "false" | undefined;
|
|
10541
11232
|
folder_id?: string | undefined;
|
|
10542
11233
|
} | undefined): import("../types/api").RequestData<{
|
|
@@ -10584,7 +11275,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
10584
11275
|
analytic_account?: string | undefined;
|
|
10585
11276
|
}[];
|
|
10586
11277
|
}>;
|
|
10587
|
-
getInvoiceWithMultiplePlans(invoiceId: string, params
|
|
11278
|
+
getInvoiceWithMultiplePlans(invoiceId: string, params?: {
|
|
10588
11279
|
include_payments?: "true" | "false" | undefined;
|
|
10589
11280
|
folder_id?: string | undefined;
|
|
10590
11281
|
} | undefined): import("../types/api").RequestData<{
|
|
@@ -10638,7 +11329,14 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
10638
11329
|
}[] | undefined;
|
|
10639
11330
|
}[];
|
|
10640
11331
|
}>;
|
|
10641
|
-
getInvoicesByTypeWithMultiplePlans(invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund", params
|
|
11332
|
+
getInvoicesByTypeWithMultiplePlans(invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund", params?: {
|
|
11333
|
+
date_from?: string | undefined;
|
|
11334
|
+
date_to?: string | undefined;
|
|
11335
|
+
folder_id?: string | undefined;
|
|
11336
|
+
journal_ids?: string | undefined;
|
|
11337
|
+
include_payments?: "true" | "false" | undefined;
|
|
11338
|
+
payment_status?: "all" | "paid" | "unpaid" | undefined;
|
|
11339
|
+
} | undefined): import("../types/api").RequestData<{
|
|
10642
11340
|
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
10643
11341
|
invoice_number?: string | undefined;
|
|
10644
11342
|
currency: string;
|
|
@@ -10694,7 +11392,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
10694
11392
|
code: string;
|
|
10695
11393
|
name: string;
|
|
10696
11394
|
currency: string;
|
|
10697
|
-
}, params
|
|
11395
|
+
}, params?: {
|
|
10698
11396
|
folder_id?: string | undefined;
|
|
10699
11397
|
} | undefined): import("../types/api").RequestData<{
|
|
10700
11398
|
id: string;
|
|
@@ -10706,10 +11404,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
10706
11404
|
credit?: number | undefined;
|
|
10707
11405
|
debit?: number | undefined;
|
|
10708
11406
|
}>;
|
|
10709
|
-
getAnalyticAccounts(params
|
|
11407
|
+
getAnalyticAccounts(params?: {
|
|
10710
11408
|
folder_id?: string | undefined;
|
|
10711
|
-
page?: number | undefined;
|
|
10712
|
-
size?: number | undefined;
|
|
10713
11409
|
} | undefined): import("../types/api").RequestData<{
|
|
10714
11410
|
id: string;
|
|
10715
11411
|
active: boolean;
|
|
@@ -10725,7 +11421,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
10725
11421
|
code: string;
|
|
10726
11422
|
name: string;
|
|
10727
11423
|
currency: string;
|
|
10728
|
-
}, params
|
|
11424
|
+
}, params?: {
|
|
10729
11425
|
folder_id?: string | undefined;
|
|
10730
11426
|
} | undefined): import("../types/api").RequestData<{
|
|
10731
11427
|
id: string;
|
|
@@ -10738,7 +11434,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
10738
11434
|
debit?: number | undefined;
|
|
10739
11435
|
analytic_plan: string;
|
|
10740
11436
|
}>;
|
|
10741
|
-
getAnalyticAccount(analytic_account_id: string, params
|
|
11437
|
+
getAnalyticAccount(analytic_account_id: string, params?: {
|
|
10742
11438
|
folder_id?: string | undefined;
|
|
10743
11439
|
} | undefined): import("../types/api").RequestData<{
|
|
10744
11440
|
id: string;
|
|
@@ -10755,7 +11451,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
10755
11451
|
code?: string | undefined;
|
|
10756
11452
|
name?: string | undefined;
|
|
10757
11453
|
currency?: string | undefined;
|
|
10758
|
-
}, params
|
|
11454
|
+
}, params?: {
|
|
10759
11455
|
folder_id?: string | undefined;
|
|
10760
11456
|
} | undefined): import("../types/api").RequestData<{
|
|
10761
11457
|
id: string;
|
|
@@ -10767,7 +11463,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
10767
11463
|
credit?: number | undefined;
|
|
10768
11464
|
debit?: number | undefined;
|
|
10769
11465
|
}>;
|
|
10770
|
-
getAnalyticAccountWithMultiplePlans(analytic_account_id: string, analytic_plan: string, params
|
|
11466
|
+
getAnalyticAccountWithMultiplePlans(analytic_account_id: string, analytic_plan: string, params?: {
|
|
10771
11467
|
folder_id?: string | undefined;
|
|
10772
11468
|
} | undefined): import("../types/api").RequestData<{
|
|
10773
11469
|
id: string;
|
|
@@ -10785,7 +11481,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
10785
11481
|
code?: string | undefined;
|
|
10786
11482
|
name?: string | undefined;
|
|
10787
11483
|
currency?: string | undefined;
|
|
10788
|
-
}, params
|
|
11484
|
+
}, params?: {
|
|
10789
11485
|
folder_id?: string | undefined;
|
|
10790
11486
|
} | undefined): import("../types/api").RequestData<{
|
|
10791
11487
|
id: string;
|
|
@@ -10798,10 +11494,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
10798
11494
|
debit?: number | undefined;
|
|
10799
11495
|
analytic_plan: string;
|
|
10800
11496
|
}>;
|
|
10801
|
-
getAnalyticAccountsWithMultiplePlans(params
|
|
11497
|
+
getAnalyticAccountsWithMultiplePlans(params?: {
|
|
10802
11498
|
folder_id?: string | undefined;
|
|
10803
|
-
page?: number | undefined;
|
|
10804
|
-
size?: number | undefined;
|
|
10805
11499
|
} | undefined): import("../types/api").RequestData<{
|
|
10806
11500
|
id: string;
|
|
10807
11501
|
active: boolean;
|
|
@@ -10882,7 +11576,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
10882
11576
|
}[] | undefined;
|
|
10883
11577
|
}[] | undefined;
|
|
10884
11578
|
}[]>;
|
|
10885
|
-
getPaymentsByInvoiceId(invoice_id: string, params
|
|
11579
|
+
getPaymentsByInvoiceId(invoice_id: string, params?: {
|
|
10886
11580
|
folder_id?: string | undefined;
|
|
10887
11581
|
page?: number | undefined;
|
|
10888
11582
|
size?: number | undefined;
|
|
@@ -10900,20 +11594,16 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
10900
11594
|
communication?: string | undefined;
|
|
10901
11595
|
matching_number?: string | undefined;
|
|
10902
11596
|
}[]>;
|
|
10903
|
-
getJournals(params
|
|
11597
|
+
getJournals(params?: {
|
|
10904
11598
|
folder_id?: string | undefined;
|
|
10905
|
-
page?: number | undefined;
|
|
10906
|
-
size?: number | undefined;
|
|
10907
11599
|
} | undefined): import("../types/api").RequestData<{
|
|
10908
11600
|
id: string;
|
|
10909
11601
|
code?: string | undefined;
|
|
10910
11602
|
name: string;
|
|
10911
11603
|
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
10912
11604
|
}[]>;
|
|
10913
|
-
getVatCodes(params
|
|
11605
|
+
getVatCodes(params?: {
|
|
10914
11606
|
folder_id?: string | undefined;
|
|
10915
|
-
page?: number | undefined;
|
|
10916
|
-
size?: number | undefined;
|
|
10917
11607
|
} | undefined): import("../types/api").RequestData<{
|
|
10918
11608
|
id: string;
|
|
10919
11609
|
code?: string | undefined;
|
|
@@ -10924,7 +11614,12 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
10924
11614
|
deductible_account?: string | undefined;
|
|
10925
11615
|
payable_account?: string | undefined;
|
|
10926
11616
|
}[]>;
|
|
10927
|
-
getMiscOperations(params
|
|
11617
|
+
getMiscOperations(params?: {
|
|
11618
|
+
date_from?: string | undefined;
|
|
11619
|
+
date_to?: string | undefined;
|
|
11620
|
+
folder_id?: string | undefined;
|
|
11621
|
+
journal_ids?: string | undefined;
|
|
11622
|
+
} | undefined): import("../types/api").RequestData<{
|
|
10928
11623
|
operation_number?: string | undefined;
|
|
10929
11624
|
currency: string;
|
|
10930
11625
|
currency_exchange_rate?: number | undefined;
|
|
@@ -10958,7 +11653,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
10958
11653
|
operation_date: string;
|
|
10959
11654
|
journal_id?: string | undefined;
|
|
10960
11655
|
status?: "draft" | "posted" | undefined;
|
|
10961
|
-
}, params
|
|
11656
|
+
}, params?: {
|
|
10962
11657
|
folder_id?: string | undefined;
|
|
10963
11658
|
} | undefined): import("../types/api").RequestData<{
|
|
10964
11659
|
operation_number?: string | undefined;
|
|
@@ -10978,7 +11673,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
10978
11673
|
status: "cancelled" | "draft" | "posted" | "matched";
|
|
10979
11674
|
id: string;
|
|
10980
11675
|
}>;
|
|
10981
|
-
getMiscOperation(operation_id: string, params
|
|
11676
|
+
getMiscOperation(operation_id: string, params?: {
|
|
10982
11677
|
folder_id?: string | undefined;
|
|
10983
11678
|
} | undefined): import("../types/api").RequestData<{
|
|
10984
11679
|
operation_number?: string | undefined;
|
|
@@ -11000,24 +11695,25 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
11000
11695
|
}>;
|
|
11001
11696
|
attachPDF(invoice_id: string, attachment: {
|
|
11002
11697
|
base64_string: string;
|
|
11003
|
-
}, params
|
|
11698
|
+
}, params?: {
|
|
11004
11699
|
overwrite_existing?: "true" | "false" | undefined;
|
|
11005
11700
|
folder_id?: string | undefined;
|
|
11006
11701
|
} | undefined): import("../types/api").RequestData<{
|
|
11007
11702
|
content: {
|
|
11008
|
-
|
|
11703
|
+
'application/json': unknown;
|
|
11009
11704
|
};
|
|
11010
11705
|
}>;
|
|
11011
11706
|
getAttachments(params: {
|
|
11707
|
+
folder_id?: string | undefined;
|
|
11012
11708
|
type: "invoice" | "entry";
|
|
11013
11709
|
document_id: string;
|
|
11014
|
-
folder_id?: string | undefined;
|
|
11015
|
-
page?: number | undefined;
|
|
11016
|
-
size?: number | undefined;
|
|
11017
11710
|
}): import("../types/api").RequestData<{
|
|
11018
11711
|
base64_string: string;
|
|
11019
11712
|
}[]>;
|
|
11020
|
-
getChartOfAccounts(params
|
|
11713
|
+
getChartOfAccounts(params?: {
|
|
11714
|
+
classes?: string | undefined;
|
|
11715
|
+
folder_id?: string | undefined;
|
|
11716
|
+
} | undefined): import("../types/api").RequestData<{
|
|
11021
11717
|
number: string;
|
|
11022
11718
|
name: string;
|
|
11023
11719
|
active?: boolean | undefined;
|
|
@@ -11027,10 +11723,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
11027
11723
|
accounts: string[];
|
|
11028
11724
|
start?: string | undefined;
|
|
11029
11725
|
end: string;
|
|
11030
|
-
}, params
|
|
11726
|
+
}, params?: {
|
|
11031
11727
|
folder_id?: string | undefined;
|
|
11032
|
-
page?: number | undefined;
|
|
11033
|
-
size?: number | undefined;
|
|
11034
11728
|
} | undefined): import("../types/api").RequestData<{
|
|
11035
11729
|
account_number: string;
|
|
11036
11730
|
account_name?: string | undefined;
|
|
@@ -11038,10 +11732,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
11038
11732
|
credit: number;
|
|
11039
11733
|
balance: number;
|
|
11040
11734
|
}[]>;
|
|
11041
|
-
getEmployees(params
|
|
11735
|
+
getEmployees(params?: {
|
|
11042
11736
|
folder_id?: string | undefined;
|
|
11043
|
-
page?: number | undefined;
|
|
11044
|
-
size?: number | undefined;
|
|
11045
11737
|
} | undefined): import("../types/api").RequestData<{
|
|
11046
11738
|
id: string;
|
|
11047
11739
|
name: string;
|
|
@@ -11057,8 +11749,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
11057
11749
|
}[]>;
|
|
11058
11750
|
getOutstandings(params: {
|
|
11059
11751
|
folder_id?: string | undefined;
|
|
11060
|
-
unposted_allowed: "true" | "false";
|
|
11061
11752
|
type: "supplier" | "client";
|
|
11753
|
+
unposted_allowed: "true" | "false";
|
|
11062
11754
|
}): import("../types/api").RequestData<{
|
|
11063
11755
|
id: string;
|
|
11064
11756
|
number?: string | undefined;
|
|
@@ -11091,7 +11783,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
11091
11783
|
description?: string | undefined;
|
|
11092
11784
|
}[];
|
|
11093
11785
|
pdf?: string | undefined;
|
|
11094
|
-
}, params
|
|
11786
|
+
}, params?: {
|
|
11095
11787
|
financial_counterpart_account?: string | undefined;
|
|
11096
11788
|
folder_id?: string | undefined;
|
|
11097
11789
|
} | undefined): import("../types/api").RequestData<{
|
|
@@ -11125,7 +11817,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
11125
11817
|
description?: string | undefined;
|
|
11126
11818
|
}[];
|
|
11127
11819
|
pdf?: string | undefined;
|
|
11128
|
-
}, params
|
|
11820
|
+
}, params?: {
|
|
11129
11821
|
financial_counterpart_account?: string | undefined;
|
|
11130
11822
|
folder_id?: string | undefined;
|
|
11131
11823
|
} | undefined): import("../types/api").RequestData<{
|
|
@@ -11224,7 +11916,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
11224
11916
|
}[];
|
|
11225
11917
|
pdf?: string | undefined;
|
|
11226
11918
|
posted?: boolean | undefined;
|
|
11227
|
-
}, params
|
|
11919
|
+
}, params?: {
|
|
11228
11920
|
folder_id?: string | undefined;
|
|
11229
11921
|
} | undefined): import("../types/api").RequestData<{
|
|
11230
11922
|
reference?: string | undefined;
|
|
@@ -11259,7 +11951,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
11259
11951
|
matchEntries(body: {
|
|
11260
11952
|
entries: string[];
|
|
11261
11953
|
partner_id: string;
|
|
11262
|
-
}, params
|
|
11954
|
+
}, params?: {
|
|
11263
11955
|
folder_id?: string | undefined;
|
|
11264
11956
|
} | undefined): import("../types/api").RequestData<{
|
|
11265
11957
|
matching_number: string;
|
|
@@ -11269,17 +11961,17 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
11269
11961
|
id: string;
|
|
11270
11962
|
name: string;
|
|
11271
11963
|
selected?: boolean | undefined;
|
|
11964
|
+
vat?: string | undefined;
|
|
11965
|
+
company_number?: string | undefined;
|
|
11272
11966
|
}[]>;
|
|
11273
11967
|
}>;
|
|
11274
11968
|
invoicing: import("../types/api").ApiFor<{
|
|
11275
|
-
getInvoices(params
|
|
11276
|
-
invoice_type?: "all" | "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | undefined;
|
|
11277
|
-
payment_status?: "all" | "paid" | "unpaid" | undefined;
|
|
11969
|
+
getInvoices(params?: {
|
|
11278
11970
|
date_from?: string | undefined;
|
|
11279
11971
|
date_to?: string | undefined;
|
|
11972
|
+
payment_status?: "all" | "paid" | "unpaid" | undefined;
|
|
11973
|
+
invoice_type?: "all" | "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | undefined;
|
|
11280
11974
|
updated_after?: string | undefined;
|
|
11281
|
-
page?: number | undefined;
|
|
11282
|
-
size?: number | undefined;
|
|
11283
11975
|
} | undefined): import("../types/api").RequestData<{
|
|
11284
11976
|
id: string;
|
|
11285
11977
|
source_ref: {
|
|
@@ -11323,7 +12015,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
11323
12015
|
outstanding_amount?: number | undefined;
|
|
11324
12016
|
last_updated_on?: string | undefined;
|
|
11325
12017
|
}[]>;
|
|
11326
|
-
getInvoiceById(invoiceId: string, params
|
|
12018
|
+
getInvoiceById(invoiceId: string, params?: {
|
|
11327
12019
|
include_pdf?: "true" | "false" | undefined;
|
|
11328
12020
|
} | undefined): import("../types/api").RequestData<{
|
|
11329
12021
|
id: string;
|
|
@@ -11585,8 +12277,6 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
11585
12277
|
}>;
|
|
11586
12278
|
getContacts(params?: {
|
|
11587
12279
|
contact_type?: "prospect" | "customer" | "supplier" | "all" | undefined;
|
|
11588
|
-
page?: number | undefined;
|
|
11589
|
-
size?: number | undefined;
|
|
11590
12280
|
} | undefined): import("../types/api").RequestData<{
|
|
11591
12281
|
id: string;
|
|
11592
12282
|
source_ref: {
|
|
@@ -11997,7 +12687,13 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
11997
12687
|
id: string;
|
|
11998
12688
|
name: string;
|
|
11999
12689
|
}[]>;
|
|
12000
|
-
getOrders(params
|
|
12690
|
+
getOrders(params?: {
|
|
12691
|
+
date_from?: string | undefined;
|
|
12692
|
+
date_to?: string | undefined;
|
|
12693
|
+
updated_after?: string | undefined;
|
|
12694
|
+
include_detailed_refunds?: "true" | "false" | undefined;
|
|
12695
|
+
include_product_categories?: "true" | "false" | undefined;
|
|
12696
|
+
} | undefined): import("../types/api").RequestData<{
|
|
12001
12697
|
id: string;
|
|
12002
12698
|
source_ref: {
|
|
12003
12699
|
id?: string | undefined;
|
|
@@ -12043,8 +12739,9 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
12043
12739
|
created_on?: string | undefined;
|
|
12044
12740
|
last_updated_on?: string | undefined;
|
|
12045
12741
|
confirmed_on?: string | undefined;
|
|
12742
|
+
delivery_date?: string | undefined;
|
|
12046
12743
|
cancelled_on?: string | undefined;
|
|
12047
|
-
status: "cancelled" | "draft" | "confirmed" | "shipped" | "refunded";
|
|
12744
|
+
status: "cancelled" | "draft" | "cancelled_unpaid" | "confirmed" | "shipped" | "refunded";
|
|
12048
12745
|
discount_amount: number;
|
|
12049
12746
|
untaxed_amount_without_fees: number;
|
|
12050
12747
|
tax_amount_without_fees: number;
|
|
@@ -12068,6 +12765,10 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
12068
12765
|
id: string;
|
|
12069
12766
|
sku?: string | undefined;
|
|
12070
12767
|
name: string;
|
|
12768
|
+
categories?: {
|
|
12769
|
+
id: string;
|
|
12770
|
+
name: string;
|
|
12771
|
+
}[] | undefined;
|
|
12071
12772
|
} | undefined;
|
|
12072
12773
|
quantity: number;
|
|
12073
12774
|
untaxed_amount: number;
|
|
@@ -12085,6 +12786,13 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
12085
12786
|
tax_amount: number;
|
|
12086
12787
|
total: number;
|
|
12087
12788
|
}[] | undefined;
|
|
12789
|
+
transactions?: {
|
|
12790
|
+
id: string;
|
|
12791
|
+
payment_method_id?: string | undefined;
|
|
12792
|
+
payment_method_name?: string | undefined;
|
|
12793
|
+
amount: number;
|
|
12794
|
+
status: "failed" | "pending" | "success";
|
|
12795
|
+
}[] | undefined;
|
|
12088
12796
|
}[] | undefined;
|
|
12089
12797
|
currency: string;
|
|
12090
12798
|
note?: string | undefined;
|
|
@@ -12099,6 +12807,10 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
12099
12807
|
id: string;
|
|
12100
12808
|
sku?: string | undefined;
|
|
12101
12809
|
name: string;
|
|
12810
|
+
categories?: {
|
|
12811
|
+
id: string;
|
|
12812
|
+
name: string;
|
|
12813
|
+
}[] | undefined;
|
|
12102
12814
|
} | undefined;
|
|
12103
12815
|
quantity: number;
|
|
12104
12816
|
unit_price: number;
|
|
@@ -12234,8 +12946,9 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
12234
12946
|
created_on?: string | undefined;
|
|
12235
12947
|
last_updated_on?: string | undefined;
|
|
12236
12948
|
confirmed_on?: string | undefined;
|
|
12949
|
+
delivery_date?: string | undefined;
|
|
12237
12950
|
cancelled_on?: string | undefined;
|
|
12238
|
-
status: "cancelled" | "draft" | "confirmed" | "shipped" | "refunded";
|
|
12951
|
+
status: "cancelled" | "draft" | "cancelled_unpaid" | "confirmed" | "shipped" | "refunded";
|
|
12239
12952
|
discount_amount: number;
|
|
12240
12953
|
untaxed_amount_without_fees: number;
|
|
12241
12954
|
tax_amount_without_fees: number;
|
|
@@ -12259,6 +12972,10 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
12259
12972
|
id: string;
|
|
12260
12973
|
sku?: string | undefined;
|
|
12261
12974
|
name: string;
|
|
12975
|
+
categories?: {
|
|
12976
|
+
id: string;
|
|
12977
|
+
name: string;
|
|
12978
|
+
}[] | undefined;
|
|
12262
12979
|
} | undefined;
|
|
12263
12980
|
quantity: number;
|
|
12264
12981
|
untaxed_amount: number;
|
|
@@ -12276,6 +12993,13 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
12276
12993
|
tax_amount: number;
|
|
12277
12994
|
total: number;
|
|
12278
12995
|
}[] | undefined;
|
|
12996
|
+
transactions?: {
|
|
12997
|
+
id: string;
|
|
12998
|
+
payment_method_id?: string | undefined;
|
|
12999
|
+
payment_method_name?: string | undefined;
|
|
13000
|
+
amount: number;
|
|
13001
|
+
status: "failed" | "pending" | "success";
|
|
13002
|
+
}[] | undefined;
|
|
12279
13003
|
}[] | undefined;
|
|
12280
13004
|
currency: string;
|
|
12281
13005
|
note?: string | undefined;
|
|
@@ -12290,6 +13014,10 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
12290
13014
|
id: string;
|
|
12291
13015
|
sku?: string | undefined;
|
|
12292
13016
|
name: string;
|
|
13017
|
+
categories?: {
|
|
13018
|
+
id: string;
|
|
13019
|
+
name: string;
|
|
13020
|
+
}[] | undefined;
|
|
12293
13021
|
} | undefined;
|
|
12294
13022
|
quantity: number;
|
|
12295
13023
|
unit_price: number;
|
|
@@ -12384,8 +13112,9 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
12384
13112
|
created_on?: string | undefined;
|
|
12385
13113
|
last_updated_on?: string | undefined;
|
|
12386
13114
|
confirmed_on?: string | undefined;
|
|
13115
|
+
delivery_date?: string | undefined;
|
|
12387
13116
|
cancelled_on?: string | undefined;
|
|
12388
|
-
status: "cancelled" | "draft" | "confirmed" | "shipped" | "refunded";
|
|
13117
|
+
status: "cancelled" | "draft" | "cancelled_unpaid" | "confirmed" | "shipped" | "refunded";
|
|
12389
13118
|
discount_amount: number;
|
|
12390
13119
|
untaxed_amount_without_fees: number;
|
|
12391
13120
|
tax_amount_without_fees: number;
|
|
@@ -12409,6 +13138,10 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
12409
13138
|
id: string;
|
|
12410
13139
|
sku?: string | undefined;
|
|
12411
13140
|
name: string;
|
|
13141
|
+
categories?: {
|
|
13142
|
+
id: string;
|
|
13143
|
+
name: string;
|
|
13144
|
+
}[] | undefined;
|
|
12412
13145
|
} | undefined;
|
|
12413
13146
|
quantity: number;
|
|
12414
13147
|
untaxed_amount: number;
|
|
@@ -12426,6 +13159,13 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
12426
13159
|
tax_amount: number;
|
|
12427
13160
|
total: number;
|
|
12428
13161
|
}[] | undefined;
|
|
13162
|
+
transactions?: {
|
|
13163
|
+
id: string;
|
|
13164
|
+
payment_method_id?: string | undefined;
|
|
13165
|
+
payment_method_name?: string | undefined;
|
|
13166
|
+
amount: number;
|
|
13167
|
+
status: "failed" | "pending" | "success";
|
|
13168
|
+
}[] | undefined;
|
|
12429
13169
|
}[] | undefined;
|
|
12430
13170
|
currency: string;
|
|
12431
13171
|
note?: string | undefined;
|
|
@@ -12440,6 +13180,10 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
12440
13180
|
id: string;
|
|
12441
13181
|
sku?: string | undefined;
|
|
12442
13182
|
name: string;
|
|
13183
|
+
categories?: {
|
|
13184
|
+
id: string;
|
|
13185
|
+
name: string;
|
|
13186
|
+
}[] | undefined;
|
|
12443
13187
|
} | undefined;
|
|
12444
13188
|
quantity: number;
|
|
12445
13189
|
unit_price: number;
|
|
@@ -12488,7 +13232,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
12488
13232
|
name?: string | undefined;
|
|
12489
13233
|
}[] | undefined;
|
|
12490
13234
|
}>;
|
|
12491
|
-
getPaymentMethods(params
|
|
13235
|
+
getPaymentMethods(params?: {} | undefined): import("../types/api").RequestData<{
|
|
12492
13236
|
id: string;
|
|
12493
13237
|
source_ref: {
|
|
12494
13238
|
id?: string | undefined;
|
|
@@ -12497,7 +13241,9 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
12497
13241
|
name: string;
|
|
12498
13242
|
active: boolean;
|
|
12499
13243
|
}[]>;
|
|
12500
|
-
getProductCategories(params
|
|
13244
|
+
getProductCategories(params?: {
|
|
13245
|
+
only_parents?: "true" | "false" | undefined;
|
|
13246
|
+
} | undefined): import("../types/api").RequestData<{
|
|
12501
13247
|
id: string;
|
|
12502
13248
|
source_ref: {
|
|
12503
13249
|
id?: string | undefined;
|
|
@@ -12506,7 +13252,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
12506
13252
|
name: string;
|
|
12507
13253
|
parent_id?: string | undefined;
|
|
12508
13254
|
}[]>;
|
|
12509
|
-
getTaxes(params
|
|
13255
|
+
getTaxes(params?: {} | undefined): import("../types/api").RequestData<{
|
|
12510
13256
|
id: string;
|
|
12511
13257
|
source_ref: {
|
|
12512
13258
|
id?: string | undefined;
|
|
@@ -12516,7 +13262,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
12516
13262
|
rate: number;
|
|
12517
13263
|
country?: string | undefined;
|
|
12518
13264
|
}[]>;
|
|
12519
|
-
getCountries(params
|
|
13265
|
+
getCountries(params?: {} | undefined): import("../types/api").RequestData<{
|
|
12520
13266
|
code: string;
|
|
12521
13267
|
name: string;
|
|
12522
13268
|
}[]>;
|
|
@@ -12611,6 +13357,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
12611
13357
|
}[]>;
|
|
12612
13358
|
deleteDataStoreData: (dataStoreId: string, dataStoreDataId: string) => Promise<import("../types/sync").SimpleResponseModel>;
|
|
12613
13359
|
logData: (logs: import("../types/consumers").ConsumerLog[]) => Promise<import("../types/sync").SimpleResponseModel>;
|
|
13360
|
+
setConnectionId: (connectionId: string) => Promise<void>;
|
|
13361
|
+
setIntegrationId: (integrationId: string) => Promise<void>;
|
|
12614
13362
|
}, context: any) => any, log?: boolean) => Promise<void>;
|
|
12615
13363
|
flowId: string;
|
|
12616
13364
|
name: string;
|