@chift/chift-nodejs 1.0.26 → 1.0.27

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.
@@ -47,7 +47,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
47
47
  value: string;
48
48
  }[] | null | undefined;
49
49
  country?: string | null | undefined;
50
- } | undefined) => Promise<{
50
+ redirect: boolean | null;
51
+ } | null | undefined) => Promise<{
51
52
  url: string;
52
53
  }>;
53
54
  updateConnection: (connectionId: string, body?: {
@@ -66,6 +67,15 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
66
67
  };
67
68
  content?: undefined;
68
69
  }>;
70
+ getTransactionByClientRequestId: (connectionId: string, params: {
71
+ client_request_id: string;
72
+ }) => Promise<{
73
+ created_on: string;
74
+ method: "GET" | "DELETE" | "HEAD" | "OPTIONS" | "POST" | "PUT" | "PATCH";
75
+ route: string;
76
+ status_code: number;
77
+ created_entity_id?: string | null | undefined;
78
+ }>;
69
79
  enableFlow: (syncId: string, flowId: string, body: {
70
80
  integrationids: string[];
71
81
  triggerid: string | null;
@@ -671,6 +681,30 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
671
681
  country?: string | null | undefined;
672
682
  }[] | null | undefined;
673
683
  }[]>;
684
+ getCustomer(customerId: string, rawData?: boolean | undefined): import("../types/api").RequestData<{
685
+ id: string;
686
+ source_ref: {
687
+ id?: string | null | undefined;
688
+ model?: string | null | undefined;
689
+ };
690
+ first_name?: string | null | undefined;
691
+ last_name?: string | null | undefined;
692
+ company_name?: string | null | undefined;
693
+ phone?: string | null | undefined;
694
+ email?: string | null | undefined;
695
+ account_number?: string | null | undefined;
696
+ created_on?: string | null | undefined;
697
+ addresses?: {
698
+ address_type?: string | null | undefined;
699
+ name?: string | null | undefined;
700
+ street?: string | null | undefined;
701
+ number?: string | null | undefined;
702
+ box?: string | null | undefined;
703
+ city?: string | null | undefined;
704
+ postal_code?: string | null | undefined;
705
+ country?: string | null | undefined;
706
+ }[] | null | undefined;
707
+ }>;
674
708
  getInvoices(params?: {
675
709
  date_from: string;
676
710
  date_to: string;
@@ -773,6 +807,20 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
773
807
  untaxed_amount: number;
774
808
  total: number;
775
809
  }[]>;
810
+ getTaxes(params?: {} | undefined, rawData?: boolean | undefined): import("../types/api").RequestData<{
811
+ items: {
812
+ id: string;
813
+ source_ref: {
814
+ id?: string | null | undefined;
815
+ model?: string | null | undefined;
816
+ };
817
+ label?: string | null | undefined;
818
+ rate?: number | null | undefined;
819
+ }[];
820
+ total: number;
821
+ page: number;
822
+ size: number;
823
+ }>;
776
824
  }>;
777
825
  payment: import("../types/api").ApiFor<{
778
826
  getPayments(params: {
@@ -1324,6 +1372,12 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
1324
1372
  reference?: string | null | undefined;
1325
1373
  payment_communication?: string | null | undefined;
1326
1374
  customer_memo?: string | null | undefined;
1375
+ payment_term_id?: string | null | undefined;
1376
+ withholding_tax?: {
1377
+ tax_rate: number;
1378
+ tax_code: string;
1379
+ tax_amount: number;
1380
+ } | null | undefined;
1327
1381
  invoice_date: string;
1328
1382
  due_date: string;
1329
1383
  partner_id?: string | null | undefined;
@@ -1366,10 +1420,14 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
1366
1420
  description: string;
1367
1421
  analytic_account?: string | null | undefined;
1368
1422
  }[];
1423
+ start_date?: string | null | undefined;
1424
+ end_date?: string | null | undefined;
1425
+ payment_method_id?: string | null | undefined;
1369
1426
  }, params?: {
1370
1427
  folder_id?: string | null | undefined;
1371
1428
  force_financial_period?: string | null | undefined;
1372
1429
  regroup_lines?: "true" | "false" | null | undefined;
1430
+ ignore_accounting_id?: boolean | undefined;
1373
1431
  } | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
1374
1432
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
1375
1433
  invoice_number?: string | null | undefined;
@@ -1380,10 +1438,16 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
1380
1438
  reference?: string | null | undefined;
1381
1439
  payment_communication?: string | null | undefined;
1382
1440
  customer_memo?: string | null | undefined;
1441
+ payment_term_id?: string | null | undefined;
1442
+ withholding_tax?: {
1443
+ tax_rate: number;
1444
+ tax_code: string;
1445
+ tax_amount: number;
1446
+ } | null | undefined;
1383
1447
  id?: string | null | undefined;
1384
1448
  invoice_date: string;
1385
1449
  due_date: string;
1386
- partner_id: string;
1450
+ partner_id: string | null;
1387
1451
  journal_id?: string | null | undefined;
1388
1452
  payments?: {
1389
1453
  id: string;
@@ -1441,8 +1505,22 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
1441
1505
  due_dates: {
1442
1506
  due_date: string;
1443
1507
  payment_method?: string | null | undefined;
1508
+ payment_method_id?: string | null | undefined;
1444
1509
  amount: number;
1445
1510
  }[] | null;
1511
+ attachments_info?: {
1512
+ status: "unknown" | "yes" | "yes_to_request" | "no";
1513
+ attachments: {
1514
+ filename?: string | null | undefined;
1515
+ url?: string | null | undefined;
1516
+ }[] | null;
1517
+ } | undefined;
1518
+ accounting_info?: {
1519
+ main_currency?: string | undefined;
1520
+ main_currency_total: number;
1521
+ account_number?: string | null | undefined;
1522
+ } | null | undefined;
1523
+ payment_method_id?: string | null | undefined;
1446
1524
  lines: {
1447
1525
  line_number: number | null;
1448
1526
  unit_price: number;
@@ -1468,6 +1546,12 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
1468
1546
  reference?: string | null | undefined;
1469
1547
  payment_communication?: string | null | undefined;
1470
1548
  customer_memo?: string | null | undefined;
1549
+ payment_term_id?: string | null | undefined;
1550
+ withholding_tax?: {
1551
+ tax_rate: number;
1552
+ tax_code: string;
1553
+ tax_amount: number;
1554
+ } | null | undefined;
1471
1555
  invoice_date: string;
1472
1556
  due_date: string;
1473
1557
  partner_id?: string | null | undefined;
@@ -1516,10 +1600,14 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
1516
1600
  }[];
1517
1601
  }[] | null;
1518
1602
  }[];
1603
+ start_date?: string | null | undefined;
1604
+ end_date?: string | null | undefined;
1605
+ payment_method_id?: string | null | undefined;
1519
1606
  }, params?: {
1520
1607
  folder_id?: string | null | undefined;
1521
1608
  force_financial_period?: string | null | undefined;
1522
1609
  regroup_lines?: "true" | "false" | null | undefined;
1610
+ ignore_accounting_id?: boolean | undefined;
1523
1611
  } | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
1524
1612
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
1525
1613
  invoice_number?: string | null | undefined;
@@ -1530,10 +1618,16 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
1530
1618
  reference?: string | null | undefined;
1531
1619
  payment_communication?: string | null | undefined;
1532
1620
  customer_memo?: string | null | undefined;
1621
+ payment_term_id?: string | null | undefined;
1622
+ withholding_tax?: {
1623
+ tax_rate: number;
1624
+ tax_code: string;
1625
+ tax_amount: number;
1626
+ } | null | undefined;
1533
1627
  id?: string | null | undefined;
1534
1628
  invoice_date: string;
1535
1629
  due_date: string;
1536
- partner_id: string;
1630
+ partner_id: string | null;
1537
1631
  journal_id?: string | null | undefined;
