@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.
@@ -894,7 +894,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
894
894
  communication?: string | undefined;
895
895
  matching_number?: string | undefined;
896
896
  }[] | undefined;
897
- status?: "draft" | "posted" | "cancelled" | "paid" | undefined;
897
+ status?: "cancelled" | "draft" | "posted" | "paid" | undefined;
898
898
  lines: {
899
899
  line_number?: number | undefined;
900
900
  description: string;
@@ -996,7 +996,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
996
996
  communication?: string | undefined;
997
997
  matching_number?: string | undefined;
998
998
  }[] | undefined;
999
- status?: "draft" | "posted" | "cancelled" | "paid" | undefined;
999
+ status?: "cancelled" | "draft" | "posted" | "paid" | undefined;
1000
1000
  lines: {
1001
1001
  line_number?: number | undefined;
1002
1002
  description: string;
@@ -1047,7 +1047,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
1047
1047
  communication?: string | undefined;
1048
1048
  matching_number?: string | undefined;
1049
1049
  }[] | undefined;
1050
- status?: "draft" | "posted" | "cancelled" | "paid" | undefined;
1050
+ status?: "cancelled" | "draft" | "posted" | "paid" | undefined;
1051
1051
  lines: {
1052
1052
  line_number?: number | undefined;
1053
1053
  description: string;
@@ -1095,7 +1095,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
1095
1095
  communication?: string | undefined;
1096
1096
  matching_number?: string | undefined;
1097
1097
  }[] | undefined;
1098
- status?: "draft" | "posted" | "cancelled" | "paid" | undefined;
1098
+ status?: "cancelled" | "draft" | "posted" | "paid" | undefined;
1099
1099
  lines: {
1100
1100
  line_number?: number | undefined;
1101
1101
  description: string;
@@ -1143,7 +1143,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
1143
1143
  communication?: string | undefined;
1144
1144
  matching_number?: string | undefined;
1145
1145
  }[] | undefined;
1146
- status?: "draft" | "posted" | "cancelled" | "paid" | undefined;
1146
+ status?: "cancelled" | "draft" | "posted" | "paid" | undefined;
1147
1147
  lines: {
1148
1148
  line_number?: number | undefined;
1149
1149
  description: string;
@@ -1194,7 +1194,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
1194
1194
  communication?: string | undefined;
1195
1195
  matching_number?: string | undefined;
1196
1196
  }[] | undefined;
1197
- status?: "draft" | "posted" | "cancelled" | "paid" | undefined;
1197
+ status?: "cancelled" | "draft" | "posted" | "paid" | undefined;
1198
1198
  lines: {
1199
1199
  line_number?: number | undefined;
1200
1200
  description: string;
@@ -1459,14 +1459,14 @@ declare const Consumers: (internalApi: InternalAPI) => {
1459
1459
  line_number?: number | undefined;
1460
1460
  description?: string | undefined;
1461
1461
  amount: number;
1462
- type: "general_account" | "customer_account" | "supplier_account";
1462
+ type: "customer_account" | "supplier_account" | "general_account";
1463
1463
  account_number: string;
1464
1464
  partner_id?: string | undefined;
1465
1465
  analytic_account?: string | undefined;
1466
1466
  }[];
1467
1467
  operation_date?: string | undefined;
1468
1468
  journal_id: string;
1469
- status: "draft" | "posted" | "cancelled" | "matched";
1469
+ status: "cancelled" | "draft" | "posted" | "matched";
1470
1470
  id: string;
1471
1471
  }[]>;
