@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
|
@@ -81,7 +81,7 @@ export declare class API {
|
|
|
81
81
|
date_from: string;
|
|
82
82
|
date_to: string;
|
|
83
83
|
location_id?: string | undefined;
|
|
84
|
-
state?: "
|
|
84
|
+
state?: "all" | "open" | "closed" | undefined;
|
|
85
85
|
}): import("../types/api").RequestData<{
|
|
86
86
|
id: string;
|
|
87
87
|
order_number?: string | undefined;
|
|
@@ -100,11 +100,11 @@ export declare class API {
|
|
|
100
100
|
loyalty?: number | undefined;
|
|
101
101
|
customer_id?: string | undefined;
|
|
102
102
|
location_id?: string | undefined;
|
|
103
|
-
taxes
|
|
103
|
+
taxes: {
|
|
104
104
|
tax_rate: number;
|
|
105
105
|
tax_amount: number;
|
|
106
106
|
total: number;
|
|
107
|
-
}[]
|
|
107
|
+
}[];
|
|
108
108
|
guests?: number | undefined;
|
|
109
109
|
payments: {
|
|
110
110
|
id?: string | undefined;
|
|
@@ -147,7 +147,7 @@ export declare class API {
|
|
|
147
147
|
phone?: string | undefined;
|
|
148
148
|
email?: string | undefined;
|
|
149
149
|
created_on?: string | undefined;
|
|
150
|
-
addresses
|
|
150
|
+
addresses: {
|
|
151
151
|
address_type?: string | undefined;
|
|
152
152
|
name?: string | undefined;
|
|
153
153
|
street?: string | undefined;
|
|
@@ -156,7 +156,7 @@ export declare class API {
|
|
|
156
156
|
city?: string | undefined;
|
|
157
157
|
postal_code?: string | undefined;
|
|
158
158
|
country?: string | undefined;
|
|
159
|
-
}[]
|
|
159
|
+
}[];
|
|
160
160
|
loyalty?: number | undefined;
|
|
161
161
|
birthdate?: string | undefined;
|
|
162
162
|
}[]>;
|
|
@@ -178,11 +178,11 @@ export declare class API {
|
|
|
178
178
|
loyalty?: number | undefined;
|
|
179
179
|
customer_id?: string | undefined;
|
|
180
180
|
location_id?: string | undefined;
|
|
181
|
-
taxes
|
|
181
|
+
taxes: {
|
|
182
182
|
tax_rate: number;
|
|
183
183
|
tax_amount: number;
|
|
184
184
|
total: number;
|
|
185
|
-
}[]
|
|
185
|
+
}[];
|
|
186
186
|
guests?: number | undefined;
|
|
187
187
|
payments: {
|
|
188
188
|
id?: string | undefined;
|
|
@@ -221,7 +221,7 @@ export declare class API {
|
|
|
221
221
|
phone?: string | undefined;
|
|
222
222
|
email?: string | undefined;
|
|
223
223
|
created_on?: string | undefined;
|
|
224
|
-
addresses
|
|
224
|
+
addresses: {
|
|
225
225
|
address_type?: string | undefined;
|
|
226
226
|
name?: string | undefined;
|
|
227
227
|
street?: string | undefined;
|
|
@@ -230,7 +230,7 @@ export declare class API {
|
|
|
230
230
|
city?: string | undefined;
|
|
231
231
|
postal_code?: string | undefined;
|
|
232
232
|
country?: string | undefined;
|
|
233
|
-
}[]
|
|
233
|
+
}[];
|
|
234
234
|
loyalty?: number | undefined;
|
|
235
235
|
birthdate?: string | undefined;
|
|
236
236
|
}>;
|
|
@@ -256,7 +256,7 @@ export declare class API {
|
|
|
256
256
|
phone?: string | undefined;
|
|
257
257
|
email?: string | undefined;
|
|
258
258
|
created_on?: string | undefined;
|
|
259
|
-
addresses
|
|
259
|
+
addresses: {
|
|
260
260
|
address_type?: string | undefined;
|
|
261
261
|
name?: string | undefined;
|
|
262
262
|
street?: string | undefined;
|
|
@@ -265,7 +265,7 @@ export declare class API {
|
|
|
265
265
|
city?: string | undefined;
|
|
266
266
|
postal_code?: string | undefined;
|
|
267
267
|
country?: string | undefined;
|
|
268
|
-
}[]
|
|
268
|
+
}[];
|
|
269
269
|
loyalty?: number | undefined;
|
|
270
270
|
birthdate?: string | undefined;
|
|
271
271
|
}>;
|
|
@@ -308,11 +308,11 @@ export declare class API {
|
|
|
308
308
|
}): import("../types/api").RequestData<{
|
|
309
309
|
total: number;
|
|
310
310
|
tax_amount: number;
|
|
311
|
-
taxes
|
|
311
|
+
taxes: {
|
|
312
312
|
tax_rate: number;
|
|
313
313
|
tax_amount: number;
|
|
314
314
|
total: number;
|
|
315
|
-
}[]
|
|
315
|
+
}[];
|
|
316
316
|
}>;
|
|
317
317
|
getClosure(date: string, params?: {
|
|
318
318
|
location_id?: string | undefined;
|
|
@@ -353,11 +353,11 @@ export declare class API {
|
|
|
353
353
|
loyalty?: number | undefined;
|
|
354
354
|
customer_id?: string | undefined;
|
|
355
355
|
location_id?: string | undefined;
|
|
356
|
-
taxes
|
|
356
|
+
taxes: {
|
|
357
357
|
tax_rate: number;
|
|
358
358
|
tax_amount: number;
|
|
359
359
|
total: number;
|
|
360
|
-
}[]
|
|
360
|
+
}[];
|
|
361
361
|
guests?: number | undefined;
|
|
362
362
|
payments: {
|
|
363
363
|
id?: string | undefined;
|
|
@@ -441,11 +441,11 @@ export declare class API {
|
|
|
441
441
|
loyalty?: number | undefined;
|
|
442
442
|
customer_id?: string | undefined;
|
|
443
443
|
location_id?: string | undefined;
|
|
444
|
-
taxes
|
|
444
|
+
taxes: {
|
|
445
445
|
tax_rate: number;
|
|
446
446
|
tax_amount: number;
|
|
447
447
|
total: number;
|
|
448
|
-
}[]
|
|
448
|
+
}[];
|
|
449
449
|
guests?: number | undefined;
|
|
450
450
|
items: {
|
|
451
451
|
id: string;
|
|
@@ -1280,6 +1280,7 @@ export declare class API {
|
|
|
1280
1280
|
folder_id?: string | undefined;
|
|
1281
1281
|
force_financial_period?: string | undefined;
|
|
1282
1282
|
regroup_lines?: "true" | "false" | undefined;
|
|
1283
|
+
force_currency_exchange?: "true" | "false" | undefined;
|
|
1283
1284
|
} | undefined): import("../types/api").RequestData<{
|
|
1284
1285
|
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
1285
1286
|
invoice_number?: string | undefined;
|
|
@@ -1383,6 +1384,7 @@ export declare class API {
|
|
|
1383
1384
|
folder_id?: string | undefined;
|
|
1384
1385
|
force_financial_period?: string | undefined;
|
|
1385
1386
|
regroup_lines?: "true" | "false" | undefined;
|
|
1387
|
+
force_currency_exchange?: "true" | "false" | undefined;
|
|
1386
1388
|
} | undefined): import("../types/api").RequestData<{
|
|
1387
1389
|
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
1388
1390
|
invoice_number?: string | undefined;
|
|
@@ -1897,7 +1899,7 @@ export declare class API {
|
|
|
1897
1899
|
line_number: number;
|
|
1898
1900
|
description?: string | undefined;
|
|
1899
1901
|
amount: number;
|
|
1900
|
-
type: "customer_account" | "
|
|
1902
|
+
type: "customer_account" | "supplier_account" | "general_account";
|
|
1901
1903
|
account_number: string;
|
|
1902
1904
|
partner_id?: string | undefined;
|
|
1903
1905
|
analytic_account?: string | undefined;
|
|
@@ -1915,7 +1917,7 @@ export declare class API {
|
|
|
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 @@ export declare class API {
|
|
|
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;
|
|
@@ -1953,7 +1955,7 @@ export declare class API {
|
|
|
1953
1955
|
line_number: number;
|
|
1954
1956
|
description?: string | undefined;
|
|
1955
1957
|
amount: number;
|
|
1956
|
-
type: "customer_account" | "
|
|
1958
|
+
type: "customer_account" | "supplier_account" | "general_account";
|
|
1957
1959
|
account_number: string;
|
|
1958
1960
|
partner_id?: string | undefined;
|
|
1959
1961
|
analytic_account?: string | undefined;
|
|
@@ -1972,9 +1974,7 @@ export declare class API {
|
|
|
1972
1974
|
headers: {
|
|
1973
1975
|
[name: string]: unknown;
|
|
1974
1976
|
};
|
|
1975
|
-
content
|
|
1976
|
-
'application/json': unknown;
|
|
1977
|
-
};
|
|
1977
|
+
content?: undefined;
|
|
1978
1978
|
}>;
|
|
1979
1979
|
getAttachments(params: {
|
|
1980
1980
|
folder_id?: string | undefined;
|
|
@@ -2062,7 +2062,7 @@ export declare class API {
|
|
|
2062
2062
|
reference?: string | undefined;
|
|
2063
2063
|
number?: string | undefined;
|
|
2064
2064
|
items: {
|
|
2065
|
-
type: "customer_account" | "
|
|
2065
|
+
type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
|
|
2066
2066
|
account_number: string;
|
|
2067
2067
|
partner_id?: string | undefined;
|
|
2068
2068
|
amount: number;
|
|
@@ -2072,6 +2072,7 @@ export declare class API {
|
|
|
2072
2072
|
}, params?: {
|
|
2073
2073
|
folder_id?: string | undefined;
|
|
2074
2074
|
financial_counterpart_account?: string | undefined;
|
|
2075
|
+
force_currency_exchange?: "true" | "false" | undefined;
|
|
2075
2076
|
} | undefined): import("../types/api").RequestData<{
|
|
2076
2077
|
date: string;
|
|
2077
2078
|
journal_id: string;
|
|
@@ -2081,7 +2082,7 @@ export declare class API {
|
|
|
2081
2082
|
id: string;
|
|
2082
2083
|
number: string;
|
|
2083
2084
|
items: {
|
|
2084
|
-
type: "customer_account" | "
|
|
2085
|
+
type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
|
|
2085
2086
|
account_number: string;
|
|
2086
2087
|
partner_id?: string | undefined;
|
|
2087
2088
|
amount: number;
|
|
@@ -2097,7 +2098,7 @@ export declare class API {
|
|
|
2097
2098
|
reference?: string | undefined;
|
|
2098
2099
|
number?: string | undefined;
|
|
2099
2100
|
items: {
|
|
2100
|
-
account_type: "customer_account" | "
|
|
2101
|
+
account_type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
|
|
2101
2102
|
account: string;
|
|
2102
2103
|
amount: number;
|
|
2103
2104
|
description?: string | undefined;
|
|
@@ -2106,6 +2107,7 @@ export declare class API {
|
|
|
2106
2107
|
}, params?: {
|
|
2107
2108
|
folder_id?: string | undefined;
|
|
2108
2109
|
financial_counterpart_account?: string | undefined;
|
|
2110
|
+
force_currency_exchange?: "true" | "false" | undefined;
|
|
2109
2111
|
} | undefined): import("../types/api").RequestData<{
|
|
2110
2112
|
date: string;
|
|
2111
2113
|
journal_id: string;
|
|
@@ -2115,13 +2117,13 @@ export declare class API {
|
|
|
2115
2117
|
id: string;
|
|
2116
2118
|
number: string;
|
|
2117
2119
|
items: {
|
|
2118
|
-
account_type: "customer_account" | "
|
|
2120
|
+
account_type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
|
|
2119
2121
|
account: string;
|
|
2120
2122
|
amount: number;
|
|
2121
2123
|
description?: string | undefined;
|
|
2122
2124
|
counterpart_account: string;
|
|
2123
2125
|
}[];
|
|
2124
|
-
}
|
|
2126
|
+
}>;
|
|
2125
2127
|
createJournalEntryOld(journal_entry: {
|
|
2126
2128
|
reference?: string | undefined;
|
|
2127
2129
|
due_date?: string | undefined;
|
|
@@ -2184,7 +2186,7 @@ export declare class API {
|
|
|
2184
2186
|
currency_exchange_rate: number;
|
|
2185
2187
|
date: string;
|
|
2186
2188
|
items: {
|
|
2187
|
-
account_type: "customer_account" | "
|
|
2189
|
+
account_type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
|
|
2188
2190
|
account: string;
|
|
2189
2191
|
force_general_account?: string | undefined;
|
|
2190
2192
|
prioritise_thirdparty_account: boolean;
|
|
@@ -2273,6 +2275,49 @@ export declare class API {
|
|
|
2273
2275
|
end: string;
|
|
2274
2276
|
closed: boolean;
|
|
2275
2277
|
}[]>;
|
|
2278
|
+
createLedgerAccount(account: {
|
|
2279
|
+
name: string;
|
|
2280
|
+
number: string;
|
|
2281
|
+
}, params?: {
|
|
2282
|
+
folder_id?: string | undefined;
|
|
2283
|
+
} | undefined): import("../types/api").RequestData<{
|
|
2284
|
+
number: string;
|
|
2285
|
+
name: string;
|
|
2286
|
+
active: boolean;
|
|
2287
|
+
type?: "vat" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | "other" | undefined;
|
|
2288
|
+
}>;
|
|
2289
|
+
getJournalEntry(journalEntryId: string, params?: {
|
|
2290
|
+
folder_id?: string | undefined;
|
|
2291
|
+
} | undefined): import("../types/api").RequestData<{
|
|
2292
|
+
reference?: string | undefined;
|
|
2293
|
+
due_date?: string | undefined;
|
|
2294
|
+
journal_id: string;
|
|
2295
|
+
name?: string | undefined;
|
|
2296
|
+
journal_name: string;
|
|
2297
|
+
date: string;
|
|
2298
|
+
posted: boolean;
|
|
2299
|
+
id: string;
|
|
2300
|
+
items: {
|
|
2301
|
+
account_number: string;
|
|
2302
|
+
partner_id?: string | undefined;
|
|
2303
|
+
description?: string | undefined;
|
|
2304
|
+
debit: number;
|
|
2305
|
+
credit: number;
|
|
2306
|
+
currency: string;
|
|
2307
|
+
currency_exchange_rate: number;
|
|
2308
|
+
id: string;
|
|
2309
|
+
partner_name?: string | undefined;
|
|
2310
|
+
account_name: string;
|
|
2311
|
+
matching_numbers: string[];
|
|
2312
|
+
analytic_distribution: {
|
|
2313
|
+
analytic_plan: string;
|
|
2314
|
+
analytic_accounts: {
|
|
2315
|
+
analytic_account: string;
|
|
2316
|
+
percentage: number;
|
|
2317
|
+
}[];
|
|
2318
|
+
}[];
|
|
2319
|
+
}[];
|
|
2320
|
+
}>;
|
|
2276
2321
|
}>;
|
|
2277
2322
|
invoicing: import("../types/api").ApiFor<{
|
|
2278
2323
|
getInvoices(params?: {
|
|
@@ -2670,7 +2715,7 @@ export declare class API {
|
|
|
2670
2715
|
} | undefined;
|
|
2671
2716
|
}>;
|
|
2672
2717
|
getContacts(params?: {
|
|
2673
|
-
contact_type?: "
|
|
2718
|
+
contact_type?: "supplier" | "all" | "prospect" | "customer" | undefined;
|
|
2674
2719
|
} | undefined): import("../types/api").RequestData<{
|
|
2675
2720
|
id: string;
|
|
2676
2721
|
source_ref: {
|
|
@@ -4120,7 +4165,7 @@ export declare class API {
|
|
|
4120
4165
|
date_from: string;
|
|
4121
4166
|
date_to: string;
|
|
4122
4167
|
location_id?: string | undefined;
|
|
4123
|
-
state?: "
|
|
4168
|
+
state?: "all" | "open" | "closed" | undefined;
|
|
4124
4169
|
}): import("../types/api").RequestData<{
|
|
4125
4170
|
id: string;
|
|
4126
4171
|
order_number?: string | undefined;
|
|
@@ -4139,11 +4184,11 @@ export declare class API {
|
|
|
4139
4184
|
loyalty?: number | undefined;
|
|
4140
4185
|
customer_id?: string | undefined;
|
|
4141
4186
|
location_id?: string | undefined;
|
|
4142
|
-
taxes
|
|
4187
|
+
taxes: {
|
|
4143
4188
|
tax_rate: number;
|
|
4144
4189
|
tax_amount: number;
|
|
4145
4190
|
total: number;
|
|
4146
|
-
}[]
|
|
4191
|
+
}[];
|
|
4147
4192
|
guests?: number | undefined;
|
|
4148
4193
|
payments: {
|
|
4149
4194
|
id?: string | undefined;
|
|
@@ -4186,7 +4231,7 @@ export declare class API {
|
|
|
4186
4231
|
phone?: string | undefined;
|
|
4187
4232
|
email?: string | undefined;
|
|
4188
4233
|
created_on?: string | undefined;
|
|
4189
|
-
addresses
|
|
4234
|
+
addresses: {
|
|
4190
4235
|
address_type?: string | undefined;
|
|
4191
4236
|
name?: string | undefined;
|
|
4192
4237
|
street?: string | undefined;
|
|
@@ -4195,7 +4240,7 @@ export declare class API {
|
|
|
4195
4240
|
city?: string | undefined;
|
|
4196
4241
|
postal_code?: string | undefined;
|
|
4197
4242
|
country?: string | undefined;
|
|
4198
|
-
}[]
|
|
4243
|
+
}[];
|
|
4199
4244
|
loyalty?: number | undefined;
|
|
4200
4245
|
birthdate?: string | undefined;
|
|
4201
4246
|
}[]>;
|
|
@@ -4217,11 +4262,11 @@ export declare class API {
|
|
|
4217
4262
|
loyalty?: number | undefined;
|
|
4218
4263
|
customer_id?: string | undefined;
|
|
4219
4264
|
location_id?: string | undefined;
|
|
4220
|
-
taxes
|
|
4265
|
+
taxes: {
|
|
4221
4266
|
tax_rate: number;
|
|
4222
4267
|
tax_amount: number;
|
|
4223
4268
|
total: number;
|
|
4224
|
-
}[]
|
|
4269
|
+
}[];
|
|
4225
4270
|
guests?: number | undefined;
|
|
4226
4271
|
payments: {
|
|
4227
4272
|
id?: string | undefined;
|
|
@@ -4260,7 +4305,7 @@ export declare class API {
|
|
|
4260
4305
|
phone?: string | undefined;
|
|
4261
4306
|
email?: string | undefined;
|
|
4262
4307
|
created_on?: string | undefined;
|
|
4263
|
-
addresses
|
|
4308
|
+
addresses: {
|
|
4264
4309
|
address_type?: string | undefined;
|
|
4265
4310
|
name?: string | undefined;
|
|
4266
4311
|
street?: string | undefined;
|
|
@@ -4269,7 +4314,7 @@ export declare class API {
|
|
|
4269
4314
|
city?: string | undefined;
|
|
4270
4315
|
postal_code?: string | undefined;
|
|
4271
4316
|
country?: string | undefined;
|
|
4272
|
-
}[]
|
|
4317
|
+
}[];
|
|
4273
4318
|
loyalty?: number | undefined;
|
|
4274
4319
|
birthdate?: string | undefined;
|
|
4275
4320
|
}>;
|
|
@@ -4295,7 +4340,7 @@ export declare class API {
|
|
|
4295
4340
|
phone?: string | undefined;
|
|
4296
4341
|
email?: string | undefined;
|
|
4297
4342
|
created_on?: string | undefined;
|
|
4298
|
-
addresses
|
|
4343
|
+
addresses: {
|
|
4299
4344
|
address_type?: string | undefined;
|
|
4300
4345
|
name?: string | undefined;
|
|
4301
4346
|
street?: string | undefined;
|
|
@@ -4304,7 +4349,7 @@ export declare class API {
|
|
|
4304
4349
|
city?: string | undefined;
|
|
4305
4350
|
postal_code?: string | undefined;
|
|
4306
4351
|
country?: string | undefined;
|
|
4307
|
-
}[]
|
|
4352
|
+
}[];
|
|
4308
4353
|
loyalty?: number | undefined;
|
|
4309
4354
|
birthdate?: string | undefined;
|
|
4310
4355
|
}>;
|
|
@@ -4347,11 +4392,11 @@ export declare class API {
|
|
|
4347
4392
|
}): import("../types/api").RequestData<{
|
|
4348
4393
|
total: number;
|
|
4349
4394
|
tax_amount: number;
|
|
4350
|
-
taxes
|
|
4395
|
+
taxes: {
|
|
4351
4396
|
tax_rate: number;
|
|
4352
4397
|
tax_amount: number;
|
|
4353
4398
|
total: number;
|
|
4354
|
-
}[]
|
|
4399
|
+
}[];
|
|
4355
4400
|
}>;
|
|
4356
4401
|
getClosure(date: string, params?: {
|
|
4357
4402
|
location_id?: string | undefined;
|
|
@@ -4392,11 +4437,11 @@ export declare class API {
|
|
|
4392
4437
|
loyalty?: number | undefined;
|
|
4393
4438
|
customer_id?: string | undefined;
|
|
4394
4439
|
location_id?: string | undefined;
|
|
4395
|
-
taxes
|
|
4440
|
+
taxes: {
|
|
4396
4441
|
tax_rate: number;
|
|
4397
4442
|
tax_amount: number;
|
|
4398
4443
|
total: number;
|
|
4399
|
-
}[]
|
|
4444
|
+
}[];
|
|
4400
4445
|
guests?: number | undefined;
|
|
4401
4446
|
payments: {
|
|
4402
4447
|
id?: string | undefined;
|
|
@@ -4480,11 +4525,11 @@ export declare class API {
|
|
|
4480
4525
|
loyalty?: number | undefined;
|
|
4481
4526
|
customer_id?: string | undefined;
|
|
4482
4527
|
location_id?: string | undefined;
|
|
4483
|
-
taxes
|
|
4528
|
+
taxes: {
|
|
4484
4529
|
tax_rate: number;
|
|
4485
4530
|
tax_amount: number;
|
|
4486
4531
|
total: number;
|
|
4487
|
-
}[]
|
|
4532
|
+
}[];
|
|
4488
4533
|
guests?: number | undefined;
|
|
4489
4534
|
items: {
|
|
4490
4535
|
id: string;
|
|
@@ -5319,6 +5364,7 @@ export declare class API {
|
|
|
5319
5364
|
folder_id?: string | undefined;
|
|
5320
5365
|
force_financial_period?: string | undefined;
|
|
5321
5366
|
regroup_lines?: "true" | "false" | undefined;
|
|
5367
|
+
force_currency_exchange?: "true" | "false" | undefined;
|
|
5322
5368
|
} | undefined): import("../types/api").RequestData<{
|
|
5323
5369
|
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
5324
5370
|
invoice_number?: string | undefined;
|
|
@@ -5422,6 +5468,7 @@ export declare class API {
|
|
|
5422
5468
|
folder_id?: string | undefined;
|
|
5423
5469
|
force_financial_period?: string | undefined;
|
|
5424
5470
|
regroup_lines?: "true" | "false" | undefined;
|
|
5471
|
+
force_currency_exchange?: "true" | "false" | undefined;
|
|
5425
5472
|
} | undefined): import("../types/api").RequestData<{
|
|
5426
5473
|
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
5427
5474
|
invoice_number?: string | undefined;
|
|
@@ -5936,7 +5983,7 @@ export declare class API {
|
|
|
5936
5983
|
line_number: number;
|
|
5937
5984
|
description?: string | undefined;
|
|
5938
5985
|
amount: number;
|
|
5939
|
-
type: "customer_account" | "
|
|
5986
|
+
type: "customer_account" | "supplier_account" | "general_account";
|
|
5940
5987
|
account_number: string;
|
|
5941
5988
|
partner_id?: string | undefined;
|
|
5942
5989
|
analytic_account?: string | undefined;
|
|
@@ -5954,7 +6001,7 @@ export declare class API {
|
|
|
5954
6001
|
line_number: number;
|
|
5955
6002
|
description?: string | undefined;
|
|
5956
6003
|
amount: number;
|
|
5957
|
-
type: "customer_account" | "
|
|
6004
|
+
type: "customer_account" | "supplier_account" | "general_account";
|
|
5958
6005
|
account_number: string;
|
|
5959
6006
|
partner_id?: string | undefined;
|
|
5960
6007
|
analytic_account?: string | undefined;
|
|
@@ -5972,7 +6019,7 @@ export declare class API {
|
|
|
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;
|
|
@@ -5992,7 +6039,7 @@ export declare class API {
|
|
|
5992
6039
|
line_number: number;
|
|
5993
6040
|
description?: string | undefined;
|
|
5994
6041
|
amount: number;
|
|
5995
|
-
type: "customer_account" | "
|
|
6042
|
+
type: "customer_account" | "supplier_account" | "general_account";
|
|
5996
6043
|
account_number: string;
|
|
5997
6044
|
partner_id?: string | undefined;
|
|
5998
6045
|
analytic_account?: string | undefined;
|
|
@@ -6011,9 +6058,7 @@ export declare class API {
|
|
|
6011
6058
|
headers: {
|
|
6012
6059
|
[name: string]: unknown;
|
|
6013
6060
|
};
|
|
6014
|
-
content
|
|
6015
|
-
'application/json': unknown;
|
|
6016
|
-
};
|
|
6061
|
+
content?: undefined;
|
|
6017
6062
|
}>;
|
|
6018
6063
|
getAttachments(params: {
|
|
6019
6064
|
folder_id?: string | undefined;
|
|
@@ -6101,7 +6146,7 @@ export declare class API {
|
|
|
6101
6146
|
reference?: string | undefined;
|
|
6102
6147
|
number?: string | undefined;
|
|
6103
6148
|
items: {
|
|
6104
|
-
type: "customer_account" | "
|
|
6149
|
+
type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
|
|
6105
6150
|
account_number: string;
|
|
6106
6151
|
partner_id?: string | undefined;
|
|
6107
6152
|
amount: number;
|
|
@@ -6111,6 +6156,7 @@ export declare class API {
|
|
|
6111
6156
|
}, params?: {
|
|
6112
6157
|
folder_id?: string | undefined;
|
|
6113
6158
|
financial_counterpart_account?: string | undefined;
|
|
6159
|
+
force_currency_exchange?: "true" | "false" | undefined;
|
|
6114
6160
|
} | undefined): import("../types/api").RequestData<{
|
|
6115
6161
|
date: string;
|
|
6116
6162
|
journal_id: string;
|
|
@@ -6120,7 +6166,7 @@ export declare class API {
|
|
|
6120
6166
|
id: string;
|
|
6121
6167
|
number: string;
|
|
6122
6168
|
items: {
|
|
6123
|
-
type: "customer_account" | "
|
|
6169
|
+
type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
|
|
6124
6170
|
account_number: string;
|
|
6125
6171
|
partner_id?: string | undefined;
|
|
6126
6172
|
amount: number;
|
|
@@ -6136,7 +6182,7 @@ export declare class API {
|
|
|
6136
6182
|
reference?: string | undefined;
|
|
6137
6183
|
number?: string | undefined;
|
|
6138
6184
|
items: {
|
|
6139
|
-
account_type: "customer_account" | "
|
|
6185
|
+
account_type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
|
|
6140
6186
|
account: string;
|
|
6141
6187
|
amount: number;
|
|
6142
6188
|
description?: string | undefined;
|
|
@@ -6145,6 +6191,7 @@ export declare class API {
|
|
|
6145
6191
|
}, params?: {
|
|
6146
6192
|
folder_id?: string | undefined;
|
|
6147
6193
|
financial_counterpart_account?: string | undefined;
|
|
6194
|
+
force_currency_exchange?: "true" | "false" | undefined;
|
|
6148
6195
|
} | undefined): import("../types/api").RequestData<{
|
|
6149
6196
|
date: string;
|
|
6150
6197
|
journal_id: string;
|
|
@@ -6154,13 +6201,13 @@ export declare class API {
|
|
|
6154
6201
|
id: string;
|
|
6155
6202
|
number: string;
|
|
6156
6203
|
items: {
|
|
6157
|
-
account_type: "customer_account" | "
|
|
6204
|
+
account_type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
|
|
6158
6205
|
account: string;
|
|
6159
6206
|
amount: number;
|
|
6160
6207
|
description?: string | undefined;
|
|
6161
6208
|
counterpart_account: string;
|
|
6162
6209
|
}[];
|
|
6163
|
-
}
|
|
6210
|
+
}>;
|
|
6164
6211
|
createJournalEntryOld(journal_entry: {
|
|
6165
6212
|
reference?: string | undefined;
|
|
6166
6213
|
due_date?: string | undefined;
|
|
@@ -6223,7 +6270,7 @@ export declare class API {
|
|
|
6223
6270
|
currency_exchange_rate: number;
|
|
6224
6271
|
date: string;
|
|
6225
6272
|
items: {
|
|
6226
|
-
account_type: "customer_account" | "
|
|
6273
|
+
account_type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
|
|
6227
6274
|
account: string;
|
|
6228
6275
|
force_general_account?: string | undefined;
|
|
6229
6276
|
prioritise_thirdparty_account: boolean;
|
|
@@ -6312,6 +6359,49 @@ export declare class API {
|
|
|
6312
6359
|
end: string;
|
|
6313
6360
|
closed: boolean;
|
|
6314
6361
|
}[]>;
|
|
6362
|
+
createLedgerAccount(account: {
|
|
6363
|
+
name: string;
|
|
6364
|
+
number: string;
|
|
6365
|
+
}, params?: {
|
|
6366
|
+
folder_id?: string | undefined;
|
|
6367
|
+
} | undefined): import("../types/api").RequestData<{
|
|
6368
|
+
number: string;
|
|
6369
|
+
name: string;
|
|
6370
|
+
active: boolean;
|
|
6371
|
+
type?: "vat" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | "other" | undefined;
|
|
6372
|
+
}>;
|
|
6373
|
+
getJournalEntry(journalEntryId: string, params?: {
|
|
6374
|
+
folder_id?: string | undefined;
|
|
6375
|
+
} | undefined): import("../types/api").RequestData<{
|
|
6376
|
+
reference?: string | undefined;
|
|
6377
|
+
due_date?: string | undefined;
|
|
6378
|
+
journal_id: string;
|
|
6379
|
+
name?: string | undefined;
|
|
6380
|
+
journal_name: string;
|
|
6381
|
+
date: string;
|
|
6382
|
+
posted: boolean;
|
|
6383
|
+
id: string;
|
|
6384
|
+
items: {
|
|
6385
|
+
account_number: string;
|
|
6386
|
+
partner_id?: string | undefined;
|
|
6387
|
+
description?: string | undefined;
|
|
6388
|
+
debit: number;
|
|
6389
|
+
credit: number;
|
|
6390
|
+
currency: string;
|
|
6391
|
+
currency_exchange_rate: number;
|
|
6392
|
+
id: string;
|
|
6393
|
+
partner_name?: string | undefined;
|
|
6394
|
+
account_name: string;
|
|
6395
|
+
matching_numbers: string[];
|
|
6396
|
+
analytic_distribution: {
|
|
6397
|
+
analytic_plan: string;
|
|
6398
|
+
analytic_accounts: {
|
|
6399
|
+
analytic_account: string;
|
|
6400
|
+
percentage: number;
|
|
6401
|
+
}[];
|
|
6402
|
+
}[];
|
|
6403
|
+
}[];
|
|
6404
|
+
}>;
|
|
6315
6405
|
}>;
|
|
6316
6406
|
invoicing: import("../types/api").ApiFor<{
|
|
6317
6407
|
getInvoices(params?: {
|
|
@@ -6709,7 +6799,7 @@ export declare class API {
|
|
|
6709
6799
|
} | undefined;
|
|
6710
6800
|
}>;
|
|
6711
6801
|
getContacts(params?: {
|
|
6712
|
-
contact_type?: "
|
|
6802
|
+
contact_type?: "supplier" | "all" | "prospect" | "customer" | undefined;
|
|
6713
6803
|
} | undefined): import("../types/api").RequestData<{
|
|
6714
6804
|
id: string;
|
|
6715
6805
|
source_ref: {
|
|
@@ -8154,7 +8244,7 @@ export declare class API {
|
|
|
8154
8244
|
date_from: string;
|
|
8155
8245
|
date_to: string;
|
|
8156
8246
|
location_id?: string | undefined;
|
|
8157
|
-
state?: "
|
|
8247
|
+
state?: "all" | "open" | "closed" | undefined;
|
|
8158
8248
|
}): import("../types/api").RequestData<{
|
|
8159
8249
|
id: string;
|
|
8160
8250
|
order_number?: string | undefined;
|
|
@@ -8173,11 +8263,11 @@ export declare class API {
|
|
|
8173
8263
|
loyalty?: number | undefined;
|
|
8174
8264
|
customer_id?: string | undefined;
|
|
8175
8265
|
location_id?: string | undefined;
|
|
8176
|
-
taxes
|
|
8266
|
+
taxes: {
|
|
8177
8267
|
tax_rate: number;
|
|
8178
8268
|
tax_amount: number;
|
|
8179
8269
|
total: number;
|
|
8180
|
-
}[]
|
|
8270
|
+
}[];
|
|
8181
8271
|
guests?: number | undefined;
|
|
8182
8272
|
payments: {
|
|
8183
8273
|
id?: string | undefined;
|
|
@@ -8220,7 +8310,7 @@ export declare class API {
|
|
|
8220
8310
|
phone?: string | undefined;
|
|
8221
8311
|
email?: string | undefined;
|
|
8222
8312
|
created_on?: string | undefined;
|
|
8223
|
-
addresses
|
|
8313
|
+
addresses: {
|
|
8224
8314
|
address_type?: string | undefined;
|
|
8225
8315
|
name?: string | undefined;
|
|
8226
8316
|
street?: string | undefined;
|
|
@@ -8229,7 +8319,7 @@ export declare class API {
|
|
|
8229
8319
|
city?: string | undefined;
|
|
8230
8320
|
postal_code?: string | undefined;
|
|
8231
8321
|
country?: string | undefined;
|
|
8232
|
-
}[]
|
|
8322
|
+
}[];
|
|
8233
8323
|
loyalty?: number | undefined;
|
|
8234
8324
|
birthdate?: string | undefined;
|
|
8235
8325
|
}[]>;
|
|
@@ -8251,11 +8341,11 @@ export declare class API {
|
|
|
8251
8341
|
loyalty?: number | undefined;
|
|
8252
8342
|
customer_id?: string | undefined;
|
|
8253
8343
|
location_id?: string | undefined;
|
|
8254
|
-
taxes
|
|
8344
|
+
taxes: {
|
|
8255
8345
|
tax_rate: number;
|
|
8256
8346
|
tax_amount: number;
|
|
8257
8347
|
total: number;
|
|
8258
|
-
}[]
|
|
8348
|
+
}[];
|
|
8259
8349
|
guests?: number | undefined;
|
|
8260
8350
|
payments: {
|
|
8261
8351
|
id?: string | undefined;
|
|
@@ -8294,7 +8384,7 @@ export declare class API {
|
|
|
8294
8384
|
phone?: string | undefined;
|
|
8295
8385
|
email?: string | undefined;
|
|
8296
8386
|
created_on?: string | undefined;
|
|
8297
|
-
addresses
|
|
8387
|
+
addresses: {
|
|
8298
8388
|
address_type?: string | undefined;
|
|
8299
8389
|
name?: string | undefined;
|
|
8300
8390
|
street?: string | undefined;
|
|
@@ -8303,7 +8393,7 @@ export declare class API {
|
|
|
8303
8393
|
city?: string | undefined;
|
|
8304
8394
|
postal_code?: string | undefined;
|
|
8305
8395
|
country?: string | undefined;
|
|
8306
|
-
}[]
|
|
8396
|
+
}[];
|
|
8307
8397
|
loyalty?: number | undefined;
|
|
8308
8398
|
birthdate?: string | undefined;
|
|
8309
8399
|
}>;
|
|
@@ -8329,7 +8419,7 @@ export declare class API {
|
|
|
8329
8419
|
phone?: string | undefined;
|
|
8330
8420
|
email?: string | undefined;
|
|
8331
8421
|
created_on?: string | undefined;
|
|
8332
|
-
addresses
|
|
8422
|
+
addresses: {
|
|
8333
8423
|
address_type?: string | undefined;
|
|
8334
8424
|
name?: string | undefined;
|
|
8335
8425
|
street?: string | undefined;
|
|
@@ -8338,7 +8428,7 @@ export declare class API {
|
|
|
8338
8428
|
city?: string | undefined;
|
|
8339
8429
|
postal_code?: string | undefined;
|
|
8340
8430
|
country?: string | undefined;
|
|
8341
|
-
}[]
|
|
8431
|
+
}[];
|
|
8342
8432
|
loyalty?: number | undefined;
|
|
8343
8433
|
birthdate?: string | undefined;
|
|
8344
8434
|
}>;
|
|
@@ -8381,11 +8471,11 @@ export declare class API {
|
|
|
8381
8471
|
}): import("../types/api").RequestData<{
|
|
8382
8472
|
total: number;
|
|
8383
8473
|
tax_amount: number;
|
|
8384
|
-
taxes
|
|
8474
|
+
taxes: {
|
|
8385
8475
|
tax_rate: number;
|
|
8386
8476
|
tax_amount: number;
|
|
8387
8477
|
total: number;
|
|
8388
|
-
}[]
|
|
8478
|
+
}[];
|
|
8389
8479
|
}>;
|
|
8390
8480
|
getClosure(date: string, params?: {
|
|
8391
8481
|
location_id?: string | undefined;
|
|
@@ -8426,11 +8516,11 @@ export declare class API {
|
|
|
8426
8516
|
loyalty?: number | undefined;
|
|
8427
8517
|
customer_id?: string | undefined;
|
|
8428
8518
|
location_id?: string | undefined;
|
|
8429
|
-
taxes
|
|
8519
|
+
taxes: {
|
|
8430
8520
|
tax_rate: number;
|
|
8431
8521
|
tax_amount: number;
|
|
8432
8522
|
total: number;
|
|
8433
|
-
}[]
|
|
8523
|
+
}[];
|
|
8434
8524
|
guests?: number | undefined;
|
|
8435
8525
|
payments: {
|
|
8436
8526
|
id?: string | undefined;
|
|
@@ -8514,11 +8604,11 @@ export declare class API {
|
|
|
8514
8604
|
loyalty?: number | undefined;
|
|
8515
8605
|
customer_id?: string | undefined;
|
|
8516
8606
|
location_id?: string | undefined;
|
|
8517
|
-
taxes
|
|
8607
|
+
taxes: {
|
|
8518
8608
|
tax_rate: number;
|
|
8519
8609
|
tax_amount: number;
|
|
8520
8610
|
total: number;
|
|
8521
|
-
}[]
|
|
8611
|
+
}[];
|
|
8522
8612
|
guests?: number | undefined;
|
|
8523
8613
|
items: {
|
|
8524
8614
|
id: string;
|
|
@@ -9353,6 +9443,7 @@ export declare class API {
|
|
|
9353
9443
|
folder_id?: string | undefined;
|
|
9354
9444
|
force_financial_period?: string | undefined;
|
|
9355
9445
|
regroup_lines?: "true" | "false" | undefined;
|
|
9446
|
+
force_currency_exchange?: "true" | "false" | undefined;
|
|
9356
9447
|
} | undefined): import("../types/api").RequestData<{
|
|
9357
9448
|
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
9358
9449
|
invoice_number?: string | undefined;
|
|
@@ -9456,6 +9547,7 @@ export declare class API {
|
|
|
9456
9547
|
folder_id?: string | undefined;
|
|
9457
9548
|
force_financial_period?: string | undefined;
|
|
9458
9549
|
regroup_lines?: "true" | "false" | undefined;
|
|
9550
|
+
force_currency_exchange?: "true" | "false" | undefined;
|
|
9459
9551
|
} | undefined): import("../types/api").RequestData<{
|
|
9460
9552
|
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
9461
9553
|
invoice_number?: string | undefined;
|
|
@@ -9970,7 +10062,7 @@ export declare class API {
|
|
|
9970
10062
|
line_number: number;
|
|
9971
10063
|
description?: string | undefined;
|
|
9972
10064
|
amount: number;
|
|
9973
|
-
type: "customer_account" | "
|
|
10065
|
+
type: "customer_account" | "supplier_account" | "general_account";
|
|
9974
10066
|
account_number: string;
|
|
9975
10067
|
partner_id?: string | undefined;
|
|
9976
10068
|
analytic_account?: string | undefined;
|
|
@@ -9988,7 +10080,7 @@ export declare class API {
|
|
|
9988
10080
|
line_number: number;
|
|
9989
10081
|
description?: string | undefined;
|
|
9990
10082
|
amount: number;
|
|
9991
|
-
type: "customer_account" | "
|
|
10083
|
+
type: "customer_account" | "supplier_account" | "general_account";
|
|
9992
10084
|
account_number: string;
|
|
9993
10085
|
partner_id?: string | undefined;
|
|
9994
10086
|
analytic_account?: string | undefined;
|
|
@@ -10006,7 +10098,7 @@ export declare class API {
|
|
|
10006
10098
|
line_number: number;
|
|
10007
10099
|
description?: string | undefined;
|
|
10008
10100
|
amount: number;
|
|
10009
|
-
type: "customer_account" | "
|
|
10101
|
+
type: "customer_account" | "supplier_account" | "general_account";
|
|
10010
10102
|
account_number: string;
|
|
10011
10103
|
partner_id?: string | undefined;
|
|
10012
10104
|
analytic_account?: string | undefined;
|
|
@@ -10026,7 +10118,7 @@ export declare class API {
|
|
|
10026
10118
|
line_number: number;
|
|
10027
10119
|
description?: string | undefined;
|
|
10028
10120
|
amount: number;
|
|
10029
|
-
type: "customer_account" | "
|
|
10121
|
+
type: "customer_account" | "supplier_account" | "general_account";
|
|
10030
10122
|
account_number: string;
|
|
10031
10123
|
partner_id?: string | undefined;
|
|
10032
10124
|
analytic_account?: string | undefined;
|
|
@@ -10045,9 +10137,7 @@ export declare class API {
|
|
|
10045
10137
|
headers: {
|
|
10046
10138
|
[name: string]: unknown;
|
|
10047
10139
|
};
|
|
10048
|
-
content
|
|
10049
|
-
'application/json': unknown;
|
|
10050
|
-
};
|
|
10140
|
+
content?: undefined;
|
|
10051
10141
|
}>;
|
|
10052
10142
|
getAttachments(params: {
|
|
10053
10143
|
folder_id?: string | undefined;
|
|
@@ -10135,7 +10225,7 @@ export declare class API {
|
|
|
10135
10225
|
reference?: string | undefined;
|
|
10136
10226
|
number?: string | undefined;
|
|
10137
10227
|
items: {
|
|
10138
|
-
type: "customer_account" | "
|
|
10228
|
+
type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
|
|
10139
10229
|
account_number: string;
|
|
10140
10230
|
partner_id?: string | undefined;
|
|
10141
10231
|
amount: number;
|
|
@@ -10145,6 +10235,7 @@ export declare class API {
|
|
|
10145
10235
|
}, params?: {
|
|
10146
10236
|
folder_id?: string | undefined;
|
|
10147
10237
|
financial_counterpart_account?: string | undefined;
|
|
10238
|
+
force_currency_exchange?: "true" | "false" | undefined;
|
|
10148
10239
|
} | undefined): import("../types/api").RequestData<{
|
|
10149
10240
|
date: string;
|
|
10150
10241
|
journal_id: string;
|
|
@@ -10154,7 +10245,7 @@ export declare class API {
|
|
|
10154
10245
|
id: string;
|
|
10155
10246
|
number: string;
|
|
10156
10247
|
items: {
|
|
10157
|
-
type: "customer_account" | "
|
|
10248
|
+
type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
|
|
10158
10249
|
account_number: string;
|
|
10159
10250
|
partner_id?: string | undefined;
|
|
10160
10251
|
amount: number;
|
|
@@ -10170,7 +10261,7 @@ export declare class API {
|
|
|
10170
10261
|
reference?: string | undefined;
|
|
10171
10262
|
number?: string | undefined;
|
|
10172
10263
|
items: {
|
|
10173
|
-
account_type: "customer_account" | "
|
|
10264
|
+
account_type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
|
|
10174
10265
|
account: string;
|
|
10175
10266
|
amount: number;
|
|
10176
10267
|
description?: string | undefined;
|
|
@@ -10179,6 +10270,7 @@ export declare class API {
|
|
|
10179
10270
|
}, params?: {
|
|
10180
10271
|
folder_id?: string | undefined;
|
|
10181
10272
|
financial_counterpart_account?: string | undefined;
|
|
10273
|
+
force_currency_exchange?: "true" | "false" | undefined;
|
|
10182
10274
|
} | undefined): import("../types/api").RequestData<{
|
|
10183
10275
|
date: string;
|
|
10184
10276
|
journal_id: string;
|
|
@@ -10188,13 +10280,13 @@ export declare class API {
|
|
|
10188
10280
|
id: string;
|
|
10189
10281
|
number: string;
|
|
10190
10282
|
items: {
|
|
10191
|
-
account_type: "customer_account" | "
|
|
10283
|
+
account_type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
|
|
10192
10284
|
account: string;
|
|
10193
10285
|
amount: number;
|
|
10194
10286
|
description?: string | undefined;
|
|
10195
10287
|
counterpart_account: string;
|
|
10196
10288
|
}[];
|
|
10197
|
-
}
|
|
10289
|
+
}>;
|
|
10198
10290
|
createJournalEntryOld(journal_entry: {
|
|
10199
10291
|
reference?: string | undefined;
|
|
10200
10292
|
due_date?: string | undefined;
|
|
@@ -10257,7 +10349,7 @@ export declare class API {
|
|
|
10257
10349
|
currency_exchange_rate: number;
|
|
10258
10350
|
date: string;
|
|
10259
10351
|
items: {
|
|
10260
|
-
account_type: "customer_account" | "
|
|
10352
|
+
account_type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
|
|
10261
10353
|
account: string;
|
|
10262
10354
|
force_general_account?: string | undefined;
|
|
10263
10355
|
prioritise_thirdparty_account: boolean;
|
|
@@ -10346,6 +10438,49 @@ export declare class API {
|
|
|
10346
10438
|
end: string;
|
|
10347
10439
|
closed: boolean;
|
|
10348
10440
|
}[]>;
|
|
10441
|
+
createLedgerAccount(account: {
|
|
10442
|
+
name: string;
|
|
10443
|
+
number: string;
|
|
10444
|
+
}, params?: {
|
|
10445
|
+
folder_id?: string | undefined;
|
|
10446
|
+
} | undefined): import("../types/api").RequestData<{
|
|
10447
|
+
number: string;
|
|
10448
|
+
name: string;
|
|
10449
|
+
active: boolean;
|
|
10450
|
+
type?: "vat" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | "other" | undefined;
|
|
10451
|
+
}>;
|
|
10452
|
+
getJournalEntry(journalEntryId: string, params?: {
|
|
10453
|
+
folder_id?: string | undefined;
|
|
10454
|
+
} | undefined): import("../types/api").RequestData<{
|
|
10455
|
+
reference?: string | undefined;
|
|
10456
|
+
due_date?: string | undefined;
|
|
10457
|
+
journal_id: string;
|
|
10458
|
+
name?: string | undefined;
|
|
10459
|
+
journal_name: string;
|
|
10460
|
+
date: string;
|
|
10461
|
+
posted: boolean;
|
|
10462
|
+
id: string;
|
|
10463
|
+
items: {
|
|
10464
|
+
account_number: string;
|
|
10465
|
+
partner_id?: string | undefined;
|
|
10466
|
+
description?: string | undefined;
|
|
10467
|
+
debit: number;
|
|
10468
|
+
credit: number;
|
|
10469
|
+
currency: string;
|
|
10470
|
+
currency_exchange_rate: number;
|
|
10471
|
+
id: string;
|
|
10472
|
+
partner_name?: string | undefined;
|
|
10473
|
+
account_name: string;
|
|
10474
|
+
matching_numbers: string[];
|
|
10475
|
+
analytic_distribution: {
|
|
10476
|
+
analytic_plan: string;
|
|
10477
|
+
analytic_accounts: {
|
|
10478
|
+
analytic_account: string;
|
|
10479
|
+
percentage: number;
|
|
10480
|
+
}[];
|
|
10481
|
+
}[];
|
|
10482
|
+
}[];
|
|
10483
|
+
}>;
|
|
10349
10484
|
}>;
|
|
10350
10485
|
invoicing: import("../types/api").ApiFor<{
|
|
10351
10486
|
getInvoices(params?: {
|
|
@@ -10743,7 +10878,7 @@ export declare class API {
|
|
|
10743
10878
|
} | undefined;
|
|
10744
10879
|
}>;
|
|
10745
10880
|
getContacts(params?: {
|
|
10746
|
-
contact_type?: "
|
|
10881
|
+
contact_type?: "supplier" | "all" | "prospect" | "customer" | undefined;
|
|
10747
10882
|
} | undefined): import("../types/api").RequestData<{
|
|
10748
10883
|
id: string;
|
|
10749
10884
|
source_ref: {
|
|
@@ -12188,7 +12323,7 @@ export declare class API {
|
|
|
12188
12323
|
date_from: string;
|
|
12189
12324
|
date_to: string;
|
|
12190
12325
|
location_id?: string | undefined;
|
|
12191
|
-
state?: "
|
|
12326
|
+
state?: "all" | "open" | "closed" | undefined;
|
|
12192
12327
|
}): import("../types/api").RequestData<{
|
|
12193
12328
|
id: string;
|
|
12194
12329
|
order_number?: string | undefined;
|
|
@@ -12207,11 +12342,11 @@ export declare class API {
|
|
|
12207
12342
|
loyalty?: number | undefined;
|
|
12208
12343
|
customer_id?: string | undefined;
|
|
12209
12344
|
location_id?: string | undefined;
|
|
12210
|
-
taxes
|
|
12345
|
+
taxes: {
|
|
12211
12346
|
tax_rate: number;
|
|
12212
12347
|
tax_amount: number;
|
|
12213
12348
|
total: number;
|
|
12214
|
-
}[]
|
|
12349
|
+
}[];
|
|
12215
12350
|
guests?: number | undefined;
|
|
12216
12351
|
payments: {
|
|
12217
12352
|
id?: string | undefined;
|
|
@@ -12254,7 +12389,7 @@ export declare class API {
|
|
|
12254
12389
|
phone?: string | undefined;
|
|
12255
12390
|
email?: string | undefined;
|
|
12256
12391
|
created_on?: string | undefined;
|
|
12257
|
-
addresses
|
|
12392
|
+
addresses: {
|
|
12258
12393
|
address_type?: string | undefined;
|
|
12259
12394
|
name?: string | undefined;
|
|
12260
12395
|
street?: string | undefined;
|
|
@@ -12263,7 +12398,7 @@ export declare class API {
|
|
|
12263
12398
|
city?: string | undefined;
|
|
12264
12399
|
postal_code?: string | undefined;
|
|
12265
12400
|
country?: string | undefined;
|
|
12266
|
-
}[]
|
|
12401
|
+
}[];
|
|
12267
12402
|
loyalty?: number | undefined;
|
|
12268
12403
|
birthdate?: string | undefined;
|
|
12269
12404
|
}[]>;
|
|
@@ -12285,11 +12420,11 @@ export declare class API {
|
|
|
12285
12420
|
loyalty?: number | undefined;
|
|
12286
12421
|
customer_id?: string | undefined;
|
|
12287
12422
|
location_id?: string | undefined;
|
|
12288
|
-
taxes
|
|
12423
|
+
taxes: {
|
|
12289
12424
|
tax_rate: number;
|
|
12290
12425
|
tax_amount: number;
|
|
12291
12426
|
total: number;
|
|
12292
|
-
}[]
|
|
12427
|
+
}[];
|
|
12293
12428
|
guests?: number | undefined;
|
|
12294
12429
|
payments: {
|
|
12295
12430
|
id?: string | undefined;
|
|
@@ -12328,7 +12463,7 @@ export declare class API {
|
|
|
12328
12463
|
phone?: string | undefined;
|
|
12329
12464
|
email?: string | undefined;
|
|
12330
12465
|
created_on?: string | undefined;
|
|
12331
|
-
addresses
|
|
12466
|
+
addresses: {
|
|
12332
12467
|
address_type?: string | undefined;
|
|
12333
12468
|
name?: string | undefined;
|
|
12334
12469
|
street?: string | undefined;
|
|
@@ -12337,7 +12472,7 @@ export declare class API {
|
|
|
12337
12472
|
city?: string | undefined;
|
|
12338
12473
|
postal_code?: string | undefined;
|
|
12339
12474
|
country?: string | undefined;
|
|
12340
|
-
}[]
|
|
12475
|
+
}[];
|
|
12341
12476
|
loyalty?: number | undefined;
|
|
12342
12477
|
birthdate?: string | undefined;
|
|
12343
12478
|
}>;
|
|
@@ -12363,7 +12498,7 @@ export declare class API {
|
|
|
12363
12498
|
phone?: string | undefined;
|
|
12364
12499
|
email?: string | undefined;
|
|
12365
12500
|
created_on?: string | undefined;
|
|
12366
|
-
addresses
|
|
12501
|
+
addresses: {
|
|
12367
12502
|
address_type?: string | undefined;
|
|
12368
12503
|
name?: string | undefined;
|
|
12369
12504
|
street?: string | undefined;
|
|
@@ -12372,7 +12507,7 @@ export declare class API {
|
|
|
12372
12507
|
city?: string | undefined;
|
|
12373
12508
|
postal_code?: string | undefined;
|
|
12374
12509
|
country?: string | undefined;
|
|
12375
|
-
}[]
|
|
12510
|
+
}[];
|
|
12376
12511
|
loyalty?: number | undefined;
|
|
12377
12512
|
birthdate?: string | undefined;
|
|
12378
12513
|
}>;
|
|
@@ -12415,11 +12550,11 @@ export declare class API {
|
|
|
12415
12550
|
}): import("../types/api").RequestData<{
|
|
12416
12551
|
total: number;
|
|
12417
12552
|
tax_amount: number;
|
|
12418
|
-
taxes
|
|
12553
|
+
taxes: {
|
|
12419
12554
|
tax_rate: number;
|
|
12420
12555
|
tax_amount: number;
|
|
12421
12556
|
total: number;
|
|
12422
|
-
}[]
|
|
12557
|
+
}[];
|
|
12423
12558
|
}>;
|
|
12424
12559
|
getClosure(date: string, params?: {
|
|
12425
12560
|
location_id?: string | undefined;
|
|
@@ -12460,11 +12595,11 @@ export declare class API {
|
|
|
12460
12595
|
loyalty?: number | undefined;
|
|
12461
12596
|
customer_id?: string | undefined;
|
|
12462
12597
|
location_id?: string | undefined;
|
|
12463
|
-
taxes
|
|
12598
|
+
taxes: {
|
|
12464
12599
|
tax_rate: number;
|
|
12465
12600
|
tax_amount: number;
|
|
12466
12601
|
total: number;
|
|
12467
|
-
}[]
|
|
12602
|
+
}[];
|
|
12468
12603
|
guests?: number | undefined;
|
|
12469
12604
|
payments: {
|
|
12470
12605
|
id?: string | undefined;
|
|
@@ -12548,11 +12683,11 @@ export declare class API {
|
|
|
12548
12683
|
loyalty?: number | undefined;
|
|
12549
12684
|
customer_id?: string | undefined;
|
|
12550
12685
|
location_id?: string | undefined;
|
|
12551
|
-
taxes
|
|
12686
|
+
taxes: {
|
|
12552
12687
|
tax_rate: number;
|
|
12553
12688
|
tax_amount: number;
|
|
12554
12689
|
total: number;
|
|
12555
|
-
}[]
|
|
12690
|
+
}[];
|
|
12556
12691
|
guests?: number | undefined;
|
|
12557
12692
|
items: {
|
|
12558
12693
|
id: string;
|
|
@@ -13387,6 +13522,7 @@ export declare class API {
|
|
|
13387
13522
|
folder_id?: string | undefined;
|
|
13388
13523
|
force_financial_period?: string | undefined;
|
|
13389
13524
|
regroup_lines?: "true" | "false" | undefined;
|
|
13525
|
+
force_currency_exchange?: "true" | "false" | undefined;
|
|
13390
13526
|
} | undefined): import("../types/api").RequestData<{
|
|
13391
13527
|
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
13392
13528
|
invoice_number?: string | undefined;
|
|
@@ -13490,6 +13626,7 @@ export declare class API {
|
|
|
13490
13626
|
folder_id?: string | undefined;
|
|
13491
13627
|
force_financial_period?: string | undefined;
|
|
13492
13628
|
regroup_lines?: "true" | "false" | undefined;
|
|
13629
|
+
force_currency_exchange?: "true" | "false" | undefined;
|
|
13493
13630
|
} | undefined): import("../types/api").RequestData<{
|
|
13494
13631
|
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
13495
13632
|
invoice_number?: string | undefined;
|
|
@@ -14004,7 +14141,7 @@ export declare class API {
|
|
|
14004
14141
|
line_number: number;
|
|
14005
14142
|
description?: string | undefined;
|
|
14006
14143
|
amount: number;
|
|
14007
|
-
type: "customer_account" | "
|
|
14144
|
+
type: "customer_account" | "supplier_account" | "general_account";
|
|
14008
14145
|
account_number: string;
|
|
14009
14146
|
partner_id?: string | undefined;
|
|
14010
14147
|
analytic_account?: string | undefined;
|
|
@@ -14022,7 +14159,7 @@ export declare class API {
|
|
|
14022
14159
|
line_number: number;
|
|
14023
14160
|
description?: string | undefined;
|
|
14024
14161
|
amount: number;
|
|
14025
|
-
type: "customer_account" | "
|
|
14162
|
+
type: "customer_account" | "supplier_account" | "general_account";
|
|
14026
14163
|
account_number: string;
|
|
14027
14164
|
partner_id?: string | undefined;
|
|
14028
14165
|
analytic_account?: string | undefined;
|
|
@@ -14040,7 +14177,7 @@ export declare class API {
|
|
|
14040
14177
|
line_number: number;
|
|
14041
14178
|
description?: string | undefined;
|
|
14042
14179
|
amount: number;
|
|
14043
|
-
type: "customer_account" | "
|
|
14180
|
+
type: "customer_account" | "supplier_account" | "general_account";
|
|
14044
14181
|
account_number: string;
|
|
14045
14182
|
partner_id?: string | undefined;
|
|
14046
14183
|
analytic_account?: string | undefined;
|
|
@@ -14060,7 +14197,7 @@ export declare class API {
|
|
|
14060
14197
|
line_number: number;
|
|
14061
14198
|
description?: string | undefined;
|
|
14062
14199
|
amount: number;
|
|
14063
|
-
type: "customer_account" | "
|
|
14200
|
+
type: "customer_account" | "supplier_account" | "general_account";
|
|
14064
14201
|
account_number: string;
|
|
14065
14202
|
partner_id?: string | undefined;
|
|
14066
14203
|
analytic_account?: string | undefined;
|
|
@@ -14079,9 +14216,7 @@ export declare class API {
|
|
|
14079
14216
|
headers: {
|
|
14080
14217
|
[name: string]: unknown;
|
|
14081
14218
|
};
|
|
14082
|
-
content
|
|
14083
|
-
'application/json': unknown;
|
|
14084
|
-
};
|
|
14219
|
+
content?: undefined;
|
|
14085
14220
|
}>;
|
|
14086
14221
|
getAttachments(params: {
|
|
14087
14222
|
folder_id?: string | undefined;
|
|
@@ -14169,7 +14304,7 @@ export declare class API {
|
|
|
14169
14304
|
reference?: string | undefined;
|
|
14170
14305
|
number?: string | undefined;
|
|
14171
14306
|
items: {
|
|
14172
|
-
type: "customer_account" | "
|
|
14307
|
+
type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
|
|
14173
14308
|
account_number: string;
|
|
14174
14309
|
partner_id?: string | undefined;
|
|
14175
14310
|
amount: number;
|
|
@@ -14179,6 +14314,7 @@ export declare class API {
|
|
|
14179
14314
|
}, params?: {
|
|
14180
14315
|
folder_id?: string | undefined;
|
|
14181
14316
|
financial_counterpart_account?: string | undefined;
|
|
14317
|
+
force_currency_exchange?: "true" | "false" | undefined;
|
|
14182
14318
|
} | undefined): import("../types/api").RequestData<{
|
|
14183
14319
|
date: string;
|
|
14184
14320
|
journal_id: string;
|
|
@@ -14188,7 +14324,7 @@ export declare class API {
|
|
|
14188
14324
|
id: string;
|
|
14189
14325
|
number: string;
|
|
14190
14326
|
items: {
|
|
14191
|
-
type: "customer_account" | "
|
|
14327
|
+
type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
|
|
14192
14328
|
account_number: string;
|
|
14193
14329
|
partner_id?: string | undefined;
|
|
14194
14330
|
amount: number;
|
|
@@ -14204,7 +14340,7 @@ export declare class API {
|
|
|
14204
14340
|
reference?: string | undefined;
|
|
14205
14341
|
number?: string | undefined;
|
|
14206
14342
|
items: {
|
|
14207
|
-
account_type: "customer_account" | "
|
|
14343
|
+
account_type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
|
|
14208
14344
|
account: string;
|
|
14209
14345
|
amount: number;
|
|
14210
14346
|
description?: string | undefined;
|
|
@@ -14213,6 +14349,7 @@ export declare class API {
|
|
|
14213
14349
|
}, params?: {
|
|
14214
14350
|
folder_id?: string | undefined;
|
|
14215
14351
|
financial_counterpart_account?: string | undefined;
|
|
14352
|
+
force_currency_exchange?: "true" | "false" | undefined;
|
|
14216
14353
|
} | undefined): import("../types/api").RequestData<{
|
|
14217
14354
|
date: string;
|
|
14218
14355
|
journal_id: string;
|
|
@@ -14222,13 +14359,13 @@ export declare class API {
|
|
|
14222
14359
|
id: string;
|
|
14223
14360
|
number: string;
|
|
14224
14361
|
items: {
|
|
14225
|
-
account_type: "customer_account" | "
|
|
14362
|
+
account_type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
|
|
14226
14363
|
account: string;
|
|
14227
14364
|
amount: number;
|
|
14228
14365
|
description?: string | undefined;
|
|
14229
14366
|
counterpart_account: string;
|
|
14230
14367
|
}[];
|
|
14231
|
-
}
|
|
14368
|
+
}>;
|
|
14232
14369
|
createJournalEntryOld(journal_entry: {
|
|
14233
14370
|
reference?: string | undefined;
|
|
14234
14371
|
due_date?: string | undefined;
|
|
@@ -14291,7 +14428,7 @@ export declare class API {
|
|
|
14291
14428
|
currency_exchange_rate: number;
|
|
14292
14429
|
date: string;
|
|
14293
14430
|
items: {
|
|
14294
|
-
account_type: "customer_account" | "
|
|
14431
|
+
account_type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
|
|
14295
14432
|
account: string;
|
|
14296
14433
|
force_general_account?: string | undefined;
|
|
14297
14434
|
prioritise_thirdparty_account: boolean;
|
|
@@ -14380,6 +14517,49 @@ export declare class API {
|
|
|
14380
14517
|
end: string;
|
|
14381
14518
|
closed: boolean;
|
|
14382
14519
|
}[]>;
|
|
14520
|
+
createLedgerAccount(account: {
|
|
14521
|
+
name: string;
|
|
14522
|
+
number: string;
|
|
14523
|
+
}, params?: {
|
|
14524
|
+
folder_id?: string | undefined;
|
|
14525
|
+
} | undefined): import("../types/api").RequestData<{
|
|
14526
|
+
number: string;
|
|
14527
|
+
name: string;
|
|
14528
|
+
active: boolean;
|
|
14529
|
+
type?: "vat" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | "other" | undefined;
|
|
14530
|
+
}>;
|
|
14531
|
+
getJournalEntry(journalEntryId: string, params?: {
|
|
14532
|
+
folder_id?: string | undefined;
|
|
14533
|
+
} | undefined): import("../types/api").RequestData<{
|
|
14534
|
+
reference?: string | undefined;
|
|
14535
|
+
due_date?: string | undefined;
|
|
14536
|
+
journal_id: string;
|
|
14537
|
+
name?: string | undefined;
|
|
14538
|
+
journal_name: string;
|
|
14539
|
+
date: string;
|
|
14540
|
+
posted: boolean;
|
|
14541
|
+
id: string;
|
|
14542
|
+
items: {
|
|
14543
|
+
account_number: string;
|
|
14544
|
+
partner_id?: string | undefined;
|
|
14545
|
+
description?: string | undefined;
|
|
14546
|
+
debit: number;
|
|
14547
|
+
credit: number;
|
|
14548
|
+
currency: string;
|
|
14549
|
+
currency_exchange_rate: number;
|
|
14550
|
+
id: string;
|
|
14551
|
+
partner_name?: string | undefined;
|
|
14552
|
+
account_name: string;
|
|
14553
|
+
matching_numbers: string[];
|
|
14554
|
+
analytic_distribution: {
|
|
14555
|
+
analytic_plan: string;
|
|
14556
|
+
analytic_accounts: {
|
|
14557
|
+
analytic_account: string;
|
|
14558
|
+
percentage: number;
|
|
14559
|
+
}[];
|
|
14560
|
+
}[];
|
|
14561
|
+
}[];
|
|
14562
|
+
}>;
|
|
14383
14563
|
}>;
|
|
14384
14564
|
invoicing: import("../types/api").ApiFor<{
|
|
14385
14565
|
getInvoices(params?: {
|
|
@@ -14777,7 +14957,7 @@ export declare class API {
|
|
|
14777
14957
|
} | undefined;
|
|
14778
14958
|
}>;
|
|
14779
14959
|
getContacts(params?: {
|
|
14780
|
-
contact_type?: "
|
|
14960
|
+
contact_type?: "supplier" | "all" | "prospect" | "customer" | undefined;
|
|
14781
14961
|
} | undefined): import("../types/api").RequestData<{
|
|
14782
14962
|
id: string;
|
|
14783
14963
|
source_ref: {
|
|
@@ -16227,7 +16407,7 @@ export declare class API {
|
|
|
16227
16407
|
date_from: string;
|
|
16228
16408
|
date_to: string;
|
|
16229
16409
|
location_id?: string | undefined;
|
|
16230
|
-
state?: "
|
|
16410
|
+
state?: "all" | "open" | "closed" | undefined;
|
|
16231
16411
|
}): import("../types/api").RequestData<{
|
|
16232
16412
|
id: string;
|
|
16233
16413
|
order_number?: string | undefined;
|
|
@@ -16246,11 +16426,11 @@ export declare class API {
|
|
|
16246
16426
|
loyalty?: number | undefined;
|
|
16247
16427
|
customer_id?: string | undefined;
|
|
16248
16428
|
location_id?: string | undefined;
|
|
16249
|
-
taxes
|
|
16429
|
+
taxes: {
|
|
16250
16430
|
tax_rate: number;
|
|
16251
16431
|
tax_amount: number;
|
|
16252
16432
|
total: number;
|
|
16253
|
-
}[]
|
|
16433
|
+
}[];
|
|
16254
16434
|
guests?: number | undefined;
|
|
16255
16435
|
payments: {
|
|
16256
16436
|
id?: string | undefined;
|
|
@@ -16293,7 +16473,7 @@ export declare class API {
|
|
|
16293
16473
|
phone?: string | undefined;
|
|
16294
16474
|
email?: string | undefined;
|
|
16295
16475
|
created_on?: string | undefined;
|
|
16296
|
-
addresses
|
|
16476
|
+
addresses: {
|
|
16297
16477
|
address_type?: string | undefined;
|
|
16298
16478
|
name?: string | undefined;
|
|
16299
16479
|
street?: string | undefined;
|
|
@@ -16302,7 +16482,7 @@ export declare class API {
|
|
|
16302
16482
|
city?: string | undefined;
|
|
16303
16483
|
postal_code?: string | undefined;
|
|
16304
16484
|
country?: string | undefined;
|
|
16305
|
-
}[]
|
|
16485
|
+
}[];
|
|
16306
16486
|
loyalty?: number | undefined;
|
|
16307
16487
|
birthdate?: string | undefined;
|
|
16308
16488
|
}[]>;
|
|
@@ -16324,11 +16504,11 @@ export declare class API {
|
|
|
16324
16504
|
loyalty?: number | undefined;
|
|
16325
16505
|
customer_id?: string | undefined;
|
|
16326
16506
|
location_id?: string | undefined;
|
|
16327
|
-
taxes
|
|
16507
|
+
taxes: {
|
|
16328
16508
|
tax_rate: number;
|
|
16329
16509
|
tax_amount: number;
|
|
16330
16510
|
total: number;
|
|
16331
|
-
}[]
|
|
16511
|
+
}[];
|
|
16332
16512
|
guests?: number | undefined;
|
|
16333
16513
|
payments: {
|
|
16334
16514
|
id?: string | undefined;
|
|
@@ -16367,7 +16547,7 @@ export declare class API {
|
|
|
16367
16547
|
phone?: string | undefined;
|
|
16368
16548
|
email?: string | undefined;
|
|
16369
16549
|
created_on?: string | undefined;
|
|
16370
|
-
addresses
|
|
16550
|
+
addresses: {
|
|
16371
16551
|
address_type?: string | undefined;
|
|
16372
16552
|
name?: string | undefined;
|
|
16373
16553
|
street?: string | undefined;
|
|
@@ -16376,7 +16556,7 @@ export declare class API {
|
|
|
16376
16556
|
city?: string | undefined;
|
|
16377
16557
|
postal_code?: string | undefined;
|
|
16378
16558
|
country?: string | undefined;
|
|
16379
|
-
}[]
|
|
16559
|
+
}[];
|
|
16380
16560
|
loyalty?: number | undefined;
|
|
16381
16561
|
birthdate?: string | undefined;
|
|
16382
16562
|
}>;
|
|
@@ -16402,7 +16582,7 @@ export declare class API {
|
|
|
16402
16582
|
phone?: string | undefined;
|
|
16403
16583
|
email?: string | undefined;
|
|
16404
16584
|
created_on?: string | undefined;
|
|
16405
|
-
addresses
|
|
16585
|
+
addresses: {
|
|
16406
16586
|
address_type?: string | undefined;
|
|
16407
16587
|
name?: string | undefined;
|
|
16408
16588
|
street?: string | undefined;
|
|
@@ -16411,7 +16591,7 @@ export declare class API {
|
|
|
16411
16591
|
city?: string | undefined;
|
|
16412
16592
|
postal_code?: string | undefined;
|
|
16413
16593
|
country?: string | undefined;
|
|
16414
|
-
}[]
|
|
16594
|
+
}[];
|
|
16415
16595
|
loyalty?: number | undefined;
|
|
16416
16596
|
birthdate?: string | undefined;
|
|
16417
16597
|
}>;
|
|
@@ -16454,11 +16634,11 @@ export declare class API {
|
|
|
16454
16634
|
}): import("../types/api").RequestData<{
|
|
16455
16635
|
total: number;
|
|
16456
16636
|
tax_amount: number;
|
|
16457
|
-
taxes
|
|
16637
|
+
taxes: {
|
|
16458
16638
|
tax_rate: number;
|
|
16459
16639
|
tax_amount: number;
|
|
16460
16640
|
total: number;
|
|
16461
|
-
}[]
|
|
16641
|
+
}[];
|
|
16462
16642
|
}>;
|
|
16463
16643
|
getClosure(date: string, params?: {
|
|
16464
16644
|
location_id?: string | undefined;
|
|
@@ -16499,11 +16679,11 @@ export declare class API {
|
|
|
16499
16679
|
loyalty?: number | undefined;
|
|
16500
16680
|
customer_id?: string | undefined;
|
|
16501
16681
|
location_id?: string | undefined;
|
|
16502
|
-
taxes
|
|
16682
|
+
taxes: {
|
|
16503
16683
|
tax_rate: number;
|
|
16504
16684
|
tax_amount: number;
|
|
16505
16685
|
total: number;
|
|
16506
|
-
}[]
|
|
16686
|
+
}[];
|
|
16507
16687
|
guests?: number | undefined;
|
|
16508
16688
|
payments: {
|
|
16509
16689
|
id?: string | undefined;
|
|
@@ -16587,11 +16767,11 @@ export declare class API {
|
|
|
16587
16767
|
loyalty?: number | undefined;
|
|
16588
16768
|
customer_id?: string | undefined;
|
|
16589
16769
|
location_id?: string | undefined;
|
|
16590
|
-
taxes
|
|
16770
|
+
taxes: {
|
|
16591
16771
|
tax_rate: number;
|
|
16592
16772
|
tax_amount: number;
|
|
16593
16773
|
total: number;
|
|
16594
|
-
}[]
|
|
16774
|
+
}[];
|
|
16595
16775
|
guests?: number | undefined;
|
|
16596
16776
|
items: {
|
|
16597
16777
|
id: string;
|
|
@@ -17426,6 +17606,7 @@ export declare class API {
|
|
|
17426
17606
|
folder_id?: string | undefined;
|
|
17427
17607
|
force_financial_period?: string | undefined;
|
|
17428
17608
|
regroup_lines?: "true" | "false" | undefined;
|
|
17609
|
+
force_currency_exchange?: "true" | "false" | undefined;
|
|
17429
17610
|
} | undefined): import("../types/api").RequestData<{
|
|
17430
17611
|
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
17431
17612
|
invoice_number?: string | undefined;
|
|
@@ -17529,6 +17710,7 @@ export declare class API {
|
|
|
17529
17710
|
folder_id?: string | undefined;
|
|
17530
17711
|
force_financial_period?: string | undefined;
|
|
17531
17712
|
regroup_lines?: "true" | "false" | undefined;
|
|
17713
|
+
force_currency_exchange?: "true" | "false" | undefined;
|
|
17532
17714
|
} | undefined): import("../types/api").RequestData<{
|
|
17533
17715
|
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
17534
17716
|
invoice_number?: string | undefined;
|
|
@@ -18043,7 +18225,7 @@ export declare class API {
|
|
|
18043
18225
|
line_number: number;
|
|
18044
18226
|
description?: string | undefined;
|
|
18045
18227
|
amount: number;
|
|
18046
|
-
type: "customer_account" | "
|
|
18228
|
+
type: "customer_account" | "supplier_account" | "general_account";
|
|
18047
18229
|
account_number: string;
|
|
18048
18230
|
partner_id?: string | undefined;
|
|
18049
18231
|
analytic_account?: string | undefined;
|
|
@@ -18061,7 +18243,7 @@ export declare class API {
|
|
|
18061
18243
|
line_number: number;
|
|
18062
18244
|
description?: string | undefined;
|
|
18063
18245
|
amount: number;
|
|
18064
|
-
type: "customer_account" | "
|
|
18246
|
+
type: "customer_account" | "supplier_account" | "general_account";
|
|
18065
18247
|
account_number: string;
|
|
18066
18248
|
partner_id?: string | undefined;
|
|
18067
18249
|
analytic_account?: string | undefined;
|
|
@@ -18079,7 +18261,7 @@ export declare class API {
|
|
|
18079
18261
|
line_number: number;
|
|
18080
18262
|
description?: string | undefined;
|
|
18081
18263
|
amount: number;
|
|
18082
|
-
type: "customer_account" | "
|
|
18264
|
+
type: "customer_account" | "supplier_account" | "general_account";
|
|
18083
18265
|
account_number: string;
|
|
18084
18266
|
partner_id?: string | undefined;
|
|
18085
18267
|
analytic_account?: string | undefined;
|
|
@@ -18099,7 +18281,7 @@ export declare class API {
|
|
|
18099
18281
|
line_number: number;
|
|
18100
18282
|
description?: string | undefined;
|
|
18101
18283
|
amount: number;
|
|
18102
|
-
type: "customer_account" | "
|
|
18284
|
+
type: "customer_account" | "supplier_account" | "general_account";
|
|
18103
18285
|
account_number: string;
|
|
18104
18286
|
partner_id?: string | undefined;
|
|
18105
18287
|
analytic_account?: string | undefined;
|
|
@@ -18118,9 +18300,7 @@ export declare class API {
|
|
|
18118
18300
|
headers: {
|
|
18119
18301
|
[name: string]: unknown;
|
|
18120
18302
|
};
|
|
18121
|
-
content
|
|
18122
|
-
'application/json': unknown;
|
|
18123
|
-
};
|
|
18303
|
+
content?: undefined;
|
|
18124
18304
|
}>;
|
|
18125
18305
|
getAttachments(params: {
|
|
18126
18306
|
folder_id?: string | undefined;
|
|
@@ -18208,7 +18388,7 @@ export declare class API {
|
|
|
18208
18388
|
reference?: string | undefined;
|
|
18209
18389
|
number?: string | undefined;
|
|
18210
18390
|
items: {
|
|
18211
|
-
type: "customer_account" | "
|
|
18391
|
+
type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
|
|
18212
18392
|
account_number: string;
|
|
18213
18393
|
partner_id?: string | undefined;
|
|
18214
18394
|
amount: number;
|
|
@@ -18218,6 +18398,7 @@ export declare class API {
|
|
|
18218
18398
|
}, params?: {
|
|
18219
18399
|
folder_id?: string | undefined;
|
|
18220
18400
|
financial_counterpart_account?: string | undefined;
|
|
18401
|
+
force_currency_exchange?: "true" | "false" | undefined;
|
|
18221
18402
|
} | undefined): import("../types/api").RequestData<{
|
|
18222
18403
|
date: string;
|
|
18223
18404
|
journal_id: string;
|
|
@@ -18227,7 +18408,7 @@ export declare class API {
|
|
|
18227
18408
|
id: string;
|
|
18228
18409
|
number: string;
|
|
18229
18410
|
items: {
|
|
18230
|
-
type: "customer_account" | "
|
|
18411
|
+
type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
|
|
18231
18412
|
account_number: string;
|
|
18232
18413
|
partner_id?: string | undefined;
|
|
18233
18414
|
amount: number;
|
|
@@ -18243,7 +18424,7 @@ export declare class API {
|
|
|
18243
18424
|
reference?: string | undefined;
|
|
18244
18425
|
number?: string | undefined;
|
|
18245
18426
|
items: {
|
|
18246
|
-
account_type: "customer_account" | "
|
|
18427
|
+
account_type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
|
|
18247
18428
|
account: string;
|
|
18248
18429
|
amount: number;
|
|
18249
18430
|
description?: string | undefined;
|
|
@@ -18252,6 +18433,7 @@ export declare class API {
|
|
|
18252
18433
|
}, params?: {
|
|
18253
18434
|
folder_id?: string | undefined;
|
|
18254
18435
|
financial_counterpart_account?: string | undefined;
|
|
18436
|
+
force_currency_exchange?: "true" | "false" | undefined;
|
|
18255
18437
|
} | undefined): import("../types/api").RequestData<{
|
|
18256
18438
|
date: string;
|
|
18257
18439
|
journal_id: string;
|
|
@@ -18261,13 +18443,13 @@ export declare class API {
|
|
|
18261
18443
|
id: string;
|
|
18262
18444
|
number: string;
|
|
18263
18445
|
items: {
|
|
18264
|
-
account_type: "customer_account" | "
|
|
18446
|
+
account_type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
|
|
18265
18447
|
account: string;
|
|
18266
18448
|
amount: number;
|
|
18267
18449
|
description?: string | undefined;
|
|
18268
18450
|
counterpart_account: string;
|
|
18269
18451
|
}[];
|
|
18270
|
-
}
|
|
18452
|
+
}>;
|
|
18271
18453
|
createJournalEntryOld(journal_entry: {
|
|
18272
18454
|
reference?: string | undefined;
|
|
18273
18455
|
due_date?: string | undefined;
|
|
@@ -18330,7 +18512,7 @@ export declare class API {
|
|
|
18330
18512
|
currency_exchange_rate: number;
|
|
18331
18513
|
date: string;
|
|
18332
18514
|
items: {
|
|
18333
|
-
account_type: "customer_account" | "
|
|
18515
|
+
account_type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
|
|
18334
18516
|
account: string;
|
|
18335
18517
|
force_general_account?: string | undefined;
|
|
18336
18518
|
prioritise_thirdparty_account: boolean;
|
|
@@ -18419,6 +18601,49 @@ export declare class API {
|
|
|
18419
18601
|
end: string;
|
|
18420
18602
|
closed: boolean;
|
|
18421
18603
|
}[]>;
|
|
18604
|
+
createLedgerAccount(account: {
|
|
18605
|
+
name: string;
|
|
18606
|
+
number: string;
|
|
18607
|
+
}, params?: {
|
|
18608
|
+
folder_id?: string | undefined;
|
|
18609
|
+
} | undefined): import("../types/api").RequestData<{
|
|
18610
|
+
number: string;
|
|
18611
|
+
name: string;
|
|
18612
|
+
active: boolean;
|
|
18613
|
+
type?: "vat" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | "other" | undefined;
|
|
18614
|
+
}>;
|
|
18615
|
+
getJournalEntry(journalEntryId: string, params?: {
|
|
18616
|
+
folder_id?: string | undefined;
|
|
18617
|
+
} | undefined): import("../types/api").RequestData<{
|
|
18618
|
+
reference?: string | undefined;
|
|
18619
|
+
due_date?: string | undefined;
|
|
18620
|
+
journal_id: string;
|
|
18621
|
+
name?: string | undefined;
|
|
18622
|
+
journal_name: string;
|
|
18623
|
+
date: string;
|
|
18624
|
+
posted: boolean;
|
|
18625
|
+
id: string;
|
|
18626
|
+
items: {
|
|
18627
|
+
account_number: string;
|
|
18628
|
+
partner_id?: string | undefined;
|
|
18629
|
+
description?: string | undefined;
|
|
18630
|
+
debit: number;
|
|
18631
|
+
credit: number;
|
|
18632
|
+
currency: string;
|
|
18633
|
+
currency_exchange_rate: number;
|
|
18634
|
+
id: string;
|
|
18635
|
+
partner_name?: string | undefined;
|
|
18636
|
+
account_name: string;
|
|
18637
|
+
matching_numbers: string[];
|
|
18638
|
+
analytic_distribution: {
|
|
18639
|
+
analytic_plan: string;
|
|
18640
|
+
analytic_accounts: {
|
|
18641
|
+
analytic_account: string;
|
|
18642
|
+
percentage: number;
|
|
18643
|
+
}[];
|
|
18644
|
+
}[];
|
|
18645
|
+
}[];
|
|
18646
|
+
}>;
|
|
18422
18647
|
}>;
|
|
18423
18648
|
invoicing: import("../types/api").ApiFor<{
|
|
18424
18649
|
getInvoices(params?: {
|
|
@@ -18816,7 +19041,7 @@ export declare class API {
|
|
|
18816
19041
|
} | undefined;
|
|
18817
19042
|
}>;
|
|
18818
19043
|
getContacts(params?: {
|
|
18819
|
-
contact_type?: "
|
|
19044
|
+
contact_type?: "supplier" | "all" | "prospect" | "customer" | undefined;
|
|
18820
19045
|
} | undefined): import("../types/api").RequestData<{
|
|
18821
19046
|
id: string;
|
|
18822
19047
|
source_ref: {
|