@chift/chift-nodejs 1.0.22 → 1.0.23

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.
@@ -78,7 +78,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
78
78
  date_from: string;
79
79
  date_to: string;
80
80
  location_id?: string | undefined;
81
- state?: "open" | "closed" | "all" | undefined;
81
+ state?: "all" | "open" | "closed" | undefined;
82
82
  }): import("../types/api").RequestData<{
83
83
  id: string;
84
84
  order_number?: string | undefined;
@@ -97,11 +97,11 @@ declare const Consumers: (internalApi: InternalAPI) => {
97
97
  loyalty?: number | undefined;
98
98
  customer_id?: string | undefined;
99
99
  location_id?: string | undefined;
100
- taxes?: {
100
+ taxes: {
101
101
  tax_rate: number;
102
102
  tax_amount: number;
103
103
  total: number;
104
- }[] | undefined;
104
+ }[];
105
105
  guests?: number | undefined;
106
106
  payments: {
107
107
  id?: string | undefined;
@@ -144,7 +144,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
144
144
  phone?: string | undefined;
145
145
  email?: string | undefined;
146
146
  created_on?: string | undefined;
147
- addresses?: {
147
+ addresses: {
148
148
  address_type?: string | undefined;
149
149
  name?: string | undefined;
150
150
  street?: string | undefined;
@@ -153,7 +153,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
153
153
  city?: string | undefined;
154
154
  postal_code?: string | undefined;
155
155
  country?: string | undefined;
156
- }[] | undefined;
156
+ }[];
157
157
  loyalty?: number | undefined;
158
158
  birthdate?: string | undefined;
159
159
  }[]>;
@@ -175,11 +175,11 @@ declare const Consumers: (internalApi: InternalAPI) => {
175
175
  loyalty?: number | undefined;
176
176
  customer_id?: string | undefined;
177
177
  location_id?: string | undefined;
178
- taxes?: {
178
+ taxes: {
179
179
  tax_rate: number;
180
180
  tax_amount: number;
181
181
  total: number;
182
- }[] | undefined;
182
+ }[];
183
183
  guests?: number | undefined;
184
184
  payments: {
185
185
  id?: string | undefined;
@@ -218,7 +218,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
218
218
  phone?: string | undefined;
219
219
  email?: string | undefined;
220
220
  created_on?: string | undefined;
221
- addresses?: {
221
+ addresses: {
222
222
  address_type?: string | undefined;
223
223
  name?: string | undefined;
224
224
  street?: string | undefined;
@@ -227,7 +227,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
227
227
  city?: string | undefined;
228
228
  postal_code?: string | undefined;
229
229
  country?: string | undefined;
230
- }[] | undefined;
230
+ }[];
231
231
  loyalty?: number | undefined;
232
232
  birthdate?: string | undefined;
233
233
  }>;
@@ -253,7 +253,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
253
253
  phone?: string | undefined;
254
254
  email?: string | undefined;
255
255
  created_on?: string | undefined;
256
- addresses?: {
256
+ addresses: {
257
257
  address_type?: string | undefined;
258
258
  name?: string | undefined;
259
259
  street?: string | undefined;
@@ -262,7 +262,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
262
262
  city?: string | undefined;
263
263
  postal_code?: string | undefined;
264
264
  country?: string | undefined;
265
- }[] | undefined;
265
+ }[];
266
266
  loyalty?: number | undefined;
267
267
  birthdate?: string | undefined;
268
268
  }>;
@@ -305,11 +305,11 @@ declare const Consumers: (internalApi: InternalAPI) => {
305
305
  }): import("../types/api").RequestData<{
306
306
  total: number;
307
307
  tax_amount: number;
308
- taxes?: {
308
+ taxes: {
309
309
  tax_rate: number;
310
310
  tax_amount: number;
311
311
  total: number;
312
- }[] | undefined;
312
+ }[];
313
313
  }>;
314
314
  getClosure(date: string, params?: {
315
315
  location_id?: string | undefined;
@@ -350,11 +350,11 @@ declare const Consumers: (internalApi: InternalAPI) => {
350
350
  loyalty?: number | undefined;
351
351
  customer_id?: string | undefined;
352
352
  location_id?: string | undefined;
353
- taxes?: {
353
+ taxes: {
354
354
  tax_rate: number;
355
355
  tax_amount: number;
356
356
  total: number;
357
- }[] | undefined;
357
+ }[];
358
358
  guests?: number | undefined;
359
359
  payments: {
360
360
  id?: string | undefined;
@@ -438,11 +438,11 @@ declare const Consumers: (internalApi: InternalAPI) => {
438
438
  loyalty?: number | undefined;
439
439
  customer_id?: string | undefined;
440
440
  location_id?: string | undefined;
441
- taxes?: {
441
+ taxes: {
442
442
  tax_rate: number;
443
443
  tax_amount: number;
444
444
  total: number;
445
- }[] | undefined;
445
+ }[];
446
446
  guests?: number | undefined;
447
447
  items: {
448
448
  id: string;
@@ -1277,6 +1277,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
1277
1277
  folder_id?: string | undefined;
1278
1278
  force_financial_period?: string | undefined;
1279
1279
  regroup_lines?: "true" | "false" | undefined;
1280
+ force_currency_exchange?: "true" | "false" | undefined;
1280
1281
  } | undefined): import("../types/api").RequestData<{
1281
1282
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
1282
1283
  invoice_number?: string | undefined;
@@ -1380,6 +1381,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
1380
1381
  folder_id?: string | undefined;
1381
1382
  force_financial_period?: string | undefined;
1382
1383
  regroup_lines?: "true" | "false" | undefined;
1384
+ force_currency_exchange?: "true" | "false" | undefined;
1383
1385
  } | undefined): import("../types/api").RequestData<{
1384
1386
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
1385
1387
  invoice_number?: string | undefined;
@@ -1894,7 +1896,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
1894
1896
  line_number: number;
1895
1897
  description?: string | undefined;
1896
1898
  amount: number;
1897
- type: "customer_account" | "general_account" | "supplier_account";
1899
+ type: "customer_account" | "supplier_account" | "general_account";
1898
1900
  account_number: string;
1899
1901
  partner_id?: string | undefined;
1900
1902
  analytic_account?: string | undefined;
@@ -1912,7 +1914,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
1912
1914
  line_number: number;
1913
1915
  description?: string | undefined;
1914
1916
  amount: number;
1915
- type: "customer_account" | "general_account" | "supplier_account";
1917
+ type: "customer_account" | "supplier_account" | "general_account";
1916
1918
  account_number: string;
1917
1919
  partner_id?: string | undefined;
1918
1920
  analytic_account?: string | undefined;
@@ -1930,7 +1932,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
1930
1932
  line_number: number;
1931
1933
  description?: string | undefined;
1932
1934
  amount: number;
1933
- type: "customer_account" | "general_account" | "supplier_account";
1935
+ type: "customer_account" | "supplier_account" | "general_account";
1934
1936
  account_number: string;
1935
1937
  partner_id?: string | undefined;
1936
1938
  analytic_account?: string | undefined;
@@ -1950,7 +1952,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
1950
1952
  line_number: number;
1951
1953
  description?: string | undefined;
1952
1954
  amount: number;
1953
- type: "customer_account" | "general_account" | "supplier_account";
1955
+ type: "customer_account" | "supplier_account" | "general_account";
1954
1956
  account_number: string;
1955
1957
  partner_id?: string | undefined;
1956
1958
  analytic_account?: string | undefined;
@@ -1969,9 +1971,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
1969
1971
  headers: {
1970
1972
  [name: string]: unknown;
1971
1973
  };
1972
- content: {
1973
- 'application/json': unknown;
1974
- };
1974
+ content?: undefined;
1975
1975
  }>;
1976
1976
  getAttachments(params: {
1977
1977
  folder_id?: string | undefined;
@@ -2059,7 +2059,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
2059
2059
  reference?: string | undefined;
2060
2060
  number?: string | undefined;
2061
2061
  items: {
2062
- type: "customer_account" | "general_account" | "supplier_account" | "employee_account";
2062
+ type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
2063
2063
  account_number: string;
2064
2064
  partner_id?: string | undefined;
2065
2065
  amount: number;
@@ -2069,6 +2069,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
2069
2069
  }, params?: {
2070
2070
  folder_id?: string | undefined;
2071
2071
  financial_counterpart_account?: string | undefined;
2072
+ force_currency_exchange?: "true" | "false" | undefined;
2072
2073
  } | undefined): import("../types/api").RequestData<{
2073
2074
  date: string;
2074
2075
  journal_id: string;
@@ -2078,7 +2079,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
2078
2079
  id: string;
2079
2080
  number: string;
2080
2081
  items: {
2081
- type: "customer_account" | "general_account" | "supplier_account" | "employee_account";
2082
+ type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
2082
2083
  account_number: string;
2083
2084
  partner_id?: string | undefined;
2084
2085
  amount: number;
@@ -2094,7 +2095,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
2094
2095
  reference?: string | undefined;
2095
2096
  number?: string | undefined;
2096
2097
  items: {
2097
- account_type: "customer_account" | "general_account" | "supplier_account" | "employee_account";
2098
+ account_type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
2098
2099
  account: string;
2099
2100
  amount: number;
2100
2101
  description?: string | undefined;
@@ -2103,6 +2104,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
2103
2104
  }, params?: {
2104
2105
  folder_id?: string | undefined;
2105
2106
  financial_counterpart_account?: string | undefined;
2107
+ force_currency_exchange?: "true" | "false" | undefined;
2106
2108
  } | undefined): import("../types/api").RequestData<{
2107
2109
  date: string;
2108
2110
  journal_id: string;
@@ -2112,13 +2114,13 @@ declare const Consumers: (internalApi: InternalAPI) => {
2112
2114
  id: string;
2113
2115
  number: string;
2114
2116
  items: {
2115
- account_type: "customer_account" | "general_account" | "supplier_account" | "employee_account";
2117
+ account_type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
2116
2118
  account: string;
2117
2119
  amount: number;
2118
2120
  description?: string | undefined;
2119
2121
  counterpart_account: string;
2120
2122
  }[];
2121
- }[]>;
2123
+ }>;
2122
2124
  createJournalEntryOld(journal_entry: {
2123
2125
  reference?: string | undefined;
2124
2126
  due_date?: string | undefined;
@@ -2181,7 +2183,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
2181
2183
  currency_exchange_rate: number;
2182
2184
  date: string;
2183
2185
  items: {
2184
- account_type: "customer_account" | "general_account" | "supplier_account" | "employee_account";
2186
+ account_type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
2185
2187
  account: string;
2186
2188
  force_general_account?: string | undefined;
2187
2189
  prioritise_thirdparty_account: boolean;
@@ -2270,6 +2272,49 @@ declare const Consumers: (internalApi: InternalAPI) => {
2270
2272
  end: string;
2271
2273
  closed: boolean;
2272
2274
  }[]>;
2275
+ createLedgerAccount(account: {
2276
+ name: string;
2277
+ number: string;
2278
+ }, params?: {
2279
+ folder_id?: string | undefined;
2280
+ } | undefined): import("../types/api").RequestData<{
2281
+ number: string;
2282
+ name: string;
2283
+ active: boolean;
2284
+ type?: "vat" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | "other" | undefined;
2285
+ }>;
2286
+ getJournalEntry(journalEntryId: string, params?: {
2287
+ folder_id?: string | undefined;
2288
+ } | undefined): import("../types/api").RequestData<{
2289
+ reference?: string | undefined;
2290
+ due_date?: string | undefined;
2291
+ journal_id: string;
2292
+ name?: string | undefined;
2293
+ journal_name: string;
2294
+ date: string;
2295
+ posted: boolean;
2296
+ id: string;
2297
+ items: {
2298
+ account_number: string;
2299
+ partner_id?: string | undefined;
2300
+ description?: string | undefined;
2301
+ debit: number;
2302
+ credit: number;
2303
+ currency: string;
2304
+ currency_exchange_rate: number;
2305
+ id: string;
2306
+ partner_name?: string | undefined;
2307
+ account_name: string;
2308
+ matching_numbers: string[];
2309
+ analytic_distribution: {
2310
+ analytic_plan: string;
2311
+ analytic_accounts: {
2312
+ analytic_account: string;
2313
+ percentage: number;
2314
+ }[];
2315
+ }[];
2316
+ }[];
2317
+ }>;
2273
2318
  }>;
2274
2319
  invoicing: import("../types/api").ApiFor<{
2275
2320
  getInvoices(params?: {
@@ -2667,7 +2712,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
2667
2712
  } | undefined;
2668
2713
  }>;
2669
2714
  getContacts(params?: {
2670
- contact_type?: "all" | "supplier" | "prospect" | "customer" | undefined;
2715
+ contact_type?: "supplier" | "all" | "prospect" | "customer" | undefined;
2671
2716
  } | undefined): import("../types/api").RequestData<{
2672
2717
  id: string;
2673
2718
  source_ref: {
@@ -4112,7 +4157,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
4112
4157
  date_from: string;
4113
4158
  date_to: string;
4114
4159
  location_id?: string | undefined;
4115
- state?: "open" | "closed" | "all" | undefined;
4160
+ state?: "all" | "open" | "closed" | undefined;
4116
4161
  }): import("../types/api").RequestData<{
4117
4162
  id: string;
4118
4163
  order_number?: string | undefined;
@@ -4131,11 +4176,11 @@ declare const Consumers: (internalApi: InternalAPI) => {
4131
4176
  loyalty?: number | undefined;
4132
4177
  customer_id?: string | undefined;
4133
4178
  location_id?: string | undefined;
4134
- taxes?: {
4179
+ taxes: {
4135
4180
  tax_rate: number;
4136
4181
  tax_amount: number;
4137
4182
  total: number;
4138
- }[] | undefined;
4183
+ }[];
4139
4184
  guests?: number | undefined;
4140
4185
  payments: {
4141
4186
  id?: string | undefined;
@@ -4178,7 +4223,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
4178
4223
  phone?: string | undefined;
4179
4224
  email?: string | undefined;
4180
4225
  created_on?: string | undefined;
4181
- addresses?: {
4226
+ addresses: {
4182
4227
  address_type?: string | undefined;
4183
4228
  name?: string | undefined;
4184
4229
  street?: string | undefined;
@@ -4187,7 +4232,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
4187
4232
  city?: string | undefined;
4188
4233
  postal_code?: string | undefined;
4189
4234
  country?: string | undefined;
4190
- }[] | undefined;
4235
+ }[];
4191
4236
  loyalty?: number | undefined;
4192
4237
  birthdate?: string | undefined;
4193
4238
  }[]>;
@@ -4209,11 +4254,11 @@ declare const Consumers: (internalApi: InternalAPI) => {
4209
4254
  loyalty?: number | undefined;
4210
4255
  customer_id?: string | undefined;
4211
4256
  location_id?: string | undefined;
4212
- taxes?: {
4257
+ taxes: {
4213
4258
  tax_rate: number;
4214
4259
  tax_amount: number;
4215
4260
  total: number;
4216
- }[] | undefined;
4261
+ }[];
4217
4262
  guests?: number | undefined;
4218
4263
  payments: {
4219
4264
  id?: string | undefined;
@@ -4252,7 +4297,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
4252
4297
  phone?: string | undefined;
4253
4298
  email?: string | undefined;
4254
4299
  created_on?: string | undefined;
4255
- addresses?: {
4300
+ addresses: {
4256
4301
  address_type?: string | undefined;
4257
4302
  name?: string | undefined;
4258
4303
  street?: string | undefined;
@@ -4261,7 +4306,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
4261
4306
  city?: string | undefined;
4262
4307
  postal_code?: string | undefined;
4263
4308
  country?: string | undefined;
4264
- }[] | undefined;
4309
+ }[];
4265
4310
  loyalty?: number | undefined;
4266
4311
  birthdate?: string | undefined;
4267
4312
  }>;
@@ -4287,7 +4332,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
4287
4332
  phone?: string | undefined;
4288
4333
  email?: string | undefined;
4289
4334
  created_on?: string | undefined;
4290
- addresses?: {
4335
+ addresses: {
4291
4336
  address_type?: string | undefined;
4292
4337
  name?: string | undefined;
4293
4338
  street?: string | undefined;
@@ -4296,7 +4341,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
4296
4341
  city?: string | undefined;
4297
4342
  postal_code?: string | undefined;
4298
4343
  country?: string | undefined;
4299
- }[] | undefined;
4344
+ }[];
4300
4345
  loyalty?: number | undefined;
4301
4346
  birthdate?: string | undefined;
4302
4347
  }>;
@@ -4339,11 +4384,11 @@ declare const Consumers: (internalApi: InternalAPI) => {
4339
4384
  }): import("../types/api").RequestData<{
4340
4385
  total: number;
4341
4386
  tax_amount: number;
4342
- taxes?: {
4387
+ taxes: {
4343
4388
  tax_rate: number;
4344
4389
  tax_amount: number;
4345
4390
  total: number;
4346
- }[] | undefined;
4391
+ }[];
4347
4392
  }>;
4348
4393
  getClosure(date: string, params?: {
4349
4394
  location_id?: string | undefined;
@@ -4384,11 +4429,11 @@ declare const Consumers: (internalApi: InternalAPI) => {
4384
4429
  loyalty?: number | undefined;
4385
4430
  customer_id?: string | undefined;
4386
4431
  location_id?: string | undefined;
4387
- taxes?: {
4432
+ taxes: {
4388
4433
  tax_rate: number;
4389
4434
  tax_amount: number;
4390
4435
  total: number;
4391
- }[] | undefined;
4436
+ }[];
4392
4437
  guests?: number | undefined;
4393
4438
  payments: {
4394
4439
  id?: string | undefined;
@@ -4472,11 +4517,11 @@ declare const Consumers: (internalApi: InternalAPI) => {
4472
4517
  loyalty?: number | undefined;
4473
4518
  customer_id?: string | undefined;
4474
4519
  location_id?: string | undefined;
4475
- taxes?: {
4520
+ taxes: {
4476
4521
  tax_rate: number;
4477
4522
  tax_amount: number;
4478
4523
  total: number;
4479
- }[] | undefined;
4524
+ }[];
4480
4525
  guests?: number | undefined;
4481
4526
  items: {
4482
4527
  id: string;
@@ -5311,6 +5356,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
5311
5356
  folder_id?: string | undefined;
5312
5357
  force_financial_period?: string | undefined;
5313
5358
  regroup_lines?: "true" | "false" | undefined;
5359
+ force_currency_exchange?: "true" | "false" | undefined;
5314
5360
  } | undefined): import("../types/api").RequestData<{
5315
5361
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
5316
5362
  invoice_number?: string | undefined;
@@ -5414,6 +5460,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
5414
5460
  folder_id?: string | undefined;
5415
5461
  force_financial_period?: string | undefined;
5416
5462
  regroup_lines?: "true" | "false" | undefined;
5463
+ force_currency_exchange?: "true" | "false" | undefined;
5417
5464
  } | undefined): import("../types/api").RequestData<{
5418
5465
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
5419
5466
  invoice_number?: string | undefined;
@@ -5928,7 +5975,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
5928
5975
  line_number: number;
5929
5976
  description?: string | undefined;
5930
5977
  amount: number;
5931
- type: "customer_account" | "general_account" | "supplier_account";
5978
+ type: "customer_account" | "supplier_account" | "general_account";
5932
5979
  account_number: string;
5933
5980
  partner_id?: string | undefined;
5934
5981
  analytic_account?: string | undefined;
@@ -5946,7 +5993,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
5946
5993
  line_number: number;
5947
5994
  description?: string | undefined;
5948
5995
  amount: number;
5949
- type: "customer_account" | "general_account" | "supplier_account";
5996
+ type: "customer_account" | "supplier_account" | "general_account";
5950
5997
  account_number: string;
5951
5998
  partner_id?: string | undefined;
5952
5999
  analytic_account?: string | undefined;
@@ -5964,7 +6011,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
5964
6011
  line_number: number;
5965
6012
  description?: string | undefined;
5966
6013
  amount: number;
5967
- type: "customer_account" | "general_account" | "supplier_account";
6014
+ type: "customer_account" | "supplier_account" | "general_account";
5968
6015
  account_number: string;
5969
6016
  partner_id?: string | undefined;
5970
6017
  analytic_account?: string | undefined;
@@ -5984,7 +6031,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
5984
6031
  line_number: number;
5985
6032
  description?: string | undefined;
5986
6033
  amount: number;
5987
- type: "customer_account" | "general_account" | "supplier_account";
6034
+ type: "customer_account" | "supplier_account" | "general_account";
5988
6035
  account_number: string;
5989
6036
  partner_id?: string | undefined;
5990
6037
  analytic_account?: string | undefined;
@@ -6003,9 +6050,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
6003
6050
  headers: {
6004
6051
  [name: string]: unknown;
6005
6052
  };
6006
- content: {
6007
- 'application/json': unknown;
6008
- };
6053
+ content?: undefined;
6009
6054
  }>;
6010
6055
  getAttachments(params: {
6011
6056
  folder_id?: string | undefined;
@@ -6093,7 +6138,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
6093
6138
  reference?: string | undefined;
6094
6139
  number?: string | undefined;
6095
6140
  items: {
6096
- type: "customer_account" | "general_account" | "supplier_account" | "employee_account";
6141
+ type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
6097
6142
  account_number: string;
6098
6143
  partner_id?: string | undefined;
6099
6144
  amount: number;
@@ -6103,6 +6148,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
6103
6148
  }, params?: {
6104
6149
  folder_id?: string | undefined;
6105
6150
  financial_counterpart_account?: string | undefined;
6151
+ force_currency_exchange?: "true" | "false" | undefined;
6106
6152
  } | undefined): import("../types/api").RequestData<{
6107
6153
  date: string;
6108
6154
  journal_id: string;
@@ -6112,7 +6158,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
6112
6158
  id: string;
6113
6159
  number: string;
6114
6160
  items: {
6115
- type: "customer_account" | "general_account" | "supplier_account" | "employee_account";
6161
+ type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
6116
6162
  account_number: string;
6117
6163
  partner_id?: string | undefined;
6118
6164
  amount: number;
@@ -6128,7 +6174,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
6128
6174
  reference?: string | undefined;
6129
6175
  number?: string | undefined;
6130
6176
  items: {
6131
- account_type: "customer_account" | "general_account" | "supplier_account" | "employee_account";
6177
+ account_type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
6132
6178
  account: string;
6133
6179
  amount: number;
6134
6180
  description?: string | undefined;
@@ -6137,6 +6183,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
6137
6183
  }, params?: {
6138
6184
  folder_id?: string | undefined;
6139
6185
  financial_counterpart_account?: string | undefined;
6186
+ force_currency_exchange?: "true" | "false" | undefined;
6140
6187
  } | undefined): import("../types/api").RequestData<{
6141
6188
  date: string;
6142
6189
  journal_id: string;
@@ -6146,13 +6193,13 @@ declare const Consumers: (internalApi: InternalAPI) => {
6146
6193
  id: string;
6147
6194
  number: string;
6148
6195
  items: {
6149
- account_type: "customer_account" | "general_account" | "supplier_account" | "employee_account";
6196
+ account_type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
6150
6197
  account: string;
6151
6198
  amount: number;
6152
6199
  description?: string | undefined;
6153
6200
  counterpart_account: string;
6154
6201
  }[];
6155
- }[]>;
6202
+ }>;
6156
6203
  createJournalEntryOld(journal_entry: {
6157
6204
  reference?: string | undefined;
6158
6205
  due_date?: string | undefined;
@@ -6215,7 +6262,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
6215
6262
  currency_exchange_rate: number;
6216
6263
  date: string;
6217
6264
  items: {
6218
- account_type: "customer_account" | "general_account" | "supplier_account" | "employee_account";
6265
+ account_type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
6219
6266
  account: string;
6220
6267
  force_general_account?: string | undefined;
6221
6268
  prioritise_thirdparty_account: boolean;
@@ -6304,6 +6351,49 @@ declare const Consumers: (internalApi: InternalAPI) => {
6304
6351
  end: string;
6305
6352
  closed: boolean;
6306
6353
  }[]>;
6354
+ createLedgerAccount(account: {
6355
+ name: string;
6356
+ number: string;
6357
+ }, params?: {
6358
+ folder_id?: string | undefined;
6359
+ } | undefined): import("../types/api").RequestData<{
6360
+ number: string;
6361
+ name: string;
6362
+ active: boolean;
6363
+ type?: "vat" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | "other" | undefined;
6364
+ }>;
6365
+ getJournalEntry(journalEntryId: string, params?: {
6366
+ folder_id?: string | undefined;
6367
+ } | undefined): import("../types/api").RequestData<{
6368
+ reference?: string | undefined;
6369
+ due_date?: string | undefined;
6370
+ journal_id: string;
6371
+ name?: string | undefined;
6372
+ journal_name: string;
6373
+ date: string;
6374
+ posted: boolean;
6375
+ id: string;
6376
+ items: {
6377
+ account_number: string;
6378
+ partner_id?: string | undefined;
6379
+ description?: string | undefined;
6380
+ debit: number;
6381
+ credit: number;
6382
+ currency: string;
6383
+ currency_exchange_rate: number;
6384
+ id: string;
6385
+ partner_name?: string | undefined;
6386
+ account_name: string;
6387
+ matching_numbers: string[];
6388
+ analytic_distribution: {
6389
+ analytic_plan: string;
6390
+ analytic_accounts: {
6391
+ analytic_account: string;
6392
+ percentage: number;
6393
+ }[];
6394
+ }[];
6395
+ }[];
6396
+ }>;
6307
6397
  }>;
6308
6398
  invoicing: import("../types/api").ApiFor<{
6309
6399
  getInvoices(params?: {
@@ -6701,7 +6791,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
6701
6791
  } | undefined;
6702
6792
  }>;
6703
6793
  getContacts(params?: {
6704
- contact_type?: "all" | "supplier" | "prospect" | "customer" | undefined;
6794
+ contact_type?: "supplier" | "all" | "prospect" | "customer" | undefined;
6705
6795
  } | undefined): import("../types/api").RequestData<{
6706
6796
  id: string;
6707
6797
  source_ref: {
@@ -8146,7 +8236,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
8146
8236
  date_from: string;
8147
8237
  date_to: string;
8148
8238
  location_id?: string | undefined;
8149
- state?: "open" | "closed" | "all" | undefined;
8239
+ state?: "all" | "open" | "closed" | undefined;
8150
8240
  }): import("../types/api").RequestData<{
8151
8241
  id: string;
8152
8242
  order_number?: string | undefined;
@@ -8165,11 +8255,11 @@ declare const Consumers: (internalApi: InternalAPI) => {
8165
8255
  loyalty?: number | undefined;
8166
8256
  customer_id?: string | undefined;
8167
8257
  location_id?: string | undefined;
8168
- taxes?: {
8258
+ taxes: {
8169
8259
  tax_rate: number;
8170
8260
  tax_amount: number;
8171
8261
  total: number;
8172
- }[] | undefined;
8262
+ }[];
8173
8263
  guests?: number | undefined;
8174
8264
  payments: {
8175
8265
  id?: string | undefined;
@@ -8212,7 +8302,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
8212
8302
  phone?: string | undefined;
8213
8303
  email?: string | undefined;
8214
8304
  created_on?: string | undefined;
8215
- addresses?: {
8305
+ addresses: {
8216
8306
  address_type?: string | undefined;
8217
8307
  name?: string | undefined;
8218
8308
  street?: string | undefined;
@@ -8221,7 +8311,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
8221
8311
  city?: string | undefined;
8222
8312
  postal_code?: string | undefined;
8223
8313
  country?: string | undefined;
8224
- }[] | undefined;
8314
+ }[];
8225
8315
  loyalty?: number | undefined;
8226
8316
  birthdate?: string | undefined;
8227
8317
  }[]>;
@@ -8243,11 +8333,11 @@ declare const Consumers: (internalApi: InternalAPI) => {
8243
8333
  loyalty?: number | undefined;
8244
8334
  customer_id?: string | undefined;
8245
8335
  location_id?: string | undefined;
8246
- taxes?: {
8336
+ taxes: {
8247
8337
  tax_rate: number;
8248
8338
  tax_amount: number;
8249
8339
  total: number;
8250
- }[] | undefined;
8340
+ }[];
8251
8341
  guests?: number | undefined;
8252
8342
  payments: {
8253
8343
  id?: string | undefined;
@@ -8286,7 +8376,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
8286
8376
  phone?: string | undefined;
8287
8377
  email?: string | undefined;
8288
8378
  created_on?: string | undefined;
8289
- addresses?: {
8379
+ addresses: {
8290
8380
  address_type?: string | undefined;
8291
8381
  name?: string | undefined;
8292
8382
  street?: string | undefined;
@@ -8295,7 +8385,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
8295
8385
  city?: string | undefined;
8296
8386
  postal_code?: string | undefined;
8297
8387
  country?: string | undefined;
8298
- }[] | undefined;
8388
+ }[];
8299
8389
  loyalty?: number | undefined;
8300
8390
  birthdate?: string | undefined;
8301
8391
  }>;
@@ -8321,7 +8411,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
8321
8411
  phone?: string | undefined;
8322
8412
  email?: string | undefined;
8323
8413
  created_on?: string | undefined;
8324
- addresses?: {
8414
+ addresses: {
8325
8415
  address_type?: string | undefined;
8326
8416
  name?: string | undefined;
8327
8417
  street?: string | undefined;
@@ -8330,7 +8420,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
8330
8420
  city?: string | undefined;
8331
8421
  postal_code?: string | undefined;
8332
8422
  country?: string | undefined;
8333
- }[] | undefined;
8423
+ }[];
8334
8424
  loyalty?: number | undefined;
8335
8425
  birthdate?: string | undefined;
8336
8426
  }>;
@@ -8373,11 +8463,11 @@ declare const Consumers: (internalApi: InternalAPI) => {
8373
8463
  }): import("../types/api").RequestData<{
8374
8464
  total: number;
8375
8465
  tax_amount: number;
8376
- taxes?: {
8466
+ taxes: {
8377
8467
  tax_rate: number;
8378
8468
  tax_amount: number;
8379
8469
  total: number;
8380
- }[] | undefined;
8470
+ }[];
8381
8471
  }>;
8382
8472
  getClosure(date: string, params?: {
8383
8473
  location_id?: string | undefined;
@@ -8418,11 +8508,11 @@ declare const Consumers: (internalApi: InternalAPI) => {
8418
8508
  loyalty?: number | undefined;
8419
8509
  customer_id?: string | undefined;
8420
8510
  location_id?: string | undefined;
8421
- taxes?: {
8511
+ taxes: {
8422
8512
  tax_rate: number;
8423
8513
  tax_amount: number;
8424
8514
  total: number;
8425
- }[] | undefined;
8515
+ }[];
8426
8516
  guests?: number | undefined;
8427
8517
  payments: {
8428
8518
  id?: string | undefined;
@@ -8506,11 +8596,11 @@ declare const Consumers: (internalApi: InternalAPI) => {
8506
8596
  loyalty?: number | undefined;
8507
8597
  customer_id?: string | undefined;
8508
8598
  location_id?: string | undefined;
8509
- taxes?: {
8599
+ taxes: {
8510
8600
  tax_rate: number;
8511
8601
  tax_amount: number;
8512
8602
  total: number;
8513
- }[] | undefined;
8603
+ }[];
8514
8604
  guests?: number | undefined;
8515
8605
  items: {
8516
8606
  id: string;
@@ -9345,6 +9435,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
9345
9435
  folder_id?: string | undefined;
9346
9436
  force_financial_period?: string | undefined;
9347
9437
  regroup_lines?: "true" | "false" | undefined;
9438
+ force_currency_exchange?: "true" | "false" | undefined;
9348
9439
  } | undefined): import("../types/api").RequestData<{
9349
9440
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
9350
9441
  invoice_number?: string | undefined;
@@ -9448,6 +9539,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
9448
9539
  folder_id?: string | undefined;
9449
9540
  force_financial_period?: string | undefined;
9450
9541
  regroup_lines?: "true" | "false" | undefined;
9542
+ force_currency_exchange?: "true" | "false" | undefined;
9451
9543
  } | undefined): import("../types/api").RequestData<{
9452
9544
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
9453
9545
  invoice_number?: string | undefined;
@@ -9962,7 +10054,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
9962
10054
  line_number: number;
9963
10055
  description?: string | undefined;
9964
10056
  amount: number;
9965
- type: "customer_account" | "general_account" | "supplier_account";
10057
+ type: "customer_account" | "supplier_account" | "general_account";
9966
10058
  account_number: string;
9967
10059
  partner_id?: string | undefined;
9968
10060
  analytic_account?: string | undefined;
@@ -9980,7 +10072,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
9980
10072
  line_number: number;
9981
10073
  description?: string | undefined;
9982
10074
  amount: number;
9983
- type: "customer_account" | "general_account" | "supplier_account";
10075
+ type: "customer_account" | "supplier_account" | "general_account";
9984
10076
  account_number: string;
9985
10077
  partner_id?: string | undefined;
9986
10078
  analytic_account?: string | undefined;
@@ -9998,7 +10090,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
9998
10090
  line_number: number;
9999
10091
  description?: string | undefined;
10000
10092
  amount: number;
10001
- type: "customer_account" | "general_account" | "supplier_account";
10093
+ type: "customer_account" | "supplier_account" | "general_account";
10002
10094
  account_number: string;
10003
10095
  partner_id?: string | undefined;
10004
10096
  analytic_account?: string | undefined;
@@ -10018,7 +10110,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
10018
10110
  line_number: number;
10019
10111
  description?: string | undefined;
10020
10112
  amount: number;
10021
- type: "customer_account" | "general_account" | "supplier_account";
10113
+ type: "customer_account" | "supplier_account" | "general_account";
10022
10114
  account_number: string;
10023
10115
  partner_id?: string | undefined;
10024
10116
  analytic_account?: string | undefined;
@@ -10037,9 +10129,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
10037
10129
  headers: {
10038
10130
  [name: string]: unknown;
10039
10131
  };
10040
- content: {
10041
- 'application/json': unknown;
10042
- };
10132
+ content?: undefined;
10043
10133
  }>;
10044
10134
  getAttachments(params: {
10045
10135
  folder_id?: string | undefined;
@@ -10127,7 +10217,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
10127
10217
  reference?: string | undefined;
10128
10218
  number?: string | undefined;
10129
10219
  items: {
10130
- type: "customer_account" | "general_account" | "supplier_account" | "employee_account";
10220
+ type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
10131
10221
  account_number: string;
10132
10222
  partner_id?: string | undefined;
10133
10223
  amount: number;
@@ -10137,6 +10227,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
10137
10227
  }, params?: {
10138
10228
  folder_id?: string | undefined;
10139
10229
  financial_counterpart_account?: string | undefined;
10230
+ force_currency_exchange?: "true" | "false" | undefined;
10140
10231
  } | undefined): import("../types/api").RequestData<{
10141
10232
  date: string;
10142
10233
  journal_id: string;
@@ -10146,7 +10237,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
10146
10237
  id: string;
10147
10238
  number: string;
10148
10239
  items: {
10149
- type: "customer_account" | "general_account" | "supplier_account" | "employee_account";
10240
+ type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
10150
10241
  account_number: string;
10151
10242
  partner_id?: string | undefined;
10152
10243
  amount: number;
@@ -10162,7 +10253,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
10162
10253
  reference?: string | undefined;
10163
10254
  number?: string | undefined;
10164
10255
  items: {
10165
- account_type: "customer_account" | "general_account" | "supplier_account" | "employee_account";
10256
+ account_type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
10166
10257
  account: string;
10167
10258
  amount: number;
10168
10259
  description?: string | undefined;
@@ -10171,6 +10262,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
10171
10262
  }, params?: {
10172
10263
  folder_id?: string | undefined;
10173
10264
  financial_counterpart_account?: string | undefined;
10265
+ force_currency_exchange?: "true" | "false" | undefined;
10174
10266
  } | undefined): import("../types/api").RequestData<{
10175
10267
  date: string;
10176
10268
  journal_id: string;
@@ -10180,13 +10272,13 @@ declare const Consumers: (internalApi: InternalAPI) => {
10180
10272
  id: string;
10181
10273
  number: string;
10182
10274
  items: {
10183
- account_type: "customer_account" | "general_account" | "supplier_account" | "employee_account";
10275
+ account_type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
10184
10276
  account: string;
10185
10277
  amount: number;
10186
10278
  description?: string | undefined;
10187
10279
  counterpart_account: string;
10188
10280
  }[];
10189
- }[]>;
10281
+ }>;
10190
10282
  createJournalEntryOld(journal_entry: {
10191
10283
  reference?: string | undefined;
10192
10284
  due_date?: string | undefined;
@@ -10249,7 +10341,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
10249
10341
  currency_exchange_rate: number;
10250
10342
  date: string;
10251
10343
  items: {
10252
- account_type: "customer_account" | "general_account" | "supplier_account" | "employee_account";
10344
+ account_type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
10253
10345
  account: string;
10254
10346
  force_general_account?: string | undefined;
10255
10347
  prioritise_thirdparty_account: boolean;
@@ -10338,6 +10430,49 @@ declare const Consumers: (internalApi: InternalAPI) => {
10338
10430
  end: string;
10339
10431
  closed: boolean;
10340
10432
  }[]>;
10433
+ createLedgerAccount(account: {
10434
+ name: string;
10435
+ number: string;
10436
+ }, params?: {
10437
+ folder_id?: string | undefined;
10438
+ } | undefined): import("../types/api").RequestData<{
10439
+ number: string;
10440
+ name: string;
10441
+ active: boolean;
10442
+ type?: "vat" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | "other" | undefined;
10443
+ }>;
10444
+ getJournalEntry(journalEntryId: string, params?: {
10445
+ folder_id?: string | undefined;
10446
+ } | undefined): import("../types/api").RequestData<{
10447
+ reference?: string | undefined;
10448
+ due_date?: string | undefined;
10449
+ journal_id: string;
10450
+ name?: string | undefined;
10451
+ journal_name: string;
10452
+ date: string;
10453
+ posted: boolean;
10454
+ id: string;
10455
+ items: {
10456
+ account_number: string;
10457
+ partner_id?: string | undefined;
10458
+ description?: string | undefined;
10459
+ debit: number;
10460
+ credit: number;
10461
+ currency: string;
10462
+ currency_exchange_rate: number;
10463
+ id: string;
10464
+ partner_name?: string | undefined;
10465
+ account_name: string;
10466
+ matching_numbers: string[];
10467
+ analytic_distribution: {
10468
+ analytic_plan: string;
10469
+ analytic_accounts: {
10470
+ analytic_account: string;
10471
+ percentage: number;
10472
+ }[];
10473
+ }[];
10474
+ }[];
10475
+ }>;
10341
10476
  }>;
10342
10477
  invoicing: import("../types/api").ApiFor<{
10343
10478
  getInvoices(params?: {
@@ -10735,7 +10870,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
10735
10870
  } | undefined;
10736
10871
  }>;
10737
10872
  getContacts(params?: {
10738
- contact_type?: "all" | "supplier" | "prospect" | "customer" | undefined;
10873
+ contact_type?: "supplier" | "all" | "prospect" | "customer" | undefined;
10739
10874
  } | undefined): import("../types/api").RequestData<{
10740
10875
  id: string;
10741
10876
  source_ref: {
@@ -12180,7 +12315,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
12180
12315
  date_from: string;
12181
12316
  date_to: string;
12182
12317
  location_id?: string | undefined;
12183
- state?: "open" | "closed" | "all" | undefined;
12318
+ state?: "all" | "open" | "closed" | undefined;
12184
12319
  }): import("../types/api").RequestData<{
12185
12320
  id: string;
12186
12321
  order_number?: string | undefined;
@@ -12199,11 +12334,11 @@ declare const Consumers: (internalApi: InternalAPI) => {
12199
12334
  loyalty?: number | undefined;
12200
12335
  customer_id?: string | undefined;
12201
12336
  location_id?: string | undefined;
12202
- taxes?: {
12337
+ taxes: {
12203
12338
  tax_rate: number;
12204
12339
  tax_amount: number;
12205
12340
  total: number;
12206
- }[] | undefined;
12341
+ }[];
12207
12342
  guests?: number | undefined;
12208
12343
  payments: {
12209
12344
  id?: string | undefined;
@@ -12246,7 +12381,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
12246
12381
  phone?: string | undefined;
12247
12382
  email?: string | undefined;
12248
12383
  created_on?: string | undefined;
12249
- addresses?: {
12384
+ addresses: {
12250
12385
  address_type?: string | undefined;
12251
12386
  name?: string | undefined;
12252
12387
  street?: string | undefined;
@@ -12255,7 +12390,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
12255
12390
  city?: string | undefined;
12256
12391
  postal_code?: string | undefined;
12257
12392
  country?: string | undefined;
12258
- }[] | undefined;
12393
+ }[];
12259
12394
  loyalty?: number | undefined;
12260
12395
  birthdate?: string | undefined;
12261
12396
  }[]>;
@@ -12277,11 +12412,11 @@ declare const Consumers: (internalApi: InternalAPI) => {
12277
12412
  loyalty?: number | undefined;
12278
12413
  customer_id?: string | undefined;
12279
12414
  location_id?: string | undefined;
12280
- taxes?: {
12415
+ taxes: {
12281
12416
  tax_rate: number;
12282
12417
  tax_amount: number;
12283
12418
  total: number;
12284
- }[] | undefined;
12419
+ }[];
12285
12420
  guests?: number | undefined;
12286
12421
  payments: {
12287
12422
  id?: string | undefined;
@@ -12320,7 +12455,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
12320
12455
  phone?: string | undefined;
12321
12456
  email?: string | undefined;
12322
12457
  created_on?: string | undefined;
12323
- addresses?: {
12458
+ addresses: {
12324
12459
  address_type?: string | undefined;
12325
12460
  name?: string | undefined;
12326
12461
  street?: string | undefined;
@@ -12329,7 +12464,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
12329
12464
  city?: string | undefined;
12330
12465
  postal_code?: string | undefined;
12331
12466
  country?: string | undefined;
12332
- }[] | undefined;
12467
+ }[];
12333
12468
  loyalty?: number | undefined;
12334
12469
  birthdate?: string | undefined;
12335
12470
  }>;
@@ -12355,7 +12490,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
12355
12490
  phone?: string | undefined;
12356
12491
  email?: string | undefined;
12357
12492
  created_on?: string | undefined;
12358
- addresses?: {
12493
+ addresses: {
12359
12494
  address_type?: string | undefined;
12360
12495
  name?: string | undefined;
12361
12496
  street?: string | undefined;
@@ -12364,7 +12499,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
12364
12499
  city?: string | undefined;
12365
12500
  postal_code?: string | undefined;
12366
12501
  country?: string | undefined;
12367
- }[] | undefined;
12502
+ }[];
12368
12503
  loyalty?: number | undefined;
12369
12504
  birthdate?: string | undefined;
12370
12505
  }>;
@@ -12407,11 +12542,11 @@ declare const Consumers: (internalApi: InternalAPI) => {
12407
12542
  }): import("../types/api").RequestData<{
12408
12543
  total: number;
12409
12544
  tax_amount: number;
12410
- taxes?: {
12545
+ taxes: {
12411
12546
  tax_rate: number;
12412
12547
  tax_amount: number;
12413
12548
  total: number;
12414
- }[] | undefined;
12549
+ }[];
12415
12550
  }>;
12416
12551
  getClosure(date: string, params?: {
12417
12552
  location_id?: string | undefined;
@@ -12452,11 +12587,11 @@ declare const Consumers: (internalApi: InternalAPI) => {
12452
12587
  loyalty?: number | undefined;
12453
12588
  customer_id?: string | undefined;
12454
12589
  location_id?: string | undefined;
12455
- taxes?: {
12590
+ taxes: {
12456
12591
  tax_rate: number;
12457
12592
  tax_amount: number;
12458
12593
  total: number;
12459
- }[] | undefined;
12594
+ }[];
12460
12595
  guests?: number | undefined;
12461
12596
  payments: {
12462
12597
  id?: string | undefined;
@@ -12540,11 +12675,11 @@ declare const Consumers: (internalApi: InternalAPI) => {
12540
12675
  loyalty?: number | undefined;
12541
12676
  customer_id?: string | undefined;
12542
12677
  location_id?: string | undefined;
12543
- taxes?: {
12678
+ taxes: {
12544
12679
  tax_rate: number;
12545
12680
  tax_amount: number;
12546
12681
  total: number;
12547
- }[] | undefined;
12682
+ }[];
12548
12683
  guests?: number | undefined;
12549
12684
  items: {
12550
12685
  id: string;
@@ -13379,6 +13514,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
13379
13514
  folder_id?: string | undefined;
13380
13515
  force_financial_period?: string | undefined;
13381
13516
  regroup_lines?: "true" | "false" | undefined;
13517
+ force_currency_exchange?: "true" | "false" | undefined;
13382
13518
  } | undefined): import("../types/api").RequestData<{
13383
13519
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
13384
13520
  invoice_number?: string | undefined;
@@ -13482,6 +13618,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
13482
13618
  folder_id?: string | undefined;
13483
13619
  force_financial_period?: string | undefined;
13484
13620
  regroup_lines?: "true" | "false" | undefined;
13621
+ force_currency_exchange?: "true" | "false" | undefined;
13485
13622
  } | undefined): import("../types/api").RequestData<{
13486
13623
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
13487
13624
  invoice_number?: string | undefined;
@@ -13996,7 +14133,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
13996
14133
  line_number: number;
13997
14134
  description?: string | undefined;
13998
14135
  amount: number;
13999
- type: "customer_account" | "general_account" | "supplier_account";
14136
+ type: "customer_account" | "supplier_account" | "general_account";
14000
14137
  account_number: string;
14001
14138
  partner_id?: string | undefined;
14002
14139
  analytic_account?: string | undefined;
@@ -14014,7 +14151,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
14014
14151
  line_number: number;
14015
14152
  description?: string | undefined;
14016
14153
  amount: number;
14017
- type: "customer_account" | "general_account" | "supplier_account";
14154
+ type: "customer_account" | "supplier_account" | "general_account";
14018
14155
  account_number: string;
14019
14156
  partner_id?: string | undefined;
14020
14157
  analytic_account?: string | undefined;
@@ -14032,7 +14169,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
14032
14169
  line_number: number;
14033
14170
  description?: string | undefined;
14034
14171
  amount: number;
14035
- type: "customer_account" | "general_account" | "supplier_account";
14172
+ type: "customer_account" | "supplier_account" | "general_account";
14036
14173
  account_number: string;
14037
14174
  partner_id?: string | undefined;
14038
14175
  analytic_account?: string | undefined;
@@ -14052,7 +14189,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
14052
14189
  line_number: number;
14053
14190
  description?: string | undefined;
14054
14191
  amount: number;
14055
- type: "customer_account" | "general_account" | "supplier_account";
14192
+ type: "customer_account" | "supplier_account" | "general_account";
14056
14193
  account_number: string;
14057
14194
  partner_id?: string | undefined;
14058
14195
  analytic_account?: string | undefined;
@@ -14071,9 +14208,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
14071
14208
  headers: {
14072
14209
  [name: string]: unknown;
14073
14210
  };
14074
- content: {
14075
- 'application/json': unknown;
14076
- };
14211
+ content?: undefined;
14077
14212
  }>;
14078
14213
  getAttachments(params: {
14079
14214
  folder_id?: string | undefined;
@@ -14161,7 +14296,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
14161
14296
  reference?: string | undefined;
14162
14297
  number?: string | undefined;
14163
14298
  items: {
14164
- type: "customer_account" | "general_account" | "supplier_account" | "employee_account";
14299
+ type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
14165
14300
  account_number: string;
14166
14301
  partner_id?: string | undefined;
14167
14302
  amount: number;
@@ -14171,6 +14306,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
14171
14306
  }, params?: {
14172
14307
  folder_id?: string | undefined;
14173
14308
  financial_counterpart_account?: string | undefined;
14309
+ force_currency_exchange?: "true" | "false" | undefined;
14174
14310
  } | undefined): import("../types/api").RequestData<{
14175
14311
  date: string;
14176
14312
  journal_id: string;
@@ -14180,7 +14316,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
14180
14316
  id: string;
14181
14317
  number: string;
14182
14318
  items: {
14183
- type: "customer_account" | "general_account" | "supplier_account" | "employee_account";
14319
+ type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
14184
14320
  account_number: string;
14185
14321
  partner_id?: string | undefined;
14186
14322
  amount: number;
@@ -14196,7 +14332,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
14196
14332
  reference?: string | undefined;
14197
14333
  number?: string | undefined;
14198
14334
  items: {
14199
- account_type: "customer_account" | "general_account" | "supplier_account" | "employee_account";
14335
+ account_type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
14200
14336
  account: string;
14201
14337
  amount: number;
14202
14338
  description?: string | undefined;
@@ -14205,6 +14341,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
14205
14341
  }, params?: {
14206
14342
  folder_id?: string | undefined;
14207
14343
  financial_counterpart_account?: string | undefined;
14344
+ force_currency_exchange?: "true" | "false" | undefined;
14208
14345
  } | undefined): import("../types/api").RequestData<{
14209
14346
  date: string;
14210
14347
  journal_id: string;
@@ -14214,13 +14351,13 @@ declare const Consumers: (internalApi: InternalAPI) => {
14214
14351
  id: string;
14215
14352
  number: string;
14216
14353
  items: {
14217
- account_type: "customer_account" | "general_account" | "supplier_account" | "employee_account";
14354
+ account_type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
14218
14355
  account: string;
14219
14356
  amount: number;
14220
14357
  description?: string | undefined;
14221
14358
  counterpart_account: string;
14222
14359
  }[];
14223
- }[]>;
14360
+ }>;
14224
14361
  createJournalEntryOld(journal_entry: {
14225
14362
  reference?: string | undefined;
14226
14363
  due_date?: string | undefined;
@@ -14283,7 +14420,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
14283
14420
  currency_exchange_rate: number;
14284
14421
  date: string;
14285
14422
  items: {
14286
- account_type: "customer_account" | "general_account" | "supplier_account" | "employee_account";
14423
+ account_type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
14287
14424
  account: string;
14288
14425
  force_general_account?: string | undefined;
14289
14426
  prioritise_thirdparty_account: boolean;
@@ -14372,6 +14509,49 @@ declare const Consumers: (internalApi: InternalAPI) => {
14372
14509
  end: string;
14373
14510
  closed: boolean;
14374
14511
  }[]>;
14512
+ createLedgerAccount(account: {
14513
+ name: string;
14514
+ number: string;
14515
+ }, params?: {
14516
+ folder_id?: string | undefined;
14517
+ } | undefined): import("../types/api").RequestData<{
14518
+ number: string;
14519
+ name: string;
14520
+ active: boolean;
14521
+ type?: "vat" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | "other" | undefined;
14522
+ }>;
14523
+ getJournalEntry(journalEntryId: string, params?: {
14524
+ folder_id?: string | undefined;
14525
+ } | undefined): import("../types/api").RequestData<{
14526
+ reference?: string | undefined;
14527
+ due_date?: string | undefined;
14528
+ journal_id: string;
14529
+ name?: string | undefined;
14530
+ journal_name: string;
14531
+ date: string;
14532
+ posted: boolean;
14533
+ id: string;
14534
+ items: {
14535
+ account_number: string;
14536
+ partner_id?: string | undefined;
14537
+ description?: string | undefined;
14538
+ debit: number;
14539
+ credit: number;
14540
+ currency: string;
14541
+ currency_exchange_rate: number;
14542
+ id: string;
14543
+ partner_name?: string | undefined;
14544
+ account_name: string;
14545
+ matching_numbers: string[];
14546
+ analytic_distribution: {
14547
+ analytic_plan: string;
14548
+ analytic_accounts: {
14549
+ analytic_account: string;
14550
+ percentage: number;
14551
+ }[];
14552
+ }[];
14553
+ }[];
14554
+ }>;
14375
14555
  }>;
14376
14556
  invoicing: import("../types/api").ApiFor<{
14377
14557
  getInvoices(params?: {
@@ -14769,7 +14949,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
14769
14949
  } | undefined;
14770
14950
  }>;
14771
14951
  getContacts(params?: {
14772
- contact_type?: "all" | "supplier" | "prospect" | "customer" | undefined;
14952
+ contact_type?: "supplier" | "all" | "prospect" | "customer" | undefined;
14773
14953
  } | undefined): import("../types/api").RequestData<{
14774
14954
  id: string;
14775
14955
  source_ref: {
@@ -16214,7 +16394,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
16214
16394
  date_from: string;
16215
16395
  date_to: string;
16216
16396
  location_id?: string | undefined;
16217
- state?: "open" | "closed" | "all" | undefined;
16397
+ state?: "all" | "open" | "closed" | undefined;
16218
16398
  }): import("../types/api").RequestData<{
16219
16399
  id: string;
16220
16400
  order_number?: string | undefined;
@@ -16233,11 +16413,11 @@ declare const Consumers: (internalApi: InternalAPI) => {
16233
16413
  loyalty?: number | undefined;
16234
16414
  customer_id?: string | undefined;
16235
16415
  location_id?: string | undefined;
16236
- taxes?: {
16416
+ taxes: {
16237
16417
  tax_rate: number;
16238
16418
  tax_amount: number;
16239
16419
  total: number;
16240
- }[] | undefined;
16420
+ }[];
16241
16421
  guests?: number | undefined;
16242
16422
  payments: {
16243
16423
  id?: string | undefined;
@@ -16280,7 +16460,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
16280
16460
  phone?: string | undefined;
16281
16461
  email?: string | undefined;
16282
16462
  created_on?: string | undefined;
16283
- addresses?: {
16463
+ addresses: {
16284
16464
  address_type?: string | undefined;
16285
16465
  name?: string | undefined;
16286
16466
  street?: string | undefined;
@@ -16289,7 +16469,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
16289
16469
  city?: string | undefined;
16290
16470
  postal_code?: string | undefined;
16291
16471
  country?: string | undefined;
16292
- }[] | undefined;
16472
+ }[];
16293
16473
  loyalty?: number | undefined;
16294
16474
  birthdate?: string | undefined;
16295
16475
  }[]>;
@@ -16311,11 +16491,11 @@ declare const Consumers: (internalApi: InternalAPI) => {
16311
16491
  loyalty?: number | undefined;
16312
16492
  customer_id?: string | undefined;
16313
16493
  location_id?: string | undefined;
16314
- taxes?: {
16494
+ taxes: {
16315
16495
  tax_rate: number;
16316
16496
  tax_amount: number;
16317
16497
  total: number;
16318
- }[] | undefined;
16498
+ }[];
16319
16499
  guests?: number | undefined;
16320
16500
  payments: {
16321
16501
  id?: string | undefined;
@@ -16354,7 +16534,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
16354
16534
  phone?: string | undefined;
16355
16535
  email?: string | undefined;
16356
16536
  created_on?: string | undefined;
16357
- addresses?: {
16537
+ addresses: {
16358
16538
  address_type?: string | undefined;
16359
16539
  name?: string | undefined;
16360
16540
  street?: string | undefined;
@@ -16363,7 +16543,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
16363
16543
  city?: string | undefined;
16364
16544
  postal_code?: string | undefined;
16365
16545
  country?: string | undefined;
16366
- }[] | undefined;
16546
+ }[];
16367
16547
  loyalty?: number | undefined;
16368
16548
  birthdate?: string | undefined;
16369
16549
  }>;
@@ -16389,7 +16569,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
16389
16569
  phone?: string | undefined;
16390
16570
  email?: string | undefined;
16391
16571
  created_on?: string | undefined;
16392
- addresses?: {
16572
+ addresses: {
16393
16573
  address_type?: string | undefined;
16394
16574
  name?: string | undefined;
16395
16575
  street?: string | undefined;
@@ -16398,7 +16578,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
16398
16578
  city?: string | undefined;
16399
16579
  postal_code?: string | undefined;
16400
16580
  country?: string | undefined;
16401
- }[] | undefined;
16581
+ }[];
16402
16582
  loyalty?: number | undefined;
16403
16583
  birthdate?: string | undefined;
16404
16584
  }>;
@@ -16441,11 +16621,11 @@ declare const Consumers: (internalApi: InternalAPI) => {
16441
16621
  }): import("../types/api").RequestData<{
16442
16622
  total: number;
16443
16623
  tax_amount: number;
16444
- taxes?: {
16624
+ taxes: {
16445
16625
  tax_rate: number;
16446
16626
  tax_amount: number;
16447
16627
  total: number;
16448
- }[] | undefined;
16628
+ }[];
16449
16629
  }>;
16450
16630
  getClosure(date: string, params?: {
16451
16631
  location_id?: string | undefined;
@@ -16486,11 +16666,11 @@ declare const Consumers: (internalApi: InternalAPI) => {
16486
16666
  loyalty?: number | undefined;
16487
16667
  customer_id?: string | undefined;
16488
16668
  location_id?: string | undefined;
16489
- taxes?: {
16669
+ taxes: {
16490
16670
  tax_rate: number;
16491
16671
  tax_amount: number;
16492
16672
  total: number;
16493
- }[] | undefined;
16673
+ }[];
16494
16674
  guests?: number | undefined;
16495
16675
  payments: {
16496
16676
  id?: string | undefined;
@@ -16574,11 +16754,11 @@ declare const Consumers: (internalApi: InternalAPI) => {
16574
16754
  loyalty?: number | undefined;
16575
16755
  customer_id?: string | undefined;
16576
16756
  location_id?: string | undefined;
16577
- taxes?: {
16757
+ taxes: {
16578
16758
  tax_rate: number;
16579
16759
  tax_amount: number;
16580
16760
  total: number;
16581
- }[] | undefined;
16761
+ }[];
16582
16762
  guests?: number | undefined;
16583
16763
  items: {
16584
16764
  id: string;
@@ -17413,6 +17593,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
17413
17593
  folder_id?: string | undefined;
17414
17594
  force_financial_period?: string | undefined;
17415
17595
  regroup_lines?: "true" | "false" | undefined;
17596
+ force_currency_exchange?: "true" | "false" | undefined;
17416
17597
  } | undefined): import("../types/api").RequestData<{
17417
17598
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
17418
17599
  invoice_number?: string | undefined;
@@ -17516,6 +17697,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
17516
17697
  folder_id?: string | undefined;
17517
17698
  force_financial_period?: string | undefined;
17518
17699
  regroup_lines?: "true" | "false" | undefined;
17700
+ force_currency_exchange?: "true" | "false" | undefined;
17519
17701
  } | undefined): import("../types/api").RequestData<{
17520
17702
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
17521
17703
  invoice_number?: string | undefined;
@@ -18030,7 +18212,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
18030
18212
  line_number: number;
18031
18213
  description?: string | undefined;
18032
18214
  amount: number;
18033
- type: "customer_account" | "general_account" | "supplier_account";
18215
+ type: "customer_account" | "supplier_account" | "general_account";
18034
18216
  account_number: string;
18035
18217
  partner_id?: string | undefined;
18036
18218
  analytic_account?: string | undefined;
@@ -18048,7 +18230,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
18048
18230
  line_number: number;
18049
18231
  description?: string | undefined;
18050
18232
  amount: number;
18051
- type: "customer_account" | "general_account" | "supplier_account";
18233
+ type: "customer_account" | "supplier_account" | "general_account";
18052
18234
  account_number: string;
18053
18235
  partner_id?: string | undefined;
18054
18236
  analytic_account?: string | undefined;
@@ -18066,7 +18248,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
18066
18248
  line_number: number;
18067
18249
  description?: string | undefined;
18068
18250
  amount: number;
18069
- type: "customer_account" | "general_account" | "supplier_account";
18251
+ type: "customer_account" | "supplier_account" | "general_account";
18070
18252
  account_number: string;
18071
18253
  partner_id?: string | undefined;
18072
18254
  analytic_account?: string | undefined;
@@ -18086,7 +18268,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
18086
18268
  line_number: number;
18087
18269
  description?: string | undefined;
18088
18270
  amount: number;
18089
- type: "customer_account" | "general_account" | "supplier_account";
18271
+ type: "customer_account" | "supplier_account" | "general_account";
18090
18272
  account_number: string;
18091
18273
  partner_id?: string | undefined;
18092
18274
  analytic_account?: string | undefined;
@@ -18105,9 +18287,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
18105
18287
  headers: {
18106
18288
  [name: string]: unknown;
18107
18289
  };
18108
- content: {
18109
- 'application/json': unknown;
18110
- };
18290
+ content?: undefined;
18111
18291
  }>;
18112
18292
  getAttachments(params: {
18113
18293
  folder_id?: string | undefined;
@@ -18195,7 +18375,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
18195
18375
  reference?: string | undefined;
18196
18376
  number?: string | undefined;
18197
18377
  items: {
18198
- type: "customer_account" | "general_account" | "supplier_account" | "employee_account";
18378
+ type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
18199
18379
  account_number: string;
18200
18380
  partner_id?: string | undefined;
18201
18381
  amount: number;
@@ -18205,6 +18385,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
18205
18385
  }, params?: {
18206
18386
  folder_id?: string | undefined;
18207
18387
  financial_counterpart_account?: string | undefined;
18388
+ force_currency_exchange?: "true" | "false" | undefined;
18208
18389
  } | undefined): import("../types/api").RequestData<{
18209
18390
  date: string;
18210
18391
  journal_id: string;
@@ -18214,7 +18395,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
18214
18395
  id: string;
18215
18396
  number: string;
18216
18397
  items: {
18217
- type: "customer_account" | "general_account" | "supplier_account" | "employee_account";
18398
+ type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
18218
18399
  account_number: string;
18219
18400
  partner_id?: string | undefined;
18220
18401
  amount: number;
@@ -18230,7 +18411,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
18230
18411
  reference?: string | undefined;
18231
18412
  number?: string | undefined;
18232
18413
  items: {
18233
- account_type: "customer_account" | "general_account" | "supplier_account" | "employee_account";
18414
+ account_type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
18234
18415
  account: string;
18235
18416
  amount: number;
18236
18417
  description?: string | undefined;
@@ -18239,6 +18420,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
18239
18420
  }, params?: {
18240
18421
  folder_id?: string | undefined;
18241
18422
  financial_counterpart_account?: string | undefined;
18423
+ force_currency_exchange?: "true" | "false" | undefined;
18242
18424
  } | undefined): import("../types/api").RequestData<{
18243
18425
  date: string;
18244
18426
  journal_id: string;
@@ -18248,13 +18430,13 @@ declare const Consumers: (internalApi: InternalAPI) => {
18248
18430
  id: string;
18249
18431
  number: string;
18250
18432
  items: {
18251
- account_type: "customer_account" | "general_account" | "supplier_account" | "employee_account";
18433
+ account_type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
18252
18434
  account: string;
18253
18435
  amount: number;
18254
18436
  description?: string | undefined;
18255
18437
  counterpart_account: string;
18256
18438
  }[];
18257
- }[]>;
18439
+ }>;
18258
18440
  createJournalEntryOld(journal_entry: {
18259
18441
  reference?: string | undefined;
18260
18442
  due_date?: string | undefined;
@@ -18317,7 +18499,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
18317
18499
  currency_exchange_rate: number;
18318
18500
  date: string;
18319
18501
  items: {
18320
- account_type: "customer_account" | "general_account" | "supplier_account" | "employee_account";
18502
+ account_type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
18321
18503
  account: string;
18322
18504
  force_general_account?: string | undefined;
18323
18505
  prioritise_thirdparty_account: boolean;
@@ -18406,6 +18588,49 @@ declare const Consumers: (internalApi: InternalAPI) => {
18406
18588
  end: string;
18407
18589
  closed: boolean;
18408
18590
  }[]>;
18591
+ createLedgerAccount(account: {
18592
+ name: string;
18593
+ number: string;
18594
+ }, params?: {
18595
+ folder_id?: string | undefined;
18596
+ } | undefined): import("../types/api").RequestData<{
18597
+ number: string;
18598
+ name: string;
18599
+ active: boolean;
18600
+ type?: "vat" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | "other" | undefined;
18601
+ }>;
18602
+ getJournalEntry(journalEntryId: string, params?: {
18603
+ folder_id?: string | undefined;
18604
+ } | undefined): import("../types/api").RequestData<{
18605
+ reference?: string | undefined;
18606
+ due_date?: string | undefined;
18607
+ journal_id: string;
18608
+ name?: string | undefined;
18609
+ journal_name: string;
18610
+ date: string;
18611
+ posted: boolean;
18612
+ id: string;
18613
+ items: {
18614
+ account_number: string;
18615
+ partner_id?: string | undefined;
18616
+ description?: string | undefined;
18617
+ debit: number;
18618
+ credit: number;
18619
+ currency: string;
18620
+ currency_exchange_rate: number;
18621
+ id: string;
18622
+ partner_name?: string | undefined;
18623
+ account_name: string;
18624
+ matching_numbers: string[];
18625
+ analytic_distribution: {
18626
+ analytic_plan: string;
18627
+ analytic_accounts: {
18628
+ analytic_account: string;
18629
+ percentage: number;
18630
+ }[];
18631
+ }[];
18632
+ }[];
18633
+ }>;
18409
18634
  }>;
18410
18635
  invoicing: import("../types/api").ApiFor<{
18411
18636
  getInvoices(params?: {
@@ -18803,7 +19028,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
18803
19028
  } | undefined;
18804
19029
  }>;
18805
19030
  getContacts(params?: {
18806
- contact_type?: "all" | "supplier" | "prospect" | "customer" | undefined;
19031
+ contact_type?: "supplier" | "all" | "prospect" | "customer" | undefined;
18807
19032
  } | undefined): import("../types/api").RequestData<{
18808
19033
  id: string;
18809
19034
  source_ref: {