1538
1632
  payments?: {
1539
1633
  id: string;
@@ -1591,8 +1685,22 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
1591
1685
  due_dates: {
1592
1686
  due_date: string;
1593
1687
  payment_method?: string | null | undefined;
1688
+ payment_method_id?: string | null | undefined;
1594
1689
  amount: number;
1595
1690
  }[] | null;
1691
+ attachments_info?: {
1692
+ status: "unknown" | "yes" | "yes_to_request" | "no";
1693
+ attachments: {
1694
+ filename?: string | null | undefined;
1695
+ url?: string | null | undefined;
1696
+ }[] | null;
1697
+ } | undefined;
1698
+ accounting_info?: {
1699
+ main_currency?: string | undefined;
1700
+ main_currency_total: number;
1701
+ account_number?: string | null | undefined;
1702
+ } | null | undefined;
1703
+ payment_method_id?: string | null | undefined;
1596
1704
  lines: {
1597
1705
  line_number: number | null;
1598
1706
  unit_price: number;
@@ -1634,10 +1742,16 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
1634
1742
  reference?: string | null | undefined;
1635
1743
  payment_communication?: string | null | undefined;
1636
1744
  customer_memo?: string | null | undefined;
1745
+ payment_term_id?: string | null | undefined;
1746
+ withholding_tax?: {
1747
+ tax_rate: number;
1748
+ tax_code: string;
1749
+ tax_amount: number;
1750
+ } | null | undefined;
1637
1751
  id?: string | null | undefined;
1638
1752
  invoice_date: string;
1639
1753
  due_date: string;
1640
- partner_id: string;
1754
+ partner_id: string | null;
1641
1755
  journal_id?: string | null | undefined;
1642
1756
  payments?: {
1643
1757
  id: string;
@@ -1695,8 +1809,22 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
1695
1809
  due_dates: {
1696
1810
  due_date: string;
1697
1811
  payment_method?: string | null | undefined;
1812
+ payment_method_id?: string | null | undefined;
1698
1813
  amount: number;
1699
1814
  }[] | null;
1815
+ attachments_info?: {
1816
+ status: "unknown" | "yes" | "yes_to_request" | "no";
1817
+ attachments: {
1818
+ filename?: string | null | undefined;
1819
+ url?: string | null | undefined;
1820
+ }[] | null;
1821
+ } | undefined;
1822
+ accounting_info?: {
1823
+ main_currency?: string | undefined;
1824
+ main_currency_total: number;
1825
+ account_number?: string | null | undefined;
1826
+ } | null | undefined;
1827
+ payment_method_id?: string | null | undefined;
1700
1828
  lines: {
1701
1829
  line_number: number | null;
1702
1830
  unit_price: number;
@@ -1727,10 +1855,16 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
1727
1855
  reference?: string | null | undefined;
1728
1856
  payment_communication?: string | null | undefined;
1729
1857
  customer_memo?: string | null | undefined;
1858
+ payment_term_id?: string | null | undefined;
1859
+ withholding_tax?: {
1860
+ tax_rate: number;
1861
+ tax_code: string;
1862
+ tax_amount: number;
1863
+ } | null | undefined;
1730
1864
  id?: string | null | undefined;
1731
1865
  invoice_date: string;
1732
1866
  due_date: string;
1733
- partner_id: string;
1867
+ partner_id: string | null;
1734
1868
  journal_id?: string | null | undefined;
1735
1869
  payments?: {
1736
1870
  id: string;
@@ -1788,8 +1922,22 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
1788
1922
  due_dates: {
1789
1923
  due_date: string;
1790
1924
  payment_method?: string | null | undefined;
1925
+ payment_method_id?: string | null | undefined;
1791
1926
  amount: number;
1792
1927
  }[] | null;
1928
+ attachments_info?: {
1929
+ status: "unknown" | "yes" | "yes_to_request" | "no";
1930
+ attachments: {
1931
+ filename?: string | null | undefined;
1932
+ url?: string | null | undefined;
1933
+ }[] | null;
1934
+ } | undefined;
1935
+ accounting_info?: {
1936
+ main_currency?: string | undefined;
1937
+ main_currency_total: number;
1938
+ account_number?: string | null | undefined;
1939
+ } | null | undefined;
1940
+ payment_method_id?: string | null | undefined;
1793
1941
  lines: {
1794
1942
  line_number: number | null;
1795
1943
  unit_price: number;
@@ -1820,10 +1968,16 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
1820
1968
  reference?: string | null | undefined;
1821
1969
  payment_communication?: string | null | undefined;
1822
1970
  customer_memo?: string | null | undefined;
1971
+ payment_term_id?: string | null | undefined;
1972
+ withholding_tax?: {
1973
+ tax_rate: number;
1974
+ tax_code: string;
1975
+ tax_amount: number;
1976
+ } | null | undefined;
1823
1977
  id?: string | null | undefined;
1824
1978
  invoice_date: string;
1825
1979
  due_date: string;
1826
- partner_id: string;
1980
+ partner_id: string | null;
1827
1981
  journal_id?: string | null | undefined;
1828
1982
  payments?: {
1829
1983
  id: string;
@@ -1881,8 +2035,22 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
1881
2035
  due_dates: {
1882
2036
  due_date: string;
1883
2037
  payment_method?: string | null | undefined;
2038
+ payment_method_id?: string | null | undefined;
1884
2039
  amount: number;
1885
2040
  }[] | null;
2041
+ attachments_info?: {
2042
+ status: "unknown" | "yes" | "yes_to_request" | "no";
2043
+ attachments: {
2044
+ filename?: string | null | undefined;
2045
+ url?: string | null | undefined;
2046
+ }[] | null;
2047
+ } | undefined;
2048
+ accounting_info?: {
2049
+ main_currency?: string | undefined;
2050
+ main_currency_total: number;
2051
+ account_number?: string | null | undefined;
2052
+ } | null | undefined;
2053
+ payment_method_id?: string | null | undefined;
1886
2054
  lines: {
1887
2055
  line_number: number | null;
1888
2056
  unit_price: number;
@@ -1924,10 +2092,16 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
1924
2092
  reference?: string | null | undefined;
1925
2093
  payment_communication?: string | null | undefined;
1926
2094
  customer_memo?: string | null | undefined;
2095
+ payment_term_id?: string | null | undefined;
2096
+ withholding_tax?: {
2097
+ tax_rate: number;
2098
+ tax_code: string;
2099
+ tax_amount: number;
2100
+ } | null | undefined;
1927
2101
  id?: string | null | undefined;
1928
2102
  invoice_date: string;
1929
2103
  due_date: string;
1930
- partner_id: string;
2104
+ partner_id: string | null;
1931
2105
  journal_id?: string | null | undefined;
1932
2106
  payments?: {
1933
2107
  id: string;
@@ -1985,8 +2159,22 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
1985
2159
  due_dates: {
1986
2160
  due_date: string;
1987
2161
  payment_method?: string | null | undefined;
2162
+ payment_method_id?: string | null | undefined;
1988
2163
  amount: number;
1989
2164
  }[] | null;
2165
+ attachments_info?: {
2166
+ status: "unknown" | "yes" | "yes_to_request" | "no";
2167
+ attachments: {
2168
+ filename?: string | null | undefined;
2169
+ url?: string | null | undefined;
2170
+ }[] | null;
2171
+ } | undefined;
2172
+ accounting_info?: {
2173
+ main_currency?: string | undefined;
2174
+ main_currency_total: number;
2175
+ account_number?: string | null | undefined;
2176
+ } | null | undefined;
2177
+ payment_method_id?: string | null | undefined;
1990
2178
  lines: {
1991
2179
  line_number: number | null;
1992
2180
  unit_price: number;
@@ -2134,7 +2322,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
2134
2322
  folder_id?: string | null | undefined;
2135
2323
  updated_after?: string | null | undefined;
2136
2324
  unposted_allowed: "true" | "false";
2137
- journal_id: string;
2325
+ journal_id?: string | null | undefined;
2138
2326
  partner_id?: string | null | undefined;
2139
2327
  }, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
2140
2328
  reference?: string | null | undefined;
@@ -2148,9 +2336,17 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
2148
2336
  due_dates: {
2149
2337
  due_date: string;
2150
2338
  payment_method?: string | null | undefined;
2339
+ payment_method_id?: string | null | undefined;
2151
2340
  debit: number | null;
2152
2341
  credit: number | null;
2153
2342
  }[] | null;
2343
+ attachments_info?: {
2344
+ status: "unknown" | "yes" | "yes_to_request" | "no";
2345
+ attachments: {
2346
+ filename?: string | null | undefined;
2347
+ url?: string | null | undefined;
2348
+ }[] | null;
2349
+ } | undefined;
2154
2350
  items: {
2155
2351
  account_number: string;
2156
2352
  partner_id?: string | null | undefined;
@@ -2173,7 +2369,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
2173
2369
  folder_id?: string | null | undefined;
2174
2370
  updated_after?: string | null | undefined;
2175
2371
  unposted_allowed: "true" | "false";
2176
- journal_id: string;
2372
+ journal_id?: string | null | undefined;
2177
2373
  partner_id?: string | null | undefined;
2178
2374
  }, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
2179
2375
  reference?: string | null | undefined;
@@ -2187,9 +2383,17 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
2187
2383
  due_dates: {
2188
2384
  due_date: string;
2189
2385
  payment_method?: string | null | undefined;
2386
+ payment_method_id?: string | null | undefined;
2190
2387
  debit: number | null;
2191
2388
  credit: number | null;
2192
2389
  }[] | null;
2390
+ attachments_info?: {
2391
+ status: "unknown" | "yes" | "yes_to_request" | "no";
2392
+ attachments: {
2393
+ filename?: string | null | undefined;
2394
+ url?: string | null | undefined;
2395
+ }[] | null;
2396
+ } | undefined;
2193
2397
  items: {
2194
2398
  account_number: string;
2195
2399
  partner_id?: string | null | undefined;
@@ -2279,6 +2483,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
2279
2483
  } | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
2280
2484
  id: string;
2281
2485
  code?: string | null | undefined;
2486
+ active: boolean | null;
2282
2487
  label: string;
2283
2488
  scope: "unknown" | "nat" | "eu" | "int" | null;
2284
2489
  rate: number;
@@ -2286,6 +2491,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
2286
2491
  deductible_account?: string | null | undefined;
2287
2492
  payable_account?: string | null | undefined;
2288
2493
  reversed: boolean | null;
2494
+ withholding_tax: boolean | null;
2289
2495
  country?: string | null | undefined;
2290
2496
  }[]>;
2291
2497
  getMiscOperations(params?: {
@@ -2388,12 +2594,14 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
2388
2594
  getChartOfAccounts(params?: {
2389
2595
  folder_id?: string | null | undefined;
2390
2596
  classes?: string | null | undefined;
2391
- type?: "vat" | "bank" | "cash" | "income" | "expense" | null | undefined;
2597
+ type?: "vat" | "bank" | "cash" | "income" | "expense" | "other_expense" | null | undefined;
2392
2598
  } | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
2393
2599
  number: string;
2394
2600
  name: string;
2395
2601
  active: boolean | null;
2396
- type?: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | null | undefined;
2602
+ type?: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | "other_expense" | null | undefined;
2603
+ scheme_ids?: string[] | null | undefined;
2604
+ accounting_category?: string | null | undefined;
2397
2605
  }[]>;
2398
2606
  getBalanceOfAccounts(filter: {
2399
2607
  accounts: string[];
@@ -2469,6 +2677,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
2469
2677
  account: string;
2470
2678
  amount: number;
2471
2679
  description?: string | null | undefined;
2680
+ automated_matching_number?: string | null | undefined;
2472
2681
  }[];
2473
2682
  pdf?: string | null | undefined;
2474
2683
  }, params?: {
@@ -2487,6 +2696,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
2487
2696
  account: string;
2488
2697
  amount: number;
2489
2698
  description?: string | null | undefined;
2699
+ automated_matching_number?: string | null | undefined;
2490
2700
  counterpart_account: string;
2491
2701
  }[];
2492
2702
  }>;
@@ -2514,6 +2724,13 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
2514
2724
  }[];
2515
2725
  }[] | null;
2516
2726
  tax_code?: string | null | undefined;
2727
+ tax_info?: {
2728
+ tax_code: string;
2729
+ tax_amount: number;
2730
+ vat_account?: string | null | undefined;
2731
+ reversed_vat_account?: string | null | undefined;
2732
+ description?: string | null | undefined;
2733
+ } | null | undefined;
2517
2734
  account_info?: {
2518
2735
  account_number: string;
2519
2736
  account_name: string;
@@ -2526,6 +2743,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
2526
2743
  }, params?: {
2527
2744
  folder_id?: string | null | undefined;
2528
2745
  force_currency_exchange?: "true" | "false" | null | undefined;
2746
+ ignore_accounting_id?: boolean | undefined;
2529
2747
  } | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
2530
2748
  reference?: string | null | undefined;
2531
2749
  due_date?: string | null | undefined;
@@ -2538,9 +2756,17 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
2538
2756
  due_dates: {
2539
2757
  due_date: string;
2540
2758
  payment_method?: string | null | undefined;
2759
+ payment_method_id?: string | null | undefined;
2541
2760
  debit: number | null;
2542
2761
  credit: number | null;
2543
2762
  }[] | null;
2763
+ attachments_info?: {
2764
+ status: "unknown" | "yes" | "yes_to_request" | "no";
2765
+ attachments: {
2766
+ filename?: string | null | undefined;
2767
+ url?: string | null | undefined;
2768
+ }[] | null;
2769
+ } | undefined;
2544
2770
  items: {
2545
2771
  account_number: string;
2546
2772
  partner_id?: string | null | undefined;
@@ -2656,14 +2882,35 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
2656
2882
  createLedgerAccount(account: {
2657
2883
  name: string;
2658
2884
  number: string;
2659
- type: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | null;
2885
+ type: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | "other_expense" | null;
2660
2886
  }, params?: {
2661
2887
  folder_id?: string | null | undefined;
2662
2888
  } | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
2663
2889
  number: string;
2664
2890
  name: string;
2665
2891
  active: boolean | null;
2666
- type?: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | null | undefined;
2892
+ type?: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | "other_expense" | null | undefined;
2893
+ scheme_ids?: string[] | null | undefined;
2894
+ accounting_category?: string | null | undefined;
2895
+ }>;
2896
+ getBankAccounts(params?: {
2897
+ folder_id?: string | null | undefined;
2898
+ } | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
2899
+ items: {
2900
+ id: string;
2901
+ code?: string | null | undefined;
2902
+ currency?: string | null | undefined;
2903
+ account_name?: string | null | undefined;
2904
+ account_number?: string | null | undefined;
2905
+ iban?: string | null | undefined;
2906
+ bank_name?: string | null | undefined;
2907
+ journal_id?: string | null | undefined;
2908
+ ledger_account?: string | null | undefined;
2909
+ unallocated_account?: string | null | undefined;
2910
+ }[];
2911
+ total: number;
2912
+ page: number;
2913
+ size: number;
2667
2914
  }>;
2668
2915
  createBankAccount(bankAccount: {
2669
2916
  code: string;
@@ -2686,6 +2933,45 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
2686
2933
  ledger_account?: string | null | undefined;
2687
2934
  unallocated_account?: string | null | undefined;
2688
2935
  }>;
2936
+ createBankTransactions(bankStatement: {
2937
+ bank_statement_date: string;
2938
+ bank_account_id: string;
2939
+ external_bank_statement_id: string;
2940
+ opening_balance?: number | null | undefined;
2941
+ pdf?: string | null | undefined;
2942
+ items: {
2943
+ account_type?: "customer_account" | "supplier_account" | "employee_account" | "general_account" | null | undefined;
2944
+ account?: string | null | undefined;
2945
+ description?: string | null | undefined;
2946
+ external_transaction_id?: string | null | undefined;
2947
+ date: string;
2948
+ amount: number;
2949
+ fee_amount: number | null;
2950
+ tax_amount: number | null;
2951
+ currency: string;
2952
+ currency_exchange_rate: number | null;
2953
+ }[];
2954
+ }, params?: {
2955
+ folder_id?: string | null | undefined;
2956
+ } | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
2957
+ bank_statement_date: string;
2958
+ bank_account_id: string;
2959
+ id?: string | null | undefined;
2960
+ external_bank_statement_id?: string | null | undefined;
2961
+ items: {
2962
+ account_type?: "customer_account" | "supplier_account" | "employee_account" | "general_account" | null | undefined;
2963
+ account?: string | null | undefined;
2964
+ description?: string | null | undefined;
2965
+ external_transaction_id?: string | null | undefined;
2966
+ date: string;
2967
+ amount: number;
2968
+ fee_amount: number | null;
2969
+ tax_amount: number | null;
2970
+ currency: string;
2971
+ currency_exchange_rate: number | null;
2972
+ id?: string | null | undefined;
2973
+ }[];
2974
+ }>;
2689
2975
  getJournalEntry(journalEntryId: string, params?: {
2690
2976
  folder_id?: string | null | undefined;
2691
2977
  } | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
@@ -2700,9 +2986,17 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
2700
2986
  due_dates: {
2701
2987
  due_date: string;
2702
2988
  payment_method?: string | null | undefined;
2989
+ payment_method_id?: string | null | undefined;
2703
2990
  debit: number | null;
2704
2991
  credit: number | null;
2705
2992
  }[] | null;
2993
+ attachments_info?: {
2994
+ status: "unknown" | "yes" | "yes_to_request" | "no";
2995
+ attachments: {
2996
+ filename?: string | null | undefined;
2997
+ url?: string | null | undefined;
2998
+ }[] | null;
2999
+ } | undefined;
2706
3000
  items: {
2707
3001
  account_number: string;
2708
3002
  partner_id?: string | null | undefined;
@@ -2737,6 +3031,29 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
2737
3031
  page: number;
2738
3032
  size: number;
2739
3033
  }>;
3034
+ getPaymentTerms(params?: {
3035
+ folder_id?: string | null | undefined;
3036
+ } | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
3037
+ items: {
3038
+ id: string;
3039
+ name?: string | null | undefined;
3040
+ }[];
3041
+ total: number;
3042
+ page: number;
3043
+ size: number;
3044
+ }>;
3045
+ getSchemes(params?: {
3046
+ folder_id?: string | null | undefined;
3047
+ } | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
3048
+ items: {
3049
+ id: string;
3050
+ code: string;
3051
+ name: string;
3052
+ }[];
3053
+ total: number;
3054
+ page: number;
3055
+ size: number;
3056
+ }>;
2740
3057
  createInvoicePayment(body: {
2741
3058
  date: string;
2742
3059
  payment_method_id: string;
@@ -2756,6 +3073,29 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
2756
3073
  };
2757
3074
  content?: undefined;
2758
3075
  }>;
3076
+ exportFec(params: {
3077
+ folder_id?: string | null | undefined;
3078
+ date_from: string;
3079
+ date_to: string;
3080
+ }, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
3081
+ JournalCode: string;
3082
+ JournalLib: string;
3083
+ EcritureNum: string;
3084
+ EcritureDate: string;
3085
+ CompteNum: string;
3086
+ CompteLib: string;
3087
+ CompAuxNum: string;
3088
+ CompAuxLib: string;
3089
+ PieceRef: string;
3090
+ PieceDate: string;
3091
+ Debit: number;
3092
+ Credit: number;
3093
+ EcritureLet: string;
3094
+ DateLet: string | null;
3095
+ ValidDate: string | null;
3096
+ Montantdevise: number;
3097
+ Idevise: string;
3098
+ }[]>;
2759
3099
  }>;
2760
3100
  invoicing: import("../types/api").ApiFor<{
2761
3101
  getInvoices(params?: {
@@ -2765,6 +3105,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
2765
3105
  updated_after?: string | null | undefined;
2766
3106
  include_invoice_lines?: "true" | "false" | null | undefined;
2767
3107
  invoice_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all" | null | undefined;
3108
+ include_analytic_accounts?: "true" | "false" | null | undefined;
2768
3109
  } | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
2769
3110
  id: string;
2770
3111
  source_ref: {
@@ -2794,6 +3135,14 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
2794
3135
  product_id?: string | null | undefined;
2795
3136
  product_code?: string | null | undefined;
2796
3137
  product_name?: string | null | undefined;
3138
+ analytic_distribution: {
3139
+ analytic_plan_code: string;
3140
+ analytic_accounts: {
3141
+ analytic_account_code: string;
3142
+ analytic_account_name: string;
3143
+ percentage: number;
3144
+ }[];
3145
+ }[] | null;
2797
3146
  }[];
2798
3147
  partner_id?: string | null | undefined;
2799
3148
  invoice_number?: string | null | undefined;
@@ -2833,6 +3182,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
2833
3182
  }[]>;
2834
3183
  getInvoiceById(invoiceId: string, params?: {
2835
3184
  include_pdf?: "true" | "false" | null | undefined;
3185
+ include_analytic_accounts?: "true" | "false" | null | undefined;
2836
3186
  } | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
2837
3187
  id: string;
2838
3188
  source_ref: {
@@ -2862,6 +3212,14 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
2862
3212
  product_id?: string | null | undefined;
2863
3213
  product_code?: string | null | undefined;
2864
3214
  product_name?: string | null | undefined;
3215
+ analytic_distribution: {
3216
+ analytic_plan_code: string;
3217
+ analytic_accounts: {
3218
+ analytic_account_code: string;
3219
+ analytic_account_name: string;
3220
+ percentage: number;
3221
+ }[];
3222
+ }[] | null;
2865
3223
  }[];
2866
3224
  partner_id?: string | null | undefined;
2867
3225
  invoice_number?: string | null | undefined;
@@ -2983,6 +3341,14 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
2983
3341
  product_id?: string | null | undefined;
2984
3342
  product_code?: string | null | undefined;
2985
3343
  product_name?: string | null | undefined;
3344
+ analytic_distribution: {
3345
+ analytic_plan_code: string;
3346
+ analytic_accounts: {
3347
+ analytic_account_code: string;
3348
+ analytic_account_name: string;
3349
+ percentage: number;
3350
+ }[];
3351
+ }[] | null;
2986
3352
  }[];
2987
3353
  partner_id?: string | null | undefined;
2988
3354
  invoice_number?: string | null | undefined;
@@ -4561,14 +4927,18 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
4561
4927
  reference: string;
4562
4928
  reference_type: string;
4563
4929
  holder_name?: string | null | undefined;
4930
+ active: boolean | null;
4564
4931
  }[]>;
4565
- getAccountTransactions(accountId: string, params?: {
4932
+ getAccountTransactions(params: {
4566
4933
  date_from?: string | null | undefined;
4567
4934
  date_to?: string | null | undefined;
4935
+ updated_after?: string | null | undefined;
4936
+ account_id: string;
4568
4937
  date_type?: "value_date" | "execution_date" | null | undefined;
4569
- } | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
4938
+ }, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
4570
4939
  id: string;
4571
4940
  amount: number;
4941
+ tax_amount?: number | null | undefined;
4572
4942
  currency: string;
4573
4943
  description?: string | null | undefined;
4574
4944
  additional_information?: string | null | undefined;
@@ -4578,6 +4948,17 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
4578
4948
  creation_date: string;
4579
4949
  value_date: string;
4580
4950
  execution_date: string;
4951
+ internal_transaction: boolean | null;
4952
+ operation_type: "other" | "fee" | "incoming_transfer" | "outgoing_transfer" | "card" | "direct_debit" | "direct_debit_collection" | "direct_debit_hold" | "cheque" | "recall" | "swift_income" | "pay_later" | "financing_installment" | null;
4953
+ last_update_on?: string | null | undefined;
4954
+ status?: "completed" | "pending" | "declined" | null | undefined;
4955
+ attachments_info?: {
4956
+ status: "unknown" | "yes" | "yes_to_request" | "no";
4957
+ attachments: {
4958
+ filename?: string | null | undefined;
4959
+ url?: string | null | undefined;
4960
+ }[] | null;
4961
+ } | undefined;
4581
4962
  }[]>;
4582
4963
  getAccountCounterparts(params?: {
4583
4964
  date_from?: string | null | undefined;
@@ -4588,6 +4969,17 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
4588
4969
  reference?: string | null | undefined;
4589
4970
  details?: string | null | undefined;
4590
4971
  }[]>;
4972
+ getAttachments(params: {
4973
+ transaction_id: string;
4974
+ }, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
4975
+ items: {
4976
+ id: string;
4977
+ base64_string: string;
4978
+ }[];
4979
+ total: number;
4980
+ page: number;
4981
+ size: number;
4982
+ }>;
4591
4983
  }>;
4592
4984
  getDataByDataStoreId: (dataStoreId: string, params?: object | undefined) => Promise<{
4593
4985
  data: {
@@ -4627,6 +5019,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
4627
5019
  source_id?: string | null | undefined;
4628
5020
  target_id?: string | null | undefined;
4629
5021
  }[];
5022
+ hidden_source_ids: string[];
4630
5023
  sub_mapping_name: string;
4631
5024
  sub_mapping_description?: string | null | undefined;
4632
5025
  }[] | null | undefined;
@@ -4813,7 +5206,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
4813
5206
  value: string;
4814
5207
  }[] | null | undefined;
4815
5208
  country?: string | null | undefined;
4816
- } | undefined) => Promise<{
5209
+ redirect: boolean | null;
5210
+ } | null | undefined) => Promise<{
4817
5211
  url: string;
4818
5212
  }>;
4819
5213
  updateConnection: (connectionId: string, body?: {
@@ -4832,6 +5226,15 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
4832
5226
  };
4833
5227
  content?: undefined;
4834
5228
  }>;
5229
+ getTransactionByClientRequestId: (connectionId: string, params: {
5230
+ client_request_id: string;
5231
+ }) => Promise<{
5232
+ created_on: string;
5233
+ method: "GET" | "DELETE" | "HEAD" | "OPTIONS" | "POST" | "PUT" | "PATCH";
5234
+ route: string;
5235
+ status_code: number;
5236
+ created_entity_id?: string | null | undefined;
5237
+ }>;
4835
5238
  enableFlow: (syncId: string, flowId: string, body: {
4836
5239
  integrationids: string[];
4837
5240
  triggerid: string | null;
@@ -5437,6 +5840,30 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
5437
5840
  country?: string | null | undefined;
5438
5841
  }[] | null | undefined;
5439
5842
  }[]>;
5843
+ getCustomer(customerId: string, rawData?: boolean | undefined): import("../types/api").RequestData<{
5844
+ id: string;
5845
+ source_ref: {
5846
+ id?: string | null | undefined;
5847
+ model?: string | null | undefined;
5848
+ };
5849
+ first_name?: string | null | undefined;
5850
+ last_name?: string | null | undefined;
5851
+ company_name?: string | null | undefined;
5852
+ phone?: string | null | undefined;
5853
+ email?: string | null | undefined;
5854
+ account_number?: string | null | undefined;
5855
+ created_on?: string | null | undefined;
5856
+ addresses?: {
5857
+ address_type?: string | null | undefined;
5858
+ name?: string | null | undefined;
5859
+ street?: string | null | undefined;
5860
+ number?: string | null | undefined;
5861
+ box?: string | null | undefined;
5862
+ city?: string | null | undefined;
5863
+ postal_code?: string | null | undefined;
5864
+ country?: string | null | undefined;
5865
+ }[] | null | undefined;
5866
+ }>;
5440
5867
  getInvoices(params?: {
5441
5868
  date_from: string;
5442
5869
  date_to: string;
@@ -5539,13 +5966,27 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
5539
5966
  untaxed_amount: number;
5540
5967
  total: number;
5541
5968
  }[]>;
5542
- }>;
5543
- payment: import("../types/api").ApiFor<{
5544
- getPayments(params: {
5545
- date_from?: string | null | undefined;
5546
- date_to?: string | null | undefined;
5547
- }, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
5548
- id: string;
5969
+ getTaxes(params?: {} | undefined, rawData?: boolean | undefined): import("../types/api").RequestData<{
5970
+ items: {
5971
+ id: string;
5972
+ source_ref: {
5973
+ id?: string | null | undefined;
5974
+ model?: string | null | undefined;
5975
+ };
5976
+ label?: string | null | undefined;
5977
+ rate?: number | null | undefined;
5978
+ }[];
5979
+ total: number;
5980
+ page: number;
5981
+ size: number;
5982
+ }>;
5983
+ }>;
5984
+ payment: import("../types/api").ApiFor<{
5985
+ getPayments(params: {
5986
+ date_from?: string | null | undefined;
5987
+ date_to?: string | null | undefined;
5988
+ }, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
5989
+ id: string;
5549
5990
  source_ref: {
5550
5991
  id?: string | null | undefined;
5551
5992
  model?: string | null | undefined;
@@ -6090,6 +6531,12 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
6090
6531
  reference?: string | null | undefined;
6091
6532
  payment_communication?: string | null | undefined;
6092
6533
  customer_memo?: string | null | undefined;
6534
+ payment_term_id?: string | null | undefined;
6535
+ withholding_tax?: {
6536
+ tax_rate: number;
6537
+ tax_code: string;
6538
+ tax_amount: number;
6539
+ } | null | undefined;
6093
6540
  invoice_date: string;
6094
6541
  due_date: string;
6095
6542
  partner_id?: string | null | undefined;
@@ -6132,10 +6579,14 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
6132
6579
  description: string;
6133
6580
  analytic_account?: string | null | undefined;
6134
6581
  }[];
6582
+ start_date?: string | null | undefined;
6583
+ end_date?: string | null | undefined;
6584
+ payment_method_id?: string | null | undefined;
6135
6585
  }, params?: {
6136
6586
  folder_id?: string | null | undefined;
6137
6587
  force_financial_period?: string | null | undefined;
6138
6588
  regroup_lines?: "true" | "false" | null | undefined;
6589
+ ignore_accounting_id?: boolean | undefined;
6139
6590
  } | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
6140
6591
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
6141
6592
  invoice_number?: string | null | undefined;
@@ -6146,10 +6597,16 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
6146
6597
  reference?: string | null | undefined;
6147
6598
  payment_communication?: string | null | undefined;
6148
6599
  customer_memo?: string | null | undefined;
6600
+ payment_term_id?: string | null | undefined;
6601
+ withholding_tax?: {
6602
+ tax_rate: number;
6603
+ tax_code: string;
6604
+ tax_amount: number;
6605
+ } | null | undefined;
6149
6606
  id?: string | null | undefined;
6150
6607
  invoice_date: string;
6151
6608
  due_date: string;
6152
- partner_id: string;
6609
+ partner_id: string | null;
6153
6610
  journal_id?: string | null | undefined;
6154
6611
  payments?: {
6155
6612
  id: string;
@@ -6207,8 +6664,22 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
6207
6664
  due_dates: {
6208
6665
  due_date: string;
6209
6666
  payment_method?: string | null | undefined;
6667
+ payment_method_id?: string | null | undefined;
6210
6668
  amount: number;
6211
6669
  }[] | null;
6670
+ attachments_info?: {
6671
+ status: "unknown" | "yes" | "yes_to_request" | "no";
6672
+ attachments: {
6673
+ filename?: string | null | undefined;
6674
+ url?: string | null | undefined;
6675
+ }[] | null;
6676
+ } | undefined;
6677
+ accounting_info?: {
6678
+ main_currency?: string | undefined;
6679
+ main_currency_total: number;
6680
+ account_number?: string | null | undefined;
6681
+ } | null | undefined;
6682
+ payment_method_id?: string | null | undefined;
6212
6683
  lines: {
6213
6684
  line_number: number | null;
6214
6685
  unit_price: number;
@@ -6234,6 +6705,12 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
6234
6705
  reference?: string | null | undefined;
6235
6706
  payment_communication?: string | null | undefined;
6236
6707
  customer_memo?: string | null | undefined;
6708
+ payment_term_id?: string | null | undefined;
6709
+ withholding_tax?: {
6710
+ tax_rate: number;
6711
+ tax_code: string;
6712
+ tax_amount: number;
6713
+ } | null | undefined;
6237
6714
  invoice_date: string;
6238
6715
  due_date: string;
6239
6716
  partner_id?: string | null | undefined;
@@ -6282,10 +6759,14 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
6282
6759
  }[];
6283
6760
  }[] | null;
6284
6761
  }[];
6762
+ start_date?: string | null | undefined;
6763
+ end_date?: string | null | undefined;
6764
+ payment_method_id?: string | null | undefined;
6285
6765
  }, params?: {
6286
6766
  folder_id?: string | null | undefined;
6287
6767
  force_financial_period?: string | null | undefined;
6288
6768
  regroup_lines?: "true" | "false" | null | undefined;
6769
+ ignore_accounting_id?: boolean | undefined;
6289
6770
  } | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
6290
6771
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
6291
6772
  invoice_number?: string | null | undefined;
@@ -6296,10 +6777,16 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
6296
6777
  reference?: string | null | undefined;
6297
6778
  payment_communication?: string | null | undefined;
6298
6779
  customer_memo?: string | null | undefined;
6780
+ payment_term_id?: string | null | undefined;
6781
+ withholding_tax?: {
6782
+ tax_rate: number;
6783
+ tax_code: string;
6784
+ tax_amount: number;
6785
+ } | null | undefined;
6299
6786
  id?: string | null | undefined;
6300
6787
  invoice_date: string;
6301
6788
  due_date: string;
6302
- partner_id: string;
6789
+ partner_id: string | null;
6303
6790
  journal_id?: string | null | undefined;
6304
6791
  payments?: {
6305
6792
  id: string;
@@ -6357,8 +6844,22 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
6357
6844
  due_dates: {
6358
6845
  due_date: string;
6359
6846
  payment_method?: string | null | undefined;
6847
+ payment_method_id?: string | null | undefined;
6360
6848
  amount: number;
6361
6849
  }[] | null;
6850
+ attachments_info?: {
6851
+ status: "unknown" | "yes" | "yes_to_request" | "no";
6852
+ attachments: {
6853
+ filename?: string | null | undefined;
6854
+ url?: string | null | undefined;
6855
+ }[] | null;
6856
+ } | undefined;
6857
+ accounting_info?: {
6858
+ main_currency?: string | undefined;
6859
+ main_currency_total: number;
6860
+ account_number?: string | null | undefined;
6861
+ } | null | undefined;
6862
+ payment_method_id?: string | null | undefined;
6362
6863
  lines: {
6363
6864
  line_number: number | null;
6364
6865
  unit_price: number;
@@ -6400,10 +6901,16 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
6400
6901
  reference?: string | null | undefined;
6401
6902
  payment_communication?: string | null | undefined;
6402
6903
  customer_memo?: string | null | undefined;
6904
+ payment_term_id?: string | null | undefined;
6905
+ withholding_tax?: {
6906
+ tax_rate: number;
6907
+ tax_code: string;
6908
+ tax_amount: number;
6909
+ } | null | undefined;
6403
6910
  id?: string | null | undefined;
6404
6911
  invoice_date: string;
6405
6912
  due_date: string;
6406
- partner_id: string;
6913
+ partner_id: string | null;
6407
6914
  journal_id?: string | null | undefined;
6408
6915
  payments?: {
6409
6916
  id: string;
@@ -6461,8 +6968,22 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
6461
6968
  due_dates: {
6462
6969
  due_date: string;
6463
6970
  payment_method?: string | null | undefined;
6971
+ payment_method_id?: string | null | undefined;
6464
6972
  amount: number;
6465
6973
  }[] | null;
6974
+ attachments_info?: {
6975
+ status: "unknown" | "yes" | "yes_to_request" | "no";
6976
+ attachments: {
6977
+ filename?: string | null | undefined;
6978
+ url?: string | null | undefined;
6979
+ }[] | null;
6980
+ } | undefined;
6981
+ accounting_info?: {
6982
+ main_currency?: string | undefined;
6983
+ main_currency_total: number;
6984
+ account_number?: string | null | undefined;
6985
+ } | null | undefined;
6986
+ payment_method_id?: string | null | undefined;
6466
6987
  lines: {
6467
6988
  line_number: number | null;
6468
6989
  unit_price: number;
@@ -6493,10 +7014,16 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
6493
7014
  reference?: string | null | undefined;
6494
7015
  payment_communication?: string | null | undefined;
6495
7016
  customer_memo?: string | null | undefined;
7017
+ payment_term_id?: string | null | undefined;
7018
+ withholding_tax?: {
7019
+ tax_rate: number;
7020
+ tax_code: string;
7021
+ tax_amount: number;
7022
+ } | null | undefined;
6496
7023
  id?: string | null | undefined;
6497
7024
  invoice_date: string;
6498
7025
  due_date: string;
6499
- partner_id: string;
7026
+ partner_id: string | null;
6500
7027
  journal_id?: string | null | undefined;
6501
7028
  payments?: {
6502
7029
  id: string;
@@ -6554,8 +7081,22 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
6554
7081
  due_dates: {
6555
7082
  due_date: string;
6556
7083
  payment_method?: string | null | undefined;
7084
+ payment_method_id?: string | null | undefined;
6557
7085
  amount: number;
6558
7086
  }[] | null;
7087
+ attachments_info?: {
7088
+ status: "unknown" | "yes" | "yes_to_request" | "no";
7089
+ attachments: {
7090
+ filename?: string | null | undefined;
7091
+ url?: string | null | undefined;
7092
+ }[] | null;
7093
+ } | undefined;
7094
+ accounting_info?: {
7095
+ main_currency?: string | undefined;
7096
+ main_currency_total: number;
7097
+ account_number?: string | null | undefined;
7098
+ } | null | undefined;
7099
+ payment_method_id?: string | null | undefined;
6559
7100
  lines: {
6560
7101
  line_number: number | null;
6561
7102
  unit_price: number;
@@ -6586,10 +7127,16 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
6586
7127
  reference?: string | null | undefined;
6587
7128
  payment_communication?: string | null | undefined;
6588
7129
  customer_memo?: string | null | undefined;
7130
+ payment_term_id?: string | null | undefined;
7131
+ withholding_tax?: {
7132
+ tax_rate: number;
7133
+ tax_code: string;
7134
+ tax_amount: number;
7135
+ } | null | undefined;
6589
7136
  id?: string | null | undefined;
6590
7137
  invoice_date: string;
6591
7138
  due_date: string;
6592
- partner_id: string;
7139
+ partner_id: string | null;
6593
7140
  journal_id?: string | null | undefined;
6594
7141
  payments?: {
6595
7142
  id: string;
@@ -6647,8 +7194,22 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
6647
7194
  due_dates: {
6648
7195
  due_date: string;
6649
7196
  payment_method?: string | null | undefined;
7197
+ payment_method_id?: string | null | undefined;
6650
7198
  amount: number;
6651
7199
  }[] | null;
7200
+ attachments_info?: {
7201
+ status: "unknown" | "yes" | "yes_to_request" | "no";
7202
+ attachments: {
7203
+ filename?: string | null | undefined;
7204
+ url?: string | null | undefined;
7205
+ }[] | null;
7206
+ } | undefined;
7207
+ accounting_info?: {
7208
+ main_currency?: string | undefined;
7209
+ main_currency_total: number;
7210
+ account_number?: string | null | undefined;
7211
+ } | null | undefined;
7212
+ payment_method_id?: string | null | undefined;
6652
7213
  lines: {
6653
7214
  line_number: number | null;
6654
7215
  unit_price: number;
@@ -6690,10 +7251,16 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
6690
7251
  reference?: string | null | undefined;
6691
7252
  payment_communication?: string | null | undefined;
6692
7253
  customer_memo?: string | null | undefined;
7254
+ payment_term_id?: string | null | undefined;
7255
+ withholding_tax?: {
7256
+ tax_rate: number;
7257
+ tax_code: string;
7258
+ tax_amount: number;
7259
+ } | null | undefined;
6693
7260
  id?: string | null | undefined;
6694
7261
  invoice_date: string;
6695
7262
  due_date: string;
6696
- partner_id: string;
7263
+ partner_id: string | null;
6697
7264
  journal_id?: string | null | undefined;
6698
7265
  payments?: {
6699
7266
  id: string;
@@ -6751,8 +7318,22 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
6751
7318
  due_dates: {
6752
7319
  due_date: string;
6753
7320
  payment_method?: string | null | undefined;
7321
+ payment_method_id?: string | null | undefined;
6754
7322
  amount: number;
6755
7323
  }[] | null;
7324
+ attachments_info?: {
7325
+ status: "unknown" | "yes" | "yes_to_request" | "no";
7326
+ attachments: {
7327
+ filename?: string | null | undefined;
7328
+ url?: string | null | undefined;
7329
+ }[] | null;
7330
+ } | undefined;
7331
+ accounting_info?: {
7332
+ main_currency?: string | undefined;
7333
+ main_currency_total: number;
7334
+ account_number?: string | null | undefined;
7335
+ } | null | undefined;
7336
+ payment_method_id?: string | null | undefined;
6756
7337
  lines: {
6757
7338
  line_number: number | null;
6758
7339
  unit_price: number;
@@ -6900,7 +7481,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
6900
7481
  folder_id?: string | null | undefined;
6901
7482
  updated_after?: string | null | undefined;
6902
7483
  unposted_allowed: "true" | "false";
6903
- journal_id: string;
7484
+ journal_id?: string | null | undefined;
6904
7485
  partner_id?: string | null | undefined;
6905
7486
  }, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
6906
7487
  reference?: string | null | undefined;
@@ -6914,9 +7495,17 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
6914
7495
  due_dates: {
6915
7496
  due_date: string;
6916
7497
  payment_method?: string | null | undefined;
7498
+ payment_method_id?: string | null | undefined;
6917
7499
  debit: number | null;
6918
7500
  credit: number | null;
6919
7501
  }[] | null;
7502
+ attachments_info?: {
7503
+ status: "unknown" | "yes" | "yes_to_request" | "no";
7504
+ attachments: {
7505
+ filename?: string | null | undefined;
7506
+ url?: string | null | undefined;
7507
+ }[] | null;
7508
+ } | undefined;
6920
7509
  items: {
6921
7510
  account_number: string;
6922
7511
  partner_id?: string | null | undefined;
@@ -6939,7 +7528,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
6939
7528
  folder_id?: string | null | undefined;
6940
7529
  updated_after?: string | null | undefined;
6941
7530
  unposted_allowed: "true" | "false";
6942
- journal_id: string;
7531
+ journal_id?: string | null | undefined;
6943
7532
  partner_id?: string | null | undefined;
6944
7533
  }, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
6945
7534
  reference?: string | null | undefined;
@@ -6953,9 +7542,17 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
6953
7542
  due_dates: {
6954
7543
  due_date: string;
6955
7544
  payment_method?: string | null | undefined;
7545
+ payment_method_id?: string | null | undefined;
6956
7546
  debit: number | null;
6957
7547
  credit: number | null;
6958
7548
  }[] | null;
7549
+ attachments_info?: {
7550
+ status: "unknown" | "yes" | "yes_to_request" | "no";
7551
+ attachments: {
7552
+ filename?: string | null | undefined;
7553
+ url?: string | null | undefined;
7554
+ }[] | null;
7555
+ } | undefined;
6959
7556
  items: {
6960
7557
  account_number: string;
6961
7558
  partner_id?: string | null | undefined;
@@ -7045,6 +7642,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
7045
7642
  } | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
7046
7643
  id: string;
7047
7644
  code?: string | null | undefined;
7645
+ active: boolean | null;
7048
7646
  label: string;
7049
7647
  scope: "unknown" | "nat" | "eu" | "int" | null;
7050
7648
  rate: number;
@@ -7052,6 +7650,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
7052
7650
  deductible_account?: string | null | undefined;
7053
7651
  payable_account?: string | null | undefined;
7054
7652
  reversed: boolean | null;
7653
+ withholding_tax: boolean | null;
7055
7654
  country?: string | null | undefined;
7056
7655
  }[]>;
7057
7656
  getMiscOperations(params?: {
@@ -7154,12 +7753,14 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
7154
7753
  getChartOfAccounts(params?: {
7155
7754
  folder_id?: string | null | undefined;
7156
7755
  classes?: string | null | undefined;
7157
- type?: "vat" | "bank" | "cash" | "income" | "expense" | null | undefined;
7756
+ type?: "vat" | "bank" | "cash" | "income" | "expense" | "other_expense" | null | undefined;
7158
7757
  } | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
7159
7758
  number: string;
7160
7759
  name: string;
7161
7760
  active: boolean | null;
7162
- type?: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | null | undefined;
7761
+ type?: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | "other_expense" | null | undefined;
7762
+ scheme_ids?: string[] | null | undefined;
7763
+ accounting_category?: string | null | undefined;
7163
7764
  }[]>;
7164
7765
  getBalanceOfAccounts(filter: {
7165
7766
  accounts: string[];
@@ -7235,6 +7836,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
7235
7836
  account: string;
7236
7837
  amount: number;
7237
7838
  description?: string | null | undefined;
7839
+ automated_matching_number?: string | null | undefined;
7238
7840
  }[];
7239
7841
  pdf?: string | null | undefined;
7240
7842
  }, params?: {
@@ -7253,6 +7855,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
7253
7855
  account: string;
7254
7856
  amount: number;
7255
7857
  description?: string | null | undefined;
7858
+ automated_matching_number?: string | null | undefined;
7256
7859
  counterpart_account: string;
7257
7860
  }[];
7258
7861
  }>;
@@ -7280,6 +7883,13 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
7280
7883
  }[];
7281
7884
  }[] | null;
7282
7885
  tax_code?: string | null | undefined;
7886
+ tax_info?: {
7887
+ tax_code: string;
7888
+ tax_amount: number;
7889
+ vat_account?: string | null | undefined;
7890
+ reversed_vat_account?: string | null | undefined;
7891
+ description?: string | null | undefined;
7892
+ } | null | undefined;
7283
7893
  account_info?: {
7284
7894
  account_number: string;
7285
7895
  account_name: string;
@@ -7292,6 +7902,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
7292
7902
  }, params?: {
7293
7903
  folder_id?: string | null | undefined;
7294
7904
  force_currency_exchange?: "true" | "false" | null | undefined;
7905
+ ignore_accounting_id?: boolean | undefined;
7295
7906
  } | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
7296
7907
  reference?: string | null | undefined;
7297
7908
  due_date?: string | null | undefined;
@@ -7304,9 +7915,17 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
7304
7915
  due_dates: {
7305
7916
  due_date: string;
7306
7917
  payment_method?: string | null | undefined;
7918
+ payment_method_id?: string | null | undefined;
7307
7919
  debit: number | null;
7308
7920
  credit: number | null;
7309
7921
  }[] | null;
7922
+ attachments_info?: {
7923
+ status: "unknown" | "yes" | "yes_to_request" | "no";
7924
+ attachments: {
7925
+ filename?: string | null | undefined;
7926
+ url?: string | null | undefined;
7927
+ }[] | null;
7928
+ } | undefined;
7310
7929
  items: {
7311
7930
  account_number: string;
7312
7931
  partner_id?: string | null | undefined;
@@ -7422,14 +8041,35 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
7422
8041
  createLedgerAccount(account: {
7423
8042
  name: string;
7424
8043
  number: string;
7425
- type: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | null;
8044
+ type: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | "other_expense" | null;
7426
8045
  }, params?: {
7427
8046
  folder_id?: string | null | undefined;
7428
8047
  } | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
7429
8048
  number: string;
7430
8049
  name: string;
7431
8050
  active: boolean | null;
7432
- type?: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | null | undefined;
8051
+ type?: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | "other_expense" | null | undefined;
8052
+ scheme_ids?: string[] | null | undefined;
8053
+ accounting_category?: string | null | undefined;
8054
+ }>;
8055
+ getBankAccounts(params?: {
8056
+ folder_id?: string | null | undefined;
8057
+ } | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
8058
+ items: {
8059
+ id: string;
8060
+ code?: string | null | undefined;
8061
+ currency?: string | null | undefined;
8062
+ account_name?: string | null | undefined;
8063
+ account_number?: string | null | undefined;
8064
+ iban?: string | null | undefined;
8065
+ bank_name?: string | null | undefined;
8066
+ journal_id?: string | null | undefined;
8067
+ ledger_account?: string | null | undefined;
8068
+ unallocated_account?: string | null | undefined;
8069
+ }[];
8070
+ total: number;
8071
+ page: number;
8072
+ size: number;
7433
8073
  }>;
7434
8074
  createBankAccount(bankAccount: {
7435
8075
  code: string;
@@ -7452,6 +8092,45 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
7452
8092
  ledger_account?: string | null | undefined;
7453
8093
  unallocated_account?: string | null | undefined;
7454
8094
  }>;
8095
+ createBankTransactions(bankStatement: {
8096
+ bank_statement_date: string;
8097
+ bank_account_id: string;
8098
+ external_bank_statement_id: string;
8099
+ opening_balance?: number | null | undefined;
8100
+ pdf?: string | null | undefined;
8101
+ items: {
8102
+ account_type?: "customer_account" | "supplier_account" | "employee_account" | "general_account" | null | undefined;
8103
+ account?: string | null | undefined;
8104
+ description?: string | null | undefined;
8105
+ external_transaction_id?: string | null | undefined;
8106
+ date: string;
8107
+ amount: number;
8108
+ fee_amount: number | null;
8109
+ tax_amount: number | null;
8110
+ currency: string;
8111
+ currency_exchange_rate: number | null;
8112
+ }[];
8113
+ }, params?: {
8114
+ folder_id?: string | null | undefined;
8115
+ } | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
8116
+ bank_statement_date: string;
8117
+ bank_account_id: string;
8118
+ id?: string | null | undefined;
8119
+ external_bank_statement_id?: string | null | undefined;
8120
+ items: {
8121
+ account_type?: "customer_account" | "supplier_account" | "employee_account" | "general_account" | null | undefined;
8122
+ account?: string | null | undefined;
8123
+ description?: string | null | undefined;
8124
+ external_transaction_id?: string | null | undefined;
8125
+ date: string;
8126
+ amount: number;
8127
+ fee_amount: number | null;
8128
+ tax_amount: number | null;
8129
+ currency: string;
8130
+ currency_exchange_rate: number | null;
8131
+ id?: string | null | undefined;
8132
+ }[];
8133
+ }>;
7455
8134
  getJournalEntry(journalEntryId: string, params?: {
7456
8135
  folder_id?: string | null | undefined;
7457
8136
  } | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
@@ -7466,9 +8145,17 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
7466
8145
  due_dates: {
7467
8146
  due_date: string;
7468
8147
  payment_method?: string | null | undefined;
8148
+ payment_method_id?: string | null | undefined;
7469
8149
  debit: number | null;
7470
8150
  credit: number | null;
7471
8151
  }[] | null;
8152
+ attachments_info?: {
8153
+ status: "unknown" | "yes" | "yes_to_request" | "no";
8154
+ attachments: {
8155
+ filename?: string | null | undefined;
8156
+ url?: string | null | undefined;
8157
+ }[] | null;
8158
+ } | undefined;
7472
8159
  items: {
7473
8160
  account_number: string;
7474
8161
  partner_id?: string | null | undefined;
@@ -7503,6 +8190,29 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
7503
8190
  page: number;
7504
8191
  size: number;
7505
8192
  }>;
8193
+ getPaymentTerms(params?: {
8194
+ folder_id?: string | null | undefined;
8195
+ } | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
8196
+ items: {
8197
+ id: string;
8198
+ name?: string | null | undefined;
8199
+ }[];
8200
+ total: number;
8201
+ page: number;
8202
+ size: number;
8203
+ }>;
8204
+ getSchemes(params?: {
8205
+ folder_id?: string | null | undefined;
8206
+ } | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
8207
+ items: {
8208
+ id: string;
8209
+ code: string;
8210
+ name: string;
8211
+ }[];
8212
+ total: number;
8213
+ page: number;
8214
+ size: number;
8215
+ }>;
7506
8216
  createInvoicePayment(body: {
7507
8217
  date: string;
7508
8218
  payment_method_id: string;
@@ -7522,6 +8232,29 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
7522
8232
  };
7523
8233
  content?: undefined;
7524
8234
  }>;
8235
+ exportFec(params: {
8236
+ folder_id?: string | null | undefined;
8237
+ date_from: string;
8238
+ date_to: string;
8239
+ }, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
8240
+ JournalCode: string;
8241
+ JournalLib: string;
8242
+ EcritureNum: string;
8243
+ EcritureDate: string;
8244
+ CompteNum: string;
8245
+ CompteLib: string;
8246
+ CompAuxNum: string;
8247
+ CompAuxLib: string;
8248
+ PieceRef: string;
8249
+ PieceDate: string;
8250
+ Debit: number;
8251
+ Credit: number;
8252
+ EcritureLet: string;
8253
+ DateLet: string | null;
8254
+ ValidDate: string | null;
8255
+ Montantdevise: number;
8256
+ Idevise: string;
8257
+ }[]>;
7525
8258
  }>;
7526
8259
  invoicing: import("../types/api").ApiFor<{
7527
8260
  getInvoices(params?: {
@@ -7531,6 +8264,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
7531
8264
  updated_after?: string | null | undefined;
7532
8265
  include_invoice_lines?: "true" | "false" | null | undefined;
7533
8266
  invoice_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all" | null | undefined;
8267
+ include_analytic_accounts?: "true" | "false" | null | undefined;
7534
8268
  } | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
7535
8269
  id: string;
7536
8270
  source_ref: {
@@ -7560,6 +8294,14 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
7560
8294
  product_id?: string | null | undefined;
7561
8295
  product_code?: string | null | undefined;
7562
8296
  product_name?: string | null | undefined;
8297
+ analytic_distribution: {
8298
+ analytic_plan_code: string;
8299
+ analytic_accounts: {
8300
+ analytic_account_code: string;
8301
+ analytic_account_name: string;
8302
+ percentage: number;
8303
+ }[];
8304
+ }[] | null;
7563
8305
  }[];
7564
8306
  partner_id?: string | null | undefined;
7565
8307
  invoice_number?: string | null | undefined;
@@ -7599,6 +8341,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
7599
8341
  }[]>;
7600
8342
  getInvoiceById(invoiceId: string, params?: {
7601
8343
  include_pdf?: "true" | "false" | null | undefined;
8344
+ include_analytic_accounts?: "true" | "false" | null | undefined;
7602
8345
  } | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
7603
8346
  id: string;
7604
8347
  source_ref: {
@@ -7628,6 +8371,14 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
7628
8371
  product_id?: string | null | undefined;
7629
8372
  product_code?: string | null | undefined;
7630
8373
  product_name?: string | null | undefined;
8374
+ analytic_distribution: {
8375
+ analytic_plan_code: string;
8376
+ analytic_accounts: {
8377
+ analytic_account_code: string;
8378
+ analytic_account_name: string;
8379
+ percentage: number;
8380
+ }[];
8381
+ }[] | null;
7631
8382
  }[];
7632
8383
  partner_id?: string | null | undefined;
7633
8384
  invoice_number?: string | null | undefined;
@@ -7749,6 +8500,14 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
7749
8500
  product_id?: string | null | undefined;
7750
8501
  product_code?: string | null | undefined;
7751
8502
  product_name?: string | null | undefined;
8503
+ analytic_distribution: {
8504
+ analytic_plan_code: string;
8505
+ analytic_accounts: {
8506
+ analytic_account_code: string;
8507
+ analytic_account_name: string;
8508
+ percentage: number;
8509
+ }[];
8510
+ }[] | null;
7752
8511
  }[];
7753
8512
  partner_id?: string | null | undefined;
7754
8513
  invoice_number?: string | null | undefined;
@@ -9327,14 +10086,18 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
9327
10086
  reference: string;
9328
10087
  reference_type: string;
9329
10088
  holder_name?: string | null | undefined;
10089
+ active: boolean | null;
9330
10090
  }[]>;
9331
- getAccountTransactions(accountId: string, params?: {
10091
+ getAccountTransactions(params: {
9332
10092
  date_from?: string | null | undefined;
9333
10093
  date_to?: string | null | undefined;
10094
+ updated_after?: string | null | undefined;
10095
+ account_id: string;
9334
10096
  date_type?: "value_date" | "execution_date" | null | undefined;
9335
- } | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
10097
+ }, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
9336
10098
  id: string;
9337
10099
  amount: number;
10100
+ tax_amount?: number | null | undefined;
9338
10101
  currency: string;
9339
10102
  description?: string | null | undefined;
9340
10103
  additional_information?: string | null | undefined;
@@ -9344,6 +10107,17 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
9344
10107
  creation_date: string;
9345
10108
  value_date: string;
9346
10109
  execution_date: string;
10110
+ internal_transaction: boolean | null;
10111
+ operation_type: "other" | "fee" | "incoming_transfer" | "outgoing_transfer" | "card" | "direct_debit" | "direct_debit_collection" | "direct_debit_hold" | "cheque" | "recall" | "swift_income" | "pay_later" | "financing_installment" | null;
10112
+ last_update_on?: string | null | undefined;
10113
+ status?: "completed" | "pending" | "declined" | null | undefined;
10114
+ attachments_info?: {
10115
+ status: "unknown" | "yes" | "yes_to_request" | "no";
10116
+ attachments: {
10117
+ filename?: string | null | undefined;
10118
+ url?: string | null | undefined;
10119
+ }[] | null;
10120
+ } | undefined;
9347
10121
  }[]>;
9348
10122
  getAccountCounterparts(params?: {
9349
10123
  date_from?: string | null | undefined;
@@ -9354,6 +10128,17 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
9354
10128
  reference?: string | null | undefined;
9355
10129
  details?: string | null | undefined;
9356
10130
  }[]>;
10131
+ getAttachments(params: {
10132
+ transaction_id: string;
10133
+ }, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
10134
+ items: {
10135
+ id: string;
10136
+ base64_string: string;
10137
+ }[];
10138
+ total: number;
10139
+ page: number;
10140
+ size: number;
10141
+ }>;
9357
10142
  }>;
9358
10143
  getDataByDataStoreId: (dataStoreId: string, params?: object | undefined) => Promise<{
9359
10144
  data: {
@@ -9393,6 +10178,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
9393
10178
  source_id?: string | null | undefined;
9394
10179
  target_id?: string | null | undefined;
9395
10180
  }[];
10181
+ hidden_source_ids: string[];
9396
10182
  sub_mapping_name: string;
9397
10183
  sub_mapping_description?: string | null | undefined;
9398
10184
  }[] | null | undefined;
@@ -9579,7 +10365,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
9579
10365
  value: string;
9580
10366
  }[] | null | undefined;
9581
10367
  country?: string | null | undefined;
9582
- } | undefined) => Promise<{
10368
+ redirect: boolean | null;
10369
+ } | null | undefined) => Promise<{
9583
10370
  url: string;
9584
10371
  }>;
9585
10372
  updateConnection: (connectionId: string, body?: {
@@ -9598,6 +10385,15 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
9598
10385
  };
9599
10386
  content?: undefined;
9600
10387
  }>;
10388
+ getTransactionByClientRequestId: (connectionId: string, params: {
10389
+ client_request_id: string;
10390
+ }) => Promise<{
10391
+ created_on: string;
10392
+ method: "GET" | "DELETE" | "HEAD" | "OPTIONS" | "POST" | "PUT" | "PATCH";
10393
+ route: string;
10394
+ status_code: number;
10395
+ created_entity_id?: string | null | undefined;
10396
+ }>;
9601
10397
  enableFlow: (syncId: string, flowId: string, body: {
9602
10398
  integrationids: string[];
9603
10399
  triggerid: string | null;
@@ -10203,6 +10999,30 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
10203
10999
  country?: string | null | undefined;
10204
11000
  }[] | null | undefined;
10205
11001
  }[]>;
11002
+ getCustomer(customerId: string, rawData?: boolean | undefined): import("../types/api").RequestData<{
11003
+ id: string;
11004
+ source_ref: {
11005
+ id?: string | null | undefined;
11006
+ model?: string | null | undefined;
11007
+ };
11008
+ first_name?: string | null | undefined;
11009
+ last_name?: string | null | undefined;
11010
+ company_name?: string | null | undefined;
11011
+ phone?: string | null | undefined;
11012
+ email?: string | null | undefined;
11013
+ account_number?: string | null | undefined;
11014
+ created_on?: string | null | undefined;
11015
+ addresses?: {
11016
+ address_type?: string | null | undefined;
11017
+ name?: string | null | undefined;
11018
+ street?: string | null | undefined;
11019
+ number?: string | null | undefined;
11020
+ box?: string | null | undefined;
11021
+ city?: string | null | undefined;
11022
+ postal_code?: string | null | undefined;
11023
+ country?: string | null | undefined;
11024
+ }[] | null | undefined;
11025
+ }>;
10206
11026
  getInvoices(params?: {
10207
11027
  date_from: string;
10208
11028
  date_to: string;
@@ -10305,6 +11125,20 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
10305
11125
  untaxed_amount: number;
10306
11126
  total: number;
10307
11127
  }[]>;
11128
+ getTaxes(params?: {} | undefined, rawData?: boolean | undefined): import("../types/api").RequestData<{
11129
+ items: {
11130
+ id: string;
11131
+ source_ref: {
11132
+ id?: string | null | undefined;
11133
+ model?: string | null | undefined;
11134
+ };
11135
+ label?: string | null | undefined;
11136
+ rate?: number | null | undefined;
11137
+ }[];
11138
+ total: number;
11139
+ page: number;
11140
+ size: number;
11141
+ }>;
10308
11142
  }>;
10309
11143
  payment: import("../types/api").ApiFor<{
10310
11144
  getPayments(params: {
@@ -10856,6 +11690,12 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
10856
11690
  reference?: string | null | undefined;
10857
11691
  payment_communication?: string | null | undefined;
10858
11692
  customer_memo?: string | null | undefined;
11693
+ payment_term_id?: string | null | undefined;
11694
+ withholding_tax?: {
11695
+ tax_rate: number;
11696
+ tax_code: string;
11697
+ tax_amount: number;
11698
+ } | null | undefined;
10859
11699
  invoice_date: string;
10860
11700
  due_date: string;
10861
11701
  partner_id?: string | null | undefined;
@@ -10898,10 +11738,14 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
10898
11738
  description: string;
10899
11739
  analytic_account?: string | null | undefined;
10900
11740
  }[];
11741
+ start_date?: string | null | undefined;
11742
+ end_date?: string | null | undefined;
11743
+ payment_method_id?: string | null | undefined;
10901
11744
  }, params?: {
10902
11745
  folder_id?: string | null | undefined;
10903
11746
  force_financial_period?: string | null | undefined;
10904
11747
  regroup_lines?: "true" | "false" | null | undefined;
11748
+ ignore_accounting_id?: boolean | undefined;
10905
11749
  } | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
10906
11750
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
10907
11751
  invoice_number?: string | null | undefined;
@@ -10912,10 +11756,16 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
10912
11756
  reference?: string | null | undefined;
10913
11757
  payment_communication?: string | null | undefined;
10914
11758
  customer_memo?: string | null | undefined;
11759
+ payment_term_id?: string | null | undefined;
11760
+ withholding_tax?: {
11761
+ tax_rate: number;
11762
+ tax_code: string;
11763
+ tax_amount: number;
11764
+ } | null | undefined;
10915
11765
  id?: string | null | undefined;
10916
11766
  invoice_date: string;
10917
11767
  due_date: string;
10918
- partner_id: string;
11768
+ partner_id: string | null;
10919
11769
  journal_id?: string | null | undefined;
10920
11770
  payments?: {
10921
11771
  id: string;
@@ -10973,8 +11823,22 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
10973
11823
  due_dates: {
10974
11824
  due_date: string;
10975
11825
  payment_method?: string | null | undefined;
11826
+ payment_method_id?: string | null | undefined;
10976
11827
  amount: number;
10977
11828
  }[] | null;
11829
+ attachments_info?: {
11830
+ status: "unknown" | "yes" | "yes_to_request" | "no";
11831
+ attachments: {
11832
+ filename?: string | null | undefined;
11833
+ url?: string | null | undefined;
11834
+ }[] | null;
11835
+ } | undefined;
11836
+ accounting_info?: {
11837
+ main_currency?: string | undefined;
11838
+ main_currency_total: number;
11839
+ account_number?: string | null | undefined;
11840
+ } | null | undefined;
11841
+ payment_method_id?: string | null | undefined;
10978
11842
  lines: {
10979
11843
  line_number: number | null;
10980
11844
  unit_price: number;
@@ -11000,6 +11864,12 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
11000
11864
  reference?: string | null | undefined;
11001
11865
  payment_communication?: string | null | undefined;
11002
11866
  customer_memo?: string | null | undefined;
11867
+ payment_term_id?: string | null | undefined;
11868
+ withholding_tax?: {
11869
+ tax_rate: number;
11870
+ tax_code: string;
11871
+ tax_amount: number;
11872
+ } | null | undefined;
11003
11873
  invoice_date: string;
11004
11874
  due_date: string;
11005
11875
  partner_id?: string | null | undefined;
@@ -11048,10 +11918,14 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
11048
11918
  }[];
11049
11919
  }[] | null;
11050
11920
  }[];
11921
+ start_date?: string | null | undefined;
11922
+ end_date?: string | null | undefined;
11923
+ payment_method_id?: string | null | undefined;
11051
11924
  }, params?: {
11052
11925
  folder_id?: string | null | undefined;
11053
11926
  force_financial_period?: string | null | undefined;
11054
11927
  regroup_lines?: "true" | "false" | null | undefined;
11928
+ ignore_accounting_id?: boolean | undefined;
11055
11929
  } | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
11056
11930
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
11057
11931
  invoice_number?: string | null | undefined;
@@ -11062,10 +11936,16 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
11062
11936
  reference?: string | null | undefined;
11063
11937
  payment_communication?: string | null | undefined;
11064
11938
  customer_memo?: string | null | undefined;
11939
+ payment_term_id?: string | null | undefined;
11940
+ withholding_tax?: {
11941
+ tax_rate: number;
11942
+ tax_code: string;
11943
+ tax_amount: number;
11944
+ } | null | undefined;
11065
11945
  id?: string | null | undefined;
11066
11946
  invoice_date: string;
11067
11947
  due_date: string;
11068
- partner_id: string;
11948
+ partner_id: string | null;
11069
11949
  journal_id?: string | null | undefined;
11070
11950
  payments?: {
11071
11951
  id: string;
@@ -11123,8 +12003,22 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
11123
12003
  due_dates: {
11124
12004
  due_date: string;
11125
12005
  payment_method?: string | null | undefined;
12006
+ payment_method_id?: string | null | undefined;
11126
12007
  amount: number;
11127
12008
  }[] | null;
12009
+ attachments_info?: {
12010
+ status: "unknown" | "yes" | "yes_to_request" | "no";
12011
+ attachments: {
12012
+ filename?: string | null | undefined;
12013
+ url?: string | null | undefined;
12014
+ }[] | null;
12015
+ } | undefined;
12016
+ accounting_info?: {
12017
+ main_currency?: string | undefined;
12018
+ main_currency_total: number;
12019
+ account_number?: string | null | undefined;
12020
+ } | null | undefined;
12021
+ payment_method_id?: string | null | undefined;
11128
12022
  lines: {
11129
12023
  line_number: number | null;
11130
12024
  unit_price: number;
@@ -11166,10 +12060,16 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
11166
12060
  reference?: string | null | undefined;
11167
12061
  payment_communication?: string | null | undefined;
11168
12062
  customer_memo?: string | null | undefined;
12063
+ payment_term_id?: string | null | undefined;
12064
+ withholding_tax?: {
12065
+ tax_rate: number;
12066
+ tax_code: string;
12067
+ tax_amount: number;
12068
+ } | null | undefined;
11169
12069
  id?: string | null | undefined;
11170
12070
  invoice_date: string;
11171
12071
  due_date: string;
11172
- partner_id: string;
12072
+ partner_id: string | null;
11173
12073
  journal_id?: string | null | undefined;
11174
12074
  payments?: {
11175
12075
  id: string;
@@ -11227,8 +12127,22 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
11227
12127
  due_dates: {
11228
12128
  due_date: string;
11229
12129
  payment_method?: string | null | undefined;
12130
+ payment_method_id?: string | null | undefined;
11230
12131
  amount: number;
11231
12132
  }[] | null;
12133
+ attachments_info?: {
12134
+ status: "unknown" | "yes" | "yes_to_request" | "no";
12135
+ attachments: {
12136
+ filename?: string | null | undefined;
12137
+ url?: string | null | undefined;
12138
+ }[] | null;
12139
+ } | undefined;
12140
+ accounting_info?: {
12141
+ main_currency?: string | undefined;
12142
+ main_currency_total: number;
12143
+ account_number?: string | null | undefined;
12144
+ } | null | undefined;
12145
+ payment_method_id?: string | null | undefined;
11232
12146
  lines: {
11233
12147
  line_number: number | null;
11234
12148
  unit_price: number;
@@ -11259,10 +12173,16 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
11259
12173
  reference?: string | null | undefined;
11260
12174
  payment_communication?: string | null | undefined;
11261
12175
  customer_memo?: string | null | undefined;
12176
+ payment_term_id?: string | null | undefined;
12177
+ withholding_tax?: {
12178
+ tax_rate: number;
12179
+ tax_code: string;
12180
+ tax_amount: number;
12181
+ } | null | undefined;
11262
12182
  id?: string | null | undefined;
11263
12183
  invoice_date: string;
11264
12184
  due_date: string;
11265
- partner_id: string;
12185
+ partner_id: string | null;
11266
12186
  journal_id?: string | null | undefined;
11267
12187
  payments?: {
11268
12188
  id: string;
@@ -11320,8 +12240,22 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
11320
12240
  due_dates: {
11321
12241
  due_date: string;
11322
12242
  payment_method?: string | null | undefined;
12243
+ payment_method_id?: string | null | undefined;
11323
12244
  amount: number;
11324
12245
  }[] | null;
12246
+ attachments_info?: {
12247
+ status: "unknown" | "yes" | "yes_to_request" | "no";
12248
+ attachments: {
12249
+ filename?: string | null | undefined;
12250
+ url?: string | null | undefined;
12251
+ }[] | null;
12252
+ } | undefined;
12253
+ accounting_info?: {
12254
+ main_currency?: string | undefined;
12255
+ main_currency_total: number;
12256
+ account_number?: string | null | undefined;
12257
+ } | null | undefined;
12258
+ payment_method_id?: string | null | undefined;
11325
12259
  lines: {
11326
12260
  line_number: number | null;
11327
12261
  unit_price: number;
@@ -11352,10 +12286,16 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
11352
12286
  reference?: string | null | undefined;
11353
12287
  payment_communication?: string | null | undefined;
11354
12288
  customer_memo?: string | null | undefined;
12289
+ payment_term_id?: string | null | undefined;
12290
+ withholding_tax?: {
12291
+ tax_rate: number;
12292
+ tax_code: string;
12293
+ tax_amount: number;
12294
+ } | null | undefined;
11355
12295
  id?: string | null | undefined;
11356
12296
  invoice_date: string;
11357
12297
  due_date: string;
11358
- partner_id: string;
12298
+ partner_id: string | null;
11359
12299
  journal_id?: string | null | undefined;
11360
12300
  payments?: {
11361
12301
  id: string;
@@ -11413,8 +12353,22 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
11413
12353
  due_dates: {
11414
12354
  due_date: string;
11415
12355
  payment_method?: string | null | undefined;
12356
+ payment_method_id?: string | null | undefined;
11416
12357
  amount: number;
11417
12358
  }[] | null;
12359
+ attachments_info?: {
12360
+ status: "unknown" | "yes" | "yes_to_request" | "no";
12361
+ attachments: {
12362
+ filename?: string | null | undefined;
12363
+ url?: string | null | undefined;
12364
+ }[] | null;
12365
+ } | undefined;
12366
+ accounting_info?: {
12367
+ main_currency?: string | undefined;
12368
+ main_currency_total: number;
12369
+ account_number?: string | null | undefined;
12370
+ } | null | undefined;
12371
+ payment_method_id?: string | null | undefined;
11418
12372
  lines: {
11419
12373
  line_number: number | null;
11420
12374
  unit_price: number;
@@ -11456,10 +12410,16 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
11456
12410
  reference?: string | null | undefined;
11457
12411
  payment_communication?: string | null | undefined;
11458
12412
  customer_memo?: string | null | undefined;
12413
+ payment_term_id?: string | null | undefined;
12414
+ withholding_tax?: {
12415
+ tax_rate: number;
12416
+ tax_code: string;
12417
+ tax_amount: number;
12418
+ } | null | undefined;
11459
12419
  id?: string | null | undefined;
11460
12420
  invoice_date: string;
11461
12421
  due_date: string;
11462
- partner_id: string;
12422
+ partner_id: string | null;
11463
12423
  journal_id?: string | null | undefined;
11464
12424
  payments?: {
11465
12425
  id: string;
@@ -11517,8 +12477,22 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
11517
12477
  due_dates: {
11518
12478
  due_date: string;
11519
12479
  payment_method?: string | null | undefined;
12480
+ payment_method_id?: string | null | undefined;
11520
12481
  amount: number;
11521
12482
  }[] | null;
12483
+ attachments_info?: {
12484
+ status: "unknown" | "yes" | "yes_to_request" | "no";
12485
+ attachments: {
12486
+ filename?: string | null | undefined;
12487
+ url?: string | null | undefined;
12488
+ }[] | null;
12489
+ } | undefined;
12490
+ accounting_info?: {
12491
+ main_currency?: string | undefined;
12492
+ main_currency_total: number;
12493
+ account_number?: string | null | undefined;
12494
+ } | null | undefined;
12495
+ payment_method_id?: string | null | undefined;
11522
12496
  lines: {
11523
12497
  line_number: number | null;
11524
12498
  unit_price: number;
@@ -11666,7 +12640,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
11666
12640
  folder_id?: string | null | undefined;
11667
12641
  updated_after?: string | null | undefined;
11668
12642
  unposted_allowed: "true" | "false";
11669
- journal_id: string;
12643
+ journal_id?: string | null | undefined;
11670
12644
  partner_id?: string | null | undefined;
11671
12645
  }, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
11672
12646
  reference?: string | null | undefined;
@@ -11680,9 +12654,17 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
11680
12654
  due_dates: {
11681
12655
  due_date: string;
11682
12656
  payment_method?: string | null | undefined;
12657
+ payment_method_id?: string | null | undefined;
11683
12658
  debit: number | null;
11684
12659
  credit: number | null;
11685
12660
  }[] | null;
12661
+ attachments_info?: {
12662
+ status: "unknown" | "yes" | "yes_to_request" | "no";
12663
+ attachments: {
12664
+ filename?: string | null | undefined;
12665
+ url?: string | null | undefined;
12666
+ }[] | null;
12667
+ } | undefined;
11686
12668
  items: {
11687
12669
  account_number: string;
11688
12670
  partner_id?: string | null | undefined;
@@ -11705,7 +12687,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
11705
12687
  folder_id?: string | null | undefined;
11706
12688
  updated_after?: string | null | undefined;
11707
12689
  unposted_allowed: "true" | "false";
11708
- journal_id: string;
12690
+ journal_id?: string | null | undefined;
11709
12691
  partner_id?: string | null | undefined;
11710
12692
  }, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
11711
12693
  reference?: string | null | undefined;
@@ -11719,9 +12701,17 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
11719
12701
  due_dates: {
11720
12702
  due_date: string;
11721
12703
  payment_method?: string | null | undefined;
12704
+ payment_method_id?: string | null | undefined;
11722
12705
  debit: number | null;
11723
12706
  credit: number | null;
11724
12707
  }[] | null;
12708
+ attachments_info?: {
12709
+ status: "unknown" | "yes" | "yes_to_request" | "no";
12710
+ attachments: {
12711
+ filename?: string | null | undefined;
12712
+ url?: string | null | undefined;
12713
+ }[] | null;
12714
+ } | undefined;
11725
12715
  items: {
11726
12716
  account_number: string;
11727
12717
  partner_id?: string | null | undefined;
@@ -11811,6 +12801,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
11811
12801
  } | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
11812
12802
  id: string;
11813
12803
  code?: string | null | undefined;
12804
+ active: boolean | null;
11814
12805
  label: string;
11815
12806
  scope: "unknown" | "nat" | "eu" | "int" | null;
11816
12807
  rate: number;
@@ -11818,6 +12809,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
11818
12809
  deductible_account?: string | null | undefined;
11819
12810
  payable_account?: string | null | undefined;
11820
12811
  reversed: boolean | null;
12812
+ withholding_tax: boolean | null;
11821
12813
  country?: string | null | undefined;
11822
12814
  }[]>;
11823
12815
  getMiscOperations(params?: {
@@ -11920,12 +12912,14 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
11920
12912
  getChartOfAccounts(params?: {
11921
12913
  folder_id?: string | null | undefined;
11922
12914
  classes?: string | null | undefined;
11923
- type?: "vat" | "bank" | "cash" | "income" | "expense" | null | undefined;
12915
+ type?: "vat" | "bank" | "cash" | "income" | "expense" | "other_expense" | null | undefined;
11924
12916
  } | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
11925
12917
  number: string;
11926
12918
  name: string;
11927
12919
  active: boolean | null;
11928
- type?: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | null | undefined;
12920
+ type?: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | "other_expense" | null | undefined;
12921
+ scheme_ids?: string[] | null | undefined;
12922
+ accounting_category?: string | null | undefined;
11929
12923
  }[]>;
11930
12924
  getBalanceOfAccounts(filter: {
11931
12925
  accounts: string[];
@@ -12001,6 +12995,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
12001
12995
  account: string;
12002
12996
  amount: number;
12003
12997
  description?: string | null | undefined;
12998
+ automated_matching_number?: string | null | undefined;
12004
12999
  }[];
12005
13000
  pdf?: string | null | undefined;
12006
13001
  }, params?: {
@@ -12019,6 +13014,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
12019
13014
  account: string;
12020
13015
  amount: number;
12021
13016
  description?: string | null | undefined;
13017
+ automated_matching_number?: string | null | undefined;
12022
13018
  counterpart_account: string;
12023
13019
  }[];
12024
13020
  }>;
@@ -12046,6 +13042,13 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
12046
13042
  }[];
12047
13043
  }[] | null;
12048
13044
  tax_code?: string | null | undefined;
13045
+ tax_info?: {
13046
+ tax_code: string;
13047
+ tax_amount: number;
13048
+ vat_account?: string | null | undefined;
13049
+ reversed_vat_account?: string | null | undefined;
13050
+ description?: string | null | undefined;
13051
+ } | null | undefined;
12049
13052
  account_info?: {
12050
13053
  account_number: string;
12051
13054
  account_name: string;
@@ -12058,6 +13061,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
12058
13061
  }, params?: {
12059
13062
  folder_id?: string | null | undefined;
12060
13063
  force_currency_exchange?: "true" | "false" | null | undefined;
13064
+ ignore_accounting_id?: boolean | undefined;
12061
13065
  } | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
12062
13066
  reference?: string | null | undefined;
12063
13067
  due_date?: string | null | undefined;
@@ -12070,9 +13074,17 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
12070
13074
  due_dates: {
12071
13075
  due_date: string;
12072
13076
  payment_method?: string | null | undefined;
13077
+ payment_method_id?: string | null | undefined;
12073
13078
  debit: number | null;
12074
13079
  credit: number | null;
12075
13080
  }[] | null;
13081
+ attachments_info?: {
13082
+ status: "unknown" | "yes" | "yes_to_request" | "no";
13083
+ attachments: {
13084
+ filename?: string | null | undefined;
13085
+ url?: string | null | undefined;
13086
+ }[] | null;
13087
+ } | undefined;
12076
13088
  items: {
12077
13089
  account_number: string;
12078
13090
  partner_id?: string | null | undefined;
@@ -12188,14 +13200,35 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
12188
13200
  createLedgerAccount(account: {
12189
13201
  name: string;
12190
13202
  number: string;
12191
- type: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | null;
13203
+ type: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | "other_expense" | null;
12192
13204
  }, params?: {
12193
13205
  folder_id?: string | null | undefined;
12194
13206
  } | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
12195
13207
  number: string;
12196
13208
  name: string;
12197
13209
  active: boolean | null;
12198
- type?: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | null | undefined;
13210
+ type?: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | "other_expense" | null | undefined;
13211
+ scheme_ids?: string[] | null | undefined;
13212
+ accounting_category?: string | null | undefined;
13213
+ }>;
13214
+ getBankAccounts(params?: {
13215
+ folder_id?: string | null | undefined;
13216
+ } | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
13217
+ items: {
13218
+ id: string;
13219
+ code?: string | null | undefined;
13220
+ currency?: string | null | undefined;
13221
+ account_name?: string | null | undefined;
13222
+ account_number?: string | null | undefined;
13223
+ iban?: string | null | undefined;
13224
+ bank_name?: string | null | undefined;
13225
+ journal_id?: string | null | undefined;
13226
+ ledger_account?: string | null | undefined;
13227
+ unallocated_account?: string | null | undefined;
13228
+ }[];
13229
+ total: number;
13230
+ page: number;
13231
+ size: number;
12199
13232
  }>;
12200
13233
  createBankAccount(bankAccount: {
12201
13234
  code: string;
@@ -12218,6 +13251,45 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
12218
13251
  ledger_account?: string | null | undefined;
12219
13252
  unallocated_account?: string | null | undefined;
12220
13253
  }>;
13254
+ createBankTransactions(bankStatement: {
13255
+ bank_statement_date: string;
13256
+ bank_account_id: string;
13257
+ external_bank_statement_id: string;
13258
+ opening_balance?: number | null | undefined;
13259
+ pdf?: string | null | undefined;
13260
+ items: {
13261
+ account_type?: "customer_account" | "supplier_account" | "employee_account" | "general_account" | null | undefined;
13262
+ account?: string | null | undefined;
13263
+ description?: string | null | undefined;
13264
+ external_transaction_id?: string | null | undefined;
13265
+ date: string;
13266
+ amount: number;
13267
+ fee_amount: number | null;
13268
+ tax_amount: number | null;
13269
+ currency: string;
13270
+ currency_exchange_rate: number | null;
13271
+ }[];
13272
+ }, params?: {
13273
+ folder_id?: string | null | undefined;
13274
+ } | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
13275
+ bank_statement_date: string;
13276
+ bank_account_id: string;
13277
+ id?: string | null | undefined;
13278
+ external_bank_statement_id?: string | null | undefined;
13279
+ items: {
13280
+ account_type?: "customer_account" | "supplier_account" | "employee_account" | "general_account" | null | undefined;
13281
+ account?: string | null | undefined;
13282
+ description?: string | null | undefined;
13283
+ external_transaction_id?: string | null | undefined;
13284
+ date: string;
13285
+ amount: number;
13286
+ fee_amount: number | null;
13287
+ tax_amount: number | null;
13288
+ currency: string;
13289
+ currency_exchange_rate: number | null;
13290
+ id?: string | null | undefined;
13291
+ }[];
13292
+ }>;
12221
13293
  getJournalEntry(journalEntryId: string, params?: {
12222
13294
  folder_id?: string | null | undefined;
12223
13295
  } | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
@@ -12232,9 +13304,17 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
12232
13304
  due_dates: {
12233
13305
  due_date: string;
12234
13306
  payment_method?: string | null | undefined;
13307
+ payment_method_id?: string | null | undefined;
12235
13308
  debit: number | null;
12236
13309
  credit: number | null;
12237
13310
  }[] | null;
13311
+ attachments_info?: {
13312
+ status: "unknown" | "yes" | "yes_to_request" | "no";
13313
+ attachments: {
13314
+ filename?: string | null | undefined;
13315
+ url?: string | null | undefined;
13316
+ }[] | null;
13317
+ } | undefined;
12238
13318
  items: {
12239
13319
  account_number: string;
12240
13320
  partner_id?: string | null | undefined;
@@ -12269,6 +13349,29 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
12269
13349
  page: number;
12270
13350
  size: number;
12271
13351
  }>;
13352
+ getPaymentTerms(params?: {
13353
+ folder_id?: string | null | undefined;
13354
+ } | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
13355
+ items: {
13356
+ id: string;
13357
+ name?: string | null | undefined;
13358
+ }[];
13359
+ total: number;
13360
+ page: number;
13361
+ size: number;
13362
+ }>;
13363
+ getSchemes(params?: {
13364
+ folder_id?: string | null | undefined;
13365
+ } | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
13366
+ items: {
13367
+ id: string;
13368
+ code: string;
13369
+ name: string;
13370
+ }[];
13371
+ total: number;
13372
+ page: number;
13373
+ size: number;
13374
+ }>;
12272
13375
  createInvoicePayment(body: {
12273
13376
  date: string;
12274
13377
  payment_method_id: string;
@@ -12288,6 +13391,29 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
12288
13391
  };
12289
13392
  content?: undefined;
12290
13393
  }>;
13394
+ exportFec(params: {
13395
+ folder_id?: string | null | undefined;
13396
+ date_from: string;
13397
+ date_to: string;
13398
+ }, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
13399
+ JournalCode: string;
13400
+ JournalLib: string;
13401
+ EcritureNum: string;
13402
+ EcritureDate: string;
13403
+ CompteNum: string;
13404
+ CompteLib: string;
13405
+ CompAuxNum: string;
13406
+ CompAuxLib: string;
13407
+ PieceRef: string;
13408
+ PieceDate: string;
13409
+ Debit: number;
13410
+ Credit: number;
13411
+ EcritureLet: string;
13412
+ DateLet: string | null;
13413
+ ValidDate: string | null;
13414
+ Montantdevise: number;
13415
+ Idevise: string;
13416
+ }[]>;
12291
13417
  }>;
12292
13418
  invoicing: import("../types/api").ApiFor<{
12293
13419
  getInvoices(params?: {
@@ -12297,6 +13423,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
12297
13423
  updated_after?: string | null | undefined;
12298
13424
  include_invoice_lines?: "true" | "false" | null | undefined;
12299
13425
  invoice_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all" | null | undefined;
13426
+ include_analytic_accounts?: "true" | "false" | null | undefined;
12300
13427
  } | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
12301
13428
  id: string;
12302
13429
  source_ref: {
@@ -12326,6 +13453,14 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
12326
13453
  product_id?: string | null | undefined;
12327
13454
  product_code?: string | null | undefined;
12328
13455
  product_name?: string | null | undefined;
13456
+ analytic_distribution: {
13457
+ analytic_plan_code: string;
13458
+ analytic_accounts: {
13459
+ analytic_account_code: string;
13460
+ analytic_account_name: string;
13461
+ percentage: number;
13462
+ }[];
13463
+ }[] | null;
12329
13464
  }[];
12330
13465
  partner_id?: string | null | undefined;
12331
13466
  invoice_number?: string | null | undefined;
@@ -12365,6 +13500,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
12365
13500
  }[]>;
12366
13501
  getInvoiceById(invoiceId: string, params?: {
12367
13502
  include_pdf?: "true" | "false" | null | undefined;
13503
+ include_analytic_accounts?: "true" | "false" | null | undefined;
12368
13504
  } | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
12369
13505
  id: string;
12370
13506
  source_ref: {
@@ -12394,6 +13530,14 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
12394
13530
  product_id?: string | null | undefined;
12395
13531
  product_code?: string | null | undefined;
12396
13532
  product_name?: string | null | undefined;
13533
+ analytic_distribution: {
13534
+ analytic_plan_code: string;
13535
+ analytic_accounts: {
13536
+ analytic_account_code: string;
13537
+ analytic_account_name: string;
13538
+ percentage: number;
13539
+ }[];
13540
+ }[] | null;
12397
13541
  }[];
12398
13542
  partner_id?: string | null | undefined;
12399
13543
  invoice_number?: string | null | undefined;
@@ -12515,6 +13659,14 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
12515
13659
  product_id?: string | null | undefined;
12516
13660
  product_code?: string | null | undefined;
12517
13661
  product_name?: string | null | undefined;
13662
+ analytic_distribution: {
13663
+ analytic_plan_code: string;
13664
+ analytic_accounts: {
13665
+ analytic_account_code: string;
13666
+ analytic_account_name: string;
13667
+ percentage: number;
13668
+ }[];
13669
+ }[] | null;
12518
13670
  }[];
12519
13671
  partner_id?: string | null | undefined;
12520
13672
  invoice_number?: string | null | undefined;
@@ -14093,14 +15245,18 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
14093
15245
  reference: string;
14094
15246
  reference_type: string;
14095
15247
  holder_name?: string | null | undefined;
15248
+ active: boolean | null;
14096
15249
  }[]>;
14097
- getAccountTransactions(accountId: string, params?: {
15250
+ getAccountTransactions(params: {
14098
15251
  date_from?: string | null | undefined;
14099
15252
  date_to?: string | null | undefined;
15253
+ updated_after?: string | null | undefined;
15254
+ account_id: string;
14100
15255
  date_type?: "value_date" | "execution_date" | null | undefined;
14101
- } | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
15256
+ }, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
14102
15257
  id: string;
14103
15258
  amount: number;
15259
+ tax_amount?: number | null | undefined;
14104
15260
  currency: string;
14105
15261
  description?: string | null | undefined;
14106
15262
  additional_information?: string | null | undefined;
@@ -14110,6 +15266,17 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
14110
15266
  creation_date: string;
14111
15267
  value_date: string;
14112
15268
  execution_date: string;
15269
+ internal_transaction: boolean | null;
15270
+ operation_type: "other" | "fee" | "incoming_transfer" | "outgoing_transfer" | "card" | "direct_debit" | "direct_debit_collection" | "direct_debit_hold" | "cheque" | "recall" | "swift_income" | "pay_later" | "financing_installment" | null;
15271
+ last_update_on?: string | null | undefined;
15272
+ status?: "completed" | "pending" | "declined" | null | undefined;
15273
+ attachments_info?: {
15274
+ status: "unknown" | "yes" | "yes_to_request" | "no";
15275
+ attachments: {
15276
+ filename?: string | null | undefined;
15277
+ url?: string | null | undefined;
15278
+ }[] | null;
15279
+ } | undefined;
14113
15280
  }[]>;
14114
15281
  getAccountCounterparts(params?: {
14115
15282
  date_from?: string | null | undefined;
@@ -14120,6 +15287,17 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
14120
15287
  reference?: string | null | undefined;
14121
15288
  details?: string | null | undefined;
14122
15289
  }[]>;
15290
+ getAttachments(params: {
15291
+ transaction_id: string;
15292
+ }, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
15293
+ items: {
15294
+ id: string;
15295
+ base64_string: string;
15296
+ }[];
15297
+ total: number;
15298
+ page: number;
15299
+ size: number;
15300
+ }>;
14123
15301
  }>;
14124
15302
  getDataByDataStoreId: (dataStoreId: string, params?: object | undefined) => Promise<{
14125
15303
  data: {
@@ -14159,6 +15337,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
14159
15337
  source_id?: string | null | undefined;
14160
15338
  target_id?: string | null | undefined;
14161
15339
  }[];
15340
+ hidden_source_ids: string[];
14162
15341
  sub_mapping_name: string;
14163
15342
  sub_mapping_description?: string | null | undefined;
14164
15343
  }[] | null | undefined;
@@ -14345,7 +15524,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
14345
15524
  value: string;
14346
15525
  }[] | null | undefined;
14347
15526
  country?: string | null | undefined;
14348
- } | undefined) => Promise<{
15527
+ redirect: boolean | null;
15528
+ } | null | undefined) => Promise<{
14349
15529
  url: string;
14350
15530
  }>;
14351
15531
  updateConnection: (connectionId: string, body?: {
@@ -14364,6 +15544,15 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
14364
15544
  };
14365
15545
  content?: undefined;
14366
15546
  }>;
15547
+ getTransactionByClientRequestId: (connectionId: string, params: {
15548
+ client_request_id: string;
15549
+ }) => Promise<{
15550
+ created_on: string;
15551
+ method: "GET" | "DELETE" | "HEAD" | "OPTIONS" | "POST" | "PUT" | "PATCH";
15552
+ route: string;
15553
+ status_code: number;
15554
+ created_entity_id?: string | null | undefined;
15555
+ }>;
14367
15556
  enableFlow: (syncId: string, flowId: string, body: {
14368
15557
  integrationids: string[];
14369
15558
  triggerid: string | null;
@@ -14969,6 +16158,30 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
14969
16158
  country?: string | null | undefined;
14970
16159
  }[] | null | undefined;
14971
16160
  }[]>;
16161
+ getCustomer(customerId: string, rawData?: boolean | undefined): import("../types/api").RequestData<{
16162
+ id: string;
16163
+ source_ref: {
16164
+ id?: string | null | undefined;
16165
+ model?: string | null | undefined;
16166
+ };
16167
+ first_name?: string | null | undefined;
16168
+ last_name?: string | null | undefined;
16169
+ company_name?: string | null | undefined;
16170
+ phone?: string | null | undefined;
16171
+ email?: string | null | undefined;
16172
+ account_number?: string | null | undefined;
16173
+ created_on?: string | null | undefined;
16174
+ addresses?: {
16175
+ address_type?: string | null | undefined;
16176
+ name?: string | null | undefined;
16177
+ street?: string | null | undefined;
16178
+ number?: string | null | undefined;
16179
+ box?: string | null | undefined;
16180
+ city?: string | null | undefined;
16181
+ postal_code?: string | null | undefined;
16182
+ country?: string | null | undefined;
16183
+ }[] | null | undefined;
16184
+ }>;
14972
16185
  getInvoices(params?: {
14973
16186
  date_from: string;
14974
16187
  date_to: string;
@@ -15071,6 +16284,20 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
15071
16284
  untaxed_amount: number;
15072
16285
  total: number;
15073
16286
  }[]>;
16287
+ getTaxes(params?: {} | undefined, rawData?: boolean | undefined): import("../types/api").RequestData<{
16288
+ items: {
16289
+ id: string;
16290
+ source_ref: {
16291
+ id?: string | null | undefined;
16292
+ model?: string | null | undefined;
16293
+ };
16294
+ label?: string | null | undefined;
16295
+ rate?: number | null | undefined;
16296
+ }[];
16297
+ total: number;
16298
+ page: number;
16299
+ size: number;
16300
+ }>;
15074
16301
  }>;
15075
16302
  payment: import("../types/api").ApiFor<{
15076
16303
  getPayments(params: {
@@ -15622,6 +16849,12 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
15622
16849
  reference?: string | null | undefined;
15623
16850
  payment_communication?: string | null | undefined;
15624
16851
  customer_memo?: string | null | undefined;
16852
+ payment_term_id?: string | null | undefined;
16853
+ withholding_tax?: {
16854
+ tax_rate: number;
16855
+ tax_code: string;
16856
+ tax_amount: number;
16857
+ } | null | undefined;
15625
16858
  invoice_date: string;
15626
16859
  due_date: string;
15627
16860
  partner_id?: string | null | undefined;
@@ -15664,10 +16897,14 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
15664
16897
  description: string;
15665
16898
  analytic_account?: string | null | undefined;
15666
16899
  }[];
16900
+ start_date?: string | null | undefined;
16901
+ end_date?: string | null | undefined;
16902
+ payment_method_id?: string | null | undefined;
15667
16903
  }, params?: {
15668
16904
  folder_id?: string | null | undefined;
15669
16905
  force_financial_period?: string | null | undefined;
15670
16906
  regroup_lines?: "true" | "false" | null | undefined;
16907
+ ignore_accounting_id?: boolean | undefined;
15671
16908
  } | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
15672
16909
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
15673
16910
  invoice_number?: string | null | undefined;
@@ -15678,10 +16915,16 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
15678
16915
  reference?: string | null | undefined;
15679
16916
  payment_communication?: string | null | undefined;
15680
16917
  customer_memo?: string | null | undefined;
16918
+ payment_term_id?: string | null | undefined;
16919
+ withholding_tax?: {
16920
+ tax_rate: number;
16921
+ tax_code: string;
16922
+ tax_amount: number;
16923
+ } | null | undefined;
15681
16924
  id?: string | null | undefined;
15682
16925
  invoice_date: string;
15683
16926
  due_date: string;
15684
- partner_id: string;
16927
+ partner_id: string | null;
15685
16928
  journal_id?: string | null | undefined;
15686
16929
  payments?: {
15687
16930
  id: string;
@@ -15739,8 +16982,22 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
15739
16982
  due_dates: {
15740
16983
  due_date: string;
15741
16984
  payment_method?: string | null | undefined;
16985
+ payment_method_id?: string | null | undefined;
15742
16986
  amount: number;
15743
16987
  }[] | null;
16988
+ attachments_info?: {
16989
+ status: "unknown" | "yes" | "yes_to_request" | "no";
16990
+ attachments: {
16991
+ filename?: string | null | undefined;
16992
+ url?: string | null | undefined;
16993
+ }[] | null;
16994
+ } | undefined;
16995
+ accounting_info?: {
16996
+ main_currency?: string | undefined;
16997
+ main_currency_total: number;
16998
+ account_number?: string | null | undefined;
16999
+ } | null | undefined;
17000
+ payment_method_id?: string | null | undefined;
15744
17001
  lines: {
15745
17002
  line_number: number | null;
15746
17003
  unit_price: number;
@@ -15766,6 +17023,12 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
15766
17023
  reference?: string | null | undefined;
15767
17024
  payment_communication?: string | null | undefined;
15768
17025
  customer_memo?: string | null | undefined;
17026
+ payment_term_id?: string | null | undefined;
17027
+ withholding_tax?: {
17028
+ tax_rate: number;
17029
+ tax_code: string;
17030
+ tax_amount: number;
17031
+ } | null | undefined;
15769
17032
  invoice_date: string;
15770
17033
  due_date: string;
15771
17034
  partner_id?: string | null | undefined;
@@ -15814,10 +17077,14 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
15814
17077
  }[];
15815
17078
  }[] | null;
15816
17079
  }[];
17080
+ start_date?: string | null | undefined;
17081
+ end_date?: string | null | undefined;
17082
+ payment_method_id?: string | null | undefined;
15817
17083
  }, params?: {
15818
17084
  folder_id?: string | null | undefined;
15819
17085
  force_financial_period?: string | null | undefined;
15820
17086
  regroup_lines?: "true" | "false" | null | undefined;
17087
+ ignore_accounting_id?: boolean | undefined;
15821
17088
  } | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
15822
17089
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
15823
17090
  invoice_number?: string | null | undefined;
@@ -15828,10 +17095,16 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
15828
17095
  reference?: string | null | undefined;
15829
17096
  payment_communication?: string | null | undefined;
15830
17097
  customer_memo?: string | null | undefined;
17098
+ payment_term_id?: string | null | undefined;
17099
+ withholding_tax?: {
17100
+ tax_rate: number;
17101
+ tax_code: string;
17102
+ tax_amount: number;
17103
+ } | null | undefined;
15831
17104
  id?: string | null | undefined;
15832
17105
  invoice_date: string;
15833
17106
  due_date: string;
15834
- partner_id: string;
17107
+ partner_id: string | null;
15835
17108
  journal_id?: string | null | undefined;
15836
17109
  payments?: {
15837
17110
  id: string;
@@ -15889,8 +17162,22 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
15889
17162
  due_dates: {
15890
17163
  due_date: string;
15891
17164
  payment_method?: string | null | undefined;
17165
+ payment_method_id?: string | null | undefined;
15892
17166
  amount: number;
15893
17167
  }[] | null;
17168
+ attachments_info?: {
17169
+ status: "unknown" | "yes" | "yes_to_request" | "no";
17170
+ attachments: {
17171
+ filename?: string | null | undefined;
17172
+ url?: string | null | undefined;
17173
+ }[] | null;
17174
+ } | undefined;
17175
+ accounting_info?: {
17176
+ main_currency?: string | undefined;
17177
+ main_currency_total: number;
17178
+ account_number?: string | null | undefined;
17179
+ } | null | undefined;
17180
+ payment_method_id?: string | null | undefined;
15894
17181
  lines: {
15895
17182
  line_number: number | null;
15896
17183
  unit_price: number;
@@ -15932,10 +17219,16 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
15932
17219
  reference?: string | null | undefined;
15933
17220
  payment_communication?: string | null | undefined;
15934
17221
  customer_memo?: string | null | undefined;
17222
+ payment_term_id?: string | null | undefined;
17223
+ withholding_tax?: {
17224
+ tax_rate: number;
17225
+ tax_code: string;
17226
+ tax_amount: number;
17227
+ } | null | undefined;
15935
17228
  id?: string | null | undefined;
15936
17229
  invoice_date: string;
15937
17230
  due_date: string;
15938
- partner_id: string;
17231
+ partner_id: string | null;
15939
17232
  journal_id?: string | null | undefined;
15940
17233
  payments?: {
15941
17234
  id: string;
@@ -15993,8 +17286,22 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
15993
17286
  due_dates: {
15994
17287
  due_date: string;
15995
17288
  payment_method?: string | null | undefined;
17289
+ payment_method_id?: string | null | undefined;
15996
17290
  amount: number;
15997
17291
  }[] | null;
17292
+ attachments_info?: {
17293
+ status: "unknown" | "yes" | "yes_to_request" | "no";
17294
+ attachments: {
17295
+ filename?: string | null | undefined;
17296
+ url?: string | null | undefined;
17297
+ }[] | null;
17298
+ } | undefined;
17299
+ accounting_info?: {
17300
+ main_currency?: string | undefined;
17301
+ main_currency_total: number;
17302
+ account_number?: string | null | undefined;
17303
+ } | null | undefined;
17304
+ payment_method_id?: string | null | undefined;
15998
17305
  lines: {
15999
17306
  line_number: number | null;
16000
17307
  unit_price: number;
@@ -16025,10 +17332,16 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
16025
17332
  reference?: string | null | undefined;
16026
17333
  payment_communication?: string | null | undefined;
16027
17334
  customer_memo?: string | null | undefined;
17335
+ payment_term_id?: string | null | undefined;
17336
+ withholding_tax?: {
17337
+ tax_rate: number;
17338
+ tax_code: string;
17339
+ tax_amount: number;
17340
+ } | null | undefined;
16028
17341
  id?: string | null | undefined;
16029
17342
  invoice_date: string;
16030
17343
  due_date: string;
16031
- partner_id: string;
17344
+ partner_id: string | null;
16032
17345
  journal_id?: string | null | undefined;
16033
17346
  payments?: {
16034
17347
  id: string;
@@ -16086,8 +17399,22 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
16086
17399
  due_dates: {
16087
17400
  due_date: string;
16088
17401
  payment_method?: string | null | undefined;
17402
+ payment_method_id?: string | null | undefined;
16089
17403
  amount: number;
16090
17404
  }[] | null;
17405
+ attachments_info?: {
17406
+ status: "unknown" | "yes" | "yes_to_request" | "no";
17407
+ attachments: {
17408
+ filename?: string | null | undefined;
17409
+ url?: string | null | undefined;
17410
+ }[] | null;
17411
+ } | undefined;
17412
+ accounting_info?: {
17413
+ main_currency?: string | undefined;
17414
+ main_currency_total: number;
17415
+ account_number?: string | null | undefined;
17416
+ } | null | undefined;
17417
+ payment_method_id?: string | null | undefined;
16091
17418
  lines: {
16092
17419
  line_number: number | null;
16093
17420
  unit_price: number;
@@ -16118,10 +17445,16 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
16118
17445
  reference?: string | null | undefined;
16119
17446
  payment_communication?: string | null | undefined;
16120
17447
  customer_memo?: string | null | undefined;
17448
+ payment_term_id?: string | null | undefined;
17449
+ withholding_tax?: {
17450
+ tax_rate: number;
17451
+ tax_code: string;
17452
+ tax_amount: number;
17453
+ } | null | undefined;
16121
17454
  id?: string | null | undefined;
16122
17455
  invoice_date: string;
16123
17456
  due_date: string;
16124
- partner_id: string;
17457
+ partner_id: string | null;
16125
17458
  journal_id?: string | null | undefined;
16126
17459
  payments?: {
16127
17460
  id: string;
@@ -16179,8 +17512,22 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
16179
17512
  due_dates: {
16180
17513
  due_date: string;
16181
17514
  payment_method?: string | null | undefined;
17515
+ payment_method_id?: string | null | undefined;
16182
17516
  amount: number;
16183
17517
  }[] | null;
17518
+ attachments_info?: {
17519
+ status: "unknown" | "yes" | "yes_to_request" | "no";
17520
+ attachments: {
17521
+ filename?: string | null | undefined;
17522
+ url?: string | null | undefined;
17523
+ }[] | null;
17524
+ } | undefined;
17525
+ accounting_info?: {
17526
+ main_currency?: string | undefined;
17527
+ main_currency_total: number;
17528
+ account_number?: string | null | undefined;
17529
+ } | null | undefined;
17530
+ payment_method_id?: string | null | undefined;
16184
17531
  lines: {
16185
17532
  line_number: number | null;
16186
17533
  unit_price: number;
@@ -16222,10 +17569,16 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
16222
17569
  reference?: string | null | undefined;
16223
17570
  payment_communication?: string | null | undefined;
16224
17571
  customer_memo?: string | null | undefined;
17572
+ payment_term_id?: string | null | undefined;
17573
+ withholding_tax?: {
17574
+ tax_rate: number;
17575
+ tax_code: string;
17576
+ tax_amount: number;
17577
+ } | null | undefined;
16225
17578
  id?: string | null | undefined;
16226
17579
  invoice_date: string;
16227
17580
  due_date: string;
16228
- partner_id: string;
17581
+ partner_id: string | null;
16229
17582
  journal_id?: string | null | undefined;
16230
17583
  payments?: {
16231
17584
  id: string;
@@ -16283,8 +17636,22 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
16283
17636
  due_dates: {
16284
17637
  due_date: string;
16285
17638
  payment_method?: string | null | undefined;
17639
+ payment_method_id?: string | null | undefined;
16286
17640
  amount: number;
16287
17641
  }[] | null;
17642
+ attachments_info?: {
17643
+ status: "unknown" | "yes" | "yes_to_request" | "no";
17644
+ attachments: {
17645
+ filename?: string | null | undefined;
17646
+ url?: string | null | undefined;
17647
+ }[] | null;
17648
+ } | undefined;
17649
+ accounting_info?: {
17650
+ main_currency?: string | undefined;
17651
+ main_currency_total: number;
17652
+ account_number?: string | null | undefined;
17653
+ } | null | undefined;
17654
+ payment_method_id?: string | null | undefined;
16288
17655
  lines: {
16289
17656
  line_number: number | null;
16290
17657
  unit_price: number;
@@ -16432,7 +17799,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
16432
17799
  folder_id?: string | null | undefined;
16433
17800
  updated_after?: string | null | undefined;
16434
17801
  unposted_allowed: "true" | "false";
16435
- journal_id: string;
17802
+ journal_id?: string | null | undefined;
16436
17803
  partner_id?: string | null | undefined;
16437
17804
  }, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
16438
17805
  reference?: string | null | undefined;
@@ -16446,9 +17813,17 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
16446
17813
  due_dates: {
16447
17814
  due_date: string;
16448
17815
  payment_method?: string | null | undefined;
17816
+ payment_method_id?: string | null | undefined;
16449
17817
  debit: number | null;
16450
17818
  credit: number | null;
16451
17819
  }[] | null;
17820
+ attachments_info?: {
17821
+ status: "unknown" | "yes" | "yes_to_request" | "no";
17822
+ attachments: {
17823
+ filename?: string | null | undefined;
17824
+ url?: string | null | undefined;
17825
+ }[] | null;
17826
+ } | undefined;
16452
17827
  items: {
16453
17828
  account_number: string;
16454
17829
  partner_id?: string | null | undefined;
@@ -16471,7 +17846,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
16471
17846
  folder_id?: string | null | undefined;
16472
17847
  updated_after?: string | null | undefined;
16473
17848
  unposted_allowed: "true" | "false";
16474
- journal_id: string;
17849
+ journal_id?: string | null | undefined;
16475
17850
  partner_id?: string | null | undefined;
16476
17851
  }, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
16477
17852
  reference?: string | null | undefined;
@@ -16485,9 +17860,17 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
16485
17860
  due_dates: {
16486
17861
  due_date: string;
16487
17862
  payment_method?: string | null | undefined;
17863
+ payment_method_id?: string | null | undefined;
16488
17864
  debit: number | null;
16489
17865
  credit: number | null;
16490
17866
  }[] | null;
17867
+ attachments_info?: {
17868
+ status: "unknown" | "yes" | "yes_to_request" | "no";
17869
+ attachments: {
17870
+ filename?: string | null | undefined;
17871
+ url?: string | null | undefined;
17872
+ }[] | null;
17873
+ } | undefined;
16491
17874
  items: {
16492
17875
  account_number: string;
16493
17876
  partner_id?: string | null | undefined;
@@ -16577,6 +17960,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
16577
17960
  } | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
16578
17961
  id: string;
16579
17962
  code?: string | null | undefined;
17963
+ active: boolean | null;
16580
17964
  label: string;
16581
17965
  scope: "unknown" | "nat" | "eu" | "int" | null;
16582
17966
  rate: number;
@@ -16584,6 +17968,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
16584
17968
  deductible_account?: string | null | undefined;
16585
17969
  payable_account?: string | null | undefined;
16586
17970
  reversed: boolean | null;
17971
+ withholding_tax: boolean | null;
16587
17972
  country?: string | null | undefined;
16588
17973
  }[]>;
16589
17974
  getMiscOperations(params?: {
@@ -16686,12 +18071,14 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
16686
18071
  getChartOfAccounts(params?: {
16687
18072
  folder_id?: string | null | undefined;
16688
18073
  classes?: string | null | undefined;
16689
- type?: "vat" | "bank" | "cash" | "income" | "expense" | null | undefined;
18074
+ type?: "vat" | "bank" | "cash" | "income" | "expense" | "other_expense" | null | undefined;
16690
18075
  } | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
16691
18076
  number: string;
16692
18077
  name: string;
16693
18078
  active: boolean | null;
16694
- type?: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | null | undefined;
18079
+ type?: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | "other_expense" | null | undefined;
18080
+ scheme_ids?: string[] | null | undefined;
18081
+ accounting_category?: string | null | undefined;
16695
18082
  }[]>;
16696
18083
  getBalanceOfAccounts(filter: {
16697
18084
  accounts: string[];
@@ -16767,6 +18154,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
16767
18154
  account: string;
16768
18155
  amount: number;
16769
18156
  description?: string | null | undefined;
18157
+ automated_matching_number?: string | null | undefined;
16770
18158
  }[];
16771
18159
  pdf?: string | null | undefined;
16772
18160
  }, params?: {
@@ -16785,6 +18173,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
16785
18173
  account: string;
16786
18174
  amount: number;
16787
18175
  description?: string | null | undefined;
18176
+ automated_matching_number?: string | null | undefined;
16788
18177
  counterpart_account: string;
16789
18178
  }[];
16790
18179
  }>;
@@ -16812,6 +18201,13 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
16812
18201
  }[];
16813
18202
  }[] | null;
16814
18203
  tax_code?: string | null | undefined;
18204
+ tax_info?: {
18205
+ tax_code: string;
18206
+ tax_amount: number;
18207
+ vat_account?: string | null | undefined;
18208
+ reversed_vat_account?: string | null | undefined;
18209
+ description?: string | null | undefined;
18210
+ } | null | undefined;
16815
18211
  account_info?: {
16816
18212
  account_number: string;
16817
18213
  account_name: string;
@@ -16824,6 +18220,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
16824
18220
  }, params?: {
16825
18221
  folder_id?: string | null | undefined;
16826
18222
  force_currency_exchange?: "true" | "false" | null | undefined;
18223
+ ignore_accounting_id?: boolean | undefined;
16827
18224
  } | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
16828
18225
  reference?: string | null | undefined;
16829
18226
  due_date?: string | null | undefined;
@@ -16836,9 +18233,17 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
16836
18233
  due_dates: {
16837
18234
  due_date: string;
16838
18235
  payment_method?: string | null | undefined;
18236
+ payment_method_id?: string | null | undefined;
16839
18237
  debit: number | null;
16840
18238
  credit: number | null;
16841
18239
  }[] | null;
18240
+ attachments_info?: {
18241
+ status: "unknown" | "yes" | "yes_to_request" | "no";
18242
+ attachments: {
18243
+ filename?: string | null | undefined;
18244
+ url?: string | null | undefined;
18245
+ }[] | null;
18246
+ } | undefined;
16842
18247
  items: {
16843
18248
  account_number: string;
16844
18249
  partner_id?: string | null | undefined;
@@ -16954,14 +18359,35 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
16954
18359
  createLedgerAccount(account: {
16955
18360
  name: string;
16956
18361
  number: string;
16957
- type: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | null;
18362
+ type: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | "other_expense" | null;
16958
18363
  }, params?: {
16959
18364
  folder_id?: string | null | undefined;
16960
18365
  } | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
16961
18366
  number: string;
16962
18367
  name: string;
16963
18368
  active: boolean | null;
16964
- type?: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | null | undefined;
18369
+ type?: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | "other_expense" | null | undefined;
18370
+ scheme_ids?: string[] | null | undefined;
18371
+ accounting_category?: string | null | undefined;
18372
+ }>;
18373
+ getBankAccounts(params?: {
18374
+ folder_id?: string | null | undefined;
18375
+ } | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
18376
+ items: {
18377
+ id: string;
18378
+ code?: string | null | undefined;
18379
+ currency?: string | null | undefined;
18380
+ account_name?: string | null | undefined;
18381
+ account_number?: string | null | undefined;
18382
+ iban?: string | null | undefined;
18383
+ bank_name?: string | null | undefined;
18384
+ journal_id?: string | null | undefined;
18385
+ ledger_account?: string | null | undefined;
18386
+ unallocated_account?: string | null | undefined;
18387
+ }[];
18388
+ total: number;
18389
+ page: number;
18390
+ size: number;
16965
18391
  }>;
16966
18392
  createBankAccount(bankAccount: {
16967
18393
  code: string;
@@ -16984,6 +18410,45 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
16984
18410
  ledger_account?: string | null | undefined;
16985
18411
  unallocated_account?: string | null | undefined;
16986
18412
  }>;
18413
+ createBankTransactions(bankStatement: {
18414
+ bank_statement_date: string;
18415
+ bank_account_id: string;
18416
+ external_bank_statement_id: string;
18417
+ opening_balance?: number | null | undefined;
18418
+ pdf?: string | null | undefined;
18419
+ items: {
18420
+ account_type?: "customer_account" | "supplier_account" | "employee_account" | "general_account" | null | undefined;
18421
+ account?: string | null | undefined;
18422
+ description?: string | null | undefined;
18423
+ external_transaction_id?: string | null | undefined;
18424
+ date: string;
18425
+ amount: number;
18426
+ fee_amount: number | null;
18427
+ tax_amount: number | null;
18428
+ currency: string;
18429
+ currency_exchange_rate: number | null;
18430
+ }[];
18431
+ }, params?: {
18432
+ folder_id?: string | null | undefined;
18433
+ } | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
18434
+ bank_statement_date: string;
18435
+ bank_account_id: string;
18436
+ id?: string | null | undefined;
18437
+ external_bank_statement_id?: string | null | undefined;
18438
+ items: {
18439
+ account_type?: "customer_account" | "supplier_account" | "employee_account" | "general_account" | null | undefined;
18440
+ account?: string | null | undefined;
18441
+ description?: string | null | undefined;
18442
+ external_transaction_id?: string | null | undefined;
18443
+ date: string;
18444
+ amount: number;
18445
+ fee_amount: number | null;
18446
+ tax_amount: number | null;
18447
+ currency: string;
18448
+ currency_exchange_rate: number | null;
18449
+ id?: string | null | undefined;
18450
+ }[];
18451
+ }>;
16987
18452
  getJournalEntry(journalEntryId: string, params?: {
16988
18453
  folder_id?: string | null | undefined;
16989
18454
  } | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
@@ -16998,9 +18463,17 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
16998
18463
  due_dates: {
16999
18464
  due_date: string;
17000
18465
  payment_method?: string | null | undefined;
18466
+ payment_method_id?: string | null | undefined;
17001
18467
  debit: number | null;
17002
18468
  credit: number | null;
17003
18469
  }[] | null;
18470
+ attachments_info?: {
18471
+ status: "unknown" | "yes" | "yes_to_request" | "no";
18472
+ attachments: {
18473
+ filename?: string | null | undefined;
18474
+ url?: string | null | undefined;
18475
+ }[] | null;
18476
+ } | undefined;
17004
18477
  items: {
17005
18478
  account_number: string;
17006
18479
  partner_id?: string | null | undefined;
@@ -17035,6 +18508,29 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
17035
18508
  page: number;
17036
18509
  size: number;
17037
18510
  }>;
18511
+ getPaymentTerms(params?: {
18512
+ folder_id?: string | null | undefined;
18513
+ } | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
18514
+ items: {
18515
+ id: string;
18516
+ name?: string | null | undefined;
18517
+ }[];
18518
+ total: number;
18519
+ page: number;
18520
+ size: number;
18521
+ }>;
18522
+ getSchemes(params?: {
18523
+ folder_id?: string | null | undefined;
18524
+ } | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
18525
+ items: {
18526
+ id: string;
18527
+ code: string;
18528
+ name: string;
18529
+ }[];
18530
+ total: number;
18531
+ page: number;
18532
+ size: number;
18533
+ }>;
17038
18534
  createInvoicePayment(body: {
17039
18535
  date: string;
17040
18536
  payment_method_id: string;
@@ -17054,6 +18550,29 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
17054
18550
  };
17055
18551
  content?: undefined;
17056
18552
  }>;
18553
+ exportFec(params: {
18554
+ folder_id?: string | null | undefined;
18555
+ date_from: string;
18556
+ date_to: string;
18557
+ }, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
18558
+ JournalCode: string;
18559
+ JournalLib: string;
18560
+ EcritureNum: string;
18561
+ EcritureDate: string;
18562
+ CompteNum: string;
18563
+ CompteLib: string;
18564
+ CompAuxNum: string;
18565
+ CompAuxLib: string;
18566
+ PieceRef: string;
18567
+ PieceDate: string;
18568
+ Debit: number;
18569
+ Credit: number;
18570
+ EcritureLet: string;
18571
+ DateLet: string | null;
18572
+ ValidDate: string | null;
18573
+ Montantdevise: number;
18574
+ Idevise: string;
18575
+ }[]>;
17057
18576
  }>;
17058
18577
  invoicing: import("../types/api").ApiFor<{
17059
18578
  getInvoices(params?: {
@@ -17063,6 +18582,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
17063
18582
  updated_after?: string | null | undefined;
17064
18583
  include_invoice_lines?: "true" | "false" | null | undefined;
17065
18584
  invoice_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all" | null | undefined;
18585
+ include_analytic_accounts?: "true" | "false" | null | undefined;
17066
18586
  } | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
17067
18587
  id: string;
17068
18588
  source_ref: {
@@ -17092,6 +18612,14 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
17092
18612
  product_id?: string | null | undefined;
17093
18613
  product_code?: string | null | undefined;
17094
18614
  product_name?: string | null | undefined;
18615
+ analytic_distribution: {
18616
+ analytic_plan_code: string;
18617
+ analytic_accounts: {
18618
+ analytic_account_code: string;
18619
+ analytic_account_name: string;
18620
+ percentage: number;
18621
+ }[];
18622
+ }[] | null;
17095
18623
  }[];
17096
18624
  partner_id?: string | null | undefined;
17097
18625
  invoice_number?: string | null | undefined;
@@ -17131,6 +18659,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
17131
18659
  }[]>;
17132
18660
  getInvoiceById(invoiceId: string, params?: {
17133
18661
  include_pdf?: "true" | "false" | null | undefined;
18662
+ include_analytic_accounts?: "true" | "false" | null | undefined;
17134
18663
  } | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
17135
18664
  id: string;
17136
18665
  source_ref: {
@@ -17160,6 +18689,14 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
17160
18689
  product_id?: string | null | undefined;
17161
18690
  product_code?: string | null | undefined;
17162
18691
  product_name?: string | null | undefined;
18692
+ analytic_distribution: {
18693
+ analytic_plan_code: string;
18694
+ analytic_accounts: {
18695
+ analytic_account_code: string;
18696
+ analytic_account_name: string;
18697
+ percentage: number;
18698
+ }[];
18699
+ }[] | null;
17163
18700
  }[];
17164
18701
  partner_id?: string | null | undefined;
17165
18702
  invoice_number?: string | null | undefined;
@@ -17281,6 +18818,14 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
17281
18818
  product_id?: string | null | undefined;
17282
18819
  product_code?: string | null | undefined;
17283
18820
  product_name?: string | null | undefined;
18821
+ analytic_distribution: {
18822
+ analytic_plan_code: string;
18823
+ analytic_accounts: {
18824
+ analytic_account_code: string;
18825
+ analytic_account_name: string;
18826
+ percentage: number;
18827
+ }[];
18828
+ }[] | null;
17284
18829
  }[];
17285
18830
  partner_id?: string | null | undefined;
17286
18831
  invoice_number?: string | null | undefined;
@@ -18859,14 +20404,18 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
18859
20404
  reference: string;
18860
20405
  reference_type: string;
18861
20406
  holder_name?: string | null | undefined;
20407
+ active: boolean | null;
18862
20408
  }[]>;
18863
- getAccountTransactions(accountId: string, params?: {
20409
+ getAccountTransactions(params: {
18864
20410
  date_from?: string | null | undefined;
18865
20411
  date_to?: string | null | undefined;
20412
+ updated_after?: string | null | undefined;
20413
+ account_id: string;
18866
20414
  date_type?: "value_date" | "execution_date" | null | undefined;
18867
- } | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
20415
+ }, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
18868
20416
  id: string;
18869
20417
  amount: number;
20418
+ tax_amount?: number | null | undefined;
18870
20419
  currency: string;
18871
20420
  description?: string | null | undefined;
18872
20421
  additional_information?: string | null | undefined;
@@ -18876,6 +20425,17 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
18876
20425
  creation_date: string;
18877
20426
  value_date: string;
18878
20427
  execution_date: string;
20428
+ internal_transaction: boolean | null;
20429
+ operation_type: "other" | "fee" | "incoming_transfer" | "outgoing_transfer" | "card" | "direct_debit" | "direct_debit_collection" | "direct_debit_hold" | "cheque" | "recall" | "swift_income" | "pay_later" | "financing_installment" | null;
20430
+ last_update_on?: string | null | undefined;
20431
+ status?: "completed" | "pending" | "declined" | null | undefined;
20432
+ attachments_info?: {
20433
+ status: "unknown" | "yes" | "yes_to_request" | "no";
20434
+ attachments: {
20435
+ filename?: string | null | undefined;
20436
+ url?: string | null | undefined;
20437
+ }[] | null;
20438
+ } | undefined;
18879
20439
  }[]>;
18880
20440
  getAccountCounterparts(params?: {
18881
20441
  date_from?: string | null | undefined;
@@ -18886,6 +20446,17 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
18886
20446
  reference?: string | null | undefined;
18887
20447
  details?: string | null | undefined;
18888
20448
  }[]>;
20449
+ getAttachments(params: {
20450
+ transaction_id: string;
20451
+ }, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
20452
+ items: {
20453
+ id: string;
20454
+ base64_string: string;
20455
+ }[];
20456
+ total: number;
20457
+ page: number;
20458
+ size: number;
20459
+ }>;
18889
20460
  }>;
18890
20461
  getDataByDataStoreId: (dataStoreId: string, params?: object | undefined) => Promise<{
18891
20462
  data: {
@@ -18925,6 +20496,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
18925
20496
  source_id?: string | null | undefined;
18926
20497
  target_id?: string | null | undefined;
18927
20498
  }[];
20499
+ hidden_source_ids: string[];
18928
20500
  sub_mapping_name: string;
18929
20501
  sub_mapping_description?: string | null | undefined;
18930
20502
  }[] | null | undefined;