@chift/chift-nodejs 1.0.10 → 1.0.13

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.
@@ -897,7 +897,7 @@ export declare class API {
897
897
  communication?: string | undefined;
898
898
  matching_number?: string | undefined;
899
899
  }[] | undefined;
900
- status?: "draft" | "posted" | "cancelled" | "paid" | undefined;
900
+ status?: "cancelled" | "draft" | "posted" | "paid" | undefined;
901
901
  lines: {
902
902
  line_number?: number | undefined;
903
903
  description: string;
@@ -999,7 +999,7 @@ export declare class API {
999
999
  communication?: string | undefined;
1000
1000
  matching_number?: string | undefined;
1001
1001
  }[] | undefined;
1002
- status?: "draft" | "posted" | "cancelled" | "paid" | undefined;
1002
+ status?: "cancelled" | "draft" | "posted" | "paid" | undefined;
1003
1003
  lines: {
1004
1004
  line_number?: number | undefined;
1005
1005
  description: string;
@@ -1050,7 +1050,7 @@ export declare class API {
1050
1050
  communication?: string | undefined;
1051
1051
  matching_number?: string | undefined;
1052
1052
  }[] | undefined;
1053
- status?: "draft" | "posted" | "cancelled" | "paid" | undefined;
1053
+ status?: "cancelled" | "draft" | "posted" | "paid" | undefined;
1054
1054
  lines: {
1055
1055
  line_number?: number | undefined;
1056
1056
  description: string;
@@ -1098,7 +1098,7 @@ export declare class API {
1098
1098
  communication?: string | undefined;
1099
1099
  matching_number?: string | undefined;
1100
1100
  }[] | undefined;
1101
- status?: "draft" | "posted" | "cancelled" | "paid" | undefined;
1101
+ status?: "cancelled" | "draft" | "posted" | "paid" | undefined;
1102
1102
  lines: {
1103
1103
  line_number?: number | undefined;
1104
1104
  description: string;
@@ -1146,7 +1146,7 @@ export declare class API {
1146
1146
  communication?: string | undefined;
1147
1147
  matching_number?: string | undefined;
1148
1148
  }[] | undefined;
1149
- status?: "draft" | "posted" | "cancelled" | "paid" | undefined;
1149
+ status?: "cancelled" | "draft" | "posted" | "paid" | undefined;
1150
1150
  lines: {
1151
1151
  line_number?: number | undefined;
1152
1152
  description: string;
@@ -1197,7 +1197,7 @@ export declare class API {
1197
1197
  communication?: string | undefined;
1198
1198
  matching_number?: string | undefined;
1199
1199
  }[] | undefined;
1200
- status?: "draft" | "posted" | "cancelled" | "paid" | undefined;
1200
+ status?: "cancelled" | "draft" | "posted" | "paid" | undefined;
1201
1201
  lines: {
1202
1202
  line_number?: number | undefined;
1203
1203
  description: string;
@@ -1462,14 +1462,14 @@ export declare class API {
1462
1462
  line_number?: number | undefined;
1463
1463
  description?: string | undefined;
1464
1464
  amount: number;
1465
- type: "general_account" | "customer_account" | "supplier_account";
1465
+ type: "customer_account" | "supplier_account" | "general_account";
1466
1466
  account_number: string;
1467
1467
  partner_id?: string | undefined;
1468
1468
  analytic_account?: string | undefined;
1469
1469
  }[];
1470
1470
  operation_date?: string | undefined;
1471
1471
  journal_id: string;
1472
- status: "draft" | "posted" | "cancelled" | "matched";
1472
+ status: "cancelled" | "draft" | "posted" | "matched";
1473
1473
  id: string;
1474
1474
  }[]>;
1475
1475
  createMiscOperation(operation: {
@@ -1480,7 +1480,7 @@ export declare class API {
1480
1480
  line_number?: number | undefined;
1481
1481
  description?: string | undefined;
1482
1482
  amount: number;
1483
- type: "general_account" | "customer_account" | "supplier_account";
1483
+ type: "customer_account" | "supplier_account" | "general_account";
1484
1484
  account_number: string;
1485
1485
  partner_id?: string | undefined;
1486
1486
  analytic_account?: string | undefined;
@@ -1498,14 +1498,14 @@ export declare class API {
1498
1498
  line_number?: number | undefined;
1499
1499
  description?: string | undefined;
1500
1500
  amount: number;
1501
- type: "general_account" | "customer_account" | "supplier_account";
1501
+ type: "customer_account" | "supplier_account" | "general_account";
1502
1502
  account_number: string;
1503
1503
  partner_id?: string | undefined;
1504
1504
  analytic_account?: string | undefined;
1505
1505
  }[];
1506
1506
  operation_date?: string | undefined;
1507
1507
  journal_id: string;
1508
- status: "draft" | "posted" | "cancelled" | "matched";
1508
+ status: "cancelled" | "draft" | "posted" | "matched";
1509
1509
  id: string;
1510
1510
  }>;
1511
1511
  getMiscOperation(operation_id: string, params: {
@@ -1518,14 +1518,14 @@ export declare class API {
1518
1518
  line_number?: number | undefined;
1519
1519
  description?: string | undefined;
1520
1520
  amount: number;
1521
- type: "general_account" | "customer_account" | "supplier_account";
1521
+ type: "customer_account" | "supplier_account" | "general_account";
1522
1522
  account_number: string;
1523
1523
  partner_id?: string | undefined;
1524
1524
  analytic_account?: string | undefined;
1525
1525
  }[];
1526
1526
  operation_date?: string | undefined;
1527
1527
  journal_id: string;
1528
- status: "draft" | "posted" | "cancelled" | "matched";
1528
+ status: "cancelled" | "draft" | "posted" | "matched";
1529
1529
  id: string;
1530
1530
  }>;
1531
1531
  attachPDF(invoice_id: string, attachment: {
@@ -1535,7 +1535,7 @@ export declare class API {
1535
1535
  folder_id?: string | undefined;
1536
1536
  } | undefined): import("../types/api").RequestData<{
1537
1537
  content: {
1538
- 'application/json': unknown;
1538
+ "application/json": unknown;
1539
1539
  };
1540
1540
  }>;
1541
1541
  getAttachments(params: {
@@ -1551,11 +1551,11 @@ export declare class API {
1551
1551
  number: string;
1552
1552
  name: string;
1553
1553
  active?: boolean | undefined;
1554
- type?: "vat" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | "other" | undefined;
1554
+ type?: "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | "vat" | "other" | undefined;
1555
1555
  }[]>;
1556
1556
  getBalanceOfAccounts(filter: {
1557
1557
  accounts: string[];
1558
- start: string;
1558
+ start?: string | undefined;
1559
1559
  end: string;
1560
1560
  }, params: {
1561
1561
  folder_id?: string | undefined;
@@ -1563,6 +1563,7 @@ export declare class API {
1563
1563
  size?: number | undefined;
1564
1564
  } | undefined): import("../types/api").RequestData<{
1565
1565
  account_number: string;
1566
+ account_name?: string | undefined;
1566
1567
  debit: number;
1567
1568
  credit: number;
1568
1569
  balance: number;
@@ -1587,7 +1588,7 @@ export declare class API {
1587
1588
  getOutstandings(params: {
1588
1589
  folder_id?: string | undefined;
1589
1590
  unposted_allowed: "true" | "false";
1590
- type: "client" | "supplier";
1591
+ type: "supplier" | "client";
1591
1592
  }): import("../types/api").RequestData<{
1592
1593
  id: string;
1593
1594
  number?: string | undefined;
@@ -1613,7 +1614,7 @@ export declare class API {
1613
1614
  reference?: string | undefined;
1614
1615
  number?: string | undefined;
1615
1616
  items: {
1616
- type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
1617
+ type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
1617
1618
  account_number: string;
1618
1619
  partner_id?: string | undefined;
1619
1620
  amount: number;
@@ -1632,7 +1633,7 @@ export declare class API {
1632
1633
  id: string;
1633
1634
  number: string;
1634
1635
  items: {
1635
- type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
1636
+ type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
1636
1637
  account_number: string;
1637
1638
  partner_id?: string | undefined;
1638
1639
  amount: number;
@@ -1648,7 +1649,7 @@ export declare class API {
1648
1649
  reference?: string | undefined;
1649
1650
  number?: string | undefined;
1650
1651
  items: {
1651
- account_type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
1652
+ account_type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
1652
1653
  account: string;
1653
1654
  amount: number;
1654
1655
  description?: string | undefined;
@@ -1666,7 +1667,7 @@ export declare class API {
1666
1667
  id: string;
1667
1668
  number: string;
1668
1669
  items: {
1669
- account_type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
1670
+ account_type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
1670
1671
  account: string;
1671
1672
  amount: number;
1672
1673
  description?: string | undefined;
@@ -1735,7 +1736,7 @@ export declare class API {
1735
1736
  currency_exchange_rate?: number | undefined;
1736
1737
  date: string;
1737
1738
  items: {
1738
- account_type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
1739
+ account_type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
1739
1740
  account: string;
1740
1741
  force_general_account?: string | undefined;
1741
1742
  prioritise_thirdparty_account?: boolean | undefined;
@@ -1802,7 +1803,7 @@ export declare class API {
1802
1803
  }>;
1803
1804
  invoicing: import("../types/api").ApiFor<{
1804
1805
  getInvoices(params: {
1805
- invoice_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all" | undefined;
1806
+ invoice_type?: "all" | "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | undefined;
1806
1807
  payment_status?: "all" | "paid" | "unpaid" | undefined;
1807
1808
  date_from?: string | undefined;
1808
1809
  date_to?: string | undefined;
@@ -1817,7 +1818,7 @@ export declare class API {
1817
1818
  };
1818
1819
  currency: string;
1819
1820
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
1820
- status: "draft" | "posted" | "cancelled" | "paid";
1821
+ status: "cancelled" | "draft" | "posted" | "paid";
1821
1822
  invoice_date: string;
1822
1823
  tax_amount: number;
1823
1824
  untaxed_amount: number;
@@ -1862,7 +1863,7 @@ export declare class API {
1862
1863
  };
1863
1864
  currency: string;
1864
1865
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
1865
- status: "draft" | "posted" | "cancelled" | "paid";
1866
+ status: "cancelled" | "draft" | "posted" | "paid";
1866
1867
  invoice_date: string;
1867
1868
  tax_amount: number;
1868
1869
  untaxed_amount: number;
@@ -1900,7 +1901,7 @@ export declare class API {
1900
1901
  createInvoice(invoice: {
1901
1902
  currency: string;
1902
1903
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
1903
- status: "draft" | "posted" | "cancelled" | "paid";
1904
+ status: "cancelled" | "draft" | "posted" | "paid";
1904
1905
  invoice_date: string;
1905
1906
  tax_amount: number;
1906
1907
  untaxed_amount: number;
@@ -1941,7 +1942,7 @@ export declare class API {
1941
1942
  };
1942
1943
  currency: string;
1943
1944
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
1944
- status: "draft" | "posted" | "cancelled" | "paid";
1945
+ status: "cancelled" | "draft" | "posted" | "paid";
1945
1946
  invoice_date: string;
1946
1947
  tax_amount: number;
1947
1948
  untaxed_amount: number;
@@ -2113,7 +2114,7 @@ export declare class API {
2113
2114
  } | undefined;
2114
2115
  }>;
2115
2116
  getContacts(params?: {
2116
- contact_type?: "all" | "supplier" | "prospect" | "customer" | undefined;
2117
+ contact_type?: "prospect" | "customer" | "supplier" | "all" | undefined;
2117
2118
  page?: number | undefined;
2118
2119
  size?: number | undefined;
2119
2120
  } | undefined): import("../types/api").RequestData<{
@@ -2143,7 +2144,7 @@ export declare class API {
2143
2144
  birthdate?: string | undefined;
2144
2145
  gender?: "H" | "F" | "N/A" | undefined;
2145
2146
  addresses?: {
2146
- address_type: "main" | "delivery" | "invoice" | "other";
2147
+ address_type: "other" | "main" | "delivery" | "invoice";
2147
2148
  name?: string | undefined;
2148
2149
  number?: string | undefined;
2149
2150
  box?: string | undefined;
@@ -2183,7 +2184,7 @@ export declare class API {
2183
2184
  birthdate?: string | undefined;
2184
2185
  gender?: "H" | "F" | "N/A" | undefined;
2185
2186
  addresses?: {
2186
- address_type: "main" | "delivery" | "invoice" | "other";
2187
+ address_type: "other" | "main" | "delivery" | "invoice";
2187
2188
  name?: string | undefined;
2188
2189
  number?: string | undefined;
2189
2190
  box?: string | undefined;
@@ -2218,7 +2219,7 @@ export declare class API {
2218
2219
  birthdate?: string | undefined;
2219
2220
  gender?: "H" | "F" | "N/A" | undefined;
2220
2221
  addresses?: {
2221
- address_type: "main" | "delivery" | "invoice" | "other";
2222
+ address_type: "other" | "main" | "delivery" | "invoice";
2222
2223
  name?: string | undefined;
2223
2224
  number?: string | undefined;
2224
2225
  box?: string | undefined;
@@ -2257,7 +2258,7 @@ export declare class API {
2257
2258
  birthdate?: string | undefined;
2258
2259
  gender?: "H" | "F" | "N/A" | undefined;
2259
2260
  addresses?: {
2260
- address_type: "main" | "delivery" | "invoice" | "other";
2261
+ address_type: "other" | "main" | "delivery" | "invoice";
2261
2262
  name?: string | undefined;
2262
2263
  number?: string | undefined;
2263
2264
  box?: string | undefined;
@@ -2573,7 +2574,7 @@ export declare class API {
2573
2574
  last_updated_on?: string | undefined;
2574
2575
  confirmed_on?: string | undefined;
2575
2576
  cancelled_on?: string | undefined;
2576
- status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
2577
+ status: "cancelled" | "draft" | "confirmed" | "shipped" | "refunded";
2577
2578
  discount_amount: number;
2578
2579
  untaxed_amount_without_fees: number;
2579
2580
  tax_amount_without_fees: number;
@@ -2605,6 +2606,11 @@ export declare class API {
2605
2606
  }[] | undefined;
2606
2607
  other?: number | undefined;
2607
2608
  shipping_refunds?: {
2609
+ id: string;
2610
+ source_ref: {
2611
+ id?: string | undefined;
2612
+ model?: string | undefined;
2613
+ };
2608
2614
  untaxed_amount: number;
2609
2615
  tax_amount: number;
2610
2616
  total: number;
@@ -2640,6 +2646,11 @@ export declare class API {
2640
2646
  gift_card?: boolean | undefined;
2641
2647
  }[];
2642
2648
  other_fees?: {
2649
+ id: string;
2650
+ source_ref: {
2651
+ id?: string | undefined;
2652
+ model?: string | undefined;
2653
+ };
2643
2654
  created_on?: string | undefined;
2644
2655
  type: "other" | "shipping";
2645
2656
  tax_rate: number;
@@ -2754,7 +2765,7 @@ export declare class API {
2754
2765
  last_updated_on?: string | undefined;
2755
2766
  confirmed_on?: string | undefined;
2756
2767
  cancelled_on?: string | undefined;
2757
- status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
2768
+ status: "cancelled" | "draft" | "confirmed" | "shipped" | "refunded";
2758
2769
  discount_amount: number;
2759
2770
  untaxed_amount_without_fees: number;
2760
2771
  tax_amount_without_fees: number;
@@ -2786,6 +2797,11 @@ export declare class API {
2786
2797
  }[] | undefined;
2787
2798
  other?: number | undefined;
2788
2799
  shipping_refunds?: {
2800
+ id: string;
2801
+ source_ref: {
2802
+ id?: string | undefined;
2803
+ model?: string | undefined;
2804
+ };
2789
2805
  untaxed_amount: number;
2790
2806
  tax_amount: number;
2791
2807
  total: number;
@@ -2821,6 +2837,11 @@ export declare class API {
2821
2837
  gift_card?: boolean | undefined;
2822
2838
  }[];
2823
2839
  other_fees?: {
2840
+ id: string;
2841
+ source_ref: {
2842
+ id?: string | undefined;
2843
+ model?: string | undefined;
2844
+ };
2824
2845
  created_on?: string | undefined;
2825
2846
  type: "other" | "shipping";
2826
2847
  tax_rate: number;
@@ -2894,7 +2915,7 @@ export declare class API {
2894
2915
  last_updated_on?: string | undefined;
2895
2916
  confirmed_on?: string | undefined;
2896
2917
  cancelled_on?: string | undefined;
2897
- status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
2918
+ status: "cancelled" | "draft" | "confirmed" | "shipped" | "refunded";
2898
2919
  discount_amount: number;
2899
2920
  untaxed_amount_without_fees: number;
2900
2921
  tax_amount_without_fees: number;
@@ -2926,6 +2947,11 @@ export declare class API {
2926
2947
  }[] | undefined;
2927
2948
  other?: number | undefined;
2928
2949
  shipping_refunds?: {
2950
+ id: string;
2951
+ source_ref: {
2952
+ id?: string | undefined;
2953
+ model?: string | undefined;
2954
+ };
2929
2955
  untaxed_amount: number;
2930
2956
  tax_amount: number;
2931
2957
  total: number;
@@ -2961,6 +2987,11 @@ export declare class API {
2961
2987
  gift_card?: boolean | undefined;
2962
2988
  }[];
2963
2989
  other_fees?: {
2990
+ id: string;
2991
+ source_ref: {
2992
+ id?: string | undefined;
2993
+ model?: string | undefined;
2994
+ };
2964
2995
  created_on?: string | undefined;
2965
2996
  type: "other" | "shipping";
2966
2997
  tax_rate: number;
@@ -4007,7 +4038,7 @@ export declare class API {
4007
4038
  communication?: string | undefined;
4008
4039
  matching_number?: string | undefined;
4009
4040
  }[] | undefined;
4010
- status?: "draft" | "posted" | "cancelled" | "paid" | undefined;
4041
+ status?: "cancelled" | "draft" | "posted" | "paid" | undefined;
4011
4042
  lines: {
4012
4043
  line_number?: number | undefined;
4013
4044
  description: string;
@@ -4109,7 +4140,7 @@ export declare class API {
4109
4140
  communication?: string | undefined;
4110
4141
  matching_number?: string | undefined;
4111
4142
  }[] | undefined;
4112
- status?: "draft" | "posted" | "cancelled" | "paid" | undefined;
4143
+ status?: "cancelled" | "draft" | "posted" | "paid" | undefined;
4113
4144
  lines: {
4114
4145
  line_number?: number | undefined;
4115
4146
  description: string;
@@ -4160,7 +4191,7 @@ export declare class API {
4160
4191
  communication?: string | undefined;
4161
4192
  matching_number?: string | undefined;
4162
4193
  }[] | undefined;
4163
- status?: "draft" | "posted" | "cancelled" | "paid" | undefined;
4194
+ status?: "cancelled" | "draft" | "posted" | "paid" | undefined;
4164
4195
  lines: {
4165
4196
  line_number?: number | undefined;
4166
4197
  description: string;
@@ -4208,7 +4239,7 @@ export declare class API {
4208
4239
  communication?: string | undefined;
4209
4240
  matching_number?: string | undefined;
4210
4241
  }[] | undefined;
4211
- status?: "draft" | "posted" | "cancelled" | "paid" | undefined;
4242
+ status?: "cancelled" | "draft" | "posted" | "paid" | undefined;
4212
4243
  lines: {
4213
4244
  line_number?: number | undefined;
4214
4245
  description: string;
@@ -4256,7 +4287,7 @@ export declare class API {
4256
4287
  communication?: string | undefined;
4257
4288
  matching_number?: string | undefined;
4258
4289
  }[] | undefined;
4259
- status?: "draft" | "posted" | "cancelled" | "paid" | undefined;
4290
+ status?: "cancelled" | "draft" | "posted" | "paid" | undefined;
4260
4291
  lines: {
4261
4292
  line_number?: number | undefined;
4262
4293
  description: string;
@@ -4307,7 +4338,7 @@ export declare class API {
4307
4338
  communication?: string | undefined;
4308
4339
  matching_number?: string | undefined;
4309
4340
  }[] | undefined;
4310
- status?: "draft" | "posted" | "cancelled" | "paid" | undefined;
4341
+ status?: "cancelled" | "draft" | "posted" | "paid" | undefined;
4311
4342
  lines: {
4312
4343
  line_number?: number | undefined;
4313
4344
  description: string;
@@ -4572,14 +4603,14 @@ export declare class API {
4572
4603
  line_number?: number | undefined;
4573
4604
  description?: string | undefined;
4574
4605
  amount: number;
4575
- type: "general_account" | "customer_account" | "supplier_account";
4606
+ type: "customer_account" | "supplier_account" | "general_account";
4576
4607
  account_number: string;
4577
4608
  partner_id?: string | undefined;
4578
4609
  analytic_account?: string | undefined;
4579
4610
  }[];
4580
4611
  operation_date?: string | undefined;
4581
4612
  journal_id: string;
4582
- status: "draft" | "posted" | "cancelled" | "matched";
4613
+ status: "cancelled" | "draft" | "posted" | "matched";
4583
4614
  id: string;
4584
4615
  }[]>;
4585
4616
  createMiscOperation(operation: {
@@ -4590,7 +4621,7 @@ export declare class API {
4590
4621
  line_number?: number | undefined;
4591
4622
  description?: string | undefined;
4592
4623
  amount: number;
4593
- type: "general_account" | "customer_account" | "supplier_account";
4624
+ type: "customer_account" | "supplier_account" | "general_account";
4594
4625
  account_number: string;
4595
4626
  partner_id?: string | undefined;
4596
4627
  analytic_account?: string | undefined;
@@ -4608,14 +4639,14 @@ export declare class API {
4608
4639
  line_number?: number | undefined;
4609
4640
  description?: string | undefined;
4610
4641
  amount: number;
4611
- type: "general_account" | "customer_account" | "supplier_account";
4642
+ type: "customer_account" | "supplier_account" | "general_account";
4612
4643
  account_number: string;
4613
4644
  partner_id?: string | undefined;
4614
4645
  analytic_account?: string | undefined;
4615
4646
  }[];
4616
4647
  operation_date?: string | undefined;
4617
4648
  journal_id: string;
4618
- status: "draft" | "posted" | "cancelled" | "matched";
4649
+ status: "cancelled" | "draft" | "posted" | "matched";
4619
4650
  id: string;
4620
4651
  }>;
4621
4652
  getMiscOperation(operation_id: string, params: {
@@ -4628,14 +4659,14 @@ export declare class API {
4628
4659
  line_number?: number | undefined;
4629
4660
  description?: string | undefined;
4630
4661
  amount: number;
4631
- type: "general_account" | "customer_account" | "supplier_account";
4662
+ type: "customer_account" | "supplier_account" | "general_account";
4632
4663
  account_number: string;
4633
4664
  partner_id?: string | undefined;
4634
4665
  analytic_account?: string | undefined;
4635
4666
  }[];
4636
4667
  operation_date?: string | undefined;
4637
4668
  journal_id: string;
4638
- status: "draft" | "posted" | "cancelled" | "matched";
4669
+ status: "cancelled" | "draft" | "posted" | "matched";
4639
4670
  id: string;
4640
4671
  }>;
4641
4672
  attachPDF(invoice_id: string, attachment: {
@@ -4645,7 +4676,7 @@ export declare class API {
4645
4676
  folder_id?: string | undefined;
4646
4677
  } | undefined): import("../types/api").RequestData<{
4647
4678
  content: {
4648
- 'application/json': unknown;
4679
+ "application/json": unknown;
4649
4680
  };
4650
4681
  }>;
4651
4682
  getAttachments(params: {
@@ -4661,11 +4692,11 @@ export declare class API {
4661
4692
  number: string;
4662
4693
  name: string;
4663
4694
  active?: boolean | undefined;
4664
- type?: "vat" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | "other" | undefined;
4695
+ type?: "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | "vat" | "other" | undefined;
4665
4696
  }[]>;
4666
4697
  getBalanceOfAccounts(filter: {
4667
4698
  accounts: string[];
4668
- start: string;
4699
+ start?: string | undefined;
4669
4700
  end: string;
4670
4701
  }, params: {
4671
4702
  folder_id?: string | undefined;
@@ -4673,6 +4704,7 @@ export declare class API {
4673
4704
  size?: number | undefined;
4674
4705
  } | undefined): import("../types/api").RequestData<{
4675
4706
  account_number: string;
4707
+ account_name?: string | undefined;
4676
4708
  debit: number;
4677
4709
  credit: number;
4678
4710
  balance: number;
@@ -4697,7 +4729,7 @@ export declare class API {
4697
4729
  getOutstandings(params: {
4698
4730
  folder_id?: string | undefined;
4699
4731
  unposted_allowed: "true" | "false";
4700
- type: "client" | "supplier";
4732
+ type: "supplier" | "client";
4701
4733
  }): import("../types/api").RequestData<{
4702
4734
  id: string;
4703
4735
  number?: string | undefined;
@@ -4723,7 +4755,7 @@ export declare class API {
4723
4755
  reference?: string | undefined;
4724
4756
  number?: string | undefined;
4725
4757
  items: {
4726
- type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
4758
+ type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
4727
4759
  account_number: string;
4728
4760
  partner_id?: string | undefined;
4729
4761
  amount: number;
@@ -4742,7 +4774,7 @@ export declare class API {
4742
4774
  id: string;
4743
4775
  number: string;
4744
4776
  items: {
4745
- type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
4777
+ type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
4746
4778
  account_number: string;
4747
4779
  partner_id?: string | undefined;
4748
4780
  amount: number;
@@ -4758,7 +4790,7 @@ export declare class API {
4758
4790
  reference?: string | undefined;
4759
4791
  number?: string | undefined;
4760
4792
  items: {
4761
- account_type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
4793
+ account_type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
4762
4794
  account: string;
4763
4795
  amount: number;
4764
4796
  description?: string | undefined;
@@ -4776,7 +4808,7 @@ export declare class API {
4776
4808
  id: string;
4777
4809
  number: string;
4778
4810
  items: {
4779
- account_type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
4811
+ account_type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
4780
4812
  account: string;
4781
4813
  amount: number;
4782
4814
  description?: string | undefined;
@@ -4845,7 +4877,7 @@ export declare class API {
4845
4877
  currency_exchange_rate?: number | undefined;
4846
4878
  date: string;
4847
4879
  items: {
4848
- account_type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
4880
+ account_type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
4849
4881
  account: string;
4850
4882
  force_general_account?: string | undefined;
4851
4883
  prioritise_thirdparty_account?: boolean | undefined;
@@ -4912,7 +4944,7 @@ export declare class API {
4912
4944
  }>;
4913
4945
  invoicing: import("../types/api").ApiFor<{
4914
4946
  getInvoices(params: {
4915
- invoice_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all" | undefined;
4947
+ invoice_type?: "all" | "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | undefined;
4916
4948
  payment_status?: "all" | "paid" | "unpaid" | undefined;
4917
4949
  date_from?: string | undefined;
4918
4950
  date_to?: string | undefined;
@@ -4927,7 +4959,7 @@ export declare class API {
4927
4959
  };
4928
4960
  currency: string;
4929
4961
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
4930
- status: "draft" | "posted" | "cancelled" | "paid";
4962
+ status: "cancelled" | "draft" | "posted" | "paid";
4931
4963
  invoice_date: string;
4932
4964
  tax_amount: number;
4933
4965
  untaxed_amount: number;
@@ -4972,7 +5004,7 @@ export declare class API {
4972
5004
  };
4973
5005
  currency: string;
4974
5006
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
4975
- status: "draft" | "posted" | "cancelled" | "paid";
5007
+ status: "cancelled" | "draft" | "posted" | "paid";
4976
5008
  invoice_date: string;
4977
5009
  tax_amount: number;
4978
5010
  untaxed_amount: number;
@@ -5010,7 +5042,7 @@ export declare class API {
5010
5042
  createInvoice(invoice: {
5011
5043
  currency: string;
5012
5044
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
5013
- status: "draft" | "posted" | "cancelled" | "paid";
5045
+ status: "cancelled" | "draft" | "posted" | "paid";
5014
5046
  invoice_date: string;
5015
5047
  tax_amount: number;
5016
5048
  untaxed_amount: number;
@@ -5051,7 +5083,7 @@ export declare class API {
5051
5083
  };
5052
5084
  currency: string;
5053
5085
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
5054
- status: "draft" | "posted" | "cancelled" | "paid";
5086
+ status: "cancelled" | "draft" | "posted" | "paid";
5055
5087
  invoice_date: string;
5056
5088
  tax_amount: number;
5057
5089
  untaxed_amount: number;
@@ -5223,7 +5255,7 @@ export declare class API {
5223
5255
  } | undefined;
5224
5256
  }>;
5225
5257
  getContacts(params?: {
5226
- contact_type?: "all" | "supplier" | "prospect" | "customer" | undefined;
5258
+ contact_type?: "prospect" | "customer" | "supplier" | "all" | undefined;
5227
5259
  page?: number | undefined;
5228
5260
  size?: number | undefined;
5229
5261
  } | undefined): import("../types/api").RequestData<{
@@ -5253,7 +5285,7 @@ export declare class API {
5253
5285
  birthdate?: string | undefined;
5254
5286
  gender?: "H" | "F" | "N/A" | undefined;
5255
5287
  addresses?: {
5256
- address_type: "main" | "delivery" | "invoice" | "other";
5288
+ address_type: "other" | "main" | "delivery" | "invoice";
5257
5289
  name?: string | undefined;
5258
5290
  number?: string | undefined;
5259
5291
  box?: string | undefined;
@@ -5293,7 +5325,7 @@ export declare class API {
5293
5325
  birthdate?: string | undefined;
5294
5326
  gender?: "H" | "F" | "N/A" | undefined;
5295
5327
  addresses?: {
5296
- address_type: "main" | "delivery" | "invoice" | "other";
5328
+ address_type: "other" | "main" | "delivery" | "invoice";
5297
5329
  name?: string | undefined;
5298
5330
  number?: string | undefined;
5299
5331
  box?: string | undefined;
@@ -5328,7 +5360,7 @@ export declare class API {
5328
5360
  birthdate?: string | undefined;
5329
5361
  gender?: "H" | "F" | "N/A" | undefined;
5330
5362
  addresses?: {
5331
- address_type: "main" | "delivery" | "invoice" | "other";
5363
+ address_type: "other" | "main" | "delivery" | "invoice";
5332
5364
  name?: string | undefined;
5333
5365
  number?: string | undefined;
5334
5366
  box?: string | undefined;
@@ -5367,7 +5399,7 @@ export declare class API {
5367
5399
  birthdate?: string | undefined;
5368
5400
  gender?: "H" | "F" | "N/A" | undefined;
5369
5401
  addresses?: {
5370
- address_type: "main" | "delivery" | "invoice" | "other";
5402
+ address_type: "other" | "main" | "delivery" | "invoice";
5371
5403
  name?: string | undefined;
5372
5404
  number?: string | undefined;
5373
5405
  box?: string | undefined;
@@ -5683,7 +5715,7 @@ export declare class API {
5683
5715
  last_updated_on?: string | undefined;
5684
5716
  confirmed_on?: string | undefined;
5685
5717
  cancelled_on?: string | undefined;
5686
- status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
5718
+ status: "cancelled" | "draft" | "confirmed" | "shipped" | "refunded";
5687
5719
  discount_amount: number;
5688
5720
  untaxed_amount_without_fees: number;
5689
5721
  tax_amount_without_fees: number;
@@ -5715,6 +5747,11 @@ export declare class API {
5715
5747
  }[] | undefined;
5716
5748
  other?: number | undefined;
5717
5749
  shipping_refunds?: {
5750
+ id: string;
5751
+ source_ref: {
5752
+ id?: string | undefined;
5753
+ model?: string | undefined;
5754
+ };
5718
5755
  untaxed_amount: number;
5719
5756
  tax_amount: number;
5720
5757
  total: number;
@@ -5750,6 +5787,11 @@ export declare class API {
5750
5787
  gift_card?: boolean | undefined;
5751
5788
  }[];
5752
5789
  other_fees?: {
5790
+ id: string;
5791
+ source_ref: {
5792
+ id?: string | undefined;
5793
+ model?: string | undefined;
5794
+ };
5753
5795
  created_on?: string | undefined;
5754
5796
  type: "other" | "shipping";
5755
5797
  tax_rate: number;
@@ -5864,7 +5906,7 @@ export declare class API {
5864
5906
  last_updated_on?: string | undefined;
5865
5907
  confirmed_on?: string | undefined;
5866
5908
  cancelled_on?: string | undefined;
5867
- status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
5909
+ status: "cancelled" | "draft" | "confirmed" | "shipped" | "refunded";
5868
5910
  discount_amount: number;
5869
5911
  untaxed_amount_without_fees: number;
5870
5912
  tax_amount_without_fees: number;
@@ -5896,6 +5938,11 @@ export declare class API {
5896
5938
  }[] | undefined;
5897
5939
  other?: number | undefined;
5898
5940
  shipping_refunds?: {
5941
+ id: string;
5942
+ source_ref: {
5943
+ id?: string | undefined;
5944
+ model?: string | undefined;
5945
+ };
5899
5946
  untaxed_amount: number;
5900
5947
  tax_amount: number;
5901
5948
  total: number;
@@ -5931,6 +5978,11 @@ export declare class API {
5931
5978
  gift_card?: boolean | undefined;
5932
5979
  }[];
5933
5980
  other_fees?: {
5981
+ id: string;
5982
+ source_ref: {
5983
+ id?: string | undefined;
5984
+ model?: string | undefined;
5985
+ };
5934
5986
  created_on?: string | undefined;
5935
5987
  type: "other" | "shipping";
5936
5988
  tax_rate: number;
@@ -6004,7 +6056,7 @@ export declare class API {
6004
6056
  last_updated_on?: string | undefined;
6005
6057
  confirmed_on?: string | undefined;
6006
6058
  cancelled_on?: string | undefined;
6007
- status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
6059
+ status: "cancelled" | "draft" | "confirmed" | "shipped" | "refunded";
6008
6060
  discount_amount: number;
6009
6061
  untaxed_amount_without_fees: number;
6010
6062
  tax_amount_without_fees: number;
@@ -6036,6 +6088,11 @@ export declare class API {
6036
6088
  }[] | undefined;
6037
6089
  other?: number | undefined;
6038
6090
  shipping_refunds?: {
6091
+ id: string;
6092
+ source_ref: {
6093
+ id?: string | undefined;
6094
+ model?: string | undefined;
6095
+ };
6039
6096
  untaxed_amount: number;
6040
6097
  tax_amount: number;
6041
6098
  total: number;
@@ -6071,6 +6128,11 @@ export declare class API {
6071
6128
  gift_card?: boolean | undefined;
6072
6129
  }[];
6073
6130
  other_fees?: {
6131
+ id: string;
6132
+ source_ref: {
6133
+ id?: string | undefined;
6134
+ model?: string | undefined;
6135
+ };
6074
6136
  created_on?: string | undefined;
6075
6137
  type: "other" | "shipping";
6076
6138
  tax_rate: number;
@@ -7113,7 +7175,7 @@ export declare class API {
7113
7175
  communication?: string | undefined;
7114
7176
  matching_number?: string | undefined;
7115
7177
  }[] | undefined;
7116
- status?: "draft" | "posted" | "cancelled" | "paid" | undefined;
7178
+ status?: "cancelled" | "draft" | "posted" | "paid" | undefined;
7117
7179
  lines: {
7118
7180
  line_number?: number | undefined;
7119
7181
  description: string;
@@ -7215,7 +7277,7 @@ export declare class API {
7215
7277
  communication?: string | undefined;
7216
7278
  matching_number?: string | undefined;
7217
7279
  }[] | undefined;
7218
- status?: "draft" | "posted" | "cancelled" | "paid" | undefined;
7280
+ status?: "cancelled" | "draft" | "posted" | "paid" | undefined;
7219
7281
  lines: {
7220
7282
  line_number?: number | undefined;
7221
7283
  description: string;
@@ -7266,7 +7328,7 @@ export declare class API {
7266
7328
  communication?: string | undefined;
7267
7329
  matching_number?: string | undefined;
7268
7330
  }[] | undefined;
7269
- status?: "draft" | "posted" | "cancelled" | "paid" | undefined;
7331
+ status?: "cancelled" | "draft" | "posted" | "paid" | undefined;
7270
7332
  lines: {
7271
7333
  line_number?: number | undefined;
7272
7334
  description: string;
@@ -7314,7 +7376,7 @@ export declare class API {
7314
7376
  communication?: string | undefined;
7315
7377
  matching_number?: string | undefined;
7316
7378
  }[] | undefined;
7317
- status?: "draft" | "posted" | "cancelled" | "paid" | undefined;
7379
+ status?: "cancelled" | "draft" | "posted" | "paid" | undefined;
7318
7380
  lines: {
7319
7381
  line_number?: number | undefined;
7320
7382
  description: string;
@@ -7362,7 +7424,7 @@ export declare class API {
7362
7424
  communication?: string | undefined;
7363
7425
  matching_number?: string | undefined;
7364
7426
  }[] | undefined;
7365
- status?: "draft" | "posted" | "cancelled" | "paid" | undefined;
7427
+ status?: "cancelled" | "draft" | "posted" | "paid" | undefined;
7366
7428
  lines: {
7367
7429
  line_number?: number | undefined;
7368
7430
  description: string;
@@ -7413,7 +7475,7 @@ export declare class API {
7413
7475
  communication?: string | undefined;
7414
7476
  matching_number?: string | undefined;
7415
7477
  }[] | undefined;
7416
- status?: "draft" | "posted" | "cancelled" | "paid" | undefined;
7478
+ status?: "cancelled" | "draft" | "posted" | "paid" | undefined;
7417
7479
  lines: {
7418
7480
  line_number?: number | undefined;
7419
7481
  description: string;
@@ -7678,14 +7740,14 @@ export declare class API {
7678
7740
  line_number?: number | undefined;
7679
7741
  description?: string | undefined;
7680
7742
  amount: number;
7681
- type: "general_account" | "customer_account" | "supplier_account";
7743
+ type: "customer_account" | "supplier_account" | "general_account";
7682
7744
  account_number: string;
7683
7745
  partner_id?: string | undefined;
7684
7746
  analytic_account?: string | undefined;
7685
7747
  }[];
7686
7748
  operation_date?: string | undefined;
7687
7749
  journal_id: string;
7688
- status: "draft" | "posted" | "cancelled" | "matched";
7750
+ status: "cancelled" | "draft" | "posted" | "matched";
7689
7751
  id: string;
7690
7752
  }[]>;
7691
7753
  createMiscOperation(operation: {
@@ -7696,7 +7758,7 @@ export declare class API {
7696
7758
  line_number?: number | undefined;
7697
7759
  description?: string | undefined;
7698
7760
  amount: number;
7699
- type: "general_account" | "customer_account" | "supplier_account";
7761
+ type: "customer_account" | "supplier_account" | "general_account";
7700
7762
  account_number: string;
7701
7763
  partner_id?: string | undefined;
7702
7764
  analytic_account?: string | undefined;
@@ -7714,14 +7776,14 @@ export declare class API {
7714
7776
  line_number?: number | undefined;
7715
7777
  description?: string | undefined;
7716
7778
  amount: number;
7717
- type: "general_account" | "customer_account" | "supplier_account";
7779
+ type: "customer_account" | "supplier_account" | "general_account";
7718
7780
  account_number: string;
7719
7781
  partner_id?: string | undefined;
7720
7782
  analytic_account?: string | undefined;
7721
7783
  }[];
7722
7784
  operation_date?: string | undefined;
7723
7785
  journal_id: string;
7724
- status: "draft" | "posted" | "cancelled" | "matched";
7786
+ status: "cancelled" | "draft" | "posted" | "matched";
7725
7787
  id: string;
7726
7788
  }>;
7727
7789
  getMiscOperation(operation_id: string, params: {
@@ -7734,14 +7796,14 @@ export declare class API {
7734
7796
  line_number?: number | undefined;
7735
7797
  description?: string | undefined;
7736
7798
  amount: number;
7737
- type: "general_account" | "customer_account" | "supplier_account";
7799
+ type: "customer_account" | "supplier_account" | "general_account";
7738
7800
  account_number: string;
7739
7801
  partner_id?: string | undefined;
7740
7802
  analytic_account?: string | undefined;
7741
7803
  }[];
7742
7804
  operation_date?: string | undefined;
7743
7805
  journal_id: string;
7744
- status: "draft" | "posted" | "cancelled" | "matched";
7806
+ status: "cancelled" | "draft" | "posted" | "matched";
7745
7807
  id: string;
7746
7808
  }>;
7747
7809
  attachPDF(invoice_id: string, attachment: {
@@ -7751,7 +7813,7 @@ export declare class API {
7751
7813
  folder_id?: string | undefined;
7752
7814
  } | undefined): import("../types/api").RequestData<{
7753
7815
  content: {
7754
- 'application/json': unknown;
7816
+ "application/json": unknown;
7755
7817
  };
7756
7818
  }>;
7757
7819
  getAttachments(params: {
@@ -7767,11 +7829,11 @@ export declare class API {
7767
7829
  number: string;
7768
7830
  name: string;
7769
7831
  active?: boolean | undefined;
7770
- type?: "vat" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | "other" | undefined;
7832
+ type?: "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | "vat" | "other" | undefined;
7771
7833
  }[]>;
7772
7834
  getBalanceOfAccounts(filter: {
7773
7835
  accounts: string[];
7774
- start: string;
7836
+ start?: string | undefined;
7775
7837
  end: string;
7776
7838
  }, params: {
7777
7839
  folder_id?: string | undefined;
@@ -7779,6 +7841,7 @@ export declare class API {
7779
7841
  size?: number | undefined;
7780
7842
  } | undefined): import("../types/api").RequestData<{
7781
7843
  account_number: string;
7844
+ account_name?: string | undefined;
7782
7845
  debit: number;
7783
7846
  credit: number;
7784
7847
  balance: number;
@@ -7803,7 +7866,7 @@ export declare class API {
7803
7866
  getOutstandings(params: {
7804
7867
  folder_id?: string | undefined;
7805
7868
  unposted_allowed: "true" | "false";
7806
- type: "client" | "supplier";
7869
+ type: "supplier" | "client";
7807
7870
  }): import("../types/api").RequestData<{
7808
7871
  id: string;
7809
7872
  number?: string | undefined;
@@ -7829,7 +7892,7 @@ export declare class API {
7829
7892
  reference?: string | undefined;
7830
7893
  number?: string | undefined;
7831
7894
  items: {
7832
- type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
7895
+ type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
7833
7896
  account_number: string;
7834
7897
  partner_id?: string | undefined;
7835
7898
  amount: number;
@@ -7848,7 +7911,7 @@ export declare class API {
7848
7911
  id: string;
7849
7912
  number: string;
7850
7913
  items: {
7851
- type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
7914
+ type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
7852
7915
  account_number: string;
7853
7916
  partner_id?: string | undefined;
7854
7917
  amount: number;
@@ -7864,7 +7927,7 @@ export declare class API {
7864
7927
  reference?: string | undefined;
7865
7928
  number?: string | undefined;
7866
7929
  items: {
7867
- account_type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
7930
+ account_type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
7868
7931
  account: string;
7869
7932
  amount: number;
7870
7933
  description?: string | undefined;
@@ -7882,7 +7945,7 @@ export declare class API {
7882
7945
  id: string;
7883
7946
  number: string;
7884
7947
  items: {
7885
- account_type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
7948
+ account_type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
7886
7949
  account: string;
7887
7950
  amount: number;
7888
7951
  description?: string | undefined;
@@ -7951,7 +8014,7 @@ export declare class API {
7951
8014
  currency_exchange_rate?: number | undefined;
7952
8015
  date: string;
7953
8016
  items: {
7954
- account_type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
8017
+ account_type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
7955
8018
  account: string;
7956
8019
  force_general_account?: string | undefined;
7957
8020
  prioritise_thirdparty_account?: boolean | undefined;
@@ -8018,7 +8081,7 @@ export declare class API {
8018
8081
  }>;
8019
8082
  invoicing: import("../types/api").ApiFor<{
8020
8083
  getInvoices(params: {
8021
- invoice_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all" | undefined;
8084
+ invoice_type?: "all" | "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | undefined;
8022
8085
  payment_status?: "all" | "paid" | "unpaid" | undefined;
8023
8086
  date_from?: string | undefined;
8024
8087
  date_to?: string | undefined;
@@ -8033,7 +8096,7 @@ export declare class API {
8033
8096
  };
8034
8097
  currency: string;
8035
8098
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
8036
- status: "draft" | "posted" | "cancelled" | "paid";
8099
+ status: "cancelled" | "draft" | "posted" | "paid";
8037
8100
  invoice_date: string;
8038
8101
  tax_amount: number;
8039
8102
  untaxed_amount: number;
@@ -8078,7 +8141,7 @@ export declare class API {
8078
8141
  };
8079
8142
  currency: string;
8080
8143
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
8081
- status: "draft" | "posted" | "cancelled" | "paid";
8144
+ status: "cancelled" | "draft" | "posted" | "paid";
8082
8145
  invoice_date: string;
8083
8146
  tax_amount: number;
8084
8147
  untaxed_amount: number;
@@ -8116,7 +8179,7 @@ export declare class API {
8116
8179
  createInvoice(invoice: {
8117
8180
  currency: string;
8118
8181
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
8119
- status: "draft" | "posted" | "cancelled" | "paid";
8182
+ status: "cancelled" | "draft" | "posted" | "paid";
8120
8183
  invoice_date: string;
8121
8184
  tax_amount: number;
8122
8185
  untaxed_amount: number;
@@ -8157,7 +8220,7 @@ export declare class API {
8157
8220
  };
8158
8221
  currency: string;
8159
8222
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
8160
- status: "draft" | "posted" | "cancelled" | "paid";
8223
+ status: "cancelled" | "draft" | "posted" | "paid";
8161
8224
  invoice_date: string;
8162
8225
  tax_amount: number;
8163
8226
  untaxed_amount: number;
@@ -8329,7 +8392,7 @@ export declare class API {
8329
8392
  } | undefined;
8330
8393
  }>;
8331
8394
  getContacts(params?: {
8332
- contact_type?: "all" | "supplier" | "prospect" | "customer" | undefined;
8395
+ contact_type?: "prospect" | "customer" | "supplier" | "all" | undefined;
8333
8396
  page?: number | undefined;
8334
8397
  size?: number | undefined;
8335
8398
  } | undefined): import("../types/api").RequestData<{
@@ -8359,7 +8422,7 @@ export declare class API {
8359
8422
  birthdate?: string | undefined;
8360
8423
  gender?: "H" | "F" | "N/A" | undefined;
8361
8424
  addresses?: {
8362
- address_type: "main" | "delivery" | "invoice" | "other";
8425
+ address_type: "other" | "main" | "delivery" | "invoice";
8363
8426
  name?: string | undefined;
8364
8427
  number?: string | undefined;
8365
8428
  box?: string | undefined;
@@ -8399,7 +8462,7 @@ export declare class API {
8399
8462
  birthdate?: string | undefined;
8400
8463
  gender?: "H" | "F" | "N/A" | undefined;
8401
8464
  addresses?: {
8402
- address_type: "main" | "delivery" | "invoice" | "other";
8465
+ address_type: "other" | "main" | "delivery" | "invoice";
8403
8466
  name?: string | undefined;
8404
8467
  number?: string | undefined;
8405
8468
  box?: string | undefined;
@@ -8434,7 +8497,7 @@ export declare class API {
8434
8497
  birthdate?: string | undefined;
8435
8498
  gender?: "H" | "F" | "N/A" | undefined;
8436
8499
  addresses?: {
8437
- address_type: "main" | "delivery" | "invoice" | "other";
8500
+ address_type: "other" | "main" | "delivery" | "invoice";
8438
8501
  name?: string | undefined;
8439
8502
  number?: string | undefined;
8440
8503
  box?: string | undefined;
@@ -8473,7 +8536,7 @@ export declare class API {
8473
8536
  birthdate?: string | undefined;
8474
8537
  gender?: "H" | "F" | "N/A" | undefined;
8475
8538
  addresses?: {
8476
- address_type: "main" | "delivery" | "invoice" | "other";
8539
+ address_type: "other" | "main" | "delivery" | "invoice";
8477
8540
  name?: string | undefined;
8478
8541
  number?: string | undefined;
8479
8542
  box?: string | undefined;
@@ -8789,7 +8852,7 @@ export declare class API {
8789
8852
  last_updated_on?: string | undefined;
8790
8853
  confirmed_on?: string | undefined;
8791
8854
  cancelled_on?: string | undefined;
8792
- status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
8855
+ status: "cancelled" | "draft" | "confirmed" | "shipped" | "refunded";
8793
8856
  discount_amount: number;
8794
8857
  untaxed_amount_without_fees: number;
8795
8858
  tax_amount_without_fees: number;
@@ -8821,6 +8884,11 @@ export declare class API {
8821
8884
  }[] | undefined;
8822
8885
  other?: number | undefined;
8823
8886
  shipping_refunds?: {
8887
+ id: string;
8888
+ source_ref: {
8889
+ id?: string | undefined;
8890
+ model?: string | undefined;
8891
+ };
8824
8892
  untaxed_amount: number;
8825
8893
  tax_amount: number;
8826
8894
  total: number;
@@ -8856,6 +8924,11 @@ export declare class API {
8856
8924
  gift_card?: boolean | undefined;
8857
8925
  }[];
8858
8926
  other_fees?: {
8927
+ id: string;
8928
+ source_ref: {
8929
+ id?: string | undefined;
8930
+ model?: string | undefined;
8931
+ };
8859
8932
  created_on?: string | undefined;
8860
8933
  type: "other" | "shipping";
8861
8934
  tax_rate: number;
@@ -8970,7 +9043,7 @@ export declare class API {
8970
9043
  last_updated_on?: string | undefined;
8971
9044
  confirmed_on?: string | undefined;
8972
9045
  cancelled_on?: string | undefined;
8973
- status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
9046
+ status: "cancelled" | "draft" | "confirmed" | "shipped" | "refunded";
8974
9047
  discount_amount: number;
8975
9048
  untaxed_amount_without_fees: number;
8976
9049
  tax_amount_without_fees: number;
@@ -9002,6 +9075,11 @@ export declare class API {
9002
9075
  }[] | undefined;
9003
9076
  other?: number | undefined;
9004
9077
  shipping_refunds?: {
9078
+ id: string;
9079
+ source_ref: {
9080
+ id?: string | undefined;
9081
+ model?: string | undefined;
9082
+ };
9005
9083
  untaxed_amount: number;
9006
9084
  tax_amount: number;
9007
9085
  total: number;
@@ -9037,6 +9115,11 @@ export declare class API {
9037
9115
  gift_card?: boolean | undefined;
9038
9116
  }[];
9039
9117
  other_fees?: {
9118
+ id: string;
9119
+ source_ref: {
9120
+ id?: string | undefined;
9121
+ model?: string | undefined;
9122
+ };
9040
9123
  created_on?: string | undefined;
9041
9124
  type: "other" | "shipping";
9042
9125
  tax_rate: number;
@@ -9110,7 +9193,7 @@ export declare class API {
9110
9193
  last_updated_on?: string | undefined;
9111
9194
  confirmed_on?: string | undefined;
9112
9195
  cancelled_on?: string | undefined;
9113
- status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
9196
+ status: "cancelled" | "draft" | "confirmed" | "shipped" | "refunded";
9114
9197
  discount_amount: number;
9115
9198
  untaxed_amount_without_fees: number;
9116
9199
  tax_amount_without_fees: number;
@@ -9142,6 +9225,11 @@ export declare class API {
9142
9225
  }[] | undefined;
9143
9226
  other?: number | undefined;
9144
9227
  shipping_refunds?: {
9228
+ id: string;
9229
+ source_ref: {
9230
+ id?: string | undefined;
9231
+ model?: string | undefined;
9232
+ };
9145
9233
  untaxed_amount: number;
9146
9234
  tax_amount: number;
9147
9235
  total: number;
@@ -9177,6 +9265,11 @@ export declare class API {
9177
9265
  gift_card?: boolean | undefined;
9178
9266
  }[];
9179
9267
  other_fees?: {
9268
+ id: string;
9269
+ source_ref: {
9270
+ id?: string | undefined;
9271
+ model?: string | undefined;
9272
+ };
9180
9273
  created_on?: string | undefined;
9181
9274
  type: "other" | "shipping";
9182
9275
  tax_rate: number;
@@ -10219,7 +10312,7 @@ export declare class API {
10219
10312
  communication?: string | undefined;
10220
10313
  matching_number?: string | undefined;
10221
10314
  }[] | undefined;
10222
- status?: "draft" | "posted" | "cancelled" | "paid" | undefined;
10315
+ status?: "cancelled" | "draft" | "posted" | "paid" | undefined;
10223
10316
  lines: {
10224
10317
  line_number?: number | undefined;
10225
10318
  description: string;
@@ -10321,7 +10414,7 @@ export declare class API {
10321
10414
  communication?: string | undefined;
10322
10415
  matching_number?: string | undefined;
10323
10416
  }[] | undefined;
10324
- status?: "draft" | "posted" | "cancelled" | "paid" | undefined;
10417
+ status?: "cancelled" | "draft" | "posted" | "paid" | undefined;
10325
10418
  lines: {
10326
10419
  line_number?: number | undefined;
10327
10420
  description: string;
@@ -10372,7 +10465,7 @@ export declare class API {
10372
10465
  communication?: string | undefined;
10373
10466
  matching_number?: string | undefined;
10374
10467
  }[] | undefined;
10375
- status?: "draft" | "posted" | "cancelled" | "paid" | undefined;
10468
+ status?: "cancelled" | "draft" | "posted" | "paid" | undefined;
10376
10469
  lines: {
10377
10470
  line_number?: number | undefined;
10378
10471
  description: string;
@@ -10420,7 +10513,7 @@ export declare class API {
10420
10513
  communication?: string | undefined;
10421
10514
  matching_number?: string | undefined;
10422
10515
  }[] | undefined;
10423
- status?: "draft" | "posted" | "cancelled" | "paid" | undefined;
10516
+ status?: "cancelled" | "draft" | "posted" | "paid" | undefined;
10424
10517
  lines: {
10425
10518
  line_number?: number | undefined;
10426
10519
  description: string;
@@ -10468,7 +10561,7 @@ export declare class API {
10468
10561
  communication?: string | undefined;
10469
10562
  matching_number?: string | undefined;
10470
10563
  }[] | undefined;
10471
- status?: "draft" | "posted" | "cancelled" | "paid" | undefined;
10564
+ status?: "cancelled" | "draft" | "posted" | "paid" | undefined;
10472
10565
  lines: {
10473
10566
  line_number?: number | undefined;
10474
10567
  description: string;
@@ -10519,7 +10612,7 @@ export declare class API {
10519
10612
  communication?: string | undefined;
10520
10613
  matching_number?: string | undefined;
10521
10614
  }[] | undefined;
10522
- status?: "draft" | "posted" | "cancelled" | "paid" | undefined;
10615
+ status?: "cancelled" | "draft" | "posted" | "paid" | undefined;
10523
10616
  lines: {
10524
10617
  line_number?: number | undefined;
10525
10618
  description: string;
@@ -10784,14 +10877,14 @@ export declare class API {
10784
10877
  line_number?: number | undefined;
10785
10878
  description?: string | undefined;
10786
10879
  amount: number;
10787
- type: "general_account" | "customer_account" | "supplier_account";
10880
+ type: "customer_account" | "supplier_account" | "general_account";
10788
10881
  account_number: string;
10789
10882
  partner_id?: string | undefined;
10790
10883
  analytic_account?: string | undefined;
10791
10884
  }[];
10792
10885
  operation_date?: string | undefined;
10793
10886
  journal_id: string;
10794
- status: "draft" | "posted" | "cancelled" | "matched";
10887
+ status: "cancelled" | "draft" | "posted" | "matched";
10795
10888
  id: string;
10796
10889
  }[]>;
10797
10890
  createMiscOperation(operation: {
@@ -10802,7 +10895,7 @@ export declare class API {
10802
10895
  line_number?: number | undefined;
10803
10896
  description?: string | undefined;
10804
10897
  amount: number;
10805
- type: "general_account" | "customer_account" | "supplier_account";
10898
+ type: "customer_account" | "supplier_account" | "general_account";
10806
10899
  account_number: string;
10807
10900
  partner_id?: string | undefined;
10808
10901
  analytic_account?: string | undefined;
@@ -10820,14 +10913,14 @@ export declare class API {
10820
10913
  line_number?: number | undefined;
10821
10914
  description?: string | undefined;
10822
10915
  amount: number;
10823
- type: "general_account" | "customer_account" | "supplier_account";
10916
+ type: "customer_account" | "supplier_account" | "general_account";
10824
10917
  account_number: string;
10825
10918
  partner_id?: string | undefined;
10826
10919
  analytic_account?: string | undefined;
10827
10920
  }[];
10828
10921
  operation_date?: string | undefined;
10829
10922
  journal_id: string;
10830
- status: "draft" | "posted" | "cancelled" | "matched";
10923
+ status: "cancelled" | "draft" | "posted" | "matched";
10831
10924
  id: string;
10832
10925
  }>;
10833
10926
  getMiscOperation(operation_id: string, params: {
@@ -10840,14 +10933,14 @@ export declare class API {
10840
10933
  line_number?: number | undefined;
10841
10934
  description?: string | undefined;
10842
10935
  amount: number;
10843
- type: "general_account" | "customer_account" | "supplier_account";
10936
+ type: "customer_account" | "supplier_account" | "general_account";
10844
10937
  account_number: string;
10845
10938
  partner_id?: string | undefined;
10846
10939
  analytic_account?: string | undefined;
10847
10940
  }[];
10848
10941
  operation_date?: string | undefined;
10849
10942
  journal_id: string;
10850
- status: "draft" | "posted" | "cancelled" | "matched";
10943
+ status: "cancelled" | "draft" | "posted" | "matched";
10851
10944
  id: string;
10852
10945
  }>;
10853
10946
  attachPDF(invoice_id: string, attachment: {
@@ -10857,7 +10950,7 @@ export declare class API {
10857
10950
  folder_id?: string | undefined;
10858
10951
  } | undefined): import("../types/api").RequestData<{
10859
10952
  content: {
10860
- 'application/json': unknown;
10953
+ "application/json": unknown;
10861
10954
  };
10862
10955
  }>;
10863
10956
  getAttachments(params: {
@@ -10873,11 +10966,11 @@ export declare class API {
10873
10966
  number: string;
10874
10967
  name: string;
10875
10968
  active?: boolean | undefined;
10876
- type?: "vat" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | "other" | undefined;
10969
+ type?: "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | "vat" | "other" | undefined;
10877
10970
  }[]>;
10878
10971
  getBalanceOfAccounts(filter: {
10879
10972
  accounts: string[];
10880
- start: string;
10973
+ start?: string | undefined;
10881
10974
  end: string;
10882
10975
  }, params: {
10883
10976
  folder_id?: string | undefined;
@@ -10885,6 +10978,7 @@ export declare class API {
10885
10978
  size?: number | undefined;
10886
10979
  } | undefined): import("../types/api").RequestData<{
10887
10980
  account_number: string;
10981
+ account_name?: string | undefined;
10888
10982
  debit: number;
10889
10983
  credit: number;
10890
10984
  balance: number;
@@ -10909,7 +11003,7 @@ export declare class API {
10909
11003
  getOutstandings(params: {
10910
11004
  folder_id?: string | undefined;
10911
11005
  unposted_allowed: "true" | "false";
10912
- type: "client" | "supplier";
11006
+ type: "supplier" | "client";
10913
11007
  }): import("../types/api").RequestData<{
10914
11008
  id: string;
10915
11009
  number?: string | undefined;
@@ -10935,7 +11029,7 @@ export declare class API {
10935
11029
  reference?: string | undefined;
10936
11030
  number?: string | undefined;
10937
11031
  items: {
10938
- type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
11032
+ type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
10939
11033
  account_number: string;
10940
11034
  partner_id?: string | undefined;
10941
11035
  amount: number;
@@ -10954,7 +11048,7 @@ export declare class API {
10954
11048
  id: string;
10955
11049
  number: string;
10956
11050
  items: {
10957
- type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
11051
+ type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
10958
11052
  account_number: string;
10959
11053
  partner_id?: string | undefined;
10960
11054
  amount: number;
@@ -10970,7 +11064,7 @@ export declare class API {
10970
11064
  reference?: string | undefined;
10971
11065
  number?: string | undefined;
10972
11066
  items: {
10973
- account_type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
11067
+ account_type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
10974
11068
  account: string;
10975
11069
  amount: number;
10976
11070
  description?: string | undefined;
@@ -10988,7 +11082,7 @@ export declare class API {
10988
11082
  id: string;
10989
11083
  number: string;
10990
11084
  items: {
10991
- account_type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
11085
+ account_type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
10992
11086
  account: string;
10993
11087
  amount: number;
10994
11088
  description?: string | undefined;
@@ -11057,7 +11151,7 @@ export declare class API {
11057
11151
  currency_exchange_rate?: number | undefined;
11058
11152
  date: string;
11059
11153
  items: {
11060
- account_type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
11154
+ account_type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
11061
11155
  account: string;
11062
11156
  force_general_account?: string | undefined;
11063
11157
  prioritise_thirdparty_account?: boolean | undefined;
@@ -11124,7 +11218,7 @@ export declare class API {
11124
11218
  }>;
11125
11219
  invoicing: import("../types/api").ApiFor<{
11126
11220
  getInvoices(params: {
11127
- invoice_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all" | undefined;
11221
+ invoice_type?: "all" | "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | undefined;
11128
11222
  payment_status?: "all" | "paid" | "unpaid" | undefined;
11129
11223
  date_from?: string | undefined;
11130
11224
  date_to?: string | undefined;
@@ -11139,7 +11233,7 @@ export declare class API {
11139
11233
  };
11140
11234
  currency: string;
11141
11235
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
11142
- status: "draft" | "posted" | "cancelled" | "paid";
11236
+ status: "cancelled" | "draft" | "posted" | "paid";
11143
11237
  invoice_date: string;
11144
11238
  tax_amount: number;
11145
11239
  untaxed_amount: number;
@@ -11184,7 +11278,7 @@ export declare class API {
11184
11278
  };
11185
11279
  currency: string;
11186
11280
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
11187
- status: "draft" | "posted" | "cancelled" | "paid";
11281
+ status: "cancelled" | "draft" | "posted" | "paid";
11188
11282
  invoice_date: string;
11189
11283
  tax_amount: number;
11190
11284
  untaxed_amount: number;
@@ -11222,7 +11316,7 @@ export declare class API {
11222
11316
  createInvoice(invoice: {
11223
11317
  currency: string;
11224
11318
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
11225
- status: "draft" | "posted" | "cancelled" | "paid";
11319
+ status: "cancelled" | "draft" | "posted" | "paid";
11226
11320
  invoice_date: string;
11227
11321
  tax_amount: number;
11228
11322
  untaxed_amount: number;
@@ -11263,7 +11357,7 @@ export declare class API {
11263
11357
  };
11264
11358
  currency: string;
11265
11359
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
11266
- status: "draft" | "posted" | "cancelled" | "paid";
11360
+ status: "cancelled" | "draft" | "posted" | "paid";
11267
11361
  invoice_date: string;
11268
11362
  tax_amount: number;
11269
11363
  untaxed_amount: number;
@@ -11435,7 +11529,7 @@ export declare class API {
11435
11529
  } | undefined;
11436
11530
  }>;
11437
11531
  getContacts(params?: {
11438
- contact_type?: "all" | "supplier" | "prospect" | "customer" | undefined;
11532
+ contact_type?: "prospect" | "customer" | "supplier" | "all" | undefined;
11439
11533
  page?: number | undefined;
11440
11534
  size?: number | undefined;
11441
11535
  } | undefined): import("../types/api").RequestData<{
@@ -11465,7 +11559,7 @@ export declare class API {
11465
11559
  birthdate?: string | undefined;
11466
11560
  gender?: "H" | "F" | "N/A" | undefined;
11467
11561
  addresses?: {
11468
- address_type: "main" | "delivery" | "invoice" | "other";
11562
+ address_type: "other" | "main" | "delivery" | "invoice";
11469
11563
  name?: string | undefined;
11470
11564
  number?: string | undefined;
11471
11565
  box?: string | undefined;
@@ -11505,7 +11599,7 @@ export declare class API {
11505
11599
  birthdate?: string | undefined;
11506
11600
  gender?: "H" | "F" | "N/A" | undefined;
11507
11601
  addresses?: {
11508
- address_type: "main" | "delivery" | "invoice" | "other";
11602
+ address_type: "other" | "main" | "delivery" | "invoice";
11509
11603
  name?: string | undefined;
11510
11604
  number?: string | undefined;
11511
11605
  box?: string | undefined;
@@ -11540,7 +11634,7 @@ export declare class API {
11540
11634
  birthdate?: string | undefined;
11541
11635
  gender?: "H" | "F" | "N/A" | undefined;
11542
11636
  addresses?: {
11543
- address_type: "main" | "delivery" | "invoice" | "other";
11637
+ address_type: "other" | "main" | "delivery" | "invoice";
11544
11638
  name?: string | undefined;
11545
11639
  number?: string | undefined;
11546
11640
  box?: string | undefined;
@@ -11579,7 +11673,7 @@ export declare class API {
11579
11673
  birthdate?: string | undefined;
11580
11674
  gender?: "H" | "F" | "N/A" | undefined;
11581
11675
  addresses?: {
11582
- address_type: "main" | "delivery" | "invoice" | "other";
11676
+ address_type: "other" | "main" | "delivery" | "invoice";
11583
11677
  name?: string | undefined;
11584
11678
  number?: string | undefined;
11585
11679
  box?: string | undefined;
@@ -11895,7 +11989,7 @@ export declare class API {
11895
11989
  last_updated_on?: string | undefined;
11896
11990
  confirmed_on?: string | undefined;
11897
11991
  cancelled_on?: string | undefined;
11898
- status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
11992
+ status: "cancelled" | "draft" | "confirmed" | "shipped" | "refunded";
11899
11993
  discount_amount: number;
11900
11994
  untaxed_amount_without_fees: number;
11901
11995
  tax_amount_without_fees: number;
@@ -11927,6 +12021,11 @@ export declare class API {
11927
12021
  }[] | undefined;
11928
12022
  other?: number | undefined;
11929
12023
  shipping_refunds?: {
12024
+ id: string;
12025
+ source_ref: {
12026
+ id?: string | undefined;
12027
+ model?: string | undefined;
12028
+ };
11930
12029
  untaxed_amount: number;
11931
12030
  tax_amount: number;
11932
12031
  total: number;
@@ -11962,6 +12061,11 @@ export declare class API {
11962
12061
  gift_card?: boolean | undefined;
11963
12062
  }[];
11964
12063
  other_fees?: {
12064
+ id: string;
12065
+ source_ref: {
12066
+ id?: string | undefined;
12067
+ model?: string | undefined;
12068
+ };
11965
12069
  created_on?: string | undefined;
11966
12070
  type: "other" | "shipping";
11967
12071
  tax_rate: number;
@@ -12076,7 +12180,7 @@ export declare class API {
12076
12180
  last_updated_on?: string | undefined;
12077
12181
  confirmed_on?: string | undefined;
12078
12182
  cancelled_on?: string | undefined;
12079
- status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
12183
+ status: "cancelled" | "draft" | "confirmed" | "shipped" | "refunded";
12080
12184
  discount_amount: number;
12081
12185
  untaxed_amount_without_fees: number;
12082
12186
  tax_amount_without_fees: number;
@@ -12108,6 +12212,11 @@ export declare class API {
12108
12212
  }[] | undefined;
12109
12213
  other?: number | undefined;
12110
12214
  shipping_refunds?: {
12215
+ id: string;
12216
+ source_ref: {
12217
+ id?: string | undefined;
12218
+ model?: string | undefined;
12219
+ };
12111
12220
  untaxed_amount: number;
12112
12221
  tax_amount: number;
12113
12222
  total: number;
@@ -12143,6 +12252,11 @@ export declare class API {
12143
12252
  gift_card?: boolean | undefined;
12144
12253
  }[];
12145
12254
  other_fees?: {
12255
+ id: string;
12256
+ source_ref: {
12257
+ id?: string | undefined;
12258
+ model?: string | undefined;
12259
+ };
12146
12260
  created_on?: string | undefined;
12147
12261
  type: "other" | "shipping";
12148
12262
  tax_rate: number;
@@ -12216,7 +12330,7 @@ export declare class API {
12216
12330
  last_updated_on?: string | undefined;
12217
12331
  confirmed_on?: string | undefined;
12218
12332
  cancelled_on?: string | undefined;
12219
- status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
12333
+ status: "cancelled" | "draft" | "confirmed" | "shipped" | "refunded";
12220
12334
  discount_amount: number;
12221
12335
  untaxed_amount_without_fees: number;
12222
12336
  tax_amount_without_fees: number;
@@ -12248,6 +12362,11 @@ export declare class API {
12248
12362
  }[] | undefined;
12249
12363
  other?: number | undefined;
12250
12364
  shipping_refunds?: {
12365
+ id: string;
12366
+ source_ref: {
12367
+ id?: string | undefined;
12368
+ model?: string | undefined;
12369
+ };
12251
12370
  untaxed_amount: number;
12252
12371
  tax_amount: number;
12253
12372
  total: number;
@@ -12283,6 +12402,11 @@ export declare class API {
12283
12402
  gift_card?: boolean | undefined;
12284
12403
  }[];
12285
12404
  other_fees?: {
12405
+ id: string;
12406
+ source_ref: {
12407
+ id?: string | undefined;
12408
+ model?: string | undefined;
12409
+ };
12286
12410
  created_on?: string | undefined;
12287
12411
  type: "other" | "shipping";
12288
12412
  tax_rate: number;
@@ -13329,7 +13453,7 @@ export declare class API {
13329
13453
  communication?: string | undefined;
13330
13454
  matching_number?: string | undefined;
13331
13455
  }[] | undefined;
13332
- status?: "draft" | "posted" | "cancelled" | "paid" | undefined;
13456
+ status?: "cancelled" | "draft" | "posted" | "paid" | undefined;
13333
13457
  lines: {
13334
13458
  line_number?: number | undefined;
13335
13459
  description: string;
@@ -13431,7 +13555,7 @@ export declare class API {
13431
13555
  communication?: string | undefined;
13432
13556
  matching_number?: string | undefined;
13433
13557
  }[] | undefined;
13434
- status?: "draft" | "posted" | "cancelled" | "paid" | undefined;
13558
+ status?: "cancelled" | "draft" | "posted" | "paid" | undefined;
13435
13559
  lines: {
13436
13560
  line_number?: number | undefined;
13437
13561
  description: string;
@@ -13482,7 +13606,7 @@ export declare class API {
13482
13606
  communication?: string | undefined;
13483
13607
  matching_number?: string | undefined;
13484
13608
  }[] | undefined;
13485
- status?: "draft" | "posted" | "cancelled" | "paid" | undefined;
13609
+ status?: "cancelled" | "draft" | "posted" | "paid" | undefined;
13486
13610
  lines: {
13487
13611
  line_number?: number | undefined;
13488
13612
  description: string;
@@ -13530,7 +13654,7 @@ export declare class API {
13530
13654
  communication?: string | undefined;
13531
13655
  matching_number?: string | undefined;
13532
13656
  }[] | undefined;
13533
- status?: "draft" | "posted" | "cancelled" | "paid" | undefined;
13657
+ status?: "cancelled" | "draft" | "posted" | "paid" | undefined;
13534
13658
  lines: {
13535
13659
  line_number?: number | undefined;
13536
13660
  description: string;
@@ -13578,7 +13702,7 @@ export declare class API {
13578
13702
  communication?: string | undefined;
13579
13703
  matching_number?: string | undefined;
13580
13704
  }[] | undefined;
13581
- status?: "draft" | "posted" | "cancelled" | "paid" | undefined;
13705
+ status?: "cancelled" | "draft" | "posted" | "paid" | undefined;
13582
13706
  lines: {
13583
13707
  line_number?: number | undefined;
13584
13708
  description: string;
@@ -13629,7 +13753,7 @@ export declare class API {
13629
13753
  communication?: string | undefined;
13630
13754
  matching_number?: string | undefined;
13631
13755
  }[] | undefined;
13632
- status?: "draft" | "posted" | "cancelled" | "paid" | undefined;
13756
+ status?: "cancelled" | "draft" | "posted" | "paid" | undefined;
13633
13757
  lines: {
13634
13758
  line_number?: number | undefined;
13635
13759
  description: string;
@@ -13894,14 +14018,14 @@ export declare class API {
13894
14018
  line_number?: number | undefined;
13895
14019
  description?: string | undefined;
13896
14020
  amount: number;
13897
- type: "general_account" | "customer_account" | "supplier_account";
14021
+ type: "customer_account" | "supplier_account" | "general_account";
13898
14022
  account_number: string;
13899
14023
  partner_id?: string | undefined;
13900
14024
  analytic_account?: string | undefined;
13901
14025
  }[];
13902
14026
  operation_date?: string | undefined;
13903
14027
  journal_id: string;
13904
- status: "draft" | "posted" | "cancelled" | "matched";
14028
+ status: "cancelled" | "draft" | "posted" | "matched";
13905
14029
  id: string;
13906
14030
  }[]>;
13907
14031
  createMiscOperation(operation: {
@@ -13912,7 +14036,7 @@ export declare class API {
13912
14036
  line_number?: number | undefined;
13913
14037
  description?: string | undefined;
13914
14038
  amount: number;
13915
- type: "general_account" | "customer_account" | "supplier_account";
14039
+ type: "customer_account" | "supplier_account" | "general_account";
13916
14040
  account_number: string;
13917
14041
  partner_id?: string | undefined;
13918
14042
  analytic_account?: string | undefined;
@@ -13930,14 +14054,14 @@ export declare class API {
13930
14054
  line_number?: number | undefined;
13931
14055
  description?: string | undefined;
13932
14056
  amount: number;
13933
- type: "general_account" | "customer_account" | "supplier_account";
14057
+ type: "customer_account" | "supplier_account" | "general_account";
13934
14058
  account_number: string;
13935
14059
  partner_id?: string | undefined;
13936
14060
  analytic_account?: string | undefined;
13937
14061
  }[];
13938
14062
  operation_date?: string | undefined;
13939
14063
  journal_id: string;
13940
- status: "draft" | "posted" | "cancelled" | "matched";
14064
+ status: "cancelled" | "draft" | "posted" | "matched";
13941
14065
  id: string;
13942
14066
  }>;
13943
14067
  getMiscOperation(operation_id: string, params: {
@@ -13950,14 +14074,14 @@ export declare class API {
13950
14074
  line_number?: number | undefined;
13951
14075
  description?: string | undefined;
13952
14076
  amount: number;
13953
- type: "general_account" | "customer_account" | "supplier_account";
14077
+ type: "customer_account" | "supplier_account" | "general_account";
13954
14078
  account_number: string;
13955
14079
  partner_id?: string | undefined;
13956
14080
  analytic_account?: string | undefined;
13957
14081
  }[];
13958
14082
  operation_date?: string | undefined;
13959
14083
  journal_id: string;
13960
- status: "draft" | "posted" | "cancelled" | "matched";
14084
+ status: "cancelled" | "draft" | "posted" | "matched";
13961
14085
  id: string;
13962
14086
  }>;
13963
14087
  attachPDF(invoice_id: string, attachment: {
@@ -13967,7 +14091,7 @@ export declare class API {
13967
14091
  folder_id?: string | undefined;
13968
14092
  } | undefined): import("../types/api").RequestData<{
13969
14093
  content: {
13970
- 'application/json': unknown;
14094
+ "application/json": unknown;
13971
14095
  };
13972
14096
  }>;
13973
14097
  getAttachments(params: {
@@ -13983,11 +14107,11 @@ export declare class API {
13983
14107
  number: string;
13984
14108
  name: string;
13985
14109
  active?: boolean | undefined;
13986
- type?: "vat" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | "other" | undefined;
14110
+ type?: "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | "vat" | "other" | undefined;
13987
14111
  }[]>;
13988
14112
  getBalanceOfAccounts(filter: {
13989
14113
  accounts: string[];
13990
- start: string;
14114
+ start?: string | undefined;
13991
14115
  end: string;
13992
14116
  }, params: {
13993
14117
  folder_id?: string | undefined;
@@ -13995,6 +14119,7 @@ export declare class API {
13995
14119
  size?: number | undefined;
13996
14120
  } | undefined): import("../types/api").RequestData<{
13997
14121
  account_number: string;
14122
+ account_name?: string | undefined;
13998
14123
  debit: number;
13999
14124
  credit: number;
14000
14125
  balance: number;
@@ -14019,7 +14144,7 @@ export declare class API {
14019
14144
  getOutstandings(params: {
14020
14145
  folder_id?: string | undefined;
14021
14146
  unposted_allowed: "true" | "false";
14022
- type: "client" | "supplier";
14147
+ type: "supplier" | "client";
14023
14148
  }): import("../types/api").RequestData<{
14024
14149
  id: string;
14025
14150
  number?: string | undefined;
@@ -14045,7 +14170,7 @@ export declare class API {
14045
14170
  reference?: string | undefined;
14046
14171
  number?: string | undefined;
14047
14172
  items: {
14048
- type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
14173
+ type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
14049
14174
  account_number: string;
14050
14175
  partner_id?: string | undefined;
14051
14176
  amount: number;
@@ -14064,7 +14189,7 @@ export declare class API {
14064
14189
  id: string;
14065
14190
  number: string;
14066
14191
  items: {
14067
- type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
14192
+ type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
14068
14193
  account_number: string;
14069
14194
  partner_id?: string | undefined;
14070
14195
  amount: number;
@@ -14080,7 +14205,7 @@ export declare class API {
14080
14205
  reference?: string | undefined;
14081
14206
  number?: string | undefined;
14082
14207
  items: {
14083
- account_type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
14208
+ account_type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
14084
14209
  account: string;
14085
14210
  amount: number;
14086
14211
  description?: string | undefined;
@@ -14098,7 +14223,7 @@ export declare class API {
14098
14223
  id: string;
14099
14224
  number: string;
14100
14225
  items: {
14101
- account_type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
14226
+ account_type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
14102
14227
  account: string;
14103
14228
  amount: number;
14104
14229
  description?: string | undefined;
@@ -14167,7 +14292,7 @@ export declare class API {
14167
14292
  currency_exchange_rate?: number | undefined;
14168
14293
  date: string;
14169
14294
  items: {
14170
- account_type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
14295
+ account_type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
14171
14296
  account: string;
14172
14297
  force_general_account?: string | undefined;
14173
14298
  prioritise_thirdparty_account?: boolean | undefined;
@@ -14234,7 +14359,7 @@ export declare class API {
14234
14359
  }>;
14235
14360
  invoicing: import("../types/api").ApiFor<{
14236
14361
  getInvoices(params: {
14237
- invoice_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all" | undefined;
14362
+ invoice_type?: "all" | "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | undefined;
14238
14363
  payment_status?: "all" | "paid" | "unpaid" | undefined;
14239
14364
  date_from?: string | undefined;
14240
14365
  date_to?: string | undefined;
@@ -14249,7 +14374,7 @@ export declare class API {
14249
14374
  };
14250
14375
  currency: string;
14251
14376
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
14252
- status: "draft" | "posted" | "cancelled" | "paid";
14377
+ status: "cancelled" | "draft" | "posted" | "paid";
14253
14378
  invoice_date: string;
14254
14379
  tax_amount: number;
14255
14380
  untaxed_amount: number;
@@ -14294,7 +14419,7 @@ export declare class API {
14294
14419
  };
14295
14420
  currency: string;
14296
14421
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
14297
- status: "draft" | "posted" | "cancelled" | "paid";
14422
+ status: "cancelled" | "draft" | "posted" | "paid";
14298
14423
  invoice_date: string;
14299
14424
  tax_amount: number;
14300
14425
  untaxed_amount: number;
@@ -14332,7 +14457,7 @@ export declare class API {
14332
14457
  createInvoice(invoice: {
14333
14458
  currency: string;
14334
14459
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
14335
- status: "draft" | "posted" | "cancelled" | "paid";
14460
+ status: "cancelled" | "draft" | "posted" | "paid";
14336
14461
  invoice_date: string;
14337
14462
  tax_amount: number;
14338
14463
  untaxed_amount: number;
@@ -14373,7 +14498,7 @@ export declare class API {
14373
14498
  };
14374
14499
  currency: string;
14375
14500
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
14376
- status: "draft" | "posted" | "cancelled" | "paid";
14501
+ status: "cancelled" | "draft" | "posted" | "paid";
14377
14502
  invoice_date: string;
14378
14503
  tax_amount: number;
14379
14504
  untaxed_amount: number;
@@ -14545,7 +14670,7 @@ export declare class API {
14545
14670
  } | undefined;
14546
14671
  }>;
14547
14672
  getContacts(params?: {
14548
- contact_type?: "all" | "supplier" | "prospect" | "customer" | undefined;
14673
+ contact_type?: "prospect" | "customer" | "supplier" | "all" | undefined;
14549
14674
  page?: number | undefined;
14550
14675
  size?: number | undefined;
14551
14676
  } | undefined): import("../types/api").RequestData<{
@@ -14575,7 +14700,7 @@ export declare class API {
14575
14700
  birthdate?: string | undefined;
14576
14701
  gender?: "H" | "F" | "N/A" | undefined;
14577
14702
  addresses?: {
14578
- address_type: "main" | "delivery" | "invoice" | "other";
14703
+ address_type: "other" | "main" | "delivery" | "invoice";
14579
14704
  name?: string | undefined;
14580
14705
  number?: string | undefined;
14581
14706
  box?: string | undefined;
@@ -14615,7 +14740,7 @@ export declare class API {
14615
14740
  birthdate?: string | undefined;
14616
14741
  gender?: "H" | "F" | "N/A" | undefined;
14617
14742
  addresses?: {
14618
- address_type: "main" | "delivery" | "invoice" | "other";
14743
+ address_type: "other" | "main" | "delivery" | "invoice";
14619
14744
  name?: string | undefined;
14620
14745
  number?: string | undefined;
14621
14746
  box?: string | undefined;
@@ -14650,7 +14775,7 @@ export declare class API {
14650
14775
  birthdate?: string | undefined;
14651
14776
  gender?: "H" | "F" | "N/A" | undefined;
14652
14777
  addresses?: {
14653
- address_type: "main" | "delivery" | "invoice" | "other";
14778
+ address_type: "other" | "main" | "delivery" | "invoice";
14654
14779
  name?: string | undefined;
14655
14780
  number?: string | undefined;
14656
14781
  box?: string | undefined;
@@ -14689,7 +14814,7 @@ export declare class API {
14689
14814
  birthdate?: string | undefined;
14690
14815
  gender?: "H" | "F" | "N/A" | undefined;
14691
14816
  addresses?: {
14692
- address_type: "main" | "delivery" | "invoice" | "other";
14817
+ address_type: "other" | "main" | "delivery" | "invoice";
14693
14818
  name?: string | undefined;
14694
14819
  number?: string | undefined;
14695
14820
  box?: string | undefined;
@@ -15005,7 +15130,7 @@ export declare class API {
15005
15130
  last_updated_on?: string | undefined;
15006
15131
  confirmed_on?: string | undefined;
15007
15132
  cancelled_on?: string | undefined;
15008
- status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
15133
+ status: "cancelled" | "draft" | "confirmed" | "shipped" | "refunded";
15009
15134
  discount_amount: number;
15010
15135
  untaxed_amount_without_fees: number;
15011
15136
  tax_amount_without_fees: number;
@@ -15037,6 +15162,11 @@ export declare class API {
15037
15162
  }[] | undefined;
15038
15163
  other?: number | undefined;
15039
15164
  shipping_refunds?: {
15165
+ id: string;
15166
+ source_ref: {
15167
+ id?: string | undefined;
15168
+ model?: string | undefined;
15169
+ };
15040
15170
  untaxed_amount: number;
15041
15171
  tax_amount: number;
15042
15172
  total: number;
@@ -15072,6 +15202,11 @@ export declare class API {
15072
15202
  gift_card?: boolean | undefined;
15073
15203
  }[];
15074
15204
  other_fees?: {
15205
+ id: string;
15206
+ source_ref: {
15207
+ id?: string | undefined;
15208
+ model?: string | undefined;
15209
+ };
15075
15210
  created_on?: string | undefined;
15076
15211
  type: "other" | "shipping";
15077
15212
  tax_rate: number;
@@ -15186,7 +15321,7 @@ export declare class API {
15186
15321
  last_updated_on?: string | undefined;
15187
15322
  confirmed_on?: string | undefined;
15188
15323
  cancelled_on?: string | undefined;
15189
- status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
15324
+ status: "cancelled" | "draft" | "confirmed" | "shipped" | "refunded";
15190
15325
  discount_amount: number;
15191
15326
  untaxed_amount_without_fees: number;
15192
15327
  tax_amount_without_fees: number;
@@ -15218,6 +15353,11 @@ export declare class API {
15218
15353
  }[] | undefined;
15219
15354
  other?: number | undefined;
15220
15355
  shipping_refunds?: {
15356
+ id: string;
15357
+ source_ref: {
15358
+ id?: string | undefined;
15359
+ model?: string | undefined;
15360
+ };
15221
15361
  untaxed_amount: number;
15222
15362
  tax_amount: number;
15223
15363
  total: number;
@@ -15253,6 +15393,11 @@ export declare class API {
15253
15393
  gift_card?: boolean | undefined;
15254
15394
  }[];
15255
15395
  other_fees?: {
15396
+ id: string;
15397
+ source_ref: {
15398
+ id?: string | undefined;
15399
+ model?: string | undefined;
15400
+ };
15256
15401
  created_on?: string | undefined;
15257
15402
  type: "other" | "shipping";
15258
15403
  tax_rate: number;
@@ -15326,7 +15471,7 @@ export declare class API {
15326
15471
  last_updated_on?: string | undefined;
15327
15472
  confirmed_on?: string | undefined;
15328
15473
  cancelled_on?: string | undefined;
15329
- status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
15474
+ status: "cancelled" | "draft" | "confirmed" | "shipped" | "refunded";
15330
15475
  discount_amount: number;
15331
15476
  untaxed_amount_without_fees: number;
15332
15477
  tax_amount_without_fees: number;
@@ -15358,6 +15503,11 @@ export declare class API {
15358
15503
  }[] | undefined;
15359
15504
  other?: number | undefined;
15360
15505
  shipping_refunds?: {
15506
+ id: string;
15507
+ source_ref: {
15508
+ id?: string | undefined;
15509
+ model?: string | undefined;
15510
+ };
15361
15511
  untaxed_amount: number;
15362
15512
  tax_amount: number;
15363
15513
  total: number;
@@ -15393,6 +15543,11 @@ export declare class API {
15393
15543
  gift_card?: boolean | undefined;
15394
15544
  }[];
15395
15545
  other_fees?: {
15546
+ id: string;
15547
+ source_ref: {
15548
+ id?: string | undefined;
15549
+ model?: string | undefined;
15550
+ };
15396
15551
  created_on?: string | undefined;
15397
15552
  type: "other" | "shipping";
15398
15553
  tax_rate: number;
@@ -15555,7 +15710,7 @@ export declare class API {
15555
15710
  integrationid: number;
15556
15711
  name: string;
15557
15712
  status: "active" | "inactive";
15558
- api: "Payment" | "Point of Sale" | "eCommerce" | "Accounting" | "Invoicing" | "Communication" | "Banking" | "Custom";
15713
+ api: "Point of Sale" | "eCommerce" | "Accounting" | "Invoicing" | "Communication" | "Banking" | "Custom" | "Payment";
15559
15714
  logo_url: string;
15560
15715
  icon_url: string;
15561
15716
  credentials?: {