1472
1472
  createMiscOperation(operation: {
@@ -1477,7 +1477,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
1477
1477
  line_number?: number | undefined;
1478
1478
  description?: string | undefined;
1479
1479
  amount: number;
1480
- type: "general_account" | "customer_account" | "supplier_account";
1480
+ type: "customer_account" | "supplier_account" | "general_account";
1481
1481
  account_number: string;
1482
1482
  partner_id?: string | undefined;
1483
1483
  analytic_account?: string | undefined;
@@ -1495,14 +1495,14 @@ declare const Consumers: (internalApi: InternalAPI) => {
1495
1495
  line_number?: number | undefined;
1496
1496
  description?: string | undefined;
1497
1497
  amount: number;
1498
- type: "general_account" | "customer_account" | "supplier_account";
1498
+ type: "customer_account" | "supplier_account" | "general_account";
1499
1499
  account_number: string;
1500
1500
  partner_id?: string | undefined;
1501
1501
  analytic_account?: string | undefined;
1502
1502
  }[];
1503
1503
  operation_date?: string | undefined;
1504
1504
  journal_id: string;
1505
- status: "draft" | "posted" | "cancelled" | "matched";
1505
+ status: "cancelled" | "draft" | "posted" | "matched";
1506
1506
  id: string;
1507
1507
  }>;
1508
1508
  getMiscOperation(operation_id: string, params: {
@@ -1515,14 +1515,14 @@ declare const Consumers: (internalApi: InternalAPI) => {
1515
1515
  line_number?: number | undefined;
1516
1516
  description?: string | undefined;
1517
1517
  amount: number;
1518
- type: "general_account" | "customer_account" | "supplier_account";
1518
+ type: "customer_account" | "supplier_account" | "general_account";
1519
1519
  account_number: string;
1520
1520
  partner_id?: string | undefined;
1521
1521
  analytic_account?: string | undefined;
1522
1522
  }[];
1523
1523
  operation_date?: string | undefined;
1524
1524
  journal_id: string;
1525
- status: "draft" | "posted" | "cancelled" | "matched";
1525
+ status: "cancelled" | "draft" | "posted" | "matched";
1526
1526
  id: string;
1527
1527
  }>;
1528
1528
  attachPDF(invoice_id: string, attachment: {
@@ -1532,7 +1532,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
1532
1532
  folder_id?: string | undefined;
1533
1533
  } | undefined): import("../types/api").RequestData<{
1534
1534
  content: {
1535
- 'application/json': unknown;
1535
+ "application/json": unknown;
1536
1536
  };
1537
1537
  }>;
1538
1538
  getAttachments(params: {
@@ -1548,11 +1548,11 @@ declare const Consumers: (internalApi: InternalAPI) => {
1548
1548
  number: string;
1549
1549
  name: string;
1550
1550
  active?: boolean | undefined;
1551
- type?: "vat" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | "other" | undefined;
1551
+ type?: "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | "vat" | "other" | undefined;
1552
1552
  }[]>;
1553
1553
  getBalanceOfAccounts(filter: {
1554
1554
  accounts: string[];
1555
- start: string;
1555
+ start?: string | undefined;
1556
1556
  end: string;
1557
1557
  }, params: {
1558
1558
  folder_id?: string | undefined;
@@ -1560,6 +1560,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
1560
1560
  size?: number | undefined;
1561
1561
  } | undefined): import("../types/api").RequestData<{
1562
1562
  account_number: string;
1563
+ account_name?: string | undefined;
1563
1564
  debit: number;
1564
1565
  credit: number;
1565
1566
  balance: number;
@@ -1584,7 +1585,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
1584
1585
  getOutstandings(params: {
1585
1586
  folder_id?: string | undefined;
1586
1587
  unposted_allowed: "true" | "false";
1587
- type: "client" | "supplier";
1588
+ type: "supplier" | "client";
1588
1589
  }): import("../types/api").RequestData<{
1589
1590
  id: string;
1590
1591
  number?: string | undefined;
@@ -1610,7 +1611,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
1610
1611
  reference?: string | undefined;
1611
1612
  number?: string | undefined;
1612
1613
  items: {
1613
- type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
1614
+ type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
1614
1615
  account_number: string;
1615
1616
  partner_id?: string | undefined;
1616
1617
  amount: number;
@@ -1629,7 +1630,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
1629
1630
  id: string;
1630
1631
  number: string;
1631
1632
  items: {
1632
- type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
1633
+ type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
1633
1634
  account_number: string;
1634
1635
  partner_id?: string | undefined;
1635
1636
  amount: number;
@@ -1645,7 +1646,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
1645
1646
  reference?: string | undefined;
1646
1647
  number?: string | undefined;
1647
1648
  items: {
1648
- account_type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
1649
+ account_type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
1649
1650
  account: string;
1650
1651
  amount: number;
1651
1652
  description?: string | undefined;
@@ -1663,7 +1664,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
1663
1664
  id: string;
1664
1665
  number: string;
1665
1666
  items: {
1666
- account_type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
1667
+ account_type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
1667
1668
  account: string;
1668
1669
  amount: number;
1669
1670
  description?: string | undefined;
@@ -1732,7 +1733,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
1732
1733
  currency_exchange_rate?: number | undefined;
1733
1734
  date: string;
1734
1735
  items: {
1735
- account_type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
1736
+ account_type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
1736
1737
  account: string;
1737
1738
  force_general_account?: string | undefined;
1738
1739
  prioritise_thirdparty_account?: boolean | undefined;
@@ -1799,7 +1800,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
1799
1800
  }>;
1800
1801
  invoicing: import("../types/api").ApiFor<{
1801
1802
  getInvoices(params: {
1802
- invoice_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all" | undefined;
1803
+ invoice_type?: "all" | "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | undefined;
1803
1804
  payment_status?: "all" | "paid" | "unpaid" | undefined;
1804
1805
  date_from?: string | undefined;
1805
1806
  date_to?: string | undefined;
@@ -1814,7 +1815,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
1814
1815
  };
1815
1816
  currency: string;
1816
1817
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
1817
- status: "draft" | "posted" | "cancelled" | "paid";
1818
+ status: "cancelled" | "draft" | "posted" | "paid";
1818
1819
  invoice_date: string;
1819
1820
  tax_amount: number;
1820
1821
  untaxed_amount: number;
@@ -1859,7 +1860,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
1859
1860
  };
1860
1861
  currency: string;
1861
1862
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
1862
- status: "draft" | "posted" | "cancelled" | "paid";
1863
+ status: "cancelled" | "draft" | "posted" | "paid";
1863
1864
  invoice_date: string;
1864
1865
  tax_amount: number;
1865
1866
  untaxed_amount: number;
@@ -1897,7 +1898,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
1897
1898
  createInvoice(invoice: {
1898
1899
  currency: string;
1899
1900
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
1900
- status: "draft" | "posted" | "cancelled" | "paid";
1901
+ status: "cancelled" | "draft" | "posted" | "paid";
1901
1902
  invoice_date: string;
1902
1903
  tax_amount: number;
1903
1904
  untaxed_amount: number;
@@ -1938,7 +1939,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
1938
1939
  };
1939
1940
  currency: string;
1940
1941
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
1941
- status: "draft" | "posted" | "cancelled" | "paid";
1942
+ status: "cancelled" | "draft" | "posted" | "paid";
1942
1943
  invoice_date: string;
1943
1944
  tax_amount: number;
1944
1945
  untaxed_amount: number;
@@ -2110,7 +2111,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
2110
2111
  } | undefined;
2111
2112
  }>;
2112
2113
  getContacts(params?: {
2113
- contact_type?: "all" | "supplier" | "prospect" | "customer" | undefined;
2114
+ contact_type?: "prospect" | "customer" | "supplier" | "all" | undefined;
2114
2115
  page?: number | undefined;
2115
2116
  size?: number | undefined;
2116
2117
  } | undefined): import("../types/api").RequestData<{
@@ -2140,7 +2141,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
2140
2141
  birthdate?: string | undefined;
2141
2142
  gender?: "H" | "F" | "N/A" | undefined;
2142
2143
  addresses?: {
2143
- address_type: "main" | "delivery" | "invoice" | "other";
2144
+ address_type: "other" | "main" | "delivery" | "invoice";
2144
2145
  name?: string | undefined;
2145
2146
  number?: string | undefined;
2146
2147
  box?: string | undefined;
@@ -2180,7 +2181,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
2180
2181
  birthdate?: string | undefined;
2181
2182
  gender?: "H" | "F" | "N/A" | undefined;
2182
2183
  addresses?: {
2183
- address_type: "main" | "delivery" | "invoice" | "other";
2184
+ address_type: "other" | "main" | "delivery" | "invoice";
2184
2185
  name?: string | undefined;
2185
2186
  number?: string | undefined;
2186
2187
  box?: string | undefined;
@@ -2215,7 +2216,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
2215
2216
  birthdate?: string | undefined;
2216
2217
  gender?: "H" | "F" | "N/A" | undefined;
2217
2218
  addresses?: {
2218
- address_type: "main" | "delivery" | "invoice" | "other";
2219
+ address_type: "other" | "main" | "delivery" | "invoice";
2219
2220
  name?: string | undefined;
2220
2221
  number?: string | undefined;
2221
2222
  box?: string | undefined;
@@ -2254,7 +2255,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
2254
2255
  birthdate?: string | undefined;
2255
2256
  gender?: "H" | "F" | "N/A" | undefined;
2256
2257
  addresses?: {
2257
- address_type: "main" | "delivery" | "invoice" | "other";
2258
+ address_type: "other" | "main" | "delivery" | "invoice";
2258
2259
  name?: string | undefined;
2259
2260
  number?: string | undefined;
2260
2261
  box?: string | undefined;
@@ -2570,7 +2571,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
2570
2571
  last_updated_on?: string | undefined;
2571
2572
  confirmed_on?: string | undefined;
2572
2573
  cancelled_on?: string | undefined;
2573
- status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
2574
+ status: "cancelled" | "draft" | "confirmed" | "shipped" | "refunded";
2574
2575
  discount_amount: number;
2575
2576
  untaxed_amount_without_fees: number;
2576
2577
  tax_amount_without_fees: number;
@@ -2602,6 +2603,11 @@ declare const Consumers: (internalApi: InternalAPI) => {
2602
2603
  }[] | undefined;
2603
2604
  other?: number | undefined;
2604
2605
  shipping_refunds?: {
2606
+ id: string;
2607
+ source_ref: {
2608
+ id?: string | undefined;
2609
+ model?: string | undefined;
2610
+ };
2605
2611
  untaxed_amount: number;
2606
2612
  tax_amount: number;
2607
2613
  total: number;
@@ -2637,6 +2643,11 @@ declare const Consumers: (internalApi: InternalAPI) => {
2637
2643
  gift_card?: boolean | undefined;
2638
2644
  }[];
2639
2645
  other_fees?: {
2646
+ id: string;
2647
+ source_ref: {
2648
+ id?: string | undefined;
2649
+ model?: string | undefined;
2650
+ };
2640
2651
  created_on?: string | undefined;
2641
2652
  type: "other" | "shipping";
2642
2653
  tax_rate: number;
@@ -2751,7 +2762,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
2751
2762
  last_updated_on?: string | undefined;
2752
2763
  confirmed_on?: string | undefined;
2753
2764
  cancelled_on?: string | undefined;
2754
- status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
2765
+ status: "cancelled" | "draft" | "confirmed" | "shipped" | "refunded";
2755
2766
  discount_amount: number;
2756
2767
  untaxed_amount_without_fees: number;
2757
2768
  tax_amount_without_fees: number;
@@ -2783,6 +2794,11 @@ declare const Consumers: (internalApi: InternalAPI) => {
2783
2794
  }[] | undefined;
2784
2795
  other?: number | undefined;
2785
2796
  shipping_refunds?: {
2797
+ id: string;
2798
+ source_ref: {
2799
+ id?: string | undefined;
2800
+ model?: string | undefined;
2801
+ };
2786
2802
  untaxed_amount: number;
2787
2803
  tax_amount: number;
2788
2804
  total: number;
@@ -2818,6 +2834,11 @@ declare const Consumers: (internalApi: InternalAPI) => {
2818
2834
  gift_card?: boolean | undefined;
2819
2835
  }[];
2820
2836
  other_fees?: {
2837
+ id: string;
2838
+ source_ref: {
2839
+ id?: string | undefined;
2840
+ model?: string | undefined;
2841
+ };
2821
2842
  created_on?: string | undefined;
2822
2843
  type: "other" | "shipping";
2823
2844
  tax_rate: number;
@@ -2891,7 +2912,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
2891
2912
  last_updated_on?: string | undefined;
2892
2913
  confirmed_on?: string | undefined;
2893
2914
  cancelled_on?: string | undefined;
2894
- status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
2915
+ status: "cancelled" | "draft" | "confirmed" | "shipped" | "refunded";
2895
2916
  discount_amount: number;
2896
2917
  untaxed_amount_without_fees: number;
2897
2918
  tax_amount_without_fees: number;
@@ -2923,6 +2944,11 @@ declare const Consumers: (internalApi: InternalAPI) => {
2923
2944
  }[] | undefined;
2924
2945
  other?: number | undefined;
2925
2946
  shipping_refunds?: {
2947
+ id: string;
2948
+ source_ref: {
2949
+ id?: string | undefined;
2950
+ model?: string | undefined;
2951
+ };
2926
2952
  untaxed_amount: number;
2927
2953
  tax_amount: number;
2928
2954
  total: number;
@@ -2958,6 +2984,11 @@ declare const Consumers: (internalApi: InternalAPI) => {
2958
2984
  gift_card?: boolean | undefined;
2959
2985
  }[];
2960
2986
  other_fees?: {
2987
+ id: string;
2988
+ source_ref: {
2989
+ id?: string | undefined;
2990
+ model?: string | undefined;
2991
+ };
2961
2992
  created_on?: string | undefined;
2962
2993
  type: "other" | "shipping";
2963
2994
  tax_rate: number;
@@ -4000,7 +4031,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
4000
4031
  communication?: string | undefined;
4001
4032
  matching_number?: string | undefined;
4002
4033
  }[] | undefined;
4003
- status?: "draft" | "posted" | "cancelled" | "paid" | undefined;
4034
+ status?: "cancelled" | "draft" | "posted" | "paid" | undefined;
4004
4035
  lines: {
4005
4036
  line_number?: number | undefined;
4006
4037
  description: string;
@@ -4102,7 +4133,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
4102
4133
  communication?: string | undefined;
4103
4134
  matching_number?: string | undefined;
4104
4135
  }[] | undefined;
4105
- status?: "draft" | "posted" | "cancelled" | "paid" | undefined;
4136
+ status?: "cancelled" | "draft" | "posted" | "paid" | undefined;
4106
4137
  lines: {
4107
4138
  line_number?: number | undefined;
4108
4139
  description: string;
@@ -4153,7 +4184,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
4153
4184
  communication?: string | undefined;
4154
4185
  matching_number?: string | undefined;
4155
4186
  }[] | undefined;
4156
- status?: "draft" | "posted" | "cancelled" | "paid" | undefined;
4187
+ status?: "cancelled" | "draft" | "posted" | "paid" | undefined;
4157
4188
  lines: {
4158
4189
  line_number?: number | undefined;
4159
4190
  description: string;
@@ -4201,7 +4232,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
4201
4232
  communication?: string | undefined;
4202
4233
  matching_number?: string | undefined;
4203
4234
  }[] | undefined;
4204
- status?: "draft" | "posted" | "cancelled" | "paid" | undefined;
4235
+ status?: "cancelled" | "draft" | "posted" | "paid" | undefined;
4205
4236
  lines: {
4206
4237
  line_number?: number | undefined;
4207
4238
  description: string;
@@ -4249,7 +4280,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
4249
4280
  communication?: string | undefined;
4250
4281
  matching_number?: string | undefined;
4251
4282
  }[] | undefined;
4252
- status?: "draft" | "posted" | "cancelled" | "paid" | undefined;
4283
+ status?: "cancelled" | "draft" | "posted" | "paid" | undefined;
4253
4284
  lines: {
4254
4285
  line_number?: number | undefined;
4255
4286
  description: string;
@@ -4300,7 +4331,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
4300
4331
  communication?: string | undefined;
4301
4332
  matching_number?: string | undefined;
4302
4333
  }[] | undefined;
4303
- status?: "draft" | "posted" | "cancelled" | "paid" | undefined;
4334
+ status?: "cancelled" | "draft" | "posted" | "paid" | undefined;
4304
4335
  lines: {
4305
4336
  line_number?: number | undefined;
4306
4337
  description: string;
@@ -4565,14 +4596,14 @@ declare const Consumers: (internalApi: InternalAPI) => {
4565
4596
  line_number?: number | undefined;
4566
4597
  description?: string | undefined;
4567
4598
  amount: number;
4568
- type: "general_account" | "customer_account" | "supplier_account";
4599
+ type: "customer_account" | "supplier_account" | "general_account";
4569
4600
  account_number: string;
4570
4601
  partner_id?: string | undefined;
4571
4602
  analytic_account?: string | undefined;
4572
4603
  }[];
4573
4604
  operation_date?: string | undefined;
4574
4605
  journal_id: string;
4575
- status: "draft" | "posted" | "cancelled" | "matched";
4606
+ status: "cancelled" | "draft" | "posted" | "matched";
4576
4607
  id: string;
4577
4608
  }[]>;
4578
4609
  createMiscOperation(operation: {
@@ -4583,7 +4614,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
4583
4614
  line_number?: number | undefined;
4584
4615
  description?: string | undefined;
4585
4616
  amount: number;
4586
- type: "general_account" | "customer_account" | "supplier_account";
4617
+ type: "customer_account" | "supplier_account" | "general_account";
4587
4618
  account_number: string;
4588
4619
  partner_id?: string | undefined;
4589
4620
  analytic_account?: string | undefined;
@@ -4601,14 +4632,14 @@ declare const Consumers: (internalApi: InternalAPI) => {
4601
4632
  line_number?: number | undefined;
4602
4633
  description?: string | undefined;
4603
4634
  amount: number;
4604
- type: "general_account" | "customer_account" | "supplier_account";
4635
+ type: "customer_account" | "supplier_account" | "general_account";
4605
4636
  account_number: string;
4606
4637
  partner_id?: string | undefined;
4607
4638
  analytic_account?: string | undefined;
4608
4639
  }[];
4609
4640
  operation_date?: string | undefined;
4610
4641
  journal_id: string;
4611
- status: "draft" | "posted" | "cancelled" | "matched";
4642
+ status: "cancelled" | "draft" | "posted" | "matched";
4612
4643
  id: string;
4613
4644
  }>;
4614
4645
  getMiscOperation(operation_id: string, params: {
@@ -4621,14 +4652,14 @@ declare const Consumers: (internalApi: InternalAPI) => {
4621
4652
  line_number?: number | undefined;
4622
4653
  description?: string | undefined;
4623
4654
  amount: number;
4624
- type: "general_account" | "customer_account" | "supplier_account";
4655
+ type: "customer_account" | "supplier_account" | "general_account";
4625
4656
  account_number: string;
4626
4657
  partner_id?: string | undefined;
4627
4658
  analytic_account?: string | undefined;
4628
4659
  }[];
4629
4660
  operation_date?: string | undefined;
4630
4661
  journal_id: string;
4631
- status: "draft" | "posted" | "cancelled" | "matched";
4662
+ status: "cancelled" | "draft" | "posted" | "matched";
4632
4663
  id: string;
4633
4664
  }>;
4634
4665
  attachPDF(invoice_id: string, attachment: {
@@ -4638,7 +4669,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
4638
4669
  folder_id?: string | undefined;
4639
4670
  } | undefined): import("../types/api").RequestData<{
4640
4671
  content: {
4641
- 'application/json': unknown;
4672
+ "application/json": unknown;
4642
4673
  };
4643
4674
  }>;
4644
4675
  getAttachments(params: {
@@ -4654,11 +4685,11 @@ declare const Consumers: (internalApi: InternalAPI) => {
4654
4685
  number: string;
4655
4686
  name: string;
4656
4687
  active?: boolean | undefined;
4657
- type?: "vat" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | "other" | undefined;
4688
+ type?: "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | "vat" | "other" | undefined;
4658
4689
  }[]>;
4659
4690
  getBalanceOfAccounts(filter: {
4660
4691
  accounts: string[];
4661
- start: string;
4692
+ start?: string | undefined;
4662
4693
  end: string;
4663
4694
  }, params: {
4664
4695
  folder_id?: string | undefined;
@@ -4666,6 +4697,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
4666
4697
  size?: number | undefined;
4667
4698
  } | undefined): import("../types/api").RequestData<{
4668
4699
  account_number: string;
4700
+ account_name?: string | undefined;
4669
4701
  debit: number;
4670
4702
  credit: number;
4671
4703
  balance: number;
@@ -4690,7 +4722,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
4690
4722
  getOutstandings(params: {
4691
4723
  folder_id?: string | undefined;
4692
4724
  unposted_allowed: "true" | "false";
4693
- type: "client" | "supplier";
4725
+ type: "supplier" | "client";
4694
4726
  }): import("../types/api").RequestData<{
4695
4727
  id: string;
4696
4728
  number?: string | undefined;
@@ -4716,7 +4748,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
4716
4748
  reference?: string | undefined;
4717
4749
  number?: string | undefined;
4718
4750
  items: {
4719
- type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
4751
+ type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
4720
4752
  account_number: string;
4721
4753
  partner_id?: string | undefined;
4722
4754
  amount: number;
@@ -4735,7 +4767,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
4735
4767
  id: string;
4736
4768
  number: string;
4737
4769
  items: {
4738
- type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
4770
+ type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
4739
4771
  account_number: string;
4740
4772
  partner_id?: string | undefined;
4741
4773
  amount: number;
@@ -4751,7 +4783,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
4751
4783
  reference?: string | undefined;
4752
4784
  number?: string | undefined;
4753
4785
  items: {
4754
- account_type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
4786
+ account_type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
4755
4787
  account: string;
4756
4788
  amount: number;
4757
4789
  description?: string | undefined;
@@ -4769,7 +4801,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
4769
4801
  id: string;
4770
4802
  number: string;
4771
4803
  items: {
4772
- account_type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
4804
+ account_type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
4773
4805
  account: string;
4774
4806
  amount: number;
4775
4807
  description?: string | undefined;
@@ -4838,7 +4870,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
4838
4870
  currency_exchange_rate?: number | undefined;
4839
4871
  date: string;
4840
4872
  items: {
4841
- account_type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
4873
+ account_type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
4842
4874
  account: string;
4843
4875
  force_general_account?: string | undefined;
4844
4876
  prioritise_thirdparty_account?: boolean | undefined;
@@ -4905,7 +4937,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
4905
4937
  }>;
4906
4938
  invoicing: import("../types/api").ApiFor<{
4907
4939
  getInvoices(params: {
4908
- invoice_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all" | undefined;
4940
+ invoice_type?: "all" | "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | undefined;
4909
4941
  payment_status?: "all" | "paid" | "unpaid" | undefined;
4910
4942
  date_from?: string | undefined;
4911
4943
  date_to?: string | undefined;
@@ -4920,7 +4952,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
4920
4952
  };
4921
4953
  currency: string;
4922
4954
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
4923
- status: "draft" | "posted" | "cancelled" | "paid";
4955
+ status: "cancelled" | "draft" | "posted" | "paid";
4924
4956
  invoice_date: string;
4925
4957
  tax_amount: number;
4926
4958
  untaxed_amount: number;
@@ -4965,7 +4997,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
4965
4997
  };
4966
4998
  currency: string;
4967
4999
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
4968
- status: "draft" | "posted" | "cancelled" | "paid";
5000
+ status: "cancelled" | "draft" | "posted" | "paid";
4969
5001
  invoice_date: string;
4970
5002
  tax_amount: number;
4971
5003
  untaxed_amount: number;
@@ -5003,7 +5035,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
5003
5035
  createInvoice(invoice: {
5004
5036
  currency: string;
5005
5037
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
5006
- status: "draft" | "posted" | "cancelled" | "paid";
5038
+ status: "cancelled" | "draft" | "posted" | "paid";
5007
5039
  invoice_date: string;
5008
5040
  tax_amount: number;
5009
5041
  untaxed_amount: number;
@@ -5044,7 +5076,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
5044
5076
  };
5045
5077
  currency: string;
5046
5078
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
5047
- status: "draft" | "posted" | "cancelled" | "paid";
5079
+ status: "cancelled" | "draft" | "posted" | "paid";
5048
5080
  invoice_date: string;
5049
5081
  tax_amount: number;
5050
5082
  untaxed_amount: number;
@@ -5216,7 +5248,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
5216
5248
  } | undefined;
5217
5249
  }>;
5218
5250
  getContacts(params?: {
5219
- contact_type?: "all" | "supplier" | "prospect" | "customer" | undefined;
5251
+ contact_type?: "prospect" | "customer" | "supplier" | "all" | undefined;
5220
5252
  page?: number | undefined;
5221
5253
  size?: number | undefined;
5222
5254
  } | undefined): import("../types/api").RequestData<{
@@ -5246,7 +5278,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
5246
5278
  birthdate?: string | undefined;
5247
5279
  gender?: "H" | "F" | "N/A" | undefined;
5248
5280
  addresses?: {
5249
- address_type: "main" | "delivery" | "invoice" | "other";
5281
+ address_type: "other" | "main" | "delivery" | "invoice";
5250
5282
  name?: string | undefined;
5251
5283
  number?: string | undefined;
5252
5284
  box?: string | undefined;
@@ -5286,7 +5318,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
5286
5318
  birthdate?: string | undefined;
5287
5319
  gender?: "H" | "F" | "N/A" | undefined;
5288
5320
  addresses?: {
5289
- address_type: "main" | "delivery" | "invoice" | "other";
5321
+ address_type: "other" | "main" | "delivery" | "invoice";
5290
5322
  name?: string | undefined;
5291
5323
  number?: string | undefined;
5292
5324
  box?: string | undefined;
@@ -5321,7 +5353,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
5321
5353
  birthdate?: string | undefined;
5322
5354
  gender?: "H" | "F" | "N/A" | undefined;
5323
5355
  addresses?: {
5324
- address_type: "main" | "delivery" | "invoice" | "other";
5356
+ address_type: "other" | "main" | "delivery" | "invoice";
5325
5357
  name?: string | undefined;
5326
5358
  number?: string | undefined;
5327
5359
  box?: string | undefined;
@@ -5360,7 +5392,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
5360
5392
  birthdate?: string | undefined;
5361
5393
  gender?: "H" | "F" | "N/A" | undefined;
5362
5394
  addresses?: {
5363
- address_type: "main" | "delivery" | "invoice" | "other";
5395
+ address_type: "other" | "main" | "delivery" | "invoice";
5364
5396
  name?: string | undefined;
5365
5397
  number?: string | undefined;
5366
5398
  box?: string | undefined;
@@ -5676,7 +5708,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
5676
5708
  last_updated_on?: string | undefined;
5677
5709
  confirmed_on?: string | undefined;
5678
5710
  cancelled_on?: string | undefined;
5679
- status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
5711
+ status: "cancelled" | "draft" | "confirmed" | "shipped" | "refunded";
5680
5712
  discount_amount: number;
5681
5713
  untaxed_amount_without_fees: number;
5682
5714
  tax_amount_without_fees: number;
@@ -5708,6 +5740,11 @@ declare const Consumers: (internalApi: InternalAPI) => {
5708
5740
  }[] | undefined;
5709
5741
  other?: number | undefined;
5710
5742
  shipping_refunds?: {
5743
+ id: string;
5744
+ source_ref: {
5745
+ id?: string | undefined;
5746
+ model?: string | undefined;
5747
+ };
5711
5748
  untaxed_amount: number;
5712
5749
  tax_amount: number;
5713
5750
  total: number;
@@ -5743,6 +5780,11 @@ declare const Consumers: (internalApi: InternalAPI) => {
5743
5780
  gift_card?: boolean | undefined;
5744
5781
  }[];
5745
5782
  other_fees?: {
5783
+ id: string;
5784
+ source_ref: {
5785
+ id?: string | undefined;
5786
+ model?: string | undefined;
5787
+ };
5746
5788
  created_on?: string | undefined;
5747
5789
  type: "other" | "shipping";
5748
5790
  tax_rate: number;
@@ -5857,7 +5899,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
5857
5899
  last_updated_on?: string | undefined;
5858
5900
  confirmed_on?: string | undefined;
5859
5901
  cancelled_on?: string | undefined;
5860
- status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
5902
+ status: "cancelled" | "draft" | "confirmed" | "shipped" | "refunded";
5861
5903
  discount_amount: number;
5862
5904
  untaxed_amount_without_fees: number;
5863
5905
  tax_amount_without_fees: number;
@@ -5889,6 +5931,11 @@ declare const Consumers: (internalApi: InternalAPI) => {
5889
5931
  }[] | undefined;
5890
5932
  other?: number | undefined;
5891
5933
  shipping_refunds?: {
5934
+ id: string;
5935
+ source_ref: {
5936
+ id?: string | undefined;
5937
+ model?: string | undefined;
5938
+ };
5892
5939
  untaxed_amount: number;
5893
5940
  tax_amount: number;
5894
5941
  total: number;
@@ -5924,6 +5971,11 @@ declare const Consumers: (internalApi: InternalAPI) => {
5924
5971
  gift_card?: boolean | undefined;
5925
5972
  }[];
5926
5973
  other_fees?: {
5974
+ id: string;
5975
+ source_ref: {
5976
+ id?: string | undefined;
5977
+ model?: string | undefined;
5978
+ };
5927
5979
  created_on?: string | undefined;
5928
5980
  type: "other" | "shipping";
5929
5981
  tax_rate: number;
@@ -5997,7 +6049,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
5997
6049
  last_updated_on?: string | undefined;
5998
6050
  confirmed_on?: string | undefined;
5999
6051
  cancelled_on?: string | undefined;
6000
- status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
6052
+ status: "cancelled" | "draft" | "confirmed" | "shipped" | "refunded";
6001
6053
  discount_amount: number;
6002
6054
  untaxed_amount_without_fees: number;
6003
6055
  tax_amount_without_fees: number;
@@ -6029,6 +6081,11 @@ declare const Consumers: (internalApi: InternalAPI) => {
6029
6081
  }[] | undefined;
6030
6082
  other?: number | undefined;
6031
6083
  shipping_refunds?: {
6084
+ id: string;
6085
+ source_ref: {
6086
+ id?: string | undefined;
6087
+ model?: string | undefined;
6088
+ };
6032
6089
  untaxed_amount: number;
6033
6090
  tax_amount: number;
6034
6091
  total: number;
@@ -6064,6 +6121,11 @@ declare const Consumers: (internalApi: InternalAPI) => {
6064
6121
  gift_card?: boolean | undefined;
6065
6122
  }[];
6066
6123
  other_fees?: {
6124
+ id: string;
6125
+ source_ref: {
6126
+ id?: string | undefined;
6127
+ model?: string | undefined;
6128
+ };
6067
6129
  created_on?: string | undefined;
6068
6130
  type: "other" | "shipping";
6069
6131
  tax_rate: number;
@@ -7106,7 +7168,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
7106
7168
  communication?: string | undefined;
7107
7169
  matching_number?: string | undefined;
7108
7170
  }[] | undefined;
7109
- status?: "draft" | "posted" | "cancelled" | "paid" | undefined;
7171
+ status?: "cancelled" | "draft" | "posted" | "paid" | undefined;
7110
7172
  lines: {
7111
7173
  line_number?: number | undefined;
7112
7174
  description: string;
@@ -7208,7 +7270,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
7208
7270
  communication?: string | undefined;
7209
7271
  matching_number?: string | undefined;
7210
7272
  }[] | undefined;
7211
- status?: "draft" | "posted" | "cancelled" | "paid" | undefined;
7273
+ status?: "cancelled" | "draft" | "posted" | "paid" | undefined;
7212
7274
  lines: {
7213
7275
  line_number?: number | undefined;
7214
7276
  description: string;
@@ -7259,7 +7321,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
7259
7321
  communication?: string | undefined;
7260
7322
  matching_number?: string | undefined;
7261
7323
  }[] | undefined;
7262
- status?: "draft" | "posted" | "cancelled" | "paid" | undefined;
7324
+ status?: "cancelled" | "draft" | "posted" | "paid" | undefined;
7263
7325
  lines: {
7264
7326
  line_number?: number | undefined;
7265
7327
  description: string;
@@ -7307,7 +7369,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
7307
7369
  communication?: string | undefined;
7308
7370
  matching_number?: string | undefined;
7309
7371
  }[] | undefined;
7310
- status?: "draft" | "posted" | "cancelled" | "paid" | undefined;
7372
+ status?: "cancelled" | "draft" | "posted" | "paid" | undefined;
7311
7373
  lines: {
7312
7374
  line_number?: number | undefined;
7313
7375
  description: string;
@@ -7355,7 +7417,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
7355
7417
  communication?: string | undefined;
7356
7418
  matching_number?: string | undefined;
7357
7419
  }[] | undefined;
7358
- status?: "draft" | "posted" | "cancelled" | "paid" | undefined;
7420
+ status?: "cancelled" | "draft" | "posted" | "paid" | undefined;
7359
7421
  lines: {
7360
7422
  line_number?: number | undefined;
7361
7423
  description: string;
@@ -7406,7 +7468,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
7406
7468
  communication?: string | undefined;
7407
7469
  matching_number?: string | undefined;
7408
7470
  }[] | undefined;
7409
- status?: "draft" | "posted" | "cancelled" | "paid" | undefined;
7471
+ status?: "cancelled" | "draft" | "posted" | "paid" | undefined;
7410
7472
  lines: {
7411
7473
  line_number?: number | undefined;
7412
7474
  description: string;
@@ -7671,14 +7733,14 @@ declare const Consumers: (internalApi: InternalAPI) => {
7671
7733
  line_number?: number | undefined;
7672
7734
  description?: string | undefined;
7673
7735
  amount: number;
7674
- type: "general_account" | "customer_account" | "supplier_account";
7736
+ type: "customer_account" | "supplier_account" | "general_account";
7675
7737
  account_number: string;
7676
7738
  partner_id?: string | undefined;
7677
7739
  analytic_account?: string | undefined;
7678
7740
  }[];
7679
7741
  operation_date?: string | undefined;
7680
7742
  journal_id: string;
7681
- status: "draft" | "posted" | "cancelled" | "matched";
7743
+ status: "cancelled" | "draft" | "posted" | "matched";
7682
7744
  id: string;
7683
7745
  }[]>;
7684
7746
  createMiscOperation(operation: {
@@ -7689,7 +7751,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
7689
7751
  line_number?: number | undefined;
7690
7752
  description?: string | undefined;
7691
7753
  amount: number;
7692
- type: "general_account" | "customer_account" | "supplier_account";
7754
+ type: "customer_account" | "supplier_account" | "general_account";
7693
7755
  account_number: string;
7694
7756
  partner_id?: string | undefined;
7695
7757
  analytic_account?: string | undefined;
@@ -7707,14 +7769,14 @@ declare const Consumers: (internalApi: InternalAPI) => {
7707
7769
  line_number?: number | undefined;
7708
7770
  description?: string | undefined;
7709
7771
  amount: number;
7710
- type: "general_account" | "customer_account" | "supplier_account";
7772
+ type: "customer_account" | "supplier_account" | "general_account";
7711
7773
  account_number: string;
7712
7774
  partner_id?: string | undefined;
7713
7775
  analytic_account?: string | undefined;
7714
7776
  }[];
7715
7777
  operation_date?: string | undefined;
7716
7778
  journal_id: string;
7717
- status: "draft" | "posted" | "cancelled" | "matched";
7779
+ status: "cancelled" | "draft" | "posted" | "matched";
7718
7780
  id: string;
7719
7781
  }>;
7720
7782
  getMiscOperation(operation_id: string, params: {
@@ -7727,14 +7789,14 @@ declare const Consumers: (internalApi: InternalAPI) => {
7727
7789
  line_number?: number | undefined;
7728
7790
  description?: string | undefined;
7729
7791
  amount: number;
7730
- type: "general_account" | "customer_account" | "supplier_account";
7792
+ type: "customer_account" | "supplier_account" | "general_account";
7731
7793
  account_number: string;
7732
7794
  partner_id?: string | undefined;
7733
7795
  analytic_account?: string | undefined;
7734
7796
  }[];
7735
7797
  operation_date?: string | undefined;
7736
7798
  journal_id: string;
7737
- status: "draft" | "posted" | "cancelled" | "matched";
7799
+ status: "cancelled" | "draft" | "posted" | "matched";
7738
7800
  id: string;
7739
7801
  }>;
7740
7802
  attachPDF(invoice_id: string, attachment: {
@@ -7744,7 +7806,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
7744
7806
  folder_id?: string | undefined;
7745
7807
  } | undefined): import("../types/api").RequestData<{
7746
7808
  content: {
7747
- 'application/json': unknown;
7809
+ "application/json": unknown;
7748
7810
  };
7749
7811
  }>;
7750
7812
  getAttachments(params: {
@@ -7760,11 +7822,11 @@ declare const Consumers: (internalApi: InternalAPI) => {
7760
7822
  number: string;
7761
7823
  name: string;
7762
7824
  active?: boolean | undefined;
7763
- type?: "vat" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | "other" | undefined;
7825
+ type?: "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | "vat" | "other" | undefined;
7764
7826
  }[]>;
7765
7827
  getBalanceOfAccounts(filter: {
7766
7828
  accounts: string[];
7767
- start: string;
7829
+ start?: string | undefined;
7768
7830
  end: string;
7769
7831
  }, params: {
7770
7832
  folder_id?: string | undefined;
@@ -7772,6 +7834,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
7772
7834
  size?: number | undefined;
7773
7835
  } | undefined): import("../types/api").RequestData<{
7774
7836
  account_number: string;
7837
+ account_name?: string | undefined;
7775
7838
  debit: number;
7776
7839
  credit: number;
7777
7840
  balance: number;
@@ -7796,7 +7859,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
7796
7859
  getOutstandings(params: {
7797
7860
  folder_id?: string | undefined;
7798
7861
  unposted_allowed: "true" | "false";
7799
- type: "client" | "supplier";
7862
+ type: "supplier" | "client";
7800
7863
  }): import("../types/api").RequestData<{
7801
7864
  id: string;
7802
7865
  number?: string | undefined;
@@ -7822,7 +7885,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
7822
7885
  reference?: string | undefined;
7823
7886
  number?: string | undefined;
7824
7887
  items: {
7825
- type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
7888
+ type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
7826
7889
  account_number: string;
7827
7890
  partner_id?: string | undefined;
7828
7891
  amount: number;
@@ -7841,7 +7904,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
7841
7904
  id: string;
7842
7905
  number: string;
7843
7906
  items: {
7844
- type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
7907
+ type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
7845
7908
  account_number: string;
7846
7909
  partner_id?: string | undefined;
7847
7910
  amount: number;
@@ -7857,7 +7920,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
7857
7920
  reference?: string | undefined;
7858
7921
  number?: string | undefined;
7859
7922
  items: {
7860
- account_type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
7923
+ account_type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
7861
7924
  account: string;
7862
7925
  amount: number;
7863
7926
  description?: string | undefined;
@@ -7875,7 +7938,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
7875
7938
  id: string;
7876
7939
  number: string;
7877
7940
  items: {
7878
- account_type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
7941
+ account_type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
7879
7942
  account: string;
7880
7943
  amount: number;
7881
7944
  description?: string | undefined;
@@ -7944,7 +8007,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
7944
8007
  currency_exchange_rate?: number | undefined;
7945
8008
  date: string;
7946
8009
  items: {
7947
- account_type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
8010
+ account_type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
7948
8011
  account: string;
7949
8012
  force_general_account?: string | undefined;
7950
8013
  prioritise_thirdparty_account?: boolean | undefined;
@@ -8011,7 +8074,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
8011
8074
  }>;
8012
8075
  invoicing: import("../types/api").ApiFor<{
8013
8076
  getInvoices(params: {
8014
- invoice_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all" | undefined;
8077
+ invoice_type?: "all" | "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | undefined;
8015
8078
  payment_status?: "all" | "paid" | "unpaid" | undefined;
8016
8079
  date_from?: string | undefined;
8017
8080
  date_to?: string | undefined;
@@ -8026,7 +8089,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
8026
8089
  };
8027
8090
  currency: string;
8028
8091
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
8029
- status: "draft" | "posted" | "cancelled" | "paid";
8092
+ status: "cancelled" | "draft" | "posted" | "paid";
8030
8093
  invoice_date: string;
8031
8094
  tax_amount: number;
8032
8095
  untaxed_amount: number;
@@ -8071,7 +8134,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
8071
8134
  };
8072
8135
  currency: string;
8073
8136
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
8074
- status: "draft" | "posted" | "cancelled" | "paid";
8137
+ status: "cancelled" | "draft" | "posted" | "paid";
8075
8138
  invoice_date: string;
8076
8139
  tax_amount: number;
8077
8140
  untaxed_amount: number;
@@ -8109,7 +8172,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
8109
8172
  createInvoice(invoice: {
8110
8173
  currency: string;
8111
8174
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
8112
- status: "draft" | "posted" | "cancelled" | "paid";
8175
+ status: "cancelled" | "draft" | "posted" | "paid";
8113
8176
  invoice_date: string;
8114
8177
  tax_amount: number;
8115
8178
  untaxed_amount: number;
@@ -8150,7 +8213,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
8150
8213
  };
8151
8214
  currency: string;
8152
8215
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
8153
- status: "draft" | "posted" | "cancelled" | "paid";
8216
+ status: "cancelled" | "draft" | "posted" | "paid";
8154
8217
  invoice_date: string;
8155
8218
  tax_amount: number;
8156
8219
  untaxed_amount: number;
@@ -8322,7 +8385,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
8322
8385
  } | undefined;
8323
8386
  }>;
8324
8387
  getContacts(params?: {
8325
- contact_type?: "all" | "supplier" | "prospect" | "customer" | undefined;
8388
+ contact_type?: "prospect" | "customer" | "supplier" | "all" | undefined;
8326
8389
  page?: number | undefined;
8327
8390
  size?: number | undefined;
8328
8391
  } | undefined): import("../types/api").RequestData<{
@@ -8352,7 +8415,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
8352
8415
  birthdate?: string | undefined;
8353
8416
  gender?: "H" | "F" | "N/A" | undefined;
8354
8417
  addresses?: {
8355
- address_type: "main" | "delivery" | "invoice" | "other";
8418
+ address_type: "other" | "main" | "delivery" | "invoice";
8356
8419
  name?: string | undefined;
8357
8420
  number?: string | undefined;
8358
8421
  box?: string | undefined;
@@ -8392,7 +8455,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
8392
8455
  birthdate?: string | undefined;
8393
8456
  gender?: "H" | "F" | "N/A" | undefined;
8394
8457
  addresses?: {
8395
- address_type: "main" | "delivery" | "invoice" | "other";
8458
+ address_type: "other" | "main" | "delivery" | "invoice";
8396
8459
  name?: string | undefined;
8397
8460
  number?: string | undefined;
8398
8461
  box?: string | undefined;
@@ -8427,7 +8490,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
8427
8490
  birthdate?: string | undefined;
8428
8491
  gender?: "H" | "F" | "N/A" | undefined;
8429
8492
  addresses?: {
8430
- address_type: "main" | "delivery" | "invoice" | "other";
8493
+ address_type: "other" | "main" | "delivery" | "invoice";
8431
8494
  name?: string | undefined;
8432
8495
  number?: string | undefined;
8433
8496
  box?: string | undefined;
@@ -8466,7 +8529,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
8466
8529
  birthdate?: string | undefined;
8467
8530
  gender?: "H" | "F" | "N/A" | undefined;
8468
8531
  addresses?: {
8469
- address_type: "main" | "delivery" | "invoice" | "other";
8532
+ address_type: "other" | "main" | "delivery" | "invoice";
8470
8533
  name?: string | undefined;
8471
8534
  number?: string | undefined;
8472
8535
  box?: string | undefined;
@@ -8782,7 +8845,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
8782
8845
  last_updated_on?: string | undefined;
8783
8846
  confirmed_on?: string | undefined;
8784
8847
  cancelled_on?: string | undefined;
8785
- status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
8848
+ status: "cancelled" | "draft" | "confirmed" | "shipped" | "refunded";
8786
8849
  discount_amount: number;
8787
8850
  untaxed_amount_without_fees: number;
8788
8851
  tax_amount_without_fees: number;
@@ -8814,6 +8877,11 @@ declare const Consumers: (internalApi: InternalAPI) => {
8814
8877
  }[] | undefined;
8815
8878
  other?: number | undefined;
8816
8879
  shipping_refunds?: {
8880
+ id: string;
8881
+ source_ref: {
8882
+ id?: string | undefined;
8883
+ model?: string | undefined;
8884
+ };
8817
8885
  untaxed_amount: number;
8818
8886
  tax_amount: number;
8819
8887
  total: number;
@@ -8849,6 +8917,11 @@ declare const Consumers: (internalApi: InternalAPI) => {
8849
8917
  gift_card?: boolean | undefined;
8850
8918
  }[];
8851
8919
  other_fees?: {
8920
+ id: string;
8921
+ source_ref: {
8922
+ id?: string | undefined;
8923
+ model?: string | undefined;
8924
+ };
8852
8925
  created_on?: string | undefined;
8853
8926
  type: "other" | "shipping";
8854
8927
  tax_rate: number;
@@ -8963,7 +9036,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
8963
9036
  last_updated_on?: string | undefined;
8964
9037
  confirmed_on?: string | undefined;
8965
9038
  cancelled_on?: string | undefined;
8966
- status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
9039
+ status: "cancelled" | "draft" | "confirmed" | "shipped" | "refunded";
8967
9040
  discount_amount: number;
8968
9041
  untaxed_amount_without_fees: number;
8969
9042
  tax_amount_without_fees: number;
@@ -8995,6 +9068,11 @@ declare const Consumers: (internalApi: InternalAPI) => {
8995
9068
  }[] | undefined;
8996
9069
  other?: number | undefined;
8997
9070
  shipping_refunds?: {
9071
+ id: string;
9072
+ source_ref: {
9073
+ id?: string | undefined;
9074
+ model?: string | undefined;
9075
+ };
8998
9076
  untaxed_amount: number;
8999
9077
  tax_amount: number;
9000
9078
  total: number;
@@ -9030,6 +9108,11 @@ declare const Consumers: (internalApi: InternalAPI) => {
9030
9108
  gift_card?: boolean | undefined;
9031
9109
  }[];
9032
9110
  other_fees?: {
9111
+ id: string;
9112
+ source_ref: {
9113
+ id?: string | undefined;
9114
+ model?: string | undefined;
9115
+ };
9033
9116
  created_on?: string | undefined;
9034
9117
  type: "other" | "shipping";
9035
9118
  tax_rate: number;
@@ -9103,7 +9186,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
9103
9186
  last_updated_on?: string | undefined;
9104
9187
  confirmed_on?: string | undefined;
9105
9188
  cancelled_on?: string | undefined;
9106
- status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
9189
+ status: "cancelled" | "draft" | "confirmed" | "shipped" | "refunded";
9107
9190
  discount_amount: number;
9108
9191
  untaxed_amount_without_fees: number;
9109
9192
  tax_amount_without_fees: number;
@@ -9135,6 +9218,11 @@ declare const Consumers: (internalApi: InternalAPI) => {
9135
9218
  }[] | undefined;
9136
9219
  other?: number | undefined;
9137
9220
  shipping_refunds?: {
9221
+ id: string;
9222
+ source_ref: {
9223
+ id?: string | undefined;
9224
+ model?: string | undefined;
9225
+ };
9138
9226
  untaxed_amount: number;
9139
9227
  tax_amount: number;
9140
9228
  total: number;
@@ -9170,6 +9258,11 @@ declare const Consumers: (internalApi: InternalAPI) => {
9170
9258
  gift_card?: boolean | undefined;
9171
9259
  }[];
9172
9260
  other_fees?: {
9261
+ id: string;
9262
+ source_ref: {
9263
+ id?: string | undefined;
9264
+ model?: string | undefined;
9265
+ };
9173
9266
  created_on?: string | undefined;
9174
9267
  type: "other" | "shipping";
9175
9268
  tax_rate: number;
@@ -10212,7 +10305,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
10212
10305
  communication?: string | undefined;
10213
10306
  matching_number?: string | undefined;
10214
10307
  }[] | undefined;
10215
- status?: "draft" | "posted" | "cancelled" | "paid" | undefined;
10308
+ status?: "cancelled" | "draft" | "posted" | "paid" | undefined;
10216
10309
  lines: {
10217
10310
  line_number?: number | undefined;
10218
10311
  description: string;
@@ -10314,7 +10407,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
10314
10407
  communication?: string | undefined;
10315
10408
  matching_number?: string | undefined;
10316
10409
  }[] | undefined;
10317
- status?: "draft" | "posted" | "cancelled" | "paid" | undefined;
10410
+ status?: "cancelled" | "draft" | "posted" | "paid" | undefined;
10318
10411
  lines: {
10319
10412
  line_number?: number | undefined;
10320
10413
  description: string;
@@ -10365,7 +10458,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
10365
10458
  communication?: string | undefined;
10366
10459
  matching_number?: string | undefined;
10367
10460
  }[] | undefined;
10368
- status?: "draft" | "posted" | "cancelled" | "paid" | undefined;
10461
+ status?: "cancelled" | "draft" | "posted" | "paid" | undefined;
10369
10462
  lines: {
10370
10463
  line_number?: number | undefined;
10371
10464
  description: string;
@@ -10413,7 +10506,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
10413
10506
  communication?: string | undefined;
10414
10507
  matching_number?: string | undefined;
10415
10508
  }[] | undefined;
10416
- status?: "draft" | "posted" | "cancelled" | "paid" | undefined;
10509
+ status?: "cancelled" | "draft" | "posted" | "paid" | undefined;
10417
10510
  lines: {
10418
10511
  line_number?: number | undefined;
10419
10512
  description: string;
@@ -10461,7 +10554,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
10461
10554
  communication?: string | undefined;
10462
10555
  matching_number?: string | undefined;
10463
10556
  }[] | undefined;
10464
- status?: "draft" | "posted" | "cancelled" | "paid" | undefined;
10557
+ status?: "cancelled" | "draft" | "posted" | "paid" | undefined;
10465
10558
  lines: {
10466
10559
  line_number?: number | undefined;
10467
10560
  description: string;
@@ -10512,7 +10605,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
10512
10605
  communication?: string | undefined;
10513
10606
  matching_number?: string | undefined;
10514
10607
  }[] | undefined;
10515
- status?: "draft" | "posted" | "cancelled" | "paid" | undefined;
10608
+ status?: "cancelled" | "draft" | "posted" | "paid" | undefined;
10516
10609
  lines: {
10517
10610
  line_number?: number | undefined;
10518
10611
  description: string;
@@ -10777,14 +10870,14 @@ declare const Consumers: (internalApi: InternalAPI) => {
10777
10870
  line_number?: number | undefined;
10778
10871
  description?: string | undefined;
10779
10872
  amount: number;
10780
- type: "general_account" | "customer_account" | "supplier_account";
10873
+ type: "customer_account" | "supplier_account" | "general_account";
10781
10874
  account_number: string;
10782
10875
  partner_id?: string | undefined;
10783
10876
  analytic_account?: string | undefined;
10784
10877
  }[];
10785
10878
  operation_date?: string | undefined;
10786
10879
  journal_id: string;
10787
- status: "draft" | "posted" | "cancelled" | "matched";
10880
+ status: "cancelled" | "draft" | "posted" | "matched";
10788
10881
  id: string;
10789
10882
  }[]>;
10790
10883
  createMiscOperation(operation: {
@@ -10795,7 +10888,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
10795
10888
  line_number?: number | undefined;
10796
10889
  description?: string | undefined;
10797
10890
  amount: number;
10798
- type: "general_account" | "customer_account" | "supplier_account";
10891
+ type: "customer_account" | "supplier_account" | "general_account";
10799
10892
  account_number: string;
10800
10893
  partner_id?: string | undefined;
10801
10894
  analytic_account?: string | undefined;
@@ -10813,14 +10906,14 @@ declare const Consumers: (internalApi: InternalAPI) => {
10813
10906
  line_number?: number | undefined;
10814
10907
  description?: string | undefined;
10815
10908
  amount: number;
10816
- type: "general_account" | "customer_account" | "supplier_account";
10909
+ type: "customer_account" | "supplier_account" | "general_account";
10817
10910
  account_number: string;
10818
10911
  partner_id?: string | undefined;
10819
10912
  analytic_account?: string | undefined;
10820
10913
  }[];
10821
10914
  operation_date?: string | undefined;
10822
10915
  journal_id: string;
10823
- status: "draft" | "posted" | "cancelled" | "matched";
10916
+ status: "cancelled" | "draft" | "posted" | "matched";
10824
10917
  id: string;
10825
10918
  }>;
10826
10919
  getMiscOperation(operation_id: string, params: {
@@ -10833,14 +10926,14 @@ declare const Consumers: (internalApi: InternalAPI) => {
10833
10926
  line_number?: number | undefined;
10834
10927
  description?: string | undefined;
10835
10928
  amount: number;
10836
- type: "general_account" | "customer_account" | "supplier_account";
10929
+ type: "customer_account" | "supplier_account" | "general_account";
10837
10930
  account_number: string;
10838
10931
  partner_id?: string | undefined;
10839
10932
  analytic_account?: string | undefined;
10840
10933
  }[];
10841
10934
  operation_date?: string | undefined;
10842
10935
  journal_id: string;
10843
- status: "draft" | "posted" | "cancelled" | "matched";
10936
+ status: "cancelled" | "draft" | "posted" | "matched";
10844
10937
  id: string;
10845
10938
  }>;
10846
10939
  attachPDF(invoice_id: string, attachment: {
@@ -10850,7 +10943,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
10850
10943
  folder_id?: string | undefined;
10851
10944
  } | undefined): import("../types/api").RequestData<{
10852
10945
  content: {
10853
- 'application/json': unknown;
10946
+ "application/json": unknown;
10854
10947
  };
10855
10948
  }>;
10856
10949
  getAttachments(params: {
@@ -10866,11 +10959,11 @@ declare const Consumers: (internalApi: InternalAPI) => {
10866
10959
  number: string;
10867
10960
  name: string;
10868
10961
  active?: boolean | undefined;
10869
- type?: "vat" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | "other" | undefined;
10962
+ type?: "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | "vat" | "other" | undefined;
10870
10963
  }[]>;
10871
10964
  getBalanceOfAccounts(filter: {
10872
10965
  accounts: string[];
10873
- start: string;
10966
+ start?: string | undefined;
10874
10967
  end: string;
10875
10968
  }, params: {
10876
10969
  folder_id?: string | undefined;
@@ -10878,6 +10971,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
10878
10971
  size?: number | undefined;
10879
10972
  } | undefined): import("../types/api").RequestData<{
10880
10973
  account_number: string;
10974
+ account_name?: string | undefined;
10881
10975
  debit: number;
10882
10976
  credit: number;
10883
10977
  balance: number;
@@ -10902,7 +10996,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
10902
10996
  getOutstandings(params: {
10903
10997
  folder_id?: string | undefined;
10904
10998
  unposted_allowed: "true" | "false";
10905
- type: "client" | "supplier";
10999
+ type: "supplier" | "client";
10906
11000
  }): import("../types/api").RequestData<{
10907
11001
  id: string;
10908
11002
  number?: string | undefined;
@@ -10928,7 +11022,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
10928
11022
  reference?: string | undefined;
10929
11023
  number?: string | undefined;
10930
11024
  items: {
10931
- type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
11025
+ type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
10932
11026
  account_number: string;
10933
11027
  partner_id?: string | undefined;
10934
11028
  amount: number;
@@ -10947,7 +11041,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
10947
11041
  id: string;
10948
11042
  number: string;
10949
11043
  items: {
10950
- type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
11044
+ type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
10951
11045
  account_number: string;
10952
11046
  partner_id?: string | undefined;
10953
11047
  amount: number;
@@ -10963,7 +11057,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
10963
11057
  reference?: string | undefined;
10964
11058
  number?: string | undefined;
10965
11059
  items: {
10966
- account_type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
11060
+ account_type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
10967
11061
  account: string;
10968
11062
  amount: number;
10969
11063
  description?: string | undefined;
@@ -10981,7 +11075,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
10981
11075
  id: string;
10982
11076
  number: string;
10983
11077
  items: {
10984
- account_type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
11078
+ account_type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
10985
11079
  account: string;
10986
11080
  amount: number;
10987
11081
  description?: string | undefined;
@@ -11050,7 +11144,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
11050
11144
  currency_exchange_rate?: number | undefined;
11051
11145
  date: string;
11052
11146
  items: {
11053
- account_type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
11147
+ account_type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
11054
11148
  account: string;
11055
11149
  force_general_account?: string | undefined;
11056
11150
  prioritise_thirdparty_account?: boolean | undefined;
@@ -11117,7 +11211,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
11117
11211
  }>;
11118
11212
  invoicing: import("../types/api").ApiFor<{
11119
11213
  getInvoices(params: {
11120
- invoice_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all" | undefined;
11214
+ invoice_type?: "all" | "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | undefined;
11121
11215
  payment_status?: "all" | "paid" | "unpaid" | undefined;
11122
11216
  date_from?: string | undefined;
11123
11217
  date_to?: string | undefined;
@@ -11132,7 +11226,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
11132
11226
  };
11133
11227
  currency: string;
11134
11228
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
11135
- status: "draft" | "posted" | "cancelled" | "paid";
11229
+ status: "cancelled" | "draft" | "posted" | "paid";
11136
11230
  invoice_date: string;
11137
11231
  tax_amount: number;
11138
11232
  untaxed_amount: number;
@@ -11177,7 +11271,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
11177
11271
  };
11178
11272
  currency: string;
11179
11273
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
11180
- status: "draft" | "posted" | "cancelled" | "paid";
11274
+ status: "cancelled" | "draft" | "posted" | "paid";
11181
11275
  invoice_date: string;
11182
11276
  tax_amount: number;
11183
11277
  untaxed_amount: number;
@@ -11215,7 +11309,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
11215
11309
  createInvoice(invoice: {
11216
11310
  currency: string;
11217
11311
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
11218
- status: "draft" | "posted" | "cancelled" | "paid";
11312
+ status: "cancelled" | "draft" | "posted" | "paid";
11219
11313
  invoice_date: string;
11220
11314
  tax_amount: number;
11221
11315
  untaxed_amount: number;
@@ -11256,7 +11350,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
11256
11350
  };
11257
11351
  currency: string;
11258
11352
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
11259
- status: "draft" | "posted" | "cancelled" | "paid";
11353
+ status: "cancelled" | "draft" | "posted" | "paid";
11260
11354
  invoice_date: string;
11261
11355
  tax_amount: number;
11262
11356
  untaxed_amount: number;
@@ -11428,7 +11522,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
11428
11522
  } | undefined;
11429
11523
  }>;
11430
11524
  getContacts(params?: {
11431
- contact_type?: "all" | "supplier" | "prospect" | "customer" | undefined;
11525
+ contact_type?: "prospect" | "customer" | "supplier" | "all" | undefined;
11432
11526
  page?: number | undefined;
11433
11527
  size?: number | undefined;
11434
11528
  } | undefined): import("../types/api").RequestData<{
@@ -11458,7 +11552,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
11458
11552
  birthdate?: string | undefined;
11459
11553
  gender?: "H" | "F" | "N/A" | undefined;
11460
11554
  addresses?: {
11461
- address_type: "main" | "delivery" | "invoice" | "other";
11555
+ address_type: "other" | "main" | "delivery" | "invoice";
11462
11556
  name?: string | undefined;
11463
11557
  number?: string | undefined;
11464
11558
  box?: string | undefined;
@@ -11498,7 +11592,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
11498
11592
  birthdate?: string | undefined;
11499
11593
  gender?: "H" | "F" | "N/A" | undefined;
11500
11594
  addresses?: {
11501
- address_type: "main" | "delivery" | "invoice" | "other";
11595
+ address_type: "other" | "main" | "delivery" | "invoice";
11502
11596
  name?: string | undefined;
11503
11597
  number?: string | undefined;
11504
11598
  box?: string | undefined;
@@ -11533,7 +11627,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
11533
11627
  birthdate?: string | undefined;
11534
11628
  gender?: "H" | "F" | "N/A" | undefined;
11535
11629
  addresses?: {
11536
- address_type: "main" | "delivery" | "invoice" | "other";
11630
+ address_type: "other" | "main" | "delivery" | "invoice";
11537
11631
  name?: string | undefined;
11538
11632
  number?: string | undefined;
11539
11633
  box?: string | undefined;
@@ -11572,7 +11666,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
11572
11666
  birthdate?: string | undefined;
11573
11667
  gender?: "H" | "F" | "N/A" | undefined;
11574
11668
  addresses?: {
11575
- address_type: "main" | "delivery" | "invoice" | "other";
11669
+ address_type: "other" | "main" | "delivery" | "invoice";
11576
11670
  name?: string | undefined;
11577
11671
  number?: string | undefined;
11578
11672
  box?: string | undefined;
@@ -11888,7 +11982,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
11888
11982
  last_updated_on?: string | undefined;
11889
11983
  confirmed_on?: string | undefined;
11890
11984
  cancelled_on?: string | undefined;
11891
- status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
11985
+ status: "cancelled" | "draft" | "confirmed" | "shipped" | "refunded";
11892
11986
  discount_amount: number;
11893
11987
  untaxed_amount_without_fees: number;
11894
11988
  tax_amount_without_fees: number;
@@ -11920,6 +12014,11 @@ declare const Consumers: (internalApi: InternalAPI) => {
11920
12014
  }[] | undefined;
11921
12015
  other?: number | undefined;
11922
12016
  shipping_refunds?: {
12017
+ id: string;
12018
+ source_ref: {
12019
+ id?: string | undefined;
12020
+ model?: string | undefined;
12021
+ };
11923
12022
  untaxed_amount: number;
11924
12023
  tax_amount: number;
11925
12024
  total: number;
@@ -11955,6 +12054,11 @@ declare const Consumers: (internalApi: InternalAPI) => {
11955
12054
  gift_card?: boolean | undefined;
11956
12055
  }[];
11957
12056
  other_fees?: {
12057
+ id: string;
12058
+ source_ref: {
12059
+ id?: string | undefined;
12060
+ model?: string | undefined;
12061
+ };
11958
12062
  created_on?: string | undefined;
11959
12063
  type: "other" | "shipping";
11960
12064
  tax_rate: number;
@@ -12069,7 +12173,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
12069
12173
  last_updated_on?: string | undefined;
12070
12174
  confirmed_on?: string | undefined;
12071
12175
  cancelled_on?: string | undefined;
12072
- status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
12176
+ status: "cancelled" | "draft" | "confirmed" | "shipped" | "refunded";
12073
12177
  discount_amount: number;
12074
12178
  untaxed_amount_without_fees: number;
12075
12179
  tax_amount_without_fees: number;
@@ -12101,6 +12205,11 @@ declare const Consumers: (internalApi: InternalAPI) => {
12101
12205
  }[] | undefined;
12102
12206
  other?: number | undefined;
12103
12207
  shipping_refunds?: {
12208
+ id: string;
12209
+ source_ref: {
12210
+ id?: string | undefined;
12211
+ model?: string | undefined;
12212
+ };
12104
12213
  untaxed_amount: number;
12105
12214
  tax_amount: number;
12106
12215
  total: number;
@@ -12136,6 +12245,11 @@ declare const Consumers: (internalApi: InternalAPI) => {
12136
12245
  gift_card?: boolean | undefined;
12137
12246
  }[];
12138
12247
  other_fees?: {
12248
+ id: string;
12249
+ source_ref: {
12250
+ id?: string | undefined;
12251
+ model?: string | undefined;
12252
+ };
12139
12253
  created_on?: string | undefined;
12140
12254
  type: "other" | "shipping";
12141
12255
  tax_rate: number;
@@ -12209,7 +12323,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
12209
12323
  last_updated_on?: string | undefined;
12210
12324
  confirmed_on?: string | undefined;
12211
12325
  cancelled_on?: string | undefined;
12212
- status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
12326
+ status: "cancelled" | "draft" | "confirmed" | "shipped" | "refunded";
12213
12327
  discount_amount: number;
12214
12328
  untaxed_amount_without_fees: number;
12215
12329
  tax_amount_without_fees: number;
@@ -12241,6 +12355,11 @@ declare const Consumers: (internalApi: InternalAPI) => {
12241
12355
  }[] | undefined;
12242
12356
  other?: number | undefined;
12243
12357
  shipping_refunds?: {
12358
+ id: string;
12359
+ source_ref: {
12360
+ id?: string | undefined;
12361
+ model?: string | undefined;
12362
+ };
12244
12363
  untaxed_amount: number;
12245
12364
  tax_amount: number;
12246
12365
  total: number;
@@ -12276,6 +12395,11 @@ declare const Consumers: (internalApi: InternalAPI) => {
12276
12395
  gift_card?: boolean | undefined;
12277
12396
  }[];
12278
12397
  other_fees?: {
12398
+ id: string;
12399
+ source_ref: {
12400
+ id?: string | undefined;
12401
+ model?: string | undefined;
12402
+ };
12279
12403
  created_on?: string | undefined;
12280
12404
  type: "other" | "shipping";
12281
12405
  tax_rate: number;
@@ -13318,7 +13442,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
13318
13442
  communication?: string | undefined;
13319
13443
  matching_number?: string | undefined;
13320
13444
  }[] | undefined;
13321
- status?: "draft" | "posted" | "cancelled" | "paid" | undefined;
13445
+ status?: "cancelled" | "draft" | "posted" | "paid" | undefined;
13322
13446
  lines: {
13323
13447
  line_number?: number | undefined;
13324
13448
  description: string;
@@ -13420,7 +13544,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
13420
13544
  communication?: string | undefined;
13421
13545
  matching_number?: string | undefined;
13422
13546
  }[] | undefined;
13423
- status?: "draft" | "posted" | "cancelled" | "paid" | undefined;
13547
+ status?: "cancelled" | "draft" | "posted" | "paid" | undefined;
13424
13548
  lines: {
13425
13549
  line_number?: number | undefined;
13426
13550
  description: string;
@@ -13471,7 +13595,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
13471
13595
  communication?: string | undefined;
13472
13596
  matching_number?: string | undefined;
13473
13597
  }[] | undefined;
13474
- status?: "draft" | "posted" | "cancelled" | "paid" | undefined;
13598
+ status?: "cancelled" | "draft" | "posted" | "paid" | undefined;
13475
13599
  lines: {
13476
13600
  line_number?: number | undefined;
13477
13601
  description: string;
@@ -13519,7 +13643,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
13519
13643
  communication?: string | undefined;
13520
13644
  matching_number?: string | undefined;
13521
13645
  }[] | undefined;
13522
- status?: "draft" | "posted" | "cancelled" | "paid" | undefined;
13646
+ status?: "cancelled" | "draft" | "posted" | "paid" | undefined;
13523
13647
  lines: {
13524
13648
  line_number?: number | undefined;
13525
13649
  description: string;
@@ -13567,7 +13691,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
13567
13691
  communication?: string | undefined;
13568
13692
  matching_number?: string | undefined;
13569
13693
  }[] | undefined;
13570
- status?: "draft" | "posted" | "cancelled" | "paid" | undefined;
13694
+ status?: "cancelled" | "draft" | "posted" | "paid" | undefined;
13571
13695
  lines: {
13572
13696
  line_number?: number | undefined;
13573
13697
  description: string;
@@ -13618,7 +13742,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
13618
13742
  communication?: string | undefined;
13619
13743
  matching_number?: string | undefined;
13620
13744
  }[] | undefined;
13621
- status?: "draft" | "posted" | "cancelled" | "paid" | undefined;
13745
+ status?: "cancelled" | "draft" | "posted" | "paid" | undefined;
13622
13746
  lines: {
13623
13747
  line_number?: number | undefined;
13624
13748
  description: string;
@@ -13883,14 +14007,14 @@ declare const Consumers: (internalApi: InternalAPI) => {
13883
14007
  line_number?: number | undefined;
13884
14008
  description?: string | undefined;
13885
14009
  amount: number;
13886
- type: "general_account" | "customer_account" | "supplier_account";
14010
+ type: "customer_account" | "supplier_account" | "general_account";
13887
14011
  account_number: string;
13888
14012
  partner_id?: string | undefined;
13889
14013
  analytic_account?: string | undefined;
13890
14014
  }[];
13891
14015
  operation_date?: string | undefined;
13892
14016
  journal_id: string;
13893
- status: "draft" | "posted" | "cancelled" | "matched";
14017
+ status: "cancelled" | "draft" | "posted" | "matched";
13894
14018
  id: string;
13895
14019
  }[]>;
13896
14020
  createMiscOperation(operation: {
@@ -13901,7 +14025,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
13901
14025
  line_number?: number | undefined;
13902
14026
  description?: string | undefined;
13903
14027
  amount: number;
13904
- type: "general_account" | "customer_account" | "supplier_account";
14028
+ type: "customer_account" | "supplier_account" | "general_account";
13905
14029
  account_number: string;
13906
14030
  partner_id?: string | undefined;
13907
14031
  analytic_account?: string | undefined;
@@ -13919,14 +14043,14 @@ declare const Consumers: (internalApi: InternalAPI) => {
13919
14043
  line_number?: number | undefined;
13920
14044
  description?: string | undefined;
13921
14045
  amount: number;
13922
- type: "general_account" | "customer_account" | "supplier_account";
14046
+ type: "customer_account" | "supplier_account" | "general_account";
13923
14047
  account_number: string;
13924
14048
  partner_id?: string | undefined;
13925
14049
  analytic_account?: string | undefined;
13926
14050
  }[];
13927
14051
  operation_date?: string | undefined;
13928
14052
  journal_id: string;
13929
- status: "draft" | "posted" | "cancelled" | "matched";
14053
+ status: "cancelled" | "draft" | "posted" | "matched";
13930
14054
  id: string;
13931
14055
  }>;
13932
14056
  getMiscOperation(operation_id: string, params: {
@@ -13939,14 +14063,14 @@ declare const Consumers: (internalApi: InternalAPI) => {
13939
14063
  line_number?: number | undefined;
13940
14064
  description?: string | undefined;
13941
14065
  amount: number;
13942
- type: "general_account" | "customer_account" | "supplier_account";
14066
+ type: "customer_account" | "supplier_account" | "general_account";
13943
14067
  account_number: string;
13944
14068
  partner_id?: string | undefined;
13945
14069
  analytic_account?: string | undefined;
13946
14070
  }[];
13947
14071
  operation_date?: string | undefined;
13948
14072
  journal_id: string;
13949
- status: "draft" | "posted" | "cancelled" | "matched";
14073
+ status: "cancelled" | "draft" | "posted" | "matched";
13950
14074
  id: string;
13951
14075
  }>;
13952
14076
  attachPDF(invoice_id: string, attachment: {
@@ -13956,7 +14080,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
13956
14080
  folder_id?: string | undefined;
13957
14081
  } | undefined): import("../types/api").RequestData<{
13958
14082
  content: {
13959
- 'application/json': unknown;
14083
+ "application/json": unknown;
13960
14084
  };
13961
14085
  }>;
13962
14086
  getAttachments(params: {
@@ -13972,11 +14096,11 @@ declare const Consumers: (internalApi: InternalAPI) => {
13972
14096
  number: string;
13973
14097
  name: string;
13974
14098
  active?: boolean | undefined;
13975
- type?: "vat" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | "other" | undefined;
14099
+ type?: "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | "vat" | "other" | undefined;
13976
14100
  }[]>;
13977
14101
  getBalanceOfAccounts(filter: {
13978
14102
  accounts: string[];
13979
- start: string;
14103
+ start?: string | undefined;
13980
14104
  end: string;
13981
14105
  }, params: {
13982
14106
  folder_id?: string | undefined;
@@ -13984,6 +14108,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
13984
14108
  size?: number | undefined;
13985
14109
  } | undefined): import("../types/api").RequestData<{
13986
14110
  account_number: string;
14111
+ account_name?: string | undefined;
13987
14112
  debit: number;
13988
14113
  credit: number;
13989
14114
  balance: number;
@@ -14008,7 +14133,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
14008
14133
  getOutstandings(params: {
14009
14134
  folder_id?: string | undefined;
14010
14135
  unposted_allowed: "true" | "false";
14011
- type: "client" | "supplier";
14136
+ type: "supplier" | "client";
14012
14137
  }): import("../types/api").RequestData<{
14013
14138
  id: string;
14014
14139
  number?: string | undefined;
@@ -14034,7 +14159,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
14034
14159
  reference?: string | undefined;
14035
14160
  number?: string | undefined;
14036
14161
  items: {
14037
- type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
14162
+ type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
14038
14163
  account_number: string;
14039
14164
  partner_id?: string | undefined;
14040
14165
  amount: number;
@@ -14053,7 +14178,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
14053
14178
  id: string;
14054
14179
  number: string;
14055
14180
  items: {
14056
- type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
14181
+ type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
14057
14182
  account_number: string;
14058
14183
  partner_id?: string | undefined;
14059
14184
  amount: number;
@@ -14069,7 +14194,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
14069
14194
  reference?: string | undefined;
14070
14195
  number?: string | undefined;
14071
14196
  items: {
14072
- account_type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
14197
+ account_type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
14073
14198
  account: string;
14074
14199
  amount: number;
14075
14200
  description?: string | undefined;
@@ -14087,7 +14212,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
14087
14212
  id: string;
14088
14213
  number: string;
14089
14214
  items: {
14090
- account_type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
14215
+ account_type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
14091
14216
  account: string;
14092
14217
  amount: number;
14093
14218
  description?: string | undefined;
@@ -14156,7 +14281,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
14156
14281
  currency_exchange_rate?: number | undefined;
14157
14282
  date: string;
14158
14283
  items: {
14159
- account_type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
14284
+ account_type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
14160
14285
  account: string;
14161
14286
  force_general_account?: string | undefined;
14162
14287
  prioritise_thirdparty_account?: boolean | undefined;
@@ -14223,7 +14348,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
14223
14348
  }>;
14224
14349
  invoicing: import("../types/api").ApiFor<{
14225
14350
  getInvoices(params: {
14226
- invoice_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all" | undefined;
14351
+ invoice_type?: "all" | "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | undefined;
14227
14352
  payment_status?: "all" | "paid" | "unpaid" | undefined;
14228
14353
  date_from?: string | undefined;
14229
14354
  date_to?: string | undefined;
@@ -14238,7 +14363,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
14238
14363
  };
14239
14364
  currency: string;
14240
14365
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
14241
- status: "draft" | "posted" | "cancelled" | "paid";
14366
+ status: "cancelled" | "draft" | "posted" | "paid";
14242
14367
  invoice_date: string;
14243
14368
  tax_amount: number;
14244
14369
  untaxed_amount: number;
@@ -14283,7 +14408,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
14283
14408
  };
14284
14409
  currency: string;
14285
14410
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
14286
- status: "draft" | "posted" | "cancelled" | "paid";
14411
+ status: "cancelled" | "draft" | "posted" | "paid";
14287
14412
  invoice_date: string;
14288
14413
  tax_amount: number;
14289
14414
  untaxed_amount: number;
@@ -14321,7 +14446,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
14321
14446
  createInvoice(invoice: {
14322
14447
  currency: string;
14323
14448
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
14324
- status: "draft" | "posted" | "cancelled" | "paid";
14449
+ status: "cancelled" | "draft" | "posted" | "paid";
14325
14450
  invoice_date: string;
14326
14451
  tax_amount: number;
14327
14452
  untaxed_amount: number;
@@ -14362,7 +14487,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
14362
14487
  };
14363
14488
  currency: string;
14364
14489
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
14365
- status: "draft" | "posted" | "cancelled" | "paid";
14490
+ status: "cancelled" | "draft" | "posted" | "paid";
14366
14491
  invoice_date: string;
14367
14492
  tax_amount: number;
14368
14493
  untaxed_amount: number;
@@ -14534,7 +14659,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
14534
14659
  } | undefined;
14535
14660
  }>;
14536
14661
  getContacts(params?: {
14537
- contact_type?: "all" | "supplier" | "prospect" | "customer" | undefined;
14662
+ contact_type?: "prospect" | "customer" | "supplier" | "all" | undefined;
14538
14663
  page?: number | undefined;
14539
14664
  size?: number | undefined;
14540
14665
  } | undefined): import("../types/api").RequestData<{
@@ -14564,7 +14689,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
14564
14689
  birthdate?: string | undefined;
14565
14690
  gender?: "H" | "F" | "N/A" | undefined;
14566
14691
  addresses?: {
14567
- address_type: "main" | "delivery" | "invoice" | "other";
14692
+ address_type: "other" | "main" | "delivery" | "invoice";
14568
14693
  name?: string | undefined;
14569
14694
  number?: string | undefined;
14570
14695
  box?: string | undefined;
@@ -14604,7 +14729,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
14604
14729
  birthdate?: string | undefined;
14605
14730
  gender?: "H" | "F" | "N/A" | undefined;
14606
14731
  addresses?: {
14607
- address_type: "main" | "delivery" | "invoice" | "other";
14732
+ address_type: "other" | "main" | "delivery" | "invoice";
14608
14733
  name?: string | undefined;
14609
14734
  number?: string | undefined;
14610
14735
  box?: string | undefined;
@@ -14639,7 +14764,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
14639
14764
  birthdate?: string | undefined;
14640
14765
  gender?: "H" | "F" | "N/A" | undefined;
14641
14766
  addresses?: {
14642
- address_type: "main" | "delivery" | "invoice" | "other";
14767
+ address_type: "other" | "main" | "delivery" | "invoice";
14643
14768
  name?: string | undefined;
14644
14769
  number?: string | undefined;
14645
14770
  box?: string | undefined;
@@ -14678,7 +14803,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
14678
14803
  birthdate?: string | undefined;
14679
14804
  gender?: "H" | "F" | "N/A" | undefined;
14680
14805
  addresses?: {
14681
- address_type: "main" | "delivery" | "invoice" | "other";
14806
+ address_type: "other" | "main" | "delivery" | "invoice";
14682
14807
  name?: string | undefined;
14683
14808
  number?: string | undefined;
14684
14809
  box?: string | undefined;
@@ -14994,7 +15119,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
14994
15119
  last_updated_on?: string | undefined;
14995
15120
  confirmed_on?: string | undefined;
14996
15121
  cancelled_on?: string | undefined;
14997
- status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
15122
+ status: "cancelled" | "draft" | "confirmed" | "shipped" | "refunded";
14998
15123
  discount_amount: number;
14999
15124
  untaxed_amount_without_fees: number;
15000
15125
  tax_amount_without_fees: number;
@@ -15026,6 +15151,11 @@ declare const Consumers: (internalApi: InternalAPI) => {
15026
15151
  }[] | undefined;
15027
15152
  other?: number | undefined;
15028
15153
  shipping_refunds?: {
15154
+ id: string;
15155
+ source_ref: {
15156
+ id?: string | undefined;
15157
+ model?: string | undefined;
15158
+ };
15029
15159
  untaxed_amount: number;
15030
15160
  tax_amount: number;
15031
15161
  total: number;
@@ -15061,6 +15191,11 @@ declare const Consumers: (internalApi: InternalAPI) => {
15061
15191
  gift_card?: boolean | undefined;
15062
15192
  }[];
15063
15193
  other_fees?: {
15194
+ id: string;
15195
+ source_ref: {
15196
+ id?: string | undefined;
15197
+ model?: string | undefined;
15198
+ };
15064
15199
  created_on?: string | undefined;
15065
15200
  type: "other" | "shipping";
15066
15201
  tax_rate: number;
@@ -15175,7 +15310,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
15175
15310
  last_updated_on?: string | undefined;
15176
15311
  confirmed_on?: string | undefined;
15177
15312
  cancelled_on?: string | undefined;
15178
- status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
15313
+ status: "cancelled" | "draft" | "confirmed" | "shipped" | "refunded";
15179
15314
  discount_amount: number;
15180
15315
  untaxed_amount_without_fees: number;
15181
15316
  tax_amount_without_fees: number;
@@ -15207,6 +15342,11 @@ declare const Consumers: (internalApi: InternalAPI) => {
15207
15342
  }[] | undefined;
15208
15343
  other?: number | undefined;
15209
15344
  shipping_refunds?: {
15345
+ id: string;
15346
+ source_ref: {
15347
+ id?: string | undefined;
15348
+ model?: string | undefined;
15349
+ };
15210
15350
  untaxed_amount: number;
15211
15351
  tax_amount: number;
15212
15352
  total: number;
@@ -15242,6 +15382,11 @@ declare const Consumers: (internalApi: InternalAPI) => {
15242
15382
  gift_card?: boolean | undefined;
15243
15383
  }[];
15244
15384
  other_fees?: {
15385
+ id: string;
15386
+ source_ref: {
15387
+ id?: string | undefined;
15388
+ model?: string | undefined;
15389
+ };
15245
15390
  created_on?: string | undefined;
15246
15391
  type: "other" | "shipping";
15247
15392
  tax_rate: number;
@@ -15315,7 +15460,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
15315
15460
  last_updated_on?: string | undefined;
15316
15461
  confirmed_on?: string | undefined;
15317
15462
  cancelled_on?: string | undefined;
15318
- status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
15463
+ status: "cancelled" | "draft" | "confirmed" | "shipped" | "refunded";
15319
15464
  discount_amount: number;
15320
15465
  untaxed_amount_without_fees: number;
15321
15466
  tax_amount_without_fees: number;
@@ -15347,6 +15492,11 @@ declare const Consumers: (internalApi: InternalAPI) => {
15347
15492
  }[] | undefined;
15348
15493
  other?: number | undefined;
15349
15494
  shipping_refunds?: {
15495
+ id: string;
15496
+ source_ref: {
15497
+ id?: string | undefined;
15498
+ model?: string | undefined;
15499
+ };
15350
15500
  untaxed_amount: number;
15351
15501
  tax_amount: number;
15352
15502
  total: number;
@@ -15382,6 +15532,11 @@ declare const Consumers: (internalApi: InternalAPI) => {
15382
15532
  gift_card?: boolean | undefined;
15383
15533
  }[];
15384
15534
  other_fees?: {
15535
+ id: string;
15536
+ source_ref: {
15537
+ id?: string | undefined;
15538
+ model?: string | undefined;
15539
+ };
15385
15540
  created_on?: string | undefined;
15386
15541
  type: "other" | "shipping";
15387
15542
  tax_rate: number;