@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.
- package/dist/src/modules/accounting.d.ts +4 -2
- package/dist/src/modules/accounting.js +17 -2
- package/dist/src/modules/api.d.ts +380 -155
- package/dist/src/modules/consumer.d.ts +76 -31
- package/dist/src/modules/consumers.d.ts +380 -155
- package/dist/src/modules/sync.d.ts +304 -124
- package/dist/src/types/public-api/schema.d.ts +1026 -160
- package/dist/test/modules/accounting.test.js +101 -28
- package/dist/test/modules/consumer.test.js +2 -2
- package/dist/test/modules/invoicing.test.js +3 -1
- package/dist/test/modules/payment.test.js +5 -4
- package/package.json +1 -1
- package/src/types/public-api/schema.d.ts +1026 -160
- package/dist/src/types/public-api/schema.js +0 -6
|
@@ -99,7 +99,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
99
99
|
date_from: string;
|
|
100
100
|
date_to: string;
|
|
101
101
|
location_id?: string | undefined;
|
|
102
|
-
state?: "
|
|
102
|
+
state?: "all" | "open" | "closed" | undefined;
|
|
103
103
|
}): import("../types/api").RequestData<{
|
|
104
104
|
id: string;
|
|
105
105
|
order_number?: string | undefined;
|
|
@@ -118,11 +118,11 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
118
118
|
loyalty?: number | undefined;
|
|
119
119
|
customer_id?: string | undefined;
|
|
120
120
|
location_id?: string | undefined;
|
|
121
|
-
taxes
|
|
121
|
+
taxes: {
|
|
122
122
|
tax_rate: number;
|
|
123
123
|
tax_amount: number;
|
|
124
124
|
total: number;
|
|
125
|
-
}[]
|
|
125
|
+
}[];
|
|
126
126
|
guests?: number | undefined;
|
|
127
127
|
payments: {
|
|
128
128
|
id?: string | undefined;
|
|
@@ -165,7 +165,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
165
165
|
phone?: string | undefined;
|
|
166
166
|
email?: string | undefined;
|
|
167
167
|
created_on?: string | undefined;
|
|
168
|
-
addresses
|
|
168
|
+
addresses: {
|
|
169
169
|
address_type?: string | undefined;
|
|
170
170
|
name?: string | undefined;
|
|
171
171
|
street?: string | undefined;
|
|
@@ -174,7 +174,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
174
174
|
city?: string | undefined;
|
|
175
175
|
postal_code?: string | undefined;
|
|
176
176
|
country?: string | undefined;
|
|
177
|
-
}[]
|
|
177
|
+
}[];
|
|
178
178
|
loyalty?: number | undefined;
|
|
179
179
|
birthdate?: string | undefined;
|
|
180
180
|
}[]>;
|
|
@@ -196,11 +196,11 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
196
196
|
loyalty?: number | undefined;
|
|
197
197
|
customer_id?: string | undefined;
|
|
198
198
|
location_id?: string | undefined;
|
|
199
|
-
taxes
|
|
199
|
+
taxes: {
|
|
200
200
|
tax_rate: number;
|
|
201
201
|
tax_amount: number;
|
|
202
202
|
total: number;
|
|
203
|
-
}[]
|
|
203
|
+
}[];
|
|
204
204
|
guests?: number | undefined;
|
|
205
205
|
payments: {
|
|
206
206
|
id?: string | undefined;
|
|
@@ -239,7 +239,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
239
239
|
phone?: string | undefined;
|
|
240
240
|
email?: string | undefined;
|
|
241
241
|
created_on?: string | undefined;
|
|
242
|
-
addresses
|
|
242
|
+
addresses: {
|
|
243
243
|
address_type?: string | undefined;
|
|
244
244
|
name?: string | undefined;
|
|
245
245
|
street?: string | undefined;
|
|
@@ -248,7 +248,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
248
248
|
city?: string | undefined;
|
|
249
249
|
postal_code?: string | undefined;
|
|
250
250
|
country?: string | undefined;
|
|
251
|
-
}[]
|
|
251
|
+
}[];
|
|
252
252
|
loyalty?: number | undefined;
|
|
253
253
|
birthdate?: string | undefined;
|
|
254
254
|
}>;
|
|
@@ -274,7 +274,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
274
274
|
phone?: string | undefined;
|
|
275
275
|
email?: string | undefined;
|
|
276
276
|
created_on?: string | undefined;
|
|
277
|
-
addresses
|
|
277
|
+
addresses: {
|
|
278
278
|
address_type?: string | undefined;
|
|
279
279
|
name?: string | undefined;
|
|
280
280
|
street?: string | undefined;
|
|
@@ -283,7 +283,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
283
283
|
city?: string | undefined;
|
|
284
284
|
postal_code?: string | undefined;
|
|
285
285
|
country?: string | undefined;
|
|
286
|
-
}[]
|
|
286
|
+
}[];
|
|
287
287
|
loyalty?: number | undefined;
|
|
288
288
|
birthdate?: string | undefined;
|
|
289
289
|
}>;
|
|
@@ -326,11 +326,11 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
326
326
|
}): import("../types/api").RequestData<{
|
|
327
327
|
total: number;
|
|
328
328
|
tax_amount: number;
|
|
329
|
-
taxes
|
|
329
|
+
taxes: {
|
|
330
330
|
tax_rate: number;
|
|
331
331
|
tax_amount: number;
|
|
332
332
|
total: number;
|
|
333
|
-
}[]
|
|
333
|
+
}[];
|
|
334
334
|
}>;
|
|
335
335
|
getClosure(date: string, params?: {
|
|
336
336
|
location_id?: string | undefined;
|
|
@@ -371,11 +371,11 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
371
371
|
loyalty?: number | undefined;
|
|
372
372
|
customer_id?: string | undefined;
|
|
373
373
|
location_id?: string | undefined;
|
|
374
|
-
taxes
|
|
374
|
+
taxes: {
|
|
375
375
|
tax_rate: number;
|
|
376
376
|
tax_amount: number;
|
|
377
377
|
total: number;
|
|
378
|
-
}[]
|
|
378
|
+
}[];
|
|
379
379
|
guests?: number | undefined;
|
|
380
380
|
payments: {
|
|
381
381
|
id?: string | undefined;
|
|
@@ -459,11 +459,11 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
459
459
|
loyalty?: number | undefined;
|
|
460
460
|
customer_id?: string | undefined;
|
|
461
461
|
location_id?: string | undefined;
|
|
462
|
-
taxes
|
|
462
|
+
taxes: {
|
|
463
463
|
tax_rate: number;
|
|
464
464
|
tax_amount: number;
|
|
465
465
|
total: number;
|
|
466
|
-
}[]
|
|
466
|
+
}[];
|
|
467
467
|
guests?: number | undefined;
|
|
468
468
|
items: {
|
|
469
469
|
id: string;
|
|
@@ -1298,6 +1298,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
1298
1298
|
folder_id?: string | undefined;
|
|
1299
1299
|
force_financial_period?: string | undefined;
|
|
1300
1300
|
regroup_lines?: "true" | "false" | undefined;
|
|
1301
|
+
force_currency_exchange?: "true" | "false" | undefined;
|
|
1301
1302
|
} | undefined): import("../types/api").RequestData<{
|
|
1302
1303
|
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
1303
1304
|
invoice_number?: string | undefined;
|
|
@@ -1401,6 +1402,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
1401
1402
|
folder_id?: string | undefined;
|
|
1402
1403
|
force_financial_period?: string | undefined;
|
|
1403
1404
|
regroup_lines?: "true" | "false" | undefined;
|
|
1405
|
+
force_currency_exchange?: "true" | "false" | undefined;
|
|
1404
1406
|
} | undefined): import("../types/api").RequestData<{
|
|
1405
1407
|
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
1406
1408
|
invoice_number?: string | undefined;
|
|
@@ -1915,7 +1917,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
1915
1917
|
line_number: number;
|
|
1916
1918
|
description?: string | undefined;
|
|
1917
1919
|
amount: number;
|
|
1918
|
-
type: "customer_account" | "
|
|
1920
|
+
type: "customer_account" | "supplier_account" | "general_account";
|
|
1919
1921
|
account_number: string;
|
|
1920
1922
|
partner_id?: string | undefined;
|
|
1921
1923
|
analytic_account?: string | undefined;
|
|
@@ -1933,7 +1935,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
1933
1935
|
line_number: number;
|
|
1934
1936
|
description?: string | undefined;
|
|
1935
1937
|
amount: number;
|
|
1936
|
-
type: "customer_account" | "
|
|
1938
|
+
type: "customer_account" | "supplier_account" | "general_account";
|
|
1937
1939
|
account_number: string;
|
|
1938
1940
|
partner_id?: string | undefined;
|
|
1939
1941
|
analytic_account?: string | undefined;
|
|
@@ -1951,7 +1953,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
1951
1953
|
line_number: number;
|
|
1952
1954
|
description?: string | undefined;
|
|
1953
1955
|
amount: number;
|
|
1954
|
-
type: "customer_account" | "
|
|
1956
|
+
type: "customer_account" | "supplier_account" | "general_account";
|
|
1955
1957
|
account_number: string;
|
|
1956
1958
|
partner_id?: string | undefined;
|
|
1957
1959
|
analytic_account?: string | undefined;
|
|
@@ -1971,7 +1973,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
1971
1973
|
line_number: number;
|
|
1972
1974
|
description?: string | undefined;
|
|
1973
1975
|
amount: number;
|
|
1974
|
-
type: "customer_account" | "
|
|
1976
|
+
type: "customer_account" | "supplier_account" | "general_account";
|
|
1975
1977
|
account_number: string;
|
|
1976
1978
|
partner_id?: string | undefined;
|
|
1977
1979
|
analytic_account?: string | undefined;
|
|
@@ -1990,9 +1992,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
1990
1992
|
headers: {
|
|
1991
1993
|
[name: string]: unknown;
|
|
1992
1994
|
};
|
|
1993
|
-
content
|
|
1994
|
-
'application/json': unknown;
|
|
1995
|
-
};
|
|
1995
|
+
content?: undefined;
|
|
1996
1996
|
}>;
|
|
1997
1997
|
getAttachments(params: {
|
|
1998
1998
|
folder_id?: string | undefined;
|
|
@@ -2080,7 +2080,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
2080
2080
|
reference?: string | undefined;
|
|
2081
2081
|
number?: string | undefined;
|
|
2082
2082
|
items: {
|
|
2083
|
-
type: "customer_account" | "
|
|
2083
|
+
type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
|
|
2084
2084
|
account_number: string;
|
|
2085
2085
|
partner_id?: string | undefined;
|
|
2086
2086
|
amount: number;
|
|
@@ -2090,6 +2090,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
2090
2090
|
}, params?: {
|
|
2091
2091
|
folder_id?: string | undefined;
|
|
2092
2092
|
financial_counterpart_account?: string | undefined;
|
|
2093
|
+
force_currency_exchange?: "true" | "false" | undefined;
|
|
2093
2094
|
} | undefined): import("../types/api").RequestData<{
|
|
2094
2095
|
date: string;
|
|
2095
2096
|
journal_id: string;
|
|
@@ -2099,7 +2100,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
2099
2100
|
id: string;
|
|
2100
2101
|
number: string;
|
|
2101
2102
|
items: {
|
|
2102
|
-
type: "customer_account" | "
|
|
2103
|
+
type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
|
|
2103
2104
|
account_number: string;
|
|
2104
2105
|
partner_id?: string | undefined;
|
|
2105
2106
|
amount: number;
|
|
@@ -2115,7 +2116,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
2115
2116
|
reference?: string | undefined;
|
|
2116
2117
|
number?: string | undefined;
|
|
2117
2118
|
items: {
|
|
2118
|
-
account_type: "customer_account" | "
|
|
2119
|
+
account_type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
|
|
2119
2120
|
account: string;
|
|
2120
2121
|
amount: number;
|
|
2121
2122
|
description?: string | undefined;
|
|
@@ -2124,6 +2125,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
2124
2125
|
}, params?: {
|
|
2125
2126
|
folder_id?: string | undefined;
|
|
2126
2127
|
financial_counterpart_account?: string | undefined;
|
|
2128
|
+
force_currency_exchange?: "true" | "false" | undefined;
|
|
2127
2129
|
} | undefined): import("../types/api").RequestData<{
|
|
2128
2130
|
date: string;
|
|
2129
2131
|
journal_id: string;
|
|
@@ -2133,13 +2135,13 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
2133
2135
|
id: string;
|
|
2134
2136
|
number: string;
|
|
2135
2137
|
items: {
|
|
2136
|
-
account_type: "customer_account" | "
|
|
2138
|
+
account_type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
|
|
2137
2139
|
account: string;
|
|
2138
2140
|
amount: number;
|
|
2139
2141
|
description?: string | undefined;
|
|
2140
2142
|
counterpart_account: string;
|
|
2141
2143
|
}[];
|
|
2142
|
-
}
|
|
2144
|
+
}>;
|
|
2143
2145
|
createJournalEntryOld(journal_entry: {
|
|
2144
2146
|
reference?: string | undefined;
|
|
2145
2147
|
due_date?: string | undefined;
|
|
@@ -2202,7 +2204,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
2202
2204
|
currency_exchange_rate: number;
|
|
2203
2205
|
date: string;
|
|
2204
2206
|
items: {
|
|
2205
|
-
account_type: "customer_account" | "
|
|
2207
|
+
account_type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
|
|
2206
2208
|
account: string;
|
|
2207
2209
|
force_general_account?: string | undefined;
|
|
2208
2210
|
prioritise_thirdparty_account: boolean;
|
|
@@ -2291,6 +2293,49 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
2291
2293
|
end: string;
|
|
2292
2294
|
closed: boolean;
|
|
2293
2295
|
}[]>;
|
|
2296
|
+
createLedgerAccount(account: {
|
|
2297
|
+
name: string;
|
|
2298
|
+
number: string;
|
|
2299
|
+
}, params?: {
|
|
2300
|
+
folder_id?: string | undefined;
|
|
2301
|
+
} | undefined): import("../types/api").RequestData<{
|
|
2302
|
+
number: string;
|
|
2303
|
+
name: string;
|
|
2304
|
+
active: boolean;
|
|
2305
|
+
type?: "vat" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | "other" | undefined;
|
|
2306
|
+
}>;
|
|
2307
|
+
getJournalEntry(journalEntryId: string, params?: {
|
|
2308
|
+
folder_id?: string | undefined;
|
|
2309
|
+
} | undefined): import("../types/api").RequestData<{
|
|
2310
|
+
reference?: string | undefined;
|
|
2311
|
+
due_date?: string | undefined;
|
|
2312
|
+
journal_id: string;
|
|
2313
|
+
name?: string | undefined;
|
|
2314
|
+
journal_name: string;
|
|
2315
|
+
date: string;
|
|
2316
|
+
posted: boolean;
|
|
2317
|
+
id: string;
|
|
2318
|
+
items: {
|
|
2319
|
+
account_number: string;
|
|
2320
|
+
partner_id?: string | undefined;
|
|
2321
|
+
description?: string | undefined;
|
|
2322
|
+
debit: number;
|
|
2323
|
+
credit: number;
|
|
2324
|
+
currency: string;
|
|
2325
|
+
currency_exchange_rate: number;
|
|
2326
|
+
id: string;
|
|
2327
|
+
partner_name?: string | undefined;
|
|
2328
|
+
account_name: string;
|
|
2329
|
+
matching_numbers: string[];
|
|
2330
|
+
analytic_distribution: {
|
|
2331
|
+
analytic_plan: string;
|
|
2332
|
+
analytic_accounts: {
|
|
2333
|
+
analytic_account: string;
|
|
2334
|
+
percentage: number;
|
|
2335
|
+
}[];
|
|
2336
|
+
}[];
|
|
2337
|
+
}[];
|
|
2338
|
+
}>;
|
|
2294
2339
|
}>;
|
|
2295
2340
|
invoicing: import("../types/api").ApiFor<{
|
|
2296
2341
|
getInvoices(params?: {
|
|
@@ -2688,7 +2733,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
2688
2733
|
} | undefined;
|
|
2689
2734
|
}>;
|
|
2690
2735
|
getContacts(params?: {
|
|
2691
|
-
contact_type?: "
|
|
2736
|
+
contact_type?: "supplier" | "all" | "prospect" | "customer" | undefined;
|
|
2692
2737
|
} | undefined): import("../types/api").RequestData<{
|
|
2693
2738
|
id: string;
|
|
2694
2739
|
source_ref: {
|
|
@@ -4156,7 +4201,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
4156
4201
|
date_from: string;
|
|
4157
4202
|
date_to: string;
|
|
4158
4203
|
location_id?: string | undefined;
|
|
4159
|
-
state?: "
|
|
4204
|
+
state?: "all" | "open" | "closed" | undefined;
|
|
4160
4205
|
}): import("../types/api").RequestData<{
|
|
4161
4206
|
id: string;
|
|
4162
4207
|
order_number?: string | undefined;
|
|
@@ -4175,11 +4220,11 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
4175
4220
|
loyalty?: number | undefined;
|
|
4176
4221
|
customer_id?: string | undefined;
|
|
4177
4222
|
location_id?: string | undefined;
|
|
4178
|
-
taxes
|
|
4223
|
+
taxes: {
|
|
4179
4224
|
tax_rate: number;
|
|
4180
4225
|
tax_amount: number;
|
|
4181
4226
|
total: number;
|
|
4182
|
-
}[]
|
|
4227
|
+
}[];
|
|
4183
4228
|
guests?: number | undefined;
|
|
4184
4229
|
payments: {
|
|
4185
4230
|
id?: string | undefined;
|
|
@@ -4222,7 +4267,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
4222
4267
|
phone?: string | undefined;
|
|
4223
4268
|
email?: string | undefined;
|
|
4224
4269
|
created_on?: string | undefined;
|
|
4225
|
-
addresses
|
|
4270
|
+
addresses: {
|
|
4226
4271
|
address_type?: string | undefined;
|
|
4227
4272
|
name?: string | undefined;
|
|
4228
4273
|
street?: string | undefined;
|
|
@@ -4231,7 +4276,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
4231
4276
|
city?: string | undefined;
|
|
4232
4277
|
postal_code?: string | undefined;
|
|
4233
4278
|
country?: string | undefined;
|
|
4234
|
-
}[]
|
|
4279
|
+
}[];
|
|
4235
4280
|
loyalty?: number | undefined;
|
|
4236
4281
|
birthdate?: string | undefined;
|
|
4237
4282
|
}[]>;
|
|
@@ -4253,11 +4298,11 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
4253
4298
|
loyalty?: number | undefined;
|
|
4254
4299
|
customer_id?: string | undefined;
|
|
4255
4300
|
location_id?: string | undefined;
|
|
4256
|
-
taxes
|
|
4301
|
+
taxes: {
|
|
4257
4302
|
tax_rate: number;
|
|
4258
4303
|
tax_amount: number;
|
|
4259
4304
|
total: number;
|
|
4260
|
-
}[]
|
|
4305
|
+
}[];
|
|
4261
4306
|
guests?: number | undefined;
|
|
4262
4307
|
payments: {
|
|
4263
4308
|
id?: string | undefined;
|
|
@@ -4296,7 +4341,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
4296
4341
|
phone?: string | undefined;
|
|
4297
4342
|
email?: string | undefined;
|
|
4298
4343
|
created_on?: string | undefined;
|
|
4299
|
-
addresses
|
|
4344
|
+
addresses: {
|
|
4300
4345
|
address_type?: string | undefined;
|
|
4301
4346
|
name?: string | undefined;
|
|
4302
4347
|
street?: string | undefined;
|
|
@@ -4305,7 +4350,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
4305
4350
|
city?: string | undefined;
|
|
4306
4351
|
postal_code?: string | undefined;
|
|
4307
4352
|
country?: string | undefined;
|
|
4308
|
-
}[]
|
|
4353
|
+
}[];
|
|
4309
4354
|
loyalty?: number | undefined;
|
|
4310
4355
|
birthdate?: string | undefined;
|
|
4311
4356
|
}>;
|
|
@@ -4331,7 +4376,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
4331
4376
|
phone?: string | undefined;
|
|
4332
4377
|
email?: string | undefined;
|
|
4333
4378
|
created_on?: string | undefined;
|
|
4334
|
-
addresses
|
|
4379
|
+
addresses: {
|
|
4335
4380
|
address_type?: string | undefined;
|
|
4336
4381
|
name?: string | undefined;
|
|
4337
4382
|
street?: string | undefined;
|
|
@@ -4340,7 +4385,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
4340
4385
|
city?: string | undefined;
|
|
4341
4386
|
postal_code?: string | undefined;
|
|
4342
4387
|
country?: string | undefined;
|
|
4343
|
-
}[]
|
|
4388
|
+
}[];
|
|
4344
4389
|
loyalty?: number | undefined;
|
|
4345
4390
|
birthdate?: string | undefined;
|
|
4346
4391
|
}>;
|
|
@@ -4383,11 +4428,11 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
4383
4428
|
}): import("../types/api").RequestData<{
|
|
4384
4429
|
total: number;
|
|
4385
4430
|
tax_amount: number;
|
|
4386
|
-
taxes
|
|
4431
|
+
taxes: {
|
|
4387
4432
|
tax_rate: number;
|
|
4388
4433
|
tax_amount: number;
|
|
4389
4434
|
total: number;
|
|
4390
|
-
}[]
|
|
4435
|
+
}[];
|
|
4391
4436
|
}>;
|
|
4392
4437
|
getClosure(date: string, params?: {
|
|
4393
4438
|
location_id?: string | undefined;
|
|
@@ -4428,11 +4473,11 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
4428
4473
|
loyalty?: number | undefined;
|
|
4429
4474
|
customer_id?: string | undefined;
|
|
4430
4475
|
location_id?: string | undefined;
|
|
4431
|
-
taxes
|
|
4476
|
+
taxes: {
|
|
4432
4477
|
tax_rate: number;
|
|
4433
4478
|
tax_amount: number;
|
|
4434
4479
|
total: number;
|
|
4435
|
-
}[]
|
|
4480
|
+
}[];
|
|
4436
4481
|
guests?: number | undefined;
|
|
4437
4482
|
payments: {
|
|
4438
4483
|
id?: string | undefined;
|
|
@@ -4516,11 +4561,11 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
4516
4561
|
loyalty?: number | undefined;
|
|
4517
4562
|
customer_id?: string | undefined;
|
|
4518
4563
|
location_id?: string | undefined;
|
|
4519
|
-
taxes
|
|
4564
|
+
taxes: {
|
|
4520
4565
|
tax_rate: number;
|
|
4521
4566
|
tax_amount: number;
|
|
4522
4567
|
total: number;
|
|
4523
|
-
}[]
|
|
4568
|
+
}[];
|
|
4524
4569
|
guests?: number | undefined;
|
|
4525
4570
|
items: {
|
|
4526
4571
|
id: string;
|
|
@@ -5355,6 +5400,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
5355
5400
|
folder_id?: string | undefined;
|
|
5356
5401
|
force_financial_period?: string | undefined;
|
|
5357
5402
|
regroup_lines?: "true" | "false" | undefined;
|
|
5403
|
+
force_currency_exchange?: "true" | "false" | undefined;
|
|
5358
5404
|
} | undefined): import("../types/api").RequestData<{
|
|
5359
5405
|
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
5360
5406
|
invoice_number?: string | undefined;
|
|
@@ -5458,6 +5504,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
5458
5504
|
folder_id?: string | undefined;
|
|
5459
5505
|
force_financial_period?: string | undefined;
|
|
5460
5506
|
regroup_lines?: "true" | "false" | undefined;
|
|
5507
|
+
force_currency_exchange?: "true" | "false" | undefined;
|
|
5461
5508
|
} | undefined): import("../types/api").RequestData<{
|
|
5462
5509
|
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
5463
5510
|
invoice_number?: string | undefined;
|
|
@@ -5972,7 +6019,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
5972
6019
|
line_number: number;
|
|
5973
6020
|
description?: string | undefined;
|
|
5974
6021
|
amount: number;
|
|
5975
|
-
type: "customer_account" | "
|
|
6022
|
+
type: "customer_account" | "supplier_account" | "general_account";
|
|
5976
6023
|
account_number: string;
|
|
5977
6024
|
partner_id?: string | undefined;
|
|
5978
6025
|
analytic_account?: string | undefined;
|
|
@@ -5990,7 +6037,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
5990
6037
|
line_number: number;
|
|
5991
6038
|
description?: string | undefined;
|
|
5992
6039
|
amount: number;
|
|
5993
|
-
type: "customer_account" | "
|
|
6040
|
+
type: "customer_account" | "supplier_account" | "general_account";
|
|
5994
6041
|
account_number: string;
|
|
5995
6042
|
partner_id?: string | undefined;
|
|
5996
6043
|
analytic_account?: string | undefined;
|
|
@@ -6008,7 +6055,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
6008
6055
|
line_number: number;
|
|
6009
6056
|
description?: string | undefined;
|
|
6010
6057
|
amount: number;
|
|
6011
|
-
type: "customer_account" | "
|
|
6058
|
+
type: "customer_account" | "supplier_account" | "general_account";
|
|
6012
6059
|
account_number: string;
|
|
6013
6060
|
partner_id?: string | undefined;
|
|
6014
6061
|
analytic_account?: string | undefined;
|
|
@@ -6028,7 +6075,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
6028
6075
|
line_number: number;
|
|
6029
6076
|
description?: string | undefined;
|
|
6030
6077
|
amount: number;
|
|
6031
|
-
type: "customer_account" | "
|
|
6078
|
+
type: "customer_account" | "supplier_account" | "general_account";
|
|
6032
6079
|
account_number: string;
|
|
6033
6080
|
partner_id?: string | undefined;
|
|
6034
6081
|
analytic_account?: string | undefined;
|
|
@@ -6047,9 +6094,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
6047
6094
|
headers: {
|
|
6048
6095
|
[name: string]: unknown;
|
|
6049
6096
|
};
|
|
6050
|
-
content
|
|
6051
|
-
'application/json': unknown;
|
|
6052
|
-
};
|
|
6097
|
+
content?: undefined;
|
|
6053
6098
|
}>;
|
|
6054
6099
|
getAttachments(params: {
|
|
6055
6100
|
folder_id?: string | undefined;
|
|
@@ -6137,7 +6182,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
6137
6182
|
reference?: string | undefined;
|
|
6138
6183
|
number?: string | undefined;
|
|
6139
6184
|
items: {
|
|
6140
|
-
type: "customer_account" | "
|
|
6185
|
+
type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
|
|
6141
6186
|
account_number: string;
|
|
6142
6187
|
partner_id?: string | undefined;
|
|
6143
6188
|
amount: number;
|
|
@@ -6147,6 +6192,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
6147
6192
|
}, params?: {
|
|
6148
6193
|
folder_id?: string | undefined;
|
|
6149
6194
|
financial_counterpart_account?: string | undefined;
|
|
6195
|
+
force_currency_exchange?: "true" | "false" | undefined;
|
|
6150
6196
|
} | undefined): import("../types/api").RequestData<{
|
|
6151
6197
|
date: string;
|
|
6152
6198
|
journal_id: string;
|
|
@@ -6156,7 +6202,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
6156
6202
|
id: string;
|
|
6157
6203
|
number: string;
|
|
6158
6204
|
items: {
|
|
6159
|
-
type: "customer_account" | "
|
|
6205
|
+
type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
|
|
6160
6206
|
account_number: string;
|
|
6161
6207
|
partner_id?: string | undefined;
|
|
6162
6208
|
amount: number;
|
|
@@ -6172,7 +6218,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
6172
6218
|
reference?: string | undefined;
|
|
6173
6219
|
number?: string | undefined;
|
|
6174
6220
|
items: {
|
|
6175
|
-
account_type: "customer_account" | "
|
|
6221
|
+
account_type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
|
|
6176
6222
|
account: string;
|
|
6177
6223
|
amount: number;
|
|
6178
6224
|
description?: string | undefined;
|
|
@@ -6181,6 +6227,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
6181
6227
|
}, params?: {
|
|
6182
6228
|
folder_id?: string | undefined;
|
|
6183
6229
|
financial_counterpart_account?: string | undefined;
|
|
6230
|
+
force_currency_exchange?: "true" | "false" | undefined;
|
|
6184
6231
|
} | undefined): import("../types/api").RequestData<{
|
|
6185
6232
|
date: string;
|
|
6186
6233
|
journal_id: string;
|
|
@@ -6190,13 +6237,13 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
6190
6237
|
id: string;
|
|
6191
6238
|
number: string;
|
|
6192
6239
|
items: {
|
|
6193
|
-
account_type: "customer_account" | "
|
|
6240
|
+
account_type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
|
|
6194
6241
|
account: string;
|
|
6195
6242
|
amount: number;
|
|
6196
6243
|
description?: string | undefined;
|
|
6197
6244
|
counterpart_account: string;
|
|
6198
6245
|
}[];
|
|
6199
|
-
}
|
|
6246
|
+
}>;
|
|
6200
6247
|
createJournalEntryOld(journal_entry: {
|
|
6201
6248
|
reference?: string | undefined;
|
|
6202
6249
|
due_date?: string | undefined;
|
|
@@ -6259,7 +6306,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
6259
6306
|
currency_exchange_rate: number;
|
|
6260
6307
|
date: string;
|
|
6261
6308
|
items: {
|
|
6262
|
-
account_type: "customer_account" | "
|
|
6309
|
+
account_type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
|
|
6263
6310
|
account: string;
|
|
6264
6311
|
force_general_account?: string | undefined;
|
|
6265
6312
|
prioritise_thirdparty_account: boolean;
|
|
@@ -6348,6 +6395,49 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
6348
6395
|
end: string;
|
|
6349
6396
|
closed: boolean;
|
|
6350
6397
|
}[]>;
|
|
6398
|
+
createLedgerAccount(account: {
|
|
6399
|
+
name: string;
|
|
6400
|
+
number: string;
|
|
6401
|
+
}, params?: {
|
|
6402
|
+
folder_id?: string | undefined;
|
|
6403
|
+
} | undefined): import("../types/api").RequestData<{
|
|
6404
|
+
number: string;
|
|
6405
|
+
name: string;
|
|
6406
|
+
active: boolean;
|
|
6407
|
+
type?: "vat" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | "other" | undefined;
|
|
6408
|
+
}>;
|
|
6409
|
+
getJournalEntry(journalEntryId: string, params?: {
|
|
6410
|
+
folder_id?: string | undefined;
|
|
6411
|
+
} | undefined): import("../types/api").RequestData<{
|
|
6412
|
+
reference?: string | undefined;
|
|
6413
|
+
due_date?: string | undefined;
|
|
6414
|
+
journal_id: string;
|
|
6415
|
+
name?: string | undefined;
|
|
6416
|
+
journal_name: string;
|
|
6417
|
+
date: string;
|
|
6418
|
+
posted: boolean;
|
|
6419
|
+
id: string;
|
|
6420
|
+
items: {
|
|
6421
|
+
account_number: string;
|
|
6422
|
+
partner_id?: string | undefined;
|
|
6423
|
+
description?: string | undefined;
|
|
6424
|
+
debit: number;
|
|
6425
|
+
credit: number;
|
|
6426
|
+
currency: string;
|
|
6427
|
+
currency_exchange_rate: number;
|
|
6428
|
+
id: string;
|
|
6429
|
+
partner_name?: string | undefined;
|
|
6430
|
+
account_name: string;
|
|
6431
|
+
matching_numbers: string[];
|
|
6432
|
+
analytic_distribution: {
|
|
6433
|
+
analytic_plan: string;
|
|
6434
|
+
analytic_accounts: {
|
|
6435
|
+
analytic_account: string;
|
|
6436
|
+
percentage: number;
|
|
6437
|
+
}[];
|
|
6438
|
+
}[];
|
|
6439
|
+
}[];
|
|
6440
|
+
}>;
|
|
6351
6441
|
}>;
|
|
6352
6442
|
invoicing: import("../types/api").ApiFor<{
|
|
6353
6443
|
getInvoices(params?: {
|
|
@@ -6745,7 +6835,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
6745
6835
|
} | undefined;
|
|
6746
6836
|
}>;
|
|
6747
6837
|
getContacts(params?: {
|
|
6748
|
-
contact_type?: "
|
|
6838
|
+
contact_type?: "supplier" | "all" | "prospect" | "customer" | undefined;
|
|
6749
6839
|
} | undefined): import("../types/api").RequestData<{
|
|
6750
6840
|
id: string;
|
|
6751
6841
|
source_ref: {
|
|
@@ -8213,7 +8303,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
8213
8303
|
date_from: string;
|
|
8214
8304
|
date_to: string;
|
|
8215
8305
|
location_id?: string | undefined;
|
|
8216
|
-
state?: "
|
|
8306
|
+
state?: "all" | "open" | "closed" | undefined;
|
|
8217
8307
|
}): import("../types/api").RequestData<{
|
|
8218
8308
|
id: string;
|
|
8219
8309
|
order_number?: string | undefined;
|
|
@@ -8232,11 +8322,11 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
8232
8322
|
loyalty?: number | undefined;
|
|
8233
8323
|
customer_id?: string | undefined;
|
|
8234
8324
|
location_id?: string | undefined;
|
|
8235
|
-
taxes
|
|
8325
|
+
taxes: {
|
|
8236
8326
|
tax_rate: number;
|
|
8237
8327
|
tax_amount: number;
|
|
8238
8328
|
total: number;
|
|
8239
|
-
}[]
|
|
8329
|
+
}[];
|
|
8240
8330
|
guests?: number | undefined;
|
|
8241
8331
|
payments: {
|
|
8242
8332
|
id?: string | undefined;
|
|
@@ -8279,7 +8369,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
8279
8369
|
phone?: string | undefined;
|
|
8280
8370
|
email?: string | undefined;
|
|
8281
8371
|
created_on?: string | undefined;
|
|
8282
|
-
addresses
|
|
8372
|
+
addresses: {
|
|
8283
8373
|
address_type?: string | undefined;
|
|
8284
8374
|
name?: string | undefined;
|
|
8285
8375
|
street?: string | undefined;
|
|
@@ -8288,7 +8378,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
8288
8378
|
city?: string | undefined;
|
|
8289
8379
|
postal_code?: string | undefined;
|
|
8290
8380
|
country?: string | undefined;
|
|
8291
|
-
}[]
|
|
8381
|
+
}[];
|
|
8292
8382
|
loyalty?: number | undefined;
|
|
8293
8383
|
birthdate?: string | undefined;
|
|
8294
8384
|
}[]>;
|
|
@@ -8310,11 +8400,11 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
8310
8400
|
loyalty?: number | undefined;
|
|
8311
8401
|
customer_id?: string | undefined;
|
|
8312
8402
|
location_id?: string | undefined;
|
|
8313
|
-
taxes
|
|
8403
|
+
taxes: {
|
|
8314
8404
|
tax_rate: number;
|
|
8315
8405
|
tax_amount: number;
|
|
8316
8406
|
total: number;
|
|
8317
|
-
}[]
|
|
8407
|
+
}[];
|
|
8318
8408
|
guests?: number | undefined;
|
|
8319
8409
|
payments: {
|
|
8320
8410
|
id?: string | undefined;
|
|
@@ -8353,7 +8443,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
8353
8443
|
phone?: string | undefined;
|
|
8354
8444
|
email?: string | undefined;
|
|
8355
8445
|
created_on?: string | undefined;
|
|
8356
|
-
addresses
|
|
8446
|
+
addresses: {
|
|
8357
8447
|
address_type?: string | undefined;
|
|
8358
8448
|
name?: string | undefined;
|
|
8359
8449
|
street?: string | undefined;
|
|
@@ -8362,7 +8452,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
8362
8452
|
city?: string | undefined;
|
|
8363
8453
|
postal_code?: string | undefined;
|
|
8364
8454
|
country?: string | undefined;
|
|
8365
|
-
}[]
|
|
8455
|
+
}[];
|
|
8366
8456
|
loyalty?: number | undefined;
|
|
8367
8457
|
birthdate?: string | undefined;
|
|
8368
8458
|
}>;
|
|
@@ -8388,7 +8478,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
8388
8478
|
phone?: string | undefined;
|
|
8389
8479
|
email?: string | undefined;
|
|
8390
8480
|
created_on?: string | undefined;
|
|
8391
|
-
addresses
|
|
8481
|
+
addresses: {
|
|
8392
8482
|
address_type?: string | undefined;
|
|
8393
8483
|
name?: string | undefined;
|
|
8394
8484
|
street?: string | undefined;
|
|
@@ -8397,7 +8487,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
8397
8487
|
city?: string | undefined;
|
|
8398
8488
|
postal_code?: string | undefined;
|
|
8399
8489
|
country?: string | undefined;
|
|
8400
|
-
}[]
|
|
8490
|
+
}[];
|
|
8401
8491
|
loyalty?: number | undefined;
|
|
8402
8492
|
birthdate?: string | undefined;
|
|
8403
8493
|
}>;
|
|
@@ -8440,11 +8530,11 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
8440
8530
|
}): import("../types/api").RequestData<{
|
|
8441
8531
|
total: number;
|
|
8442
8532
|
tax_amount: number;
|
|
8443
|
-
taxes
|
|
8533
|
+
taxes: {
|
|
8444
8534
|
tax_rate: number;
|
|
8445
8535
|
tax_amount: number;
|
|
8446
8536
|
total: number;
|
|
8447
|
-
}[]
|
|
8537
|
+
}[];
|
|
8448
8538
|
}>;
|
|
8449
8539
|
getClosure(date: string, params?: {
|
|
8450
8540
|
location_id?: string | undefined;
|
|
@@ -8485,11 +8575,11 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
8485
8575
|
loyalty?: number | undefined;
|
|
8486
8576
|
customer_id?: string | undefined;
|
|
8487
8577
|
location_id?: string | undefined;
|
|
8488
|
-
taxes
|
|
8578
|
+
taxes: {
|
|
8489
8579
|
tax_rate: number;
|
|
8490
8580
|
tax_amount: number;
|
|
8491
8581
|
total: number;
|
|
8492
|
-
}[]
|
|
8582
|
+
}[];
|
|
8493
8583
|
guests?: number | undefined;
|
|
8494
8584
|
payments: {
|
|
8495
8585
|
id?: string | undefined;
|
|
@@ -8573,11 +8663,11 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
8573
8663
|
loyalty?: number | undefined;
|
|
8574
8664
|
customer_id?: string | undefined;
|
|
8575
8665
|
location_id?: string | undefined;
|
|
8576
|
-
taxes
|
|
8666
|
+
taxes: {
|
|
8577
8667
|
tax_rate: number;
|
|
8578
8668
|
tax_amount: number;
|
|
8579
8669
|
total: number;
|
|
8580
|
-
}[]
|
|
8670
|
+
}[];
|
|
8581
8671
|
guests?: number | undefined;
|
|
8582
8672
|
items: {
|
|
8583
8673
|
id: string;
|
|
@@ -9412,6 +9502,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
9412
9502
|
folder_id?: string | undefined;
|
|
9413
9503
|
force_financial_period?: string | undefined;
|
|
9414
9504
|
regroup_lines?: "true" | "false" | undefined;
|
|
9505
|
+
force_currency_exchange?: "true" | "false" | undefined;
|
|
9415
9506
|
} | undefined): import("../types/api").RequestData<{
|
|
9416
9507
|
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
9417
9508
|
invoice_number?: string | undefined;
|
|
@@ -9515,6 +9606,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
9515
9606
|
folder_id?: string | undefined;
|
|
9516
9607
|
force_financial_period?: string | undefined;
|
|
9517
9608
|
regroup_lines?: "true" | "false" | undefined;
|
|
9609
|
+
force_currency_exchange?: "true" | "false" | undefined;
|
|
9518
9610
|
} | undefined): import("../types/api").RequestData<{
|
|
9519
9611
|
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
9520
9612
|
invoice_number?: string | undefined;
|
|
@@ -10029,7 +10121,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
10029
10121
|
line_number: number;
|
|
10030
10122
|
description?: string | undefined;
|
|
10031
10123
|
amount: number;
|
|
10032
|
-
type: "customer_account" | "
|
|
10124
|
+
type: "customer_account" | "supplier_account" | "general_account";
|
|
10033
10125
|
account_number: string;
|
|
10034
10126
|
partner_id?: string | undefined;
|
|
10035
10127
|
analytic_account?: string | undefined;
|
|
@@ -10047,7 +10139,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
10047
10139
|
line_number: number;
|
|
10048
10140
|
description?: string | undefined;
|
|
10049
10141
|
amount: number;
|
|
10050
|
-
type: "customer_account" | "
|
|
10142
|
+
type: "customer_account" | "supplier_account" | "general_account";
|
|
10051
10143
|
account_number: string;
|
|
10052
10144
|
partner_id?: string | undefined;
|
|
10053
10145
|
analytic_account?: string | undefined;
|
|
@@ -10065,7 +10157,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
10065
10157
|
line_number: number;
|
|
10066
10158
|
description?: string | undefined;
|
|
10067
10159
|
amount: number;
|
|
10068
|
-
type: "customer_account" | "
|
|
10160
|
+
type: "customer_account" | "supplier_account" | "general_account";
|
|
10069
10161
|
account_number: string;
|
|
10070
10162
|
partner_id?: string | undefined;
|
|
10071
10163
|
analytic_account?: string | undefined;
|
|
@@ -10085,7 +10177,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
10085
10177
|
line_number: number;
|
|
10086
10178
|
description?: string | undefined;
|
|
10087
10179
|
amount: number;
|
|
10088
|
-
type: "customer_account" | "
|
|
10180
|
+
type: "customer_account" | "supplier_account" | "general_account";
|
|
10089
10181
|
account_number: string;
|
|
10090
10182
|
partner_id?: string | undefined;
|
|
10091
10183
|
analytic_account?: string | undefined;
|
|
@@ -10104,9 +10196,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
10104
10196
|
headers: {
|
|
10105
10197
|
[name: string]: unknown;
|
|
10106
10198
|
};
|
|
10107
|
-
content
|
|
10108
|
-
'application/json': unknown;
|
|
10109
|
-
};
|
|
10199
|
+
content?: undefined;
|
|
10110
10200
|
}>;
|
|
10111
10201
|
getAttachments(params: {
|
|
10112
10202
|
folder_id?: string | undefined;
|
|
@@ -10194,7 +10284,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
10194
10284
|
reference?: string | undefined;
|
|
10195
10285
|
number?: string | undefined;
|
|
10196
10286
|
items: {
|
|
10197
|
-
type: "customer_account" | "
|
|
10287
|
+
type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
|
|
10198
10288
|
account_number: string;
|
|
10199
10289
|
partner_id?: string | undefined;
|
|
10200
10290
|
amount: number;
|
|
@@ -10204,6 +10294,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
10204
10294
|
}, params?: {
|
|
10205
10295
|
folder_id?: string | undefined;
|
|
10206
10296
|
financial_counterpart_account?: string | undefined;
|
|
10297
|
+
force_currency_exchange?: "true" | "false" | undefined;
|
|
10207
10298
|
} | undefined): import("../types/api").RequestData<{
|
|
10208
10299
|
date: string;
|
|
10209
10300
|
journal_id: string;
|
|
@@ -10213,7 +10304,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
10213
10304
|
id: string;
|
|
10214
10305
|
number: string;
|
|
10215
10306
|
items: {
|
|
10216
|
-
type: "customer_account" | "
|
|
10307
|
+
type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
|
|
10217
10308
|
account_number: string;
|
|
10218
10309
|
partner_id?: string | undefined;
|
|
10219
10310
|
amount: number;
|
|
@@ -10229,7 +10320,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
10229
10320
|
reference?: string | undefined;
|
|
10230
10321
|
number?: string | undefined;
|
|
10231
10322
|
items: {
|
|
10232
|
-
account_type: "customer_account" | "
|
|
10323
|
+
account_type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
|
|
10233
10324
|
account: string;
|
|
10234
10325
|
amount: number;
|
|
10235
10326
|
description?: string | undefined;
|
|
@@ -10238,6 +10329,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
10238
10329
|
}, params?: {
|
|
10239
10330
|
folder_id?: string | undefined;
|
|
10240
10331
|
financial_counterpart_account?: string | undefined;
|
|
10332
|
+
force_currency_exchange?: "true" | "false" | undefined;
|
|
10241
10333
|
} | undefined): import("../types/api").RequestData<{
|
|
10242
10334
|
date: string;
|
|
10243
10335
|
journal_id: string;
|
|
@@ -10247,13 +10339,13 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
10247
10339
|
id: string;
|
|
10248
10340
|
number: string;
|
|
10249
10341
|
items: {
|
|
10250
|
-
account_type: "customer_account" | "
|
|
10342
|
+
account_type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
|
|
10251
10343
|
account: string;
|
|
10252
10344
|
amount: number;
|
|
10253
10345
|
description?: string | undefined;
|
|
10254
10346
|
counterpart_account: string;
|
|
10255
10347
|
}[];
|
|
10256
|
-
}
|
|
10348
|
+
}>;
|
|
10257
10349
|
createJournalEntryOld(journal_entry: {
|
|
10258
10350
|
reference?: string | undefined;
|
|
10259
10351
|
due_date?: string | undefined;
|
|
@@ -10316,7 +10408,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
10316
10408
|
currency_exchange_rate: number;
|
|
10317
10409
|
date: string;
|
|
10318
10410
|
items: {
|
|
10319
|
-
account_type: "customer_account" | "
|
|
10411
|
+
account_type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
|
|
10320
10412
|
account: string;
|
|
10321
10413
|
force_general_account?: string | undefined;
|
|
10322
10414
|
prioritise_thirdparty_account: boolean;
|
|
@@ -10405,6 +10497,49 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
10405
10497
|
end: string;
|
|
10406
10498
|
closed: boolean;
|
|
10407
10499
|
}[]>;
|
|
10500
|
+
createLedgerAccount(account: {
|
|
10501
|
+
name: string;
|
|
10502
|
+
number: string;
|
|
10503
|
+
}, params?: {
|
|
10504
|
+
folder_id?: string | undefined;
|
|
10505
|
+
} | undefined): import("../types/api").RequestData<{
|
|
10506
|
+
number: string;
|
|
10507
|
+
name: string;
|
|
10508
|
+
active: boolean;
|
|
10509
|
+
type?: "vat" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | "other" | undefined;
|
|
10510
|
+
}>;
|
|
10511
|
+
getJournalEntry(journalEntryId: string, params?: {
|
|
10512
|
+
folder_id?: string | undefined;
|
|
10513
|
+
} | undefined): import("../types/api").RequestData<{
|
|
10514
|
+
reference?: string | undefined;
|
|
10515
|
+
due_date?: string | undefined;
|
|
10516
|
+
journal_id: string;
|
|
10517
|
+
name?: string | undefined;
|
|
10518
|
+
journal_name: string;
|
|
10519
|
+
date: string;
|
|
10520
|
+
posted: boolean;
|
|
10521
|
+
id: string;
|
|
10522
|
+
items: {
|
|
10523
|
+
account_number: string;
|
|
10524
|
+
partner_id?: string | undefined;
|
|
10525
|
+
description?: string | undefined;
|
|
10526
|
+
debit: number;
|
|
10527
|
+
credit: number;
|
|
10528
|
+
currency: string;
|
|
10529
|
+
currency_exchange_rate: number;
|
|
10530
|
+
id: string;
|
|
10531
|
+
partner_name?: string | undefined;
|
|
10532
|
+
account_name: string;
|
|
10533
|
+
matching_numbers: string[];
|
|
10534
|
+
analytic_distribution: {
|
|
10535
|
+
analytic_plan: string;
|
|
10536
|
+
analytic_accounts: {
|
|
10537
|
+
analytic_account: string;
|
|
10538
|
+
percentage: number;
|
|
10539
|
+
}[];
|
|
10540
|
+
}[];
|
|
10541
|
+
}[];
|
|
10542
|
+
}>;
|
|
10408
10543
|
}>;
|
|
10409
10544
|
invoicing: import("../types/api").ApiFor<{
|
|
10410
10545
|
getInvoices(params?: {
|
|
@@ -10802,7 +10937,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
10802
10937
|
} | undefined;
|
|
10803
10938
|
}>;
|
|
10804
10939
|
getContacts(params?: {
|
|
10805
|
-
contact_type?: "
|
|
10940
|
+
contact_type?: "supplier" | "all" | "prospect" | "customer" | undefined;
|
|
10806
10941
|
} | undefined): import("../types/api").RequestData<{
|
|
10807
10942
|
id: string;
|
|
10808
10943
|
source_ref: {
|
|
@@ -12270,7 +12405,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
12270
12405
|
date_from: string;
|
|
12271
12406
|
date_to: string;
|
|
12272
12407
|
location_id?: string | undefined;
|
|
12273
|
-
state?: "
|
|
12408
|
+
state?: "all" | "open" | "closed" | undefined;
|
|
12274
12409
|
}): import("../types/api").RequestData<{
|
|
12275
12410
|
id: string;
|
|
12276
12411
|
order_number?: string | undefined;
|
|
@@ -12289,11 +12424,11 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
12289
12424
|
loyalty?: number | undefined;
|
|
12290
12425
|
customer_id?: string | undefined;
|
|
12291
12426
|
location_id?: string | undefined;
|
|
12292
|
-
taxes
|
|
12427
|
+
taxes: {
|
|
12293
12428
|
tax_rate: number;
|
|
12294
12429
|
tax_amount: number;
|
|
12295
12430
|
total: number;
|
|
12296
|
-
}[]
|
|
12431
|
+
}[];
|
|
12297
12432
|
guests?: number | undefined;
|
|
12298
12433
|
payments: {
|
|
12299
12434
|
id?: string | undefined;
|
|
@@ -12336,7 +12471,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
12336
12471
|
phone?: string | undefined;
|
|
12337
12472
|
email?: string | undefined;
|
|
12338
12473
|
created_on?: string | undefined;
|
|
12339
|
-
addresses
|
|
12474
|
+
addresses: {
|
|
12340
12475
|
address_type?: string | undefined;
|
|
12341
12476
|
name?: string | undefined;
|
|
12342
12477
|
street?: string | undefined;
|
|
@@ -12345,7 +12480,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
12345
12480
|
city?: string | undefined;
|
|
12346
12481
|
postal_code?: string | undefined;
|
|
12347
12482
|
country?: string | undefined;
|
|
12348
|
-
}[]
|
|
12483
|
+
}[];
|
|
12349
12484
|
loyalty?: number | undefined;
|
|
12350
12485
|
birthdate?: string | undefined;
|
|
12351
12486
|
}[]>;
|
|
@@ -12367,11 +12502,11 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
12367
12502
|
loyalty?: number | undefined;
|
|
12368
12503
|
customer_id?: string | undefined;
|
|
12369
12504
|
location_id?: string | undefined;
|
|
12370
|
-
taxes
|
|
12505
|
+
taxes: {
|
|
12371
12506
|
tax_rate: number;
|
|
12372
12507
|
tax_amount: number;
|
|
12373
12508
|
total: number;
|
|
12374
|
-
}[]
|
|
12509
|
+
}[];
|
|
12375
12510
|
guests?: number | undefined;
|
|
12376
12511
|
payments: {
|
|
12377
12512
|
id?: string | undefined;
|
|
@@ -12410,7 +12545,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
12410
12545
|
phone?: string | undefined;
|
|
12411
12546
|
email?: string | undefined;
|
|
12412
12547
|
created_on?: string | undefined;
|
|
12413
|
-
addresses
|
|
12548
|
+
addresses: {
|
|
12414
12549
|
address_type?: string | undefined;
|
|
12415
12550
|
name?: string | undefined;
|
|
12416
12551
|
street?: string | undefined;
|
|
@@ -12419,7 +12554,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
12419
12554
|
city?: string | undefined;
|
|
12420
12555
|
postal_code?: string | undefined;
|
|
12421
12556
|
country?: string | undefined;
|
|
12422
|
-
}[]
|
|
12557
|
+
}[];
|
|
12423
12558
|
loyalty?: number | undefined;
|
|
12424
12559
|
birthdate?: string | undefined;
|
|
12425
12560
|
}>;
|
|
@@ -12445,7 +12580,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
12445
12580
|
phone?: string | undefined;
|
|
12446
12581
|
email?: string | undefined;
|
|
12447
12582
|
created_on?: string | undefined;
|
|
12448
|
-
addresses
|
|
12583
|
+
addresses: {
|
|
12449
12584
|
address_type?: string | undefined;
|
|
12450
12585
|
name?: string | undefined;
|
|
12451
12586
|
street?: string | undefined;
|
|
@@ -12454,7 +12589,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
12454
12589
|
city?: string | undefined;
|
|
12455
12590
|
postal_code?: string | undefined;
|
|
12456
12591
|
country?: string | undefined;
|
|
12457
|
-
}[]
|
|
12592
|
+
}[];
|
|
12458
12593
|
loyalty?: number | undefined;
|
|
12459
12594
|
birthdate?: string | undefined;
|
|
12460
12595
|
}>;
|
|
@@ -12497,11 +12632,11 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
12497
12632
|
}): import("../types/api").RequestData<{
|
|
12498
12633
|
total: number;
|
|
12499
12634
|
tax_amount: number;
|
|
12500
|
-
taxes
|
|
12635
|
+
taxes: {
|
|
12501
12636
|
tax_rate: number;
|
|
12502
12637
|
tax_amount: number;
|
|
12503
12638
|
total: number;
|
|
12504
|
-
}[]
|
|
12639
|
+
}[];
|
|
12505
12640
|
}>;
|
|
12506
12641
|
getClosure(date: string, params?: {
|
|
12507
12642
|
location_id?: string | undefined;
|
|
@@ -12542,11 +12677,11 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
12542
12677
|
loyalty?: number | undefined;
|
|
12543
12678
|
customer_id?: string | undefined;
|
|
12544
12679
|
location_id?: string | undefined;
|
|
12545
|
-
taxes
|
|
12680
|
+
taxes: {
|
|
12546
12681
|
tax_rate: number;
|
|
12547
12682
|
tax_amount: number;
|
|
12548
12683
|
total: number;
|
|
12549
|
-
}[]
|
|
12684
|
+
}[];
|
|
12550
12685
|
guests?: number | undefined;
|
|
12551
12686
|
payments: {
|
|
12552
12687
|
id?: string | undefined;
|
|
@@ -12630,11 +12765,11 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
12630
12765
|
loyalty?: number | undefined;
|
|
12631
12766
|
customer_id?: string | undefined;
|
|
12632
12767
|
location_id?: string | undefined;
|
|
12633
|
-
taxes
|
|
12768
|
+
taxes: {
|
|
12634
12769
|
tax_rate: number;
|
|
12635
12770
|
tax_amount: number;
|
|
12636
12771
|
total: number;
|
|
12637
|
-
}[]
|
|
12772
|
+
}[];
|
|
12638
12773
|
guests?: number | undefined;
|
|
12639
12774
|
items: {
|
|
12640
12775
|
id: string;
|
|
@@ -13469,6 +13604,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
13469
13604
|
folder_id?: string | undefined;
|
|
13470
13605
|
force_financial_period?: string | undefined;
|
|
13471
13606
|
regroup_lines?: "true" | "false" | undefined;
|
|
13607
|
+
force_currency_exchange?: "true" | "false" | undefined;
|
|
13472
13608
|
} | undefined): import("../types/api").RequestData<{
|
|
13473
13609
|
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
13474
13610
|
invoice_number?: string | undefined;
|
|
@@ -13572,6 +13708,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
13572
13708
|
folder_id?: string | undefined;
|
|
13573
13709
|
force_financial_period?: string | undefined;
|
|
13574
13710
|
regroup_lines?: "true" | "false" | undefined;
|
|
13711
|
+
force_currency_exchange?: "true" | "false" | undefined;
|
|
13575
13712
|
} | undefined): import("../types/api").RequestData<{
|
|
13576
13713
|
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
13577
13714
|
invoice_number?: string | undefined;
|
|
@@ -14086,7 +14223,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
14086
14223
|
line_number: number;
|
|
14087
14224
|
description?: string | undefined;
|
|
14088
14225
|
amount: number;
|
|
14089
|
-
type: "customer_account" | "
|
|
14226
|
+
type: "customer_account" | "supplier_account" | "general_account";
|
|
14090
14227
|
account_number: string;
|
|
14091
14228
|
partner_id?: string | undefined;
|
|
14092
14229
|
analytic_account?: string | undefined;
|
|
@@ -14104,7 +14241,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
14104
14241
|
line_number: number;
|
|
14105
14242
|
description?: string | undefined;
|
|
14106
14243
|
amount: number;
|
|
14107
|
-
type: "customer_account" | "
|
|
14244
|
+
type: "customer_account" | "supplier_account" | "general_account";
|
|
14108
14245
|
account_number: string;
|
|
14109
14246
|
partner_id?: string | undefined;
|
|
14110
14247
|
analytic_account?: string | undefined;
|
|
@@ -14122,7 +14259,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
14122
14259
|
line_number: number;
|
|
14123
14260
|
description?: string | undefined;
|
|
14124
14261
|
amount: number;
|
|
14125
|
-
type: "customer_account" | "
|
|
14262
|
+
type: "customer_account" | "supplier_account" | "general_account";
|
|
14126
14263
|
account_number: string;
|
|
14127
14264
|
partner_id?: string | undefined;
|
|
14128
14265
|
analytic_account?: string | undefined;
|
|
@@ -14142,7 +14279,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
14142
14279
|
line_number: number;
|
|
14143
14280
|
description?: string | undefined;
|
|
14144
14281
|
amount: number;
|
|
14145
|
-
type: "customer_account" | "
|
|
14282
|
+
type: "customer_account" | "supplier_account" | "general_account";
|
|
14146
14283
|
account_number: string;
|
|
14147
14284
|
partner_id?: string | undefined;
|
|
14148
14285
|
analytic_account?: string | undefined;
|
|
@@ -14161,9 +14298,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
14161
14298
|
headers: {
|
|
14162
14299
|
[name: string]: unknown;
|
|
14163
14300
|
};
|
|
14164
|
-
content
|
|
14165
|
-
'application/json': unknown;
|
|
14166
|
-
};
|
|
14301
|
+
content?: undefined;
|
|
14167
14302
|
}>;
|
|
14168
14303
|
getAttachments(params: {
|
|
14169
14304
|
folder_id?: string | undefined;
|
|
@@ -14251,7 +14386,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
14251
14386
|
reference?: string | undefined;
|
|
14252
14387
|
number?: string | undefined;
|
|
14253
14388
|
items: {
|
|
14254
|
-
type: "customer_account" | "
|
|
14389
|
+
type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
|
|
14255
14390
|
account_number: string;
|
|
14256
14391
|
partner_id?: string | undefined;
|
|
14257
14392
|
amount: number;
|
|
@@ -14261,6 +14396,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
14261
14396
|
}, params?: {
|
|
14262
14397
|
folder_id?: string | undefined;
|
|
14263
14398
|
financial_counterpart_account?: string | undefined;
|
|
14399
|
+
force_currency_exchange?: "true" | "false" | undefined;
|
|
14264
14400
|
} | undefined): import("../types/api").RequestData<{
|
|
14265
14401
|
date: string;
|
|
14266
14402
|
journal_id: string;
|
|
@@ -14270,7 +14406,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
14270
14406
|
id: string;
|
|
14271
14407
|
number: string;
|
|
14272
14408
|
items: {
|
|
14273
|
-
type: "customer_account" | "
|
|
14409
|
+
type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
|
|
14274
14410
|
account_number: string;
|
|
14275
14411
|
partner_id?: string | undefined;
|
|
14276
14412
|
amount: number;
|
|
@@ -14286,7 +14422,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
14286
14422
|
reference?: string | undefined;
|
|
14287
14423
|
number?: string | undefined;
|
|
14288
14424
|
items: {
|
|
14289
|
-
account_type: "customer_account" | "
|
|
14425
|
+
account_type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
|
|
14290
14426
|
account: string;
|
|
14291
14427
|
amount: number;
|
|
14292
14428
|
description?: string | undefined;
|
|
@@ -14295,6 +14431,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
14295
14431
|
}, params?: {
|
|
14296
14432
|
folder_id?: string | undefined;
|
|
14297
14433
|
financial_counterpart_account?: string | undefined;
|
|
14434
|
+
force_currency_exchange?: "true" | "false" | undefined;
|
|
14298
14435
|
} | undefined): import("../types/api").RequestData<{
|
|
14299
14436
|
date: string;
|
|
14300
14437
|
journal_id: string;
|
|
@@ -14304,13 +14441,13 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
14304
14441
|
id: string;
|
|
14305
14442
|
number: string;
|
|
14306
14443
|
items: {
|
|
14307
|
-
account_type: "customer_account" | "
|
|
14444
|
+
account_type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
|
|
14308
14445
|
account: string;
|
|
14309
14446
|
amount: number;
|
|
14310
14447
|
description?: string | undefined;
|
|
14311
14448
|
counterpart_account: string;
|
|
14312
14449
|
}[];
|
|
14313
|
-
}
|
|
14450
|
+
}>;
|
|
14314
14451
|
createJournalEntryOld(journal_entry: {
|
|
14315
14452
|
reference?: string | undefined;
|
|
14316
14453
|
due_date?: string | undefined;
|
|
@@ -14373,7 +14510,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
14373
14510
|
currency_exchange_rate: number;
|
|
14374
14511
|
date: string;
|
|
14375
14512
|
items: {
|
|
14376
|
-
account_type: "customer_account" | "
|
|
14513
|
+
account_type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
|
|
14377
14514
|
account: string;
|
|
14378
14515
|
force_general_account?: string | undefined;
|
|
14379
14516
|
prioritise_thirdparty_account: boolean;
|
|
@@ -14462,6 +14599,49 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
14462
14599
|
end: string;
|
|
14463
14600
|
closed: boolean;
|
|
14464
14601
|
}[]>;
|
|
14602
|
+
createLedgerAccount(account: {
|
|
14603
|
+
name: string;
|
|
14604
|
+
number: string;
|
|
14605
|
+
}, params?: {
|
|
14606
|
+
folder_id?: string | undefined;
|
|
14607
|
+
} | undefined): import("../types/api").RequestData<{
|
|
14608
|
+
number: string;
|
|
14609
|
+
name: string;
|
|
14610
|
+
active: boolean;
|
|
14611
|
+
type?: "vat" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | "other" | undefined;
|
|
14612
|
+
}>;
|
|
14613
|
+
getJournalEntry(journalEntryId: string, params?: {
|
|
14614
|
+
folder_id?: string | undefined;
|
|
14615
|
+
} | undefined): import("../types/api").RequestData<{
|
|
14616
|
+
reference?: string | undefined;
|
|
14617
|
+
due_date?: string | undefined;
|
|
14618
|
+
journal_id: string;
|
|
14619
|
+
name?: string | undefined;
|
|
14620
|
+
journal_name: string;
|
|
14621
|
+
date: string;
|
|
14622
|
+
posted: boolean;
|
|
14623
|
+
id: string;
|
|
14624
|
+
items: {
|
|
14625
|
+
account_number: string;
|
|
14626
|
+
partner_id?: string | undefined;
|
|
14627
|
+
description?: string | undefined;
|
|
14628
|
+
debit: number;
|
|
14629
|
+
credit: number;
|
|
14630
|
+
currency: string;
|
|
14631
|
+
currency_exchange_rate: number;
|
|
14632
|
+
id: string;
|
|
14633
|
+
partner_name?: string | undefined;
|
|
14634
|
+
account_name: string;
|
|
14635
|
+
matching_numbers: string[];
|
|
14636
|
+
analytic_distribution: {
|
|
14637
|
+
analytic_plan: string;
|
|
14638
|
+
analytic_accounts: {
|
|
14639
|
+
analytic_account: string;
|
|
14640
|
+
percentage: number;
|
|
14641
|
+
}[];
|
|
14642
|
+
}[];
|
|
14643
|
+
}[];
|
|
14644
|
+
}>;
|
|
14465
14645
|
}>;
|
|
14466
14646
|
invoicing: import("../types/api").ApiFor<{
|
|
14467
14647
|
getInvoices(params?: {
|
|
@@ -14859,7 +15039,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
14859
15039
|
} | undefined;
|
|
14860
15040
|
}>;
|
|
14861
15041
|
getContacts(params?: {
|
|
14862
|
-
contact_type?: "
|
|
15042
|
+
contact_type?: "supplier" | "all" | "prospect" | "customer" | undefined;
|
|
14863
15043
|
} | undefined): import("../types/api").RequestData<{
|
|
14864
15044
|
id: string;
|
|
14865
15045
|
source_ref: {
|