@chift/chift-nodejs 1.0.20 → 1.0.22
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 +2059 -169
- package/dist/src/modules/consumer.d.ts +387 -22
- package/dist/src/modules/consumer.js +10 -0
- package/dist/src/modules/consumers.d.ts +2028 -163
- 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 +1680 -143
- 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 +1755 -779
- 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 +1755 -779
|
@@ -11,10 +11,17 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
11
11
|
end?: string | undefined;
|
|
12
12
|
status: string;
|
|
13
13
|
}>;
|
|
14
|
+
getConsumerExecutions: (consumerId: string) => Promise<{
|
|
15
|
+
id: string;
|
|
16
|
+
start: string;
|
|
17
|
+
end?: string | undefined;
|
|
18
|
+
status: string;
|
|
19
|
+
}[]>;
|
|
14
20
|
executeLocal: (process: (consumer: (internalApi: InternalAPI, body: {
|
|
15
21
|
consumerid: string;
|
|
16
22
|
name: string;
|
|
17
23
|
email?: string | undefined;
|
|
24
|
+
internal_reference?: string | undefined;
|
|
18
25
|
redirect_url?: string | undefined;
|
|
19
26
|
}) => {
|
|
20
27
|
consumerId: string;
|
|
@@ -140,6 +147,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
140
147
|
discounts: {
|
|
141
148
|
name?: string | undefined;
|
|
142
149
|
total: number;
|
|
150
|
+
type: "OFFERED" | "UNKNOWN" | "LOSS";
|
|
143
151
|
}[];
|
|
144
152
|
product_id?: string | undefined;
|
|
145
153
|
accounting_category_id?: string | undefined;
|
|
@@ -217,6 +225,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
217
225
|
discounts: {
|
|
218
226
|
name?: string | undefined;
|
|
219
227
|
total: number;
|
|
228
|
+
type: "OFFERED" | "UNKNOWN" | "LOSS";
|
|
220
229
|
}[];
|
|
221
230
|
product_id?: string | undefined;
|
|
222
231
|
accounting_category_id?: string | undefined;
|
|
@@ -391,6 +400,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
391
400
|
discounts: {
|
|
392
401
|
name?: string | undefined;
|
|
393
402
|
total: number;
|
|
403
|
+
type: "OFFERED" | "UNKNOWN" | "LOSS";
|
|
394
404
|
}[];
|
|
395
405
|
product_id?: string | undefined;
|
|
396
406
|
accounting_category_id?: string | undefined;
|
|
@@ -472,11 +482,62 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
472
482
|
discounts: {
|
|
473
483
|
name?: string | undefined;
|
|
474
484
|
total: number;
|
|
485
|
+
type: "OFFERED" | "UNKNOWN" | "LOSS";
|
|
475
486
|
}[];
|
|
476
487
|
product_id?: string | undefined;
|
|
477
488
|
accounting_category_id?: string | undefined;
|
|
478
489
|
}[];
|
|
479
490
|
service_id?: string | undefined;
|
|
491
|
+
reservation?: {
|
|
492
|
+
id: string;
|
|
493
|
+
source_ref: {
|
|
494
|
+
id?: string | undefined;
|
|
495
|
+
model?: string | undefined;
|
|
496
|
+
};
|
|
497
|
+
start_date?: string | undefined;
|
|
498
|
+
end_date?: string | undefined;
|
|
499
|
+
creation_date?: string | undefined;
|
|
500
|
+
resource_id?: {
|
|
501
|
+
id: string;
|
|
502
|
+
source_ref: {
|
|
503
|
+
id?: string | undefined;
|
|
504
|
+
model?: string | undefined;
|
|
505
|
+
};
|
|
506
|
+
} | undefined;
|
|
507
|
+
resource_name?: string | undefined;
|
|
508
|
+
resource_identifier?: string | undefined;
|
|
509
|
+
} | undefined;
|
|
510
|
+
bills?: {
|
|
511
|
+
id: string;
|
|
512
|
+
source_ref: {
|
|
513
|
+
id?: string | undefined;
|
|
514
|
+
model?: string | undefined;
|
|
515
|
+
};
|
|
516
|
+
invoice_number?: string | undefined;
|
|
517
|
+
creation_date?: string | undefined;
|
|
518
|
+
closing_date?: string | undefined;
|
|
519
|
+
partners?: {
|
|
520
|
+
id: string;
|
|
521
|
+
source_ref: {
|
|
522
|
+
id?: string | undefined;
|
|
523
|
+
model?: string | undefined;
|
|
524
|
+
};
|
|
525
|
+
type: "owner" | "account";
|
|
526
|
+
address?: {
|
|
527
|
+
address_type?: string | undefined;
|
|
528
|
+
name?: string | undefined;
|
|
529
|
+
street?: string | undefined;
|
|
530
|
+
number?: string | undefined;
|
|
531
|
+
box?: string | undefined;
|
|
532
|
+
city?: string | undefined;
|
|
533
|
+
postal_code?: string | undefined;
|
|
534
|
+
country?: string | undefined;
|
|
535
|
+
} | undefined;
|
|
536
|
+
first_name?: string | undefined;
|
|
537
|
+
last_name?: string | undefined;
|
|
538
|
+
company_name?: string | undefined;
|
|
539
|
+
}[] | undefined;
|
|
540
|
+
}[] | undefined;
|
|
480
541
|
}[]>;
|
|
481
542
|
getPaymentMethods(params?: {
|
|
482
543
|
location_id?: string | undefined;
|
|
@@ -512,6 +573,13 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
512
573
|
status: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised";
|
|
513
574
|
currency?: string | undefined;
|
|
514
575
|
date?: string | undefined;
|
|
576
|
+
partner_id?: {
|
|
577
|
+
id: string;
|
|
578
|
+
source_ref: {
|
|
579
|
+
id?: string | undefined;
|
|
580
|
+
model?: string | undefined;
|
|
581
|
+
};
|
|
582
|
+
} | undefined;
|
|
515
583
|
}[]>;
|
|
516
584
|
getAccountingCategories(params?: {} | undefined): import("../types/api").RequestData<{
|
|
517
585
|
id: string;
|
|
@@ -524,6 +592,128 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
524
592
|
ledger_account_code?: string | undefined;
|
|
525
593
|
posting_account_code?: string | undefined;
|
|
526
594
|
}[]>;
|
|
595
|
+
getCustomers(params?: {} | undefined): import("../types/api").RequestData<{
|
|
596
|
+
id: string;
|
|
597
|
+
source_ref: {
|
|
598
|
+
id?: string | undefined;
|
|
599
|
+
model?: string | undefined;
|
|
600
|
+
};
|
|
601
|
+
first_name?: string | undefined;
|
|
602
|
+
last_name?: string | undefined;
|
|
603
|
+
company_name?: string | undefined;
|
|
604
|
+
phone?: string | undefined;
|
|
605
|
+
email?: string | undefined;
|
|
606
|
+
account_number?: string | undefined;
|
|
607
|
+
created_on?: string | undefined;
|
|
608
|
+
addresses?: {
|
|
609
|
+
address_type?: string | undefined;
|
|
610
|
+
name?: string | undefined;
|
|
611
|
+
street?: string | undefined;
|
|
612
|
+
number?: string | undefined;
|
|
613
|
+
box?: string | undefined;
|
|
614
|
+
city?: string | undefined;
|
|
615
|
+
postal_code?: string | undefined;
|
|
616
|
+
country?: string | undefined;
|
|
617
|
+
}[] | undefined;
|
|
618
|
+
}[]>;
|
|
619
|
+
getInvoices(params?: {
|
|
620
|
+
date_from: string;
|
|
621
|
+
date_to: string;
|
|
622
|
+
location_id?: string | undefined;
|
|
623
|
+
} | undefined): import("../types/api").RequestData<{
|
|
624
|
+
id: string;
|
|
625
|
+
source_ref: {
|
|
626
|
+
id?: string | undefined;
|
|
627
|
+
model?: string | undefined;
|
|
628
|
+
};
|
|
629
|
+
invoice_number?: string | undefined;
|
|
630
|
+
creation_date?: string | undefined;
|
|
631
|
+
closing_date?: string | undefined;
|
|
632
|
+
partners?: {
|
|
633
|
+
id: string;
|
|
634
|
+
source_ref: {
|
|
635
|
+
id?: string | undefined;
|
|
636
|
+
model?: string | undefined;
|
|
637
|
+
};
|
|
638
|
+
type: "owner" | "account";
|
|
639
|
+
address?: {
|
|
640
|
+
address_type?: string | undefined;
|
|
641
|
+
name?: string | undefined;
|
|
642
|
+
street?: string | undefined;
|
|
643
|
+
number?: string | undefined;
|
|
644
|
+
box?: string | undefined;
|
|
645
|
+
city?: string | undefined;
|
|
646
|
+
postal_code?: string | undefined;
|
|
647
|
+
country?: string | undefined;
|
|
648
|
+
} | undefined;
|
|
649
|
+
first_name?: string | undefined;
|
|
650
|
+
last_name?: string | undefined;
|
|
651
|
+
company_name?: string | undefined;
|
|
652
|
+
}[] | undefined;
|
|
653
|
+
items: {
|
|
654
|
+
id: string;
|
|
655
|
+
source_ref: {
|
|
656
|
+
id?: string | undefined;
|
|
657
|
+
model?: string | undefined;
|
|
658
|
+
};
|
|
659
|
+
type?: "menu" | "product" | undefined;
|
|
660
|
+
menu_id?: string | undefined;
|
|
661
|
+
quantity: number;
|
|
662
|
+
unit_price: number;
|
|
663
|
+
total: number;
|
|
664
|
+
tax_amount: number;
|
|
665
|
+
tax_rate?: number | undefined;
|
|
666
|
+
description?: string | undefined;
|
|
667
|
+
discounts: {
|
|
668
|
+
name?: string | undefined;
|
|
669
|
+
total: number;
|
|
670
|
+
type: "OFFERED" | "UNKNOWN" | "LOSS";
|
|
671
|
+
}[];
|
|
672
|
+
product_id?: string | undefined;
|
|
673
|
+
accounting_category_id?: string | undefined;
|
|
674
|
+
}[];
|
|
675
|
+
payments: {
|
|
676
|
+
id?: string | undefined;
|
|
677
|
+
source_ref: {
|
|
678
|
+
id?: string | undefined;
|
|
679
|
+
model?: string | undefined;
|
|
680
|
+
};
|
|
681
|
+
payment_method_id?: string | undefined;
|
|
682
|
+
payment_method_name?: string | undefined;
|
|
683
|
+
total: number;
|
|
684
|
+
tip: number;
|
|
685
|
+
status: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised";
|
|
686
|
+
currency?: string | undefined;
|
|
687
|
+
date?: string | undefined;
|
|
688
|
+
partner_id?: {
|
|
689
|
+
id: string;
|
|
690
|
+
source_ref: {
|
|
691
|
+
id?: string | undefined;
|
|
692
|
+
model?: string | undefined;
|
|
693
|
+
};
|
|
694
|
+
} | undefined;
|
|
695
|
+
}[];
|
|
696
|
+
service_id?: string | undefined;
|
|
697
|
+
reservation?: {
|
|
698
|
+
id: string;
|
|
699
|
+
source_ref: {
|
|
700
|
+
id?: string | undefined;
|
|
701
|
+
model?: string | undefined;
|
|
702
|
+
};
|
|
703
|
+
start_date?: string | undefined;
|
|
704
|
+
end_date?: string | undefined;
|
|
705
|
+
creation_date?: string | undefined;
|
|
706
|
+
resource_id?: {
|
|
707
|
+
id: string;
|
|
708
|
+
source_ref: {
|
|
709
|
+
id?: string | undefined;
|
|
710
|
+
model?: string | undefined;
|
|
711
|
+
};
|
|
712
|
+
} | undefined;
|
|
713
|
+
resource_name?: string | undefined;
|
|
714
|
+
resource_identifier?: string | undefined;
|
|
715
|
+
} | undefined;
|
|
716
|
+
}[]>;
|
|
527
717
|
}>;
|
|
528
718
|
payment: import("../types/api").ApiFor<{
|
|
529
719
|
getPayments(params: {
|
|
@@ -575,8 +765,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
575
765
|
payment_id?: string | undefined;
|
|
576
766
|
}[]>;
|
|
577
767
|
getPayment(params: {
|
|
578
|
-
payment_id: string;
|
|
579
768
|
consumer_id: string;
|
|
769
|
+
payment_id: string;
|
|
580
770
|
}): import("../types/api").RequestData<{
|
|
581
771
|
id: string;
|
|
582
772
|
source_ref: {
|
|
@@ -619,6 +809,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
619
809
|
getClients(params?: {
|
|
620
810
|
search?: string | undefined;
|
|
621
811
|
folder_id?: string | undefined;
|
|
812
|
+
updated_after?: string | undefined;
|
|
622
813
|
} | undefined): import("../types/api").RequestData<{
|
|
623
814
|
external_reference?: string | undefined;
|
|
624
815
|
first_name?: string | undefined;
|
|
@@ -689,8 +880,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
689
880
|
}[];
|
|
690
881
|
account_number?: string | undefined;
|
|
691
882
|
}, params?: {
|
|
692
|
-
force_merge?: string | undefined;
|
|
693
883
|
folder_id?: string | undefined;
|
|
884
|
+
force_merge?: string | undefined;
|
|
694
885
|
} | undefined): import("../types/api").RequestData<{
|
|
695
886
|
external_reference?: string | undefined;
|
|
696
887
|
first_name?: string | undefined;
|
|
@@ -838,6 +1029,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
838
1029
|
getSuppliers(params?: {
|
|
839
1030
|
search?: string | undefined;
|
|
840
1031
|
folder_id?: string | undefined;
|
|
1032
|
+
updated_after?: string | undefined;
|
|
841
1033
|
} | undefined): import("../types/api").RequestData<{
|
|
842
1034
|
external_reference?: string | undefined;
|
|
843
1035
|
first_name?: string | undefined;
|
|
@@ -908,8 +1100,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
908
1100
|
}[];
|
|
909
1101
|
account_number?: string | undefined;
|
|
910
1102
|
}, params?: {
|
|
911
|
-
force_merge?: string | undefined;
|
|
912
1103
|
folder_id?: string | undefined;
|
|
1104
|
+
force_merge?: string | undefined;
|
|
913
1105
|
} | undefined): import("../types/api").RequestData<{
|
|
914
1106
|
external_reference?: string | undefined;
|
|
915
1107
|
first_name?: string | undefined;
|
|
@@ -1103,9 +1295,9 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
1103
1295
|
analytic_account?: string | undefined;
|
|
1104
1296
|
}[];
|
|
1105
1297
|
}, params?: {
|
|
1298
|
+
folder_id?: string | undefined;
|
|
1106
1299
|
force_financial_period?: string | undefined;
|
|
1107
1300
|
regroup_lines?: "true" | "false" | undefined;
|
|
1108
|
-
folder_id?: string | undefined;
|
|
1109
1301
|
} | undefined): import("../types/api").RequestData<{
|
|
1110
1302
|
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
1111
1303
|
invoice_number?: string | undefined;
|
|
@@ -1206,9 +1398,9 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
1206
1398
|
}[];
|
|
1207
1399
|
}[];
|
|
1208
1400
|
}, params?: {
|
|
1401
|
+
folder_id?: string | undefined;
|
|
1209
1402
|
force_financial_period?: string | undefined;
|
|
1210
1403
|
regroup_lines?: "true" | "false" | undefined;
|
|
1211
|
-
folder_id?: string | undefined;
|
|
1212
1404
|
} | undefined): import("../types/api").RequestData<{
|
|
1213
1405
|
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
1214
1406
|
invoice_number?: string | undefined;
|
|
@@ -1267,6 +1459,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
1267
1459
|
journal_ids?: string | undefined;
|
|
1268
1460
|
include_payments?: "true" | "false" | undefined;
|
|
1269
1461
|
payment_status?: "all" | "paid" | "unpaid" | undefined;
|
|
1462
|
+
updated_after?: string | undefined;
|
|
1270
1463
|
} | undefined): import("../types/api").RequestData<{
|
|
1271
1464
|
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
1272
1465
|
invoice_number?: string | undefined;
|
|
@@ -1313,8 +1506,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
1313
1506
|
}[];
|
|
1314
1507
|
}[]>;
|
|
1315
1508
|
getInvoice(invoiceId: string, params?: {
|
|
1316
|
-
include_payments?: "true" | "false" | undefined;
|
|
1317
1509
|
folder_id?: string | undefined;
|
|
1510
|
+
include_payments?: "true" | "false" | undefined;
|
|
1318
1511
|
} | undefined): import("../types/api").RequestData<{
|
|
1319
1512
|
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
1320
1513
|
invoice_number?: string | undefined;
|
|
@@ -1361,8 +1554,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
1361
1554
|
}[];
|
|
1362
1555
|
}>;
|
|
1363
1556
|
getInvoiceWithMultiplePlans(invoiceId: string, params?: {
|
|
1364
|
-
include_payments?: "true" | "false" | undefined;
|
|
1365
1557
|
folder_id?: string | undefined;
|
|
1558
|
+
include_payments?: "true" | "false" | undefined;
|
|
1366
1559
|
} | undefined): import("../types/api").RequestData<{
|
|
1367
1560
|
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
1368
1561
|
invoice_number?: string | undefined;
|
|
@@ -1421,6 +1614,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
1421
1614
|
journal_ids?: string | undefined;
|
|
1422
1615
|
include_payments?: "true" | "false" | undefined;
|
|
1423
1616
|
payment_status?: "all" | "paid" | "unpaid" | undefined;
|
|
1617
|
+
updated_after?: string | undefined;
|
|
1424
1618
|
} | undefined): import("../types/api").RequestData<{
|
|
1425
1619
|
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
1426
1620
|
invoice_number?: string | undefined;
|
|
@@ -1593,9 +1787,10 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
1593
1787
|
analytic_plan: string;
|
|
1594
1788
|
}[]>;
|
|
1595
1789
|
getJournalEntries(params: {
|
|
1596
|
-
date_from
|
|
1597
|
-
date_to
|
|
1790
|
+
date_from?: string | undefined;
|
|
1791
|
+
date_to?: string | undefined;
|
|
1598
1792
|
folder_id?: string | undefined;
|
|
1793
|
+
updated_after?: string | undefined;
|
|
1599
1794
|
unposted_allowed: "true" | "false";
|
|
1600
1795
|
journal_id: string;
|
|
1601
1796
|
partner_id?: string | undefined;
|
|
@@ -1625,9 +1820,10 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
1625
1820
|
}[];
|
|
1626
1821
|
}[]>;
|
|
1627
1822
|
getJournalEntriesWithMultiplePlans(params: {
|
|
1628
|
-
date_from
|
|
1629
|
-
date_to
|
|
1823
|
+
date_from?: string | undefined;
|
|
1824
|
+
date_to?: string | undefined;
|
|
1630
1825
|
folder_id?: string | undefined;
|
|
1826
|
+
updated_after?: string | undefined;
|
|
1631
1827
|
unposted_allowed: "true" | "false";
|
|
1632
1828
|
journal_id: string;
|
|
1633
1829
|
partner_id?: string | undefined;
|
|
@@ -1662,9 +1858,9 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
1662
1858
|
}[];
|
|
1663
1859
|
}[]>;
|
|
1664
1860
|
getPaymentsByInvoiceId(invoice_id: string, params?: {
|
|
1665
|
-
folder_id?: string | undefined;
|
|
1666
1861
|
page?: number | undefined;
|
|
1667
1862
|
size?: number | undefined;
|
|
1863
|
+
folder_id?: string | undefined;
|
|
1668
1864
|
} | undefined): import("../types/api").RequestData<{
|
|
1669
1865
|
id: string;
|
|
1670
1866
|
name: string;
|
|
@@ -1788,8 +1984,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
1788
1984
|
attachPDF(invoice_id: string, attachment: {
|
|
1789
1985
|
base64_string: string;
|
|
1790
1986
|
}, params?: {
|
|
1791
|
-
overwrite_existing?: "true" | "false" | undefined;
|
|
1792
1987
|
folder_id?: string | undefined;
|
|
1988
|
+
overwrite_existing?: "true" | "false" | undefined;
|
|
1793
1989
|
} | undefined): import("../types/api").RequestData<{
|
|
1794
1990
|
headers: {
|
|
1795
1991
|
[name: string]: unknown;
|
|
@@ -1806,8 +2002,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
1806
2002
|
base64_string: string;
|
|
1807
2003
|
}[]>;
|
|
1808
2004
|
getChartOfAccounts(params?: {
|
|
1809
|
-
classes?: string | undefined;
|
|
1810
2005
|
folder_id?: string | undefined;
|
|
2006
|
+
classes?: string | undefined;
|
|
1811
2007
|
} | undefined): import("../types/api").RequestData<{
|
|
1812
2008
|
number: string;
|
|
1813
2009
|
name: string;
|
|
@@ -1863,8 +2059,18 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
1863
2059
|
partner_id: string;
|
|
1864
2060
|
account_number: string;
|
|
1865
2061
|
reference?: string | undefined;
|
|
2062
|
+
matching_numbers: string[];
|
|
1866
2063
|
payment_communication?: string | undefined;
|
|
1867
2064
|
posted: boolean;
|
|
2065
|
+
original_document?: {
|
|
2066
|
+
id?: string | undefined;
|
|
2067
|
+
number?: string | undefined;
|
|
2068
|
+
journal_id?: string | undefined;
|
|
2069
|
+
journal_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown" | undefined;
|
|
2070
|
+
date?: string | undefined;
|
|
2071
|
+
due_date?: string | undefined;
|
|
2072
|
+
reference?: string | undefined;
|
|
2073
|
+
} | undefined;
|
|
1868
2074
|
}[]>;
|
|
1869
2075
|
createFinancialEntryOld(financial_entry: {
|
|
1870
2076
|
date: string;
|
|
@@ -1882,8 +2088,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
1882
2088
|
}[];
|
|
1883
2089
|
pdf?: string | undefined;
|
|
1884
2090
|
}, params?: {
|
|
1885
|
-
financial_counterpart_account?: string | undefined;
|
|
1886
2091
|
folder_id?: string | undefined;
|
|
2092
|
+
financial_counterpart_account?: string | undefined;
|
|
1887
2093
|
} | undefined): import("../types/api").RequestData<{
|
|
1888
2094
|
date: string;
|
|
1889
2095
|
journal_id: string;
|
|
@@ -1916,8 +2122,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
1916
2122
|
}[];
|
|
1917
2123
|
pdf?: string | undefined;
|
|
1918
2124
|
}, params?: {
|
|
1919
|
-
financial_counterpart_account?: string | undefined;
|
|
1920
2125
|
folder_id?: string | undefined;
|
|
2126
|
+
financial_counterpart_account?: string | undefined;
|
|
1921
2127
|
} | undefined): import("../types/api").RequestData<{
|
|
1922
2128
|
date: string;
|
|
1923
2129
|
journal_id: string;
|
|
@@ -2017,8 +2223,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
2017
2223
|
start_date?: string | undefined;
|
|
2018
2224
|
end_date?: string | undefined;
|
|
2019
2225
|
}, params?: {
|
|
2020
|
-
force_currency_exchange?: "true" | "false" | undefined;
|
|
2021
2226
|
folder_id?: string | undefined;
|
|
2227
|
+
force_currency_exchange?: "true" | "false" | undefined;
|
|
2022
2228
|
} | undefined): import("../types/api").RequestData<{
|
|
2023
2229
|
reference?: string | undefined;
|
|
2024
2230
|
due_date?: string | undefined;
|
|
@@ -2058,6 +2264,18 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
2058
2264
|
matching_number: string;
|
|
2059
2265
|
balance: number;
|
|
2060
2266
|
}>;
|
|
2267
|
+
matchEntriesMultiple(body: {
|
|
2268
|
+
matchings: {
|
|
2269
|
+
entries: string[];
|
|
2270
|
+
partner_id: string;
|
|
2271
|
+
}[];
|
|
2272
|
+
}, params?: {
|
|
2273
|
+
folder_id?: string | undefined;
|
|
2274
|
+
} | undefined): import("../types/api").RequestData<{
|
|
2275
|
+
matching_number?: string | undefined;
|
|
2276
|
+
processed: boolean;
|
|
2277
|
+
error_msg?: Record<string, never> | undefined;
|
|
2278
|
+
}[]>;
|
|
2061
2279
|
getFolders(): import("../types/api").RequestData<{
|
|
2062
2280
|
id: string;
|
|
2063
2281
|
name: string;
|
|
@@ -2065,14 +2283,23 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
2065
2283
|
vat?: string | undefined;
|
|
2066
2284
|
company_number?: string | undefined;
|
|
2067
2285
|
}[]>;
|
|
2286
|
+
getBookyears(params?: {
|
|
2287
|
+
folder_id?: string | undefined;
|
|
2288
|
+
} | undefined): import("../types/api").RequestData<{
|
|
2289
|
+
name: string;
|
|
2290
|
+
start: string;
|
|
2291
|
+
end: string;
|
|
2292
|
+
closed: boolean;
|
|
2293
|
+
}[]>;
|
|
2068
2294
|
}>;
|
|
2069
2295
|
invoicing: import("../types/api").ApiFor<{
|
|
2070
2296
|
getInvoices(params?: {
|
|
2071
2297
|
date_from?: string | undefined;
|
|
2072
2298
|
date_to?: string | undefined;
|
|
2073
2299
|
payment_status?: "all" | "paid" | "unpaid" | undefined;
|
|
2074
|
-
invoice_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all" | undefined;
|
|
2075
2300
|
updated_after?: string | undefined;
|
|
2301
|
+
invoice_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all" | undefined;
|
|
2302
|
+
include_invoice_lines?: "true" | "false" | undefined;
|
|
2076
2303
|
} | undefined): import("../types/api").RequestData<{
|
|
2077
2304
|
id: string;
|
|
2078
2305
|
source_ref: {
|
|
@@ -2080,7 +2307,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
2080
2307
|
model?: string | undefined;
|
|
2081
2308
|
};
|
|
2082
2309
|
currency: string;
|
|
2083
|
-
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
2310
|
+
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all";
|
|
2084
2311
|
status: "draft" | "posted" | "cancelled" | "paid";
|
|
2085
2312
|
invoice_date: string;
|
|
2086
2313
|
tax_amount: number;
|
|
@@ -2097,6 +2324,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
2097
2324
|
tax_rate?: number | undefined;
|
|
2098
2325
|
account_number?: string | undefined;
|
|
2099
2326
|
tax_id?: string | undefined;
|
|
2327
|
+
tax_exemption_reason?: string | undefined;
|
|
2100
2328
|
unit_of_measure?: string | undefined;
|
|
2101
2329
|
product_id?: string | undefined;
|
|
2102
2330
|
product_code?: string | undefined;
|
|
@@ -2113,9 +2341,29 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
2113
2341
|
model?: string | undefined;
|
|
2114
2342
|
name?: string | undefined;
|
|
2115
2343
|
} | undefined;
|
|
2344
|
+
italian_specificities?: {
|
|
2345
|
+
stamp_duty_amount?: number | undefined;
|
|
2346
|
+
withholding_tax?: {
|
|
2347
|
+
rate: number;
|
|
2348
|
+
amount: number;
|
|
2349
|
+
reason?: "RT01" | "RT02" | "RT03" | "RT04" | "RT05" | "RT06" | undefined;
|
|
2350
|
+
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;
|
|
2351
|
+
} | undefined;
|
|
2352
|
+
welfare_fund?: {
|
|
2353
|
+
rate: number;
|
|
2354
|
+
amount: number;
|
|
2355
|
+
type?: "TC01" | "TC02" | "TC03" | "TC04" | "TC05" | "TC06" | "TC07" | "TC08" | "TC09" | "TC10" | "TC11" | "TC12" | "TC13" | "TC14" | "TC15" | "TC16" | "TC17" | "TC18" | "TC19" | "TC20" | "TC21" | "TC22" | undefined;
|
|
2356
|
+
} | undefined;
|
|
2357
|
+
payment_reporting?: {
|
|
2358
|
+
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;
|
|
2359
|
+
conditions?: "TP01" | "TP02" | "TP03" | undefined;
|
|
2360
|
+
} | undefined;
|
|
2361
|
+
} | undefined;
|
|
2116
2362
|
last_updated_on?: string | undefined;
|
|
2117
2363
|
outstanding_amount?: number | undefined;
|
|
2118
2364
|
accounting_date?: string | undefined;
|
|
2365
|
+
payment_method_id?: string | undefined;
|
|
2366
|
+
currency_exchange_rate: number;
|
|
2119
2367
|
}[]>;
|
|
2120
2368
|
getInvoiceById(invoiceId: string, params?: {
|
|
2121
2369
|
include_pdf?: "true" | "false" | undefined;
|
|
@@ -2126,7 +2374,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
2126
2374
|
model?: string | undefined;
|
|
2127
2375
|
};
|
|
2128
2376
|
currency: string;
|
|
2129
|
-
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
2377
|
+
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all";
|
|
2130
2378
|
status: "draft" | "posted" | "cancelled" | "paid";
|
|
2131
2379
|
invoice_date: string;
|
|
2132
2380
|
tax_amount: number;
|
|
@@ -2143,6 +2391,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
2143
2391
|
tax_rate?: number | undefined;
|
|
2144
2392
|
account_number?: string | undefined;
|
|
2145
2393
|
tax_id?: string | undefined;
|
|
2394
|
+
tax_exemption_reason?: string | undefined;
|
|
2146
2395
|
unit_of_measure?: string | undefined;
|
|
2147
2396
|
product_id?: string | undefined;
|
|
2148
2397
|
product_code?: string | undefined;
|
|
@@ -2159,13 +2408,33 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
2159
2408
|
model?: string | undefined;
|
|
2160
2409
|
name?: string | undefined;
|
|
2161
2410
|
} | undefined;
|
|
2411
|
+
italian_specificities?: {
|
|
2412
|
+
stamp_duty_amount?: number | undefined;
|
|
2413
|
+
withholding_tax?: {
|
|
2414
|
+
rate: number;
|
|
2415
|
+
amount: number;
|
|
2416
|
+
reason?: "RT01" | "RT02" | "RT03" | "RT04" | "RT05" | "RT06" | undefined;
|
|
2417
|
+
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;
|
|
2418
|
+
} | undefined;
|
|
2419
|
+
welfare_fund?: {
|
|
2420
|
+
rate: number;
|
|
2421
|
+
amount: number;
|
|
2422
|
+
type?: "TC01" | "TC02" | "TC03" | "TC04" | "TC05" | "TC06" | "TC07" | "TC08" | "TC09" | "TC10" | "TC11" | "TC12" | "TC13" | "TC14" | "TC15" | "TC16" | "TC17" | "TC18" | "TC19" | "TC20" | "TC21" | "TC22" | undefined;
|
|
2423
|
+
} | undefined;
|
|
2424
|
+
payment_reporting?: {
|
|
2425
|
+
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;
|
|
2426
|
+
conditions?: "TP01" | "TP02" | "TP03" | undefined;
|
|
2427
|
+
} | undefined;
|
|
2428
|
+
} | undefined;
|
|
2162
2429
|
last_updated_on?: string | undefined;
|
|
2163
2430
|
outstanding_amount?: number | undefined;
|
|
2164
2431
|
accounting_date?: string | undefined;
|
|
2432
|
+
payment_method_id?: string | undefined;
|
|
2433
|
+
currency_exchange_rate: number;
|
|
2165
2434
|
}>;
|
|
2166
2435
|
createInvoice(invoice: {
|
|
2167
2436
|
currency: string;
|
|
2168
|
-
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
2437
|
+
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all";
|
|
2169
2438
|
status: "draft" | "posted" | "cancelled" | "paid";
|
|
2170
2439
|
invoice_date: string;
|
|
2171
2440
|
tax_amount: number;
|
|
@@ -2182,6 +2451,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
2182
2451
|
tax_rate?: number | undefined;
|
|
2183
2452
|
account_number?: string | undefined;
|
|
2184
2453
|
tax_id?: string | undefined;
|
|
2454
|
+
tax_exemption_reason?: string | undefined;
|
|
2185
2455
|
unit_of_measure?: string | undefined;
|
|
2186
2456
|
product_id?: string | undefined;
|
|
2187
2457
|
product_code?: string | undefined;
|
|
@@ -2198,6 +2468,24 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
2198
2468
|
model?: string | undefined;
|
|
2199
2469
|
name?: string | undefined;
|
|
2200
2470
|
} | undefined;
|
|
2471
|
+
italian_specificities?: {
|
|
2472
|
+
stamp_duty_amount?: number | undefined;
|
|
2473
|
+
withholding_tax?: {
|
|
2474
|
+
rate: number;
|
|
2475
|
+
amount: number;
|
|
2476
|
+
reason?: "RT01" | "RT02" | "RT03" | "RT04" | "RT05" | "RT06" | undefined;
|
|
2477
|
+
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;
|
|
2478
|
+
} | undefined;
|
|
2479
|
+
welfare_fund?: {
|
|
2480
|
+
rate: number;
|
|
2481
|
+
amount: number;
|
|
2482
|
+
type?: "TC01" | "TC02" | "TC03" | "TC04" | "TC05" | "TC06" | "TC07" | "TC08" | "TC09" | "TC10" | "TC11" | "TC12" | "TC13" | "TC14" | "TC15" | "TC16" | "TC17" | "TC18" | "TC19" | "TC20" | "TC21" | "TC22" | undefined;
|
|
2483
|
+
} | undefined;
|
|
2484
|
+
payment_reporting?: {
|
|
2485
|
+
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;
|
|
2486
|
+
conditions?: "TP01" | "TP02" | "TP03" | undefined;
|
|
2487
|
+
} | undefined;
|
|
2488
|
+
} | undefined;
|
|
2201
2489
|
}): import("../types/api").RequestData<{
|
|
2202
2490
|
id: string;
|
|
2203
2491
|
source_ref: {
|
|
@@ -2205,7 +2493,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
2205
2493
|
model?: string | undefined;
|
|
2206
2494
|
};
|
|
2207
2495
|
currency: string;
|
|
2208
|
-
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
2496
|
+
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all";
|
|
2209
2497
|
status: "draft" | "posted" | "cancelled" | "paid";
|
|
2210
2498
|
invoice_date: string;
|
|
2211
2499
|
tax_amount: number;
|
|
@@ -2222,6 +2510,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
2222
2510
|
tax_rate?: number | undefined;
|
|
2223
2511
|
account_number?: string | undefined;
|
|
2224
2512
|
tax_id?: string | undefined;
|
|
2513
|
+
tax_exemption_reason?: string | undefined;
|
|
2225
2514
|
unit_of_measure?: string | undefined;
|
|
2226
2515
|
product_id?: string | undefined;
|
|
2227
2516
|
product_code?: string | undefined;
|
|
@@ -2238,9 +2527,29 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
2238
2527
|
model?: string | undefined;
|
|
2239
2528
|
name?: string | undefined;
|
|
2240
2529
|
} | undefined;
|
|
2530
|
+
italian_specificities?: {
|
|
2531
|
+
stamp_duty_amount?: number | undefined;
|
|
2532
|
+
withholding_tax?: {
|
|
2533
|
+
rate: number;
|
|
2534
|
+
amount: number;
|
|
2535
|
+
reason?: "RT01" | "RT02" | "RT03" | "RT04" | "RT05" | "RT06" | undefined;
|
|
2536
|
+
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;
|
|
2537
|
+
} | undefined;
|
|
2538
|
+
welfare_fund?: {
|
|
2539
|
+
rate: number;
|
|
2540
|
+
amount: number;
|
|
2541
|
+
type?: "TC01" | "TC02" | "TC03" | "TC04" | "TC05" | "TC06" | "TC07" | "TC08" | "TC09" | "TC10" | "TC11" | "TC12" | "TC13" | "TC14" | "TC15" | "TC16" | "TC17" | "TC18" | "TC19" | "TC20" | "TC21" | "TC22" | undefined;
|
|
2542
|
+
} | undefined;
|
|
2543
|
+
payment_reporting?: {
|
|
2544
|
+
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;
|
|
2545
|
+
conditions?: "TP01" | "TP02" | "TP03" | undefined;
|
|
2546
|
+
} | undefined;
|
|
2547
|
+
} | undefined;
|
|
2241
2548
|
last_updated_on?: string | undefined;
|
|
2242
2549
|
outstanding_amount?: number | undefined;
|
|
2243
2550
|
accounting_date?: string | undefined;
|
|
2551
|
+
payment_method_id?: string | undefined;
|
|
2552
|
+
currency_exchange_rate: number;
|
|
2244
2553
|
}>;
|
|
2245
2554
|
getProducts(): import("../types/api").RequestData<{
|
|
2246
2555
|
id: string;
|
|
@@ -2537,6 +2846,31 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
2537
2846
|
}[];
|
|
2538
2847
|
external_reference?: string | undefined;
|
|
2539
2848
|
}>;
|
|
2849
|
+
getPayments(): import("../types/api").RequestData<{
|
|
2850
|
+
id: string;
|
|
2851
|
+
source_ref: {
|
|
2852
|
+
id?: string | undefined;
|
|
2853
|
+
model?: string | undefined;
|
|
2854
|
+
};
|
|
2855
|
+
status: "unknown" | "pending" | "completed" | "canceled" | "failed" | "authorized";
|
|
2856
|
+
description: string;
|
|
2857
|
+
amount: number;
|
|
2858
|
+
currency: string;
|
|
2859
|
+
payment_date: string;
|
|
2860
|
+
partner_id: string;
|
|
2861
|
+
payment_method_id?: string | undefined;
|
|
2862
|
+
payment_method_name?: string | undefined;
|
|
2863
|
+
invoice_id?: string | undefined;
|
|
2864
|
+
invoice_number?: string | undefined;
|
|
2865
|
+
}[]>;
|
|
2866
|
+
getPaymentMethods(): import("../types/api").RequestData<{
|
|
2867
|
+
id: string;
|
|
2868
|
+
source_ref: {
|
|
2869
|
+
id?: string | undefined;
|
|
2870
|
+
model?: string | undefined;
|
|
2871
|
+
};
|
|
2872
|
+
name: string;
|
|
2873
|
+
}[]>;
|
|
2540
2874
|
}>;
|
|
2541
2875
|
ecommerce: import("../types/api").ApiFor<{
|
|
2542
2876
|
getCustomers(): import("../types/api").RequestData<{
|
|
@@ -3676,10 +4010,56 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
3676
4010
|
logData: (logs: import("../types/consumers").ConsumerLog[]) => Promise<import("../types/sync").SimpleResponseModel>;
|
|
3677
4011
|
setConnectionId: (connectionId: string) => Promise<void>;
|
|
3678
4012
|
setIntegrationId: (integrationId: string) => Promise<void>;
|
|
3679
|
-
|
|
3680
|
-
|
|
3681
|
-
|
|
3682
|
-
|
|
4013
|
+
updateConsumer: (body: {
|
|
4014
|
+
name?: string | undefined;
|
|
4015
|
+
email?: string | undefined;
|
|
4016
|
+
internal_reference?: string | undefined;
|
|
4017
|
+
redirect_url?: string | undefined;
|
|
4018
|
+
}) => Promise<{
|
|
4019
|
+
consumerid: string;
|
|
4020
|
+
name: string;
|
|
4021
|
+
email?: string | undefined;
|
|
4022
|
+
internal_reference?: string | undefined;
|
|
4023
|
+
redirect_url?: string | undefined;
|
|
4024
|
+
}>;
|
|
4025
|
+
updateFlowConfig: (syncId: string, flowId: string, body: {
|
|
4026
|
+
triggerid: string;
|
|
4027
|
+
data: Record<string, never>;
|
|
4028
|
+
}) => Promise<{
|
|
4029
|
+
name: string;
|
|
4030
|
+
description?: string | undefined;
|
|
4031
|
+
id: string;
|
|
4032
|
+
config?: {
|
|
4033
|
+
definitionFields?: Record<string, never>[] | undefined;
|
|
4034
|
+
doorkeyFields?: Record<string, never>[] | undefined;
|
|
4035
|
+
customFields?: Record<string, never>[] | undefined;
|
|
4036
|
+
datastores: {
|
|
4037
|
+
id?: string | undefined;
|
|
4038
|
+
name: string;
|
|
4039
|
+
status: "active" | "inactive";
|
|
4040
|
+
definition: {
|
|
4041
|
+
columns: {
|
|
4042
|
+
name: string;
|
|
4043
|
+
title: string;
|
|
4044
|
+
type: string;
|
|
4045
|
+
optional: boolean;
|
|
4046
|
+
}[];
|
|
4047
|
+
search_column?: string | undefined;
|
|
4048
|
+
};
|
|
4049
|
+
}[];
|
|
4050
|
+
} | undefined;
|
|
4051
|
+
values: Record<string, never>;
|
|
4052
|
+
enabled_on?: string | undefined;
|
|
4053
|
+
trigger: {
|
|
4054
|
+
id: string;
|
|
4055
|
+
type: "event" | "timer";
|
|
4056
|
+
cronschedule?: string | undefined;
|
|
4057
|
+
};
|
|
4058
|
+
}>;
|
|
4059
|
+
}, context: any) => any, log?: boolean) => Promise<void>;
|
|
4060
|
+
flowId: string;
|
|
4061
|
+
name: string;
|
|
4062
|
+
}>;
|
|
3683
4063
|
getFlows: () => {
|
|
3684
4064
|
execute: ({ testData, context }: any) => Promise<void>;
|
|
3685
4065
|
getExecution: (executionId: string) => Promise<{
|
|
@@ -3688,10 +4068,17 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
3688
4068
|
end?: string | undefined;
|
|
3689
4069
|
status: string;
|
|
3690
4070
|
}>;
|
|
4071
|
+
getConsumerExecutions: (consumerId: string) => Promise<{
|
|
4072
|
+
id: string;
|
|
4073
|
+
start: string;
|
|
4074
|
+
end?: string | undefined;
|
|
4075
|
+
status: string;
|
|
4076
|
+
}[]>;
|
|
3691
4077
|
executeLocal: (process: (consumer: (internalApi: InternalAPI, body: {
|
|
3692
4078
|
consumerid: string;
|
|
3693
4079
|
name: string;
|
|
3694
4080
|
email?: string | undefined;
|
|
4081
|
+
internal_reference?: string | undefined;
|
|
3695
4082
|
redirect_url?: string | undefined;
|
|
3696
4083
|
}) => {
|
|
3697
4084
|
consumerId: string;
|
|
@@ -3817,6 +4204,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
3817
4204
|
discounts: {
|
|
3818
4205
|
name?: string | undefined;
|
|
3819
4206
|
total: number;
|
|
4207
|
+
type: "OFFERED" | "UNKNOWN" | "LOSS";
|
|
3820
4208
|
}[];
|
|
3821
4209
|
product_id?: string | undefined;
|
|
3822
4210
|
accounting_category_id?: string | undefined;
|
|
@@ -3894,6 +4282,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
3894
4282
|
discounts: {
|
|
3895
4283
|
name?: string | undefined;
|
|
3896
4284
|
total: number;
|
|
4285
|
+
type: "OFFERED" | "UNKNOWN" | "LOSS";
|
|
3897
4286
|
}[];
|
|
3898
4287
|
product_id?: string | undefined;
|
|
3899
4288
|
accounting_category_id?: string | undefined;
|
|
@@ -4068,6 +4457,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
4068
4457
|
discounts: {
|
|
4069
4458
|
name?: string | undefined;
|
|
4070
4459
|
total: number;
|
|
4460
|
+
type: "OFFERED" | "UNKNOWN" | "LOSS";
|
|
4071
4461
|
}[];
|
|
4072
4462
|
product_id?: string | undefined;
|
|
4073
4463
|
accounting_category_id?: string | undefined;
|
|
@@ -4149,11 +4539,62 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
4149
4539
|
discounts: {
|
|
4150
4540
|
name?: string | undefined;
|
|
4151
4541
|
total: number;
|
|
4542
|
+
type: "OFFERED" | "UNKNOWN" | "LOSS";
|
|
4152
4543
|
}[];
|
|
4153
4544
|
product_id?: string | undefined;
|
|
4154
4545
|
accounting_category_id?: string | undefined;
|
|
4155
4546
|
}[];
|
|
4156
4547
|
service_id?: string | undefined;
|
|
4548
|
+
reservation?: {
|
|
4549
|
+
id: string;
|
|
4550
|
+
source_ref: {
|
|
4551
|
+
id?: string | undefined;
|
|
4552
|
+
model?: string | undefined;
|
|
4553
|
+
};
|
|
4554
|
+
start_date?: string | undefined;
|
|
4555
|
+
end_date?: string | undefined;
|
|
4556
|
+
creation_date?: string | undefined;
|
|
4557
|
+
resource_id?: {
|
|
4558
|
+
id: string;
|
|
4559
|
+
source_ref: {
|
|
4560
|
+
id?: string | undefined;
|
|
4561
|
+
model?: string | undefined;
|
|
4562
|
+
};
|
|
4563
|
+
} | undefined;
|
|
4564
|
+
resource_name?: string | undefined;
|
|
4565
|
+
resource_identifier?: string | undefined;
|
|
4566
|
+
} | undefined;
|
|
4567
|
+
bills?: {
|
|
4568
|
+
id: string;
|
|
4569
|
+
source_ref: {
|
|
4570
|
+
id?: string | undefined;
|
|
4571
|
+
model?: string | undefined;
|
|
4572
|
+
};
|
|
4573
|
+
invoice_number?: string | undefined;
|
|
4574
|
+
creation_date?: string | undefined;
|
|
4575
|
+
closing_date?: string | undefined;
|
|
4576
|
+
partners?: {
|
|
4577
|
+
id: string;
|
|
4578
|
+
source_ref: {
|
|
4579
|
+
id?: string | undefined;
|
|
4580
|
+
model?: string | undefined;
|
|
4581
|
+
};
|
|
4582
|
+
type: "owner" | "account";
|
|
4583
|
+
address?: {
|
|
4584
|
+
address_type?: string | undefined;
|
|
4585
|
+
name?: string | undefined;
|
|
4586
|
+
street?: string | undefined;
|
|
4587
|
+
number?: string | undefined;
|
|
4588
|
+
box?: string | undefined;
|
|
4589
|
+
city?: string | undefined;
|
|
4590
|
+
postal_code?: string | undefined;
|
|
4591
|
+
country?: string | undefined;
|
|
4592
|
+
} | undefined;
|
|
4593
|
+
first_name?: string | undefined;
|
|
4594
|
+
last_name?: string | undefined;
|
|
4595
|
+
company_name?: string | undefined;
|
|
4596
|
+
}[] | undefined;
|
|
4597
|
+
}[] | undefined;
|
|
4157
4598
|
}[]>;
|
|
4158
4599
|
getPaymentMethods(params?: {
|
|
4159
4600
|
location_id?: string | undefined;
|
|
@@ -4189,6 +4630,13 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
4189
4630
|
status: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised";
|
|
4190
4631
|
currency?: string | undefined;
|
|
4191
4632
|
date?: string | undefined;
|
|
4633
|
+
partner_id?: {
|
|
4634
|
+
id: string;
|
|
4635
|
+
source_ref: {
|
|
4636
|
+
id?: string | undefined;
|
|
4637
|
+
model?: string | undefined;
|
|
4638
|
+
};
|
|
4639
|
+
} | undefined;
|
|
4192
4640
|
}[]>;
|
|
4193
4641
|
getAccountingCategories(params?: {} | undefined): import("../types/api").RequestData<{
|
|
4194
4642
|
id: string;
|
|
@@ -4201,6 +4649,128 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
4201
4649
|
ledger_account_code?: string | undefined;
|
|
4202
4650
|
posting_account_code?: string | undefined;
|
|
4203
4651
|
}[]>;
|
|
4652
|
+
getCustomers(params?: {} | undefined): import("../types/api").RequestData<{
|
|
4653
|
+
id: string;
|
|
4654
|
+
source_ref: {
|
|
4655
|
+
id?: string | undefined;
|
|
4656
|
+
model?: string | undefined;
|
|
4657
|
+
};
|
|
4658
|
+
first_name?: string | undefined;
|
|
4659
|
+
last_name?: string | undefined;
|
|
4660
|
+
company_name?: string | undefined;
|
|
4661
|
+
phone?: string | undefined;
|
|
4662
|
+
email?: string | undefined;
|
|
4663
|
+
account_number?: string | undefined;
|
|
4664
|
+
created_on?: string | undefined;
|
|
4665
|
+
addresses?: {
|
|
4666
|
+
address_type?: string | undefined;
|
|
4667
|
+
name?: string | undefined;
|
|
4668
|
+
street?: string | undefined;
|
|
4669
|
+
number?: string | undefined;
|
|
4670
|
+
box?: string | undefined;
|
|
4671
|
+
city?: string | undefined;
|
|
4672
|
+
postal_code?: string | undefined;
|
|
4673
|
+
country?: string | undefined;
|
|
4674
|
+
}[] | undefined;
|
|
4675
|
+
}[]>;
|
|
4676
|
+
getInvoices(params?: {
|
|
4677
|
+
date_from: string;
|
|
4678
|
+
date_to: string;
|
|
4679
|
+
location_id?: string | undefined;
|
|
4680
|
+
} | undefined): import("../types/api").RequestData<{
|
|
4681
|
+
id: string;
|
|
4682
|
+
source_ref: {
|
|
4683
|
+
id?: string | undefined;
|
|
4684
|
+
model?: string | undefined;
|
|
4685
|
+
};
|
|
4686
|
+
invoice_number?: string | undefined;
|
|
4687
|
+
creation_date?: string | undefined;
|
|
4688
|
+
closing_date?: string | undefined;
|
|
4689
|
+
partners?: {
|
|
4690
|
+
id: string;
|
|
4691
|
+
source_ref: {
|
|
4692
|
+
id?: string | undefined;
|
|
4693
|
+
model?: string | undefined;
|
|
4694
|
+
};
|
|
4695
|
+
type: "owner" | "account";
|
|
4696
|
+
address?: {
|
|
4697
|
+
address_type?: string | undefined;
|
|
4698
|
+
name?: string | undefined;
|
|
4699
|
+
street?: string | undefined;
|
|
4700
|
+
number?: string | undefined;
|
|
4701
|
+
box?: string | undefined;
|
|
4702
|
+
city?: string | undefined;
|
|
4703
|
+
postal_code?: string | undefined;
|
|
4704
|
+
country?: string | undefined;
|
|
4705
|
+
} | undefined;
|
|
4706
|
+
first_name?: string | undefined;
|
|
4707
|
+
last_name?: string | undefined;
|
|
4708
|
+
company_name?: string | undefined;
|
|
4709
|
+
}[] | undefined;
|
|
4710
|
+
items: {
|
|
4711
|
+
id: string;
|
|
4712
|
+
source_ref: {
|
|
4713
|
+
id?: string | undefined;
|
|
4714
|
+
model?: string | undefined;
|
|
4715
|
+
};
|
|
4716
|
+
type?: "menu" | "product" | undefined;
|
|
4717
|
+
menu_id?: string | undefined;
|
|
4718
|
+
quantity: number;
|
|
4719
|
+
unit_price: number;
|
|
4720
|
+
total: number;
|
|
4721
|
+
tax_amount: number;
|
|
4722
|
+
tax_rate?: number | undefined;
|
|
4723
|
+
description?: string | undefined;
|
|
4724
|
+
discounts: {
|
|
4725
|
+
name?: string | undefined;
|
|
4726
|
+
total: number;
|
|
4727
|
+
type: "OFFERED" | "UNKNOWN" | "LOSS";
|
|
4728
|
+
}[];
|
|
4729
|
+
product_id?: string | undefined;
|
|
4730
|
+
accounting_category_id?: string | undefined;
|
|
4731
|
+
}[];
|
|
4732
|
+
payments: {
|
|
4733
|
+
id?: string | undefined;
|
|
4734
|
+
source_ref: {
|
|
4735
|
+
id?: string | undefined;
|
|
4736
|
+
model?: string | undefined;
|
|
4737
|
+
};
|
|
4738
|
+
payment_method_id?: string | undefined;
|
|
4739
|
+
payment_method_name?: string | undefined;
|
|
4740
|
+
total: number;
|
|
4741
|
+
tip: number;
|
|
4742
|
+
status: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised";
|
|
4743
|
+
currency?: string | undefined;
|
|
4744
|
+
date?: string | undefined;
|
|
4745
|
+
partner_id?: {
|
|
4746
|
+
id: string;
|
|
4747
|
+
source_ref: {
|
|
4748
|
+
id?: string | undefined;
|
|
4749
|
+
model?: string | undefined;
|
|
4750
|
+
};
|
|
4751
|
+
} | undefined;
|
|
4752
|
+
}[];
|
|
4753
|
+
service_id?: string | undefined;
|
|
4754
|
+
reservation?: {
|
|
4755
|
+
id: string;
|
|
4756
|
+
source_ref: {
|
|
4757
|
+
id?: string | undefined;
|
|
4758
|
+
model?: string | undefined;
|
|
4759
|
+
};
|
|
4760
|
+
start_date?: string | undefined;
|
|
4761
|
+
end_date?: string | undefined;
|
|
4762
|
+
creation_date?: string | undefined;
|
|
4763
|
+
resource_id?: {
|
|
4764
|
+
id: string;
|
|
4765
|
+
source_ref: {
|
|
4766
|
+
id?: string | undefined;
|
|
4767
|
+
model?: string | undefined;
|
|
4768
|
+
};
|
|
4769
|
+
} | undefined;
|
|
4770
|
+
resource_name?: string | undefined;
|
|
4771
|
+
resource_identifier?: string | undefined;
|
|
4772
|
+
} | undefined;
|
|
4773
|
+
}[]>;
|
|
4204
4774
|
}>;
|
|
4205
4775
|
payment: import("../types/api").ApiFor<{
|
|
4206
4776
|
getPayments(params: {
|
|
@@ -4252,8 +4822,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
4252
4822
|
payment_id?: string | undefined;
|
|
4253
4823
|
}[]>;
|
|
4254
4824
|
getPayment(params: {
|
|
4255
|
-
payment_id: string;
|
|
4256
4825
|
consumer_id: string;
|
|
4826
|
+
payment_id: string;
|
|
4257
4827
|
}): import("../types/api").RequestData<{
|
|
4258
4828
|
id: string;
|
|
4259
4829
|
source_ref: {
|
|
@@ -4296,6 +4866,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
4296
4866
|
getClients(params?: {
|
|
4297
4867
|
search?: string | undefined;
|
|
4298
4868
|
folder_id?: string | undefined;
|
|
4869
|
+
updated_after?: string | undefined;
|
|
4299
4870
|
} | undefined): import("../types/api").RequestData<{
|
|
4300
4871
|
external_reference?: string | undefined;
|
|
4301
4872
|
first_name?: string | undefined;
|
|
@@ -4366,8 +4937,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
4366
4937
|
}[];
|
|
4367
4938
|
account_number?: string | undefined;
|
|
4368
4939
|
}, params?: {
|
|
4369
|
-
force_merge?: string | undefined;
|
|
4370
4940
|
folder_id?: string | undefined;
|
|
4941
|
+
force_merge?: string | undefined;
|
|
4371
4942
|
} | undefined): import("../types/api").RequestData<{
|
|
4372
4943
|
external_reference?: string | undefined;
|
|
4373
4944
|
first_name?: string | undefined;
|
|
@@ -4515,6 +5086,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
4515
5086
|
getSuppliers(params?: {
|
|
4516
5087
|
search?: string | undefined;
|
|
4517
5088
|
folder_id?: string | undefined;
|
|
5089
|
+
updated_after?: string | undefined;
|
|
4518
5090
|
} | undefined): import("../types/api").RequestData<{
|
|
4519
5091
|
external_reference?: string | undefined;
|
|
4520
5092
|
first_name?: string | undefined;
|
|
@@ -4585,8 +5157,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
4585
5157
|
}[];
|
|
4586
5158
|
account_number?: string | undefined;
|
|
4587
5159
|
}, params?: {
|
|
4588
|
-
force_merge?: string | undefined;
|
|
4589
5160
|
folder_id?: string | undefined;
|
|
5161
|
+
force_merge?: string | undefined;
|
|
4590
5162
|
} | undefined): import("../types/api").RequestData<{
|
|
4591
5163
|
external_reference?: string | undefined;
|
|
4592
5164
|
first_name?: string | undefined;
|
|
@@ -4780,9 +5352,9 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
4780
5352
|
analytic_account?: string | undefined;
|
|
4781
5353
|
}[];
|
|
4782
5354
|
}, params?: {
|
|
5355
|
+
folder_id?: string | undefined;
|
|
4783
5356
|
force_financial_period?: string | undefined;
|
|
4784
5357
|
regroup_lines?: "true" | "false" | undefined;
|
|
4785
|
-
folder_id?: string | undefined;
|
|
4786
5358
|
} | undefined): import("../types/api").RequestData<{
|
|
4787
5359
|
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
4788
5360
|
invoice_number?: string | undefined;
|
|
@@ -4883,9 +5455,9 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
4883
5455
|
}[];
|
|
4884
5456
|
}[];
|
|
4885
5457
|
}, params?: {
|
|
5458
|
+
folder_id?: string | undefined;
|
|
4886
5459
|
force_financial_period?: string | undefined;
|
|
4887
5460
|
regroup_lines?: "true" | "false" | undefined;
|
|
4888
|
-
folder_id?: string | undefined;
|
|
4889
5461
|
} | undefined): import("../types/api").RequestData<{
|
|
4890
5462
|
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
4891
5463
|
invoice_number?: string | undefined;
|
|
@@ -4944,6 +5516,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
4944
5516
|
journal_ids?: string | undefined;
|
|
4945
5517
|
include_payments?: "true" | "false" | undefined;
|
|
4946
5518
|
payment_status?: "all" | "paid" | "unpaid" | undefined;
|
|
5519
|
+
updated_after?: string | undefined;
|
|
4947
5520
|
} | undefined): import("../types/api").RequestData<{
|
|
4948
5521
|
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
4949
5522
|
invoice_number?: string | undefined;
|
|
@@ -4990,8 +5563,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
4990
5563
|
}[];
|
|
4991
5564
|
}[]>;
|
|
4992
5565
|
getInvoice(invoiceId: string, params?: {
|
|
4993
|
-
include_payments?: "true" | "false" | undefined;
|
|
4994
5566
|
folder_id?: string | undefined;
|
|
5567
|
+
include_payments?: "true" | "false" | undefined;
|
|
4995
5568
|
} | undefined): import("../types/api").RequestData<{
|
|
4996
5569
|
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
4997
5570
|
invoice_number?: string | undefined;
|
|
@@ -5038,8 +5611,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
5038
5611
|
}[];
|
|
5039
5612
|
}>;
|
|
5040
5613
|
getInvoiceWithMultiplePlans(invoiceId: string, params?: {
|
|
5041
|
-
include_payments?: "true" | "false" | undefined;
|
|
5042
5614
|
folder_id?: string | undefined;
|
|
5615
|
+
include_payments?: "true" | "false" | undefined;
|
|
5043
5616
|
} | undefined): import("../types/api").RequestData<{
|
|
5044
5617
|
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
5045
5618
|
invoice_number?: string | undefined;
|
|
@@ -5098,6 +5671,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
5098
5671
|
journal_ids?: string | undefined;
|
|
5099
5672
|
include_payments?: "true" | "false" | undefined;
|
|
5100
5673
|
payment_status?: "all" | "paid" | "unpaid" | undefined;
|
|
5674
|
+
updated_after?: string | undefined;
|
|
5101
5675
|
} | undefined): import("../types/api").RequestData<{
|
|
5102
5676
|
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
5103
5677
|
invoice_number?: string | undefined;
|
|
@@ -5270,9 +5844,10 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
5270
5844
|
analytic_plan: string;
|
|
5271
5845
|
}[]>;
|
|
5272
5846
|
getJournalEntries(params: {
|
|
5273
|
-
date_from
|
|
5274
|
-
date_to
|
|
5847
|
+
date_from?: string | undefined;
|
|
5848
|
+
date_to?: string | undefined;
|
|
5275
5849
|
folder_id?: string | undefined;
|
|
5850
|
+
updated_after?: string | undefined;
|
|
5276
5851
|
unposted_allowed: "true" | "false";
|
|
5277
5852
|
journal_id: string;
|
|
5278
5853
|
partner_id?: string | undefined;
|
|
@@ -5302,9 +5877,10 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
5302
5877
|
}[];
|
|
5303
5878
|
}[]>;
|
|
5304
5879
|
getJournalEntriesWithMultiplePlans(params: {
|
|
5305
|
-
date_from
|
|
5306
|
-
date_to
|
|
5880
|
+
date_from?: string | undefined;
|
|
5881
|
+
date_to?: string | undefined;
|
|
5307
5882
|
folder_id?: string | undefined;
|
|
5883
|
+
updated_after?: string | undefined;
|
|
5308
5884
|
unposted_allowed: "true" | "false";
|
|
5309
5885
|
journal_id: string;
|
|
5310
5886
|
partner_id?: string | undefined;
|
|
@@ -5339,9 +5915,9 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
5339
5915
|
}[];
|
|
5340
5916
|
}[]>;
|
|
5341
5917
|
getPaymentsByInvoiceId(invoice_id: string, params?: {
|
|
5342
|
-
folder_id?: string | undefined;
|
|
5343
5918
|
page?: number | undefined;
|
|
5344
5919
|
size?: number | undefined;
|
|
5920
|
+
folder_id?: string | undefined;
|
|
5345
5921
|
} | undefined): import("../types/api").RequestData<{
|
|
5346
5922
|
id: string;
|
|
5347
5923
|
name: string;
|
|
@@ -5465,8 +6041,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
5465
6041
|
attachPDF(invoice_id: string, attachment: {
|
|
5466
6042
|
base64_string: string;
|
|
5467
6043
|
}, params?: {
|
|
5468
|
-
overwrite_existing?: "true" | "false" | undefined;
|
|
5469
6044
|
folder_id?: string | undefined;
|
|
6045
|
+
overwrite_existing?: "true" | "false" | undefined;
|
|
5470
6046
|
} | undefined): import("../types/api").RequestData<{
|
|
5471
6047
|
headers: {
|
|
5472
6048
|
[name: string]: unknown;
|
|
@@ -5483,8 +6059,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
5483
6059
|
base64_string: string;
|
|
5484
6060
|
}[]>;
|
|
5485
6061
|
getChartOfAccounts(params?: {
|
|
5486
|
-
classes?: string | undefined;
|
|
5487
6062
|
folder_id?: string | undefined;
|
|
6063
|
+
classes?: string | undefined;
|
|
5488
6064
|
} | undefined): import("../types/api").RequestData<{
|
|
5489
6065
|
number: string;
|
|
5490
6066
|
name: string;
|
|
@@ -5540,8 +6116,18 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
5540
6116
|
partner_id: string;
|
|
5541
6117
|
account_number: string;
|
|
5542
6118
|
reference?: string | undefined;
|
|
6119
|
+
matching_numbers: string[];
|
|
5543
6120
|
payment_communication?: string | undefined;
|
|
5544
6121
|
posted: boolean;
|
|
6122
|
+
original_document?: {
|
|
6123
|
+
id?: string | undefined;
|
|
6124
|
+
number?: string | undefined;
|
|
6125
|
+
journal_id?: string | undefined;
|
|
6126
|
+
journal_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown" | undefined;
|
|
6127
|
+
date?: string | undefined;
|
|
6128
|
+
due_date?: string | undefined;
|
|
6129
|
+
reference?: string | undefined;
|
|
6130
|
+
} | undefined;
|
|
5545
6131
|
}[]>;
|
|
5546
6132
|
createFinancialEntryOld(financial_entry: {
|
|
5547
6133
|
date: string;
|
|
@@ -5559,8 +6145,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
5559
6145
|
}[];
|
|
5560
6146
|
pdf?: string | undefined;
|
|
5561
6147
|
}, params?: {
|
|
5562
|
-
financial_counterpart_account?: string | undefined;
|
|
5563
6148
|
folder_id?: string | undefined;
|
|
6149
|
+
financial_counterpart_account?: string | undefined;
|
|
5564
6150
|
} | undefined): import("../types/api").RequestData<{
|
|
5565
6151
|
date: string;
|
|
5566
6152
|
journal_id: string;
|
|
@@ -5593,8 +6179,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
5593
6179
|
}[];
|
|
5594
6180
|
pdf?: string | undefined;
|
|
5595
6181
|
}, params?: {
|
|
5596
|
-
financial_counterpart_account?: string | undefined;
|
|
5597
6182
|
folder_id?: string | undefined;
|
|
6183
|
+
financial_counterpart_account?: string | undefined;
|
|
5598
6184
|
} | undefined): import("../types/api").RequestData<{
|
|
5599
6185
|
date: string;
|
|
5600
6186
|
journal_id: string;
|
|
@@ -5694,8 +6280,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
5694
6280
|
start_date?: string | undefined;
|
|
5695
6281
|
end_date?: string | undefined;
|
|
5696
6282
|
}, params?: {
|
|
5697
|
-
force_currency_exchange?: "true" | "false" | undefined;
|
|
5698
6283
|
folder_id?: string | undefined;
|
|
6284
|
+
force_currency_exchange?: "true" | "false" | undefined;
|
|
5699
6285
|
} | undefined): import("../types/api").RequestData<{
|
|
5700
6286
|
reference?: string | undefined;
|
|
5701
6287
|
due_date?: string | undefined;
|
|
@@ -5735,6 +6321,18 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
5735
6321
|
matching_number: string;
|
|
5736
6322
|
balance: number;
|
|
5737
6323
|
}>;
|
|
6324
|
+
matchEntriesMultiple(body: {
|
|
6325
|
+
matchings: {
|
|
6326
|
+
entries: string[];
|
|
6327
|
+
partner_id: string;
|
|
6328
|
+
}[];
|
|
6329
|
+
}, params?: {
|
|
6330
|
+
folder_id?: string | undefined;
|
|
6331
|
+
} | undefined): import("../types/api").RequestData<{
|
|
6332
|
+
matching_number?: string | undefined;
|
|
6333
|
+
processed: boolean;
|
|
6334
|
+
error_msg?: Record<string, never> | undefined;
|
|
6335
|
+
}[]>;
|
|
5738
6336
|
getFolders(): import("../types/api").RequestData<{
|
|
5739
6337
|
id: string;
|
|
5740
6338
|
name: string;
|
|
@@ -5742,14 +6340,23 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
5742
6340
|
vat?: string | undefined;
|
|
5743
6341
|
company_number?: string | undefined;
|
|
5744
6342
|
}[]>;
|
|
6343
|
+
getBookyears(params?: {
|
|
6344
|
+
folder_id?: string | undefined;
|
|
6345
|
+
} | undefined): import("../types/api").RequestData<{
|
|
6346
|
+
name: string;
|
|
6347
|
+
start: string;
|
|
6348
|
+
end: string;
|
|
6349
|
+
closed: boolean;
|
|
6350
|
+
}[]>;
|
|
5745
6351
|
}>;
|
|
5746
6352
|
invoicing: import("../types/api").ApiFor<{
|
|
5747
6353
|
getInvoices(params?: {
|
|
5748
6354
|
date_from?: string | undefined;
|
|
5749
6355
|
date_to?: string | undefined;
|
|
5750
6356
|
payment_status?: "all" | "paid" | "unpaid" | undefined;
|
|
5751
|
-
invoice_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all" | undefined;
|
|
5752
6357
|
updated_after?: string | undefined;
|
|
6358
|
+
invoice_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all" | undefined;
|
|
6359
|
+
include_invoice_lines?: "true" | "false" | undefined;
|
|
5753
6360
|
} | undefined): import("../types/api").RequestData<{
|
|
5754
6361
|
id: string;
|
|
5755
6362
|
source_ref: {
|
|
@@ -5757,7 +6364,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
5757
6364
|
model?: string | undefined;
|
|
5758
6365
|
};
|
|
5759
6366
|
currency: string;
|
|
5760
|
-
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
6367
|
+
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all";
|
|
5761
6368
|
status: "draft" | "posted" | "cancelled" | "paid";
|
|
5762
6369
|
invoice_date: string;
|
|
5763
6370
|
tax_amount: number;
|
|
@@ -5774,6 +6381,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
5774
6381
|
tax_rate?: number | undefined;
|
|
5775
6382
|
account_number?: string | undefined;
|
|
5776
6383
|
tax_id?: string | undefined;
|
|
6384
|
+
tax_exemption_reason?: string | undefined;
|
|
5777
6385
|
unit_of_measure?: string | undefined;
|
|
5778
6386
|
product_id?: string | undefined;
|
|
5779
6387
|
product_code?: string | undefined;
|
|
@@ -5790,9 +6398,29 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
5790
6398
|
model?: string | undefined;
|
|
5791
6399
|
name?: string | undefined;
|
|
5792
6400
|
} | undefined;
|
|
6401
|
+
italian_specificities?: {
|
|
6402
|
+
stamp_duty_amount?: number | undefined;
|
|
6403
|
+
withholding_tax?: {
|
|
6404
|
+
rate: number;
|
|
6405
|
+
amount: number;
|
|
6406
|
+
reason?: "RT01" | "RT02" | "RT03" | "RT04" | "RT05" | "RT06" | undefined;
|
|
6407
|
+
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;
|
|
6408
|
+
} | undefined;
|
|
6409
|
+
welfare_fund?: {
|
|
6410
|
+
rate: number;
|
|
6411
|
+
amount: number;
|
|
6412
|
+
type?: "TC01" | "TC02" | "TC03" | "TC04" | "TC05" | "TC06" | "TC07" | "TC08" | "TC09" | "TC10" | "TC11" | "TC12" | "TC13" | "TC14" | "TC15" | "TC16" | "TC17" | "TC18" | "TC19" | "TC20" | "TC21" | "TC22" | undefined;
|
|
6413
|
+
} | undefined;
|
|
6414
|
+
payment_reporting?: {
|
|
6415
|
+
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;
|
|
6416
|
+
conditions?: "TP01" | "TP02" | "TP03" | undefined;
|
|
6417
|
+
} | undefined;
|
|
6418
|
+
} | undefined;
|
|
5793
6419
|
last_updated_on?: string | undefined;
|
|
5794
6420
|
outstanding_amount?: number | undefined;
|
|
5795
6421
|
accounting_date?: string | undefined;
|
|
6422
|
+
payment_method_id?: string | undefined;
|
|
6423
|
+
currency_exchange_rate: number;
|
|
5796
6424
|
}[]>;
|
|
5797
6425
|
getInvoiceById(invoiceId: string, params?: {
|
|
5798
6426
|
include_pdf?: "true" | "false" | undefined;
|
|
@@ -5803,7 +6431,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
5803
6431
|
model?: string | undefined;
|
|
5804
6432
|
};
|
|
5805
6433
|
currency: string;
|
|
5806
|
-
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
6434
|
+
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all";
|
|
5807
6435
|
status: "draft" | "posted" | "cancelled" | "paid";
|
|
5808
6436
|
invoice_date: string;
|
|
5809
6437
|
tax_amount: number;
|
|
@@ -5820,6 +6448,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
5820
6448
|
tax_rate?: number | undefined;
|
|
5821
6449
|
account_number?: string | undefined;
|
|
5822
6450
|
tax_id?: string | undefined;
|
|
6451
|
+
tax_exemption_reason?: string | undefined;
|
|
5823
6452
|
unit_of_measure?: string | undefined;
|
|
5824
6453
|
product_id?: string | undefined;
|
|
5825
6454
|
product_code?: string | undefined;
|
|
@@ -5836,13 +6465,33 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
5836
6465
|
model?: string | undefined;
|
|
5837
6466
|
name?: string | undefined;
|
|
5838
6467
|
} | undefined;
|
|
6468
|
+
italian_specificities?: {
|
|
6469
|
+
stamp_duty_amount?: number | undefined;
|
|
6470
|
+
withholding_tax?: {
|
|
6471
|
+
rate: number;
|
|
6472
|
+
amount: number;
|
|
6473
|
+
reason?: "RT01" | "RT02" | "RT03" | "RT04" | "RT05" | "RT06" | undefined;
|
|
6474
|
+
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;
|
|
6475
|
+
} | undefined;
|
|
6476
|
+
welfare_fund?: {
|
|
6477
|
+
rate: number;
|
|
6478
|
+
amount: number;
|
|
6479
|
+
type?: "TC01" | "TC02" | "TC03" | "TC04" | "TC05" | "TC06" | "TC07" | "TC08" | "TC09" | "TC10" | "TC11" | "TC12" | "TC13" | "TC14" | "TC15" | "TC16" | "TC17" | "TC18" | "TC19" | "TC20" | "TC21" | "TC22" | undefined;
|
|
6480
|
+
} | undefined;
|
|
6481
|
+
payment_reporting?: {
|
|
6482
|
+
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;
|
|
6483
|
+
conditions?: "TP01" | "TP02" | "TP03" | undefined;
|
|
6484
|
+
} | undefined;
|
|
6485
|
+
} | undefined;
|
|
5839
6486
|
last_updated_on?: string | undefined;
|
|
5840
6487
|
outstanding_amount?: number | undefined;
|
|
5841
6488
|
accounting_date?: string | undefined;
|
|
6489
|
+
payment_method_id?: string | undefined;
|
|
6490
|
+
currency_exchange_rate: number;
|
|
5842
6491
|
}>;
|
|
5843
6492
|
createInvoice(invoice: {
|
|
5844
6493
|
currency: string;
|
|
5845
|
-
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
6494
|
+
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all";
|
|
5846
6495
|
status: "draft" | "posted" | "cancelled" | "paid";
|
|
5847
6496
|
invoice_date: string;
|
|
5848
6497
|
tax_amount: number;
|
|
@@ -5859,6 +6508,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
5859
6508
|
tax_rate?: number | undefined;
|
|
5860
6509
|
account_number?: string | undefined;
|
|
5861
6510
|
tax_id?: string | undefined;
|
|
6511
|
+
tax_exemption_reason?: string | undefined;
|
|
5862
6512
|
unit_of_measure?: string | undefined;
|
|
5863
6513
|
product_id?: string | undefined;
|
|
5864
6514
|
product_code?: string | undefined;
|
|
@@ -5875,6 +6525,24 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
5875
6525
|
model?: string | undefined;
|
|
5876
6526
|
name?: string | undefined;
|
|
5877
6527
|
} | undefined;
|
|
6528
|
+
italian_specificities?: {
|
|
6529
|
+
stamp_duty_amount?: number | undefined;
|
|
6530
|
+
withholding_tax?: {
|
|
6531
|
+
rate: number;
|
|
6532
|
+
amount: number;
|
|
6533
|
+
reason?: "RT01" | "RT02" | "RT03" | "RT04" | "RT05" | "RT06" | undefined;
|
|
6534
|
+
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;
|
|
6535
|
+
} | undefined;
|
|
6536
|
+
welfare_fund?: {
|
|
6537
|
+
rate: number;
|
|
6538
|
+
amount: number;
|
|
6539
|
+
type?: "TC01" | "TC02" | "TC03" | "TC04" | "TC05" | "TC06" | "TC07" | "TC08" | "TC09" | "TC10" | "TC11" | "TC12" | "TC13" | "TC14" | "TC15" | "TC16" | "TC17" | "TC18" | "TC19" | "TC20" | "TC21" | "TC22" | undefined;
|
|
6540
|
+
} | undefined;
|
|
6541
|
+
payment_reporting?: {
|
|
6542
|
+
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;
|
|
6543
|
+
conditions?: "TP01" | "TP02" | "TP03" | undefined;
|
|
6544
|
+
} | undefined;
|
|
6545
|
+
} | undefined;
|
|
5878
6546
|
}): import("../types/api").RequestData<{
|
|
5879
6547
|
id: string;
|
|
5880
6548
|
source_ref: {
|
|
@@ -5882,7 +6550,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
5882
6550
|
model?: string | undefined;
|
|
5883
6551
|
};
|
|
5884
6552
|
currency: string;
|
|
5885
|
-
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
6553
|
+
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all";
|
|
5886
6554
|
status: "draft" | "posted" | "cancelled" | "paid";
|
|
5887
6555
|
invoice_date: string;
|
|
5888
6556
|
tax_amount: number;
|
|
@@ -5899,6 +6567,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
5899
6567
|
tax_rate?: number | undefined;
|
|
5900
6568
|
account_number?: string | undefined;
|
|
5901
6569
|
tax_id?: string | undefined;
|
|
6570
|
+
tax_exemption_reason?: string | undefined;
|
|
5902
6571
|
unit_of_measure?: string | undefined;
|
|
5903
6572
|
product_id?: string | undefined;
|
|
5904
6573
|
product_code?: string | undefined;
|
|
@@ -5915,9 +6584,29 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
5915
6584
|
model?: string | undefined;
|
|
5916
6585
|
name?: string | undefined;
|
|
5917
6586
|
} | undefined;
|
|
6587
|
+
italian_specificities?: {
|
|
6588
|
+
stamp_duty_amount?: number | undefined;
|
|
6589
|
+
withholding_tax?: {
|
|
6590
|
+
rate: number;
|
|
6591
|
+
amount: number;
|
|
6592
|
+
reason?: "RT01" | "RT02" | "RT03" | "RT04" | "RT05" | "RT06" | undefined;
|
|
6593
|
+
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;
|
|
6594
|
+
} | undefined;
|
|
6595
|
+
welfare_fund?: {
|
|
6596
|
+
rate: number;
|
|
6597
|
+
amount: number;
|
|
6598
|
+
type?: "TC01" | "TC02" | "TC03" | "TC04" | "TC05" | "TC06" | "TC07" | "TC08" | "TC09" | "TC10" | "TC11" | "TC12" | "TC13" | "TC14" | "TC15" | "TC16" | "TC17" | "TC18" | "TC19" | "TC20" | "TC21" | "TC22" | undefined;
|
|
6599
|
+
} | undefined;
|
|
6600
|
+
payment_reporting?: {
|
|
6601
|
+
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;
|
|
6602
|
+
conditions?: "TP01" | "TP02" | "TP03" | undefined;
|
|
6603
|
+
} | undefined;
|
|
6604
|
+
} | undefined;
|
|
5918
6605
|
last_updated_on?: string | undefined;
|
|
5919
6606
|
outstanding_amount?: number | undefined;
|
|
5920
6607
|
accounting_date?: string | undefined;
|
|
6608
|
+
payment_method_id?: string | undefined;
|
|
6609
|
+
currency_exchange_rate: number;
|
|
5921
6610
|
}>;
|
|
5922
6611
|
getProducts(): import("../types/api").RequestData<{
|
|
5923
6612
|
id: string;
|
|
@@ -6214,6 +6903,31 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
6214
6903
|
}[];
|
|
6215
6904
|
external_reference?: string | undefined;
|
|
6216
6905
|
}>;
|
|
6906
|
+
getPayments(): import("../types/api").RequestData<{
|
|
6907
|
+
id: string;
|
|
6908
|
+
source_ref: {
|
|
6909
|
+
id?: string | undefined;
|
|
6910
|
+
model?: string | undefined;
|
|
6911
|
+
};
|
|
6912
|
+
status: "unknown" | "pending" | "completed" | "canceled" | "failed" | "authorized";
|
|
6913
|
+
description: string;
|
|
6914
|
+
amount: number;
|
|
6915
|
+
currency: string;
|
|
6916
|
+
payment_date: string;
|
|
6917
|
+
partner_id: string;
|
|
6918
|
+
payment_method_id?: string | undefined;
|
|
6919
|
+
payment_method_name?: string | undefined;
|
|
6920
|
+
invoice_id?: string | undefined;
|
|
6921
|
+
invoice_number?: string | undefined;
|
|
6922
|
+
}[]>;
|
|
6923
|
+
getPaymentMethods(): import("../types/api").RequestData<{
|
|
6924
|
+
id: string;
|
|
6925
|
+
source_ref: {
|
|
6926
|
+
id?: string | undefined;
|
|
6927
|
+
model?: string | undefined;
|
|
6928
|
+
};
|
|
6929
|
+
name: string;
|
|
6930
|
+
}[]>;
|
|
6217
6931
|
}>;
|
|
6218
6932
|
ecommerce: import("../types/api").ApiFor<{
|
|
6219
6933
|
getCustomers(): import("../types/api").RequestData<{
|
|
@@ -7353,6 +8067,52 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
7353
8067
|
logData: (logs: import("../types/consumers").ConsumerLog[]) => Promise<import("../types/sync").SimpleResponseModel>;
|
|
7354
8068
|
setConnectionId: (connectionId: string) => Promise<void>;
|
|
7355
8069
|
setIntegrationId: (integrationId: string) => Promise<void>;
|
|
8070
|
+
updateConsumer: (body: {
|
|
8071
|
+
name?: string | undefined;
|
|
8072
|
+
email?: string | undefined;
|
|
8073
|
+
internal_reference?: string | undefined;
|
|
8074
|
+
redirect_url?: string | undefined;
|
|
8075
|
+
}) => Promise<{
|
|
8076
|
+
consumerid: string;
|
|
8077
|
+
name: string;
|
|
8078
|
+
email?: string | undefined;
|
|
8079
|
+
internal_reference?: string | undefined;
|
|
8080
|
+
redirect_url?: string | undefined;
|
|
8081
|
+
}>;
|
|
8082
|
+
updateFlowConfig: (syncId: string, flowId: string, body: {
|
|
8083
|
+
triggerid: string;
|
|
8084
|
+
data: Record<string, never>;
|
|
8085
|
+
}) => Promise<{
|
|
8086
|
+
name: string;
|
|
8087
|
+
description?: string | undefined;
|
|
8088
|
+
id: string;
|
|
8089
|
+
config?: {
|
|
8090
|
+
definitionFields?: Record<string, never>[] | undefined;
|
|
8091
|
+
doorkeyFields?: Record<string, never>[] | undefined;
|
|
8092
|
+
customFields?: Record<string, never>[] | undefined;
|
|
8093
|
+
datastores: {
|
|
8094
|
+
id?: string | undefined;
|
|
8095
|
+
name: string;
|
|
8096
|
+
status: "active" | "inactive";
|
|
8097
|
+
definition: {
|
|
8098
|
+
columns: {
|
|
8099
|
+
name: string;
|
|
8100
|
+
title: string;
|
|
8101
|
+
type: string;
|
|
8102
|
+
optional: boolean;
|
|
8103
|
+
}[];
|
|
8104
|
+
search_column?: string | undefined;
|
|
8105
|
+
};
|
|
8106
|
+
}[];
|
|
8107
|
+
} | undefined;
|
|
8108
|
+
values: Record<string, never>;
|
|
8109
|
+
enabled_on?: string | undefined;
|
|
8110
|
+
trigger: {
|
|
8111
|
+
id: string;
|
|
8112
|
+
type: "event" | "timer";
|
|
8113
|
+
cronschedule?: string | undefined;
|
|
8114
|
+
};
|
|
8115
|
+
}>;
|
|
7356
8116
|
}, context: any) => any, log?: boolean) => Promise<void>;
|
|
7357
8117
|
flowId: string;
|
|
7358
8118
|
name: string;
|
|
@@ -7365,10 +8125,17 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
7365
8125
|
end?: string | undefined;
|
|
7366
8126
|
status: string;
|
|
7367
8127
|
}>;
|
|
8128
|
+
getConsumerExecutions: (consumerId: string) => Promise<{
|
|
8129
|
+
id: string;
|
|
8130
|
+
start: string;
|
|
8131
|
+
end?: string | undefined;
|
|
8132
|
+
status: string;
|
|
8133
|
+
}[]>;
|
|
7368
8134
|
executeLocal: (process: (consumer: (internalApi: InternalAPI, body: {
|
|
7369
8135
|
consumerid: string;
|
|
7370
8136
|
name: string;
|
|
7371
8137
|
email?: string | undefined;
|
|
8138
|
+
internal_reference?: string | undefined;
|
|
7372
8139
|
redirect_url?: string | undefined;
|
|
7373
8140
|
}) => {
|
|
7374
8141
|
consumerId: string;
|
|
@@ -7494,6 +8261,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
7494
8261
|
discounts: {
|
|
7495
8262
|
name?: string | undefined;
|
|
7496
8263
|
total: number;
|
|
8264
|
+
type: "OFFERED" | "UNKNOWN" | "LOSS";
|
|
7497
8265
|
}[];
|
|
7498
8266
|
product_id?: string | undefined;
|
|
7499
8267
|
accounting_category_id?: string | undefined;
|
|
@@ -7571,6 +8339,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
7571
8339
|
discounts: {
|
|
7572
8340
|
name?: string | undefined;
|
|
7573
8341
|
total: number;
|
|
8342
|
+
type: "OFFERED" | "UNKNOWN" | "LOSS";
|
|
7574
8343
|
}[];
|
|
7575
8344
|
product_id?: string | undefined;
|
|
7576
8345
|
accounting_category_id?: string | undefined;
|
|
@@ -7745,6 +8514,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
7745
8514
|
discounts: {
|
|
7746
8515
|
name?: string | undefined;
|
|
7747
8516
|
total: number;
|
|
8517
|
+
type: "OFFERED" | "UNKNOWN" | "LOSS";
|
|
7748
8518
|
}[];
|
|
7749
8519
|
product_id?: string | undefined;
|
|
7750
8520
|
accounting_category_id?: string | undefined;
|
|
@@ -7803,12 +8573,197 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
7803
8573
|
loyalty?: number | undefined;
|
|
7804
8574
|
customer_id?: string | undefined;
|
|
7805
8575
|
location_id?: string | undefined;
|
|
7806
|
-
taxes?: {
|
|
7807
|
-
tax_rate: number;
|
|
7808
|
-
tax_amount: number;
|
|
7809
|
-
total: number;
|
|
8576
|
+
taxes?: {
|
|
8577
|
+
tax_rate: number;
|
|
8578
|
+
tax_amount: number;
|
|
8579
|
+
total: number;
|
|
8580
|
+
}[] | undefined;
|
|
8581
|
+
guests?: number | undefined;
|
|
8582
|
+
items: {
|
|
8583
|
+
id: string;
|
|
8584
|
+
source_ref: {
|
|
8585
|
+
id?: string | undefined;
|
|
8586
|
+
model?: string | undefined;
|
|
8587
|
+
};
|
|
8588
|
+
type?: "menu" | "product" | undefined;
|
|
8589
|
+
menu_id?: string | undefined;
|
|
8590
|
+
quantity: number;
|
|
8591
|
+
unit_price: number;
|
|
8592
|
+
total: number;
|
|
8593
|
+
tax_amount: number;
|
|
8594
|
+
tax_rate?: number | undefined;
|
|
8595
|
+
description?: string | undefined;
|
|
8596
|
+
discounts: {
|
|
8597
|
+
name?: string | undefined;
|
|
8598
|
+
total: number;
|
|
8599
|
+
type: "OFFERED" | "UNKNOWN" | "LOSS";
|
|
8600
|
+
}[];
|
|
8601
|
+
product_id?: string | undefined;
|
|
8602
|
+
accounting_category_id?: string | undefined;
|
|
8603
|
+
}[];
|
|
8604
|
+
service_id?: string | undefined;
|
|
8605
|
+
reservation?: {
|
|
8606
|
+
id: string;
|
|
8607
|
+
source_ref: {
|
|
8608
|
+
id?: string | undefined;
|
|
8609
|
+
model?: string | undefined;
|
|
8610
|
+
};
|
|
8611
|
+
start_date?: string | undefined;
|
|
8612
|
+
end_date?: string | undefined;
|
|
8613
|
+
creation_date?: string | undefined;
|
|
8614
|
+
resource_id?: {
|
|
8615
|
+
id: string;
|
|
8616
|
+
source_ref: {
|
|
8617
|
+
id?: string | undefined;
|
|
8618
|
+
model?: string | undefined;
|
|
8619
|
+
};
|
|
8620
|
+
} | undefined;
|
|
8621
|
+
resource_name?: string | undefined;
|
|
8622
|
+
resource_identifier?: string | undefined;
|
|
8623
|
+
} | undefined;
|
|
8624
|
+
bills?: {
|
|
8625
|
+
id: string;
|
|
8626
|
+
source_ref: {
|
|
8627
|
+
id?: string | undefined;
|
|
8628
|
+
model?: string | undefined;
|
|
8629
|
+
};
|
|
8630
|
+
invoice_number?: string | undefined;
|
|
8631
|
+
creation_date?: string | undefined;
|
|
8632
|
+
closing_date?: string | undefined;
|
|
8633
|
+
partners?: {
|
|
8634
|
+
id: string;
|
|
8635
|
+
source_ref: {
|
|
8636
|
+
id?: string | undefined;
|
|
8637
|
+
model?: string | undefined;
|
|
8638
|
+
};
|
|
8639
|
+
type: "owner" | "account";
|
|
8640
|
+
address?: {
|
|
8641
|
+
address_type?: string | undefined;
|
|
8642
|
+
name?: string | undefined;
|
|
8643
|
+
street?: string | undefined;
|
|
8644
|
+
number?: string | undefined;
|
|
8645
|
+
box?: string | undefined;
|
|
8646
|
+
city?: string | undefined;
|
|
8647
|
+
postal_code?: string | undefined;
|
|
8648
|
+
country?: string | undefined;
|
|
8649
|
+
} | undefined;
|
|
8650
|
+
first_name?: string | undefined;
|
|
8651
|
+
last_name?: string | undefined;
|
|
8652
|
+
company_name?: string | undefined;
|
|
8653
|
+
}[] | undefined;
|
|
8654
|
+
}[] | undefined;
|
|
8655
|
+
}[]>;
|
|
8656
|
+
getPaymentMethods(params?: {
|
|
8657
|
+
location_id?: string | undefined;
|
|
8658
|
+
} | undefined): import("../types/api").RequestData<{
|
|
8659
|
+
id: string;
|
|
8660
|
+
source_ref: {
|
|
8661
|
+
id?: string | undefined;
|
|
8662
|
+
model?: string | undefined;
|
|
8663
|
+
};
|
|
8664
|
+
name: string;
|
|
8665
|
+
extra?: string | undefined;
|
|
8666
|
+
ledger_account_code?: string | undefined;
|
|
8667
|
+
}[]>;
|
|
8668
|
+
getClosure(date: string, params?: {
|
|
8669
|
+
location_id?: string | undefined;
|
|
8670
|
+
} | undefined): import("../types/api").RequestData<{
|
|
8671
|
+
date: string;
|
|
8672
|
+
status: "open" | "closed";
|
|
8673
|
+
}>;
|
|
8674
|
+
getPayments(params: {
|
|
8675
|
+
date_from: string;
|
|
8676
|
+
date_to: string;
|
|
8677
|
+
}): import("../types/api").RequestData<{
|
|
8678
|
+
id?: string | undefined;
|
|
8679
|
+
source_ref: {
|
|
8680
|
+
id?: string | undefined;
|
|
8681
|
+
model?: string | undefined;
|
|
8682
|
+
};
|
|
8683
|
+
payment_method_id?: string | undefined;
|
|
8684
|
+
payment_method_name?: string | undefined;
|
|
8685
|
+
total: number;
|
|
8686
|
+
tip: number;
|
|
8687
|
+
status: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised";
|
|
8688
|
+
currency?: string | undefined;
|
|
8689
|
+
date?: string | undefined;
|
|
8690
|
+
partner_id?: {
|
|
8691
|
+
id: string;
|
|
8692
|
+
source_ref: {
|
|
8693
|
+
id?: string | undefined;
|
|
8694
|
+
model?: string | undefined;
|
|
8695
|
+
};
|
|
8696
|
+
} | undefined;
|
|
8697
|
+
}[]>;
|
|
8698
|
+
getAccountingCategories(params?: {} | undefined): import("../types/api").RequestData<{
|
|
8699
|
+
id: string;
|
|
8700
|
+
source_ref: {
|
|
8701
|
+
id?: string | undefined;
|
|
8702
|
+
model?: string | undefined;
|
|
8703
|
+
};
|
|
8704
|
+
name: string;
|
|
8705
|
+
code?: string | undefined;
|
|
8706
|
+
ledger_account_code?: string | undefined;
|
|
8707
|
+
posting_account_code?: string | undefined;
|
|
8708
|
+
}[]>;
|
|
8709
|
+
getCustomers(params?: {} | undefined): import("../types/api").RequestData<{
|
|
8710
|
+
id: string;
|
|
8711
|
+
source_ref: {
|
|
8712
|
+
id?: string | undefined;
|
|
8713
|
+
model?: string | undefined;
|
|
8714
|
+
};
|
|
8715
|
+
first_name?: string | undefined;
|
|
8716
|
+
last_name?: string | undefined;
|
|
8717
|
+
company_name?: string | undefined;
|
|
8718
|
+
phone?: string | undefined;
|
|
8719
|
+
email?: string | undefined;
|
|
8720
|
+
account_number?: string | undefined;
|
|
8721
|
+
created_on?: string | undefined;
|
|
8722
|
+
addresses?: {
|
|
8723
|
+
address_type?: string | undefined;
|
|
8724
|
+
name?: string | undefined;
|
|
8725
|
+
street?: string | undefined;
|
|
8726
|
+
number?: string | undefined;
|
|
8727
|
+
box?: string | undefined;
|
|
8728
|
+
city?: string | undefined;
|
|
8729
|
+
postal_code?: string | undefined;
|
|
8730
|
+
country?: string | undefined;
|
|
8731
|
+
}[] | undefined;
|
|
8732
|
+
}[]>;
|
|
8733
|
+
getInvoices(params?: {
|
|
8734
|
+
date_from: string;
|
|
8735
|
+
date_to: string;
|
|
8736
|
+
location_id?: string | undefined;
|
|
8737
|
+
} | undefined): import("../types/api").RequestData<{
|
|
8738
|
+
id: string;
|
|
8739
|
+
source_ref: {
|
|
8740
|
+
id?: string | undefined;
|
|
8741
|
+
model?: string | undefined;
|
|
8742
|
+
};
|
|
8743
|
+
invoice_number?: string | undefined;
|
|
8744
|
+
creation_date?: string | undefined;
|
|
8745
|
+
closing_date?: string | undefined;
|
|
8746
|
+
partners?: {
|
|
8747
|
+
id: string;
|
|
8748
|
+
source_ref: {
|
|
8749
|
+
id?: string | undefined;
|
|
8750
|
+
model?: string | undefined;
|
|
8751
|
+
};
|
|
8752
|
+
type: "owner" | "account";
|
|
8753
|
+
address?: {
|
|
8754
|
+
address_type?: string | undefined;
|
|
8755
|
+
name?: string | undefined;
|
|
8756
|
+
street?: string | undefined;
|
|
8757
|
+
number?: string | undefined;
|
|
8758
|
+
box?: string | undefined;
|
|
8759
|
+
city?: string | undefined;
|
|
8760
|
+
postal_code?: string | undefined;
|
|
8761
|
+
country?: string | undefined;
|
|
8762
|
+
} | undefined;
|
|
8763
|
+
first_name?: string | undefined;
|
|
8764
|
+
last_name?: string | undefined;
|
|
8765
|
+
company_name?: string | undefined;
|
|
7810
8766
|
}[] | undefined;
|
|
7811
|
-
guests?: number | undefined;
|
|
7812
8767
|
items: {
|
|
7813
8768
|
id: string;
|
|
7814
8769
|
source_ref: {
|
|
@@ -7826,57 +8781,52 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
7826
8781
|
discounts: {
|
|
7827
8782
|
name?: string | undefined;
|
|
7828
8783
|
total: number;
|
|
8784
|
+
type: "OFFERED" | "UNKNOWN" | "LOSS";
|
|
7829
8785
|
}[];
|
|
7830
8786
|
product_id?: string | undefined;
|
|
7831
8787
|
accounting_category_id?: string | undefined;
|
|
7832
8788
|
}[];
|
|
7833
|
-
|
|
7834
|
-
}[]>;
|
|
7835
|
-
getPaymentMethods(params?: {
|
|
7836
|
-
location_id?: string | undefined;
|
|
7837
|
-
} | undefined): import("../types/api").RequestData<{
|
|
7838
|
-
id: string;
|
|
7839
|
-
source_ref: {
|
|
7840
|
-
id?: string | undefined;
|
|
7841
|
-
model?: string | undefined;
|
|
7842
|
-
};
|
|
7843
|
-
name: string;
|
|
7844
|
-
extra?: string | undefined;
|
|
7845
|
-
ledger_account_code?: string | undefined;
|
|
7846
|
-
}[]>;
|
|
7847
|
-
getClosure(date: string, params?: {
|
|
7848
|
-
location_id?: string | undefined;
|
|
7849
|
-
} | undefined): import("../types/api").RequestData<{
|
|
7850
|
-
date: string;
|
|
7851
|
-
status: "open" | "closed";
|
|
7852
|
-
}>;
|
|
7853
|
-
getPayments(params: {
|
|
7854
|
-
date_from: string;
|
|
7855
|
-
date_to: string;
|
|
7856
|
-
}): import("../types/api").RequestData<{
|
|
7857
|
-
id?: string | undefined;
|
|
7858
|
-
source_ref: {
|
|
7859
|
-
id?: string | undefined;
|
|
7860
|
-
model?: string | undefined;
|
|
7861
|
-
};
|
|
7862
|
-
payment_method_id?: string | undefined;
|
|
7863
|
-
payment_method_name?: string | undefined;
|
|
7864
|
-
total: number;
|
|
7865
|
-
tip: number;
|
|
7866
|
-
status: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised";
|
|
7867
|
-
currency?: string | undefined;
|
|
7868
|
-
date?: string | undefined;
|
|
7869
|
-
}[]>;
|
|
7870
|
-
getAccountingCategories(params?: {} | undefined): import("../types/api").RequestData<{
|
|
7871
|
-
id: string;
|
|
7872
|
-
source_ref: {
|
|
8789
|
+
payments: {
|
|
7873
8790
|
id?: string | undefined;
|
|
7874
|
-
|
|
7875
|
-
|
|
7876
|
-
|
|
7877
|
-
|
|
7878
|
-
|
|
7879
|
-
|
|
8791
|
+
source_ref: {
|
|
8792
|
+
id?: string | undefined;
|
|
8793
|
+
model?: string | undefined;
|
|
8794
|
+
};
|
|
8795
|
+
payment_method_id?: string | undefined;
|
|
8796
|
+
payment_method_name?: string | undefined;
|
|
8797
|
+
total: number;
|
|
8798
|
+
tip: number;
|
|
8799
|
+
status: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised";
|
|
8800
|
+
currency?: string | undefined;
|
|
8801
|
+
date?: string | undefined;
|
|
8802
|
+
partner_id?: {
|
|
8803
|
+
id: string;
|
|
8804
|
+
source_ref: {
|
|
8805
|
+
id?: string | undefined;
|
|
8806
|
+
model?: string | undefined;
|
|
8807
|
+
};
|
|
8808
|
+
} | undefined;
|
|
8809
|
+
}[];
|
|
8810
|
+
service_id?: string | undefined;
|
|
8811
|
+
reservation?: {
|
|
8812
|
+
id: string;
|
|
8813
|
+
source_ref: {
|
|
8814
|
+
id?: string | undefined;
|
|
8815
|
+
model?: string | undefined;
|
|
8816
|
+
};
|
|
8817
|
+
start_date?: string | undefined;
|
|
8818
|
+
end_date?: string | undefined;
|
|
8819
|
+
creation_date?: string | undefined;
|
|
8820
|
+
resource_id?: {
|
|
8821
|
+
id: string;
|
|
8822
|
+
source_ref: {
|
|
8823
|
+
id?: string | undefined;
|
|
8824
|
+
model?: string | undefined;
|
|
8825
|
+
};
|
|
8826
|
+
} | undefined;
|
|
8827
|
+
resource_name?: string | undefined;
|
|
8828
|
+
resource_identifier?: string | undefined;
|
|
8829
|
+
} | undefined;
|
|
7880
8830
|
}[]>;
|
|
7881
8831
|
}>;
|
|
7882
8832
|
payment: import("../types/api").ApiFor<{
|
|
@@ -7929,8 +8879,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
7929
8879
|
payment_id?: string | undefined;
|
|
7930
8880
|
}[]>;
|
|
7931
8881
|
getPayment(params: {
|
|
7932
|
-
payment_id: string;
|
|
7933
8882
|
consumer_id: string;
|
|
8883
|
+
payment_id: string;
|
|
7934
8884
|
}): import("../types/api").RequestData<{
|
|
7935
8885
|
id: string;
|
|
7936
8886
|
source_ref: {
|
|
@@ -7973,6 +8923,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
7973
8923
|
getClients(params?: {
|
|
7974
8924
|
search?: string | undefined;
|
|
7975
8925
|
folder_id?: string | undefined;
|
|
8926
|
+
updated_after?: string | undefined;
|
|
7976
8927
|
} | undefined): import("../types/api").RequestData<{
|
|
7977
8928
|
external_reference?: string | undefined;
|
|
7978
8929
|
first_name?: string | undefined;
|
|
@@ -8043,8 +8994,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
8043
8994
|
}[];
|
|
8044
8995
|
account_number?: string | undefined;
|
|
8045
8996
|
}, params?: {
|
|
8046
|
-
force_merge?: string | undefined;
|
|
8047
8997
|
folder_id?: string | undefined;
|
|
8998
|
+
force_merge?: string | undefined;
|
|
8048
8999
|
} | undefined): import("../types/api").RequestData<{
|
|
8049
9000
|
external_reference?: string | undefined;
|
|
8050
9001
|
first_name?: string | undefined;
|
|
@@ -8192,6 +9143,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
8192
9143
|
getSuppliers(params?: {
|
|
8193
9144
|
search?: string | undefined;
|
|
8194
9145
|
folder_id?: string | undefined;
|
|
9146
|
+
updated_after?: string | undefined;
|
|
8195
9147
|
} | undefined): import("../types/api").RequestData<{
|
|
8196
9148
|
external_reference?: string | undefined;
|
|
8197
9149
|
first_name?: string | undefined;
|
|
@@ -8262,8 +9214,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
8262
9214
|
}[];
|
|
8263
9215
|
account_number?: string | undefined;
|
|
8264
9216
|
}, params?: {
|
|
8265
|
-
force_merge?: string | undefined;
|
|
8266
9217
|
folder_id?: string | undefined;
|
|
9218
|
+
force_merge?: string | undefined;
|
|
8267
9219
|
} | undefined): import("../types/api").RequestData<{
|
|
8268
9220
|
external_reference?: string | undefined;
|
|
8269
9221
|
first_name?: string | undefined;
|
|
@@ -8457,9 +9409,9 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
8457
9409
|
analytic_account?: string | undefined;
|
|
8458
9410
|
}[];
|
|
8459
9411
|
}, params?: {
|
|
9412
|
+
folder_id?: string | undefined;
|
|
8460
9413
|
force_financial_period?: string | undefined;
|
|
8461
9414
|
regroup_lines?: "true" | "false" | undefined;
|
|
8462
|
-
folder_id?: string | undefined;
|
|
8463
9415
|
} | undefined): import("../types/api").RequestData<{
|
|
8464
9416
|
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
8465
9417
|
invoice_number?: string | undefined;
|
|
@@ -8560,9 +9512,9 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
8560
9512
|
}[];
|
|
8561
9513
|
}[];
|
|
8562
9514
|
}, params?: {
|
|
9515
|
+
folder_id?: string | undefined;
|
|
8563
9516
|
force_financial_period?: string | undefined;
|
|
8564
9517
|
regroup_lines?: "true" | "false" | undefined;
|
|
8565
|
-
folder_id?: string | undefined;
|
|
8566
9518
|
} | undefined): import("../types/api").RequestData<{
|
|
8567
9519
|
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
8568
9520
|
invoice_number?: string | undefined;
|
|
@@ -8621,6 +9573,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
8621
9573
|
journal_ids?: string | undefined;
|
|
8622
9574
|
include_payments?: "true" | "false" | undefined;
|
|
8623
9575
|
payment_status?: "all" | "paid" | "unpaid" | undefined;
|
|
9576
|
+
updated_after?: string | undefined;
|
|
8624
9577
|
} | undefined): import("../types/api").RequestData<{
|
|
8625
9578
|
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
8626
9579
|
invoice_number?: string | undefined;
|
|
@@ -8667,8 +9620,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
8667
9620
|
}[];
|
|
8668
9621
|
}[]>;
|
|
8669
9622
|
getInvoice(invoiceId: string, params?: {
|
|
8670
|
-
include_payments?: "true" | "false" | undefined;
|
|
8671
9623
|
folder_id?: string | undefined;
|
|
9624
|
+
include_payments?: "true" | "false" | undefined;
|
|
8672
9625
|
} | undefined): import("../types/api").RequestData<{
|
|
8673
9626
|
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
8674
9627
|
invoice_number?: string | undefined;
|
|
@@ -8715,8 +9668,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
8715
9668
|
}[];
|
|
8716
9669
|
}>;
|
|
8717
9670
|
getInvoiceWithMultiplePlans(invoiceId: string, params?: {
|
|
8718
|
-
include_payments?: "true" | "false" | undefined;
|
|
8719
9671
|
folder_id?: string | undefined;
|
|
9672
|
+
include_payments?: "true" | "false" | undefined;
|
|
8720
9673
|
} | undefined): import("../types/api").RequestData<{
|
|
8721
9674
|
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
8722
9675
|
invoice_number?: string | undefined;
|
|
@@ -8775,6 +9728,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
8775
9728
|
journal_ids?: string | undefined;
|
|
8776
9729
|
include_payments?: "true" | "false" | undefined;
|
|
8777
9730
|
payment_status?: "all" | "paid" | "unpaid" | undefined;
|
|
9731
|
+
updated_after?: string | undefined;
|
|
8778
9732
|
} | undefined): import("../types/api").RequestData<{
|
|
8779
9733
|
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
8780
9734
|
invoice_number?: string | undefined;
|
|
@@ -8947,9 +9901,10 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
8947
9901
|
analytic_plan: string;
|
|
8948
9902
|
}[]>;
|
|
8949
9903
|
getJournalEntries(params: {
|
|
8950
|
-
date_from
|
|
8951
|
-
date_to
|
|
9904
|
+
date_from?: string | undefined;
|
|
9905
|
+
date_to?: string | undefined;
|
|
8952
9906
|
folder_id?: string | undefined;
|
|
9907
|
+
updated_after?: string | undefined;
|
|
8953
9908
|
unposted_allowed: "true" | "false";
|
|
8954
9909
|
journal_id: string;
|
|
8955
9910
|
partner_id?: string | undefined;
|
|
@@ -8979,9 +9934,10 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
8979
9934
|
}[];
|
|
8980
9935
|
}[]>;
|
|
8981
9936
|
getJournalEntriesWithMultiplePlans(params: {
|
|
8982
|
-
date_from
|
|
8983
|
-
date_to
|
|
9937
|
+
date_from?: string | undefined;
|
|
9938
|
+
date_to?: string | undefined;
|
|
8984
9939
|
folder_id?: string | undefined;
|
|
9940
|
+
updated_after?: string | undefined;
|
|
8985
9941
|
unposted_allowed: "true" | "false";
|
|
8986
9942
|
journal_id: string;
|
|
8987
9943
|
partner_id?: string | undefined;
|
|
@@ -9016,9 +9972,9 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
9016
9972
|
}[];
|
|
9017
9973
|
}[]>;
|
|
9018
9974
|
getPaymentsByInvoiceId(invoice_id: string, params?: {
|
|
9019
|
-
folder_id?: string | undefined;
|
|
9020
9975
|
page?: number | undefined;
|
|
9021
9976
|
size?: number | undefined;
|
|
9977
|
+
folder_id?: string | undefined;
|
|
9022
9978
|
} | undefined): import("../types/api").RequestData<{
|
|
9023
9979
|
id: string;
|
|
9024
9980
|
name: string;
|
|
@@ -9142,8 +10098,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
9142
10098
|
attachPDF(invoice_id: string, attachment: {
|
|
9143
10099
|
base64_string: string;
|
|
9144
10100
|
}, params?: {
|
|
9145
|
-
overwrite_existing?: "true" | "false" | undefined;
|
|
9146
10101
|
folder_id?: string | undefined;
|
|
10102
|
+
overwrite_existing?: "true" | "false" | undefined;
|
|
9147
10103
|
} | undefined): import("../types/api").RequestData<{
|
|
9148
10104
|
headers: {
|
|
9149
10105
|
[name: string]: unknown;
|
|
@@ -9160,8 +10116,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
9160
10116
|
base64_string: string;
|
|
9161
10117
|
}[]>;
|
|
9162
10118
|
getChartOfAccounts(params?: {
|
|
9163
|
-
classes?: string | undefined;
|
|
9164
10119
|
folder_id?: string | undefined;
|
|
10120
|
+
classes?: string | undefined;
|
|
9165
10121
|
} | undefined): import("../types/api").RequestData<{
|
|
9166
10122
|
number: string;
|
|
9167
10123
|
name: string;
|
|
@@ -9217,8 +10173,18 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
9217
10173
|
partner_id: string;
|
|
9218
10174
|
account_number: string;
|
|
9219
10175
|
reference?: string | undefined;
|
|
10176
|
+
matching_numbers: string[];
|
|
9220
10177
|
payment_communication?: string | undefined;
|
|
9221
10178
|
posted: boolean;
|
|
10179
|
+
original_document?: {
|
|
10180
|
+
id?: string | undefined;
|
|
10181
|
+
number?: string | undefined;
|
|
10182
|
+
journal_id?: string | undefined;
|
|
10183
|
+
journal_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown" | undefined;
|
|
10184
|
+
date?: string | undefined;
|
|
10185
|
+
due_date?: string | undefined;
|
|
10186
|
+
reference?: string | undefined;
|
|
10187
|
+
} | undefined;
|
|
9222
10188
|
}[]>;
|
|
9223
10189
|
createFinancialEntryOld(financial_entry: {
|
|
9224
10190
|
date: string;
|
|
@@ -9236,8 +10202,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
9236
10202
|
}[];
|
|
9237
10203
|
pdf?: string | undefined;
|
|
9238
10204
|
}, params?: {
|
|
9239
|
-
financial_counterpart_account?: string | undefined;
|
|
9240
10205
|
folder_id?: string | undefined;
|
|
10206
|
+
financial_counterpart_account?: string | undefined;
|
|
9241
10207
|
} | undefined): import("../types/api").RequestData<{
|
|
9242
10208
|
date: string;
|
|
9243
10209
|
journal_id: string;
|
|
@@ -9270,8 +10236,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
9270
10236
|
}[];
|
|
9271
10237
|
pdf?: string | undefined;
|
|
9272
10238
|
}, params?: {
|
|
9273
|
-
financial_counterpart_account?: string | undefined;
|
|
9274
10239
|
folder_id?: string | undefined;
|
|
10240
|
+
financial_counterpart_account?: string | undefined;
|
|
9275
10241
|
} | undefined): import("../types/api").RequestData<{
|
|
9276
10242
|
date: string;
|
|
9277
10243
|
journal_id: string;
|
|
@@ -9371,8 +10337,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
9371
10337
|
start_date?: string | undefined;
|
|
9372
10338
|
end_date?: string | undefined;
|
|
9373
10339
|
}, params?: {
|
|
9374
|
-
force_currency_exchange?: "true" | "false" | undefined;
|
|
9375
10340
|
folder_id?: string | undefined;
|
|
10341
|
+
force_currency_exchange?: "true" | "false" | undefined;
|
|
9376
10342
|
} | undefined): import("../types/api").RequestData<{
|
|
9377
10343
|
reference?: string | undefined;
|
|
9378
10344
|
due_date?: string | undefined;
|
|
@@ -9412,6 +10378,18 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
9412
10378
|
matching_number: string;
|
|
9413
10379
|
balance: number;
|
|
9414
10380
|
}>;
|
|
10381
|
+
matchEntriesMultiple(body: {
|
|
10382
|
+
matchings: {
|
|
10383
|
+
entries: string[];
|
|
10384
|
+
partner_id: string;
|
|
10385
|
+
}[];
|
|
10386
|
+
}, params?: {
|
|
10387
|
+
folder_id?: string | undefined;
|
|
10388
|
+
} | undefined): import("../types/api").RequestData<{
|
|
10389
|
+
matching_number?: string | undefined;
|
|
10390
|
+
processed: boolean;
|
|
10391
|
+
error_msg?: Record<string, never> | undefined;
|
|
10392
|
+
}[]>;
|
|
9415
10393
|
getFolders(): import("../types/api").RequestData<{
|
|
9416
10394
|
id: string;
|
|
9417
10395
|
name: string;
|
|
@@ -9419,14 +10397,23 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
9419
10397
|
vat?: string | undefined;
|
|
9420
10398
|
company_number?: string | undefined;
|
|
9421
10399
|
}[]>;
|
|
10400
|
+
getBookyears(params?: {
|
|
10401
|
+
folder_id?: string | undefined;
|
|
10402
|
+
} | undefined): import("../types/api").RequestData<{
|
|
10403
|
+
name: string;
|
|
10404
|
+
start: string;
|
|
10405
|
+
end: string;
|
|
10406
|
+
closed: boolean;
|
|
10407
|
+
}[]>;
|
|
9422
10408
|
}>;
|
|
9423
10409
|
invoicing: import("../types/api").ApiFor<{
|
|
9424
10410
|
getInvoices(params?: {
|
|
9425
10411
|
date_from?: string | undefined;
|
|
9426
10412
|
date_to?: string | undefined;
|
|
9427
10413
|
payment_status?: "all" | "paid" | "unpaid" | undefined;
|
|
9428
|
-
invoice_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all" | undefined;
|
|
9429
10414
|
updated_after?: string | undefined;
|
|
10415
|
+
invoice_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all" | undefined;
|
|
10416
|
+
include_invoice_lines?: "true" | "false" | undefined;
|
|
9430
10417
|
} | undefined): import("../types/api").RequestData<{
|
|
9431
10418
|
id: string;
|
|
9432
10419
|
source_ref: {
|
|
@@ -9434,7 +10421,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
9434
10421
|
model?: string | undefined;
|
|
9435
10422
|
};
|
|
9436
10423
|
currency: string;
|
|
9437
|
-
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
10424
|
+
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all";
|
|
9438
10425
|
status: "draft" | "posted" | "cancelled" | "paid";
|
|
9439
10426
|
invoice_date: string;
|
|
9440
10427
|
tax_amount: number;
|
|
@@ -9451,6 +10438,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
9451
10438
|
tax_rate?: number | undefined;
|
|
9452
10439
|
account_number?: string | undefined;
|
|
9453
10440
|
tax_id?: string | undefined;
|
|
10441
|
+
tax_exemption_reason?: string | undefined;
|
|
9454
10442
|
unit_of_measure?: string | undefined;
|
|
9455
10443
|
product_id?: string | undefined;
|
|
9456
10444
|
product_code?: string | undefined;
|
|
@@ -9467,9 +10455,29 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
9467
10455
|
model?: string | undefined;
|
|
9468
10456
|
name?: string | undefined;
|
|
9469
10457
|
} | undefined;
|
|
10458
|
+
italian_specificities?: {
|
|
10459
|
+
stamp_duty_amount?: number | undefined;
|
|
10460
|
+
withholding_tax?: {
|
|
10461
|
+
rate: number;
|
|
10462
|
+
amount: number;
|
|
10463
|
+
reason?: "RT01" | "RT02" | "RT03" | "RT04" | "RT05" | "RT06" | undefined;
|
|
10464
|
+
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;
|
|
10465
|
+
} | undefined;
|
|
10466
|
+
welfare_fund?: {
|
|
10467
|
+
rate: number;
|
|
10468
|
+
amount: number;
|
|
10469
|
+
type?: "TC01" | "TC02" | "TC03" | "TC04" | "TC05" | "TC06" | "TC07" | "TC08" | "TC09" | "TC10" | "TC11" | "TC12" | "TC13" | "TC14" | "TC15" | "TC16" | "TC17" | "TC18" | "TC19" | "TC20" | "TC21" | "TC22" | undefined;
|
|
10470
|
+
} | undefined;
|
|
10471
|
+
payment_reporting?: {
|
|
10472
|
+
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;
|
|
10473
|
+
conditions?: "TP01" | "TP02" | "TP03" | undefined;
|
|
10474
|
+
} | undefined;
|
|
10475
|
+
} | undefined;
|
|
9470
10476
|
last_updated_on?: string | undefined;
|
|
9471
10477
|
outstanding_amount?: number | undefined;
|
|
9472
10478
|
accounting_date?: string | undefined;
|
|
10479
|
+
payment_method_id?: string | undefined;
|
|
10480
|
+
currency_exchange_rate: number;
|
|
9473
10481
|
}[]>;
|
|
9474
10482
|
getInvoiceById(invoiceId: string, params?: {
|
|
9475
10483
|
include_pdf?: "true" | "false" | undefined;
|
|
@@ -9480,7 +10488,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
9480
10488
|
model?: string | undefined;
|
|
9481
10489
|
};
|
|
9482
10490
|
currency: string;
|
|
9483
|
-
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
10491
|
+
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all";
|
|
9484
10492
|
status: "draft" | "posted" | "cancelled" | "paid";
|
|
9485
10493
|
invoice_date: string;
|
|
9486
10494
|
tax_amount: number;
|
|
@@ -9497,6 +10505,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
9497
10505
|
tax_rate?: number | undefined;
|
|
9498
10506
|
account_number?: string | undefined;
|
|
9499
10507
|
tax_id?: string | undefined;
|
|
10508
|
+
tax_exemption_reason?: string | undefined;
|
|
9500
10509
|
unit_of_measure?: string | undefined;
|
|
9501
10510
|
product_id?: string | undefined;
|
|
9502
10511
|
product_code?: string | undefined;
|
|
@@ -9513,13 +10522,33 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
9513
10522
|
model?: string | undefined;
|
|
9514
10523
|
name?: string | undefined;
|
|
9515
10524
|
} | undefined;
|
|
10525
|
+
italian_specificities?: {
|
|
10526
|
+
stamp_duty_amount?: number | undefined;
|
|
10527
|
+
withholding_tax?: {
|
|
10528
|
+
rate: number;
|
|
10529
|
+
amount: number;
|
|
10530
|
+
reason?: "RT01" | "RT02" | "RT03" | "RT04" | "RT05" | "RT06" | undefined;
|
|
10531
|
+
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;
|
|
10532
|
+
} | undefined;
|
|
10533
|
+
welfare_fund?: {
|
|
10534
|
+
rate: number;
|
|
10535
|
+
amount: number;
|
|
10536
|
+
type?: "TC01" | "TC02" | "TC03" | "TC04" | "TC05" | "TC06" | "TC07" | "TC08" | "TC09" | "TC10" | "TC11" | "TC12" | "TC13" | "TC14" | "TC15" | "TC16" | "TC17" | "TC18" | "TC19" | "TC20" | "TC21" | "TC22" | undefined;
|
|
10537
|
+
} | undefined;
|
|
10538
|
+
payment_reporting?: {
|
|
10539
|
+
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;
|
|
10540
|
+
conditions?: "TP01" | "TP02" | "TP03" | undefined;
|
|
10541
|
+
} | undefined;
|
|
10542
|
+
} | undefined;
|
|
9516
10543
|
last_updated_on?: string | undefined;
|
|
9517
10544
|
outstanding_amount?: number | undefined;
|
|
9518
10545
|
accounting_date?: string | undefined;
|
|
10546
|
+
payment_method_id?: string | undefined;
|
|
10547
|
+
currency_exchange_rate: number;
|
|
9519
10548
|
}>;
|
|
9520
10549
|
createInvoice(invoice: {
|
|
9521
10550
|
currency: string;
|
|
9522
|
-
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
10551
|
+
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all";
|
|
9523
10552
|
status: "draft" | "posted" | "cancelled" | "paid";
|
|
9524
10553
|
invoice_date: string;
|
|
9525
10554
|
tax_amount: number;
|
|
@@ -9536,6 +10565,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
9536
10565
|
tax_rate?: number | undefined;
|
|
9537
10566
|
account_number?: string | undefined;
|
|
9538
10567
|
tax_id?: string | undefined;
|
|
10568
|
+
tax_exemption_reason?: string | undefined;
|
|
9539
10569
|
unit_of_measure?: string | undefined;
|
|
9540
10570
|
product_id?: string | undefined;
|
|
9541
10571
|
product_code?: string | undefined;
|
|
@@ -9552,6 +10582,24 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
9552
10582
|
model?: string | undefined;
|
|
9553
10583
|
name?: string | undefined;
|
|
9554
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;
|
|
9555
10603
|
}): import("../types/api").RequestData<{
|
|
9556
10604
|
id: string;
|
|
9557
10605
|
source_ref: {
|
|
@@ -9559,7 +10607,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
9559
10607
|
model?: string | undefined;
|
|
9560
10608
|
};
|
|
9561
10609
|
currency: string;
|
|
9562
|
-
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
10610
|
+
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all";
|
|
9563
10611
|
status: "draft" | "posted" | "cancelled" | "paid";
|
|
9564
10612
|
invoice_date: string;
|
|
9565
10613
|
tax_amount: number;
|
|
@@ -9576,6 +10624,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
9576
10624
|
tax_rate?: number | undefined;
|
|
9577
10625
|
account_number?: string | undefined;
|
|
9578
10626
|
tax_id?: string | undefined;
|
|
10627
|
+
tax_exemption_reason?: string | undefined;
|
|
9579
10628
|
unit_of_measure?: string | undefined;
|
|
9580
10629
|
product_id?: string | undefined;
|
|
9581
10630
|
product_code?: string | undefined;
|
|
@@ -9592,9 +10641,29 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
9592
10641
|
model?: string | undefined;
|
|
9593
10642
|
name?: string | undefined;
|
|
9594
10643
|
} | undefined;
|
|
10644
|
+
italian_specificities?: {
|
|
10645
|
+
stamp_duty_amount?: number | undefined;
|
|
10646
|
+
withholding_tax?: {
|
|
10647
|
+
rate: number;
|
|
10648
|
+
amount: number;
|
|
10649
|
+
reason?: "RT01" | "RT02" | "RT03" | "RT04" | "RT05" | "RT06" | undefined;
|
|
10650
|
+
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;
|
|
10651
|
+
} | undefined;
|
|
10652
|
+
welfare_fund?: {
|
|
10653
|
+
rate: number;
|
|
10654
|
+
amount: number;
|
|
10655
|
+
type?: "TC01" | "TC02" | "TC03" | "TC04" | "TC05" | "TC06" | "TC07" | "TC08" | "TC09" | "TC10" | "TC11" | "TC12" | "TC13" | "TC14" | "TC15" | "TC16" | "TC17" | "TC18" | "TC19" | "TC20" | "TC21" | "TC22" | undefined;
|
|
10656
|
+
} | undefined;
|
|
10657
|
+
payment_reporting?: {
|
|
10658
|
+
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;
|
|
10659
|
+
conditions?: "TP01" | "TP02" | "TP03" | undefined;
|
|
10660
|
+
} | undefined;
|
|
10661
|
+
} | undefined;
|
|
9595
10662
|
last_updated_on?: string | undefined;
|
|
9596
10663
|
outstanding_amount?: number | undefined;
|
|
9597
10664
|
accounting_date?: string | undefined;
|
|
10665
|
+
payment_method_id?: string | undefined;
|
|
10666
|
+
currency_exchange_rate: number;
|
|
9598
10667
|
}>;
|
|
9599
10668
|
getProducts(): import("../types/api").RequestData<{
|
|
9600
10669
|
id: string;
|
|
@@ -9891,6 +10960,31 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
9891
10960
|
}[];
|
|
9892
10961
|
external_reference?: string | undefined;
|
|
9893
10962
|
}>;
|
|
10963
|
+
getPayments(): import("../types/api").RequestData<{
|
|
10964
|
+
id: string;
|
|
10965
|
+
source_ref: {
|
|
10966
|
+
id?: string | undefined;
|
|
10967
|
+
model?: string | undefined;
|
|
10968
|
+
};
|
|
10969
|
+
status: "unknown" | "pending" | "completed" | "canceled" | "failed" | "authorized";
|
|
10970
|
+
description: string;
|
|
10971
|
+
amount: number;
|
|
10972
|
+
currency: string;
|
|
10973
|
+
payment_date: string;
|
|
10974
|
+
partner_id: string;
|
|
10975
|
+
payment_method_id?: string | undefined;
|
|
10976
|
+
payment_method_name?: string | undefined;
|
|
10977
|
+
invoice_id?: string | undefined;
|
|
10978
|
+
invoice_number?: string | undefined;
|
|
10979
|
+
}[]>;
|
|
10980
|
+
getPaymentMethods(): import("../types/api").RequestData<{
|
|
10981
|
+
id: string;
|
|
10982
|
+
source_ref: {
|
|
10983
|
+
id?: string | undefined;
|
|
10984
|
+
model?: string | undefined;
|
|
10985
|
+
};
|
|
10986
|
+
name: string;
|
|
10987
|
+
}[]>;
|
|
9894
10988
|
}>;
|
|
9895
10989
|
ecommerce: import("../types/api").ApiFor<{
|
|
9896
10990
|
getCustomers(): import("../types/api").RequestData<{
|
|
@@ -11030,6 +12124,52 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
11030
12124
|
logData: (logs: import("../types/consumers").ConsumerLog[]) => Promise<import("../types/sync").SimpleResponseModel>;
|
|
11031
12125
|
setConnectionId: (connectionId: string) => Promise<void>;
|
|
11032
12126
|
setIntegrationId: (integrationId: string) => Promise<void>;
|
|
12127
|
+
updateConsumer: (body: {
|
|
12128
|
+
name?: string | undefined;
|
|
12129
|
+
email?: string | undefined;
|
|
12130
|
+
internal_reference?: string | undefined;
|
|
12131
|
+
redirect_url?: string | undefined;
|
|
12132
|
+
}) => Promise<{
|
|
12133
|
+
consumerid: string;
|
|
12134
|
+
name: string;
|
|
12135
|
+
email?: string | undefined;
|
|
12136
|
+
internal_reference?: string | undefined;
|
|
12137
|
+
redirect_url?: string | undefined;
|
|
12138
|
+
}>;
|
|
12139
|
+
updateFlowConfig: (syncId: string, flowId: string, body: {
|
|
12140
|
+
triggerid: string;
|
|
12141
|
+
data: Record<string, never>;
|
|
12142
|
+
}) => Promise<{
|
|
12143
|
+
name: string;
|
|
12144
|
+
description?: string | undefined;
|
|
12145
|
+
id: string;
|
|
12146
|
+
config?: {
|
|
12147
|
+
definitionFields?: Record<string, never>[] | undefined;
|
|
12148
|
+
doorkeyFields?: Record<string, never>[] | undefined;
|
|
12149
|
+
customFields?: Record<string, never>[] | undefined;
|
|
12150
|
+
datastores: {
|
|
12151
|
+
id?: string | undefined;
|
|
12152
|
+
name: string;
|
|
12153
|
+
status: "active" | "inactive";
|
|
12154
|
+
definition: {
|
|
12155
|
+
columns: {
|
|
12156
|
+
name: string;
|
|
12157
|
+
title: string;
|
|
12158
|
+
type: string;
|
|
12159
|
+
optional: boolean;
|
|
12160
|
+
}[];
|
|
12161
|
+
search_column?: string | undefined;
|
|
12162
|
+
};
|
|
12163
|
+
}[];
|
|
12164
|
+
} | undefined;
|
|
12165
|
+
values: Record<string, never>;
|
|
12166
|
+
enabled_on?: string | undefined;
|
|
12167
|
+
trigger: {
|
|
12168
|
+
id: string;
|
|
12169
|
+
type: "event" | "timer";
|
|
12170
|
+
cronschedule?: string | undefined;
|
|
12171
|
+
};
|
|
12172
|
+
}>;
|
|
11033
12173
|
}, context: any) => any, log?: boolean) => Promise<void>;
|
|
11034
12174
|
flowId: string;
|
|
11035
12175
|
name: string;
|
|
@@ -11042,10 +12182,17 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
11042
12182
|
end?: string | undefined;
|
|
11043
12183
|
status: string;
|
|
11044
12184
|
}>;
|
|
12185
|
+
getConsumerExecutions: (consumerId: string) => Promise<{
|
|
12186
|
+
id: string;
|
|
12187
|
+
start: string;
|
|
12188
|
+
end?: string | undefined;
|
|
12189
|
+
status: string;
|
|
12190
|
+
}[]>;
|
|
11045
12191
|
executeLocal: (process: (consumer: (internalApi: InternalAPI, body: {
|
|
11046
12192
|
consumerid: string;
|
|
11047
12193
|
name: string;
|
|
11048
12194
|
email?: string | undefined;
|
|
12195
|
+
internal_reference?: string | undefined;
|
|
11049
12196
|
redirect_url?: string | undefined;
|
|
11050
12197
|
}) => {
|
|
11051
12198
|
consumerId: string;
|
|
@@ -11171,6 +12318,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
11171
12318
|
discounts: {
|
|
11172
12319
|
name?: string | undefined;
|
|
11173
12320
|
total: number;
|
|
12321
|
+
type: "OFFERED" | "UNKNOWN" | "LOSS";
|
|
11174
12322
|
}[];
|
|
11175
12323
|
product_id?: string | undefined;
|
|
11176
12324
|
accounting_category_id?: string | undefined;
|
|
@@ -11248,6 +12396,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
11248
12396
|
discounts: {
|
|
11249
12397
|
name?: string | undefined;
|
|
11250
12398
|
total: number;
|
|
12399
|
+
type: "OFFERED" | "UNKNOWN" | "LOSS";
|
|
11251
12400
|
}[];
|
|
11252
12401
|
product_id?: string | undefined;
|
|
11253
12402
|
accounting_category_id?: string | undefined;
|
|
@@ -11422,6 +12571,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
11422
12571
|
discounts: {
|
|
11423
12572
|
name?: string | undefined;
|
|
11424
12573
|
total: number;
|
|
12574
|
+
type: "OFFERED" | "UNKNOWN" | "LOSS";
|
|
11425
12575
|
}[];
|
|
11426
12576
|
product_id?: string | undefined;
|
|
11427
12577
|
accounting_category_id?: string | undefined;
|
|
@@ -11503,11 +12653,62 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
11503
12653
|
discounts: {
|
|
11504
12654
|
name?: string | undefined;
|
|
11505
12655
|
total: number;
|
|
12656
|
+
type: "OFFERED" | "UNKNOWN" | "LOSS";
|
|
11506
12657
|
}[];
|
|
11507
12658
|
product_id?: string | undefined;
|
|
11508
12659
|
accounting_category_id?: string | undefined;
|
|
11509
12660
|
}[];
|
|
11510
12661
|
service_id?: string | undefined;
|
|
12662
|
+
reservation?: {
|
|
12663
|
+
id: string;
|
|
12664
|
+
source_ref: {
|
|
12665
|
+
id?: string | undefined;
|
|
12666
|
+
model?: string | undefined;
|
|
12667
|
+
};
|
|
12668
|
+
start_date?: string | undefined;
|
|
12669
|
+
end_date?: string | undefined;
|
|
12670
|
+
creation_date?: string | undefined;
|
|
12671
|
+
resource_id?: {
|
|
12672
|
+
id: string;
|
|
12673
|
+
source_ref: {
|
|
12674
|
+
id?: string | undefined;
|
|
12675
|
+
model?: string | undefined;
|
|
12676
|
+
};
|
|
12677
|
+
} | undefined;
|
|
12678
|
+
resource_name?: string | undefined;
|
|
12679
|
+
resource_identifier?: string | undefined;
|
|
12680
|
+
} | undefined;
|
|
12681
|
+
bills?: {
|
|
12682
|
+
id: string;
|
|
12683
|
+
source_ref: {
|
|
12684
|
+
id?: string | undefined;
|
|
12685
|
+
model?: string | undefined;
|
|
12686
|
+
};
|
|
12687
|
+
invoice_number?: string | undefined;
|
|
12688
|
+
creation_date?: string | undefined;
|
|
12689
|
+
closing_date?: string | undefined;
|
|
12690
|
+
partners?: {
|
|
12691
|
+
id: string;
|
|
12692
|
+
source_ref: {
|
|
12693
|
+
id?: string | undefined;
|
|
12694
|
+
model?: string | undefined;
|
|
12695
|
+
};
|
|
12696
|
+
type: "owner" | "account";
|
|
12697
|
+
address?: {
|
|
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
|
+
first_name?: string | undefined;
|
|
12708
|
+
last_name?: string | undefined;
|
|
12709
|
+
company_name?: string | undefined;
|
|
12710
|
+
}[] | undefined;
|
|
12711
|
+
}[] | undefined;
|
|
11511
12712
|
}[]>;
|
|
11512
12713
|
getPaymentMethods(params?: {
|
|
11513
12714
|
location_id?: string | undefined;
|
|
@@ -11543,6 +12744,13 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
11543
12744
|
status: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised";
|
|
11544
12745
|
currency?: string | undefined;
|
|
11545
12746
|
date?: string | undefined;
|
|
12747
|
+
partner_id?: {
|
|
12748
|
+
id: string;
|
|
12749
|
+
source_ref: {
|
|
12750
|
+
id?: string | undefined;
|
|
12751
|
+
model?: string | undefined;
|
|
12752
|
+
};
|
|
12753
|
+
} | undefined;
|
|
11546
12754
|
}[]>;
|
|
11547
12755
|
getAccountingCategories(params?: {} | undefined): import("../types/api").RequestData<{
|
|
11548
12756
|
id: string;
|
|
@@ -11555,6 +12763,128 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
11555
12763
|
ledger_account_code?: string | undefined;
|
|
11556
12764
|
posting_account_code?: string | undefined;
|
|
11557
12765
|
}[]>;
|
|
12766
|
+
getCustomers(params?: {} | undefined): import("../types/api").RequestData<{
|
|
12767
|
+
id: string;
|
|
12768
|
+
source_ref: {
|
|
12769
|
+
id?: string | undefined;
|
|
12770
|
+
model?: string | undefined;
|
|
12771
|
+
};
|
|
12772
|
+
first_name?: string | undefined;
|
|
12773
|
+
last_name?: string | undefined;
|
|
12774
|
+
company_name?: string | undefined;
|
|
12775
|
+
phone?: string | undefined;
|
|
12776
|
+
email?: string | undefined;
|
|
12777
|
+
account_number?: string | undefined;
|
|
12778
|
+
created_on?: string | undefined;
|
|
12779
|
+
addresses?: {
|
|
12780
|
+
address_type?: string | undefined;
|
|
12781
|
+
name?: string | undefined;
|
|
12782
|
+
street?: string | undefined;
|
|
12783
|
+
number?: string | undefined;
|
|
12784
|
+
box?: string | undefined;
|
|
12785
|
+
city?: string | undefined;
|
|
12786
|
+
postal_code?: string | undefined;
|
|
12787
|
+
country?: string | undefined;
|
|
12788
|
+
}[] | undefined;
|
|
12789
|
+
}[]>;
|
|
12790
|
+
getInvoices(params?: {
|
|
12791
|
+
date_from: string;
|
|
12792
|
+
date_to: string;
|
|
12793
|
+
location_id?: string | undefined;
|
|
12794
|
+
} | undefined): import("../types/api").RequestData<{
|
|
12795
|
+
id: string;
|
|
12796
|
+
source_ref: {
|
|
12797
|
+
id?: string | undefined;
|
|
12798
|
+
model?: string | undefined;
|
|
12799
|
+
};
|
|
12800
|
+
invoice_number?: string | undefined;
|
|
12801
|
+
creation_date?: string | undefined;
|
|
12802
|
+
closing_date?: string | undefined;
|
|
12803
|
+
partners?: {
|
|
12804
|
+
id: string;
|
|
12805
|
+
source_ref: {
|
|
12806
|
+
id?: string | undefined;
|
|
12807
|
+
model?: string | undefined;
|
|
12808
|
+
};
|
|
12809
|
+
type: "owner" | "account";
|
|
12810
|
+
address?: {
|
|
12811
|
+
address_type?: string | undefined;
|
|
12812
|
+
name?: string | undefined;
|
|
12813
|
+
street?: string | undefined;
|
|
12814
|
+
number?: string | undefined;
|
|
12815
|
+
box?: string | undefined;
|
|
12816
|
+
city?: string | undefined;
|
|
12817
|
+
postal_code?: string | undefined;
|
|
12818
|
+
country?: string | undefined;
|
|
12819
|
+
} | undefined;
|
|
12820
|
+
first_name?: string | undefined;
|
|
12821
|
+
last_name?: string | undefined;
|
|
12822
|
+
company_name?: string | undefined;
|
|
12823
|
+
}[] | undefined;
|
|
12824
|
+
items: {
|
|
12825
|
+
id: string;
|
|
12826
|
+
source_ref: {
|
|
12827
|
+
id?: string | undefined;
|
|
12828
|
+
model?: string | undefined;
|
|
12829
|
+
};
|
|
12830
|
+
type?: "menu" | "product" | undefined;
|
|
12831
|
+
menu_id?: string | undefined;
|
|
12832
|
+
quantity: number;
|
|
12833
|
+
unit_price: number;
|
|
12834
|
+
total: number;
|
|
12835
|
+
tax_amount: number;
|
|
12836
|
+
tax_rate?: number | undefined;
|
|
12837
|
+
description?: string | undefined;
|
|
12838
|
+
discounts: {
|
|
12839
|
+
name?: string | undefined;
|
|
12840
|
+
total: number;
|
|
12841
|
+
type: "OFFERED" | "UNKNOWN" | "LOSS";
|
|
12842
|
+
}[];
|
|
12843
|
+
product_id?: string | undefined;
|
|
12844
|
+
accounting_category_id?: string | undefined;
|
|
12845
|
+
}[];
|
|
12846
|
+
payments: {
|
|
12847
|
+
id?: string | undefined;
|
|
12848
|
+
source_ref: {
|
|
12849
|
+
id?: string | undefined;
|
|
12850
|
+
model?: string | undefined;
|
|
12851
|
+
};
|
|
12852
|
+
payment_method_id?: string | undefined;
|
|
12853
|
+
payment_method_name?: string | undefined;
|
|
12854
|
+
total: number;
|
|
12855
|
+
tip: number;
|
|
12856
|
+
status: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised";
|
|
12857
|
+
currency?: string | undefined;
|
|
12858
|
+
date?: string | undefined;
|
|
12859
|
+
partner_id?: {
|
|
12860
|
+
id: string;
|
|
12861
|
+
source_ref: {
|
|
12862
|
+
id?: string | undefined;
|
|
12863
|
+
model?: string | undefined;
|
|
12864
|
+
};
|
|
12865
|
+
} | undefined;
|
|
12866
|
+
}[];
|
|
12867
|
+
service_id?: string | undefined;
|
|
12868
|
+
reservation?: {
|
|
12869
|
+
id: string;
|
|
12870
|
+
source_ref: {
|
|
12871
|
+
id?: string | undefined;
|
|
12872
|
+
model?: string | undefined;
|
|
12873
|
+
};
|
|
12874
|
+
start_date?: string | undefined;
|
|
12875
|
+
end_date?: string | undefined;
|
|
12876
|
+
creation_date?: string | undefined;
|
|
12877
|
+
resource_id?: {
|
|
12878
|
+
id: string;
|
|
12879
|
+
source_ref: {
|
|
12880
|
+
id?: string | undefined;
|
|
12881
|
+
model?: string | undefined;
|
|
12882
|
+
};
|
|
12883
|
+
} | undefined;
|
|
12884
|
+
resource_name?: string | undefined;
|
|
12885
|
+
resource_identifier?: string | undefined;
|
|
12886
|
+
} | undefined;
|
|
12887
|
+
}[]>;
|
|
11558
12888
|
}>;
|
|
11559
12889
|
payment: import("../types/api").ApiFor<{
|
|
11560
12890
|
getPayments(params: {
|
|
@@ -11606,8 +12936,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
11606
12936
|
payment_id?: string | undefined;
|
|
11607
12937
|
}[]>;
|
|
11608
12938
|
getPayment(params: {
|
|
11609
|
-
payment_id: string;
|
|
11610
12939
|
consumer_id: string;
|
|
12940
|
+
payment_id: string;
|
|
11611
12941
|
}): import("../types/api").RequestData<{
|
|
11612
12942
|
id: string;
|
|
11613
12943
|
source_ref: {
|
|
@@ -11650,6 +12980,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
11650
12980
|
getClients(params?: {
|
|
11651
12981
|
search?: string | undefined;
|
|
11652
12982
|
folder_id?: string | undefined;
|
|
12983
|
+
updated_after?: string | undefined;
|
|
11653
12984
|
} | undefined): import("../types/api").RequestData<{
|
|
11654
12985
|
external_reference?: string | undefined;
|
|
11655
12986
|
first_name?: string | undefined;
|
|
@@ -11720,8 +13051,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
11720
13051
|
}[];
|
|
11721
13052
|
account_number?: string | undefined;
|
|
11722
13053
|
}, params?: {
|
|
11723
|
-
force_merge?: string | undefined;
|
|
11724
13054
|
folder_id?: string | undefined;
|
|
13055
|
+
force_merge?: string | undefined;
|
|
11725
13056
|
} | undefined): import("../types/api").RequestData<{
|
|
11726
13057
|
external_reference?: string | undefined;
|
|
11727
13058
|
first_name?: string | undefined;
|
|
@@ -11869,6 +13200,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
11869
13200
|
getSuppliers(params?: {
|
|
11870
13201
|
search?: string | undefined;
|
|
11871
13202
|
folder_id?: string | undefined;
|
|
13203
|
+
updated_after?: string | undefined;
|
|
11872
13204
|
} | undefined): import("../types/api").RequestData<{
|
|
11873
13205
|
external_reference?: string | undefined;
|
|
11874
13206
|
first_name?: string | undefined;
|
|
@@ -11939,8 +13271,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
11939
13271
|
}[];
|
|
11940
13272
|
account_number?: string | undefined;
|
|
11941
13273
|
}, params?: {
|
|
11942
|
-
force_merge?: string | undefined;
|
|
11943
13274
|
folder_id?: string | undefined;
|
|
13275
|
+
force_merge?: string | undefined;
|
|
11944
13276
|
} | undefined): import("../types/api").RequestData<{
|
|
11945
13277
|
external_reference?: string | undefined;
|
|
11946
13278
|
first_name?: string | undefined;
|
|
@@ -12134,9 +13466,9 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
12134
13466
|
analytic_account?: string | undefined;
|
|
12135
13467
|
}[];
|
|
12136
13468
|
}, params?: {
|
|
13469
|
+
folder_id?: string | undefined;
|
|
12137
13470
|
force_financial_period?: string | undefined;
|
|
12138
13471
|
regroup_lines?: "true" | "false" | undefined;
|
|
12139
|
-
folder_id?: string | undefined;
|
|
12140
13472
|
} | undefined): import("../types/api").RequestData<{
|
|
12141
13473
|
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
12142
13474
|
invoice_number?: string | undefined;
|
|
@@ -12237,9 +13569,9 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
12237
13569
|
}[];
|
|
12238
13570
|
}[];
|
|
12239
13571
|
}, params?: {
|
|
13572
|
+
folder_id?: string | undefined;
|
|
12240
13573
|
force_financial_period?: string | undefined;
|
|
12241
13574
|
regroup_lines?: "true" | "false" | undefined;
|
|
12242
|
-
folder_id?: string | undefined;
|
|
12243
13575
|
} | undefined): import("../types/api").RequestData<{
|
|
12244
13576
|
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
12245
13577
|
invoice_number?: string | undefined;
|
|
@@ -12298,6 +13630,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
12298
13630
|
journal_ids?: string | undefined;
|
|
12299
13631
|
include_payments?: "true" | "false" | undefined;
|
|
12300
13632
|
payment_status?: "all" | "paid" | "unpaid" | undefined;
|
|
13633
|
+
updated_after?: string | undefined;
|
|
12301
13634
|
} | undefined): import("../types/api").RequestData<{
|
|
12302
13635
|
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
12303
13636
|
invoice_number?: string | undefined;
|
|
@@ -12344,8 +13677,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
12344
13677
|
}[];
|
|
12345
13678
|
}[]>;
|
|
12346
13679
|
getInvoice(invoiceId: string, params?: {
|
|
12347
|
-
include_payments?: "true" | "false" | undefined;
|
|
12348
13680
|
folder_id?: string | undefined;
|
|
13681
|
+
include_payments?: "true" | "false" | undefined;
|
|
12349
13682
|
} | undefined): import("../types/api").RequestData<{
|
|
12350
13683
|
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
12351
13684
|
invoice_number?: string | undefined;
|
|
@@ -12392,8 +13725,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
12392
13725
|
}[];
|
|
12393
13726
|
}>;
|
|
12394
13727
|
getInvoiceWithMultiplePlans(invoiceId: string, params?: {
|
|
12395
|
-
include_payments?: "true" | "false" | undefined;
|
|
12396
13728
|
folder_id?: string | undefined;
|
|
13729
|
+
include_payments?: "true" | "false" | undefined;
|
|
12397
13730
|
} | undefined): import("../types/api").RequestData<{
|
|
12398
13731
|
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
12399
13732
|
invoice_number?: string | undefined;
|
|
@@ -12452,6 +13785,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
12452
13785
|
journal_ids?: string | undefined;
|
|
12453
13786
|
include_payments?: "true" | "false" | undefined;
|
|
12454
13787
|
payment_status?: "all" | "paid" | "unpaid" | undefined;
|
|
13788
|
+
updated_after?: string | undefined;
|
|
12455
13789
|
} | undefined): import("../types/api").RequestData<{
|
|
12456
13790
|
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
12457
13791
|
invoice_number?: string | undefined;
|
|
@@ -12624,9 +13958,10 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
12624
13958
|
analytic_plan: string;
|
|
12625
13959
|
}[]>;
|
|
12626
13960
|
getJournalEntries(params: {
|
|
12627
|
-
date_from
|
|
12628
|
-
date_to
|
|
13961
|
+
date_from?: string | undefined;
|
|
13962
|
+
date_to?: string | undefined;
|
|
12629
13963
|
folder_id?: string | undefined;
|
|
13964
|
+
updated_after?: string | undefined;
|
|
12630
13965
|
unposted_allowed: "true" | "false";
|
|
12631
13966
|
journal_id: string;
|
|
12632
13967
|
partner_id?: string | undefined;
|
|
@@ -12656,9 +13991,10 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
12656
13991
|
}[];
|
|
12657
13992
|
}[]>;
|
|
12658
13993
|
getJournalEntriesWithMultiplePlans(params: {
|
|
12659
|
-
date_from
|
|
12660
|
-
date_to
|
|
13994
|
+
date_from?: string | undefined;
|
|
13995
|
+
date_to?: string | undefined;
|
|
12661
13996
|
folder_id?: string | undefined;
|
|
13997
|
+
updated_after?: string | undefined;
|
|
12662
13998
|
unposted_allowed: "true" | "false";
|
|
12663
13999
|
journal_id: string;
|
|
12664
14000
|
partner_id?: string | undefined;
|
|
@@ -12693,9 +14029,9 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
12693
14029
|
}[];
|
|
12694
14030
|
}[]>;
|
|
12695
14031
|
getPaymentsByInvoiceId(invoice_id: string, params?: {
|
|
12696
|
-
folder_id?: string | undefined;
|
|
12697
14032
|
page?: number | undefined;
|
|
12698
14033
|
size?: number | undefined;
|
|
14034
|
+
folder_id?: string | undefined;
|
|
12699
14035
|
} | undefined): import("../types/api").RequestData<{
|
|
12700
14036
|
id: string;
|
|
12701
14037
|
name: string;
|
|
@@ -12819,8 +14155,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
12819
14155
|
attachPDF(invoice_id: string, attachment: {
|
|
12820
14156
|
base64_string: string;
|
|
12821
14157
|
}, params?: {
|
|
12822
|
-
overwrite_existing?: "true" | "false" | undefined;
|
|
12823
14158
|
folder_id?: string | undefined;
|
|
14159
|
+
overwrite_existing?: "true" | "false" | undefined;
|
|
12824
14160
|
} | undefined): import("../types/api").RequestData<{
|
|
12825
14161
|
headers: {
|
|
12826
14162
|
[name: string]: unknown;
|
|
@@ -12837,8 +14173,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
12837
14173
|
base64_string: string;
|
|
12838
14174
|
}[]>;
|
|
12839
14175
|
getChartOfAccounts(params?: {
|
|
12840
|
-
classes?: string | undefined;
|
|
12841
14176
|
folder_id?: string | undefined;
|
|
14177
|
+
classes?: string | undefined;
|
|
12842
14178
|
} | undefined): import("../types/api").RequestData<{
|
|
12843
14179
|
number: string;
|
|
12844
14180
|
name: string;
|
|
@@ -12894,8 +14230,18 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
12894
14230
|
partner_id: string;
|
|
12895
14231
|
account_number: string;
|
|
12896
14232
|
reference?: string | undefined;
|
|
14233
|
+
matching_numbers: string[];
|
|
12897
14234
|
payment_communication?: string | undefined;
|
|
12898
14235
|
posted: boolean;
|
|
14236
|
+
original_document?: {
|
|
14237
|
+
id?: string | undefined;
|
|
14238
|
+
number?: string | undefined;
|
|
14239
|
+
journal_id?: string | undefined;
|
|
14240
|
+
journal_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown" | undefined;
|
|
14241
|
+
date?: string | undefined;
|
|
14242
|
+
due_date?: string | undefined;
|
|
14243
|
+
reference?: string | undefined;
|
|
14244
|
+
} | undefined;
|
|
12899
14245
|
}[]>;
|
|
12900
14246
|
createFinancialEntryOld(financial_entry: {
|
|
12901
14247
|
date: string;
|
|
@@ -12913,8 +14259,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
12913
14259
|
}[];
|
|
12914
14260
|
pdf?: string | undefined;
|
|
12915
14261
|
}, params?: {
|
|
12916
|
-
financial_counterpart_account?: string | undefined;
|
|
12917
14262
|
folder_id?: string | undefined;
|
|
14263
|
+
financial_counterpart_account?: string | undefined;
|
|
12918
14264
|
} | undefined): import("../types/api").RequestData<{
|
|
12919
14265
|
date: string;
|
|
12920
14266
|
journal_id: string;
|
|
@@ -12947,8 +14293,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
12947
14293
|
}[];
|
|
12948
14294
|
pdf?: string | undefined;
|
|
12949
14295
|
}, params?: {
|
|
12950
|
-
financial_counterpart_account?: string | undefined;
|
|
12951
14296
|
folder_id?: string | undefined;
|
|
14297
|
+
financial_counterpart_account?: string | undefined;
|
|
12952
14298
|
} | undefined): import("../types/api").RequestData<{
|
|
12953
14299
|
date: string;
|
|
12954
14300
|
journal_id: string;
|
|
@@ -13048,8 +14394,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
13048
14394
|
start_date?: string | undefined;
|
|
13049
14395
|
end_date?: string | undefined;
|
|
13050
14396
|
}, params?: {
|
|
13051
|
-
force_currency_exchange?: "true" | "false" | undefined;
|
|
13052
14397
|
folder_id?: string | undefined;
|
|
14398
|
+
force_currency_exchange?: "true" | "false" | undefined;
|
|
13053
14399
|
} | undefined): import("../types/api").RequestData<{
|
|
13054
14400
|
reference?: string | undefined;
|
|
13055
14401
|
due_date?: string | undefined;
|
|
@@ -13089,6 +14435,18 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
13089
14435
|
matching_number: string;
|
|
13090
14436
|
balance: number;
|
|
13091
14437
|
}>;
|
|
14438
|
+
matchEntriesMultiple(body: {
|
|
14439
|
+
matchings: {
|
|
14440
|
+
entries: string[];
|
|
14441
|
+
partner_id: string;
|
|
14442
|
+
}[];
|
|
14443
|
+
}, params?: {
|
|
14444
|
+
folder_id?: string | undefined;
|
|
14445
|
+
} | undefined): import("../types/api").RequestData<{
|
|
14446
|
+
matching_number?: string | undefined;
|
|
14447
|
+
processed: boolean;
|
|
14448
|
+
error_msg?: Record<string, never> | undefined;
|
|
14449
|
+
}[]>;
|
|
13092
14450
|
getFolders(): import("../types/api").RequestData<{
|
|
13093
14451
|
id: string;
|
|
13094
14452
|
name: string;
|
|
@@ -13096,14 +14454,23 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
13096
14454
|
vat?: string | undefined;
|
|
13097
14455
|
company_number?: string | undefined;
|
|
13098
14456
|
}[]>;
|
|
14457
|
+
getBookyears(params?: {
|
|
14458
|
+
folder_id?: string | undefined;
|
|
14459
|
+
} | undefined): import("../types/api").RequestData<{
|
|
14460
|
+
name: string;
|
|
14461
|
+
start: string;
|
|
14462
|
+
end: string;
|
|
14463
|
+
closed: boolean;
|
|
14464
|
+
}[]>;
|
|
13099
14465
|
}>;
|
|
13100
14466
|
invoicing: import("../types/api").ApiFor<{
|
|
13101
14467
|
getInvoices(params?: {
|
|
13102
14468
|
date_from?: string | undefined;
|
|
13103
14469
|
date_to?: string | undefined;
|
|
13104
14470
|
payment_status?: "all" | "paid" | "unpaid" | undefined;
|
|
13105
|
-
invoice_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all" | undefined;
|
|
13106
14471
|
updated_after?: string | undefined;
|
|
14472
|
+
invoice_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all" | undefined;
|
|
14473
|
+
include_invoice_lines?: "true" | "false" | undefined;
|
|
13107
14474
|
} | undefined): import("../types/api").RequestData<{
|
|
13108
14475
|
id: string;
|
|
13109
14476
|
source_ref: {
|
|
@@ -13111,7 +14478,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
13111
14478
|
model?: string | undefined;
|
|
13112
14479
|
};
|
|
13113
14480
|
currency: string;
|
|
13114
|
-
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
14481
|
+
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all";
|
|
13115
14482
|
status: "draft" | "posted" | "cancelled" | "paid";
|
|
13116
14483
|
invoice_date: string;
|
|
13117
14484
|
tax_amount: number;
|
|
@@ -13128,6 +14495,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
13128
14495
|
tax_rate?: number | undefined;
|
|
13129
14496
|
account_number?: string | undefined;
|
|
13130
14497
|
tax_id?: string | undefined;
|
|
14498
|
+
tax_exemption_reason?: string | undefined;
|
|
13131
14499
|
unit_of_measure?: string | undefined;
|
|
13132
14500
|
product_id?: string | undefined;
|
|
13133
14501
|
product_code?: string | undefined;
|
|
@@ -13144,9 +14512,29 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
13144
14512
|
model?: string | undefined;
|
|
13145
14513
|
name?: string | undefined;
|
|
13146
14514
|
} | undefined;
|
|
14515
|
+
italian_specificities?: {
|
|
14516
|
+
stamp_duty_amount?: number | undefined;
|
|
14517
|
+
withholding_tax?: {
|
|
14518
|
+
rate: number;
|
|
14519
|
+
amount: number;
|
|
14520
|
+
reason?: "RT01" | "RT02" | "RT03" | "RT04" | "RT05" | "RT06" | undefined;
|
|
14521
|
+
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;
|
|
14522
|
+
} | undefined;
|
|
14523
|
+
welfare_fund?: {
|
|
14524
|
+
rate: number;
|
|
14525
|
+
amount: number;
|
|
14526
|
+
type?: "TC01" | "TC02" | "TC03" | "TC04" | "TC05" | "TC06" | "TC07" | "TC08" | "TC09" | "TC10" | "TC11" | "TC12" | "TC13" | "TC14" | "TC15" | "TC16" | "TC17" | "TC18" | "TC19" | "TC20" | "TC21" | "TC22" | undefined;
|
|
14527
|
+
} | undefined;
|
|
14528
|
+
payment_reporting?: {
|
|
14529
|
+
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;
|
|
14530
|
+
conditions?: "TP01" | "TP02" | "TP03" | undefined;
|
|
14531
|
+
} | undefined;
|
|
14532
|
+
} | undefined;
|
|
13147
14533
|
last_updated_on?: string | undefined;
|
|
13148
14534
|
outstanding_amount?: number | undefined;
|
|
13149
14535
|
accounting_date?: string | undefined;
|
|
14536
|
+
payment_method_id?: string | undefined;
|
|
14537
|
+
currency_exchange_rate: number;
|
|
13150
14538
|
}[]>;
|
|
13151
14539
|
getInvoiceById(invoiceId: string, params?: {
|
|
13152
14540
|
include_pdf?: "true" | "false" | undefined;
|
|
@@ -13157,7 +14545,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
13157
14545
|
model?: string | undefined;
|
|
13158
14546
|
};
|
|
13159
14547
|
currency: string;
|
|
13160
|
-
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
14548
|
+
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all";
|
|
13161
14549
|
status: "draft" | "posted" | "cancelled" | "paid";
|
|
13162
14550
|
invoice_date: string;
|
|
13163
14551
|
tax_amount: number;
|
|
@@ -13174,6 +14562,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
13174
14562
|
tax_rate?: number | undefined;
|
|
13175
14563
|
account_number?: string | undefined;
|
|
13176
14564
|
tax_id?: string | undefined;
|
|
14565
|
+
tax_exemption_reason?: string | undefined;
|
|
13177
14566
|
unit_of_measure?: string | undefined;
|
|
13178
14567
|
product_id?: string | undefined;
|
|
13179
14568
|
product_code?: string | undefined;
|
|
@@ -13190,13 +14579,33 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
13190
14579
|
model?: string | undefined;
|
|
13191
14580
|
name?: string | undefined;
|
|
13192
14581
|
} | undefined;
|
|
14582
|
+
italian_specificities?: {
|
|
14583
|
+
stamp_duty_amount?: number | undefined;
|
|
14584
|
+
withholding_tax?: {
|
|
14585
|
+
rate: number;
|
|
14586
|
+
amount: number;
|
|
14587
|
+
reason?: "RT01" | "RT02" | "RT03" | "RT04" | "RT05" | "RT06" | undefined;
|
|
14588
|
+
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;
|
|
14589
|
+
} | undefined;
|
|
14590
|
+
welfare_fund?: {
|
|
14591
|
+
rate: number;
|
|
14592
|
+
amount: number;
|
|
14593
|
+
type?: "TC01" | "TC02" | "TC03" | "TC04" | "TC05" | "TC06" | "TC07" | "TC08" | "TC09" | "TC10" | "TC11" | "TC12" | "TC13" | "TC14" | "TC15" | "TC16" | "TC17" | "TC18" | "TC19" | "TC20" | "TC21" | "TC22" | undefined;
|
|
14594
|
+
} | undefined;
|
|
14595
|
+
payment_reporting?: {
|
|
14596
|
+
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;
|
|
14597
|
+
conditions?: "TP01" | "TP02" | "TP03" | undefined;
|
|
14598
|
+
} | undefined;
|
|
14599
|
+
} | undefined;
|
|
13193
14600
|
last_updated_on?: string | undefined;
|
|
13194
14601
|
outstanding_amount?: number | undefined;
|
|
13195
14602
|
accounting_date?: string | undefined;
|
|
14603
|
+
payment_method_id?: string | undefined;
|
|
14604
|
+
currency_exchange_rate: number;
|
|
13196
14605
|
}>;
|
|
13197
14606
|
createInvoice(invoice: {
|
|
13198
14607
|
currency: string;
|
|
13199
|
-
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
14608
|
+
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all";
|
|
13200
14609
|
status: "draft" | "posted" | "cancelled" | "paid";
|
|
13201
14610
|
invoice_date: string;
|
|
13202
14611
|
tax_amount: number;
|
|
@@ -13213,6 +14622,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
13213
14622
|
tax_rate?: number | undefined;
|
|
13214
14623
|
account_number?: string | undefined;
|
|
13215
14624
|
tax_id?: string | undefined;
|
|
14625
|
+
tax_exemption_reason?: string | undefined;
|
|
13216
14626
|
unit_of_measure?: string | undefined;
|
|
13217
14627
|
product_id?: string | undefined;
|
|
13218
14628
|
product_code?: string | undefined;
|
|
@@ -13229,6 +14639,24 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
13229
14639
|
model?: string | undefined;
|
|
13230
14640
|
name?: string | undefined;
|
|
13231
14641
|
} | undefined;
|
|
14642
|
+
italian_specificities?: {
|
|
14643
|
+
stamp_duty_amount?: number | undefined;
|
|
14644
|
+
withholding_tax?: {
|
|
14645
|
+
rate: number;
|
|
14646
|
+
amount: number;
|
|
14647
|
+
reason?: "RT01" | "RT02" | "RT03" | "RT04" | "RT05" | "RT06" | undefined;
|
|
14648
|
+
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;
|
|
14649
|
+
} | undefined;
|
|
14650
|
+
welfare_fund?: {
|
|
14651
|
+
rate: number;
|
|
14652
|
+
amount: number;
|
|
14653
|
+
type?: "TC01" | "TC02" | "TC03" | "TC04" | "TC05" | "TC06" | "TC07" | "TC08" | "TC09" | "TC10" | "TC11" | "TC12" | "TC13" | "TC14" | "TC15" | "TC16" | "TC17" | "TC18" | "TC19" | "TC20" | "TC21" | "TC22" | undefined;
|
|
14654
|
+
} | undefined;
|
|
14655
|
+
payment_reporting?: {
|
|
14656
|
+
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;
|
|
14657
|
+
conditions?: "TP01" | "TP02" | "TP03" | undefined;
|
|
14658
|
+
} | undefined;
|
|
14659
|
+
} | undefined;
|
|
13232
14660
|
}): import("../types/api").RequestData<{
|
|
13233
14661
|
id: string;
|
|
13234
14662
|
source_ref: {
|
|
@@ -13236,7 +14664,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
13236
14664
|
model?: string | undefined;
|
|
13237
14665
|
};
|
|
13238
14666
|
currency: string;
|
|
13239
|
-
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
14667
|
+
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all";
|
|
13240
14668
|
status: "draft" | "posted" | "cancelled" | "paid";
|
|
13241
14669
|
invoice_date: string;
|
|
13242
14670
|
tax_amount: number;
|
|
@@ -13253,6 +14681,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
13253
14681
|
tax_rate?: number | undefined;
|
|
13254
14682
|
account_number?: string | undefined;
|
|
13255
14683
|
tax_id?: string | undefined;
|
|
14684
|
+
tax_exemption_reason?: string | undefined;
|
|
13256
14685
|
unit_of_measure?: string | undefined;
|
|
13257
14686
|
product_id?: string | undefined;
|
|
13258
14687
|
product_code?: string | undefined;
|
|
@@ -13269,9 +14698,29 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
13269
14698
|
model?: string | undefined;
|
|
13270
14699
|
name?: string | undefined;
|
|
13271
14700
|
} | undefined;
|
|
14701
|
+
italian_specificities?: {
|
|
14702
|
+
stamp_duty_amount?: number | undefined;
|
|
14703
|
+
withholding_tax?: {
|
|
14704
|
+
rate: number;
|
|
14705
|
+
amount: number;
|
|
14706
|
+
reason?: "RT01" | "RT02" | "RT03" | "RT04" | "RT05" | "RT06" | undefined;
|
|
14707
|
+
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;
|
|
14708
|
+
} | undefined;
|
|
14709
|
+
welfare_fund?: {
|
|
14710
|
+
rate: number;
|
|
14711
|
+
amount: number;
|
|
14712
|
+
type?: "TC01" | "TC02" | "TC03" | "TC04" | "TC05" | "TC06" | "TC07" | "TC08" | "TC09" | "TC10" | "TC11" | "TC12" | "TC13" | "TC14" | "TC15" | "TC16" | "TC17" | "TC18" | "TC19" | "TC20" | "TC21" | "TC22" | undefined;
|
|
14713
|
+
} | undefined;
|
|
14714
|
+
payment_reporting?: {
|
|
14715
|
+
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;
|
|
14716
|
+
conditions?: "TP01" | "TP02" | "TP03" | undefined;
|
|
14717
|
+
} | undefined;
|
|
14718
|
+
} | undefined;
|
|
13272
14719
|
last_updated_on?: string | undefined;
|
|
13273
14720
|
outstanding_amount?: number | undefined;
|
|
13274
14721
|
accounting_date?: string | undefined;
|
|
14722
|
+
payment_method_id?: string | undefined;
|
|
14723
|
+
currency_exchange_rate: number;
|
|
13275
14724
|
}>;
|
|
13276
14725
|
getProducts(): import("../types/api").RequestData<{
|
|
13277
14726
|
id: string;
|
|
@@ -13568,6 +15017,31 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
13568
15017
|
}[];
|
|
13569
15018
|
external_reference?: string | undefined;
|
|
13570
15019
|
}>;
|
|
15020
|
+
getPayments(): import("../types/api").RequestData<{
|
|
15021
|
+
id: string;
|
|
15022
|
+
source_ref: {
|
|
15023
|
+
id?: string | undefined;
|
|
15024
|
+
model?: string | undefined;
|
|
15025
|
+
};
|
|
15026
|
+
status: "unknown" | "pending" | "completed" | "canceled" | "failed" | "authorized";
|
|
15027
|
+
description: string;
|
|
15028
|
+
amount: number;
|
|
15029
|
+
currency: string;
|
|
15030
|
+
payment_date: string;
|
|
15031
|
+
partner_id: string;
|
|
15032
|
+
payment_method_id?: string | undefined;
|
|
15033
|
+
payment_method_name?: string | undefined;
|
|
15034
|
+
invoice_id?: string | undefined;
|
|
15035
|
+
invoice_number?: string | undefined;
|
|
15036
|
+
}[]>;
|
|
15037
|
+
getPaymentMethods(): import("../types/api").RequestData<{
|
|
15038
|
+
id: string;
|
|
15039
|
+
source_ref: {
|
|
15040
|
+
id?: string | undefined;
|
|
15041
|
+
model?: string | undefined;
|
|
15042
|
+
};
|
|
15043
|
+
name: string;
|
|
15044
|
+
}[]>;
|
|
13571
15045
|
}>;
|
|
13572
15046
|
ecommerce: import("../types/api").ApiFor<{
|
|
13573
15047
|
getCustomers(): import("../types/api").RequestData<{
|
|
@@ -14707,6 +16181,52 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
14707
16181
|
logData: (logs: import("../types/consumers").ConsumerLog[]) => Promise<import("../types/sync").SimpleResponseModel>;
|
|
14708
16182
|
setConnectionId: (connectionId: string) => Promise<void>;
|
|
14709
16183
|
setIntegrationId: (integrationId: string) => Promise<void>;
|
|
16184
|
+
updateConsumer: (body: {
|
|
16185
|
+
name?: string | undefined;
|
|
16186
|
+
email?: string | undefined;
|
|
16187
|
+
internal_reference?: string | undefined;
|
|
16188
|
+
redirect_url?: string | undefined;
|
|
16189
|
+
}) => Promise<{
|
|
16190
|
+
consumerid: string;
|
|
16191
|
+
name: string;
|
|
16192
|
+
email?: string | undefined;
|
|
16193
|
+
internal_reference?: string | undefined;
|
|
16194
|
+
redirect_url?: string | undefined;
|
|
16195
|
+
}>;
|
|
16196
|
+
updateFlowConfig: (syncId: string, flowId: string, body: {
|
|
16197
|
+
triggerid: string;
|
|
16198
|
+
data: Record<string, never>;
|
|
16199
|
+
}) => Promise<{
|
|
16200
|
+
name: string;
|
|
16201
|
+
description?: string | undefined;
|
|
16202
|
+
id: string;
|
|
16203
|
+
config?: {
|
|
16204
|
+
definitionFields?: Record<string, never>[] | undefined;
|
|
16205
|
+
doorkeyFields?: Record<string, never>[] | undefined;
|
|
16206
|
+
customFields?: Record<string, never>[] | undefined;
|
|
16207
|
+
datastores: {
|
|
16208
|
+
id?: string | undefined;
|
|
16209
|
+
name: string;
|
|
16210
|
+
status: "active" | "inactive";
|
|
16211
|
+
definition: {
|
|
16212
|
+
columns: {
|
|
16213
|
+
name: string;
|
|
16214
|
+
title: string;
|
|
16215
|
+
type: string;
|
|
16216
|
+
optional: boolean;
|
|
16217
|
+
}[];
|
|
16218
|
+
search_column?: string | undefined;
|
|
16219
|
+
};
|
|
16220
|
+
}[];
|
|
16221
|
+
} | undefined;
|
|
16222
|
+
values: Record<string, never>;
|
|
16223
|
+
enabled_on?: string | undefined;
|
|
16224
|
+
trigger: {
|
|
16225
|
+
id: string;
|
|
16226
|
+
type: "event" | "timer";
|
|
16227
|
+
cronschedule?: string | undefined;
|
|
16228
|
+
};
|
|
16229
|
+
}>;
|
|
14710
16230
|
}, context: any) => any, log?: boolean) => Promise<void>;
|
|
14711
16231
|
flowId: string;
|
|
14712
16232
|
name: string;
|
|
@@ -14714,5 +16234,22 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
14714
16234
|
name: string;
|
|
14715
16235
|
consumers: string[];
|
|
14716
16236
|
syncid: string;
|
|
16237
|
+
sendCustomEvent: (flowid: string, eventData: components['schemas']['PostSyncFlowEvent']) => Promise<{
|
|
16238
|
+
status: string;
|
|
16239
|
+
message: string;
|
|
16240
|
+
data?: Record<string, never> | undefined;
|
|
16241
|
+
}>;
|
|
16242
|
+
getConsumerExecutions: (consumerid: string, flowid: string) => Promise<{
|
|
16243
|
+
id: string;
|
|
16244
|
+
start: string;
|
|
16245
|
+
end?: string | undefined;
|
|
16246
|
+
status: string;
|
|
16247
|
+
}[]>;
|
|
16248
|
+
getExecution: (flowid: string, executionid: string) => Promise<{
|
|
16249
|
+
id: string;
|
|
16250
|
+
start: string;
|
|
16251
|
+
end?: string | undefined;
|
|
16252
|
+
status: string;
|
|
16253
|
+
}>;
|
|
14717
16254
|
};
|
|
14718
16255
|
export { Sync };
|