@chift/chift-nodejs 1.0.19 → 1.0.21
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/dist/src/modules/accounting.d.ts +7 -4
- package/dist/src/modules/accounting.js +15 -0
- package/dist/src/modules/api.d.ts +2144 -174
- package/dist/src/modules/consumer.d.ts +405 -24
- package/dist/src/modules/consumer.js +10 -0
- package/dist/src/modules/consumers.d.ts +2117 -172
- package/dist/src/modules/datastores.d.ts +17 -0
- package/dist/src/modules/datastores.js +19 -0
- package/dist/src/modules/ecommerce.d.ts +2 -2
- package/dist/src/modules/flow.d.ts +6 -0
- package/dist/src/modules/flow.js +5 -0
- package/dist/src/modules/integrations.d.ts +2 -1
- package/dist/src/modules/integrations.js +5 -0
- package/dist/src/modules/invoicing.d.ts +6 -4
- package/dist/src/modules/invoicing.js +12 -0
- package/dist/src/modules/pms.d.ts +4 -0
- package/dist/src/modules/pms.js +14 -0
- package/dist/src/modules/sync.d.ts +1751 -150
- package/dist/src/modules/sync.js +15 -0
- package/dist/src/modules/syncs.d.ts +3 -0
- package/dist/src/modules/syncs.js +15 -0
- package/dist/src/modules/webhooks.d.ts +2 -0
- package/dist/src/types/public-api/schema.d.ts +1782 -766
- package/dist/src/types/public-api/schema.js +6 -0
- package/dist/test/modules/accounting.test.js +4 -0
- package/dist/test/modules/invoicing.test.js +15 -0
- package/dist/test/modules/pms.test.js +17 -0
- package/package.json +1 -1
- package/src/types/public-api/schema.d.ts +1782 -766
|
@@ -118,6 +118,8 @@ export declare class API {
|
|
|
118
118
|
}[];
|
|
119
119
|
items: {
|
|
120
120
|
id: string;
|
|
121
|
+
type?: "menu" | "product" | undefined;
|
|
122
|
+
menu_id?: string | undefined;
|
|
121
123
|
quantity: number;
|
|
122
124
|
unit_price: number;
|
|
123
125
|
total: number;
|
|
@@ -127,6 +129,7 @@ export declare class API {
|
|
|
127
129
|
discounts: {
|
|
128
130
|
name?: string | undefined;
|
|
129
131
|
total: number;
|
|
132
|
+
type: "OFFERED" | "UNKNOWN" | "LOSS";
|
|
130
133
|
}[];
|
|
131
134
|
product_id?: string | undefined;
|
|
132
135
|
accounting_category_id?: string | undefined;
|
|
@@ -193,6 +196,8 @@ export declare class API {
|
|
|
193
196
|
}[];
|
|
194
197
|
items: {
|
|
195
198
|
id: string;
|
|
199
|
+
type?: "menu" | "product" | undefined;
|
|
200
|
+
menu_id?: string | undefined;
|
|
196
201
|
quantity: number;
|
|
197
202
|
unit_price: number;
|
|
198
203
|
total: number;
|
|
@@ -202,6 +207,7 @@ export declare class API {
|
|
|
202
207
|
discounts: {
|
|
203
208
|
name?: string | undefined;
|
|
204
209
|
total: number;
|
|
210
|
+
type: "OFFERED" | "UNKNOWN" | "LOSS";
|
|
205
211
|
}[];
|
|
206
212
|
product_id?: string | undefined;
|
|
207
213
|
accounting_category_id?: string | undefined;
|
|
@@ -365,6 +371,8 @@ export declare class API {
|
|
|
365
371
|
}[];
|
|
366
372
|
items: {
|
|
367
373
|
id: string;
|
|
374
|
+
type?: "menu" | "product" | undefined;
|
|
375
|
+
menu_id?: string | undefined;
|
|
368
376
|
quantity: number;
|
|
369
377
|
unit_price: number;
|
|
370
378
|
total: number;
|
|
@@ -374,6 +382,7 @@ export declare class API {
|
|
|
374
382
|
discounts: {
|
|
375
383
|
name?: string | undefined;
|
|
376
384
|
total: number;
|
|
385
|
+
type: "OFFERED" | "UNKNOWN" | "LOSS";
|
|
377
386
|
}[];
|
|
378
387
|
product_id?: string | undefined;
|
|
379
388
|
accounting_category_id?: string | undefined;
|
|
@@ -384,7 +393,6 @@ export declare class API {
|
|
|
384
393
|
} | undefined): import("../types/api").RequestData<{
|
|
385
394
|
id: string;
|
|
386
395
|
name: string;
|
|
387
|
-
id_parent?: string | undefined;
|
|
388
396
|
code?: string | undefined;
|
|
389
397
|
ledger_account_code?: string | undefined;
|
|
390
398
|
posting_account_code?: string | undefined;
|
|
@@ -445,6 +453,8 @@ export declare class API {
|
|
|
445
453
|
id?: string | undefined;
|
|
446
454
|
model?: string | undefined;
|
|
447
455
|
};
|
|
456
|
+
type?: "menu" | "product" | undefined;
|
|
457
|
+
menu_id?: string | undefined;
|
|
448
458
|
quantity: number;
|
|
449
459
|
unit_price: number;
|
|
450
460
|
total: number;
|
|
@@ -454,11 +464,62 @@ export declare class API {
|
|
|
454
464
|
discounts: {
|
|
455
465
|
name?: string | undefined;
|
|
456
466
|
total: number;
|
|
467
|
+
type: "OFFERED" | "UNKNOWN" | "LOSS";
|
|
457
468
|
}[];
|
|
458
469
|
product_id?: string | undefined;
|
|
459
470
|
accounting_category_id?: string | undefined;
|
|
460
471
|
}[];
|
|
461
472
|
service_id?: string | undefined;
|
|
473
|
+
reservation?: {
|
|
474
|
+
id: string;
|
|
475
|
+
source_ref: {
|
|
476
|
+
id?: string | undefined;
|
|
477
|
+
model?: string | undefined;
|
|
478
|
+
};
|
|
479
|
+
start_date?: string | undefined;
|
|
480
|
+
end_date?: string | undefined;
|
|
481
|
+
creation_date?: string | undefined;
|
|
482
|
+
resource_id?: {
|
|
483
|
+
id: string;
|
|
484
|
+
source_ref: {
|
|
485
|
+
id?: string | undefined;
|
|
486
|
+
model?: string | undefined;
|
|
487
|
+
};
|
|
488
|
+
} | undefined;
|
|
489
|
+
resource_name?: string | undefined;
|
|
490
|
+
resource_identifier?: string | undefined;
|
|
491
|
+
} | undefined;
|
|
492
|
+
bills?: {
|
|
493
|
+
id: string;
|
|
494
|
+
source_ref: {
|
|
495
|
+
id?: string | undefined;
|
|
496
|
+
model?: string | undefined;
|
|
497
|
+
};
|
|
498
|
+
invoice_number?: string | undefined;
|
|
499
|
+
creation_date?: string | undefined;
|
|
500
|
+
closing_date?: string | undefined;
|
|
501
|
+
partners?: {
|
|
502
|
+
id: string;
|
|
503
|
+
source_ref: {
|
|
504
|
+
id?: string | undefined;
|
|
505
|
+
model?: string | undefined;
|
|
506
|
+
};
|
|
507
|
+
type: "owner" | "account";
|
|
508
|
+
address?: {
|
|
509
|
+
address_type?: string | undefined;
|
|
510
|
+
name?: string | undefined;
|
|
511
|
+
street?: string | undefined;
|
|
512
|
+
number?: string | undefined;
|
|
513
|
+
box?: string | undefined;
|
|
514
|
+
city?: string | undefined;
|
|
515
|
+
postal_code?: string | undefined;
|
|
516
|
+
country?: string | undefined;
|
|
517
|
+
} | undefined;
|
|
518
|
+
first_name?: string | undefined;
|
|
519
|
+
last_name?: string | undefined;
|
|
520
|
+
company_name?: string | undefined;
|
|
521
|
+
}[] | undefined;
|
|
522
|
+
}[] | undefined;
|
|
462
523
|
}[]>;
|
|
463
524
|
getPaymentMethods(params?: {
|
|
464
525
|
location_id?: string | undefined;
|
|
@@ -494,6 +555,13 @@ export declare class API {
|
|
|
494
555
|
status: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised";
|
|
495
556
|
currency?: string | undefined;
|
|
496
557
|
date?: string | undefined;
|
|
558
|
+
partner_id?: {
|
|
559
|
+
id: string;
|
|
560
|
+
source_ref: {
|
|
561
|
+
id?: string | undefined;
|
|
562
|
+
model?: string | undefined;
|
|
563
|
+
};
|
|
564
|
+
} | undefined;
|
|
497
565
|
}[]>;
|
|
498
566
|
getAccountingCategories(params?: {} | undefined): import("../types/api").RequestData<{
|
|
499
567
|
id: string;
|
|
@@ -502,11 +570,132 @@ export declare class API {
|
|
|
502
570
|
model?: string | undefined;
|
|
503
571
|
};
|
|
504
572
|
name: string;
|
|
505
|
-
id_parent?: string | undefined;
|
|
506
573
|
code?: string | undefined;
|
|
507
574
|
ledger_account_code?: string | undefined;
|
|
508
575
|
posting_account_code?: string | undefined;
|
|
509
576
|
}[]>;
|
|
577
|
+
getCustomers(params?: {} | undefined): import("../types/api").RequestData<{
|
|
578
|
+
id: string;
|
|
579
|
+
source_ref: {
|
|
580
|
+
id?: string | undefined;
|
|
581
|
+
model?: string | undefined;
|
|
582
|
+
};
|
|
583
|
+
first_name?: string | undefined;
|
|
584
|
+
last_name?: string | undefined;
|
|
585
|
+
company_name?: string | undefined;
|
|
586
|
+
phone?: string | undefined;
|
|
587
|
+
email?: string | undefined;
|
|
588
|
+
account_number?: string | undefined;
|
|
589
|
+
created_on?: string | undefined;
|
|
590
|
+
addresses?: {
|
|
591
|
+
address_type?: string | undefined;
|
|
592
|
+
name?: string | undefined;
|
|
593
|
+
street?: string | undefined;
|
|
594
|
+
number?: string | undefined;
|
|
595
|
+
box?: string | undefined;
|
|
596
|
+
city?: string | undefined;
|
|
597
|
+
postal_code?: string | undefined;
|
|
598
|
+
country?: string | undefined;
|
|
599
|
+
}[] | undefined;
|
|
600
|
+
}[]>;
|
|
601
|
+
getInvoices(params?: {
|
|
602
|
+
date_from: string;
|
|
603
|
+
date_to: string;
|
|
604
|
+
location_id?: string | undefined;
|
|
605
|
+
} | undefined): import("../types/api").RequestData<{
|
|
606
|
+
id: string;
|
|
607
|
+
source_ref: {
|
|
608
|
+
id?: string | undefined;
|
|
609
|
+
model?: string | undefined;
|
|
610
|
+
};
|
|
611
|
+
invoice_number?: string | undefined;
|
|
612
|
+
creation_date?: string | undefined;
|
|
613
|
+
closing_date?: string | undefined;
|
|
614
|
+
partners?: {
|
|
615
|
+
id: string;
|
|
616
|
+
source_ref: {
|
|
617
|
+
id?: string | undefined;
|
|
618
|
+
model?: string | undefined;
|
|
619
|
+
};
|
|
620
|
+
type: "owner" | "account";
|
|
621
|
+
address?: {
|
|
622
|
+
address_type?: string | undefined;
|
|
623
|
+
name?: string | undefined;
|
|
624
|
+
street?: string | undefined;
|
|
625
|
+
number?: string | undefined;
|
|
626
|
+
box?: string | undefined;
|
|
627
|
+
city?: string | undefined;
|
|
628
|
+
postal_code?: string | undefined;
|
|
629
|
+
country?: string | undefined;
|
|
630
|
+
} | undefined;
|
|
631
|
+
first_name?: string | undefined;
|
|
632
|
+
last_name?: string | undefined;
|
|
633
|
+
company_name?: string | undefined;
|
|
634
|
+
}[] | undefined;
|
|
635
|
+
items: {
|
|
636
|
+
id: string;
|
|
637
|
+
source_ref: {
|
|
638
|
+
id?: string | undefined;
|
|
639
|
+
model?: string | undefined;
|
|
640
|
+
};
|
|
641
|
+
type?: "menu" | "product" | undefined;
|
|
642
|
+
menu_id?: string | undefined;
|
|
643
|
+
quantity: number;
|
|
644
|
+
unit_price: number;
|
|
645
|
+
total: number;
|
|
646
|
+
tax_amount: number;
|
|
647
|
+
tax_rate?: number | undefined;
|
|
648
|
+
description?: string | undefined;
|
|
649
|
+
discounts: {
|
|
650
|
+
name?: string | undefined;
|
|
651
|
+
total: number;
|
|
652
|
+
type: "OFFERED" | "UNKNOWN" | "LOSS";
|
|
653
|
+
}[];
|
|
654
|
+
product_id?: string | undefined;
|
|
655
|
+
accounting_category_id?: string | undefined;
|
|
656
|
+
}[];
|
|
657
|
+
payments: {
|
|
658
|
+
id?: string | undefined;
|
|
659
|
+
source_ref: {
|
|
660
|
+
id?: string | undefined;
|
|
661
|
+
model?: string | undefined;
|
|
662
|
+
};
|
|
663
|
+
payment_method_id?: string | undefined;
|
|
664
|
+
payment_method_name?: string | undefined;
|
|
665
|
+
total: number;
|
|
666
|
+
tip: number;
|
|
667
|
+
status: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised";
|
|
668
|
+
currency?: string | undefined;
|
|
669
|
+
date?: string | undefined;
|
|
670
|
+
partner_id?: {
|
|
671
|
+
id: string;
|
|
672
|
+
source_ref: {
|
|
673
|
+
id?: string | undefined;
|
|
674
|
+
model?: string | undefined;
|
|
675
|
+
};
|
|
676
|
+
} | undefined;
|
|
677
|
+
}[];
|
|
678
|
+
service_id?: string | undefined;
|
|
679
|
+
reservation?: {
|
|
680
|
+
id: string;
|
|
681
|
+
source_ref: {
|
|
682
|
+
id?: string | undefined;
|
|
683
|
+
model?: string | undefined;
|
|
684
|
+
};
|
|
685
|
+
start_date?: string | undefined;
|
|
686
|
+
end_date?: string | undefined;
|
|
687
|
+
creation_date?: string | undefined;
|
|
688
|
+
resource_id?: {
|
|
689
|
+
id: string;
|
|
690
|
+
source_ref: {
|
|
691
|
+
id?: string | undefined;
|
|
692
|
+
model?: string | undefined;
|
|
693
|
+
};
|
|
694
|
+
} | undefined;
|
|
695
|
+
resource_name?: string | undefined;
|
|
696
|
+
resource_identifier?: string | undefined;
|
|
697
|
+
} | undefined;
|
|
698
|
+
}[]>;
|
|
510
699
|
}>;
|
|
511
700
|
payment: import("../types/api").ApiFor<{
|
|
512
701
|
getPayments(params: {
|
|
@@ -558,8 +747,8 @@ export declare class API {
|
|
|
558
747
|
payment_id?: string | undefined;
|
|
559
748
|
}[]>;
|
|
560
749
|
getPayment(params: {
|
|
561
|
-
payment_id: string;
|
|
562
750
|
consumer_id: string;
|
|
751
|
+
payment_id: string;
|
|
563
752
|
}): import("../types/api").RequestData<{
|
|
564
753
|
id: string;
|
|
565
754
|
source_ref: {
|
|
@@ -600,7 +789,9 @@ export declare class API {
|
|
|
600
789
|
active: boolean;
|
|
601
790
|
}[]>;
|
|
602
791
|
getClients(params?: {
|
|
792
|
+
search?: string | undefined;
|
|
603
793
|
folder_id?: string | undefined;
|
|
794
|
+
updated_after?: string | undefined;
|
|
604
795
|
} | undefined): import("../types/api").RequestData<{
|
|
605
796
|
external_reference?: string | undefined;
|
|
606
797
|
first_name?: string | undefined;
|
|
@@ -671,8 +862,8 @@ export declare class API {
|
|
|
671
862
|
}[];
|
|
672
863
|
account_number?: string | undefined;
|
|
673
864
|
}, params?: {
|
|
674
|
-
force_merge?: string | undefined;
|
|
675
865
|
folder_id?: string | undefined;
|
|
866
|
+
force_merge?: string | undefined;
|
|
676
867
|
} | undefined): import("../types/api").RequestData<{
|
|
677
868
|
external_reference?: string | undefined;
|
|
678
869
|
first_name?: string | undefined;
|
|
@@ -818,7 +1009,9 @@ export declare class API {
|
|
|
818
1009
|
id?: string | undefined;
|
|
819
1010
|
}>;
|
|
820
1011
|
getSuppliers(params?: {
|
|
1012
|
+
search?: string | undefined;
|
|
821
1013
|
folder_id?: string | undefined;
|
|
1014
|
+
updated_after?: string | undefined;
|
|
822
1015
|
} | undefined): import("../types/api").RequestData<{
|
|
823
1016
|
external_reference?: string | undefined;
|
|
824
1017
|
first_name?: string | undefined;
|
|
@@ -889,8 +1082,8 @@ export declare class API {
|
|
|
889
1082
|
}[];
|
|
890
1083
|
account_number?: string | undefined;
|
|
891
1084
|
}, params?: {
|
|
892
|
-
force_merge?: string | undefined;
|
|
893
1085
|
folder_id?: string | undefined;
|
|
1086
|
+
force_merge?: string | undefined;
|
|
894
1087
|
} | undefined): import("../types/api").RequestData<{
|
|
895
1088
|
external_reference?: string | undefined;
|
|
896
1089
|
first_name?: string | undefined;
|
|
@@ -1084,9 +1277,9 @@ export declare class API {
|
|
|
1084
1277
|
analytic_account?: string | undefined;
|
|
1085
1278
|
}[];
|
|
1086
1279
|
}, params?: {
|
|
1280
|
+
folder_id?: string | undefined;
|
|
1087
1281
|
force_financial_period?: string | undefined;
|
|
1088
1282
|
regroup_lines?: "true" | "false" | undefined;
|
|
1089
|
-
folder_id?: string | undefined;
|
|
1090
1283
|
} | undefined): import("../types/api").RequestData<{
|
|
1091
1284
|
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
1092
1285
|
invoice_number?: string | undefined;
|
|
@@ -1187,9 +1380,9 @@ export declare class API {
|
|
|
1187
1380
|
}[];
|
|
1188
1381
|
}[];
|
|
1189
1382
|
}, params?: {
|
|
1383
|
+
folder_id?: string | undefined;
|
|
1190
1384
|
force_financial_period?: string | undefined;
|
|
1191
1385
|
regroup_lines?: "true" | "false" | undefined;
|
|
1192
|
-
folder_id?: string | undefined;
|
|
1193
1386
|
} | undefined): import("../types/api").RequestData<{
|
|
1194
1387
|
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
1195
1388
|
invoice_number?: string | undefined;
|
|
@@ -1248,6 +1441,7 @@ export declare class API {
|
|
|
1248
1441
|
journal_ids?: string | undefined;
|
|
1249
1442
|
include_payments?: "true" | "false" | undefined;
|
|
1250
1443
|
payment_status?: "all" | "paid" | "unpaid" | undefined;
|
|
1444
|
+
updated_after?: string | undefined;
|
|
1251
1445
|
} | undefined): import("../types/api").RequestData<{
|
|
1252
1446
|
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
1253
1447
|
invoice_number?: string | undefined;
|
|
@@ -1294,8 +1488,8 @@ export declare class API {
|
|
|
1294
1488
|
}[];
|
|
1295
1489
|
}[]>;
|
|
1296
1490
|
getInvoice(invoiceId: string, params?: {
|
|
1297
|
-
include_payments?: "true" | "false" | undefined;
|
|
1298
1491
|
folder_id?: string | undefined;
|
|
1492
|
+
include_payments?: "true" | "false" | undefined;
|
|
1299
1493
|
} | undefined): import("../types/api").RequestData<{
|
|
1300
1494
|
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
1301
1495
|
invoice_number?: string | undefined;
|
|
@@ -1342,8 +1536,8 @@ export declare class API {
|
|
|
1342
1536
|
}[];
|
|
1343
1537
|
}>;
|
|
1344
1538
|
getInvoiceWithMultiplePlans(invoiceId: string, params?: {
|
|
1345
|
-
include_payments?: "true" | "false" | undefined;
|
|
1346
1539
|
folder_id?: string | undefined;
|
|
1540
|
+
include_payments?: "true" | "false" | undefined;
|
|
1347
1541
|
} | undefined): import("../types/api").RequestData<{
|
|
1348
1542
|
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
1349
1543
|
invoice_number?: string | undefined;
|
|
@@ -1402,6 +1596,7 @@ export declare class API {
|
|
|
1402
1596
|
journal_ids?: string | undefined;
|
|
1403
1597
|
include_payments?: "true" | "false" | undefined;
|
|
1404
1598
|
payment_status?: "all" | "paid" | "unpaid" | undefined;
|
|
1599
|
+
updated_after?: string | undefined;
|
|
1405
1600
|
} | undefined): import("../types/api").RequestData<{
|
|
1406
1601
|
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
1407
1602
|
invoice_number?: string | undefined;
|
|
@@ -1574,9 +1769,10 @@ export declare class API {
|
|
|
1574
1769
|
analytic_plan: string;
|
|
1575
1770
|
}[]>;
|
|
1576
1771
|
getJournalEntries(params: {
|
|
1577
|
-
date_from
|
|
1578
|
-
date_to
|
|
1772
|
+
date_from?: string | undefined;
|
|
1773
|
+
date_to?: string | undefined;
|
|
1579
1774
|
folder_id?: string | undefined;
|
|
1775
|
+
updated_after?: string | undefined;
|
|
1580
1776
|
unposted_allowed: "true" | "false";
|
|
1581
1777
|
journal_id: string;
|
|
1582
1778
|
partner_id?: string | undefined;
|
|
@@ -1606,9 +1802,10 @@ export declare class API {
|
|
|
1606
1802
|
}[];
|
|
1607
1803
|
}[]>;
|
|
1608
1804
|
getJournalEntriesWithMultiplePlans(params: {
|
|
1609
|
-
date_from
|
|
1610
|
-
date_to
|
|
1805
|
+
date_from?: string | undefined;
|
|
1806
|
+
date_to?: string | undefined;
|
|
1611
1807
|
folder_id?: string | undefined;
|
|
1808
|
+
updated_after?: string | undefined;
|
|
1612
1809
|
unposted_allowed: "true" | "false";
|
|
1613
1810
|
journal_id: string;
|
|
1614
1811
|
partner_id?: string | undefined;
|
|
@@ -1643,9 +1840,9 @@ export declare class API {
|
|
|
1643
1840
|
}[];
|
|
1644
1841
|
}[]>;
|
|
1645
1842
|
getPaymentsByInvoiceId(invoice_id: string, params?: {
|
|
1646
|
-
folder_id?: string | undefined;
|
|
1647
1843
|
page?: number | undefined;
|
|
1648
1844
|
size?: number | undefined;
|
|
1845
|
+
folder_id?: string | undefined;
|
|
1649
1846
|
} | undefined): import("../types/api").RequestData<{
|
|
1650
1847
|
id: string;
|
|
1651
1848
|
name: string;
|
|
@@ -1769,8 +1966,8 @@ export declare class API {
|
|
|
1769
1966
|
attachPDF(invoice_id: string, attachment: {
|
|
1770
1967
|
base64_string: string;
|
|
1771
1968
|
}, params?: {
|
|
1772
|
-
overwrite_existing?: "true" | "false" | undefined;
|
|
1773
1969
|
folder_id?: string | undefined;
|
|
1970
|
+
overwrite_existing?: "true" | "false" | undefined;
|
|
1774
1971
|
} | undefined): import("../types/api").RequestData<{
|
|
1775
1972
|
headers: {
|
|
1776
1973
|
[name: string]: unknown;
|
|
@@ -1787,8 +1984,8 @@ export declare class API {
|
|
|
1787
1984
|
base64_string: string;
|
|
1788
1985
|
}[]>;
|
|
1789
1986
|
getChartOfAccounts(params?: {
|
|
1790
|
-
classes?: string | undefined;
|
|
1791
1987
|
folder_id?: string | undefined;
|
|
1988
|
+
classes?: string | undefined;
|
|
1792
1989
|
} | undefined): import("../types/api").RequestData<{
|
|
1793
1990
|
number: string;
|
|
1794
1991
|
name: string;
|
|
@@ -1844,8 +2041,18 @@ export declare class API {
|
|
|
1844
2041
|
partner_id: string;
|
|
1845
2042
|
account_number: string;
|
|
1846
2043
|
reference?: string | undefined;
|
|
2044
|
+
matching_numbers: string[];
|
|
1847
2045
|
payment_communication?: string | undefined;
|
|
1848
2046
|
posted: boolean;
|
|
2047
|
+
original_document?: {
|
|
2048
|
+
id?: string | undefined;
|
|
2049
|
+
number?: string | undefined;
|
|
2050
|
+
journal_id?: string | undefined;
|
|
2051
|
+
journal_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown" | undefined;
|
|
2052
|
+
date?: string | undefined;
|
|
2053
|
+
due_date?: string | undefined;
|
|
2054
|
+
reference?: string | undefined;
|
|
2055
|
+
} | undefined;
|
|
1849
2056
|
}[]>;
|
|
1850
2057
|
createFinancialEntryOld(financial_entry: {
|
|
1851
2058
|
date: string;
|
|
@@ -1863,8 +2070,8 @@ export declare class API {
|
|
|
1863
2070
|
}[];
|
|
1864
2071
|
pdf?: string | undefined;
|
|
1865
2072
|
}, params?: {
|
|
1866
|
-
financial_counterpart_account?: string | undefined;
|
|
1867
2073
|
folder_id?: string | undefined;
|
|
2074
|
+
financial_counterpart_account?: string | undefined;
|
|
1868
2075
|
} | undefined): import("../types/api").RequestData<{
|
|
1869
2076
|
date: string;
|
|
1870
2077
|
journal_id: string;
|
|
@@ -1897,8 +2104,8 @@ export declare class API {
|
|
|
1897
2104
|
}[];
|
|
1898
2105
|
pdf?: string | undefined;
|
|
1899
2106
|
}, params?: {
|
|
1900
|
-
financial_counterpart_account?: string | undefined;
|
|
1901
2107
|
folder_id?: string | undefined;
|
|
2108
|
+
financial_counterpart_account?: string | undefined;
|
|
1902
2109
|
} | undefined): import("../types/api").RequestData<{
|
|
1903
2110
|
date: string;
|
|
1904
2111
|
journal_id: string;
|
|
@@ -1995,9 +2202,11 @@ export declare class API {
|
|
|
1995
2202
|
}[];
|
|
1996
2203
|
pdf?: string | undefined;
|
|
1997
2204
|
posted: boolean;
|
|
2205
|
+
start_date?: string | undefined;
|
|
2206
|
+
end_date?: string | undefined;
|
|
1998
2207
|
}, params?: {
|
|
1999
|
-
force_currency_exchange?: "true" | "false" | undefined;
|
|
2000
2208
|
folder_id?: string | undefined;
|
|
2209
|
+
force_currency_exchange?: "true" | "false" | undefined;
|
|
2001
2210
|
} | undefined): import("../types/api").RequestData<{
|
|
2002
2211
|
reference?: string | undefined;
|
|
2003
2212
|
due_date?: string | undefined;
|
|
@@ -2037,6 +2246,18 @@ export declare class API {
|
|
|
2037
2246
|
matching_number: string;
|
|
2038
2247
|
balance: number;
|
|
2039
2248
|
}>;
|
|
2249
|
+
matchEntriesMultiple(body: {
|
|
2250
|
+
matchings: {
|
|
2251
|
+
entries: string[];
|
|
2252
|
+
partner_id: string;
|
|
2253
|
+
}[];
|
|
2254
|
+
}, params?: {
|
|
2255
|
+
folder_id?: string | undefined;
|
|
2256
|
+
} | undefined): import("../types/api").RequestData<{
|
|
2257
|
+
matching_number?: string | undefined;
|
|
2258
|
+
processed: boolean;
|
|
2259
|
+
error_msg?: Record<string, never> | undefined;
|
|
2260
|
+
}[]>;
|
|
2040
2261
|
getFolders(): import("../types/api").RequestData<{
|
|
2041
2262
|
id: string;
|
|
2042
2263
|
name: string;
|
|
@@ -2044,14 +2265,23 @@ export declare class API {
|
|
|
2044
2265
|
vat?: string | undefined;
|
|
2045
2266
|
company_number?: string | undefined;
|
|
2046
2267
|
}[]>;
|
|
2268
|
+
getBookyears(params?: {
|
|
2269
|
+
folder_id?: string | undefined;
|
|
2270
|
+
} | undefined): import("../types/api").RequestData<{
|
|
2271
|
+
name: string;
|
|
2272
|
+
start: string;
|
|
2273
|
+
end: string;
|
|
2274
|
+
closed: boolean;
|
|
2275
|
+
}[]>;
|
|
2047
2276
|
}>;
|
|
2048
2277
|
invoicing: import("../types/api").ApiFor<{
|
|
2049
2278
|
getInvoices(params?: {
|
|
2050
2279
|
date_from?: string | undefined;
|
|
2051
2280
|
date_to?: string | undefined;
|
|
2052
2281
|
payment_status?: "all" | "paid" | "unpaid" | undefined;
|
|
2053
|
-
invoice_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all" | undefined;
|
|
2054
2282
|
updated_after?: string | undefined;
|
|
2283
|
+
invoice_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all" | undefined;
|
|
2284
|
+
include_invoice_lines?: "true" | "false" | undefined;
|
|
2055
2285
|
} | undefined): import("../types/api").RequestData<{
|
|
2056
2286
|
id: string;
|
|
2057
2287
|
source_ref: {
|
|
@@ -2059,7 +2289,7 @@ export declare class API {
|
|
|
2059
2289
|
model?: string | undefined;
|
|
2060
2290
|
};
|
|
2061
2291
|
currency: string;
|
|
2062
|
-
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
2292
|
+
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all";
|
|
2063
2293
|
status: "draft" | "posted" | "cancelled" | "paid";
|
|
2064
2294
|
invoice_date: string;
|
|
2065
2295
|
tax_amount: number;
|
|
@@ -2076,6 +2306,7 @@ export declare class API {
|
|
|
2076
2306
|
tax_rate?: number | undefined;
|
|
2077
2307
|
account_number?: string | undefined;
|
|
2078
2308
|
tax_id?: string | undefined;
|
|
2309
|
+
tax_exemption_reason?: string | undefined;
|
|
2079
2310
|
unit_of_measure?: string | undefined;
|
|
2080
2311
|
product_id?: string | undefined;
|
|
2081
2312
|
product_code?: string | undefined;
|
|
@@ -2092,8 +2323,29 @@ export declare class API {
|
|
|
2092
2323
|
model?: string | undefined;
|
|
2093
2324
|
name?: string | undefined;
|
|
2094
2325
|
} | undefined;
|
|
2326
|
+
italian_specificities?: {
|
|
2327
|
+
stamp_duty_amount?: number | undefined;
|
|
2328
|
+
withholding_tax?: {
|
|
2329
|
+
rate: number;
|
|
2330
|
+
amount: number;
|
|
2331
|
+
reason?: "RT01" | "RT02" | "RT03" | "RT04" | "RT05" | "RT06" | undefined;
|
|
2332
|
+
payment_reason?: "A" | "U" | "R" | "Q" | "H" | "V" | "V2" | "I" | "J" | "K" | "P" | "S" | "T" | "W" | "X" | "Y" | "B" | "C" | "D" | "E" | "F" | "G" | "L" | "L1" | "M" | "M1" | "M2" | "IN" | "O" | "O1" | "V1" | undefined;
|
|
2333
|
+
} | undefined;
|
|
2334
|
+
welfare_fund?: {
|
|
2335
|
+
rate: number;
|
|
2336
|
+
amount: number;
|
|
2337
|
+
type?: "TC01" | "TC02" | "TC03" | "TC04" | "TC05" | "TC06" | "TC07" | "TC08" | "TC09" | "TC10" | "TC11" | "TC12" | "TC13" | "TC14" | "TC15" | "TC16" | "TC17" | "TC18" | "TC19" | "TC20" | "TC21" | "TC22" | undefined;
|
|
2338
|
+
} | undefined;
|
|
2339
|
+
payment_reporting?: {
|
|
2340
|
+
method?: "MP01" | "MP02" | "MP03" | "MP04" | "MP05" | "MP06" | "MP07" | "MP08" | "MP09" | "MP10" | "MP11" | "MP12" | "MP13" | "MP14" | "MP15" | "MP16" | "MP17" | "MP18" | "MP19" | "MP20" | "MP21" | "MP22" | "MP23" | undefined;
|
|
2341
|
+
conditions?: "TP01" | "TP02" | "TP03" | undefined;
|
|
2342
|
+
} | undefined;
|
|
2343
|
+
} | undefined;
|
|
2095
2344
|
last_updated_on?: string | undefined;
|
|
2096
2345
|
outstanding_amount?: number | undefined;
|
|
2346
|
+
accounting_date?: string | undefined;
|
|
2347
|
+
payment_method_id?: string | undefined;
|
|
2348
|
+
currency_exchange_rate: number;
|
|
2097
2349
|
}[]>;
|
|
2098
2350
|
getInvoiceById(invoiceId: string, params?: {
|
|
2099
2351
|
include_pdf?: "true" | "false" | undefined;
|
|
@@ -2104,7 +2356,7 @@ export declare class API {
|
|
|
2104
2356
|
model?: string | undefined;
|
|
2105
2357
|
};
|
|
2106
2358
|
currency: string;
|
|
2107
|
-
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
2359
|
+
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all";
|
|
2108
2360
|
status: "draft" | "posted" | "cancelled" | "paid";
|
|
2109
2361
|
invoice_date: string;
|
|
2110
2362
|
tax_amount: number;
|
|
@@ -2121,6 +2373,7 @@ export declare class API {
|
|
|
2121
2373
|
tax_rate?: number | undefined;
|
|
2122
2374
|
account_number?: string | undefined;
|
|
2123
2375
|
tax_id?: string | undefined;
|
|
2376
|
+
tax_exemption_reason?: string | undefined;
|
|
2124
2377
|
unit_of_measure?: string | undefined;
|
|
2125
2378
|
product_id?: string | undefined;
|
|
2126
2379
|
product_code?: string | undefined;
|
|
@@ -2137,12 +2390,33 @@ export declare class API {
|
|
|
2137
2390
|
model?: string | undefined;
|
|
2138
2391
|
name?: string | undefined;
|
|
2139
2392
|
} | undefined;
|
|
2393
|
+
italian_specificities?: {
|
|
2394
|
+
stamp_duty_amount?: number | undefined;
|
|
2395
|
+
withholding_tax?: {
|
|
2396
|
+
rate: number;
|
|
2397
|
+
amount: number;
|
|
2398
|
+
reason?: "RT01" | "RT02" | "RT03" | "RT04" | "RT05" | "RT06" | undefined;
|
|
2399
|
+
payment_reason?: "A" | "U" | "R" | "Q" | "H" | "V" | "V2" | "I" | "J" | "K" | "P" | "S" | "T" | "W" | "X" | "Y" | "B" | "C" | "D" | "E" | "F" | "G" | "L" | "L1" | "M" | "M1" | "M2" | "IN" | "O" | "O1" | "V1" | undefined;
|
|
2400
|
+
} | undefined;
|
|
2401
|
+
welfare_fund?: {
|
|
2402
|
+
rate: number;
|
|
2403
|
+
amount: number;
|
|
2404
|
+
type?: "TC01" | "TC02" | "TC03" | "TC04" | "TC05" | "TC06" | "TC07" | "TC08" | "TC09" | "TC10" | "TC11" | "TC12" | "TC13" | "TC14" | "TC15" | "TC16" | "TC17" | "TC18" | "TC19" | "TC20" | "TC21" | "TC22" | undefined;
|
|
2405
|
+
} | undefined;
|
|
2406
|
+
payment_reporting?: {
|
|
2407
|
+
method?: "MP01" | "MP02" | "MP03" | "MP04" | "MP05" | "MP06" | "MP07" | "MP08" | "MP09" | "MP10" | "MP11" | "MP12" | "MP13" | "MP14" | "MP15" | "MP16" | "MP17" | "MP18" | "MP19" | "MP20" | "MP21" | "MP22" | "MP23" | undefined;
|
|
2408
|
+
conditions?: "TP01" | "TP02" | "TP03" | undefined;
|
|
2409
|
+
} | undefined;
|
|
2410
|
+
} | undefined;
|
|
2140
2411
|
last_updated_on?: string | undefined;
|
|
2141
2412
|
outstanding_amount?: number | undefined;
|
|
2413
|
+
accounting_date?: string | undefined;
|
|
2414
|
+
payment_method_id?: string | undefined;
|
|
2415
|
+
currency_exchange_rate: number;
|
|
2142
2416
|
}>;
|
|
2143
2417
|
createInvoice(invoice: {
|
|
2144
2418
|
currency: string;
|
|
2145
|
-
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
2419
|
+
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all";
|
|
2146
2420
|
status: "draft" | "posted" | "cancelled" | "paid";
|
|
2147
2421
|
invoice_date: string;
|
|
2148
2422
|
tax_amount: number;
|
|
@@ -2159,6 +2433,7 @@ export declare class API {
|
|
|
2159
2433
|
tax_rate?: number | undefined;
|
|
2160
2434
|
account_number?: string | undefined;
|
|
2161
2435
|
tax_id?: string | undefined;
|
|
2436
|
+
tax_exemption_reason?: string | undefined;
|
|
2162
2437
|
unit_of_measure?: string | undefined;
|
|
2163
2438
|
product_id?: string | undefined;
|
|
2164
2439
|
product_code?: string | undefined;
|
|
@@ -2175,6 +2450,24 @@ export declare class API {
|
|
|
2175
2450
|
model?: string | undefined;
|
|
2176
2451
|
name?: string | undefined;
|
|
2177
2452
|
} | undefined;
|
|
2453
|
+
italian_specificities?: {
|
|
2454
|
+
stamp_duty_amount?: number | undefined;
|
|
2455
|
+
withholding_tax?: {
|
|
2456
|
+
rate: number;
|
|
2457
|
+
amount: number;
|
|
2458
|
+
reason?: "RT01" | "RT02" | "RT03" | "RT04" | "RT05" | "RT06" | undefined;
|
|
2459
|
+
payment_reason?: "A" | "U" | "R" | "Q" | "H" | "V" | "V2" | "I" | "J" | "K" | "P" | "S" | "T" | "W" | "X" | "Y" | "B" | "C" | "D" | "E" | "F" | "G" | "L" | "L1" | "M" | "M1" | "M2" | "IN" | "O" | "O1" | "V1" | undefined;
|
|
2460
|
+
} | undefined;
|
|
2461
|
+
welfare_fund?: {
|
|
2462
|
+
rate: number;
|
|
2463
|
+
amount: number;
|
|
2464
|
+
type?: "TC01" | "TC02" | "TC03" | "TC04" | "TC05" | "TC06" | "TC07" | "TC08" | "TC09" | "TC10" | "TC11" | "TC12" | "TC13" | "TC14" | "TC15" | "TC16" | "TC17" | "TC18" | "TC19" | "TC20" | "TC21" | "TC22" | undefined;
|
|
2465
|
+
} | undefined;
|
|
2466
|
+
payment_reporting?: {
|
|
2467
|
+
method?: "MP01" | "MP02" | "MP03" | "MP04" | "MP05" | "MP06" | "MP07" | "MP08" | "MP09" | "MP10" | "MP11" | "MP12" | "MP13" | "MP14" | "MP15" | "MP16" | "MP17" | "MP18" | "MP19" | "MP20" | "MP21" | "MP22" | "MP23" | undefined;
|
|
2468
|
+
conditions?: "TP01" | "TP02" | "TP03" | undefined;
|
|
2469
|
+
} | undefined;
|
|
2470
|
+
} | undefined;
|
|
2178
2471
|
}): import("../types/api").RequestData<{
|
|
2179
2472
|
id: string;
|
|
2180
2473
|
source_ref: {
|
|
@@ -2182,7 +2475,7 @@ export declare class API {
|
|
|
2182
2475
|
model?: string | undefined;
|
|
2183
2476
|
};
|
|
2184
2477
|
currency: string;
|
|
2185
|
-
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
2478
|
+
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all";
|
|
2186
2479
|
status: "draft" | "posted" | "cancelled" | "paid";
|
|
2187
2480
|
invoice_date: string;
|
|
2188
2481
|
tax_amount: number;
|
|
@@ -2199,6 +2492,7 @@ export declare class API {
|
|
|
2199
2492
|
tax_rate?: number | undefined;
|
|
2200
2493
|
account_number?: string | undefined;
|
|
2201
2494
|
tax_id?: string | undefined;
|
|
2495
|
+
tax_exemption_reason?: string | undefined;
|
|
2202
2496
|
unit_of_measure?: string | undefined;
|
|
2203
2497
|
product_id?: string | undefined;
|
|
2204
2498
|
product_code?: string | undefined;
|
|
@@ -2215,8 +2509,29 @@ export declare class API {
|
|
|
2215
2509
|
model?: string | undefined;
|
|
2216
2510
|
name?: string | undefined;
|
|
2217
2511
|
} | undefined;
|
|
2512
|
+
italian_specificities?: {
|
|
2513
|
+
stamp_duty_amount?: number | undefined;
|
|
2514
|
+
withholding_tax?: {
|
|
2515
|
+
rate: number;
|
|
2516
|
+
amount: number;
|
|
2517
|
+
reason?: "RT01" | "RT02" | "RT03" | "RT04" | "RT05" | "RT06" | undefined;
|
|
2518
|
+
payment_reason?: "A" | "U" | "R" | "Q" | "H" | "V" | "V2" | "I" | "J" | "K" | "P" | "S" | "T" | "W" | "X" | "Y" | "B" | "C" | "D" | "E" | "F" | "G" | "L" | "L1" | "M" | "M1" | "M2" | "IN" | "O" | "O1" | "V1" | undefined;
|
|
2519
|
+
} | undefined;
|
|
2520
|
+
welfare_fund?: {
|
|
2521
|
+
rate: number;
|
|
2522
|
+
amount: number;
|
|
2523
|
+
type?: "TC01" | "TC02" | "TC03" | "TC04" | "TC05" | "TC06" | "TC07" | "TC08" | "TC09" | "TC10" | "TC11" | "TC12" | "TC13" | "TC14" | "TC15" | "TC16" | "TC17" | "TC18" | "TC19" | "TC20" | "TC21" | "TC22" | undefined;
|
|
2524
|
+
} | undefined;
|
|
2525
|
+
payment_reporting?: {
|
|
2526
|
+
method?: "MP01" | "MP02" | "MP03" | "MP04" | "MP05" | "MP06" | "MP07" | "MP08" | "MP09" | "MP10" | "MP11" | "MP12" | "MP13" | "MP14" | "MP15" | "MP16" | "MP17" | "MP18" | "MP19" | "MP20" | "MP21" | "MP22" | "MP23" | undefined;
|
|
2527
|
+
conditions?: "TP01" | "TP02" | "TP03" | undefined;
|
|
2528
|
+
} | undefined;
|
|
2529
|
+
} | undefined;
|
|
2218
2530
|
last_updated_on?: string | undefined;
|
|
2219
2531
|
outstanding_amount?: number | undefined;
|
|
2532
|
+
accounting_date?: string | undefined;
|
|
2533
|
+
payment_method_id?: string | undefined;
|
|
2534
|
+
currency_exchange_rate: number;
|
|
2220
2535
|
}>;
|
|
2221
2536
|
getProducts(): import("../types/api").RequestData<{
|
|
2222
2537
|
id: string;
|
|
@@ -2513,6 +2828,31 @@ export declare class API {
|
|
|
2513
2828
|
}[];
|
|
2514
2829
|
external_reference?: string | undefined;
|
|
2515
2830
|
}>;
|
|
2831
|
+
getPayments(): import("../types/api").RequestData<{
|
|
2832
|
+
id: string;
|
|
2833
|
+
source_ref: {
|
|
2834
|
+
id?: string | undefined;
|
|
2835
|
+
model?: string | undefined;
|
|
2836
|
+
};
|
|
2837
|
+
status: "unknown" | "pending" | "completed" | "canceled" | "failed" | "authorized";
|
|
2838
|
+
description: string;
|
|
2839
|
+
amount: number;
|
|
2840
|
+
currency: string;
|
|
2841
|
+
payment_date: string;
|
|
2842
|
+
partner_id: string;
|
|
2843
|
+
payment_method_id?: string | undefined;
|
|
2844
|
+
payment_method_name?: string | undefined;
|
|
2845
|
+
invoice_id?: string | undefined;
|
|
2846
|
+
invoice_number?: string | undefined;
|
|
2847
|
+
}[]>;
|
|
2848
|
+
getPaymentMethods(): import("../types/api").RequestData<{
|
|
2849
|
+
id: string;
|
|
2850
|
+
source_ref: {
|
|
2851
|
+
id?: string | undefined;
|
|
2852
|
+
model?: string | undefined;
|
|
2853
|
+
};
|
|
2854
|
+
name: string;
|
|
2855
|
+
}[]>;
|
|
2516
2856
|
}>;
|
|
2517
2857
|
ecommerce: import("../types/api").ApiFor<{
|
|
2518
2858
|
getCustomers(): import("../types/api").RequestData<{
|
|
@@ -2838,6 +3178,7 @@ export declare class API {
|
|
|
2838
3178
|
refunded_amount: number;
|
|
2839
3179
|
currency: string;
|
|
2840
3180
|
note?: string | undefined;
|
|
3181
|
+
tags: string[];
|
|
2841
3182
|
lines: {
|
|
2842
3183
|
id: string;
|
|
2843
3184
|
source_ref: {
|
|
@@ -3114,6 +3455,7 @@ export declare class API {
|
|
|
3114
3455
|
refunded_amount: number;
|
|
3115
3456
|
currency: string;
|
|
3116
3457
|
note?: string | undefined;
|
|
3458
|
+
tags: string[];
|
|
3117
3459
|
lines: {
|
|
3118
3460
|
id: string;
|
|
3119
3461
|
source_ref: {
|
|
@@ -3349,6 +3691,7 @@ export declare class API {
|
|
|
3349
3691
|
refunded_amount: number;
|
|
3350
3692
|
currency: string;
|
|
3351
3693
|
note?: string | undefined;
|
|
3694
|
+
tags: string[];
|
|
3352
3695
|
lines: {
|
|
3353
3696
|
id: string;
|
|
3354
3697
|
source_ref: {
|
|
@@ -3649,13 +3992,60 @@ export declare class API {
|
|
|
3649
3992
|
logData: (logs: import("../types/consumers").ConsumerLog[]) => Promise<import("../types/sync").SimpleResponseModel>;
|
|
3650
3993
|
setConnectionId: (connectionId: string) => Promise<void>;
|
|
3651
3994
|
setIntegrationId: (integrationId: string) => Promise<void>;
|
|
3652
|
-
|
|
3653
|
-
|
|
3654
|
-
|
|
3655
|
-
|
|
3656
|
-
|
|
3657
|
-
|
|
3658
|
-
|
|
3995
|
+
updateConsumer: (body: {
|
|
3996
|
+
name?: string | undefined;
|
|
3997
|
+
email?: string | undefined;
|
|
3998
|
+
internal_reference?: string | undefined;
|
|
3999
|
+
redirect_url?: string | undefined;
|
|
4000
|
+
}) => Promise<{
|
|
4001
|
+
consumerid: string;
|
|
4002
|
+
name: string;
|
|
4003
|
+
email?: string | undefined;
|
|
4004
|
+
internal_reference?: string | undefined;
|
|
4005
|
+
redirect_url?: string | undefined;
|
|
4006
|
+
}>;
|
|
4007
|
+
updateFlowConfig: (syncId: string, flowId: string, body: {
|
|
4008
|
+
triggerid: string;
|
|
4009
|
+
data: Record<string, never>;
|
|
4010
|
+
}) => Promise<{
|
|
4011
|
+
name: string;
|
|
4012
|
+
description?: string | undefined;
|
|
4013
|
+
id: string;
|
|
4014
|
+
config?: {
|
|
4015
|
+
definitionFields?: Record<string, never>[] | undefined;
|
|
4016
|
+
doorkeyFields?: Record<string, never>[] | undefined;
|
|
4017
|
+
customFields?: Record<string, never>[] | undefined;
|
|
4018
|
+
datastores: {
|
|
4019
|
+
id?: string | undefined;
|
|
4020
|
+
name: string;
|
|
4021
|
+
status: "active" | "inactive";
|
|
4022
|
+
definition: {
|
|
4023
|
+
columns: {
|
|
4024
|
+
name: string;
|
|
4025
|
+
title: string;
|
|
4026
|
+
type: string;
|
|
4027
|
+
optional: boolean;
|
|
4028
|
+
}[];
|
|
4029
|
+
search_column?: string | undefined;
|
|
4030
|
+
};
|
|
4031
|
+
}[];
|
|
4032
|
+
} | undefined;
|
|
4033
|
+
values: Record<string, never>;
|
|
4034
|
+
enabled_on?: string | undefined;
|
|
4035
|
+
trigger: {
|
|
4036
|
+
id: string;
|
|
4037
|
+
type: "event" | "timer";
|
|
4038
|
+
cronschedule?: string | undefined;
|
|
4039
|
+
};
|
|
4040
|
+
}>;
|
|
4041
|
+
}[]>;
|
|
4042
|
+
createConsumer: (body: {
|
|
4043
|
+
name: string;
|
|
4044
|
+
email?: string | undefined;
|
|
4045
|
+
internal_reference?: string | undefined;
|
|
4046
|
+
redirect_url?: string | undefined;
|
|
4047
|
+
}) => Promise<{
|
|
4048
|
+
consumerId: string;
|
|
3659
4049
|
getConnections: () => Promise<{
|
|
3660
4050
|
connectionid: string;
|
|
3661
4051
|
name: string;
|
|
@@ -3767,6 +4157,8 @@ export declare class API {
|
|
|
3767
4157
|
}[];
|
|
3768
4158
|
items: {
|
|
3769
4159
|
id: string;
|
|
4160
|
+
type?: "menu" | "product" | undefined;
|
|
4161
|
+
menu_id?: string | undefined;
|
|
3770
4162
|
quantity: number;
|
|
3771
4163
|
unit_price: number;
|
|
3772
4164
|
total: number;
|
|
@@ -3776,6 +4168,7 @@ export declare class API {
|
|
|
3776
4168
|
discounts: {
|
|
3777
4169
|
name?: string | undefined;
|
|
3778
4170
|
total: number;
|
|
4171
|
+
type: "OFFERED" | "UNKNOWN" | "LOSS";
|
|
3779
4172
|
}[];
|
|
3780
4173
|
product_id?: string | undefined;
|
|
3781
4174
|
accounting_category_id?: string | undefined;
|
|
@@ -3842,6 +4235,8 @@ export declare class API {
|
|
|
3842
4235
|
}[];
|
|
3843
4236
|
items: {
|
|
3844
4237
|
id: string;
|
|
4238
|
+
type?: "menu" | "product" | undefined;
|
|
4239
|
+
menu_id?: string | undefined;
|
|
3845
4240
|
quantity: number;
|
|
3846
4241
|
unit_price: number;
|
|
3847
4242
|
total: number;
|
|
@@ -3851,6 +4246,7 @@ export declare class API {
|
|
|
3851
4246
|
discounts: {
|
|
3852
4247
|
name?: string | undefined;
|
|
3853
4248
|
total: number;
|
|
4249
|
+
type: "OFFERED" | "UNKNOWN" | "LOSS";
|
|
3854
4250
|
}[];
|
|
3855
4251
|
product_id?: string | undefined;
|
|
3856
4252
|
accounting_category_id?: string | undefined;
|
|
@@ -4014,6 +4410,8 @@ export declare class API {
|
|
|
4014
4410
|
}[];
|
|
4015
4411
|
items: {
|
|
4016
4412
|
id: string;
|
|
4413
|
+
type?: "menu" | "product" | undefined;
|
|
4414
|
+
menu_id?: string | undefined;
|
|
4017
4415
|
quantity: number;
|
|
4018
4416
|
unit_price: number;
|
|
4019
4417
|
total: number;
|
|
@@ -4023,6 +4421,7 @@ export declare class API {
|
|
|
4023
4421
|
discounts: {
|
|
4024
4422
|
name?: string | undefined;
|
|
4025
4423
|
total: number;
|
|
4424
|
+
type: "OFFERED" | "UNKNOWN" | "LOSS";
|
|
4026
4425
|
}[];
|
|
4027
4426
|
product_id?: string | undefined;
|
|
4028
4427
|
accounting_category_id?: string | undefined;
|
|
@@ -4033,7 +4432,6 @@ export declare class API {
|
|
|
4033
4432
|
} | undefined): import("../types/api").RequestData<{
|
|
4034
4433
|
id: string;
|
|
4035
4434
|
name: string;
|
|
4036
|
-
id_parent?: string | undefined;
|
|
4037
4435
|
code?: string | undefined;
|
|
4038
4436
|
ledger_account_code?: string | undefined;
|
|
4039
4437
|
posting_account_code?: string | undefined;
|
|
@@ -4094,6 +4492,8 @@ export declare class API {
|
|
|
4094
4492
|
id?: string | undefined;
|
|
4095
4493
|
model?: string | undefined;
|
|
4096
4494
|
};
|
|
4495
|
+
type?: "menu" | "product" | undefined;
|
|
4496
|
+
menu_id?: string | undefined;
|
|
4097
4497
|
quantity: number;
|
|
4098
4498
|
unit_price: number;
|
|
4099
4499
|
total: number;
|
|
@@ -4103,11 +4503,62 @@ export declare class API {
|
|
|
4103
4503
|
discounts: {
|
|
4104
4504
|
name?: string | undefined;
|
|
4105
4505
|
total: number;
|
|
4506
|
+
type: "OFFERED" | "UNKNOWN" | "LOSS";
|
|
4106
4507
|
}[];
|
|
4107
4508
|
product_id?: string | undefined;
|
|
4108
4509
|
accounting_category_id?: string | undefined;
|
|
4109
4510
|
}[];
|
|
4110
4511
|
service_id?: string | undefined;
|
|
4512
|
+
reservation?: {
|
|
4513
|
+
id: string;
|
|
4514
|
+
source_ref: {
|
|
4515
|
+
id?: string | undefined;
|
|
4516
|
+
model?: string | undefined;
|
|
4517
|
+
};
|
|
4518
|
+
start_date?: string | undefined;
|
|
4519
|
+
end_date?: string | undefined;
|
|
4520
|
+
creation_date?: string | undefined;
|
|
4521
|
+
resource_id?: {
|
|
4522
|
+
id: string;
|
|
4523
|
+
source_ref: {
|
|
4524
|
+
id?: string | undefined;
|
|
4525
|
+
model?: string | undefined;
|
|
4526
|
+
};
|
|
4527
|
+
} | undefined;
|
|
4528
|
+
resource_name?: string | undefined;
|
|
4529
|
+
resource_identifier?: string | undefined;
|
|
4530
|
+
} | undefined;
|
|
4531
|
+
bills?: {
|
|
4532
|
+
id: string;
|
|
4533
|
+
source_ref: {
|
|
4534
|
+
id?: string | undefined;
|
|
4535
|
+
model?: string | undefined;
|
|
4536
|
+
};
|
|
4537
|
+
invoice_number?: string | undefined;
|
|
4538
|
+
creation_date?: string | undefined;
|
|
4539
|
+
closing_date?: string | undefined;
|
|
4540
|
+
partners?: {
|
|
4541
|
+
id: string;
|
|
4542
|
+
source_ref: {
|
|
4543
|
+
id?: string | undefined;
|
|
4544
|
+
model?: string | undefined;
|
|
4545
|
+
};
|
|
4546
|
+
type: "owner" | "account";
|
|
4547
|
+
address?: {
|
|
4548
|
+
address_type?: string | undefined;
|
|
4549
|
+
name?: string | undefined;
|
|
4550
|
+
street?: string | undefined;
|
|
4551
|
+
number?: string | undefined;
|
|
4552
|
+
box?: string | undefined;
|
|
4553
|
+
city?: string | undefined;
|
|
4554
|
+
postal_code?: string | undefined;
|
|
4555
|
+
country?: string | undefined;
|
|
4556
|
+
} | undefined;
|
|
4557
|
+
first_name?: string | undefined;
|
|
4558
|
+
last_name?: string | undefined;
|
|
4559
|
+
company_name?: string | undefined;
|
|
4560
|
+
}[] | undefined;
|
|
4561
|
+
}[] | undefined;
|
|
4111
4562
|
}[]>;
|
|
4112
4563
|
getPaymentMethods(params?: {
|
|
4113
4564
|
location_id?: string | undefined;
|
|
@@ -4143,6 +4594,13 @@ export declare class API {
|
|
|
4143
4594
|
status: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised";
|
|
4144
4595
|
currency?: string | undefined;
|
|
4145
4596
|
date?: string | undefined;
|
|
4597
|
+
partner_id?: {
|
|
4598
|
+
id: string;
|
|
4599
|
+
source_ref: {
|
|
4600
|
+
id?: string | undefined;
|
|
4601
|
+
model?: string | undefined;
|
|
4602
|
+
};
|
|
4603
|
+
} | undefined;
|
|
4146
4604
|
}[]>;
|
|
4147
4605
|
getAccountingCategories(params?: {} | undefined): import("../types/api").RequestData<{
|
|
4148
4606
|
id: string;
|
|
@@ -4151,11 +4609,132 @@ export declare class API {
|
|
|
4151
4609
|
model?: string | undefined;
|
|
4152
4610
|
};
|
|
4153
4611
|
name: string;
|
|
4154
|
-
id_parent?: string | undefined;
|
|
4155
4612
|
code?: string | undefined;
|
|
4156
4613
|
ledger_account_code?: string | undefined;
|
|
4157
4614
|
posting_account_code?: string | undefined;
|
|
4158
4615
|
}[]>;
|
|
4616
|
+
getCustomers(params?: {} | undefined): import("../types/api").RequestData<{
|
|
4617
|
+
id: string;
|
|
4618
|
+
source_ref: {
|
|
4619
|
+
id?: string | undefined;
|
|
4620
|
+
model?: string | undefined;
|
|
4621
|
+
};
|
|
4622
|
+
first_name?: string | undefined;
|
|
4623
|
+
last_name?: string | undefined;
|
|
4624
|
+
company_name?: string | undefined;
|
|
4625
|
+
phone?: string | undefined;
|
|
4626
|
+
email?: string | undefined;
|
|
4627
|
+
account_number?: string | undefined;
|
|
4628
|
+
created_on?: string | undefined;
|
|
4629
|
+
addresses?: {
|
|
4630
|
+
address_type?: string | undefined;
|
|
4631
|
+
name?: string | undefined;
|
|
4632
|
+
street?: string | undefined;
|
|
4633
|
+
number?: string | undefined;
|
|
4634
|
+
box?: string | undefined;
|
|
4635
|
+
city?: string | undefined;
|
|
4636
|
+
postal_code?: string | undefined;
|
|
4637
|
+
country?: string | undefined;
|
|
4638
|
+
}[] | undefined;
|
|
4639
|
+
}[]>;
|
|
4640
|
+
getInvoices(params?: {
|
|
4641
|
+
date_from: string;
|
|
4642
|
+
date_to: string;
|
|
4643
|
+
location_id?: string | undefined;
|
|
4644
|
+
} | undefined): import("../types/api").RequestData<{
|
|
4645
|
+
id: string;
|
|
4646
|
+
source_ref: {
|
|
4647
|
+
id?: string | undefined;
|
|
4648
|
+
model?: string | undefined;
|
|
4649
|
+
};
|
|
4650
|
+
invoice_number?: string | undefined;
|
|
4651
|
+
creation_date?: string | undefined;
|
|
4652
|
+
closing_date?: string | undefined;
|
|
4653
|
+
partners?: {
|
|
4654
|
+
id: string;
|
|
4655
|
+
source_ref: {
|
|
4656
|
+
id?: string | undefined;
|
|
4657
|
+
model?: string | undefined;
|
|
4658
|
+
};
|
|
4659
|
+
type: "owner" | "account";
|
|
4660
|
+
address?: {
|
|
4661
|
+
address_type?: string | undefined;
|
|
4662
|
+
name?: string | undefined;
|
|
4663
|
+
street?: string | undefined;
|
|
4664
|
+
number?: string | undefined;
|
|
4665
|
+
box?: string | undefined;
|
|
4666
|
+
city?: string | undefined;
|
|
4667
|
+
postal_code?: string | undefined;
|
|
4668
|
+
country?: string | undefined;
|
|
4669
|
+
} | undefined;
|
|
4670
|
+
first_name?: string | undefined;
|
|
4671
|
+
last_name?: string | undefined;
|
|
4672
|
+
company_name?: string | undefined;
|
|
4673
|
+
}[] | undefined;
|
|
4674
|
+
items: {
|
|
4675
|
+
id: string;
|
|
4676
|
+
source_ref: {
|
|
4677
|
+
id?: string | undefined;
|
|
4678
|
+
model?: string | undefined;
|
|
4679
|
+
};
|
|
4680
|
+
type?: "menu" | "product" | undefined;
|
|
4681
|
+
menu_id?: string | undefined;
|
|
4682
|
+
quantity: number;
|
|
4683
|
+
unit_price: number;
|
|
4684
|
+
total: number;
|
|
4685
|
+
tax_amount: number;
|
|
4686
|
+
tax_rate?: number | undefined;
|
|
4687
|
+
description?: string | undefined;
|
|
4688
|
+
discounts: {
|
|
4689
|
+
name?: string | undefined;
|
|
4690
|
+
total: number;
|
|
4691
|
+
type: "OFFERED" | "UNKNOWN" | "LOSS";
|
|
4692
|
+
}[];
|
|
4693
|
+
product_id?: string | undefined;
|
|
4694
|
+
accounting_category_id?: string | undefined;
|
|
4695
|
+
}[];
|
|
4696
|
+
payments: {
|
|
4697
|
+
id?: string | undefined;
|
|
4698
|
+
source_ref: {
|
|
4699
|
+
id?: string | undefined;
|
|
4700
|
+
model?: string | undefined;
|
|
4701
|
+
};
|
|
4702
|
+
payment_method_id?: string | undefined;
|
|
4703
|
+
payment_method_name?: string | undefined;
|
|
4704
|
+
total: number;
|
|
4705
|
+
tip: number;
|
|
4706
|
+
status: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised";
|
|
4707
|
+
currency?: string | undefined;
|
|
4708
|
+
date?: string | undefined;
|
|
4709
|
+
partner_id?: {
|
|
4710
|
+
id: string;
|
|
4711
|
+
source_ref: {
|
|
4712
|
+
id?: string | undefined;
|
|
4713
|
+
model?: string | undefined;
|
|
4714
|
+
};
|
|
4715
|
+
} | undefined;
|
|
4716
|
+
}[];
|
|
4717
|
+
service_id?: string | undefined;
|
|
4718
|
+
reservation?: {
|
|
4719
|
+
id: string;
|
|
4720
|
+
source_ref: {
|
|
4721
|
+
id?: string | undefined;
|
|
4722
|
+
model?: string | undefined;
|
|
4723
|
+
};
|
|
4724
|
+
start_date?: string | undefined;
|
|
4725
|
+
end_date?: string | undefined;
|
|
4726
|
+
creation_date?: string | undefined;
|
|
4727
|
+
resource_id?: {
|
|
4728
|
+
id: string;
|
|
4729
|
+
source_ref: {
|
|
4730
|
+
id?: string | undefined;
|
|
4731
|
+
model?: string | undefined;
|
|
4732
|
+
};
|
|
4733
|
+
} | undefined;
|
|
4734
|
+
resource_name?: string | undefined;
|
|
4735
|
+
resource_identifier?: string | undefined;
|
|
4736
|
+
} | undefined;
|
|
4737
|
+
}[]>;
|
|
4159
4738
|
}>;
|
|
4160
4739
|
payment: import("../types/api").ApiFor<{
|
|
4161
4740
|
getPayments(params: {
|
|
@@ -4207,8 +4786,8 @@ export declare class API {
|
|
|
4207
4786
|
payment_id?: string | undefined;
|
|
4208
4787
|
}[]>;
|
|
4209
4788
|
getPayment(params: {
|
|
4210
|
-
payment_id: string;
|
|
4211
4789
|
consumer_id: string;
|
|
4790
|
+
payment_id: string;
|
|
4212
4791
|
}): import("../types/api").RequestData<{
|
|
4213
4792
|
id: string;
|
|
4214
4793
|
source_ref: {
|
|
@@ -4249,7 +4828,9 @@ export declare class API {
|
|
|
4249
4828
|
active: boolean;
|
|
4250
4829
|
}[]>;
|
|
4251
4830
|
getClients(params?: {
|
|
4831
|
+
search?: string | undefined;
|
|
4252
4832
|
folder_id?: string | undefined;
|
|
4833
|
+
updated_after?: string | undefined;
|
|
4253
4834
|
} | undefined): import("../types/api").RequestData<{
|
|
4254
4835
|
external_reference?: string | undefined;
|
|
4255
4836
|
first_name?: string | undefined;
|
|
@@ -4320,8 +4901,8 @@ export declare class API {
|
|
|
4320
4901
|
}[];
|
|
4321
4902
|
account_number?: string | undefined;
|
|
4322
4903
|
}, params?: {
|
|
4323
|
-
force_merge?: string | undefined;
|
|
4324
4904
|
folder_id?: string | undefined;
|
|
4905
|
+
force_merge?: string | undefined;
|
|
4325
4906
|
} | undefined): import("../types/api").RequestData<{
|
|
4326
4907
|
external_reference?: string | undefined;
|
|
4327
4908
|
first_name?: string | undefined;
|
|
@@ -4467,7 +5048,9 @@ export declare class API {
|
|
|
4467
5048
|
id?: string | undefined;
|
|
4468
5049
|
}>;
|
|
4469
5050
|
getSuppliers(params?: {
|
|
5051
|
+
search?: string | undefined;
|
|
4470
5052
|
folder_id?: string | undefined;
|
|
5053
|
+
updated_after?: string | undefined;
|
|
4471
5054
|
} | undefined): import("../types/api").RequestData<{
|
|
4472
5055
|
external_reference?: string | undefined;
|
|
4473
5056
|
first_name?: string | undefined;
|
|
@@ -4538,8 +5121,8 @@ export declare class API {
|
|
|
4538
5121
|
}[];
|
|
4539
5122
|
account_number?: string | undefined;
|
|
4540
5123
|
}, params?: {
|
|
4541
|
-
force_merge?: string | undefined;
|
|
4542
5124
|
folder_id?: string | undefined;
|
|
5125
|
+
force_merge?: string | undefined;
|
|
4543
5126
|
} | undefined): import("../types/api").RequestData<{
|
|
4544
5127
|
external_reference?: string | undefined;
|
|
4545
5128
|
first_name?: string | undefined;
|
|
@@ -4733,9 +5316,9 @@ export declare class API {
|
|
|
4733
5316
|
analytic_account?: string | undefined;
|
|
4734
5317
|
}[];
|
|
4735
5318
|
}, params?: {
|
|
5319
|
+
folder_id?: string | undefined;
|
|
4736
5320
|
force_financial_period?: string | undefined;
|
|
4737
5321
|
regroup_lines?: "true" | "false" | undefined;
|
|
4738
|
-
folder_id?: string | undefined;
|
|
4739
5322
|
} | undefined): import("../types/api").RequestData<{
|
|
4740
5323
|
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
4741
5324
|
invoice_number?: string | undefined;
|
|
@@ -4836,9 +5419,9 @@ export declare class API {
|
|
|
4836
5419
|
}[];
|
|
4837
5420
|
}[];
|
|
4838
5421
|
}, params?: {
|
|
5422
|
+
folder_id?: string | undefined;
|
|
4839
5423
|
force_financial_period?: string | undefined;
|
|
4840
5424
|
regroup_lines?: "true" | "false" | undefined;
|
|
4841
|
-
folder_id?: string | undefined;
|
|
4842
5425
|
} | undefined): import("../types/api").RequestData<{
|
|
4843
5426
|
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
4844
5427
|
invoice_number?: string | undefined;
|
|
@@ -4897,6 +5480,7 @@ export declare class API {
|
|
|
4897
5480
|
journal_ids?: string | undefined;
|
|
4898
5481
|
include_payments?: "true" | "false" | undefined;
|
|
4899
5482
|
payment_status?: "all" | "paid" | "unpaid" | undefined;
|
|
5483
|
+
updated_after?: string | undefined;
|
|
4900
5484
|
} | undefined): import("../types/api").RequestData<{
|
|
4901
5485
|
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
4902
5486
|
invoice_number?: string | undefined;
|
|
@@ -4943,8 +5527,8 @@ export declare class API {
|
|
|
4943
5527
|
}[];
|
|
4944
5528
|
}[]>;
|
|
4945
5529
|
getInvoice(invoiceId: string, params?: {
|
|
4946
|
-
include_payments?: "true" | "false" | undefined;
|
|
4947
5530
|
folder_id?: string | undefined;
|
|
5531
|
+
include_payments?: "true" | "false" | undefined;
|
|
4948
5532
|
} | undefined): import("../types/api").RequestData<{
|
|
4949
5533
|
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
4950
5534
|
invoice_number?: string | undefined;
|
|
@@ -4991,8 +5575,8 @@ export declare class API {
|
|
|
4991
5575
|
}[];
|
|
4992
5576
|
}>;
|
|
4993
5577
|
getInvoiceWithMultiplePlans(invoiceId: string, params?: {
|
|
4994
|
-
include_payments?: "true" | "false" | undefined;
|
|
4995
5578
|
folder_id?: string | undefined;
|
|
5579
|
+
include_payments?: "true" | "false" | undefined;
|
|
4996
5580
|
} | undefined): import("../types/api").RequestData<{
|
|
4997
5581
|
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
4998
5582
|
invoice_number?: string | undefined;
|
|
@@ -5051,6 +5635,7 @@ export declare class API {
|
|
|
5051
5635
|
journal_ids?: string | undefined;
|
|
5052
5636
|
include_payments?: "true" | "false" | undefined;
|
|
5053
5637
|
payment_status?: "all" | "paid" | "unpaid" | undefined;
|
|
5638
|
+
updated_after?: string | undefined;
|
|
5054
5639
|
} | undefined): import("../types/api").RequestData<{
|
|
5055
5640
|
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
5056
5641
|
invoice_number?: string | undefined;
|
|
@@ -5223,9 +5808,10 @@ export declare class API {
|
|
|
5223
5808
|
analytic_plan: string;
|
|
5224
5809
|
}[]>;
|
|
5225
5810
|
getJournalEntries(params: {
|
|
5226
|
-
date_from
|
|
5227
|
-
date_to
|
|
5811
|
+
date_from?: string | undefined;
|
|
5812
|
+
date_to?: string | undefined;
|
|
5228
5813
|
folder_id?: string | undefined;
|
|
5814
|
+
updated_after?: string | undefined;
|
|
5229
5815
|
unposted_allowed: "true" | "false";
|
|
5230
5816
|
journal_id: string;
|
|
5231
5817
|
partner_id?: string | undefined;
|
|
@@ -5255,9 +5841,10 @@ export declare class API {
|
|
|
5255
5841
|
}[];
|
|
5256
5842
|
}[]>;
|
|
5257
5843
|
getJournalEntriesWithMultiplePlans(params: {
|
|
5258
|
-
date_from
|
|
5259
|
-
date_to
|
|
5844
|
+
date_from?: string | undefined;
|
|
5845
|
+
date_to?: string | undefined;
|
|
5260
5846
|
folder_id?: string | undefined;
|
|
5847
|
+
updated_after?: string | undefined;
|
|
5261
5848
|
unposted_allowed: "true" | "false";
|
|
5262
5849
|
journal_id: string;
|
|
5263
5850
|
partner_id?: string | undefined;
|
|
@@ -5292,9 +5879,9 @@ export declare class API {
|
|
|
5292
5879
|
}[];
|
|
5293
5880
|
}[]>;
|
|
5294
5881
|
getPaymentsByInvoiceId(invoice_id: string, params?: {
|
|
5295
|
-
folder_id?: string | undefined;
|
|
5296
5882
|
page?: number | undefined;
|
|
5297
5883
|
size?: number | undefined;
|
|
5884
|
+
folder_id?: string | undefined;
|
|
5298
5885
|
} | undefined): import("../types/api").RequestData<{
|
|
5299
5886
|
id: string;
|
|
5300
5887
|
name: string;
|
|
@@ -5418,8 +6005,8 @@ export declare class API {
|
|
|
5418
6005
|
attachPDF(invoice_id: string, attachment: {
|
|
5419
6006
|
base64_string: string;
|
|
5420
6007
|
}, params?: {
|
|
5421
|
-
overwrite_existing?: "true" | "false" | undefined;
|
|
5422
6008
|
folder_id?: string | undefined;
|
|
6009
|
+
overwrite_existing?: "true" | "false" | undefined;
|
|
5423
6010
|
} | undefined): import("../types/api").RequestData<{
|
|
5424
6011
|
headers: {
|
|
5425
6012
|
[name: string]: unknown;
|
|
@@ -5436,8 +6023,8 @@ export declare class API {
|
|
|
5436
6023
|
base64_string: string;
|
|
5437
6024
|
}[]>;
|
|
5438
6025
|
getChartOfAccounts(params?: {
|
|
5439
|
-
classes?: string | undefined;
|
|
5440
6026
|
folder_id?: string | undefined;
|
|
6027
|
+
classes?: string | undefined;
|
|
5441
6028
|
} | undefined): import("../types/api").RequestData<{
|
|
5442
6029
|
number: string;
|
|
5443
6030
|
name: string;
|
|
@@ -5493,8 +6080,18 @@ export declare class API {
|
|
|
5493
6080
|
partner_id: string;
|
|
5494
6081
|
account_number: string;
|
|
5495
6082
|
reference?: string | undefined;
|
|
6083
|
+
matching_numbers: string[];
|
|
5496
6084
|
payment_communication?: string | undefined;
|
|
5497
6085
|
posted: boolean;
|
|
6086
|
+
original_document?: {
|
|
6087
|
+
id?: string | undefined;
|
|
6088
|
+
number?: string | undefined;
|
|
6089
|
+
journal_id?: string | undefined;
|
|
6090
|
+
journal_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown" | undefined;
|
|
6091
|
+
date?: string | undefined;
|
|
6092
|
+
due_date?: string | undefined;
|
|
6093
|
+
reference?: string | undefined;
|
|
6094
|
+
} | undefined;
|
|
5498
6095
|
}[]>;
|
|
5499
6096
|
createFinancialEntryOld(financial_entry: {
|
|
5500
6097
|
date: string;
|
|
@@ -5512,8 +6109,8 @@ export declare class API {
|
|
|
5512
6109
|
}[];
|
|
5513
6110
|
pdf?: string | undefined;
|
|
5514
6111
|
}, params?: {
|
|
5515
|
-
financial_counterpart_account?: string | undefined;
|
|
5516
6112
|
folder_id?: string | undefined;
|
|
6113
|
+
financial_counterpart_account?: string | undefined;
|
|
5517
6114
|
} | undefined): import("../types/api").RequestData<{
|
|
5518
6115
|
date: string;
|
|
5519
6116
|
journal_id: string;
|
|
@@ -5546,8 +6143,8 @@ export declare class API {
|
|
|
5546
6143
|
}[];
|
|
5547
6144
|
pdf?: string | undefined;
|
|
5548
6145
|
}, params?: {
|
|
5549
|
-
financial_counterpart_account?: string | undefined;
|
|
5550
6146
|
folder_id?: string | undefined;
|
|
6147
|
+
financial_counterpart_account?: string | undefined;
|
|
5551
6148
|
} | undefined): import("../types/api").RequestData<{
|
|
5552
6149
|
date: string;
|
|
5553
6150
|
journal_id: string;
|
|
@@ -5644,9 +6241,11 @@ export declare class API {
|
|
|
5644
6241
|
}[];
|
|
5645
6242
|
pdf?: string | undefined;
|
|
5646
6243
|
posted: boolean;
|
|
6244
|
+
start_date?: string | undefined;
|
|
6245
|
+
end_date?: string | undefined;
|
|
5647
6246
|
}, params?: {
|
|
5648
|
-
force_currency_exchange?: "true" | "false" | undefined;
|
|
5649
6247
|
folder_id?: string | undefined;
|
|
6248
|
+
force_currency_exchange?: "true" | "false" | undefined;
|
|
5650
6249
|
} | undefined): import("../types/api").RequestData<{
|
|
5651
6250
|
reference?: string | undefined;
|
|
5652
6251
|
due_date?: string | undefined;
|
|
@@ -5686,6 +6285,18 @@ export declare class API {
|
|
|
5686
6285
|
matching_number: string;
|
|
5687
6286
|
balance: number;
|
|
5688
6287
|
}>;
|
|
6288
|
+
matchEntriesMultiple(body: {
|
|
6289
|
+
matchings: {
|
|
6290
|
+
entries: string[];
|
|
6291
|
+
partner_id: string;
|
|
6292
|
+
}[];
|
|
6293
|
+
}, params?: {
|
|
6294
|
+
folder_id?: string | undefined;
|
|
6295
|
+
} | undefined): import("../types/api").RequestData<{
|
|
6296
|
+
matching_number?: string | undefined;
|
|
6297
|
+
processed: boolean;
|
|
6298
|
+
error_msg?: Record<string, never> | undefined;
|
|
6299
|
+
}[]>;
|
|
5689
6300
|
getFolders(): import("../types/api").RequestData<{
|
|
5690
6301
|
id: string;
|
|
5691
6302
|
name: string;
|
|
@@ -5693,14 +6304,23 @@ export declare class API {
|
|
|
5693
6304
|
vat?: string | undefined;
|
|
5694
6305
|
company_number?: string | undefined;
|
|
5695
6306
|
}[]>;
|
|
6307
|
+
getBookyears(params?: {
|
|
6308
|
+
folder_id?: string | undefined;
|
|
6309
|
+
} | undefined): import("../types/api").RequestData<{
|
|
6310
|
+
name: string;
|
|
6311
|
+
start: string;
|
|
6312
|
+
end: string;
|
|
6313
|
+
closed: boolean;
|
|
6314
|
+
}[]>;
|
|
5696
6315
|
}>;
|
|
5697
6316
|
invoicing: import("../types/api").ApiFor<{
|
|
5698
6317
|
getInvoices(params?: {
|
|
5699
6318
|
date_from?: string | undefined;
|
|
5700
6319
|
date_to?: string | undefined;
|
|
5701
6320
|
payment_status?: "all" | "paid" | "unpaid" | undefined;
|
|
5702
|
-
invoice_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all" | undefined;
|
|
5703
6321
|
updated_after?: string | undefined;
|
|
6322
|
+
invoice_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all" | undefined;
|
|
6323
|
+
include_invoice_lines?: "true" | "false" | undefined;
|
|
5704
6324
|
} | undefined): import("../types/api").RequestData<{
|
|
5705
6325
|
id: string;
|
|
5706
6326
|
source_ref: {
|
|
@@ -5708,7 +6328,7 @@ export declare class API {
|
|
|
5708
6328
|
model?: string | undefined;
|
|
5709
6329
|
};
|
|
5710
6330
|
currency: string;
|
|
5711
|
-
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
6331
|
+
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all";
|
|
5712
6332
|
status: "draft" | "posted" | "cancelled" | "paid";
|
|
5713
6333
|
invoice_date: string;
|
|
5714
6334
|
tax_amount: number;
|
|
@@ -5725,6 +6345,7 @@ export declare class API {
|
|
|
5725
6345
|
tax_rate?: number | undefined;
|
|
5726
6346
|
account_number?: string | undefined;
|
|
5727
6347
|
tax_id?: string | undefined;
|
|
6348
|
+
tax_exemption_reason?: string | undefined;
|
|
5728
6349
|
unit_of_measure?: string | undefined;
|
|
5729
6350
|
product_id?: string | undefined;
|
|
5730
6351
|
product_code?: string | undefined;
|
|
@@ -5741,8 +6362,29 @@ export declare class API {
|
|
|
5741
6362
|
model?: string | undefined;
|
|
5742
6363
|
name?: string | undefined;
|
|
5743
6364
|
} | undefined;
|
|
6365
|
+
italian_specificities?: {
|
|
6366
|
+
stamp_duty_amount?: number | undefined;
|
|
6367
|
+
withholding_tax?: {
|
|
6368
|
+
rate: number;
|
|
6369
|
+
amount: number;
|
|
6370
|
+
reason?: "RT01" | "RT02" | "RT03" | "RT04" | "RT05" | "RT06" | undefined;
|
|
6371
|
+
payment_reason?: "A" | "U" | "R" | "Q" | "H" | "V" | "V2" | "I" | "J" | "K" | "P" | "S" | "T" | "W" | "X" | "Y" | "B" | "C" | "D" | "E" | "F" | "G" | "L" | "L1" | "M" | "M1" | "M2" | "IN" | "O" | "O1" | "V1" | undefined;
|
|
6372
|
+
} | undefined;
|
|
6373
|
+
welfare_fund?: {
|
|
6374
|
+
rate: number;
|
|
6375
|
+
amount: number;
|
|
6376
|
+
type?: "TC01" | "TC02" | "TC03" | "TC04" | "TC05" | "TC06" | "TC07" | "TC08" | "TC09" | "TC10" | "TC11" | "TC12" | "TC13" | "TC14" | "TC15" | "TC16" | "TC17" | "TC18" | "TC19" | "TC20" | "TC21" | "TC22" | undefined;
|
|
6377
|
+
} | undefined;
|
|
6378
|
+
payment_reporting?: {
|
|
6379
|
+
method?: "MP01" | "MP02" | "MP03" | "MP04" | "MP05" | "MP06" | "MP07" | "MP08" | "MP09" | "MP10" | "MP11" | "MP12" | "MP13" | "MP14" | "MP15" | "MP16" | "MP17" | "MP18" | "MP19" | "MP20" | "MP21" | "MP22" | "MP23" | undefined;
|
|
6380
|
+
conditions?: "TP01" | "TP02" | "TP03" | undefined;
|
|
6381
|
+
} | undefined;
|
|
6382
|
+
} | undefined;
|
|
5744
6383
|
last_updated_on?: string | undefined;
|
|
5745
6384
|
outstanding_amount?: number | undefined;
|
|
6385
|
+
accounting_date?: string | undefined;
|
|
6386
|
+
payment_method_id?: string | undefined;
|
|
6387
|
+
currency_exchange_rate: number;
|
|
5746
6388
|
}[]>;
|
|
5747
6389
|
getInvoiceById(invoiceId: string, params?: {
|
|
5748
6390
|
include_pdf?: "true" | "false" | undefined;
|
|
@@ -5753,7 +6395,7 @@ export declare class API {
|
|
|
5753
6395
|
model?: string | undefined;
|
|
5754
6396
|
};
|
|
5755
6397
|
currency: string;
|
|
5756
|
-
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
6398
|
+
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all";
|
|
5757
6399
|
status: "draft" | "posted" | "cancelled" | "paid";
|
|
5758
6400
|
invoice_date: string;
|
|
5759
6401
|
tax_amount: number;
|
|
@@ -5770,6 +6412,7 @@ export declare class API {
|
|
|
5770
6412
|
tax_rate?: number | undefined;
|
|
5771
6413
|
account_number?: string | undefined;
|
|
5772
6414
|
tax_id?: string | undefined;
|
|
6415
|
+
tax_exemption_reason?: string | undefined;
|
|
5773
6416
|
unit_of_measure?: string | undefined;
|
|
5774
6417
|
product_id?: string | undefined;
|
|
5775
6418
|
product_code?: string | undefined;
|
|
@@ -5786,12 +6429,33 @@ export declare class API {
|
|
|
5786
6429
|
model?: string | undefined;
|
|
5787
6430
|
name?: string | undefined;
|
|
5788
6431
|
} | undefined;
|
|
6432
|
+
italian_specificities?: {
|
|
6433
|
+
stamp_duty_amount?: number | undefined;
|
|
6434
|
+
withholding_tax?: {
|
|
6435
|
+
rate: number;
|
|
6436
|
+
amount: number;
|
|
6437
|
+
reason?: "RT01" | "RT02" | "RT03" | "RT04" | "RT05" | "RT06" | undefined;
|
|
6438
|
+
payment_reason?: "A" | "U" | "R" | "Q" | "H" | "V" | "V2" | "I" | "J" | "K" | "P" | "S" | "T" | "W" | "X" | "Y" | "B" | "C" | "D" | "E" | "F" | "G" | "L" | "L1" | "M" | "M1" | "M2" | "IN" | "O" | "O1" | "V1" | undefined;
|
|
6439
|
+
} | undefined;
|
|
6440
|
+
welfare_fund?: {
|
|
6441
|
+
rate: number;
|
|
6442
|
+
amount: number;
|
|
6443
|
+
type?: "TC01" | "TC02" | "TC03" | "TC04" | "TC05" | "TC06" | "TC07" | "TC08" | "TC09" | "TC10" | "TC11" | "TC12" | "TC13" | "TC14" | "TC15" | "TC16" | "TC17" | "TC18" | "TC19" | "TC20" | "TC21" | "TC22" | undefined;
|
|
6444
|
+
} | undefined;
|
|
6445
|
+
payment_reporting?: {
|
|
6446
|
+
method?: "MP01" | "MP02" | "MP03" | "MP04" | "MP05" | "MP06" | "MP07" | "MP08" | "MP09" | "MP10" | "MP11" | "MP12" | "MP13" | "MP14" | "MP15" | "MP16" | "MP17" | "MP18" | "MP19" | "MP20" | "MP21" | "MP22" | "MP23" | undefined;
|
|
6447
|
+
conditions?: "TP01" | "TP02" | "TP03" | undefined;
|
|
6448
|
+
} | undefined;
|
|
6449
|
+
} | undefined;
|
|
5789
6450
|
last_updated_on?: string | undefined;
|
|
5790
6451
|
outstanding_amount?: number | undefined;
|
|
6452
|
+
accounting_date?: string | undefined;
|
|
6453
|
+
payment_method_id?: string | undefined;
|
|
6454
|
+
currency_exchange_rate: number;
|
|
5791
6455
|
}>;
|
|
5792
6456
|
createInvoice(invoice: {
|
|
5793
6457
|
currency: string;
|
|
5794
|
-
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
6458
|
+
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all";
|
|
5795
6459
|
status: "draft" | "posted" | "cancelled" | "paid";
|
|
5796
6460
|
invoice_date: string;
|
|
5797
6461
|
tax_amount: number;
|
|
@@ -5808,6 +6472,7 @@ export declare class API {
|
|
|
5808
6472
|
tax_rate?: number | undefined;
|
|
5809
6473
|
account_number?: string | undefined;
|
|
5810
6474
|
tax_id?: string | undefined;
|
|
6475
|
+
tax_exemption_reason?: string | undefined;
|
|
5811
6476
|
unit_of_measure?: string | undefined;
|
|
5812
6477
|
product_id?: string | undefined;
|
|
5813
6478
|
product_code?: string | undefined;
|
|
@@ -5824,6 +6489,24 @@ export declare class API {
|
|
|
5824
6489
|
model?: string | undefined;
|
|
5825
6490
|
name?: string | undefined;
|
|
5826
6491
|
} | undefined;
|
|
6492
|
+
italian_specificities?: {
|
|
6493
|
+
stamp_duty_amount?: number | undefined;
|
|
6494
|
+
withholding_tax?: {
|
|
6495
|
+
rate: number;
|
|
6496
|
+
amount: number;
|
|
6497
|
+
reason?: "RT01" | "RT02" | "RT03" | "RT04" | "RT05" | "RT06" | undefined;
|
|
6498
|
+
payment_reason?: "A" | "U" | "R" | "Q" | "H" | "V" | "V2" | "I" | "J" | "K" | "P" | "S" | "T" | "W" | "X" | "Y" | "B" | "C" | "D" | "E" | "F" | "G" | "L" | "L1" | "M" | "M1" | "M2" | "IN" | "O" | "O1" | "V1" | undefined;
|
|
6499
|
+
} | undefined;
|
|
6500
|
+
welfare_fund?: {
|
|
6501
|
+
rate: number;
|
|
6502
|
+
amount: number;
|
|
6503
|
+
type?: "TC01" | "TC02" | "TC03" | "TC04" | "TC05" | "TC06" | "TC07" | "TC08" | "TC09" | "TC10" | "TC11" | "TC12" | "TC13" | "TC14" | "TC15" | "TC16" | "TC17" | "TC18" | "TC19" | "TC20" | "TC21" | "TC22" | undefined;
|
|
6504
|
+
} | undefined;
|
|
6505
|
+
payment_reporting?: {
|
|
6506
|
+
method?: "MP01" | "MP02" | "MP03" | "MP04" | "MP05" | "MP06" | "MP07" | "MP08" | "MP09" | "MP10" | "MP11" | "MP12" | "MP13" | "MP14" | "MP15" | "MP16" | "MP17" | "MP18" | "MP19" | "MP20" | "MP21" | "MP22" | "MP23" | undefined;
|
|
6507
|
+
conditions?: "TP01" | "TP02" | "TP03" | undefined;
|
|
6508
|
+
} | undefined;
|
|
6509
|
+
} | undefined;
|
|
5827
6510
|
}): import("../types/api").RequestData<{
|
|
5828
6511
|
id: string;
|
|
5829
6512
|
source_ref: {
|
|
@@ -5831,7 +6514,7 @@ export declare class API {
|
|
|
5831
6514
|
model?: string | undefined;
|
|
5832
6515
|
};
|
|
5833
6516
|
currency: string;
|
|
5834
|
-
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
6517
|
+
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all";
|
|
5835
6518
|
status: "draft" | "posted" | "cancelled" | "paid";
|
|
5836
6519
|
invoice_date: string;
|
|
5837
6520
|
tax_amount: number;
|
|
@@ -5848,6 +6531,7 @@ export declare class API {
|
|
|
5848
6531
|
tax_rate?: number | undefined;
|
|
5849
6532
|
account_number?: string | undefined;
|
|
5850
6533
|
tax_id?: string | undefined;
|
|
6534
|
+
tax_exemption_reason?: string | undefined;
|
|
5851
6535
|
unit_of_measure?: string | undefined;
|
|
5852
6536
|
product_id?: string | undefined;
|
|
5853
6537
|
product_code?: string | undefined;
|
|
@@ -5864,8 +6548,29 @@ export declare class API {
|
|
|
5864
6548
|
model?: string | undefined;
|
|
5865
6549
|
name?: string | undefined;
|
|
5866
6550
|
} | undefined;
|
|
6551
|
+
italian_specificities?: {
|
|
6552
|
+
stamp_duty_amount?: number | undefined;
|
|
6553
|
+
withholding_tax?: {
|
|
6554
|
+
rate: number;
|
|
6555
|
+
amount: number;
|
|
6556
|
+
reason?: "RT01" | "RT02" | "RT03" | "RT04" | "RT05" | "RT06" | undefined;
|
|
6557
|
+
payment_reason?: "A" | "U" | "R" | "Q" | "H" | "V" | "V2" | "I" | "J" | "K" | "P" | "S" | "T" | "W" | "X" | "Y" | "B" | "C" | "D" | "E" | "F" | "G" | "L" | "L1" | "M" | "M1" | "M2" | "IN" | "O" | "O1" | "V1" | undefined;
|
|
6558
|
+
} | undefined;
|
|
6559
|
+
welfare_fund?: {
|
|
6560
|
+
rate: number;
|
|
6561
|
+
amount: number;
|
|
6562
|
+
type?: "TC01" | "TC02" | "TC03" | "TC04" | "TC05" | "TC06" | "TC07" | "TC08" | "TC09" | "TC10" | "TC11" | "TC12" | "TC13" | "TC14" | "TC15" | "TC16" | "TC17" | "TC18" | "TC19" | "TC20" | "TC21" | "TC22" | undefined;
|
|
6563
|
+
} | undefined;
|
|
6564
|
+
payment_reporting?: {
|
|
6565
|
+
method?: "MP01" | "MP02" | "MP03" | "MP04" | "MP05" | "MP06" | "MP07" | "MP08" | "MP09" | "MP10" | "MP11" | "MP12" | "MP13" | "MP14" | "MP15" | "MP16" | "MP17" | "MP18" | "MP19" | "MP20" | "MP21" | "MP22" | "MP23" | undefined;
|
|
6566
|
+
conditions?: "TP01" | "TP02" | "TP03" | undefined;
|
|
6567
|
+
} | undefined;
|
|
6568
|
+
} | undefined;
|
|
5867
6569
|
last_updated_on?: string | undefined;
|
|
5868
6570
|
outstanding_amount?: number | undefined;
|
|
6571
|
+
accounting_date?: string | undefined;
|
|
6572
|
+
payment_method_id?: string | undefined;
|
|
6573
|
+
currency_exchange_rate: number;
|
|
5869
6574
|
}>;
|
|
5870
6575
|
getProducts(): import("../types/api").RequestData<{
|
|
5871
6576
|
id: string;
|
|
@@ -6162,6 +6867,31 @@ export declare class API {
|
|
|
6162
6867
|
}[];
|
|
6163
6868
|
external_reference?: string | undefined;
|
|
6164
6869
|
}>;
|
|
6870
|
+
getPayments(): import("../types/api").RequestData<{
|
|
6871
|
+
id: string;
|
|
6872
|
+
source_ref: {
|
|
6873
|
+
id?: string | undefined;
|
|
6874
|
+
model?: string | undefined;
|
|
6875
|
+
};
|
|
6876
|
+
status: "unknown" | "pending" | "completed" | "canceled" | "failed" | "authorized";
|
|
6877
|
+
description: string;
|
|
6878
|
+
amount: number;
|
|
6879
|
+
currency: string;
|
|
6880
|
+
payment_date: string;
|
|
6881
|
+
partner_id: string;
|
|
6882
|
+
payment_method_id?: string | undefined;
|
|
6883
|
+
payment_method_name?: string | undefined;
|
|
6884
|
+
invoice_id?: string | undefined;
|
|
6885
|
+
invoice_number?: string | undefined;
|
|
6886
|
+
}[]>;
|
|
6887
|
+
getPaymentMethods(): import("../types/api").RequestData<{
|
|
6888
|
+
id: string;
|
|
6889
|
+
source_ref: {
|
|
6890
|
+
id?: string | undefined;
|
|
6891
|
+
model?: string | undefined;
|
|
6892
|
+
};
|
|
6893
|
+
name: string;
|
|
6894
|
+
}[]>;
|
|
6165
6895
|
}>;
|
|
6166
6896
|
ecommerce: import("../types/api").ApiFor<{
|
|
6167
6897
|
getCustomers(): import("../types/api").RequestData<{
|
|
@@ -6487,6 +7217,7 @@ export declare class API {
|
|
|
6487
7217
|
refunded_amount: number;
|
|
6488
7218
|
currency: string;
|
|
6489
7219
|
note?: string | undefined;
|
|
7220
|
+
tags: string[];
|
|
6490
7221
|
lines: {
|
|
6491
7222
|
id: string;
|
|
6492
7223
|
source_ref: {
|
|
@@ -6763,6 +7494,7 @@ export declare class API {
|
|
|
6763
7494
|
refunded_amount: number;
|
|
6764
7495
|
currency: string;
|
|
6765
7496
|
note?: string | undefined;
|
|
7497
|
+
tags: string[];
|
|
6766
7498
|
lines: {
|
|
6767
7499
|
id: string;
|
|
6768
7500
|
source_ref: {
|
|
@@ -6998,6 +7730,7 @@ export declare class API {
|
|
|
6998
7730
|
refunded_amount: number;
|
|
6999
7731
|
currency: string;
|
|
7000
7732
|
note?: string | undefined;
|
|
7733
|
+
tags: string[];
|
|
7001
7734
|
lines: {
|
|
7002
7735
|
id: string;
|
|
7003
7736
|
source_ref: {
|
|
@@ -7298,6 +8031,52 @@ export declare class API {
|
|
|
7298
8031
|
logData: (logs: import("../types/consumers").ConsumerLog[]) => Promise<import("../types/sync").SimpleResponseModel>;
|
|
7299
8032
|
setConnectionId: (connectionId: string) => Promise<void>;
|
|
7300
8033
|
setIntegrationId: (integrationId: string) => Promise<void>;
|
|
8034
|
+
updateConsumer: (body: {
|
|
8035
|
+
name?: string | undefined;
|
|
8036
|
+
email?: string | undefined;
|
|
8037
|
+
internal_reference?: string | undefined;
|
|
8038
|
+
redirect_url?: string | undefined;
|
|
8039
|
+
}) => Promise<{
|
|
8040
|
+
consumerid: string;
|
|
8041
|
+
name: string;
|
|
8042
|
+
email?: string | undefined;
|
|
8043
|
+
internal_reference?: string | undefined;
|
|
8044
|
+
redirect_url?: string | undefined;
|
|
8045
|
+
}>;
|
|
8046
|
+
updateFlowConfig: (syncId: string, flowId: string, body: {
|
|
8047
|
+
triggerid: string;
|
|
8048
|
+
data: Record<string, never>;
|
|
8049
|
+
}) => Promise<{
|
|
8050
|
+
name: string;
|
|
8051
|
+
description?: string | undefined;
|
|
8052
|
+
id: string;
|
|
8053
|
+
config?: {
|
|
8054
|
+
definitionFields?: Record<string, never>[] | undefined;
|
|
8055
|
+
doorkeyFields?: Record<string, never>[] | undefined;
|
|
8056
|
+
customFields?: Record<string, never>[] | undefined;
|
|
8057
|
+
datastores: {
|
|
8058
|
+
id?: string | undefined;
|
|
8059
|
+
name: string;
|
|
8060
|
+
status: "active" | "inactive";
|
|
8061
|
+
definition: {
|
|
8062
|
+
columns: {
|
|
8063
|
+
name: string;
|
|
8064
|
+
title: string;
|
|
8065
|
+
type: string;
|
|
8066
|
+
optional: boolean;
|
|
8067
|
+
}[];
|
|
8068
|
+
search_column?: string | undefined;
|
|
8069
|
+
};
|
|
8070
|
+
}[];
|
|
8071
|
+
} | undefined;
|
|
8072
|
+
values: Record<string, never>;
|
|
8073
|
+
enabled_on?: string | undefined;
|
|
8074
|
+
trigger: {
|
|
8075
|
+
id: string;
|
|
8076
|
+
type: "event" | "timer";
|
|
8077
|
+
cronschedule?: string | undefined;
|
|
8078
|
+
};
|
|
8079
|
+
}>;
|
|
7301
8080
|
}>;
|
|
7302
8081
|
getConsumerById: (consumerId: string) => Promise<{
|
|
7303
8082
|
consumerId: string;
|
|
@@ -7412,6 +8191,8 @@ export declare class API {
|
|
|
7412
8191
|
}[];
|
|
7413
8192
|
items: {
|
|
7414
8193
|
id: string;
|
|
8194
|
+
type?: "menu" | "product" | undefined;
|
|
8195
|
+
menu_id?: string | undefined;
|
|
7415
8196
|
quantity: number;
|
|
7416
8197
|
unit_price: number;
|
|
7417
8198
|
total: number;
|
|
@@ -7421,6 +8202,7 @@ export declare class API {
|
|
|
7421
8202
|
discounts: {
|
|
7422
8203
|
name?: string | undefined;
|
|
7423
8204
|
total: number;
|
|
8205
|
+
type: "OFFERED" | "UNKNOWN" | "LOSS";
|
|
7424
8206
|
}[];
|
|
7425
8207
|
product_id?: string | undefined;
|
|
7426
8208
|
accounting_category_id?: string | undefined;
|
|
@@ -7487,6 +8269,8 @@ export declare class API {
|
|
|
7487
8269
|
}[];
|
|
7488
8270
|
items: {
|
|
7489
8271
|
id: string;
|
|
8272
|
+
type?: "menu" | "product" | undefined;
|
|
8273
|
+
menu_id?: string | undefined;
|
|
7490
8274
|
quantity: number;
|
|
7491
8275
|
unit_price: number;
|
|
7492
8276
|
total: number;
|
|
@@ -7496,6 +8280,7 @@ export declare class API {
|
|
|
7496
8280
|
discounts: {
|
|
7497
8281
|
name?: string | undefined;
|
|
7498
8282
|
total: number;
|
|
8283
|
+
type: "OFFERED" | "UNKNOWN" | "LOSS";
|
|
7499
8284
|
}[];
|
|
7500
8285
|
product_id?: string | undefined;
|
|
7501
8286
|
accounting_category_id?: string | undefined;
|
|
@@ -7659,6 +8444,8 @@ export declare class API {
|
|
|
7659
8444
|
}[];
|
|
7660
8445
|
items: {
|
|
7661
8446
|
id: string;
|
|
8447
|
+
type?: "menu" | "product" | undefined;
|
|
8448
|
+
menu_id?: string | undefined;
|
|
7662
8449
|
quantity: number;
|
|
7663
8450
|
unit_price: number;
|
|
7664
8451
|
total: number;
|
|
@@ -7668,6 +8455,7 @@ export declare class API {
|
|
|
7668
8455
|
discounts: {
|
|
7669
8456
|
name?: string | undefined;
|
|
7670
8457
|
total: number;
|
|
8458
|
+
type: "OFFERED" | "UNKNOWN" | "LOSS";
|
|
7671
8459
|
}[];
|
|
7672
8460
|
product_id?: string | undefined;
|
|
7673
8461
|
accounting_category_id?: string | undefined;
|
|
@@ -7678,7 +8466,6 @@ export declare class API {
|
|
|
7678
8466
|
} | undefined): import("../types/api").RequestData<{
|
|
7679
8467
|
id: string;
|
|
7680
8468
|
name: string;
|
|
7681
|
-
id_parent?: string | undefined;
|
|
7682
8469
|
code?: string | undefined;
|
|
7683
8470
|
ledger_account_code?: string | undefined;
|
|
7684
8471
|
posting_account_code?: string | undefined;
|
|
@@ -7739,6 +8526,8 @@ export declare class API {
|
|
|
7739
8526
|
id?: string | undefined;
|
|
7740
8527
|
model?: string | undefined;
|
|
7741
8528
|
};
|
|
8529
|
+
type?: "menu" | "product" | undefined;
|
|
8530
|
+
menu_id?: string | undefined;
|
|
7742
8531
|
quantity: number;
|
|
7743
8532
|
unit_price: number;
|
|
7744
8533
|
total: number;
|
|
@@ -7748,11 +8537,62 @@ export declare class API {
|
|
|
7748
8537
|
discounts: {
|
|
7749
8538
|
name?: string | undefined;
|
|
7750
8539
|
total: number;
|
|
8540
|
+
type: "OFFERED" | "UNKNOWN" | "LOSS";
|
|
7751
8541
|
}[];
|
|
7752
8542
|
product_id?: string | undefined;
|
|
7753
8543
|
accounting_category_id?: string | undefined;
|
|
7754
8544
|
}[];
|
|
7755
8545
|
service_id?: string | undefined;
|
|
8546
|
+
reservation?: {
|
|
8547
|
+
id: string;
|
|
8548
|
+
source_ref: {
|
|
8549
|
+
id?: string | undefined;
|
|
8550
|
+
model?: string | undefined;
|
|
8551
|
+
};
|
|
8552
|
+
start_date?: string | undefined;
|
|
8553
|
+
end_date?: string | undefined;
|
|
8554
|
+
creation_date?: string | undefined;
|
|
8555
|
+
resource_id?: {
|
|
8556
|
+
id: string;
|
|
8557
|
+
source_ref: {
|
|
8558
|
+
id?: string | undefined;
|
|
8559
|
+
model?: string | undefined;
|
|
8560
|
+
};
|
|
8561
|
+
} | undefined;
|
|
8562
|
+
resource_name?: string | undefined;
|
|
8563
|
+
resource_identifier?: string | undefined;
|
|
8564
|
+
} | undefined;
|
|
8565
|
+
bills?: {
|
|
8566
|
+
id: string;
|
|
8567
|
+
source_ref: {
|
|
8568
|
+
id?: string | undefined;
|
|
8569
|
+
model?: string | undefined;
|
|
8570
|
+
};
|
|
8571
|
+
invoice_number?: string | undefined;
|
|
8572
|
+
creation_date?: string | undefined;
|
|
8573
|
+
closing_date?: string | undefined;
|
|
8574
|
+
partners?: {
|
|
8575
|
+
id: string;
|
|
8576
|
+
source_ref: {
|
|
8577
|
+
id?: string | undefined;
|
|
8578
|
+
model?: string | undefined;
|
|
8579
|
+
};
|
|
8580
|
+
type: "owner" | "account";
|
|
8581
|
+
address?: {
|
|
8582
|
+
address_type?: string | undefined;
|
|
8583
|
+
name?: string | undefined;
|
|
8584
|
+
street?: string | undefined;
|
|
8585
|
+
number?: string | undefined;
|
|
8586
|
+
box?: string | undefined;
|
|
8587
|
+
city?: string | undefined;
|
|
8588
|
+
postal_code?: string | undefined;
|
|
8589
|
+
country?: string | undefined;
|
|
8590
|
+
} | undefined;
|
|
8591
|
+
first_name?: string | undefined;
|
|
8592
|
+
last_name?: string | undefined;
|
|
8593
|
+
company_name?: string | undefined;
|
|
8594
|
+
}[] | undefined;
|
|
8595
|
+
}[] | undefined;
|
|
7756
8596
|
}[]>;
|
|
7757
8597
|
getPaymentMethods(params?: {
|
|
7758
8598
|
location_id?: string | undefined;
|
|
@@ -7788,6 +8628,13 @@ export declare class API {
|
|
|
7788
8628
|
status: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised";
|
|
7789
8629
|
currency?: string | undefined;
|
|
7790
8630
|
date?: string | undefined;
|
|
8631
|
+
partner_id?: {
|
|
8632
|
+
id: string;
|
|
8633
|
+
source_ref: {
|
|
8634
|
+
id?: string | undefined;
|
|
8635
|
+
model?: string | undefined;
|
|
8636
|
+
};
|
|
8637
|
+
} | undefined;
|
|
7791
8638
|
}[]>;
|
|
7792
8639
|
getAccountingCategories(params?: {} | undefined): import("../types/api").RequestData<{
|
|
7793
8640
|
id: string;
|
|
@@ -7796,11 +8643,132 @@ export declare class API {
|
|
|
7796
8643
|
model?: string | undefined;
|
|
7797
8644
|
};
|
|
7798
8645
|
name: string;
|
|
7799
|
-
id_parent?: string | undefined;
|
|
7800
8646
|
code?: string | undefined;
|
|
7801
8647
|
ledger_account_code?: string | undefined;
|
|
7802
8648
|
posting_account_code?: string | undefined;
|
|
7803
8649
|
}[]>;
|
|
8650
|
+
getCustomers(params?: {} | undefined): import("../types/api").RequestData<{
|
|
8651
|
+
id: string;
|
|
8652
|
+
source_ref: {
|
|
8653
|
+
id?: string | undefined;
|
|
8654
|
+
model?: string | undefined;
|
|
8655
|
+
};
|
|
8656
|
+
first_name?: string | undefined;
|
|
8657
|
+
last_name?: string | undefined;
|
|
8658
|
+
company_name?: string | undefined;
|
|
8659
|
+
phone?: string | undefined;
|
|
8660
|
+
email?: string | undefined;
|
|
8661
|
+
account_number?: string | undefined;
|
|
8662
|
+
created_on?: string | undefined;
|
|
8663
|
+
addresses?: {
|
|
8664
|
+
address_type?: string | undefined;
|
|
8665
|
+
name?: string | undefined;
|
|
8666
|
+
street?: string | undefined;
|
|
8667
|
+
number?: string | undefined;
|
|
8668
|
+
box?: string | undefined;
|
|
8669
|
+
city?: string | undefined;
|
|
8670
|
+
postal_code?: string | undefined;
|
|
8671
|
+
country?: string | undefined;
|
|
8672
|
+
}[] | undefined;
|
|
8673
|
+
}[]>;
|
|
8674
|
+
getInvoices(params?: {
|
|
8675
|
+
date_from: string;
|
|
8676
|
+
date_to: string;
|
|
8677
|
+
location_id?: string | undefined;
|
|
8678
|
+
} | undefined): import("../types/api").RequestData<{
|
|
8679
|
+
id: string;
|
|
8680
|
+
source_ref: {
|
|
8681
|
+
id?: string | undefined;
|
|
8682
|
+
model?: string | undefined;
|
|
8683
|
+
};
|
|
8684
|
+
invoice_number?: string | undefined;
|
|
8685
|
+
creation_date?: string | undefined;
|
|
8686
|
+
closing_date?: string | undefined;
|
|
8687
|
+
partners?: {
|
|
8688
|
+
id: string;
|
|
8689
|
+
source_ref: {
|
|
8690
|
+
id?: string | undefined;
|
|
8691
|
+
model?: string | undefined;
|
|
8692
|
+
};
|
|
8693
|
+
type: "owner" | "account";
|
|
8694
|
+
address?: {
|
|
8695
|
+
address_type?: string | undefined;
|
|
8696
|
+
name?: string | undefined;
|
|
8697
|
+
street?: string | undefined;
|
|
8698
|
+
number?: string | undefined;
|
|
8699
|
+
box?: string | undefined;
|
|
8700
|
+
city?: string | undefined;
|
|
8701
|
+
postal_code?: string | undefined;
|
|
8702
|
+
country?: string | undefined;
|
|
8703
|
+
} | undefined;
|
|
8704
|
+
first_name?: string | undefined;
|
|
8705
|
+
last_name?: string | undefined;
|
|
8706
|
+
company_name?: string | undefined;
|
|
8707
|
+
}[] | undefined;
|
|
8708
|
+
items: {
|
|
8709
|
+
id: string;
|
|
8710
|
+
source_ref: {
|
|
8711
|
+
id?: string | undefined;
|
|
8712
|
+
model?: string | undefined;
|
|
8713
|
+
};
|
|
8714
|
+
type?: "menu" | "product" | undefined;
|
|
8715
|
+
menu_id?: string | undefined;
|
|
8716
|
+
quantity: number;
|
|
8717
|
+
unit_price: number;
|
|
8718
|
+
total: number;
|
|
8719
|
+
tax_amount: number;
|
|
8720
|
+
tax_rate?: number | undefined;
|
|
8721
|
+
description?: string | undefined;
|
|
8722
|
+
discounts: {
|
|
8723
|
+
name?: string | undefined;
|
|
8724
|
+
total: number;
|
|
8725
|
+
type: "OFFERED" | "UNKNOWN" | "LOSS";
|
|
8726
|
+
}[];
|
|
8727
|
+
product_id?: string | undefined;
|
|
8728
|
+
accounting_category_id?: string | undefined;
|
|
8729
|
+
}[];
|
|
8730
|
+
payments: {
|
|
8731
|
+
id?: string | undefined;
|
|
8732
|
+
source_ref: {
|
|
8733
|
+
id?: string | undefined;
|
|
8734
|
+
model?: string | undefined;
|
|
8735
|
+
};
|
|
8736
|
+
payment_method_id?: string | undefined;
|
|
8737
|
+
payment_method_name?: string | undefined;
|
|
8738
|
+
total: number;
|
|
8739
|
+
tip: number;
|
|
8740
|
+
status: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised";
|
|
8741
|
+
currency?: string | undefined;
|
|
8742
|
+
date?: string | undefined;
|
|
8743
|
+
partner_id?: {
|
|
8744
|
+
id: string;
|
|
8745
|
+
source_ref: {
|
|
8746
|
+
id?: string | undefined;
|
|
8747
|
+
model?: string | undefined;
|
|
8748
|
+
};
|
|
8749
|
+
} | undefined;
|
|
8750
|
+
}[];
|
|
8751
|
+
service_id?: string | undefined;
|
|
8752
|
+
reservation?: {
|
|
8753
|
+
id: string;
|
|
8754
|
+
source_ref: {
|
|
8755
|
+
id?: string | undefined;
|
|
8756
|
+
model?: string | undefined;
|
|
8757
|
+
};
|
|
8758
|
+
start_date?: string | undefined;
|
|
8759
|
+
end_date?: string | undefined;
|
|
8760
|
+
creation_date?: string | undefined;
|
|
8761
|
+
resource_id?: {
|
|
8762
|
+
id: string;
|
|
8763
|
+
source_ref: {
|
|
8764
|
+
id?: string | undefined;
|
|
8765
|
+
model?: string | undefined;
|
|
8766
|
+
};
|
|
8767
|
+
} | undefined;
|
|
8768
|
+
resource_name?: string | undefined;
|
|
8769
|
+
resource_identifier?: string | undefined;
|
|
8770
|
+
} | undefined;
|
|
8771
|
+
}[]>;
|
|
7804
8772
|
}>;
|
|
7805
8773
|
payment: import("../types/api").ApiFor<{
|
|
7806
8774
|
getPayments(params: {
|
|
@@ -7852,8 +8820,8 @@ export declare class API {
|
|
|
7852
8820
|
payment_id?: string | undefined;
|
|
7853
8821
|
}[]>;
|
|
7854
8822
|
getPayment(params: {
|
|
7855
|
-
payment_id: string;
|
|
7856
8823
|
consumer_id: string;
|
|
8824
|
+
payment_id: string;
|
|
7857
8825
|
}): import("../types/api").RequestData<{
|
|
7858
8826
|
id: string;
|
|
7859
8827
|
source_ref: {
|
|
@@ -7894,7 +8862,9 @@ export declare class API {
|
|
|
7894
8862
|
active: boolean;
|
|
7895
8863
|
}[]>;
|
|
7896
8864
|
getClients(params?: {
|
|
8865
|
+
search?: string | undefined;
|
|
7897
8866
|
folder_id?: string | undefined;
|
|
8867
|
+
updated_after?: string | undefined;
|
|
7898
8868
|
} | undefined): import("../types/api").RequestData<{
|
|
7899
8869
|
external_reference?: string | undefined;
|
|
7900
8870
|
first_name?: string | undefined;
|
|
@@ -7965,8 +8935,8 @@ export declare class API {
|
|
|
7965
8935
|
}[];
|
|
7966
8936
|
account_number?: string | undefined;
|
|
7967
8937
|
}, params?: {
|
|
7968
|
-
force_merge?: string | undefined;
|
|
7969
8938
|
folder_id?: string | undefined;
|
|
8939
|
+
force_merge?: string | undefined;
|
|
7970
8940
|
} | undefined): import("../types/api").RequestData<{
|
|
7971
8941
|
external_reference?: string | undefined;
|
|
7972
8942
|
first_name?: string | undefined;
|
|
@@ -8112,7 +9082,9 @@ export declare class API {
|
|
|
8112
9082
|
id?: string | undefined;
|
|
8113
9083
|
}>;
|
|
8114
9084
|
getSuppliers(params?: {
|
|
9085
|
+
search?: string | undefined;
|
|
8115
9086
|
folder_id?: string | undefined;
|
|
9087
|
+
updated_after?: string | undefined;
|
|
8116
9088
|
} | undefined): import("../types/api").RequestData<{
|
|
8117
9089
|
external_reference?: string | undefined;
|
|
8118
9090
|
first_name?: string | undefined;
|
|
@@ -8183,8 +9155,8 @@ export declare class API {
|
|
|
8183
9155
|
}[];
|
|
8184
9156
|
account_number?: string | undefined;
|
|
8185
9157
|
}, params?: {
|
|
8186
|
-
force_merge?: string | undefined;
|
|
8187
9158
|
folder_id?: string | undefined;
|
|
9159
|
+
force_merge?: string | undefined;
|
|
8188
9160
|
} | undefined): import("../types/api").RequestData<{
|
|
8189
9161
|
external_reference?: string | undefined;
|
|
8190
9162
|
first_name?: string | undefined;
|
|
@@ -8378,9 +9350,9 @@ export declare class API {
|
|
|
8378
9350
|
analytic_account?: string | undefined;
|
|
8379
9351
|
}[];
|
|
8380
9352
|
}, params?: {
|
|
9353
|
+
folder_id?: string | undefined;
|
|
8381
9354
|
force_financial_period?: string | undefined;
|
|
8382
9355
|
regroup_lines?: "true" | "false" | undefined;
|
|
8383
|
-
folder_id?: string | undefined;
|
|
8384
9356
|
} | undefined): import("../types/api").RequestData<{
|
|
8385
9357
|
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
8386
9358
|
invoice_number?: string | undefined;
|
|
@@ -8481,9 +9453,9 @@ export declare class API {
|
|
|
8481
9453
|
}[];
|
|
8482
9454
|
}[];
|
|
8483
9455
|
}, params?: {
|
|
9456
|
+
folder_id?: string | undefined;
|
|
8484
9457
|
force_financial_period?: string | undefined;
|
|
8485
9458
|
regroup_lines?: "true" | "false" | undefined;
|
|
8486
|
-
folder_id?: string | undefined;
|
|
8487
9459
|
} | undefined): import("../types/api").RequestData<{
|
|
8488
9460
|
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
8489
9461
|
invoice_number?: string | undefined;
|
|
@@ -8542,6 +9514,7 @@ export declare class API {
|
|
|
8542
9514
|
journal_ids?: string | undefined;
|
|
8543
9515
|
include_payments?: "true" | "false" | undefined;
|
|
8544
9516
|
payment_status?: "all" | "paid" | "unpaid" | undefined;
|
|
9517
|
+
updated_after?: string | undefined;
|
|
8545
9518
|
} | undefined): import("../types/api").RequestData<{
|
|
8546
9519
|
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
8547
9520
|
invoice_number?: string | undefined;
|
|
@@ -8588,8 +9561,8 @@ export declare class API {
|
|
|
8588
9561
|
}[];
|
|
8589
9562
|
}[]>;
|
|
8590
9563
|
getInvoice(invoiceId: string, params?: {
|
|
8591
|
-
include_payments?: "true" | "false" | undefined;
|
|
8592
9564
|
folder_id?: string | undefined;
|
|
9565
|
+
include_payments?: "true" | "false" | undefined;
|
|
8593
9566
|
} | undefined): import("../types/api").RequestData<{
|
|
8594
9567
|
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
8595
9568
|
invoice_number?: string | undefined;
|
|
@@ -8636,8 +9609,8 @@ export declare class API {
|
|
|
8636
9609
|
}[];
|
|
8637
9610
|
}>;
|
|
8638
9611
|
getInvoiceWithMultiplePlans(invoiceId: string, params?: {
|
|
8639
|
-
include_payments?: "true" | "false" | undefined;
|
|
8640
9612
|
folder_id?: string | undefined;
|
|
9613
|
+
include_payments?: "true" | "false" | undefined;
|
|
8641
9614
|
} | undefined): import("../types/api").RequestData<{
|
|
8642
9615
|
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
8643
9616
|
invoice_number?: string | undefined;
|
|
@@ -8696,6 +9669,7 @@ export declare class API {
|
|
|
8696
9669
|
journal_ids?: string | undefined;
|
|
8697
9670
|
include_payments?: "true" | "false" | undefined;
|
|
8698
9671
|
payment_status?: "all" | "paid" | "unpaid" | undefined;
|
|
9672
|
+
updated_after?: string | undefined;
|
|
8699
9673
|
} | undefined): import("../types/api").RequestData<{
|
|
8700
9674
|
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
8701
9675
|
invoice_number?: string | undefined;
|
|
@@ -8868,9 +9842,10 @@ export declare class API {
|
|
|
8868
9842
|
analytic_plan: string;
|
|
8869
9843
|
}[]>;
|
|
8870
9844
|
getJournalEntries(params: {
|
|
8871
|
-
date_from
|
|
8872
|
-
date_to
|
|
9845
|
+
date_from?: string | undefined;
|
|
9846
|
+
date_to?: string | undefined;
|
|
8873
9847
|
folder_id?: string | undefined;
|
|
9848
|
+
updated_after?: string | undefined;
|
|
8874
9849
|
unposted_allowed: "true" | "false";
|
|
8875
9850
|
journal_id: string;
|
|
8876
9851
|
partner_id?: string | undefined;
|
|
@@ -8900,9 +9875,10 @@ export declare class API {
|
|
|
8900
9875
|
}[];
|
|
8901
9876
|
}[]>;
|
|
8902
9877
|
getJournalEntriesWithMultiplePlans(params: {
|
|
8903
|
-
date_from
|
|
8904
|
-
date_to
|
|
9878
|
+
date_from?: string | undefined;
|
|
9879
|
+
date_to?: string | undefined;
|
|
8905
9880
|
folder_id?: string | undefined;
|
|
9881
|
+
updated_after?: string | undefined;
|
|
8906
9882
|
unposted_allowed: "true" | "false";
|
|
8907
9883
|
journal_id: string;
|
|
8908
9884
|
partner_id?: string | undefined;
|
|
@@ -8937,9 +9913,9 @@ export declare class API {
|
|
|
8937
9913
|
}[];
|
|
8938
9914
|
}[]>;
|
|
8939
9915
|
getPaymentsByInvoiceId(invoice_id: string, params?: {
|
|
8940
|
-
folder_id?: string | undefined;
|
|
8941
9916
|
page?: number | undefined;
|
|
8942
9917
|
size?: number | undefined;
|
|
9918
|
+
folder_id?: string | undefined;
|
|
8943
9919
|
} | undefined): import("../types/api").RequestData<{
|
|
8944
9920
|
id: string;
|
|
8945
9921
|
name: string;
|
|
@@ -9063,8 +10039,8 @@ export declare class API {
|
|
|
9063
10039
|
attachPDF(invoice_id: string, attachment: {
|
|
9064
10040
|
base64_string: string;
|
|
9065
10041
|
}, params?: {
|
|
9066
|
-
overwrite_existing?: "true" | "false" | undefined;
|
|
9067
10042
|
folder_id?: string | undefined;
|
|
10043
|
+
overwrite_existing?: "true" | "false" | undefined;
|
|
9068
10044
|
} | undefined): import("../types/api").RequestData<{
|
|
9069
10045
|
headers: {
|
|
9070
10046
|
[name: string]: unknown;
|
|
@@ -9081,8 +10057,8 @@ export declare class API {
|
|
|
9081
10057
|
base64_string: string;
|
|
9082
10058
|
}[]>;
|
|
9083
10059
|
getChartOfAccounts(params?: {
|
|
9084
|
-
classes?: string | undefined;
|
|
9085
10060
|
folder_id?: string | undefined;
|
|
10061
|
+
classes?: string | undefined;
|
|
9086
10062
|
} | undefined): import("../types/api").RequestData<{
|
|
9087
10063
|
number: string;
|
|
9088
10064
|
name: string;
|
|
@@ -9138,8 +10114,18 @@ export declare class API {
|
|
|
9138
10114
|
partner_id: string;
|
|
9139
10115
|
account_number: string;
|
|
9140
10116
|
reference?: string | undefined;
|
|
10117
|
+
matching_numbers: string[];
|
|
9141
10118
|
payment_communication?: string | undefined;
|
|
9142
10119
|
posted: boolean;
|
|
10120
|
+
original_document?: {
|
|
10121
|
+
id?: string | undefined;
|
|
10122
|
+
number?: string | undefined;
|
|
10123
|
+
journal_id?: string | undefined;
|
|
10124
|
+
journal_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown" | undefined;
|
|
10125
|
+
date?: string | undefined;
|
|
10126
|
+
due_date?: string | undefined;
|
|
10127
|
+
reference?: string | undefined;
|
|
10128
|
+
} | undefined;
|
|
9143
10129
|
}[]>;
|
|
9144
10130
|
createFinancialEntryOld(financial_entry: {
|
|
9145
10131
|
date: string;
|
|
@@ -9157,8 +10143,8 @@ export declare class API {
|
|
|
9157
10143
|
}[];
|
|
9158
10144
|
pdf?: string | undefined;
|
|
9159
10145
|
}, params?: {
|
|
9160
|
-
financial_counterpart_account?: string | undefined;
|
|
9161
10146
|
folder_id?: string | undefined;
|
|
10147
|
+
financial_counterpart_account?: string | undefined;
|
|
9162
10148
|
} | undefined): import("../types/api").RequestData<{
|
|
9163
10149
|
date: string;
|
|
9164
10150
|
journal_id: string;
|
|
@@ -9191,8 +10177,8 @@ export declare class API {
|
|
|
9191
10177
|
}[];
|
|
9192
10178
|
pdf?: string | undefined;
|
|
9193
10179
|
}, params?: {
|
|
9194
|
-
financial_counterpart_account?: string | undefined;
|
|
9195
10180
|
folder_id?: string | undefined;
|
|
10181
|
+
financial_counterpart_account?: string | undefined;
|
|
9196
10182
|
} | undefined): import("../types/api").RequestData<{
|
|
9197
10183
|
date: string;
|
|
9198
10184
|
journal_id: string;
|
|
@@ -9289,9 +10275,11 @@ export declare class API {
|
|
|
9289
10275
|
}[];
|
|
9290
10276
|
pdf?: string | undefined;
|
|
9291
10277
|
posted: boolean;
|
|
10278
|
+
start_date?: string | undefined;
|
|
10279
|
+
end_date?: string | undefined;
|
|
9292
10280
|
}, params?: {
|
|
9293
|
-
force_currency_exchange?: "true" | "false" | undefined;
|
|
9294
10281
|
folder_id?: string | undefined;
|
|
10282
|
+
force_currency_exchange?: "true" | "false" | undefined;
|
|
9295
10283
|
} | undefined): import("../types/api").RequestData<{
|
|
9296
10284
|
reference?: string | undefined;
|
|
9297
10285
|
due_date?: string | undefined;
|
|
@@ -9331,6 +10319,18 @@ export declare class API {
|
|
|
9331
10319
|
matching_number: string;
|
|
9332
10320
|
balance: number;
|
|
9333
10321
|
}>;
|
|
10322
|
+
matchEntriesMultiple(body: {
|
|
10323
|
+
matchings: {
|
|
10324
|
+
entries: string[];
|
|
10325
|
+
partner_id: string;
|
|
10326
|
+
}[];
|
|
10327
|
+
}, params?: {
|
|
10328
|
+
folder_id?: string | undefined;
|
|
10329
|
+
} | undefined): import("../types/api").RequestData<{
|
|
10330
|
+
matching_number?: string | undefined;
|
|
10331
|
+
processed: boolean;
|
|
10332
|
+
error_msg?: Record<string, never> | undefined;
|
|
10333
|
+
}[]>;
|
|
9334
10334
|
getFolders(): import("../types/api").RequestData<{
|
|
9335
10335
|
id: string;
|
|
9336
10336
|
name: string;
|
|
@@ -9338,14 +10338,23 @@ export declare class API {
|
|
|
9338
10338
|
vat?: string | undefined;
|
|
9339
10339
|
company_number?: string | undefined;
|
|
9340
10340
|
}[]>;
|
|
10341
|
+
getBookyears(params?: {
|
|
10342
|
+
folder_id?: string | undefined;
|
|
10343
|
+
} | undefined): import("../types/api").RequestData<{
|
|
10344
|
+
name: string;
|
|
10345
|
+
start: string;
|
|
10346
|
+
end: string;
|
|
10347
|
+
closed: boolean;
|
|
10348
|
+
}[]>;
|
|
9341
10349
|
}>;
|
|
9342
10350
|
invoicing: import("../types/api").ApiFor<{
|
|
9343
10351
|
getInvoices(params?: {
|
|
9344
10352
|
date_from?: string | undefined;
|
|
9345
10353
|
date_to?: string | undefined;
|
|
9346
10354
|
payment_status?: "all" | "paid" | "unpaid" | undefined;
|
|
9347
|
-
invoice_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all" | undefined;
|
|
9348
10355
|
updated_after?: string | undefined;
|
|
10356
|
+
invoice_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all" | undefined;
|
|
10357
|
+
include_invoice_lines?: "true" | "false" | undefined;
|
|
9349
10358
|
} | undefined): import("../types/api").RequestData<{
|
|
9350
10359
|
id: string;
|
|
9351
10360
|
source_ref: {
|
|
@@ -9353,7 +10362,7 @@ export declare class API {
|
|
|
9353
10362
|
model?: string | undefined;
|
|
9354
10363
|
};
|
|
9355
10364
|
currency: string;
|
|
9356
|
-
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
10365
|
+
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all";
|
|
9357
10366
|
status: "draft" | "posted" | "cancelled" | "paid";
|
|
9358
10367
|
invoice_date: string;
|
|
9359
10368
|
tax_amount: number;
|
|
@@ -9370,6 +10379,7 @@ export declare class API {
|
|
|
9370
10379
|
tax_rate?: number | undefined;
|
|
9371
10380
|
account_number?: string | undefined;
|
|
9372
10381
|
tax_id?: string | undefined;
|
|
10382
|
+
tax_exemption_reason?: string | undefined;
|
|
9373
10383
|
unit_of_measure?: string | undefined;
|
|
9374
10384
|
product_id?: string | undefined;
|
|
9375
10385
|
product_code?: string | undefined;
|
|
@@ -9386,8 +10396,29 @@ export declare class API {
|
|
|
9386
10396
|
model?: string | undefined;
|
|
9387
10397
|
name?: string | undefined;
|
|
9388
10398
|
} | undefined;
|
|
10399
|
+
italian_specificities?: {
|
|
10400
|
+
stamp_duty_amount?: number | undefined;
|
|
10401
|
+
withholding_tax?: {
|
|
10402
|
+
rate: number;
|
|
10403
|
+
amount: number;
|
|
10404
|
+
reason?: "RT01" | "RT02" | "RT03" | "RT04" | "RT05" | "RT06" | undefined;
|
|
10405
|
+
payment_reason?: "A" | "U" | "R" | "Q" | "H" | "V" | "V2" | "I" | "J" | "K" | "P" | "S" | "T" | "W" | "X" | "Y" | "B" | "C" | "D" | "E" | "F" | "G" | "L" | "L1" | "M" | "M1" | "M2" | "IN" | "O" | "O1" | "V1" | undefined;
|
|
10406
|
+
} | undefined;
|
|
10407
|
+
welfare_fund?: {
|
|
10408
|
+
rate: number;
|
|
10409
|
+
amount: number;
|
|
10410
|
+
type?: "TC01" | "TC02" | "TC03" | "TC04" | "TC05" | "TC06" | "TC07" | "TC08" | "TC09" | "TC10" | "TC11" | "TC12" | "TC13" | "TC14" | "TC15" | "TC16" | "TC17" | "TC18" | "TC19" | "TC20" | "TC21" | "TC22" | undefined;
|
|
10411
|
+
} | undefined;
|
|
10412
|
+
payment_reporting?: {
|
|
10413
|
+
method?: "MP01" | "MP02" | "MP03" | "MP04" | "MP05" | "MP06" | "MP07" | "MP08" | "MP09" | "MP10" | "MP11" | "MP12" | "MP13" | "MP14" | "MP15" | "MP16" | "MP17" | "MP18" | "MP19" | "MP20" | "MP21" | "MP22" | "MP23" | undefined;
|
|
10414
|
+
conditions?: "TP01" | "TP02" | "TP03" | undefined;
|
|
10415
|
+
} | undefined;
|
|
10416
|
+
} | undefined;
|
|
9389
10417
|
last_updated_on?: string | undefined;
|
|
9390
10418
|
outstanding_amount?: number | undefined;
|
|
10419
|
+
accounting_date?: string | undefined;
|
|
10420
|
+
payment_method_id?: string | undefined;
|
|
10421
|
+
currency_exchange_rate: number;
|
|
9391
10422
|
}[]>;
|
|
9392
10423
|
getInvoiceById(invoiceId: string, params?: {
|
|
9393
10424
|
include_pdf?: "true" | "false" | undefined;
|
|
@@ -9398,7 +10429,7 @@ export declare class API {
|
|
|
9398
10429
|
model?: string | undefined;
|
|
9399
10430
|
};
|
|
9400
10431
|
currency: string;
|
|
9401
|
-
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
10432
|
+
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all";
|
|
9402
10433
|
status: "draft" | "posted" | "cancelled" | "paid";
|
|
9403
10434
|
invoice_date: string;
|
|
9404
10435
|
tax_amount: number;
|
|
@@ -9415,6 +10446,7 @@ export declare class API {
|
|
|
9415
10446
|
tax_rate?: number | undefined;
|
|
9416
10447
|
account_number?: string | undefined;
|
|
9417
10448
|
tax_id?: string | undefined;
|
|
10449
|
+
tax_exemption_reason?: string | undefined;
|
|
9418
10450
|
unit_of_measure?: string | undefined;
|
|
9419
10451
|
product_id?: string | undefined;
|
|
9420
10452
|
product_code?: string | undefined;
|
|
@@ -9431,12 +10463,33 @@ export declare class API {
|
|
|
9431
10463
|
model?: string | undefined;
|
|
9432
10464
|
name?: string | undefined;
|
|
9433
10465
|
} | undefined;
|
|
10466
|
+
italian_specificities?: {
|
|
10467
|
+
stamp_duty_amount?: number | undefined;
|
|
10468
|
+
withholding_tax?: {
|
|
10469
|
+
rate: number;
|
|
10470
|
+
amount: number;
|
|
10471
|
+
reason?: "RT01" | "RT02" | "RT03" | "RT04" | "RT05" | "RT06" | undefined;
|
|
10472
|
+
payment_reason?: "A" | "U" | "R" | "Q" | "H" | "V" | "V2" | "I" | "J" | "K" | "P" | "S" | "T" | "W" | "X" | "Y" | "B" | "C" | "D" | "E" | "F" | "G" | "L" | "L1" | "M" | "M1" | "M2" | "IN" | "O" | "O1" | "V1" | undefined;
|
|
10473
|
+
} | undefined;
|
|
10474
|
+
welfare_fund?: {
|
|
10475
|
+
rate: number;
|
|
10476
|
+
amount: number;
|
|
10477
|
+
type?: "TC01" | "TC02" | "TC03" | "TC04" | "TC05" | "TC06" | "TC07" | "TC08" | "TC09" | "TC10" | "TC11" | "TC12" | "TC13" | "TC14" | "TC15" | "TC16" | "TC17" | "TC18" | "TC19" | "TC20" | "TC21" | "TC22" | undefined;
|
|
10478
|
+
} | undefined;
|
|
10479
|
+
payment_reporting?: {
|
|
10480
|
+
method?: "MP01" | "MP02" | "MP03" | "MP04" | "MP05" | "MP06" | "MP07" | "MP08" | "MP09" | "MP10" | "MP11" | "MP12" | "MP13" | "MP14" | "MP15" | "MP16" | "MP17" | "MP18" | "MP19" | "MP20" | "MP21" | "MP22" | "MP23" | undefined;
|
|
10481
|
+
conditions?: "TP01" | "TP02" | "TP03" | undefined;
|
|
10482
|
+
} | undefined;
|
|
10483
|
+
} | undefined;
|
|
9434
10484
|
last_updated_on?: string | undefined;
|
|
9435
10485
|
outstanding_amount?: number | undefined;
|
|
10486
|
+
accounting_date?: string | undefined;
|
|
10487
|
+
payment_method_id?: string | undefined;
|
|
10488
|
+
currency_exchange_rate: number;
|
|
9436
10489
|
}>;
|
|
9437
10490
|
createInvoice(invoice: {
|
|
9438
10491
|
currency: string;
|
|
9439
|
-
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
10492
|
+
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all";
|
|
9440
10493
|
status: "draft" | "posted" | "cancelled" | "paid";
|
|
9441
10494
|
invoice_date: string;
|
|
9442
10495
|
tax_amount: number;
|
|
@@ -9453,6 +10506,7 @@ export declare class API {
|
|
|
9453
10506
|
tax_rate?: number | undefined;
|
|
9454
10507
|
account_number?: string | undefined;
|
|
9455
10508
|
tax_id?: string | undefined;
|
|
10509
|
+
tax_exemption_reason?: string | undefined;
|
|
9456
10510
|
unit_of_measure?: string | undefined;
|
|
9457
10511
|
product_id?: string | undefined;
|
|
9458
10512
|
product_code?: string | undefined;
|
|
@@ -9469,6 +10523,24 @@ export declare class API {
|
|
|
9469
10523
|
model?: string | undefined;
|
|
9470
10524
|
name?: string | undefined;
|
|
9471
10525
|
} | undefined;
|
|
10526
|
+
italian_specificities?: {
|
|
10527
|
+
stamp_duty_amount?: number | undefined;
|
|
10528
|
+
withholding_tax?: {
|
|
10529
|
+
rate: number;
|
|
10530
|
+
amount: number;
|
|
10531
|
+
reason?: "RT01" | "RT02" | "RT03" | "RT04" | "RT05" | "RT06" | undefined;
|
|
10532
|
+
payment_reason?: "A" | "U" | "R" | "Q" | "H" | "V" | "V2" | "I" | "J" | "K" | "P" | "S" | "T" | "W" | "X" | "Y" | "B" | "C" | "D" | "E" | "F" | "G" | "L" | "L1" | "M" | "M1" | "M2" | "IN" | "O" | "O1" | "V1" | undefined;
|
|
10533
|
+
} | undefined;
|
|
10534
|
+
welfare_fund?: {
|
|
10535
|
+
rate: number;
|
|
10536
|
+
amount: number;
|
|
10537
|
+
type?: "TC01" | "TC02" | "TC03" | "TC04" | "TC05" | "TC06" | "TC07" | "TC08" | "TC09" | "TC10" | "TC11" | "TC12" | "TC13" | "TC14" | "TC15" | "TC16" | "TC17" | "TC18" | "TC19" | "TC20" | "TC21" | "TC22" | undefined;
|
|
10538
|
+
} | undefined;
|
|
10539
|
+
payment_reporting?: {
|
|
10540
|
+
method?: "MP01" | "MP02" | "MP03" | "MP04" | "MP05" | "MP06" | "MP07" | "MP08" | "MP09" | "MP10" | "MP11" | "MP12" | "MP13" | "MP14" | "MP15" | "MP16" | "MP17" | "MP18" | "MP19" | "MP20" | "MP21" | "MP22" | "MP23" | undefined;
|
|
10541
|
+
conditions?: "TP01" | "TP02" | "TP03" | undefined;
|
|
10542
|
+
} | undefined;
|
|
10543
|
+
} | undefined;
|
|
9472
10544
|
}): import("../types/api").RequestData<{
|
|
9473
10545
|
id: string;
|
|
9474
10546
|
source_ref: {
|
|
@@ -9476,7 +10548,7 @@ export declare class API {
|
|
|
9476
10548
|
model?: string | undefined;
|
|
9477
10549
|
};
|
|
9478
10550
|
currency: string;
|
|
9479
|
-
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
10551
|
+
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all";
|
|
9480
10552
|
status: "draft" | "posted" | "cancelled" | "paid";
|
|
9481
10553
|
invoice_date: string;
|
|
9482
10554
|
tax_amount: number;
|
|
@@ -9493,6 +10565,7 @@ export declare class API {
|
|
|
9493
10565
|
tax_rate?: number | undefined;
|
|
9494
10566
|
account_number?: string | undefined;
|
|
9495
10567
|
tax_id?: string | undefined;
|
|
10568
|
+
tax_exemption_reason?: string | undefined;
|
|
9496
10569
|
unit_of_measure?: string | undefined;
|
|
9497
10570
|
product_id?: string | undefined;
|
|
9498
10571
|
product_code?: string | undefined;
|
|
@@ -9509,8 +10582,29 @@ export declare class API {
|
|
|
9509
10582
|
model?: string | undefined;
|
|
9510
10583
|
name?: string | undefined;
|
|
9511
10584
|
} | undefined;
|
|
10585
|
+
italian_specificities?: {
|
|
10586
|
+
stamp_duty_amount?: number | undefined;
|
|
10587
|
+
withholding_tax?: {
|
|
10588
|
+
rate: number;
|
|
10589
|
+
amount: number;
|
|
10590
|
+
reason?: "RT01" | "RT02" | "RT03" | "RT04" | "RT05" | "RT06" | undefined;
|
|
10591
|
+
payment_reason?: "A" | "U" | "R" | "Q" | "H" | "V" | "V2" | "I" | "J" | "K" | "P" | "S" | "T" | "W" | "X" | "Y" | "B" | "C" | "D" | "E" | "F" | "G" | "L" | "L1" | "M" | "M1" | "M2" | "IN" | "O" | "O1" | "V1" | undefined;
|
|
10592
|
+
} | undefined;
|
|
10593
|
+
welfare_fund?: {
|
|
10594
|
+
rate: number;
|
|
10595
|
+
amount: number;
|
|
10596
|
+
type?: "TC01" | "TC02" | "TC03" | "TC04" | "TC05" | "TC06" | "TC07" | "TC08" | "TC09" | "TC10" | "TC11" | "TC12" | "TC13" | "TC14" | "TC15" | "TC16" | "TC17" | "TC18" | "TC19" | "TC20" | "TC21" | "TC22" | undefined;
|
|
10597
|
+
} | undefined;
|
|
10598
|
+
payment_reporting?: {
|
|
10599
|
+
method?: "MP01" | "MP02" | "MP03" | "MP04" | "MP05" | "MP06" | "MP07" | "MP08" | "MP09" | "MP10" | "MP11" | "MP12" | "MP13" | "MP14" | "MP15" | "MP16" | "MP17" | "MP18" | "MP19" | "MP20" | "MP21" | "MP22" | "MP23" | undefined;
|
|
10600
|
+
conditions?: "TP01" | "TP02" | "TP03" | undefined;
|
|
10601
|
+
} | undefined;
|
|
10602
|
+
} | undefined;
|
|
9512
10603
|
last_updated_on?: string | undefined;
|
|
9513
10604
|
outstanding_amount?: number | undefined;
|
|
10605
|
+
accounting_date?: string | undefined;
|
|
10606
|
+
payment_method_id?: string | undefined;
|
|
10607
|
+
currency_exchange_rate: number;
|
|
9514
10608
|
}>;
|
|
9515
10609
|
getProducts(): import("../types/api").RequestData<{
|
|
9516
10610
|
id: string;
|
|
@@ -9807,6 +10901,31 @@ export declare class API {
|
|
|
9807
10901
|
}[];
|
|
9808
10902
|
external_reference?: string | undefined;
|
|
9809
10903
|
}>;
|
|
10904
|
+
getPayments(): import("../types/api").RequestData<{
|
|
10905
|
+
id: string;
|
|
10906
|
+
source_ref: {
|
|
10907
|
+
id?: string | undefined;
|
|
10908
|
+
model?: string | undefined;
|
|
10909
|
+
};
|
|
10910
|
+
status: "unknown" | "pending" | "completed" | "canceled" | "failed" | "authorized";
|
|
10911
|
+
description: string;
|
|
10912
|
+
amount: number;
|
|
10913
|
+
currency: string;
|
|
10914
|
+
payment_date: string;
|
|
10915
|
+
partner_id: string;
|
|
10916
|
+
payment_method_id?: string | undefined;
|
|
10917
|
+
payment_method_name?: string | undefined;
|
|
10918
|
+
invoice_id?: string | undefined;
|
|
10919
|
+
invoice_number?: string | undefined;
|
|
10920
|
+
}[]>;
|
|
10921
|
+
getPaymentMethods(): import("../types/api").RequestData<{
|
|
10922
|
+
id: string;
|
|
10923
|
+
source_ref: {
|
|
10924
|
+
id?: string | undefined;
|
|
10925
|
+
model?: string | undefined;
|
|
10926
|
+
};
|
|
10927
|
+
name: string;
|
|
10928
|
+
}[]>;
|
|
9810
10929
|
}>;
|
|
9811
10930
|
ecommerce: import("../types/api").ApiFor<{
|
|
9812
10931
|
getCustomers(): import("../types/api").RequestData<{
|
|
@@ -10132,6 +11251,7 @@ export declare class API {
|
|
|
10132
11251
|
refunded_amount: number;
|
|
10133
11252
|
currency: string;
|
|
10134
11253
|
note?: string | undefined;
|
|
11254
|
+
tags: string[];
|
|
10135
11255
|
lines: {
|
|
10136
11256
|
id: string;
|
|
10137
11257
|
source_ref: {
|
|
@@ -10408,6 +11528,7 @@ export declare class API {
|
|
|
10408
11528
|
refunded_amount: number;
|
|
10409
11529
|
currency: string;
|
|
10410
11530
|
note?: string | undefined;
|
|
11531
|
+
tags: string[];
|
|
10411
11532
|
lines: {
|
|
10412
11533
|
id: string;
|
|
10413
11534
|
source_ref: {
|
|
@@ -10643,6 +11764,7 @@ export declare class API {
|
|
|
10643
11764
|
refunded_amount: number;
|
|
10644
11765
|
currency: string;
|
|
10645
11766
|
note?: string | undefined;
|
|
11767
|
+
tags: string[];
|
|
10646
11768
|
lines: {
|
|
10647
11769
|
id: string;
|
|
10648
11770
|
source_ref: {
|
|
@@ -10943,6 +12065,52 @@ export declare class API {
|
|
|
10943
12065
|
logData: (logs: import("../types/consumers").ConsumerLog[]) => Promise<import("../types/sync").SimpleResponseModel>;
|
|
10944
12066
|
setConnectionId: (connectionId: string) => Promise<void>;
|
|
10945
12067
|
setIntegrationId: (integrationId: string) => Promise<void>;
|
|
12068
|
+
updateConsumer: (body: {
|
|
12069
|
+
name?: string | undefined;
|
|
12070
|
+
email?: string | undefined;
|
|
12071
|
+
internal_reference?: string | undefined;
|
|
12072
|
+
redirect_url?: string | undefined;
|
|
12073
|
+
}) => Promise<{
|
|
12074
|
+
consumerid: string;
|
|
12075
|
+
name: string;
|
|
12076
|
+
email?: string | undefined;
|
|
12077
|
+
internal_reference?: string | undefined;
|
|
12078
|
+
redirect_url?: string | undefined;
|
|
12079
|
+
}>;
|
|
12080
|
+
updateFlowConfig: (syncId: string, flowId: string, body: {
|
|
12081
|
+
triggerid: string;
|
|
12082
|
+
data: Record<string, never>;
|
|
12083
|
+
}) => Promise<{
|
|
12084
|
+
name: string;
|
|
12085
|
+
description?: string | undefined;
|
|
12086
|
+
id: string;
|
|
12087
|
+
config?: {
|
|
12088
|
+
definitionFields?: Record<string, never>[] | undefined;
|
|
12089
|
+
doorkeyFields?: Record<string, never>[] | undefined;
|
|
12090
|
+
customFields?: Record<string, never>[] | undefined;
|
|
12091
|
+
datastores: {
|
|
12092
|
+
id?: string | undefined;
|
|
12093
|
+
name: string;
|
|
12094
|
+
status: "active" | "inactive";
|
|
12095
|
+
definition: {
|
|
12096
|
+
columns: {
|
|
12097
|
+
name: string;
|
|
12098
|
+
title: string;
|
|
12099
|
+
type: string;
|
|
12100
|
+
optional: boolean;
|
|
12101
|
+
}[];
|
|
12102
|
+
search_column?: string | undefined;
|
|
12103
|
+
};
|
|
12104
|
+
}[];
|
|
12105
|
+
} | undefined;
|
|
12106
|
+
values: Record<string, never>;
|
|
12107
|
+
enabled_on?: string | undefined;
|
|
12108
|
+
trigger: {
|
|
12109
|
+
id: string;
|
|
12110
|
+
type: "event" | "timer";
|
|
12111
|
+
cronschedule?: string | undefined;
|
|
12112
|
+
};
|
|
12113
|
+
}>;
|
|
10946
12114
|
}>;
|
|
10947
12115
|
getConsumersByName: (consumerName: string) => Promise<{
|
|
10948
12116
|
consumerId: string;
|
|
@@ -11057,6 +12225,8 @@ export declare class API {
|
|
|
11057
12225
|
}[];
|
|
11058
12226
|
items: {
|
|
11059
12227
|
id: string;
|
|
12228
|
+
type?: "menu" | "product" | undefined;
|
|
12229
|
+
menu_id?: string | undefined;
|
|
11060
12230
|
quantity: number;
|
|
11061
12231
|
unit_price: number;
|
|
11062
12232
|
total: number;
|
|
@@ -11066,6 +12236,7 @@ export declare class API {
|
|
|
11066
12236
|
discounts: {
|
|
11067
12237
|
name?: string | undefined;
|
|
11068
12238
|
total: number;
|
|
12239
|
+
type: "OFFERED" | "UNKNOWN" | "LOSS";
|
|
11069
12240
|
}[];
|
|
11070
12241
|
product_id?: string | undefined;
|
|
11071
12242
|
accounting_category_id?: string | undefined;
|
|
@@ -11132,6 +12303,8 @@ export declare class API {
|
|
|
11132
12303
|
}[];
|
|
11133
12304
|
items: {
|
|
11134
12305
|
id: string;
|
|
12306
|
+
type?: "menu" | "product" | undefined;
|
|
12307
|
+
menu_id?: string | undefined;
|
|
11135
12308
|
quantity: number;
|
|
11136
12309
|
unit_price: number;
|
|
11137
12310
|
total: number;
|
|
@@ -11141,6 +12314,7 @@ export declare class API {
|
|
|
11141
12314
|
discounts: {
|
|
11142
12315
|
name?: string | undefined;
|
|
11143
12316
|
total: number;
|
|
12317
|
+
type: "OFFERED" | "UNKNOWN" | "LOSS";
|
|
11144
12318
|
}[];
|
|
11145
12319
|
product_id?: string | undefined;
|
|
11146
12320
|
accounting_category_id?: string | undefined;
|
|
@@ -11304,6 +12478,8 @@ export declare class API {
|
|
|
11304
12478
|
}[];
|
|
11305
12479
|
items: {
|
|
11306
12480
|
id: string;
|
|
12481
|
+
type?: "menu" | "product" | undefined;
|
|
12482
|
+
menu_id?: string | undefined;
|
|
11307
12483
|
quantity: number;
|
|
11308
12484
|
unit_price: number;
|
|
11309
12485
|
total: number;
|
|
@@ -11313,6 +12489,7 @@ export declare class API {
|
|
|
11313
12489
|
discounts: {
|
|
11314
12490
|
name?: string | undefined;
|
|
11315
12491
|
total: number;
|
|
12492
|
+
type: "OFFERED" | "UNKNOWN" | "LOSS";
|
|
11316
12493
|
}[];
|
|
11317
12494
|
product_id?: string | undefined;
|
|
11318
12495
|
accounting_category_id?: string | undefined;
|
|
@@ -11323,7 +12500,6 @@ export declare class API {
|
|
|
11323
12500
|
} | undefined): import("../types/api").RequestData<{
|
|
11324
12501
|
id: string;
|
|
11325
12502
|
name: string;
|
|
11326
|
-
id_parent?: string | undefined;
|
|
11327
12503
|
code?: string | undefined;
|
|
11328
12504
|
ledger_account_code?: string | undefined;
|
|
11329
12505
|
posting_account_code?: string | undefined;
|
|
@@ -11377,13 +12553,200 @@ export declare class API {
|
|
|
11377
12553
|
tax_amount: number;
|
|
11378
12554
|
total: number;
|
|
11379
12555
|
}[] | undefined;
|
|
11380
|
-
guests?: number | undefined;
|
|
12556
|
+
guests?: number | undefined;
|
|
12557
|
+
items: {
|
|
12558
|
+
id: string;
|
|
12559
|
+
source_ref: {
|
|
12560
|
+
id?: string | undefined;
|
|
12561
|
+
model?: string | undefined;
|
|
12562
|
+
};
|
|
12563
|
+
type?: "menu" | "product" | undefined;
|
|
12564
|
+
menu_id?: string | undefined;
|
|
12565
|
+
quantity: number;
|
|
12566
|
+
unit_price: number;
|
|
12567
|
+
total: number;
|
|
12568
|
+
tax_amount: number;
|
|
12569
|
+
tax_rate?: number | undefined;
|
|
12570
|
+
description?: string | undefined;
|
|
12571
|
+
discounts: {
|
|
12572
|
+
name?: string | undefined;
|
|
12573
|
+
total: number;
|
|
12574
|
+
type: "OFFERED" | "UNKNOWN" | "LOSS";
|
|
12575
|
+
}[];
|
|
12576
|
+
product_id?: string | undefined;
|
|
12577
|
+
accounting_category_id?: string | undefined;
|
|
12578
|
+
}[];
|
|
12579
|
+
service_id?: string | undefined;
|
|
12580
|
+
reservation?: {
|
|
12581
|
+
id: string;
|
|
12582
|
+
source_ref: {
|
|
12583
|
+
id?: string | undefined;
|
|
12584
|
+
model?: string | undefined;
|
|
12585
|
+
};
|
|
12586
|
+
start_date?: string | undefined;
|
|
12587
|
+
end_date?: string | undefined;
|
|
12588
|
+
creation_date?: string | undefined;
|
|
12589
|
+
resource_id?: {
|
|
12590
|
+
id: string;
|
|
12591
|
+
source_ref: {
|
|
12592
|
+
id?: string | undefined;
|
|
12593
|
+
model?: string | undefined;
|
|
12594
|
+
};
|
|
12595
|
+
} | undefined;
|
|
12596
|
+
resource_name?: string | undefined;
|
|
12597
|
+
resource_identifier?: string | undefined;
|
|
12598
|
+
} | undefined;
|
|
12599
|
+
bills?: {
|
|
12600
|
+
id: string;
|
|
12601
|
+
source_ref: {
|
|
12602
|
+
id?: string | undefined;
|
|
12603
|
+
model?: string | undefined;
|
|
12604
|
+
};
|
|
12605
|
+
invoice_number?: string | undefined;
|
|
12606
|
+
creation_date?: string | undefined;
|
|
12607
|
+
closing_date?: string | undefined;
|
|
12608
|
+
partners?: {
|
|
12609
|
+
id: string;
|
|
12610
|
+
source_ref: {
|
|
12611
|
+
id?: string | undefined;
|
|
12612
|
+
model?: string | undefined;
|
|
12613
|
+
};
|
|
12614
|
+
type: "owner" | "account";
|
|
12615
|
+
address?: {
|
|
12616
|
+
address_type?: string | undefined;
|
|
12617
|
+
name?: string | undefined;
|
|
12618
|
+
street?: string | undefined;
|
|
12619
|
+
number?: string | undefined;
|
|
12620
|
+
box?: string | undefined;
|
|
12621
|
+
city?: string | undefined;
|
|
12622
|
+
postal_code?: string | undefined;
|
|
12623
|
+
country?: string | undefined;
|
|
12624
|
+
} | undefined;
|
|
12625
|
+
first_name?: string | undefined;
|
|
12626
|
+
last_name?: string | undefined;
|
|
12627
|
+
company_name?: string | undefined;
|
|
12628
|
+
}[] | undefined;
|
|
12629
|
+
}[] | undefined;
|
|
12630
|
+
}[]>;
|
|
12631
|
+
getPaymentMethods(params?: {
|
|
12632
|
+
location_id?: string | undefined;
|
|
12633
|
+
} | undefined): import("../types/api").RequestData<{
|
|
12634
|
+
id: string;
|
|
12635
|
+
source_ref: {
|
|
12636
|
+
id?: string | undefined;
|
|
12637
|
+
model?: string | undefined;
|
|
12638
|
+
};
|
|
12639
|
+
name: string;
|
|
12640
|
+
extra?: string | undefined;
|
|
12641
|
+
ledger_account_code?: string | undefined;
|
|
12642
|
+
}[]>;
|
|
12643
|
+
getClosure(date: string, params?: {
|
|
12644
|
+
location_id?: string | undefined;
|
|
12645
|
+
} | undefined): import("../types/api").RequestData<{
|
|
12646
|
+
date: string;
|
|
12647
|
+
status: "open" | "closed";
|
|
12648
|
+
}>;
|
|
12649
|
+
getPayments(params: {
|
|
12650
|
+
date_from: string;
|
|
12651
|
+
date_to: string;
|
|
12652
|
+
}): import("../types/api").RequestData<{
|
|
12653
|
+
id?: string | undefined;
|
|
12654
|
+
source_ref: {
|
|
12655
|
+
id?: string | undefined;
|
|
12656
|
+
model?: string | undefined;
|
|
12657
|
+
};
|
|
12658
|
+
payment_method_id?: string | undefined;
|
|
12659
|
+
payment_method_name?: string | undefined;
|
|
12660
|
+
total: number;
|
|
12661
|
+
tip: number;
|
|
12662
|
+
status: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised";
|
|
12663
|
+
currency?: string | undefined;
|
|
12664
|
+
date?: string | undefined;
|
|
12665
|
+
partner_id?: {
|
|
12666
|
+
id: string;
|
|
12667
|
+
source_ref: {
|
|
12668
|
+
id?: string | undefined;
|
|
12669
|
+
model?: string | undefined;
|
|
12670
|
+
};
|
|
12671
|
+
} | undefined;
|
|
12672
|
+
}[]>;
|
|
12673
|
+
getAccountingCategories(params?: {} | undefined): import("../types/api").RequestData<{
|
|
12674
|
+
id: string;
|
|
12675
|
+
source_ref: {
|
|
12676
|
+
id?: string | undefined;
|
|
12677
|
+
model?: string | undefined;
|
|
12678
|
+
};
|
|
12679
|
+
name: string;
|
|
12680
|
+
code?: string | undefined;
|
|
12681
|
+
ledger_account_code?: string | undefined;
|
|
12682
|
+
posting_account_code?: string | undefined;
|
|
12683
|
+
}[]>;
|
|
12684
|
+
getCustomers(params?: {} | undefined): import("../types/api").RequestData<{
|
|
12685
|
+
id: string;
|
|
12686
|
+
source_ref: {
|
|
12687
|
+
id?: string | undefined;
|
|
12688
|
+
model?: string | undefined;
|
|
12689
|
+
};
|
|
12690
|
+
first_name?: string | undefined;
|
|
12691
|
+
last_name?: string | undefined;
|
|
12692
|
+
company_name?: string | undefined;
|
|
12693
|
+
phone?: string | undefined;
|
|
12694
|
+
email?: string | undefined;
|
|
12695
|
+
account_number?: string | undefined;
|
|
12696
|
+
created_on?: string | undefined;
|
|
12697
|
+
addresses?: {
|
|
12698
|
+
address_type?: string | undefined;
|
|
12699
|
+
name?: string | undefined;
|
|
12700
|
+
street?: string | undefined;
|
|
12701
|
+
number?: string | undefined;
|
|
12702
|
+
box?: string | undefined;
|
|
12703
|
+
city?: string | undefined;
|
|
12704
|
+
postal_code?: string | undefined;
|
|
12705
|
+
country?: string | undefined;
|
|
12706
|
+
}[] | undefined;
|
|
12707
|
+
}[]>;
|
|
12708
|
+
getInvoices(params?: {
|
|
12709
|
+
date_from: string;
|
|
12710
|
+
date_to: string;
|
|
12711
|
+
location_id?: string | undefined;
|
|
12712
|
+
} | undefined): import("../types/api").RequestData<{
|
|
12713
|
+
id: string;
|
|
12714
|
+
source_ref: {
|
|
12715
|
+
id?: string | undefined;
|
|
12716
|
+
model?: string | undefined;
|
|
12717
|
+
};
|
|
12718
|
+
invoice_number?: string | undefined;
|
|
12719
|
+
creation_date?: string | undefined;
|
|
12720
|
+
closing_date?: string | undefined;
|
|
12721
|
+
partners?: {
|
|
12722
|
+
id: string;
|
|
12723
|
+
source_ref: {
|
|
12724
|
+
id?: string | undefined;
|
|
12725
|
+
model?: string | undefined;
|
|
12726
|
+
};
|
|
12727
|
+
type: "owner" | "account";
|
|
12728
|
+
address?: {
|
|
12729
|
+
address_type?: string | undefined;
|
|
12730
|
+
name?: string | undefined;
|
|
12731
|
+
street?: string | undefined;
|
|
12732
|
+
number?: string | undefined;
|
|
12733
|
+
box?: string | undefined;
|
|
12734
|
+
city?: string | undefined;
|
|
12735
|
+
postal_code?: string | undefined;
|
|
12736
|
+
country?: string | undefined;
|
|
12737
|
+
} | undefined;
|
|
12738
|
+
first_name?: string | undefined;
|
|
12739
|
+
last_name?: string | undefined;
|
|
12740
|
+
company_name?: string | undefined;
|
|
12741
|
+
}[] | undefined;
|
|
11381
12742
|
items: {
|
|
11382
12743
|
id: string;
|
|
11383
12744
|
source_ref: {
|
|
11384
12745
|
id?: string | undefined;
|
|
11385
12746
|
model?: string | undefined;
|
|
11386
12747
|
};
|
|
12748
|
+
type?: "menu" | "product" | undefined;
|
|
12749
|
+
menu_id?: string | undefined;
|
|
11387
12750
|
quantity: number;
|
|
11388
12751
|
unit_price: number;
|
|
11389
12752
|
total: number;
|
|
@@ -11393,58 +12756,52 @@ export declare class API {
|
|
|
11393
12756
|
discounts: {
|
|
11394
12757
|
name?: string | undefined;
|
|
11395
12758
|
total: number;
|
|
12759
|
+
type: "OFFERED" | "UNKNOWN" | "LOSS";
|
|
11396
12760
|
}[];
|
|
11397
12761
|
product_id?: string | undefined;
|
|
11398
12762
|
accounting_category_id?: string | undefined;
|
|
11399
12763
|
}[];
|
|
11400
|
-
|
|
11401
|
-
}[]>;
|
|
11402
|
-
getPaymentMethods(params?: {
|
|
11403
|
-
location_id?: string | undefined;
|
|
11404
|
-
} | undefined): import("../types/api").RequestData<{
|
|
11405
|
-
id: string;
|
|
11406
|
-
source_ref: {
|
|
11407
|
-
id?: string | undefined;
|
|
11408
|
-
model?: string | undefined;
|
|
11409
|
-
};
|
|
11410
|
-
name: string;
|
|
11411
|
-
extra?: string | undefined;
|
|
11412
|
-
ledger_account_code?: string | undefined;
|
|
11413
|
-
}[]>;
|
|
11414
|
-
getClosure(date: string, params?: {
|
|
11415
|
-
location_id?: string | undefined;
|
|
11416
|
-
} | undefined): import("../types/api").RequestData<{
|
|
11417
|
-
date: string;
|
|
11418
|
-
status: "open" | "closed";
|
|
11419
|
-
}>;
|
|
11420
|
-
getPayments(params: {
|
|
11421
|
-
date_from: string;
|
|
11422
|
-
date_to: string;
|
|
11423
|
-
}): import("../types/api").RequestData<{
|
|
11424
|
-
id?: string | undefined;
|
|
11425
|
-
source_ref: {
|
|
11426
|
-
id?: string | undefined;
|
|
11427
|
-
model?: string | undefined;
|
|
11428
|
-
};
|
|
11429
|
-
payment_method_id?: string | undefined;
|
|
11430
|
-
payment_method_name?: string | undefined;
|
|
11431
|
-
total: number;
|
|
11432
|
-
tip: number;
|
|
11433
|
-
status: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised";
|
|
11434
|
-
currency?: string | undefined;
|
|
11435
|
-
date?: string | undefined;
|
|
11436
|
-
}[]>;
|
|
11437
|
-
getAccountingCategories(params?: {} | undefined): import("../types/api").RequestData<{
|
|
11438
|
-
id: string;
|
|
11439
|
-
source_ref: {
|
|
12764
|
+
payments: {
|
|
11440
12765
|
id?: string | undefined;
|
|
11441
|
-
|
|
11442
|
-
|
|
11443
|
-
|
|
11444
|
-
|
|
11445
|
-
|
|
11446
|
-
|
|
11447
|
-
|
|
12766
|
+
source_ref: {
|
|
12767
|
+
id?: string | undefined;
|
|
12768
|
+
model?: string | undefined;
|
|
12769
|
+
};
|
|
12770
|
+
payment_method_id?: string | undefined;
|
|
12771
|
+
payment_method_name?: string | undefined;
|
|
12772
|
+
total: number;
|
|
12773
|
+
tip: number;
|
|
12774
|
+
status: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised";
|
|
12775
|
+
currency?: string | undefined;
|
|
12776
|
+
date?: string | undefined;
|
|
12777
|
+
partner_id?: {
|
|
12778
|
+
id: string;
|
|
12779
|
+
source_ref: {
|
|
12780
|
+
id?: string | undefined;
|
|
12781
|
+
model?: string | undefined;
|
|
12782
|
+
};
|
|
12783
|
+
} | undefined;
|
|
12784
|
+
}[];
|
|
12785
|
+
service_id?: string | undefined;
|
|
12786
|
+
reservation?: {
|
|
12787
|
+
id: string;
|
|
12788
|
+
source_ref: {
|
|
12789
|
+
id?: string | undefined;
|
|
12790
|
+
model?: string | undefined;
|
|
12791
|
+
};
|
|
12792
|
+
start_date?: string | undefined;
|
|
12793
|
+
end_date?: string | undefined;
|
|
12794
|
+
creation_date?: string | undefined;
|
|
12795
|
+
resource_id?: {
|
|
12796
|
+
id: string;
|
|
12797
|
+
source_ref: {
|
|
12798
|
+
id?: string | undefined;
|
|
12799
|
+
model?: string | undefined;
|
|
12800
|
+
};
|
|
12801
|
+
} | undefined;
|
|
12802
|
+
resource_name?: string | undefined;
|
|
12803
|
+
resource_identifier?: string | undefined;
|
|
12804
|
+
} | undefined;
|
|
11448
12805
|
}[]>;
|
|
11449
12806
|
}>;
|
|
11450
12807
|
payment: import("../types/api").ApiFor<{
|
|
@@ -11497,8 +12854,8 @@ export declare class API {
|
|
|
11497
12854
|
payment_id?: string | undefined;
|
|
11498
12855
|
}[]>;
|
|
11499
12856
|
getPayment(params: {
|
|
11500
|
-
payment_id: string;
|
|
11501
12857
|
consumer_id: string;
|
|
12858
|
+
payment_id: string;
|
|
11502
12859
|
}): import("../types/api").RequestData<{
|
|
11503
12860
|
id: string;
|
|
11504
12861
|
source_ref: {
|
|
@@ -11539,7 +12896,9 @@ export declare class API {
|
|
|
11539
12896
|
active: boolean;
|
|
11540
12897
|
}[]>;
|
|
11541
12898
|
getClients(params?: {
|
|
12899
|
+
search?: string | undefined;
|
|
11542
12900
|
folder_id?: string | undefined;
|
|
12901
|
+
updated_after?: string | undefined;
|
|
11543
12902
|
} | undefined): import("../types/api").RequestData<{
|
|
11544
12903
|
external_reference?: string | undefined;
|
|
11545
12904
|
first_name?: string | undefined;
|
|
@@ -11610,8 +12969,8 @@ export declare class API {
|
|
|
11610
12969
|
}[];
|
|
11611
12970
|
account_number?: string | undefined;
|
|
11612
12971
|
}, params?: {
|
|
11613
|
-
force_merge?: string | undefined;
|
|
11614
12972
|
folder_id?: string | undefined;
|
|
12973
|
+
force_merge?: string | undefined;
|
|
11615
12974
|
} | undefined): import("../types/api").RequestData<{
|
|
11616
12975
|
external_reference?: string | undefined;
|
|
11617
12976
|
first_name?: string | undefined;
|
|
@@ -11757,7 +13116,9 @@ export declare class API {
|
|
|
11757
13116
|
id?: string | undefined;
|
|
11758
13117
|
}>;
|
|
11759
13118
|
getSuppliers(params?: {
|
|
13119
|
+
search?: string | undefined;
|
|
11760
13120
|
folder_id?: string | undefined;
|
|
13121
|
+
updated_after?: string | undefined;
|
|
11761
13122
|
} | undefined): import("../types/api").RequestData<{
|
|
11762
13123
|
external_reference?: string | undefined;
|
|
11763
13124
|
first_name?: string | undefined;
|
|
@@ -11828,8 +13189,8 @@ export declare class API {
|
|
|
11828
13189
|
}[];
|
|
11829
13190
|
account_number?: string | undefined;
|
|
11830
13191
|
}, params?: {
|
|
11831
|
-
force_merge?: string | undefined;
|
|
11832
13192
|
folder_id?: string | undefined;
|
|
13193
|
+
force_merge?: string | undefined;
|
|
11833
13194
|
} | undefined): import("../types/api").RequestData<{
|
|
11834
13195
|
external_reference?: string | undefined;
|
|
11835
13196
|
first_name?: string | undefined;
|
|
@@ -12023,9 +13384,9 @@ export declare class API {
|
|
|
12023
13384
|
analytic_account?: string | undefined;
|
|
12024
13385
|
}[];
|
|
12025
13386
|
}, params?: {
|
|
13387
|
+
folder_id?: string | undefined;
|
|
12026
13388
|
force_financial_period?: string | undefined;
|
|
12027
13389
|
regroup_lines?: "true" | "false" | undefined;
|
|
12028
|
-
folder_id?: string | undefined;
|
|
12029
13390
|
} | undefined): import("../types/api").RequestData<{
|
|
12030
13391
|
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
12031
13392
|
invoice_number?: string | undefined;
|
|
@@ -12126,9 +13487,9 @@ export declare class API {
|
|
|
12126
13487
|
}[];
|
|
12127
13488
|
}[];
|
|
12128
13489
|
}, params?: {
|
|
13490
|
+
folder_id?: string | undefined;
|
|
12129
13491
|
force_financial_period?: string | undefined;
|
|
12130
13492
|
regroup_lines?: "true" | "false" | undefined;
|
|
12131
|
-
folder_id?: string | undefined;
|
|
12132
13493
|
} | undefined): import("../types/api").RequestData<{
|
|
12133
13494
|
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
12134
13495
|
invoice_number?: string | undefined;
|
|
@@ -12187,6 +13548,7 @@ export declare class API {
|
|
|
12187
13548
|
journal_ids?: string | undefined;
|
|
12188
13549
|
include_payments?: "true" | "false" | undefined;
|
|
12189
13550
|
payment_status?: "all" | "paid" | "unpaid" | undefined;
|
|
13551
|
+
updated_after?: string | undefined;
|
|
12190
13552
|
} | undefined): import("../types/api").RequestData<{
|
|
12191
13553
|
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
12192
13554
|
invoice_number?: string | undefined;
|
|
@@ -12233,8 +13595,8 @@ export declare class API {
|
|
|
12233
13595
|
}[];
|
|
12234
13596
|
}[]>;
|
|
12235
13597
|
getInvoice(invoiceId: string, params?: {
|
|
12236
|
-
include_payments?: "true" | "false" | undefined;
|
|
12237
13598
|
folder_id?: string | undefined;
|
|
13599
|
+
include_payments?: "true" | "false" | undefined;
|
|
12238
13600
|
} | undefined): import("../types/api").RequestData<{
|
|
12239
13601
|
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
12240
13602
|
invoice_number?: string | undefined;
|
|
@@ -12281,8 +13643,8 @@ export declare class API {
|
|
|
12281
13643
|
}[];
|
|
12282
13644
|
}>;
|
|
12283
13645
|
getInvoiceWithMultiplePlans(invoiceId: string, params?: {
|
|
12284
|
-
include_payments?: "true" | "false" | undefined;
|
|
12285
13646
|
folder_id?: string | undefined;
|
|
13647
|
+
include_payments?: "true" | "false" | undefined;
|
|
12286
13648
|
} | undefined): import("../types/api").RequestData<{
|
|
12287
13649
|
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
12288
13650
|
invoice_number?: string | undefined;
|
|
@@ -12341,6 +13703,7 @@ export declare class API {
|
|
|
12341
13703
|
journal_ids?: string | undefined;
|
|
12342
13704
|
include_payments?: "true" | "false" | undefined;
|
|
12343
13705
|
payment_status?: "all" | "paid" | "unpaid" | undefined;
|
|
13706
|
+
updated_after?: string | undefined;
|
|
12344
13707
|
} | undefined): import("../types/api").RequestData<{
|
|
12345
13708
|
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
12346
13709
|
invoice_number?: string | undefined;
|
|
@@ -12513,9 +13876,10 @@ export declare class API {
|
|
|
12513
13876
|
analytic_plan: string;
|
|
12514
13877
|
}[]>;
|
|
12515
13878
|
getJournalEntries(params: {
|
|
12516
|
-
date_from
|
|
12517
|
-
date_to
|
|
13879
|
+
date_from?: string | undefined;
|
|
13880
|
+
date_to?: string | undefined;
|
|
12518
13881
|
folder_id?: string | undefined;
|
|
13882
|
+
updated_after?: string | undefined;
|
|
12519
13883
|
unposted_allowed: "true" | "false";
|
|
12520
13884
|
journal_id: string;
|
|
12521
13885
|
partner_id?: string | undefined;
|
|
@@ -12545,9 +13909,10 @@ export declare class API {
|
|
|
12545
13909
|
}[];
|
|
12546
13910
|
}[]>;
|
|
12547
13911
|
getJournalEntriesWithMultiplePlans(params: {
|
|
12548
|
-
date_from
|
|
12549
|
-
date_to
|
|
13912
|
+
date_from?: string | undefined;
|
|
13913
|
+
date_to?: string | undefined;
|
|
12550
13914
|
folder_id?: string | undefined;
|
|
13915
|
+
updated_after?: string | undefined;
|
|
12551
13916
|
unposted_allowed: "true" | "false";
|
|
12552
13917
|
journal_id: string;
|
|
12553
13918
|
partner_id?: string | undefined;
|
|
@@ -12582,9 +13947,9 @@ export declare class API {
|
|
|
12582
13947
|
}[];
|
|
12583
13948
|
}[]>;
|
|
12584
13949
|
getPaymentsByInvoiceId(invoice_id: string, params?: {
|
|
12585
|
-
folder_id?: string | undefined;
|
|
12586
13950
|
page?: number | undefined;
|
|
12587
13951
|
size?: number | undefined;
|
|
13952
|
+
folder_id?: string | undefined;
|
|
12588
13953
|
} | undefined): import("../types/api").RequestData<{
|
|
12589
13954
|
id: string;
|
|
12590
13955
|
name: string;
|
|
@@ -12708,8 +14073,8 @@ export declare class API {
|
|
|
12708
14073
|
attachPDF(invoice_id: string, attachment: {
|
|
12709
14074
|
base64_string: string;
|
|
12710
14075
|
}, params?: {
|
|
12711
|
-
overwrite_existing?: "true" | "false" | undefined;
|
|
12712
14076
|
folder_id?: string | undefined;
|
|
14077
|
+
overwrite_existing?: "true" | "false" | undefined;
|
|
12713
14078
|
} | undefined): import("../types/api").RequestData<{
|
|
12714
14079
|
headers: {
|
|
12715
14080
|
[name: string]: unknown;
|
|
@@ -12726,8 +14091,8 @@ export declare class API {
|
|
|
12726
14091
|
base64_string: string;
|
|
12727
14092
|
}[]>;
|
|
12728
14093
|
getChartOfAccounts(params?: {
|
|
12729
|
-
classes?: string | undefined;
|
|
12730
14094
|
folder_id?: string | undefined;
|
|
14095
|
+
classes?: string | undefined;
|
|
12731
14096
|
} | undefined): import("../types/api").RequestData<{
|
|
12732
14097
|
number: string;
|
|
12733
14098
|
name: string;
|
|
@@ -12783,8 +14148,18 @@ export declare class API {
|
|
|
12783
14148
|
partner_id: string;
|
|
12784
14149
|
account_number: string;
|
|
12785
14150
|
reference?: string | undefined;
|
|
14151
|
+
matching_numbers: string[];
|
|
12786
14152
|
payment_communication?: string | undefined;
|
|
12787
14153
|
posted: boolean;
|
|
14154
|
+
original_document?: {
|
|
14155
|
+
id?: string | undefined;
|
|
14156
|
+
number?: string | undefined;
|
|
14157
|
+
journal_id?: string | undefined;
|
|
14158
|
+
journal_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown" | undefined;
|
|
14159
|
+
date?: string | undefined;
|
|
14160
|
+
due_date?: string | undefined;
|
|
14161
|
+
reference?: string | undefined;
|
|
14162
|
+
} | undefined;
|
|
12788
14163
|
}[]>;
|
|
12789
14164
|
createFinancialEntryOld(financial_entry: {
|
|
12790
14165
|
date: string;
|
|
@@ -12802,8 +14177,8 @@ export declare class API {
|
|
|
12802
14177
|
}[];
|
|
12803
14178
|
pdf?: string | undefined;
|
|
12804
14179
|
}, params?: {
|
|
12805
|
-
financial_counterpart_account?: string | undefined;
|
|
12806
14180
|
folder_id?: string | undefined;
|
|
14181
|
+
financial_counterpart_account?: string | undefined;
|
|
12807
14182
|
} | undefined): import("../types/api").RequestData<{
|
|
12808
14183
|
date: string;
|
|
12809
14184
|
journal_id: string;
|
|
@@ -12836,8 +14211,8 @@ export declare class API {
|
|
|
12836
14211
|
}[];
|
|
12837
14212
|
pdf?: string | undefined;
|
|
12838
14213
|
}, params?: {
|
|
12839
|
-
financial_counterpart_account?: string | undefined;
|
|
12840
14214
|
folder_id?: string | undefined;
|
|
14215
|
+
financial_counterpart_account?: string | undefined;
|
|
12841
14216
|
} | undefined): import("../types/api").RequestData<{
|
|
12842
14217
|
date: string;
|
|
12843
14218
|
journal_id: string;
|
|
@@ -12934,9 +14309,11 @@ export declare class API {
|
|
|
12934
14309
|
}[];
|
|
12935
14310
|
pdf?: string | undefined;
|
|
12936
14311
|
posted: boolean;
|
|
14312
|
+
start_date?: string | undefined;
|
|
14313
|
+
end_date?: string | undefined;
|
|
12937
14314
|
}, params?: {
|
|
12938
|
-
force_currency_exchange?: "true" | "false" | undefined;
|
|
12939
14315
|
folder_id?: string | undefined;
|
|
14316
|
+
force_currency_exchange?: "true" | "false" | undefined;
|
|
12940
14317
|
} | undefined): import("../types/api").RequestData<{
|
|
12941
14318
|
reference?: string | undefined;
|
|
12942
14319
|
due_date?: string | undefined;
|
|
@@ -12976,6 +14353,18 @@ export declare class API {
|
|
|
12976
14353
|
matching_number: string;
|
|
12977
14354
|
balance: number;
|
|
12978
14355
|
}>;
|
|
14356
|
+
matchEntriesMultiple(body: {
|
|
14357
|
+
matchings: {
|
|
14358
|
+
entries: string[];
|
|
14359
|
+
partner_id: string;
|
|
14360
|
+
}[];
|
|
14361
|
+
}, params?: {
|
|
14362
|
+
folder_id?: string | undefined;
|
|
14363
|
+
} | undefined): import("../types/api").RequestData<{
|
|
14364
|
+
matching_number?: string | undefined;
|
|
14365
|
+
processed: boolean;
|
|
14366
|
+
error_msg?: Record<string, never> | undefined;
|
|
14367
|
+
}[]>;
|
|
12979
14368
|
getFolders(): import("../types/api").RequestData<{
|
|
12980
14369
|
id: string;
|
|
12981
14370
|
name: string;
|
|
@@ -12983,14 +14372,23 @@ export declare class API {
|
|
|
12983
14372
|
vat?: string | undefined;
|
|
12984
14373
|
company_number?: string | undefined;
|
|
12985
14374
|
}[]>;
|
|
14375
|
+
getBookyears(params?: {
|
|
14376
|
+
folder_id?: string | undefined;
|
|
14377
|
+
} | undefined): import("../types/api").RequestData<{
|
|
14378
|
+
name: string;
|
|
14379
|
+
start: string;
|
|
14380
|
+
end: string;
|
|
14381
|
+
closed: boolean;
|
|
14382
|
+
}[]>;
|
|
12986
14383
|
}>;
|
|
12987
14384
|
invoicing: import("../types/api").ApiFor<{
|
|
12988
14385
|
getInvoices(params?: {
|
|
12989
14386
|
date_from?: string | undefined;
|
|
12990
14387
|
date_to?: string | undefined;
|
|
12991
14388
|
payment_status?: "all" | "paid" | "unpaid" | undefined;
|
|
12992
|
-
invoice_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all" | undefined;
|
|
12993
14389
|
updated_after?: string | undefined;
|
|
14390
|
+
invoice_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all" | undefined;
|
|
14391
|
+
include_invoice_lines?: "true" | "false" | undefined;
|
|
12994
14392
|
} | undefined): import("../types/api").RequestData<{
|
|
12995
14393
|
id: string;
|
|
12996
14394
|
source_ref: {
|
|
@@ -12998,7 +14396,7 @@ export declare class API {
|
|
|
12998
14396
|
model?: string | undefined;
|
|
12999
14397
|
};
|
|
13000
14398
|
currency: string;
|
|
13001
|
-
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
14399
|
+
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all";
|
|
13002
14400
|
status: "draft" | "posted" | "cancelled" | "paid";
|
|
13003
14401
|
invoice_date: string;
|
|
13004
14402
|
tax_amount: number;
|
|
@@ -13015,6 +14413,7 @@ export declare class API {
|
|
|
13015
14413
|
tax_rate?: number | undefined;
|
|
13016
14414
|
account_number?: string | undefined;
|
|
13017
14415
|
tax_id?: string | undefined;
|
|
14416
|
+
tax_exemption_reason?: string | undefined;
|
|
13018
14417
|
unit_of_measure?: string | undefined;
|
|
13019
14418
|
product_id?: string | undefined;
|
|
13020
14419
|
product_code?: string | undefined;
|
|
@@ -13031,8 +14430,29 @@ export declare class API {
|
|
|
13031
14430
|
model?: string | undefined;
|
|
13032
14431
|
name?: string | undefined;
|
|
13033
14432
|
} | undefined;
|
|
14433
|
+
italian_specificities?: {
|
|
14434
|
+
stamp_duty_amount?: number | undefined;
|
|
14435
|
+
withholding_tax?: {
|
|
14436
|
+
rate: number;
|
|
14437
|
+
amount: number;
|
|
14438
|
+
reason?: "RT01" | "RT02" | "RT03" | "RT04" | "RT05" | "RT06" | undefined;
|
|
14439
|
+
payment_reason?: "A" | "U" | "R" | "Q" | "H" | "V" | "V2" | "I" | "J" | "K" | "P" | "S" | "T" | "W" | "X" | "Y" | "B" | "C" | "D" | "E" | "F" | "G" | "L" | "L1" | "M" | "M1" | "M2" | "IN" | "O" | "O1" | "V1" | undefined;
|
|
14440
|
+
} | undefined;
|
|
14441
|
+
welfare_fund?: {
|
|
14442
|
+
rate: number;
|
|
14443
|
+
amount: number;
|
|
14444
|
+
type?: "TC01" | "TC02" | "TC03" | "TC04" | "TC05" | "TC06" | "TC07" | "TC08" | "TC09" | "TC10" | "TC11" | "TC12" | "TC13" | "TC14" | "TC15" | "TC16" | "TC17" | "TC18" | "TC19" | "TC20" | "TC21" | "TC22" | undefined;
|
|
14445
|
+
} | undefined;
|
|
14446
|
+
payment_reporting?: {
|
|
14447
|
+
method?: "MP01" | "MP02" | "MP03" | "MP04" | "MP05" | "MP06" | "MP07" | "MP08" | "MP09" | "MP10" | "MP11" | "MP12" | "MP13" | "MP14" | "MP15" | "MP16" | "MP17" | "MP18" | "MP19" | "MP20" | "MP21" | "MP22" | "MP23" | undefined;
|
|
14448
|
+
conditions?: "TP01" | "TP02" | "TP03" | undefined;
|
|
14449
|
+
} | undefined;
|
|
14450
|
+
} | undefined;
|
|
13034
14451
|
last_updated_on?: string | undefined;
|
|
13035
14452
|
outstanding_amount?: number | undefined;
|
|
14453
|
+
accounting_date?: string | undefined;
|
|
14454
|
+
payment_method_id?: string | undefined;
|
|
14455
|
+
currency_exchange_rate: number;
|
|
13036
14456
|
}[]>;
|
|
13037
14457
|
getInvoiceById(invoiceId: string, params?: {
|
|
13038
14458
|
include_pdf?: "true" | "false" | undefined;
|
|
@@ -13043,7 +14463,7 @@ export declare class API {
|
|
|
13043
14463
|
model?: string | undefined;
|
|
13044
14464
|
};
|
|
13045
14465
|
currency: string;
|
|
13046
|
-
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
14466
|
+
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all";
|
|
13047
14467
|
status: "draft" | "posted" | "cancelled" | "paid";
|
|
13048
14468
|
invoice_date: string;
|
|
13049
14469
|
tax_amount: number;
|
|
@@ -13060,6 +14480,7 @@ export declare class API {
|
|
|
13060
14480
|
tax_rate?: number | undefined;
|
|
13061
14481
|
account_number?: string | undefined;
|
|
13062
14482
|
tax_id?: string | undefined;
|
|
14483
|
+
tax_exemption_reason?: string | undefined;
|
|
13063
14484
|
unit_of_measure?: string | undefined;
|
|
13064
14485
|
product_id?: string | undefined;
|
|
13065
14486
|
product_code?: string | undefined;
|
|
@@ -13076,12 +14497,33 @@ export declare class API {
|
|
|
13076
14497
|
model?: string | undefined;
|
|
13077
14498
|
name?: string | undefined;
|
|
13078
14499
|
} | undefined;
|
|
14500
|
+
italian_specificities?: {
|
|
14501
|
+
stamp_duty_amount?: number | undefined;
|
|
14502
|
+
withholding_tax?: {
|
|
14503
|
+
rate: number;
|
|
14504
|
+
amount: number;
|
|
14505
|
+
reason?: "RT01" | "RT02" | "RT03" | "RT04" | "RT05" | "RT06" | undefined;
|
|
14506
|
+
payment_reason?: "A" | "U" | "R" | "Q" | "H" | "V" | "V2" | "I" | "J" | "K" | "P" | "S" | "T" | "W" | "X" | "Y" | "B" | "C" | "D" | "E" | "F" | "G" | "L" | "L1" | "M" | "M1" | "M2" | "IN" | "O" | "O1" | "V1" | undefined;
|
|
14507
|
+
} | undefined;
|
|
14508
|
+
welfare_fund?: {
|
|
14509
|
+
rate: number;
|
|
14510
|
+
amount: number;
|
|
14511
|
+
type?: "TC01" | "TC02" | "TC03" | "TC04" | "TC05" | "TC06" | "TC07" | "TC08" | "TC09" | "TC10" | "TC11" | "TC12" | "TC13" | "TC14" | "TC15" | "TC16" | "TC17" | "TC18" | "TC19" | "TC20" | "TC21" | "TC22" | undefined;
|
|
14512
|
+
} | undefined;
|
|
14513
|
+
payment_reporting?: {
|
|
14514
|
+
method?: "MP01" | "MP02" | "MP03" | "MP04" | "MP05" | "MP06" | "MP07" | "MP08" | "MP09" | "MP10" | "MP11" | "MP12" | "MP13" | "MP14" | "MP15" | "MP16" | "MP17" | "MP18" | "MP19" | "MP20" | "MP21" | "MP22" | "MP23" | undefined;
|
|
14515
|
+
conditions?: "TP01" | "TP02" | "TP03" | undefined;
|
|
14516
|
+
} | undefined;
|
|
14517
|
+
} | undefined;
|
|
13079
14518
|
last_updated_on?: string | undefined;
|
|
13080
14519
|
outstanding_amount?: number | undefined;
|
|
14520
|
+
accounting_date?: string | undefined;
|
|
14521
|
+
payment_method_id?: string | undefined;
|
|
14522
|
+
currency_exchange_rate: number;
|
|
13081
14523
|
}>;
|
|
13082
14524
|
createInvoice(invoice: {
|
|
13083
14525
|
currency: string;
|
|
13084
|
-
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
14526
|
+
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all";
|
|
13085
14527
|
status: "draft" | "posted" | "cancelled" | "paid";
|
|
13086
14528
|
invoice_date: string;
|
|
13087
14529
|
tax_amount: number;
|
|
@@ -13098,6 +14540,7 @@ export declare class API {
|
|
|
13098
14540
|
tax_rate?: number | undefined;
|
|
13099
14541
|
account_number?: string | undefined;
|
|
13100
14542
|
tax_id?: string | undefined;
|
|
14543
|
+
tax_exemption_reason?: string | undefined;
|
|
13101
14544
|
unit_of_measure?: string | undefined;
|
|
13102
14545
|
product_id?: string | undefined;
|
|
13103
14546
|
product_code?: string | undefined;
|
|
@@ -13114,6 +14557,24 @@ export declare class API {
|
|
|
13114
14557
|
model?: string | undefined;
|
|
13115
14558
|
name?: string | undefined;
|
|
13116
14559
|
} | undefined;
|
|
14560
|
+
italian_specificities?: {
|
|
14561
|
+
stamp_duty_amount?: number | undefined;
|
|
14562
|
+
withholding_tax?: {
|
|
14563
|
+
rate: number;
|
|
14564
|
+
amount: number;
|
|
14565
|
+
reason?: "RT01" | "RT02" | "RT03" | "RT04" | "RT05" | "RT06" | undefined;
|
|
14566
|
+
payment_reason?: "A" | "U" | "R" | "Q" | "H" | "V" | "V2" | "I" | "J" | "K" | "P" | "S" | "T" | "W" | "X" | "Y" | "B" | "C" | "D" | "E" | "F" | "G" | "L" | "L1" | "M" | "M1" | "M2" | "IN" | "O" | "O1" | "V1" | undefined;
|
|
14567
|
+
} | undefined;
|
|
14568
|
+
welfare_fund?: {
|
|
14569
|
+
rate: number;
|
|
14570
|
+
amount: number;
|
|
14571
|
+
type?: "TC01" | "TC02" | "TC03" | "TC04" | "TC05" | "TC06" | "TC07" | "TC08" | "TC09" | "TC10" | "TC11" | "TC12" | "TC13" | "TC14" | "TC15" | "TC16" | "TC17" | "TC18" | "TC19" | "TC20" | "TC21" | "TC22" | undefined;
|
|
14572
|
+
} | undefined;
|
|
14573
|
+
payment_reporting?: {
|
|
14574
|
+
method?: "MP01" | "MP02" | "MP03" | "MP04" | "MP05" | "MP06" | "MP07" | "MP08" | "MP09" | "MP10" | "MP11" | "MP12" | "MP13" | "MP14" | "MP15" | "MP16" | "MP17" | "MP18" | "MP19" | "MP20" | "MP21" | "MP22" | "MP23" | undefined;
|
|
14575
|
+
conditions?: "TP01" | "TP02" | "TP03" | undefined;
|
|
14576
|
+
} | undefined;
|
|
14577
|
+
} | undefined;
|
|
13117
14578
|
}): import("../types/api").RequestData<{
|
|
13118
14579
|
id: string;
|
|
13119
14580
|
source_ref: {
|
|
@@ -13121,7 +14582,7 @@ export declare class API {
|
|
|
13121
14582
|
model?: string | undefined;
|
|
13122
14583
|
};
|
|
13123
14584
|
currency: string;
|
|
13124
|
-
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
14585
|
+
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all";
|
|
13125
14586
|
status: "draft" | "posted" | "cancelled" | "paid";
|
|
13126
14587
|
invoice_date: string;
|
|
13127
14588
|
tax_amount: number;
|
|
@@ -13138,6 +14599,7 @@ export declare class API {
|
|
|
13138
14599
|
tax_rate?: number | undefined;
|
|
13139
14600
|
account_number?: string | undefined;
|
|
13140
14601
|
tax_id?: string | undefined;
|
|
14602
|
+
tax_exemption_reason?: string | undefined;
|
|
13141
14603
|
unit_of_measure?: string | undefined;
|
|
13142
14604
|
product_id?: string | undefined;
|
|
13143
14605
|
product_code?: string | undefined;
|
|
@@ -13154,8 +14616,29 @@ export declare class API {
|
|
|
13154
14616
|
model?: string | undefined;
|
|
13155
14617
|
name?: string | undefined;
|
|
13156
14618
|
} | undefined;
|
|
14619
|
+
italian_specificities?: {
|
|
14620
|
+
stamp_duty_amount?: number | undefined;
|
|
14621
|
+
withholding_tax?: {
|
|
14622
|
+
rate: number;
|
|
14623
|
+
amount: number;
|
|
14624
|
+
reason?: "RT01" | "RT02" | "RT03" | "RT04" | "RT05" | "RT06" | undefined;
|
|
14625
|
+
payment_reason?: "A" | "U" | "R" | "Q" | "H" | "V" | "V2" | "I" | "J" | "K" | "P" | "S" | "T" | "W" | "X" | "Y" | "B" | "C" | "D" | "E" | "F" | "G" | "L" | "L1" | "M" | "M1" | "M2" | "IN" | "O" | "O1" | "V1" | undefined;
|
|
14626
|
+
} | undefined;
|
|
14627
|
+
welfare_fund?: {
|
|
14628
|
+
rate: number;
|
|
14629
|
+
amount: number;
|
|
14630
|
+
type?: "TC01" | "TC02" | "TC03" | "TC04" | "TC05" | "TC06" | "TC07" | "TC08" | "TC09" | "TC10" | "TC11" | "TC12" | "TC13" | "TC14" | "TC15" | "TC16" | "TC17" | "TC18" | "TC19" | "TC20" | "TC21" | "TC22" | undefined;
|
|
14631
|
+
} | undefined;
|
|
14632
|
+
payment_reporting?: {
|
|
14633
|
+
method?: "MP01" | "MP02" | "MP03" | "MP04" | "MP05" | "MP06" | "MP07" | "MP08" | "MP09" | "MP10" | "MP11" | "MP12" | "MP13" | "MP14" | "MP15" | "MP16" | "MP17" | "MP18" | "MP19" | "MP20" | "MP21" | "MP22" | "MP23" | undefined;
|
|
14634
|
+
conditions?: "TP01" | "TP02" | "TP03" | undefined;
|
|
14635
|
+
} | undefined;
|
|
14636
|
+
} | undefined;
|
|
13157
14637
|
last_updated_on?: string | undefined;
|
|
13158
14638
|
outstanding_amount?: number | undefined;
|
|
14639
|
+
accounting_date?: string | undefined;
|
|
14640
|
+
payment_method_id?: string | undefined;
|
|
14641
|
+
currency_exchange_rate: number;
|
|
13159
14642
|
}>;
|
|
13160
14643
|
getProducts(): import("../types/api").RequestData<{
|
|
13161
14644
|
id: string;
|
|
@@ -13452,6 +14935,31 @@ export declare class API {
|
|
|
13452
14935
|
}[];
|
|
13453
14936
|
external_reference?: string | undefined;
|
|
13454
14937
|
}>;
|
|
14938
|
+
getPayments(): import("../types/api").RequestData<{
|
|
14939
|
+
id: string;
|
|
14940
|
+
source_ref: {
|
|
14941
|
+
id?: string | undefined;
|
|
14942
|
+
model?: string | undefined;
|
|
14943
|
+
};
|
|
14944
|
+
status: "unknown" | "pending" | "completed" | "canceled" | "failed" | "authorized";
|
|
14945
|
+
description: string;
|
|
14946
|
+
amount: number;
|
|
14947
|
+
currency: string;
|
|
14948
|
+
payment_date: string;
|
|
14949
|
+
partner_id: string;
|
|
14950
|
+
payment_method_id?: string | undefined;
|
|
14951
|
+
payment_method_name?: string | undefined;
|
|
14952
|
+
invoice_id?: string | undefined;
|
|
14953
|
+
invoice_number?: string | undefined;
|
|
14954
|
+
}[]>;
|
|
14955
|
+
getPaymentMethods(): import("../types/api").RequestData<{
|
|
14956
|
+
id: string;
|
|
14957
|
+
source_ref: {
|
|
14958
|
+
id?: string | undefined;
|
|
14959
|
+
model?: string | undefined;
|
|
14960
|
+
};
|
|
14961
|
+
name: string;
|
|
14962
|
+
}[]>;
|
|
13455
14963
|
}>;
|
|
13456
14964
|
ecommerce: import("../types/api").ApiFor<{
|
|
13457
14965
|
getCustomers(): import("../types/api").RequestData<{
|
|
@@ -13777,6 +15285,7 @@ export declare class API {
|
|
|
13777
15285
|
refunded_amount: number;
|
|
13778
15286
|
currency: string;
|
|
13779
15287
|
note?: string | undefined;
|
|
15288
|
+
tags: string[];
|
|
13780
15289
|
lines: {
|
|
13781
15290
|
id: string;
|
|
13782
15291
|
source_ref: {
|
|
@@ -14053,6 +15562,7 @@ export declare class API {
|
|
|
14053
15562
|
refunded_amount: number;
|
|
14054
15563
|
currency: string;
|
|
14055
15564
|
note?: string | undefined;
|
|
15565
|
+
tags: string[];
|
|
14056
15566
|
lines: {
|
|
14057
15567
|
id: string;
|
|
14058
15568
|
source_ref: {
|
|
@@ -14288,6 +15798,7 @@ export declare class API {
|
|
|
14288
15798
|
refunded_amount: number;
|
|
14289
15799
|
currency: string;
|
|
14290
15800
|
note?: string | undefined;
|
|
15801
|
+
tags: string[];
|
|
14291
15802
|
lines: {
|
|
14292
15803
|
id: string;
|
|
14293
15804
|
source_ref: {
|
|
@@ -14588,10 +16099,57 @@ export declare class API {
|
|
|
14588
16099
|
logData: (logs: import("../types/consumers").ConsumerLog[]) => Promise<import("../types/sync").SimpleResponseModel>;
|
|
14589
16100
|
setConnectionId: (connectionId: string) => Promise<void>;
|
|
14590
16101
|
setIntegrationId: (integrationId: string) => Promise<void>;
|
|
16102
|
+
updateConsumer: (body: {
|
|
16103
|
+
name?: string | undefined;
|
|
16104
|
+
email?: string | undefined;
|
|
16105
|
+
internal_reference?: string | undefined;
|
|
16106
|
+
redirect_url?: string | undefined;
|
|
16107
|
+
}) => Promise<{
|
|
16108
|
+
consumerid: string;
|
|
16109
|
+
name: string;
|
|
16110
|
+
email?: string | undefined;
|
|
16111
|
+
internal_reference?: string | undefined;
|
|
16112
|
+
redirect_url?: string | undefined;
|
|
16113
|
+
}>;
|
|
16114
|
+
updateFlowConfig: (syncId: string, flowId: string, body: {
|
|
16115
|
+
triggerid: string;
|
|
16116
|
+
data: Record<string, never>;
|
|
16117
|
+
}) => Promise<{
|
|
16118
|
+
name: string;
|
|
16119
|
+
description?: string | undefined;
|
|
16120
|
+
id: string;
|
|
16121
|
+
config?: {
|
|
16122
|
+
definitionFields?: Record<string, never>[] | undefined;
|
|
16123
|
+
doorkeyFields?: Record<string, never>[] | undefined;
|
|
16124
|
+
customFields?: Record<string, never>[] | undefined;
|
|
16125
|
+
datastores: {
|
|
16126
|
+
id?: string | undefined;
|
|
16127
|
+
name: string;
|
|
16128
|
+
status: "active" | "inactive";
|
|
16129
|
+
definition: {
|
|
16130
|
+
columns: {
|
|
16131
|
+
name: string;
|
|
16132
|
+
title: string;
|
|
16133
|
+
type: string;
|
|
16134
|
+
optional: boolean;
|
|
16135
|
+
}[];
|
|
16136
|
+
search_column?: string | undefined;
|
|
16137
|
+
};
|
|
16138
|
+
}[];
|
|
16139
|
+
} | undefined;
|
|
16140
|
+
values: Record<string, never>;
|
|
16141
|
+
enabled_on?: string | undefined;
|
|
16142
|
+
trigger: {
|
|
16143
|
+
id: string;
|
|
16144
|
+
type: "event" | "timer";
|
|
16145
|
+
cronschedule?: string | undefined;
|
|
16146
|
+
};
|
|
16147
|
+
}>;
|
|
14591
16148
|
}[]>;
|
|
14592
16149
|
updateConsumerById: (consumerId: string, body: {
|
|
14593
16150
|
name?: string | undefined;
|
|
14594
16151
|
email?: string | undefined;
|
|
16152
|
+
internal_reference?: string | undefined;
|
|
14595
16153
|
redirect_url?: string | undefined;
|
|
14596
16154
|
}) => Promise<{
|
|
14597
16155
|
consumerId: string;
|
|
@@ -14706,6 +16264,8 @@ export declare class API {
|
|
|
14706
16264
|
}[];
|
|
14707
16265
|
items: {
|
|
14708
16266
|
id: string;
|
|
16267
|
+
type?: "menu" | "product" | undefined;
|
|
16268
|
+
menu_id?: string | undefined;
|
|
14709
16269
|
quantity: number;
|
|
14710
16270
|
unit_price: number;
|
|
14711
16271
|
total: number;
|
|
@@ -14715,6 +16275,7 @@ export declare class API {
|
|
|
14715
16275
|
discounts: {
|
|
14716
16276
|
name?: string | undefined;
|
|
14717
16277
|
total: number;
|
|
16278
|
+
type: "OFFERED" | "UNKNOWN" | "LOSS";
|
|
14718
16279
|
}[];
|
|
14719
16280
|
product_id?: string | undefined;
|
|
14720
16281
|
accounting_category_id?: string | undefined;
|
|
@@ -14781,6 +16342,8 @@ export declare class API {
|
|
|
14781
16342
|
}[];
|
|
14782
16343
|
items: {
|
|
14783
16344
|
id: string;
|
|
16345
|
+
type?: "menu" | "product" | undefined;
|
|
16346
|
+
menu_id?: string | undefined;
|
|
14784
16347
|
quantity: number;
|
|
14785
16348
|
unit_price: number;
|
|
14786
16349
|
total: number;
|
|
@@ -14790,6 +16353,7 @@ export declare class API {
|
|
|
14790
16353
|
discounts: {
|
|
14791
16354
|
name?: string | undefined;
|
|
14792
16355
|
total: number;
|
|
16356
|
+
type: "OFFERED" | "UNKNOWN" | "LOSS";
|
|
14793
16357
|
}[];
|
|
14794
16358
|
product_id?: string | undefined;
|
|
14795
16359
|
accounting_category_id?: string | undefined;
|
|
@@ -14953,6 +16517,8 @@ export declare class API {
|
|
|
14953
16517
|
}[];
|
|
14954
16518
|
items: {
|
|
14955
16519
|
id: string;
|
|
16520
|
+
type?: "menu" | "product" | undefined;
|
|
16521
|
+
menu_id?: string | undefined;
|
|
14956
16522
|
quantity: number;
|
|
14957
16523
|
unit_price: number;
|
|
14958
16524
|
total: number;
|
|
@@ -14962,6 +16528,7 @@ export declare class API {
|
|
|
14962
16528
|
discounts: {
|
|
14963
16529
|
name?: string | undefined;
|
|
14964
16530
|
total: number;
|
|
16531
|
+
type: "OFFERED" | "UNKNOWN" | "LOSS";
|
|
14965
16532
|
}[];
|
|
14966
16533
|
product_id?: string | undefined;
|
|
14967
16534
|
accounting_category_id?: string | undefined;
|
|
@@ -14972,7 +16539,6 @@ export declare class API {
|
|
|
14972
16539
|
} | undefined): import("../types/api").RequestData<{
|
|
14973
16540
|
id: string;
|
|
14974
16541
|
name: string;
|
|
14975
|
-
id_parent?: string | undefined;
|
|
14976
16542
|
code?: string | undefined;
|
|
14977
16543
|
ledger_account_code?: string | undefined;
|
|
14978
16544
|
posting_account_code?: string | undefined;
|
|
@@ -15033,6 +16599,8 @@ export declare class API {
|
|
|
15033
16599
|
id?: string | undefined;
|
|
15034
16600
|
model?: string | undefined;
|
|
15035
16601
|
};
|
|
16602
|
+
type?: "menu" | "product" | undefined;
|
|
16603
|
+
menu_id?: string | undefined;
|
|
15036
16604
|
quantity: number;
|
|
15037
16605
|
unit_price: number;
|
|
15038
16606
|
total: number;
|
|
@@ -15042,11 +16610,62 @@ export declare class API {
|
|
|
15042
16610
|
discounts: {
|
|
15043
16611
|
name?: string | undefined;
|
|
15044
16612
|
total: number;
|
|
16613
|
+
type: "OFFERED" | "UNKNOWN" | "LOSS";
|
|
15045
16614
|
}[];
|
|
15046
16615
|
product_id?: string | undefined;
|
|
15047
16616
|
accounting_category_id?: string | undefined;
|
|
15048
16617
|
}[];
|
|
15049
16618
|
service_id?: string | undefined;
|
|
16619
|
+
reservation?: {
|
|
16620
|
+
id: string;
|
|
16621
|
+
source_ref: {
|
|
16622
|
+
id?: string | undefined;
|
|
16623
|
+
model?: string | undefined;
|
|
16624
|
+
};
|
|
16625
|
+
start_date?: string | undefined;
|
|
16626
|
+
end_date?: string | undefined;
|
|
16627
|
+
creation_date?: string | undefined;
|
|
16628
|
+
resource_id?: {
|
|
16629
|
+
id: string;
|
|
16630
|
+
source_ref: {
|
|
16631
|
+
id?: string | undefined;
|
|
16632
|
+
model?: string | undefined;
|
|
16633
|
+
};
|
|
16634
|
+
} | undefined;
|
|
16635
|
+
resource_name?: string | undefined;
|
|
16636
|
+
resource_identifier?: string | undefined;
|
|
16637
|
+
} | undefined;
|
|
16638
|
+
bills?: {
|
|
16639
|
+
id: string;
|
|
16640
|
+
source_ref: {
|
|
16641
|
+
id?: string | undefined;
|
|
16642
|
+
model?: string | undefined;
|
|
16643
|
+
};
|
|
16644
|
+
invoice_number?: string | undefined;
|
|
16645
|
+
creation_date?: string | undefined;
|
|
16646
|
+
closing_date?: string | undefined;
|
|
16647
|
+
partners?: {
|
|
16648
|
+
id: string;
|
|
16649
|
+
source_ref: {
|
|
16650
|
+
id?: string | undefined;
|
|
16651
|
+
model?: string | undefined;
|
|
16652
|
+
};
|
|
16653
|
+
type: "owner" | "account";
|
|
16654
|
+
address?: {
|
|
16655
|
+
address_type?: string | undefined;
|
|
16656
|
+
name?: string | undefined;
|
|
16657
|
+
street?: string | undefined;
|
|
16658
|
+
number?: string | undefined;
|
|
16659
|
+
box?: string | undefined;
|
|
16660
|
+
city?: string | undefined;
|
|
16661
|
+
postal_code?: string | undefined;
|
|
16662
|
+
country?: string | undefined;
|
|
16663
|
+
} | undefined;
|
|
16664
|
+
first_name?: string | undefined;
|
|
16665
|
+
last_name?: string | undefined;
|
|
16666
|
+
company_name?: string | undefined;
|
|
16667
|
+
}[] | undefined;
|
|
16668
|
+
}[] | undefined;
|
|
15050
16669
|
}[]>;
|
|
15051
16670
|
getPaymentMethods(params?: {
|
|
15052
16671
|
location_id?: string | undefined;
|
|
@@ -15082,6 +16701,13 @@ export declare class API {
|
|
|
15082
16701
|
status: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised";
|
|
15083
16702
|
currency?: string | undefined;
|
|
15084
16703
|
date?: string | undefined;
|
|
16704
|
+
partner_id?: {
|
|
16705
|
+
id: string;
|
|
16706
|
+
source_ref: {
|
|
16707
|
+
id?: string | undefined;
|
|
16708
|
+
model?: string | undefined;
|
|
16709
|
+
};
|
|
16710
|
+
} | undefined;
|
|
15085
16711
|
}[]>;
|
|
15086
16712
|
getAccountingCategories(params?: {} | undefined): import("../types/api").RequestData<{
|
|
15087
16713
|
id: string;
|
|
@@ -15090,11 +16716,132 @@ export declare class API {
|
|
|
15090
16716
|
model?: string | undefined;
|
|
15091
16717
|
};
|
|
15092
16718
|
name: string;
|
|
15093
|
-
id_parent?: string | undefined;
|
|
15094
16719
|
code?: string | undefined;
|
|
15095
16720
|
ledger_account_code?: string | undefined;
|
|
15096
16721
|
posting_account_code?: string | undefined;
|
|
15097
16722
|
}[]>;
|
|
16723
|
+
getCustomers(params?: {} | undefined): import("../types/api").RequestData<{
|
|
16724
|
+
id: string;
|
|
16725
|
+
source_ref: {
|
|
16726
|
+
id?: string | undefined;
|
|
16727
|
+
model?: string | undefined;
|
|
16728
|
+
};
|
|
16729
|
+
first_name?: string | undefined;
|
|
16730
|
+
last_name?: string | undefined;
|
|
16731
|
+
company_name?: string | undefined;
|
|
16732
|
+
phone?: string | undefined;
|
|
16733
|
+
email?: string | undefined;
|
|
16734
|
+
account_number?: string | undefined;
|
|
16735
|
+
created_on?: string | undefined;
|
|
16736
|
+
addresses?: {
|
|
16737
|
+
address_type?: string | undefined;
|
|
16738
|
+
name?: string | undefined;
|
|
16739
|
+
street?: string | undefined;
|
|
16740
|
+
number?: string | undefined;
|
|
16741
|
+
box?: string | undefined;
|
|
16742
|
+
city?: string | undefined;
|
|
16743
|
+
postal_code?: string | undefined;
|
|
16744
|
+
country?: string | undefined;
|
|
16745
|
+
}[] | undefined;
|
|
16746
|
+
}[]>;
|
|
16747
|
+
getInvoices(params?: {
|
|
16748
|
+
date_from: string;
|
|
16749
|
+
date_to: string;
|
|
16750
|
+
location_id?: string | undefined;
|
|
16751
|
+
} | undefined): import("../types/api").RequestData<{
|
|
16752
|
+
id: string;
|
|
16753
|
+
source_ref: {
|
|
16754
|
+
id?: string | undefined;
|
|
16755
|
+
model?: string | undefined;
|
|
16756
|
+
};
|
|
16757
|
+
invoice_number?: string | undefined;
|
|
16758
|
+
creation_date?: string | undefined;
|
|
16759
|
+
closing_date?: string | undefined;
|
|
16760
|
+
partners?: {
|
|
16761
|
+
id: string;
|
|
16762
|
+
source_ref: {
|
|
16763
|
+
id?: string | undefined;
|
|
16764
|
+
model?: string | undefined;
|
|
16765
|
+
};
|
|
16766
|
+
type: "owner" | "account";
|
|
16767
|
+
address?: {
|
|
16768
|
+
address_type?: string | undefined;
|
|
16769
|
+
name?: string | undefined;
|
|
16770
|
+
street?: string | undefined;
|
|
16771
|
+
number?: string | undefined;
|
|
16772
|
+
box?: string | undefined;
|
|
16773
|
+
city?: string | undefined;
|
|
16774
|
+
postal_code?: string | undefined;
|
|
16775
|
+
country?: string | undefined;
|
|
16776
|
+
} | undefined;
|
|
16777
|
+
first_name?: string | undefined;
|
|
16778
|
+
last_name?: string | undefined;
|
|
16779
|
+
company_name?: string | undefined;
|
|
16780
|
+
}[] | undefined;
|
|
16781
|
+
items: {
|
|
16782
|
+
id: string;
|
|
16783
|
+
source_ref: {
|
|
16784
|
+
id?: string | undefined;
|
|
16785
|
+
model?: string | undefined;
|
|
16786
|
+
};
|
|
16787
|
+
type?: "menu" | "product" | undefined;
|
|
16788
|
+
menu_id?: string | undefined;
|
|
16789
|
+
quantity: number;
|
|
16790
|
+
unit_price: number;
|
|
16791
|
+
total: number;
|
|
16792
|
+
tax_amount: number;
|
|
16793
|
+
tax_rate?: number | undefined;
|
|
16794
|
+
description?: string | undefined;
|
|
16795
|
+
discounts: {
|
|
16796
|
+
name?: string | undefined;
|
|
16797
|
+
total: number;
|
|
16798
|
+
type: "OFFERED" | "UNKNOWN" | "LOSS";
|
|
16799
|
+
}[];
|
|
16800
|
+
product_id?: string | undefined;
|
|
16801
|
+
accounting_category_id?: string | undefined;
|
|
16802
|
+
}[];
|
|
16803
|
+
payments: {
|
|
16804
|
+
id?: string | undefined;
|
|
16805
|
+
source_ref: {
|
|
16806
|
+
id?: string | undefined;
|
|
16807
|
+
model?: string | undefined;
|
|
16808
|
+
};
|
|
16809
|
+
payment_method_id?: string | undefined;
|
|
16810
|
+
payment_method_name?: string | undefined;
|
|
16811
|
+
total: number;
|
|
16812
|
+
tip: number;
|
|
16813
|
+
status: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised";
|
|
16814
|
+
currency?: string | undefined;
|
|
16815
|
+
date?: string | undefined;
|
|
16816
|
+
partner_id?: {
|
|
16817
|
+
id: string;
|
|
16818
|
+
source_ref: {
|
|
16819
|
+
id?: string | undefined;
|
|
16820
|
+
model?: string | undefined;
|
|
16821
|
+
};
|
|
16822
|
+
} | undefined;
|
|
16823
|
+
}[];
|
|
16824
|
+
service_id?: string | undefined;
|
|
16825
|
+
reservation?: {
|
|
16826
|
+
id: string;
|
|
16827
|
+
source_ref: {
|
|
16828
|
+
id?: string | undefined;
|
|
16829
|
+
model?: string | undefined;
|
|
16830
|
+
};
|
|
16831
|
+
start_date?: string | undefined;
|
|
16832
|
+
end_date?: string | undefined;
|
|
16833
|
+
creation_date?: string | undefined;
|
|
16834
|
+
resource_id?: {
|
|
16835
|
+
id: string;
|
|
16836
|
+
source_ref: {
|
|
16837
|
+
id?: string | undefined;
|
|
16838
|
+
model?: string | undefined;
|
|
16839
|
+
};
|
|
16840
|
+
} | undefined;
|
|
16841
|
+
resource_name?: string | undefined;
|
|
16842
|
+
resource_identifier?: string | undefined;
|
|
16843
|
+
} | undefined;
|
|
16844
|
+
}[]>;
|
|
15098
16845
|
}>;
|
|
15099
16846
|
payment: import("../types/api").ApiFor<{
|
|
15100
16847
|
getPayments(params: {
|
|
@@ -15146,8 +16893,8 @@ export declare class API {
|
|
|
15146
16893
|
payment_id?: string | undefined;
|
|
15147
16894
|
}[]>;
|
|
15148
16895
|
getPayment(params: {
|
|
15149
|
-
payment_id: string;
|
|
15150
16896
|
consumer_id: string;
|
|
16897
|
+
payment_id: string;
|
|
15151
16898
|
}): import("../types/api").RequestData<{
|
|
15152
16899
|
id: string;
|
|
15153
16900
|
source_ref: {
|
|
@@ -15188,7 +16935,9 @@ export declare class API {
|
|
|
15188
16935
|
active: boolean;
|
|
15189
16936
|
}[]>;
|
|
15190
16937
|
getClients(params?: {
|
|
16938
|
+
search?: string | undefined;
|
|
15191
16939
|
folder_id?: string | undefined;
|
|
16940
|
+
updated_after?: string | undefined;
|
|
15192
16941
|
} | undefined): import("../types/api").RequestData<{
|
|
15193
16942
|
external_reference?: string | undefined;
|
|
15194
16943
|
first_name?: string | undefined;
|
|
@@ -15259,8 +17008,8 @@ export declare class API {
|
|
|
15259
17008
|
}[];
|
|
15260
17009
|
account_number?: string | undefined;
|
|
15261
17010
|
}, params?: {
|
|
15262
|
-
force_merge?: string | undefined;
|
|
15263
17011
|
folder_id?: string | undefined;
|
|
17012
|
+
force_merge?: string | undefined;
|
|
15264
17013
|
} | undefined): import("../types/api").RequestData<{
|
|
15265
17014
|
external_reference?: string | undefined;
|
|
15266
17015
|
first_name?: string | undefined;
|
|
@@ -15406,7 +17155,9 @@ export declare class API {
|
|
|
15406
17155
|
id?: string | undefined;
|
|
15407
17156
|
}>;
|
|
15408
17157
|
getSuppliers(params?: {
|
|
17158
|
+
search?: string | undefined;
|
|
15409
17159
|
folder_id?: string | undefined;
|
|
17160
|
+
updated_after?: string | undefined;
|
|
15410
17161
|
} | undefined): import("../types/api").RequestData<{
|
|
15411
17162
|
external_reference?: string | undefined;
|
|
15412
17163
|
first_name?: string | undefined;
|
|
@@ -15477,8 +17228,8 @@ export declare class API {
|
|
|
15477
17228
|
}[];
|
|
15478
17229
|
account_number?: string | undefined;
|
|
15479
17230
|
}, params?: {
|
|
15480
|
-
force_merge?: string | undefined;
|
|
15481
17231
|
folder_id?: string | undefined;
|
|
17232
|
+
force_merge?: string | undefined;
|
|
15482
17233
|
} | undefined): import("../types/api").RequestData<{
|
|
15483
17234
|
external_reference?: string | undefined;
|
|
15484
17235
|
first_name?: string | undefined;
|
|
@@ -15672,9 +17423,9 @@ export declare class API {
|
|
|
15672
17423
|
analytic_account?: string | undefined;
|
|
15673
17424
|
}[];
|
|
15674
17425
|
}, params?: {
|
|
17426
|
+
folder_id?: string | undefined;
|
|
15675
17427
|
force_financial_period?: string | undefined;
|
|
15676
17428
|
regroup_lines?: "true" | "false" | undefined;
|
|
15677
|
-
folder_id?: string | undefined;
|
|
15678
17429
|
} | undefined): import("../types/api").RequestData<{
|
|
15679
17430
|
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
15680
17431
|
invoice_number?: string | undefined;
|
|
@@ -15775,9 +17526,9 @@ export declare class API {
|
|
|
15775
17526
|
}[];
|
|
15776
17527
|
}[];
|
|
15777
17528
|
}, params?: {
|
|
17529
|
+
folder_id?: string | undefined;
|
|
15778
17530
|
force_financial_period?: string | undefined;
|
|
15779
17531
|
regroup_lines?: "true" | "false" | undefined;
|
|
15780
|
-
folder_id?: string | undefined;
|
|
15781
17532
|
} | undefined): import("../types/api").RequestData<{
|
|
15782
17533
|
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
15783
17534
|
invoice_number?: string | undefined;
|
|
@@ -15836,6 +17587,7 @@ export declare class API {
|
|
|
15836
17587
|
journal_ids?: string | undefined;
|
|
15837
17588
|
include_payments?: "true" | "false" | undefined;
|
|
15838
17589
|
payment_status?: "all" | "paid" | "unpaid" | undefined;
|
|
17590
|
+
updated_after?: string | undefined;
|
|
15839
17591
|
} | undefined): import("../types/api").RequestData<{
|
|
15840
17592
|
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
15841
17593
|
invoice_number?: string | undefined;
|
|
@@ -15882,8 +17634,8 @@ export declare class API {
|
|
|
15882
17634
|
}[];
|
|
15883
17635
|
}[]>;
|
|
15884
17636
|
getInvoice(invoiceId: string, params?: {
|
|
15885
|
-
include_payments?: "true" | "false" | undefined;
|
|
15886
17637
|
folder_id?: string | undefined;
|
|
17638
|
+
include_payments?: "true" | "false" | undefined;
|
|
15887
17639
|
} | undefined): import("../types/api").RequestData<{
|
|
15888
17640
|
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
15889
17641
|
invoice_number?: string | undefined;
|
|
@@ -15930,8 +17682,8 @@ export declare class API {
|
|
|
15930
17682
|
}[];
|
|
15931
17683
|
}>;
|
|
15932
17684
|
getInvoiceWithMultiplePlans(invoiceId: string, params?: {
|
|
15933
|
-
include_payments?: "true" | "false" | undefined;
|
|
15934
17685
|
folder_id?: string | undefined;
|
|
17686
|
+
include_payments?: "true" | "false" | undefined;
|
|
15935
17687
|
} | undefined): import("../types/api").RequestData<{
|
|
15936
17688
|
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
15937
17689
|
invoice_number?: string | undefined;
|
|
@@ -15990,6 +17742,7 @@ export declare class API {
|
|
|
15990
17742
|
journal_ids?: string | undefined;
|
|
15991
17743
|
include_payments?: "true" | "false" | undefined;
|
|
15992
17744
|
payment_status?: "all" | "paid" | "unpaid" | undefined;
|
|
17745
|
+
updated_after?: string | undefined;
|
|
15993
17746
|
} | undefined): import("../types/api").RequestData<{
|
|
15994
17747
|
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
15995
17748
|
invoice_number?: string | undefined;
|
|
@@ -16162,9 +17915,10 @@ export declare class API {
|
|
|
16162
17915
|
analytic_plan: string;
|
|
16163
17916
|
}[]>;
|
|
16164
17917
|
getJournalEntries(params: {
|
|
16165
|
-
date_from
|
|
16166
|
-
date_to
|
|
17918
|
+
date_from?: string | undefined;
|
|
17919
|
+
date_to?: string | undefined;
|
|
16167
17920
|
folder_id?: string | undefined;
|
|
17921
|
+
updated_after?: string | undefined;
|
|
16168
17922
|
unposted_allowed: "true" | "false";
|
|
16169
17923
|
journal_id: string;
|
|
16170
17924
|
partner_id?: string | undefined;
|
|
@@ -16194,9 +17948,10 @@ export declare class API {
|
|
|
16194
17948
|
}[];
|
|
16195
17949
|
}[]>;
|
|
16196
17950
|
getJournalEntriesWithMultiplePlans(params: {
|
|
16197
|
-
date_from
|
|
16198
|
-
date_to
|
|
17951
|
+
date_from?: string | undefined;
|
|
17952
|
+
date_to?: string | undefined;
|
|
16199
17953
|
folder_id?: string | undefined;
|
|
17954
|
+
updated_after?: string | undefined;
|
|
16200
17955
|
unposted_allowed: "true" | "false";
|
|
16201
17956
|
journal_id: string;
|
|
16202
17957
|
partner_id?: string | undefined;
|
|
@@ -16231,9 +17986,9 @@ export declare class API {
|
|
|
16231
17986
|
}[];
|
|
16232
17987
|
}[]>;
|
|
16233
17988
|
getPaymentsByInvoiceId(invoice_id: string, params?: {
|
|
16234
|
-
folder_id?: string | undefined;
|
|
16235
17989
|
page?: number | undefined;
|
|
16236
17990
|
size?: number | undefined;
|
|
17991
|
+
folder_id?: string | undefined;
|
|
16237
17992
|
} | undefined): import("../types/api").RequestData<{
|
|
16238
17993
|
id: string;
|
|
16239
17994
|
name: string;
|
|
@@ -16357,8 +18112,8 @@ export declare class API {
|
|
|
16357
18112
|
attachPDF(invoice_id: string, attachment: {
|
|
16358
18113
|
base64_string: string;
|
|
16359
18114
|
}, params?: {
|
|
16360
|
-
overwrite_existing?: "true" | "false" | undefined;
|
|
16361
18115
|
folder_id?: string | undefined;
|
|
18116
|
+
overwrite_existing?: "true" | "false" | undefined;
|
|
16362
18117
|
} | undefined): import("../types/api").RequestData<{
|
|
16363
18118
|
headers: {
|
|
16364
18119
|
[name: string]: unknown;
|
|
@@ -16375,8 +18130,8 @@ export declare class API {
|
|
|
16375
18130
|
base64_string: string;
|
|
16376
18131
|
}[]>;
|
|
16377
18132
|
getChartOfAccounts(params?: {
|
|
16378
|
-
classes?: string | undefined;
|
|
16379
18133
|
folder_id?: string | undefined;
|
|
18134
|
+
classes?: string | undefined;
|
|
16380
18135
|
} | undefined): import("../types/api").RequestData<{
|
|
16381
18136
|
number: string;
|
|
16382
18137
|
name: string;
|
|
@@ -16432,8 +18187,18 @@ export declare class API {
|
|
|
16432
18187
|
partner_id: string;
|
|
16433
18188
|
account_number: string;
|
|
16434
18189
|
reference?: string | undefined;
|
|
18190
|
+
matching_numbers: string[];
|
|
16435
18191
|
payment_communication?: string | undefined;
|
|
16436
18192
|
posted: boolean;
|
|
18193
|
+
original_document?: {
|
|
18194
|
+
id?: string | undefined;
|
|
18195
|
+
number?: string | undefined;
|
|
18196
|
+
journal_id?: string | undefined;
|
|
18197
|
+
journal_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown" | undefined;
|
|
18198
|
+
date?: string | undefined;
|
|
18199
|
+
due_date?: string | undefined;
|
|
18200
|
+
reference?: string | undefined;
|
|
18201
|
+
} | undefined;
|
|
16437
18202
|
}[]>;
|
|
16438
18203
|
createFinancialEntryOld(financial_entry: {
|
|
16439
18204
|
date: string;
|
|
@@ -16451,8 +18216,8 @@ export declare class API {
|
|
|
16451
18216
|
}[];
|
|
16452
18217
|
pdf?: string | undefined;
|
|
16453
18218
|
}, params?: {
|
|
16454
|
-
financial_counterpart_account?: string | undefined;
|
|
16455
18219
|
folder_id?: string | undefined;
|
|
18220
|
+
financial_counterpart_account?: string | undefined;
|
|
16456
18221
|
} | undefined): import("../types/api").RequestData<{
|
|
16457
18222
|
date: string;
|
|
16458
18223
|
journal_id: string;
|
|
@@ -16485,8 +18250,8 @@ export declare class API {
|
|
|
16485
18250
|
}[];
|
|
16486
18251
|
pdf?: string | undefined;
|
|
16487
18252
|
}, params?: {
|
|
16488
|
-
financial_counterpart_account?: string | undefined;
|
|
16489
18253
|
folder_id?: string | undefined;
|
|
18254
|
+
financial_counterpart_account?: string | undefined;
|
|
16490
18255
|
} | undefined): import("../types/api").RequestData<{
|
|
16491
18256
|
date: string;
|
|
16492
18257
|
journal_id: string;
|
|
@@ -16583,9 +18348,11 @@ export declare class API {
|
|
|
16583
18348
|
}[];
|
|
16584
18349
|
pdf?: string | undefined;
|
|
16585
18350
|
posted: boolean;
|
|
18351
|
+
start_date?: string | undefined;
|
|
18352
|
+
end_date?: string | undefined;
|
|
16586
18353
|
}, params?: {
|
|
16587
|
-
force_currency_exchange?: "true" | "false" | undefined;
|
|
16588
18354
|
folder_id?: string | undefined;
|
|
18355
|
+
force_currency_exchange?: "true" | "false" | undefined;
|
|
16589
18356
|
} | undefined): import("../types/api").RequestData<{
|
|
16590
18357
|
reference?: string | undefined;
|
|
16591
18358
|
due_date?: string | undefined;
|
|
@@ -16625,6 +18392,18 @@ export declare class API {
|
|
|
16625
18392
|
matching_number: string;
|
|
16626
18393
|
balance: number;
|
|
16627
18394
|
}>;
|
|
18395
|
+
matchEntriesMultiple(body: {
|
|
18396
|
+
matchings: {
|
|
18397
|
+
entries: string[];
|
|
18398
|
+
partner_id: string;
|
|
18399
|
+
}[];
|
|
18400
|
+
}, params?: {
|
|
18401
|
+
folder_id?: string | undefined;
|
|
18402
|
+
} | undefined): import("../types/api").RequestData<{
|
|
18403
|
+
matching_number?: string | undefined;
|
|
18404
|
+
processed: boolean;
|
|
18405
|
+
error_msg?: Record<string, never> | undefined;
|
|
18406
|
+
}[]>;
|
|
16628
18407
|
getFolders(): import("../types/api").RequestData<{
|
|
16629
18408
|
id: string;
|
|
16630
18409
|
name: string;
|
|
@@ -16632,14 +18411,23 @@ export declare class API {
|
|
|
16632
18411
|
vat?: string | undefined;
|
|
16633
18412
|
company_number?: string | undefined;
|
|
16634
18413
|
}[]>;
|
|
18414
|
+
getBookyears(params?: {
|
|
18415
|
+
folder_id?: string | undefined;
|
|
18416
|
+
} | undefined): import("../types/api").RequestData<{
|
|
18417
|
+
name: string;
|
|
18418
|
+
start: string;
|
|
18419
|
+
end: string;
|
|
18420
|
+
closed: boolean;
|
|
18421
|
+
}[]>;
|
|
16635
18422
|
}>;
|
|
16636
18423
|
invoicing: import("../types/api").ApiFor<{
|
|
16637
18424
|
getInvoices(params?: {
|
|
16638
18425
|
date_from?: string | undefined;
|
|
16639
18426
|
date_to?: string | undefined;
|
|
16640
18427
|
payment_status?: "all" | "paid" | "unpaid" | undefined;
|
|
16641
|
-
invoice_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all" | undefined;
|
|
16642
18428
|
updated_after?: string | undefined;
|
|
18429
|
+
invoice_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all" | undefined;
|
|
18430
|
+
include_invoice_lines?: "true" | "false" | undefined;
|
|
16643
18431
|
} | undefined): import("../types/api").RequestData<{
|
|
16644
18432
|
id: string;
|
|
16645
18433
|
source_ref: {
|
|
@@ -16647,7 +18435,7 @@ export declare class API {
|
|
|
16647
18435
|
model?: string | undefined;
|
|
16648
18436
|
};
|
|
16649
18437
|
currency: string;
|
|
16650
|
-
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
18438
|
+
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all";
|
|
16651
18439
|
status: "draft" | "posted" | "cancelled" | "paid";
|
|
16652
18440
|
invoice_date: string;
|
|
16653
18441
|
tax_amount: number;
|
|
@@ -16664,6 +18452,7 @@ export declare class API {
|
|
|
16664
18452
|
tax_rate?: number | undefined;
|
|
16665
18453
|
account_number?: string | undefined;
|
|
16666
18454
|
tax_id?: string | undefined;
|
|
18455
|
+
tax_exemption_reason?: string | undefined;
|
|
16667
18456
|
unit_of_measure?: string | undefined;
|
|
16668
18457
|
product_id?: string | undefined;
|
|
16669
18458
|
product_code?: string | undefined;
|
|
@@ -16680,8 +18469,29 @@ export declare class API {
|
|
|
16680
18469
|
model?: string | undefined;
|
|
16681
18470
|
name?: string | undefined;
|
|
16682
18471
|
} | undefined;
|
|
18472
|
+
italian_specificities?: {
|
|
18473
|
+
stamp_duty_amount?: number | undefined;
|
|
18474
|
+
withholding_tax?: {
|
|
18475
|
+
rate: number;
|
|
18476
|
+
amount: number;
|
|
18477
|
+
reason?: "RT01" | "RT02" | "RT03" | "RT04" | "RT05" | "RT06" | undefined;
|
|
18478
|
+
payment_reason?: "A" | "U" | "R" | "Q" | "H" | "V" | "V2" | "I" | "J" | "K" | "P" | "S" | "T" | "W" | "X" | "Y" | "B" | "C" | "D" | "E" | "F" | "G" | "L" | "L1" | "M" | "M1" | "M2" | "IN" | "O" | "O1" | "V1" | undefined;
|
|
18479
|
+
} | undefined;
|
|
18480
|
+
welfare_fund?: {
|
|
18481
|
+
rate: number;
|
|
18482
|
+
amount: number;
|
|
18483
|
+
type?: "TC01" | "TC02" | "TC03" | "TC04" | "TC05" | "TC06" | "TC07" | "TC08" | "TC09" | "TC10" | "TC11" | "TC12" | "TC13" | "TC14" | "TC15" | "TC16" | "TC17" | "TC18" | "TC19" | "TC20" | "TC21" | "TC22" | undefined;
|
|
18484
|
+
} | undefined;
|
|
18485
|
+
payment_reporting?: {
|
|
18486
|
+
method?: "MP01" | "MP02" | "MP03" | "MP04" | "MP05" | "MP06" | "MP07" | "MP08" | "MP09" | "MP10" | "MP11" | "MP12" | "MP13" | "MP14" | "MP15" | "MP16" | "MP17" | "MP18" | "MP19" | "MP20" | "MP21" | "MP22" | "MP23" | undefined;
|
|
18487
|
+
conditions?: "TP01" | "TP02" | "TP03" | undefined;
|
|
18488
|
+
} | undefined;
|
|
18489
|
+
} | undefined;
|
|
16683
18490
|
last_updated_on?: string | undefined;
|
|
16684
18491
|
outstanding_amount?: number | undefined;
|
|
18492
|
+
accounting_date?: string | undefined;
|
|
18493
|
+
payment_method_id?: string | undefined;
|
|
18494
|
+
currency_exchange_rate: number;
|
|
16685
18495
|
}[]>;
|
|
16686
18496
|
getInvoiceById(invoiceId: string, params?: {
|
|
16687
18497
|
include_pdf?: "true" | "false" | undefined;
|
|
@@ -16692,7 +18502,7 @@ export declare class API {
|
|
|
16692
18502
|
model?: string | undefined;
|
|
16693
18503
|
};
|
|
16694
18504
|
currency: string;
|
|
16695
|
-
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
18505
|
+
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all";
|
|
16696
18506
|
status: "draft" | "posted" | "cancelled" | "paid";
|
|
16697
18507
|
invoice_date: string;
|
|
16698
18508
|
tax_amount: number;
|
|
@@ -16709,6 +18519,7 @@ export declare class API {
|
|
|
16709
18519
|
tax_rate?: number | undefined;
|
|
16710
18520
|
account_number?: string | undefined;
|
|
16711
18521
|
tax_id?: string | undefined;
|
|
18522
|
+
tax_exemption_reason?: string | undefined;
|
|
16712
18523
|
unit_of_measure?: string | undefined;
|
|
16713
18524
|
product_id?: string | undefined;
|
|
16714
18525
|
product_code?: string | undefined;
|
|
@@ -16725,12 +18536,33 @@ export declare class API {
|
|
|
16725
18536
|
model?: string | undefined;
|
|
16726
18537
|
name?: string | undefined;
|
|
16727
18538
|
} | undefined;
|
|
18539
|
+
italian_specificities?: {
|
|
18540
|
+
stamp_duty_amount?: number | undefined;
|
|
18541
|
+
withholding_tax?: {
|
|
18542
|
+
rate: number;
|
|
18543
|
+
amount: number;
|
|
18544
|
+
reason?: "RT01" | "RT02" | "RT03" | "RT04" | "RT05" | "RT06" | undefined;
|
|
18545
|
+
payment_reason?: "A" | "U" | "R" | "Q" | "H" | "V" | "V2" | "I" | "J" | "K" | "P" | "S" | "T" | "W" | "X" | "Y" | "B" | "C" | "D" | "E" | "F" | "G" | "L" | "L1" | "M" | "M1" | "M2" | "IN" | "O" | "O1" | "V1" | undefined;
|
|
18546
|
+
} | undefined;
|
|
18547
|
+
welfare_fund?: {
|
|
18548
|
+
rate: number;
|
|
18549
|
+
amount: number;
|
|
18550
|
+
type?: "TC01" | "TC02" | "TC03" | "TC04" | "TC05" | "TC06" | "TC07" | "TC08" | "TC09" | "TC10" | "TC11" | "TC12" | "TC13" | "TC14" | "TC15" | "TC16" | "TC17" | "TC18" | "TC19" | "TC20" | "TC21" | "TC22" | undefined;
|
|
18551
|
+
} | undefined;
|
|
18552
|
+
payment_reporting?: {
|
|
18553
|
+
method?: "MP01" | "MP02" | "MP03" | "MP04" | "MP05" | "MP06" | "MP07" | "MP08" | "MP09" | "MP10" | "MP11" | "MP12" | "MP13" | "MP14" | "MP15" | "MP16" | "MP17" | "MP18" | "MP19" | "MP20" | "MP21" | "MP22" | "MP23" | undefined;
|
|
18554
|
+
conditions?: "TP01" | "TP02" | "TP03" | undefined;
|
|
18555
|
+
} | undefined;
|
|
18556
|
+
} | undefined;
|
|
16728
18557
|
last_updated_on?: string | undefined;
|
|
16729
18558
|
outstanding_amount?: number | undefined;
|
|
18559
|
+
accounting_date?: string | undefined;
|
|
18560
|
+
payment_method_id?: string | undefined;
|
|
18561
|
+
currency_exchange_rate: number;
|
|
16730
18562
|
}>;
|
|
16731
18563
|
createInvoice(invoice: {
|
|
16732
18564
|
currency: string;
|
|
16733
|
-
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
18565
|
+
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all";
|
|
16734
18566
|
status: "draft" | "posted" | "cancelled" | "paid";
|
|
16735
18567
|
invoice_date: string;
|
|
16736
18568
|
tax_amount: number;
|
|
@@ -16747,6 +18579,7 @@ export declare class API {
|
|
|
16747
18579
|
tax_rate?: number | undefined;
|
|
16748
18580
|
account_number?: string | undefined;
|
|
16749
18581
|
tax_id?: string | undefined;
|
|
18582
|
+
tax_exemption_reason?: string | undefined;
|
|
16750
18583
|
unit_of_measure?: string | undefined;
|
|
16751
18584
|
product_id?: string | undefined;
|
|
16752
18585
|
product_code?: string | undefined;
|
|
@@ -16763,6 +18596,24 @@ export declare class API {
|
|
|
16763
18596
|
model?: string | undefined;
|
|
16764
18597
|
name?: string | undefined;
|
|
16765
18598
|
} | undefined;
|
|
18599
|
+
italian_specificities?: {
|
|
18600
|
+
stamp_duty_amount?: number | undefined;
|
|
18601
|
+
withholding_tax?: {
|
|
18602
|
+
rate: number;
|
|
18603
|
+
amount: number;
|
|
18604
|
+
reason?: "RT01" | "RT02" | "RT03" | "RT04" | "RT05" | "RT06" | undefined;
|
|
18605
|
+
payment_reason?: "A" | "U" | "R" | "Q" | "H" | "V" | "V2" | "I" | "J" | "K" | "P" | "S" | "T" | "W" | "X" | "Y" | "B" | "C" | "D" | "E" | "F" | "G" | "L" | "L1" | "M" | "M1" | "M2" | "IN" | "O" | "O1" | "V1" | undefined;
|
|
18606
|
+
} | undefined;
|
|
18607
|
+
welfare_fund?: {
|
|
18608
|
+
rate: number;
|
|
18609
|
+
amount: number;
|
|
18610
|
+
type?: "TC01" | "TC02" | "TC03" | "TC04" | "TC05" | "TC06" | "TC07" | "TC08" | "TC09" | "TC10" | "TC11" | "TC12" | "TC13" | "TC14" | "TC15" | "TC16" | "TC17" | "TC18" | "TC19" | "TC20" | "TC21" | "TC22" | undefined;
|
|
18611
|
+
} | undefined;
|
|
18612
|
+
payment_reporting?: {
|
|
18613
|
+
method?: "MP01" | "MP02" | "MP03" | "MP04" | "MP05" | "MP06" | "MP07" | "MP08" | "MP09" | "MP10" | "MP11" | "MP12" | "MP13" | "MP14" | "MP15" | "MP16" | "MP17" | "MP18" | "MP19" | "MP20" | "MP21" | "MP22" | "MP23" | undefined;
|
|
18614
|
+
conditions?: "TP01" | "TP02" | "TP03" | undefined;
|
|
18615
|
+
} | undefined;
|
|
18616
|
+
} | undefined;
|
|
16766
18617
|
}): import("../types/api").RequestData<{
|
|
16767
18618
|
id: string;
|
|
16768
18619
|
source_ref: {
|
|
@@ -16770,7 +18621,7 @@ export declare class API {
|
|
|
16770
18621
|
model?: string | undefined;
|
|
16771
18622
|
};
|
|
16772
18623
|
currency: string;
|
|
16773
|
-
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
18624
|
+
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all";
|
|
16774
18625
|
status: "draft" | "posted" | "cancelled" | "paid";
|
|
16775
18626
|
invoice_date: string;
|
|
16776
18627
|
tax_amount: number;
|
|
@@ -16787,6 +18638,7 @@ export declare class API {
|
|
|
16787
18638
|
tax_rate?: number | undefined;
|
|
16788
18639
|
account_number?: string | undefined;
|
|
16789
18640
|
tax_id?: string | undefined;
|
|
18641
|
+
tax_exemption_reason?: string | undefined;
|
|
16790
18642
|
unit_of_measure?: string | undefined;
|
|
16791
18643
|
product_id?: string | undefined;
|
|
16792
18644
|
product_code?: string | undefined;
|
|
@@ -16803,8 +18655,29 @@ export declare class API {
|
|
|
16803
18655
|
model?: string | undefined;
|
|
16804
18656
|
name?: string | undefined;
|
|
16805
18657
|
} | undefined;
|
|
18658
|
+
italian_specificities?: {
|
|
18659
|
+
stamp_duty_amount?: number | undefined;
|
|
18660
|
+
withholding_tax?: {
|
|
18661
|
+
rate: number;
|
|
18662
|
+
amount: number;
|
|
18663
|
+
reason?: "RT01" | "RT02" | "RT03" | "RT04" | "RT05" | "RT06" | undefined;
|
|
18664
|
+
payment_reason?: "A" | "U" | "R" | "Q" | "H" | "V" | "V2" | "I" | "J" | "K" | "P" | "S" | "T" | "W" | "X" | "Y" | "B" | "C" | "D" | "E" | "F" | "G" | "L" | "L1" | "M" | "M1" | "M2" | "IN" | "O" | "O1" | "V1" | undefined;
|
|
18665
|
+
} | undefined;
|
|
18666
|
+
welfare_fund?: {
|
|
18667
|
+
rate: number;
|
|
18668
|
+
amount: number;
|
|
18669
|
+
type?: "TC01" | "TC02" | "TC03" | "TC04" | "TC05" | "TC06" | "TC07" | "TC08" | "TC09" | "TC10" | "TC11" | "TC12" | "TC13" | "TC14" | "TC15" | "TC16" | "TC17" | "TC18" | "TC19" | "TC20" | "TC21" | "TC22" | undefined;
|
|
18670
|
+
} | undefined;
|
|
18671
|
+
payment_reporting?: {
|
|
18672
|
+
method?: "MP01" | "MP02" | "MP03" | "MP04" | "MP05" | "MP06" | "MP07" | "MP08" | "MP09" | "MP10" | "MP11" | "MP12" | "MP13" | "MP14" | "MP15" | "MP16" | "MP17" | "MP18" | "MP19" | "MP20" | "MP21" | "MP22" | "MP23" | undefined;
|
|
18673
|
+
conditions?: "TP01" | "TP02" | "TP03" | undefined;
|
|
18674
|
+
} | undefined;
|
|
18675
|
+
} | undefined;
|
|
16806
18676
|
last_updated_on?: string | undefined;
|
|
16807
18677
|
outstanding_amount?: number | undefined;
|
|
18678
|
+
accounting_date?: string | undefined;
|
|
18679
|
+
payment_method_id?: string | undefined;
|
|
18680
|
+
currency_exchange_rate: number;
|
|
16808
18681
|
}>;
|
|
16809
18682
|
getProducts(): import("../types/api").RequestData<{
|
|
16810
18683
|
id: string;
|
|
@@ -17101,6 +18974,31 @@ export declare class API {
|
|
|
17101
18974
|
}[];
|
|
17102
18975
|
external_reference?: string | undefined;
|
|
17103
18976
|
}>;
|
|
18977
|
+
getPayments(): import("../types/api").RequestData<{
|
|
18978
|
+
id: string;
|
|
18979
|
+
source_ref: {
|
|
18980
|
+
id?: string | undefined;
|
|
18981
|
+
model?: string | undefined;
|
|
18982
|
+
};
|
|
18983
|
+
status: "unknown" | "pending" | "completed" | "canceled" | "failed" | "authorized";
|
|
18984
|
+
description: string;
|
|
18985
|
+
amount: number;
|
|
18986
|
+
currency: string;
|
|
18987
|
+
payment_date: string;
|
|
18988
|
+
partner_id: string;
|
|
18989
|
+
payment_method_id?: string | undefined;
|
|
18990
|
+
payment_method_name?: string | undefined;
|
|
18991
|
+
invoice_id?: string | undefined;
|
|
18992
|
+
invoice_number?: string | undefined;
|
|
18993
|
+
}[]>;
|
|
18994
|
+
getPaymentMethods(): import("../types/api").RequestData<{
|
|
18995
|
+
id: string;
|
|
18996
|
+
source_ref: {
|
|
18997
|
+
id?: string | undefined;
|
|
18998
|
+
model?: string | undefined;
|
|
18999
|
+
};
|
|
19000
|
+
name: string;
|
|
19001
|
+
}[]>;
|
|
17104
19002
|
}>;
|
|
17105
19003
|
ecommerce: import("../types/api").ApiFor<{
|
|
17106
19004
|
getCustomers(): import("../types/api").RequestData<{
|
|
@@ -17426,6 +19324,7 @@ export declare class API {
|
|
|
17426
19324
|
refunded_amount: number;
|
|
17427
19325
|
currency: string;
|
|
17428
19326
|
note?: string | undefined;
|
|
19327
|
+
tags: string[];
|
|
17429
19328
|
lines: {
|
|
17430
19329
|
id: string;
|
|
17431
19330
|
source_ref: {
|
|
@@ -17702,6 +19601,7 @@ export declare class API {
|
|
|
17702
19601
|
refunded_amount: number;
|
|
17703
19602
|
currency: string;
|
|
17704
19603
|
note?: string | undefined;
|
|
19604
|
+
tags: string[];
|
|
17705
19605
|
lines: {
|
|
17706
19606
|
id: string;
|
|
17707
19607
|
source_ref: {
|
|
@@ -17937,6 +19837,7 @@ export declare class API {
|
|
|
17937
19837
|
refunded_amount: number;
|
|
17938
19838
|
currency: string;
|
|
17939
19839
|
note?: string | undefined;
|
|
19840
|
+
tags: string[];
|
|
17940
19841
|
lines: {
|
|
17941
19842
|
id: string;
|
|
17942
19843
|
source_ref: {
|
|
@@ -18237,6 +20138,52 @@ export declare class API {
|
|
|
18237
20138
|
logData: (logs: import("../types/consumers").ConsumerLog[]) => Promise<import("../types/sync").SimpleResponseModel>;
|
|
18238
20139
|
setConnectionId: (connectionId: string) => Promise<void>;
|
|
18239
20140
|
setIntegrationId: (integrationId: string) => Promise<void>;
|
|
20141
|
+
updateConsumer: (body: {
|
|
20142
|
+
name?: string | undefined;
|
|
20143
|
+
email?: string | undefined;
|
|
20144
|
+
internal_reference?: string | undefined;
|
|
20145
|
+
redirect_url?: string | undefined;
|
|
20146
|
+
}) => Promise<{
|
|
20147
|
+
consumerid: string;
|
|
20148
|
+
name: string;
|
|
20149
|
+
email?: string | undefined;
|
|
20150
|
+
internal_reference?: string | undefined;
|
|
20151
|
+
redirect_url?: string | undefined;
|
|
20152
|
+
}>;
|
|
20153
|
+
updateFlowConfig: (syncId: string, flowId: string, body: {
|
|
20154
|
+
triggerid: string;
|
|
20155
|
+
data: Record<string, never>;
|
|
20156
|
+
}) => Promise<{
|
|
20157
|
+
name: string;
|
|
20158
|
+
description?: string | undefined;
|
|
20159
|
+
id: string;
|
|
20160
|
+
config?: {
|
|
20161
|
+
definitionFields?: Record<string, never>[] | undefined;
|
|
20162
|
+
doorkeyFields?: Record<string, never>[] | undefined;
|
|
20163
|
+
customFields?: Record<string, never>[] | undefined;
|
|
20164
|
+
datastores: {
|
|
20165
|
+
id?: string | undefined;
|
|
20166
|
+
name: string;
|
|
20167
|
+
status: "active" | "inactive";
|
|
20168
|
+
definition: {
|
|
20169
|
+
columns: {
|
|
20170
|
+
name: string;
|
|
20171
|
+
title: string;
|
|
20172
|
+
type: string;
|
|
20173
|
+
optional: boolean;
|
|
20174
|
+
}[];
|
|
20175
|
+
search_column?: string | undefined;
|
|
20176
|
+
};
|
|
20177
|
+
}[];
|
|
20178
|
+
} | undefined;
|
|
20179
|
+
values: Record<string, never>;
|
|
20180
|
+
enabled_on?: string | undefined;
|
|
20181
|
+
trigger: {
|
|
20182
|
+
id: string;
|
|
20183
|
+
type: "event" | "timer";
|
|
20184
|
+
cronschedule?: string | undefined;
|
|
20185
|
+
};
|
|
20186
|
+
}>;
|
|
18240
20187
|
}>;
|
|
18241
20188
|
deleteConsumerById: (consumerId: string) => Promise<{
|
|
18242
20189
|
headers: {
|
|
@@ -18266,6 +20213,7 @@ export declare class API {
|
|
|
18266
20213
|
optional: boolean;
|
|
18267
20214
|
}[];
|
|
18268
20215
|
}[]>;
|
|
20216
|
+
getIntegrationLogo: (integrationId: number, imageType: "icon" | "logo") => Promise<any>;
|
|
18269
20217
|
};
|
|
18270
20218
|
Webhooks: {
|
|
18271
20219
|
getWebhookTypes: () => Promise<{
|
|
@@ -18281,6 +20229,7 @@ export declare class API {
|
|
|
18281
20229
|
consumerid: string;
|
|
18282
20230
|
name: string;
|
|
18283
20231
|
email?: string | undefined;
|
|
20232
|
+
internal_reference?: string | undefined;
|
|
18284
20233
|
redirect_url?: string | undefined;
|
|
18285
20234
|
}>;
|
|
18286
20235
|
getWebhookById: (webhookId: string) => Promise<{
|
|
@@ -18301,6 +20250,7 @@ export declare class API {
|
|
|
18301
20250
|
consumerid: string;
|
|
18302
20251
|
name: string;
|
|
18303
20252
|
email?: string | undefined;
|
|
20253
|
+
internal_reference?: string | undefined;
|
|
18304
20254
|
redirect_url?: string | undefined;
|
|
18305
20255
|
}>;
|
|
18306
20256
|
unRegisterWebhook: (webhookId: string) => Promise<{
|
|
@@ -18345,6 +20295,26 @@ export declare class API {
|
|
|
18345
20295
|
search_column?: string | undefined;
|
|
18346
20296
|
};
|
|
18347
20297
|
}[]>;
|
|
20298
|
+
getConsumerDataStoreData: (consumerId: string, datastoreId: string) => Promise<{
|
|
20299
|
+
data: Record<string, never>;
|
|
20300
|
+
id: string;
|
|
20301
|
+
created_on: string;
|
|
20302
|
+
}[]>;
|
|
20303
|
+
createConsumerDataStoreData: (consumerId: string, datastoreId: string, body: {
|
|
20304
|
+
data: Record<string, never>;
|
|
20305
|
+
}) => Promise<{
|
|
20306
|
+
data: Record<string, never>;
|
|
20307
|
+
id: string;
|
|
20308
|
+
created_on: string;
|
|
20309
|
+
}>;
|
|
20310
|
+
updateConsumerDataStoreData: (consumerId: string, datastoreId: string, datastoreDataId: string, body: {
|
|
20311
|
+
data: Record<string, never>;
|
|
20312
|
+
}) => Promise<{
|
|
20313
|
+
data: Record<string, never>;
|
|
20314
|
+
id: string;
|
|
20315
|
+
created_on: string;
|
|
20316
|
+
}>;
|
|
20317
|
+
deleteConsumerDataStoreData: (consumerId: string, datastoreId: string, datastoreDataId: string) => Promise<void>;
|
|
18348
20318
|
};
|
|
18349
20319
|
constructor(auth: AuthType);
|
|
18350
20320
|
private _setup;
|