@cbm-common/cbm-types 0.0.38 → 0.0.40
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/lib/components/add-provider/add-provider.d.ts +111 -0
- package/lib/components/add-provider/animations.d.ts +1 -0
- package/lib/components/add-provider/constants.d.ts +7 -0
- package/lib/components/add-provider/types.d.ts +1 -0
- package/lib/domain/models/credit-management.domain.model.d.ts +337 -0
- package/lib/domain/models/invoice.domain.model.d.ts +1056 -0
- package/lib/domain/models/provider-category.domain.model.d.ts +68 -0
- package/lib/domain/models/provider-group.domain.model.d.ts +110 -0
- package/lib/domain/models/reason-country.domain.model.d.ts +93 -0
- package/lib/domain/models/retention-settings-sales.domain.model.d.ts +111 -0
- package/lib/domain/models/subscription.domain.model.d.ts +261 -0
- package/lib/domain/models/{payment-term.domain.model.d.ts → tax-regime.domain.model.d.ts} +31 -38
- package/lib/domain/models/territorial-organization.domain.model.d.ts +53 -0
- package/lib/domain/repositories/credit-management.domain.repository.d.ts +11 -0
- package/lib/domain/repositories/invoice.domain.repository.d.ts +16 -0
- package/lib/domain/repositories/provider-category.domain.repository.d.ts +10 -0
- package/lib/domain/repositories/provider-group.domain.repository.d.ts +10 -0
- package/lib/domain/repositories/reason-country.domain.repository.d.ts +14 -0
- package/lib/domain/repositories/retention-settings-sales.domain.repository.d.ts +9 -0
- package/lib/domain/repositories/subscription.domain.repository.d.ts +15 -0
- package/lib/domain/repositories/tax-regime.domain.repository.d.ts +9 -0
- package/lib/domain/repositories/territorial-organization.domain.repository.d.ts +10 -0
- package/lib/infrastructure/repositories/credit-management.infrastructure.repository.d.ts +8 -0
- package/lib/infrastructure/repositories/invoice.infrastructure.repository.d.ts +13 -0
- package/lib/infrastructure/repositories/provider-category.infrastructure.repository.d.ts +7 -0
- package/lib/infrastructure/repositories/provider-group.infrastructure.repository.d.ts +7 -0
- package/lib/infrastructure/repositories/reason-country.infrastructure.repository.d.ts +11 -0
- package/lib/infrastructure/repositories/retention-settings-sales.infrastructure.repository.d.ts +6 -0
- package/lib/infrastructure/repositories/subscription.infrastructure.repository.d.ts +12 -0
- package/lib/infrastructure/repositories/tax-regime.infrastructure.repository.d.ts +6 -0
- package/lib/infrastructure/repositories/territorial-organization.infrastructure.repository.d.ts +7 -0
- package/lib/infrastructure/services/credit-management.infrastructure.service.d.ts +13 -0
- package/lib/infrastructure/services/invoice.infrastructure.service.d.ts +17 -0
- package/lib/infrastructure/services/provider-category.infrastructure.service.d.ts +12 -0
- package/lib/infrastructure/services/provider-group.infrastructure.service.d.ts +12 -0
- package/lib/infrastructure/services/reason-country.infrastructure.service.d.ts +16 -0
- package/lib/infrastructure/services/retention-settings-sales.infrastructure.service.d.ts +11 -0
- package/lib/infrastructure/services/subscription.infrastructure.service.d.ts +16 -0
- package/lib/infrastructure/services/tax-regime.infrastructure.service.d.ts +10 -0
- package/lib/infrastructure/services/territorial-organization.infrastructure.service.d.ts +11 -0
- package/lib/remotes/components.remote.d.ts +1 -0
- package/lib/remotes/repositories/credit-management.repository.d.ts +3 -0
- package/lib/remotes/repositories/invoice.repository.d.ts +3 -0
- package/lib/remotes/repositories/provider-category.repository.d.ts +3 -0
- package/lib/remotes/repositories/provider-group.repository.d.ts +3 -0
- package/lib/remotes/repositories/reason-country.repository.d.ts +3 -0
- package/lib/remotes/repositories/retention-settings-sales.repository.d.ts +3 -0
- package/lib/remotes/repositories/subscription.repository.d.ts +3 -0
- package/lib/remotes/repositories/tax-regime.repository.d.ts +3 -0
- package/lib/remotes/repositories/territorial-organization.repository.d.ts +3 -0
- package/lib/remotes/repositories.remote.d.ts +17 -9
- package/package.json +1 -1
- package/public-api.d.ts +40 -1
|
@@ -0,0 +1,1056 @@
|
|
|
1
|
+
import { CbmSalePriceModel } from './sale-price.domain.model';
|
|
2
|
+
export declare namespace CbmInvoiceModel {
|
|
3
|
+
type DetailType = 'item' | 'service' | 'kit' | 'outsourcing_service';
|
|
4
|
+
enum EPaymentTerm {
|
|
5
|
+
CREDIT = "credit",
|
|
6
|
+
DEBIT = "debit"
|
|
7
|
+
}
|
|
8
|
+
enum EInvoiceType {
|
|
9
|
+
GENERAL = "general",
|
|
10
|
+
EXPORT = "export"
|
|
11
|
+
}
|
|
12
|
+
namespace EPaymentTerm {
|
|
13
|
+
function fromString(value: string): EPaymentTerm;
|
|
14
|
+
function toString(value: EPaymentTerm): TPaymentTerm;
|
|
15
|
+
}
|
|
16
|
+
type TPaymentTerm = `${EPaymentTerm}`;
|
|
17
|
+
type TInvoiceType = `${EInvoiceType}`;
|
|
18
|
+
interface ListParams {
|
|
19
|
+
page: number;
|
|
20
|
+
size: number;
|
|
21
|
+
reverse_status?: boolean;
|
|
22
|
+
company_branch_id?: string;
|
|
23
|
+
user_id?: string;
|
|
24
|
+
to_date?: number;
|
|
25
|
+
from_date?: number;
|
|
26
|
+
enabled?: boolean;
|
|
27
|
+
export?: boolean;
|
|
28
|
+
invoice_type?: TInvoiceType;
|
|
29
|
+
sequential?: string;
|
|
30
|
+
invoice_number?: string;
|
|
31
|
+
state?: string;
|
|
32
|
+
client_branch_id?: string;
|
|
33
|
+
client_id?: string;
|
|
34
|
+
seller_id?: string;
|
|
35
|
+
payment_term?: TPaymentTerm;
|
|
36
|
+
}
|
|
37
|
+
interface ListResponse {
|
|
38
|
+
success: boolean;
|
|
39
|
+
pageNum: number;
|
|
40
|
+
pageSize: number;
|
|
41
|
+
pages: number;
|
|
42
|
+
total: number;
|
|
43
|
+
items: ListResponse.Item[];
|
|
44
|
+
}
|
|
45
|
+
namespace ListResponse {
|
|
46
|
+
interface Item {
|
|
47
|
+
_id: string;
|
|
48
|
+
company_id: string;
|
|
49
|
+
company_branch_id: string;
|
|
50
|
+
client_id: string;
|
|
51
|
+
client_category_id: string;
|
|
52
|
+
contact_id: string;
|
|
53
|
+
seller_id: string;
|
|
54
|
+
document_date: number;
|
|
55
|
+
document_nomenclature: string;
|
|
56
|
+
document_sequence: string;
|
|
57
|
+
document_number: string;
|
|
58
|
+
SRI_state: string;
|
|
59
|
+
document_state: string;
|
|
60
|
+
document_branch_identification_number: string;
|
|
61
|
+
document_emission_point_id?: string;
|
|
62
|
+
document_emission_point_number: string;
|
|
63
|
+
document_correlative: string;
|
|
64
|
+
authorization_number: string;
|
|
65
|
+
payment_term: string;
|
|
66
|
+
tax_base: number;
|
|
67
|
+
discount: number;
|
|
68
|
+
service: number;
|
|
69
|
+
commentary: string;
|
|
70
|
+
total: number;
|
|
71
|
+
price_type: string;
|
|
72
|
+
client_document_number: string;
|
|
73
|
+
client_document_code?: string;
|
|
74
|
+
client_trade_name: string;
|
|
75
|
+
client_business_name: string;
|
|
76
|
+
client_phone_code: string;
|
|
77
|
+
client_address: string;
|
|
78
|
+
client_cellphone: string;
|
|
79
|
+
client_email: string;
|
|
80
|
+
client_category_name?: string;
|
|
81
|
+
client_province_id?: string;
|
|
82
|
+
client_canton_id?: string;
|
|
83
|
+
client_parish_id?: string;
|
|
84
|
+
client_province_code?: string;
|
|
85
|
+
client_province_name?: string;
|
|
86
|
+
client_canton_code?: string;
|
|
87
|
+
client_canton_name?: string;
|
|
88
|
+
client_parish_code?: string;
|
|
89
|
+
client_parish_name?: string;
|
|
90
|
+
seller_full_name: string;
|
|
91
|
+
seller_identification_number: string;
|
|
92
|
+
seller_address: string;
|
|
93
|
+
seller_email: string[];
|
|
94
|
+
seller_cellphone: string;
|
|
95
|
+
company_NIF: string;
|
|
96
|
+
company_address: string;
|
|
97
|
+
company_trade_name: string;
|
|
98
|
+
company_business_name: string;
|
|
99
|
+
company_branch_identification_number: string;
|
|
100
|
+
company_branch_trade_name: string;
|
|
101
|
+
company_branch_logo: string;
|
|
102
|
+
company_branch_address: string;
|
|
103
|
+
company_branch_email: string;
|
|
104
|
+
company_branch_cellphone: string;
|
|
105
|
+
company_branch_phone: string;
|
|
106
|
+
client_branch_id: string;
|
|
107
|
+
client_branch_code: string;
|
|
108
|
+
client_branch_name: string;
|
|
109
|
+
client_branch_address: string;
|
|
110
|
+
client_branch_email: string;
|
|
111
|
+
client_branch_cellphone: string;
|
|
112
|
+
client_branch_phone: string;
|
|
113
|
+
client_branch_phone_code: string;
|
|
114
|
+
contact_identification_number: string;
|
|
115
|
+
contact_full_name: string;
|
|
116
|
+
contact_phone_code: string;
|
|
117
|
+
contact_cellphone: string;
|
|
118
|
+
contact_email: string;
|
|
119
|
+
default_price_list_id?: string;
|
|
120
|
+
default_price_list_name?: string;
|
|
121
|
+
default_price_list_type?: string;
|
|
122
|
+
default_cost_center_id?: string;
|
|
123
|
+
default_cost_center_code?: string;
|
|
124
|
+
default_cost_center_name?: string;
|
|
125
|
+
default_cost_center_father_code?: string;
|
|
126
|
+
default_cost_center_father_name?: string;
|
|
127
|
+
default_discount_rate?: number;
|
|
128
|
+
event_module_origin?: string;
|
|
129
|
+
collection_origin_name?: string;
|
|
130
|
+
collection_origin_id?: string;
|
|
131
|
+
document_origin_name?: string;
|
|
132
|
+
document_origin_number?: string;
|
|
133
|
+
document_origin_date?: number;
|
|
134
|
+
document_type?: string;
|
|
135
|
+
environment?: number;
|
|
136
|
+
SRI_identificator?: string;
|
|
137
|
+
SRI_message?: string;
|
|
138
|
+
SRI_aditional_information?: string;
|
|
139
|
+
SRI_response?: object;
|
|
140
|
+
url_authorized_document?: string;
|
|
141
|
+
SRI_authorization_date?: number;
|
|
142
|
+
credit_SRI_payment_term_id?: string;
|
|
143
|
+
credit_SRI_payment_term_code?: string;
|
|
144
|
+
enabled: boolean;
|
|
145
|
+
disabled_reason?: string;
|
|
146
|
+
created_at: number;
|
|
147
|
+
created_user: string;
|
|
148
|
+
updated_at: number;
|
|
149
|
+
updated_user: string;
|
|
150
|
+
reverse_status: boolean;
|
|
151
|
+
reverse_reason?: string;
|
|
152
|
+
reverse_at?: number;
|
|
153
|
+
reverse_user?: string;
|
|
154
|
+
invoice_credit?: number;
|
|
155
|
+
invoice_debit?: number;
|
|
156
|
+
invoice_retention?: number;
|
|
157
|
+
invoice_credit_note?: number;
|
|
158
|
+
invoice_return?: number;
|
|
159
|
+
invoice_balance?: number;
|
|
160
|
+
addItems: boolean;
|
|
161
|
+
checked?: boolean;
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
interface GetOneResponse {
|
|
165
|
+
success: boolean;
|
|
166
|
+
data: GetOneResponse.Data;
|
|
167
|
+
}
|
|
168
|
+
namespace GetOneResponse {
|
|
169
|
+
interface Data {
|
|
170
|
+
_id?: string;
|
|
171
|
+
company_id?: string;
|
|
172
|
+
company_branch_id?: string;
|
|
173
|
+
client_id?: string;
|
|
174
|
+
client_category_id: string;
|
|
175
|
+
client_branch_id?: string;
|
|
176
|
+
contact_id?: string;
|
|
177
|
+
seller_id?: string;
|
|
178
|
+
type?: string;
|
|
179
|
+
document_date?: number;
|
|
180
|
+
document_nomenclature?: string;
|
|
181
|
+
document_number?: string;
|
|
182
|
+
SRI_state?: string;
|
|
183
|
+
document_state?: string;
|
|
184
|
+
document_branch_identification_number?: string;
|
|
185
|
+
document_emission_point_number?: string;
|
|
186
|
+
document_emission_point_id?: string;
|
|
187
|
+
document_sequence?: string;
|
|
188
|
+
authorization_number?: string;
|
|
189
|
+
payment_term?: string;
|
|
190
|
+
tax_base?: number;
|
|
191
|
+
tax_iva?: number;
|
|
192
|
+
discount?: number;
|
|
193
|
+
service?: number;
|
|
194
|
+
total?: number;
|
|
195
|
+
commentary?: string;
|
|
196
|
+
client_document_number?: string;
|
|
197
|
+
client_document_code?: string;
|
|
198
|
+
client_trade_name?: string;
|
|
199
|
+
client_business_name?: string;
|
|
200
|
+
client_phone_code?: string;
|
|
201
|
+
client_category_name?: string;
|
|
202
|
+
client_address?: string;
|
|
203
|
+
client_cellphone?: string;
|
|
204
|
+
client_email?: string;
|
|
205
|
+
client_branch_code?: string;
|
|
206
|
+
client_branch_name?: string;
|
|
207
|
+
client_branch_address?: string;
|
|
208
|
+
client_branch_email?: string;
|
|
209
|
+
client_branch_cellphone?: string;
|
|
210
|
+
client_branch_phone?: string;
|
|
211
|
+
client_branch_phone_code?: string;
|
|
212
|
+
client_province_id?: string;
|
|
213
|
+
client_canton_id?: string;
|
|
214
|
+
client_parish_id?: string;
|
|
215
|
+
client_province_code?: string;
|
|
216
|
+
client_province_name?: string;
|
|
217
|
+
client_canton_code?: string;
|
|
218
|
+
client_canton_name?: string;
|
|
219
|
+
client_parish_code?: string;
|
|
220
|
+
client_parish_name?: string;
|
|
221
|
+
contact_identification_number?: string;
|
|
222
|
+
contact_full_name?: string;
|
|
223
|
+
contact_phone_code?: string;
|
|
224
|
+
contact_cellphone?: string;
|
|
225
|
+
contact_email?: string;
|
|
226
|
+
seller_full_name?: string;
|
|
227
|
+
seller_identification_number?: string;
|
|
228
|
+
seller_address: string;
|
|
229
|
+
seller_email: string[];
|
|
230
|
+
seller_cellphone: string;
|
|
231
|
+
company_NIF?: string;
|
|
232
|
+
company_address?: string;
|
|
233
|
+
company_trade_name?: string;
|
|
234
|
+
company_business_name?: string;
|
|
235
|
+
company_branch_identification_number?: string;
|
|
236
|
+
company_branch_trade_name?: string;
|
|
237
|
+
company_branch_logo?: string;
|
|
238
|
+
company_branch_address?: string;
|
|
239
|
+
company_branch_email?: string;
|
|
240
|
+
company_branch_cellphone?: string;
|
|
241
|
+
company_branch_phone?: string;
|
|
242
|
+
default_price_list_id?: string;
|
|
243
|
+
default_price_list_name?: string;
|
|
244
|
+
default_price_list_type?: string;
|
|
245
|
+
default_cost_center_id?: string;
|
|
246
|
+
default_cost_center_code?: string;
|
|
247
|
+
default_cost_center_name?: string;
|
|
248
|
+
default_cost_center_father_code?: string;
|
|
249
|
+
default_cost_center_father_name?: string;
|
|
250
|
+
default_discount_rate?: number;
|
|
251
|
+
export?: boolean;
|
|
252
|
+
invoice_type?: TInvoiceType;
|
|
253
|
+
export_data?: Data.ExportData;
|
|
254
|
+
event_module_origin?: string;
|
|
255
|
+
collection_origin_name?: string;
|
|
256
|
+
collection_origin_id?: string;
|
|
257
|
+
document_origin_name?: string;
|
|
258
|
+
document_origin_number?: string;
|
|
259
|
+
document_origin_date?: number;
|
|
260
|
+
document_type?: string;
|
|
261
|
+
environment?: number;
|
|
262
|
+
SRI_identificator?: string;
|
|
263
|
+
SRI_message?: string;
|
|
264
|
+
SRI_aditional_information?: string;
|
|
265
|
+
SRI_response?: object;
|
|
266
|
+
url_authorized_document?: string;
|
|
267
|
+
SRI_authorization_date?: number;
|
|
268
|
+
credit_SRI_payment_term_id?: string;
|
|
269
|
+
credit_SRI_payment_term_code?: string;
|
|
270
|
+
enabled?: boolean;
|
|
271
|
+
disabled_reason?: string;
|
|
272
|
+
deleted?: boolean;
|
|
273
|
+
created_at?: number;
|
|
274
|
+
created_user?: string;
|
|
275
|
+
updated_at?: number;
|
|
276
|
+
updated_user?: string;
|
|
277
|
+
reverse_status: boolean;
|
|
278
|
+
reverse_reason?: string;
|
|
279
|
+
reverse_at?: number;
|
|
280
|
+
reverse_user?: string;
|
|
281
|
+
invoice_summary_article?: Data.SummaryArticle[];
|
|
282
|
+
invoice_detail?: Data.Detail[];
|
|
283
|
+
invoice_tax?: Data.Tax[];
|
|
284
|
+
invoice_payment_term?: Data.PaymentTerm[];
|
|
285
|
+
credit_management_installment?: Data.CreditManagementInstallment[];
|
|
286
|
+
credit_management_balance: number;
|
|
287
|
+
additional_information?: Data.AdditionaInformation[];
|
|
288
|
+
invoice_tax_declaration?: Data.TaxDeclaration[];
|
|
289
|
+
income_id?: Data.Income[];
|
|
290
|
+
related_documents?: Data.RelatedDocument[];
|
|
291
|
+
}
|
|
292
|
+
namespace Data {
|
|
293
|
+
interface SummaryArticle {
|
|
294
|
+
code: string;
|
|
295
|
+
name: string;
|
|
296
|
+
amount: number;
|
|
297
|
+
sequence: string;
|
|
298
|
+
}
|
|
299
|
+
interface RelatedDocument {
|
|
300
|
+
collection_origin_id: string;
|
|
301
|
+
collection_origin_name: string;
|
|
302
|
+
document_number: string;
|
|
303
|
+
secuencial: string;
|
|
304
|
+
date: number;
|
|
305
|
+
total: number;
|
|
306
|
+
_id: string;
|
|
307
|
+
}
|
|
308
|
+
interface TaxDeclaration {
|
|
309
|
+
_id: string;
|
|
310
|
+
configuration_id: string;
|
|
311
|
+
raw_code?: string;
|
|
312
|
+
net_code?: string;
|
|
313
|
+
tax_code?: string;
|
|
314
|
+
raw_value?: number;
|
|
315
|
+
net_value?: number;
|
|
316
|
+
tax_value?: number;
|
|
317
|
+
description: string;
|
|
318
|
+
}
|
|
319
|
+
interface Income {
|
|
320
|
+
_id?: string;
|
|
321
|
+
income_id?: string;
|
|
322
|
+
credit_management_id?: string;
|
|
323
|
+
credit_management_detail_id?: string;
|
|
324
|
+
client_id?: string;
|
|
325
|
+
client_branch_id?: string;
|
|
326
|
+
seller_id?: string;
|
|
327
|
+
cost_center_id?: string;
|
|
328
|
+
installment?: string;
|
|
329
|
+
credit_document_nomenclature?: string;
|
|
330
|
+
credit_document_number?: string;
|
|
331
|
+
paid?: number;
|
|
332
|
+
previous_balance?: number;
|
|
333
|
+
subsequent_balance?: number;
|
|
334
|
+
client_document_number?: string;
|
|
335
|
+
client_trade_name?: string;
|
|
336
|
+
client_business_name?: string;
|
|
337
|
+
client_phone_code?: string;
|
|
338
|
+
client_address?: string;
|
|
339
|
+
client_cellphone?: string;
|
|
340
|
+
client_email?: string;
|
|
341
|
+
seller_identification_number?: string;
|
|
342
|
+
seller_full_name?: string;
|
|
343
|
+
seller_document_number?: string;
|
|
344
|
+
seller_address?: string;
|
|
345
|
+
seller_email?: string[];
|
|
346
|
+
seller_cellphone?: string;
|
|
347
|
+
cost_center_code?: string;
|
|
348
|
+
cost_center_name?: string;
|
|
349
|
+
client_branch_code?: string;
|
|
350
|
+
client_branch_name?: string;
|
|
351
|
+
client_branch_address?: string;
|
|
352
|
+
client_branch_cellphone?: string;
|
|
353
|
+
client_branch_phone_code?: string;
|
|
354
|
+
created_user?: string;
|
|
355
|
+
created_at?: number;
|
|
356
|
+
}
|
|
357
|
+
interface ExportData {
|
|
358
|
+
export_foreign_trade: string;
|
|
359
|
+
export_buyer_address: string;
|
|
360
|
+
export_country_origin_id: string;
|
|
361
|
+
export_country_origin_name: string;
|
|
362
|
+
export_country_origin_code: string;
|
|
363
|
+
export_origin_port: string;
|
|
364
|
+
export_country_destination_id: string;
|
|
365
|
+
export_country_destination_name: string;
|
|
366
|
+
export_country_destination_code: string;
|
|
367
|
+
export_destination_port: string;
|
|
368
|
+
export_incoterm_place: string;
|
|
369
|
+
export_incoterm_invoice_id: string;
|
|
370
|
+
export_incoterm_invoice_code: string;
|
|
371
|
+
export_incoterm_invoice_name: string;
|
|
372
|
+
export_incoterm_without_taxes_id: string;
|
|
373
|
+
export_incoterm_without_taxes_code: string;
|
|
374
|
+
export_incoterm_without_taxes_name: string;
|
|
375
|
+
export_international_freight: number;
|
|
376
|
+
export_international_insurance: number;
|
|
377
|
+
export_customs_expenditures: number;
|
|
378
|
+
export_transportation_expenses: number;
|
|
379
|
+
export_dae?: string;
|
|
380
|
+
export_mawb?: string;
|
|
381
|
+
export_forwarder?: string;
|
|
382
|
+
export_cr?: string;
|
|
383
|
+
}
|
|
384
|
+
interface PaymentTerm {
|
|
385
|
+
_id: string;
|
|
386
|
+
payment_term_id: string;
|
|
387
|
+
account_id?: string;
|
|
388
|
+
SRI_payment_term_id: string;
|
|
389
|
+
SRI_payment_term_code: string;
|
|
390
|
+
financial_bank_id?: string;
|
|
391
|
+
date: number;
|
|
392
|
+
value: number;
|
|
393
|
+
financial_bank_name?: string;
|
|
394
|
+
card_type?: string;
|
|
395
|
+
batch_code?: string;
|
|
396
|
+
bank_cheque?: string;
|
|
397
|
+
account_name?: string;
|
|
398
|
+
account_code?: string;
|
|
399
|
+
payment_term_code: string;
|
|
400
|
+
payment_term_name: string;
|
|
401
|
+
operation_number?: string;
|
|
402
|
+
}
|
|
403
|
+
interface Detail {
|
|
404
|
+
_id: string;
|
|
405
|
+
invoice_id?: string;
|
|
406
|
+
item_id?: string;
|
|
407
|
+
category_id?: string;
|
|
408
|
+
cost_center_id?: string;
|
|
409
|
+
price_list_id?: string;
|
|
410
|
+
tax_iva_id?: string;
|
|
411
|
+
tax_irbpn_id?: string;
|
|
412
|
+
tax_ice_id?: string;
|
|
413
|
+
unit_measure_id?: string;
|
|
414
|
+
amount?: number;
|
|
415
|
+
amount_free?: number;
|
|
416
|
+
sequence?: string;
|
|
417
|
+
price_base?: number;
|
|
418
|
+
total_price?: number;
|
|
419
|
+
discount_rate?: number;
|
|
420
|
+
unit_discount?: number;
|
|
421
|
+
total_discount?: number;
|
|
422
|
+
replace_item_name?: string;
|
|
423
|
+
commentary_item?: string;
|
|
424
|
+
tax_iva_rate?: number;
|
|
425
|
+
item_code?: string;
|
|
426
|
+
item_barcode?: string;
|
|
427
|
+
item_name?: string;
|
|
428
|
+
item_balance_referal_guide?: number;
|
|
429
|
+
item_balance?: number;
|
|
430
|
+
unit_measure_name?: string;
|
|
431
|
+
unit_measure_abbreviation?: string;
|
|
432
|
+
unit_measure_group_abbreviation?: string;
|
|
433
|
+
unit_measure_group_id?: string;
|
|
434
|
+
unit_measure_group_name?: string;
|
|
435
|
+
unit_measure_type?: string;
|
|
436
|
+
unit_measure_quantity?: number;
|
|
437
|
+
stock_afected?: number;
|
|
438
|
+
in_stock?: number;
|
|
439
|
+
manage_by?: string;
|
|
440
|
+
category_name?: string;
|
|
441
|
+
cost_center_code?: string;
|
|
442
|
+
cost_center_name?: string;
|
|
443
|
+
cost_center_father_code?: string;
|
|
444
|
+
cost_center_father_name?: string;
|
|
445
|
+
price_list_name?: string;
|
|
446
|
+
type?: DetailType;
|
|
447
|
+
price_type?: CbmSalePriceModel.TName;
|
|
448
|
+
price_type_description?: string;
|
|
449
|
+
price_type_id?: string;
|
|
450
|
+
deleted?: boolean;
|
|
451
|
+
created_at?: number;
|
|
452
|
+
created_user?: string;
|
|
453
|
+
updated_at?: number;
|
|
454
|
+
updated_user?: string;
|
|
455
|
+
invoice_detail_tax?: Detail.Tax[];
|
|
456
|
+
tax_iva_code?: string;
|
|
457
|
+
tax_iva?: Detail.TaxIva;
|
|
458
|
+
outsourcing_service_data?: Detail.OutsourcingServiceData;
|
|
459
|
+
}
|
|
460
|
+
namespace Detail {
|
|
461
|
+
interface OutsourcingServiceData {
|
|
462
|
+
outsourcing_service_movements_id: string;
|
|
463
|
+
code_outsourcing_service: string;
|
|
464
|
+
name_outsourcing_service: string;
|
|
465
|
+
date_purchase_receipt: number;
|
|
466
|
+
structured_document_number: string;
|
|
467
|
+
provider_document_number: string;
|
|
468
|
+
provider_business_name: string;
|
|
469
|
+
cost: number;
|
|
470
|
+
}
|
|
471
|
+
interface Tax {
|
|
472
|
+
_id: string;
|
|
473
|
+
invoice_detail_id: string;
|
|
474
|
+
type: string;
|
|
475
|
+
description: string;
|
|
476
|
+
tax_code: string;
|
|
477
|
+
tax_rate: number;
|
|
478
|
+
tax_base: number;
|
|
479
|
+
tax_value: number;
|
|
480
|
+
}
|
|
481
|
+
interface TaxIva {
|
|
482
|
+
_id: string;
|
|
483
|
+
country_id?: string;
|
|
484
|
+
code?: string;
|
|
485
|
+
percentage?: number;
|
|
486
|
+
description?: string;
|
|
487
|
+
enabled?: boolean;
|
|
488
|
+
created_user?: string;
|
|
489
|
+
created_at?: number;
|
|
490
|
+
updated_user?: string;
|
|
491
|
+
updated_at?: number;
|
|
492
|
+
}
|
|
493
|
+
}
|
|
494
|
+
interface Tax {
|
|
495
|
+
_id: string;
|
|
496
|
+
invoice_id: string;
|
|
497
|
+
description: string;
|
|
498
|
+
type: string;
|
|
499
|
+
tax_code: string;
|
|
500
|
+
tax_rate: number;
|
|
501
|
+
tax_base: number;
|
|
502
|
+
tax_value: number;
|
|
503
|
+
created_at: number;
|
|
504
|
+
created_user: string;
|
|
505
|
+
updated_at: number;
|
|
506
|
+
updated_user: string;
|
|
507
|
+
}
|
|
508
|
+
interface CreditManagementInstallment {
|
|
509
|
+
_id: string;
|
|
510
|
+
credit_management_id?: string;
|
|
511
|
+
installment: string;
|
|
512
|
+
date: number;
|
|
513
|
+
expired_in?: number;
|
|
514
|
+
period?: number;
|
|
515
|
+
credit: number;
|
|
516
|
+
debit?: number;
|
|
517
|
+
retention?: number;
|
|
518
|
+
credit_note?: number;
|
|
519
|
+
return?: number;
|
|
520
|
+
balance?: number;
|
|
521
|
+
created_at: number;
|
|
522
|
+
created_user: string;
|
|
523
|
+
updated_at?: number;
|
|
524
|
+
updated_user?: string;
|
|
525
|
+
}
|
|
526
|
+
interface AdditionaInformation {
|
|
527
|
+
description: string;
|
|
528
|
+
value: string;
|
|
529
|
+
type: string;
|
|
530
|
+
}
|
|
531
|
+
}
|
|
532
|
+
}
|
|
533
|
+
interface SaveBody {
|
|
534
|
+
invoice_type?: TInvoiceType;
|
|
535
|
+
client_id: string;
|
|
536
|
+
client_category_id: string;
|
|
537
|
+
client_branch_id?: string;
|
|
538
|
+
contact_id?: string;
|
|
539
|
+
seller_id: string;
|
|
540
|
+
document_type: string;
|
|
541
|
+
document_emission_point_number: string;
|
|
542
|
+
document_emission_point_id: string;
|
|
543
|
+
payment_term: string;
|
|
544
|
+
tax_base: number;
|
|
545
|
+
discount: number;
|
|
546
|
+
service: number;
|
|
547
|
+
total: number;
|
|
548
|
+
commentary: string;
|
|
549
|
+
client_document_number: string;
|
|
550
|
+
client_document_code: string;
|
|
551
|
+
client_trade_name: string;
|
|
552
|
+
client_business_name: string;
|
|
553
|
+
client_phone_code: string;
|
|
554
|
+
client_address: string;
|
|
555
|
+
client_cellphone: string;
|
|
556
|
+
client_email: string;
|
|
557
|
+
client_category_name: string;
|
|
558
|
+
seller_full_name: string;
|
|
559
|
+
seller_identification_number: string;
|
|
560
|
+
seller_address: string;
|
|
561
|
+
seller_email: string[];
|
|
562
|
+
seller_cellphone: string;
|
|
563
|
+
company_branch_id: string;
|
|
564
|
+
company_NIF: string;
|
|
565
|
+
company_address: string;
|
|
566
|
+
company_trade_name: string;
|
|
567
|
+
company_business_name: string;
|
|
568
|
+
company_required_accounting: boolean;
|
|
569
|
+
company_retention_agent: string;
|
|
570
|
+
company_special_taxpayer: string;
|
|
571
|
+
company_taxpayer_type: string;
|
|
572
|
+
company_branch_identification_number: string;
|
|
573
|
+
company_branch_trade_name: string;
|
|
574
|
+
company_branch_logo: string;
|
|
575
|
+
company_branch_address: string;
|
|
576
|
+
company_branch_email: string;
|
|
577
|
+
company_branch_cellphone: string;
|
|
578
|
+
company_branch_phone: string;
|
|
579
|
+
company_branch_artisanal_qualification: string;
|
|
580
|
+
client_branch_code?: string;
|
|
581
|
+
client_branch_name?: string;
|
|
582
|
+
client_branch_address?: string;
|
|
583
|
+
client_branch_email?: string;
|
|
584
|
+
client_branch_cellphone?: string;
|
|
585
|
+
client_branch_phone?: string;
|
|
586
|
+
client_branch_phone_code?: string;
|
|
587
|
+
client_province_id?: string;
|
|
588
|
+
client_canton_id?: string;
|
|
589
|
+
client_parish_id?: string;
|
|
590
|
+
client_province_code?: string;
|
|
591
|
+
client_province_name?: string;
|
|
592
|
+
client_canton_code?: string;
|
|
593
|
+
client_canton_name?: string;
|
|
594
|
+
client_parish_code?: string;
|
|
595
|
+
client_parish_name?: string;
|
|
596
|
+
contact_identification_number?: string;
|
|
597
|
+
contact_full_name?: string;
|
|
598
|
+
contact_phone_code?: string;
|
|
599
|
+
contact_cellphone?: string;
|
|
600
|
+
contact_email?: string;
|
|
601
|
+
order_id?: string;
|
|
602
|
+
environment: number;
|
|
603
|
+
default_price_list_id?: string;
|
|
604
|
+
default_price_list_name?: string;
|
|
605
|
+
default_price_list_type?: string;
|
|
606
|
+
default_cost_center_id?: string;
|
|
607
|
+
default_cost_center_code?: string;
|
|
608
|
+
default_cost_center_name?: string;
|
|
609
|
+
default_cost_center_father_code?: string;
|
|
610
|
+
default_cost_center_father_name?: string;
|
|
611
|
+
default_discount_rate?: number;
|
|
612
|
+
tax_base_iva: number;
|
|
613
|
+
tax_base_iva_rate_0: number;
|
|
614
|
+
tax_base_iva_exempt: number;
|
|
615
|
+
tax_base_iva_not_subject: number;
|
|
616
|
+
tax_base_irbpnr: number;
|
|
617
|
+
tax_base_ice: number;
|
|
618
|
+
tax_iva: number;
|
|
619
|
+
tax_irbpnr: number;
|
|
620
|
+
tax_ice: number;
|
|
621
|
+
export?: boolean;
|
|
622
|
+
export_data?: SaveBody.ExportData;
|
|
623
|
+
event_module_origin?: string;
|
|
624
|
+
collection_origin_name?: string;
|
|
625
|
+
collection_origin_id?: string;
|
|
626
|
+
document_origin_name?: string;
|
|
627
|
+
document_origin_number?: string;
|
|
628
|
+
document_origin_date?: number;
|
|
629
|
+
credit_SRI_payment_term_id?: string;
|
|
630
|
+
credit_SRI_payment_term_code?: string;
|
|
631
|
+
union_of_order_id?: string;
|
|
632
|
+
union_of_order_document_nomenclature?: string;
|
|
633
|
+
union_of_order_document_number?: string;
|
|
634
|
+
union_of_order_date?: number;
|
|
635
|
+
split_order_id?: string;
|
|
636
|
+
split_order_document_nomenclature?: string;
|
|
637
|
+
split_order_document_number?: string;
|
|
638
|
+
split_order_date?: number;
|
|
639
|
+
invoice_summary_article?: SaveBody.SummaryArticle[];
|
|
640
|
+
invoice_detail: SaveBody.Detail[];
|
|
641
|
+
invoice_tax: SaveBody.Tax[];
|
|
642
|
+
invoice_installment: SaveBody.Installment[];
|
|
643
|
+
invoice_payment_term?: SaveBody.PaymentTerm[];
|
|
644
|
+
additional_information?: SaveBody.AdditionaInformation[];
|
|
645
|
+
invoice_tax_declaration: SaveBody.TaxDeclaration[];
|
|
646
|
+
}
|
|
647
|
+
namespace SaveBody {
|
|
648
|
+
interface SummaryArticle {
|
|
649
|
+
code: string;
|
|
650
|
+
name: string;
|
|
651
|
+
amount: number;
|
|
652
|
+
sequence: string;
|
|
653
|
+
}
|
|
654
|
+
interface ExportData {
|
|
655
|
+
export_foreign_trade: string;
|
|
656
|
+
export_buyer_address: string;
|
|
657
|
+
export_country_origin_id: string;
|
|
658
|
+
export_country_origin_name: string;
|
|
659
|
+
export_country_origin_code: string;
|
|
660
|
+
export_origin_port: string;
|
|
661
|
+
export_country_destination_id: string;
|
|
662
|
+
export_country_destination_name: string;
|
|
663
|
+
export_country_destination_code: string;
|
|
664
|
+
export_destination_port: string;
|
|
665
|
+
export_incoterm_place: string;
|
|
666
|
+
export_incoterm_invoice_id: string;
|
|
667
|
+
export_incoterm_invoice_code: string;
|
|
668
|
+
export_incoterm_invoice_name: string;
|
|
669
|
+
export_incoterm_without_taxes_id: string;
|
|
670
|
+
export_incoterm_without_taxes_code: string;
|
|
671
|
+
export_incoterm_without_taxes_name: string;
|
|
672
|
+
export_international_freight: number;
|
|
673
|
+
export_international_insurance: number;
|
|
674
|
+
export_customs_expenditures: number;
|
|
675
|
+
export_transportation_expenses: number;
|
|
676
|
+
export_dae?: string;
|
|
677
|
+
export_mawb?: string;
|
|
678
|
+
export_forwarder?: string;
|
|
679
|
+
export_cr?: string;
|
|
680
|
+
}
|
|
681
|
+
interface Detail {
|
|
682
|
+
item_id: string;
|
|
683
|
+
category_id: string;
|
|
684
|
+
cost_center_id?: string;
|
|
685
|
+
price_list_id: string;
|
|
686
|
+
tax_iva_id: string;
|
|
687
|
+
tax_iva_code: string;
|
|
688
|
+
tax_irbpn_id?: string;
|
|
689
|
+
tax_ice_id?: string;
|
|
690
|
+
unit_measure_id?: string;
|
|
691
|
+
amount: number;
|
|
692
|
+
amount_free?: number;
|
|
693
|
+
sequence?: string;
|
|
694
|
+
price_base: number;
|
|
695
|
+
total_price: number;
|
|
696
|
+
discount_rate: number;
|
|
697
|
+
unit_discount: number;
|
|
698
|
+
total_discount: number;
|
|
699
|
+
commentary_item?: string | null;
|
|
700
|
+
replace_item_name?: string | null;
|
|
701
|
+
tax_iva_rate: number;
|
|
702
|
+
item_code: string;
|
|
703
|
+
item_barcode?: string;
|
|
704
|
+
item_name: string;
|
|
705
|
+
unit_measure_abbreviation?: string;
|
|
706
|
+
unit_measure_group_abbreviation?: string;
|
|
707
|
+
unit_measure_name?: string;
|
|
708
|
+
unit_measure_group_id?: string;
|
|
709
|
+
unit_measure_group_name?: string;
|
|
710
|
+
unit_measure_type?: string;
|
|
711
|
+
unit_measure_quantity?: number;
|
|
712
|
+
stock_afected?: number;
|
|
713
|
+
in_stock?: number;
|
|
714
|
+
manage_by?: string;
|
|
715
|
+
category_name: string;
|
|
716
|
+
cost_center_code?: string;
|
|
717
|
+
cost_center_name?: string;
|
|
718
|
+
cost_center_father_code?: string;
|
|
719
|
+
cost_center_father_name?: string;
|
|
720
|
+
price_list_name: string;
|
|
721
|
+
type: DetailType;
|
|
722
|
+
price_type?: CbmSalePriceModel.TName;
|
|
723
|
+
price_type_description?: string;
|
|
724
|
+
price_type_id?: string;
|
|
725
|
+
invoice_detail_tax: Detail.Tax[];
|
|
726
|
+
outsourcing_service_data?: Detail.OutsourcingServiceData;
|
|
727
|
+
}
|
|
728
|
+
interface TaxDeclaration {
|
|
729
|
+
configuration_id: string;
|
|
730
|
+
raw_code?: string;
|
|
731
|
+
net_code?: string;
|
|
732
|
+
tax_code?: string;
|
|
733
|
+
raw_value?: number;
|
|
734
|
+
net_value?: number;
|
|
735
|
+
tax_value?: number;
|
|
736
|
+
description: string;
|
|
737
|
+
}
|
|
738
|
+
interface AdditionaInformation {
|
|
739
|
+
description: string;
|
|
740
|
+
value?: string;
|
|
741
|
+
type: string;
|
|
742
|
+
}
|
|
743
|
+
namespace Detail {
|
|
744
|
+
interface OutsourcingServiceData {
|
|
745
|
+
outsourcing_service_movements_id: string;
|
|
746
|
+
code_outsourcing_service: string;
|
|
747
|
+
name_outsourcing_service: string;
|
|
748
|
+
date_purchase_receipt: number;
|
|
749
|
+
structured_document_number: string;
|
|
750
|
+
provider_document_number: string;
|
|
751
|
+
provider_business_name: string;
|
|
752
|
+
cost: number;
|
|
753
|
+
}
|
|
754
|
+
interface Tax {
|
|
755
|
+
type: string;
|
|
756
|
+
description: string;
|
|
757
|
+
tax_code: string;
|
|
758
|
+
tax_rate: number;
|
|
759
|
+
tax_base: number;
|
|
760
|
+
tax_value: number;
|
|
761
|
+
}
|
|
762
|
+
}
|
|
763
|
+
interface Tax {
|
|
764
|
+
type: string;
|
|
765
|
+
description: string;
|
|
766
|
+
tax_code: string;
|
|
767
|
+
tax_rate: number;
|
|
768
|
+
tax_base: number;
|
|
769
|
+
tax_value: number;
|
|
770
|
+
}
|
|
771
|
+
interface Installment {
|
|
772
|
+
installment: string;
|
|
773
|
+
date: number;
|
|
774
|
+
expired_in: number;
|
|
775
|
+
period: number;
|
|
776
|
+
credit: number;
|
|
777
|
+
}
|
|
778
|
+
interface PaymentTerm {
|
|
779
|
+
payment_term_id: string;
|
|
780
|
+
account_id?: string;
|
|
781
|
+
SRI_payment_term_id: string;
|
|
782
|
+
SRI_payment_term_code: string;
|
|
783
|
+
financial_bank_id?: string;
|
|
784
|
+
date: number;
|
|
785
|
+
value: number;
|
|
786
|
+
financial_bank_name?: string;
|
|
787
|
+
card_type?: string;
|
|
788
|
+
batch_code?: string;
|
|
789
|
+
account_name?: string;
|
|
790
|
+
account_code?: string;
|
|
791
|
+
bank_cheque?: string;
|
|
792
|
+
payment_term_code: string;
|
|
793
|
+
payment_term_name: string;
|
|
794
|
+
operation_number?: string;
|
|
795
|
+
}
|
|
796
|
+
}
|
|
797
|
+
interface DownloadExcelParams {
|
|
798
|
+
payment_term?: TPaymentTerm;
|
|
799
|
+
to_date?: number;
|
|
800
|
+
from_date?: number;
|
|
801
|
+
enabled?: boolean;
|
|
802
|
+
sequential?: string;
|
|
803
|
+
invoice_number?: string;
|
|
804
|
+
state?: string;
|
|
805
|
+
client_branch_id?: string;
|
|
806
|
+
client_id?: string;
|
|
807
|
+
export?: boolean;
|
|
808
|
+
invoice_type?: TInvoiceType;
|
|
809
|
+
reverse_status?: boolean;
|
|
810
|
+
}
|
|
811
|
+
interface ListLastMovementsParams {
|
|
812
|
+
page: number;
|
|
813
|
+
size: number;
|
|
814
|
+
client_id: string;
|
|
815
|
+
item_id: string;
|
|
816
|
+
}
|
|
817
|
+
interface ListLastMovementsResponse {
|
|
818
|
+
success: boolean;
|
|
819
|
+
pageNum: number;
|
|
820
|
+
pageSize: number;
|
|
821
|
+
pages: number;
|
|
822
|
+
total: number;
|
|
823
|
+
items: ListLastMovementsResponse.Item[];
|
|
824
|
+
totalAmount: ListLastMovementsResponse.TotalAmount;
|
|
825
|
+
}
|
|
826
|
+
namespace ListLastMovementsResponse {
|
|
827
|
+
interface TotalAmount {
|
|
828
|
+
_id: string;
|
|
829
|
+
sum_amount: number;
|
|
830
|
+
sum_price_base: number;
|
|
831
|
+
sum_total_price: number;
|
|
832
|
+
sum_discount_rate: number;
|
|
833
|
+
sum_unit_discount: number;
|
|
834
|
+
sum_total_discount: number;
|
|
835
|
+
}
|
|
836
|
+
interface Item {
|
|
837
|
+
_id: string;
|
|
838
|
+
collection_origin_name: string;
|
|
839
|
+
collection_origin_id: string;
|
|
840
|
+
company_id: string;
|
|
841
|
+
company_branch_id: string;
|
|
842
|
+
country_id: string;
|
|
843
|
+
item_id: string;
|
|
844
|
+
category_id: string;
|
|
845
|
+
cost_center_id: string;
|
|
846
|
+
price_list_id: string;
|
|
847
|
+
tax_iva_id: string;
|
|
848
|
+
unit_measure_id: string;
|
|
849
|
+
type: string;
|
|
850
|
+
manage_by: string;
|
|
851
|
+
amount: number;
|
|
852
|
+
price_base: number;
|
|
853
|
+
total_price: number;
|
|
854
|
+
discount_rate: number;
|
|
855
|
+
unit_discount: number;
|
|
856
|
+
total_discount: number;
|
|
857
|
+
commentary_item: null;
|
|
858
|
+
replace_item_name: null;
|
|
859
|
+
tax_iva_code: string;
|
|
860
|
+
tax_iva_rate: number;
|
|
861
|
+
item_code: string;
|
|
862
|
+
item_barcode: string;
|
|
863
|
+
item_name: string;
|
|
864
|
+
unit_measure_type: string;
|
|
865
|
+
unit_measure_abbreviation: string;
|
|
866
|
+
unit_measure_name: string;
|
|
867
|
+
unit_measure_quantity: number;
|
|
868
|
+
stock_afected: number;
|
|
869
|
+
category_name: string;
|
|
870
|
+
cost_center_code: string;
|
|
871
|
+
cost_center_name: string;
|
|
872
|
+
cost_center_father_code: string;
|
|
873
|
+
cost_center_father_name: string;
|
|
874
|
+
price_list_name: string;
|
|
875
|
+
price_type: string;
|
|
876
|
+
price_type_description: string;
|
|
877
|
+
price_type_id: string;
|
|
878
|
+
returned_items: number;
|
|
879
|
+
item_balance: number;
|
|
880
|
+
item_balance_referal_guide: number;
|
|
881
|
+
deleted: boolean;
|
|
882
|
+
created_at: number;
|
|
883
|
+
created_user: string;
|
|
884
|
+
document_nomenclature: string;
|
|
885
|
+
document_number: string;
|
|
886
|
+
document_branch_identification_number: string;
|
|
887
|
+
document_emission_point_number: string;
|
|
888
|
+
document_sequence: string;
|
|
889
|
+
client_document_code: string;
|
|
890
|
+
client_document_number: string;
|
|
891
|
+
client_trade_name: string;
|
|
892
|
+
client_business_name: string;
|
|
893
|
+
client_phone_code: string;
|
|
894
|
+
client_address: string;
|
|
895
|
+
client_cellphone: string;
|
|
896
|
+
client_email: string;
|
|
897
|
+
client_category_name: string;
|
|
898
|
+
}
|
|
899
|
+
}
|
|
900
|
+
interface ListWithoutRetentionParams {
|
|
901
|
+
page: number;
|
|
902
|
+
size: number;
|
|
903
|
+
client_id: string;
|
|
904
|
+
date_end?: number;
|
|
905
|
+
date_begin?: number;
|
|
906
|
+
invoice_number?: string;
|
|
907
|
+
payment_term?: string;
|
|
908
|
+
branch_emission_point_sequence?: string;
|
|
909
|
+
nomenclature_number?: string;
|
|
910
|
+
}
|
|
911
|
+
interface ListWithoutRetentionResponse {
|
|
912
|
+
success: boolean;
|
|
913
|
+
pageNum: number;
|
|
914
|
+
pageSize: number;
|
|
915
|
+
pages: number;
|
|
916
|
+
total: number;
|
|
917
|
+
items: ListWithoutRetentionResponse.Item[];
|
|
918
|
+
}
|
|
919
|
+
namespace ListWithoutRetentionResponse {
|
|
920
|
+
interface Item {
|
|
921
|
+
_id: string;
|
|
922
|
+
company_id: string;
|
|
923
|
+
company_branch_id: string;
|
|
924
|
+
client_id: string;
|
|
925
|
+
client_branch_id: string;
|
|
926
|
+
contact_id: string;
|
|
927
|
+
seller_id: string;
|
|
928
|
+
document_nomenclature: string;
|
|
929
|
+
document_number: string;
|
|
930
|
+
document_date: number;
|
|
931
|
+
SRI_state: string;
|
|
932
|
+
document_branch_identification_number: string;
|
|
933
|
+
document_emission_point_number: string;
|
|
934
|
+
document_sequence: string;
|
|
935
|
+
authorization_number: string;
|
|
936
|
+
payment_term: string;
|
|
937
|
+
tax_base: number;
|
|
938
|
+
discount: number;
|
|
939
|
+
service: number;
|
|
940
|
+
commentary: string;
|
|
941
|
+
tax_base_iva: number;
|
|
942
|
+
tax_base_iva_rate_0: number;
|
|
943
|
+
tax_base_iva_exempt: number;
|
|
944
|
+
tax_base_iva_not_subject: number;
|
|
945
|
+
tax_base_irbpnr: number;
|
|
946
|
+
rate_iva: number;
|
|
947
|
+
tax_base_ice: number;
|
|
948
|
+
tax_iva: number;
|
|
949
|
+
code_iva: string;
|
|
950
|
+
tax_irbpnr: number;
|
|
951
|
+
tax_ice: number;
|
|
952
|
+
total: number;
|
|
953
|
+
price_type: string;
|
|
954
|
+
export?: boolean;
|
|
955
|
+
company_NIF: string;
|
|
956
|
+
company_address: string;
|
|
957
|
+
company_trade_name: string;
|
|
958
|
+
company_business_name: string;
|
|
959
|
+
company_branch_identification_number: string;
|
|
960
|
+
company_branch_trade_name: string;
|
|
961
|
+
company_branch_logo: string;
|
|
962
|
+
company_branch_address: string;
|
|
963
|
+
company_branch_email: string;
|
|
964
|
+
company_branch_cellphone: string;
|
|
965
|
+
company_branch_phone: string;
|
|
966
|
+
client_document_number: string;
|
|
967
|
+
client_trade_name: string;
|
|
968
|
+
client_business_name: string;
|
|
969
|
+
client_phone_code: string;
|
|
970
|
+
client_address: string;
|
|
971
|
+
client_cellphone: string;
|
|
972
|
+
client_email: string;
|
|
973
|
+
client_branch_code: string;
|
|
974
|
+
client_branch_name: string;
|
|
975
|
+
client_branch_address: string;
|
|
976
|
+
client_branch_email: string;
|
|
977
|
+
client_branch_cellphone: string;
|
|
978
|
+
client_branch_phone: string;
|
|
979
|
+
client_branch_phone_code: string;
|
|
980
|
+
client_category_name: string;
|
|
981
|
+
client_province_id?: string;
|
|
982
|
+
client_canton_id?: string;
|
|
983
|
+
client_parish_id?: string;
|
|
984
|
+
client_province_code?: string;
|
|
985
|
+
client_province_name?: string;
|
|
986
|
+
client_canton_code?: string;
|
|
987
|
+
client_canton_name?: string;
|
|
988
|
+
client_parish_code?: string;
|
|
989
|
+
client_parish_name?: string;
|
|
990
|
+
contact_identification_number: string;
|
|
991
|
+
contact_full_name: string;
|
|
992
|
+
contact_phone_code: string;
|
|
993
|
+
contact_cellphone: string;
|
|
994
|
+
contact_email: string;
|
|
995
|
+
seller_identification_number: string;
|
|
996
|
+
seller_full_name: string;
|
|
997
|
+
seller_address: string;
|
|
998
|
+
seller_email: string[];
|
|
999
|
+
seller_cellphone: string;
|
|
1000
|
+
enabled: boolean;
|
|
1001
|
+
created_at: number;
|
|
1002
|
+
created_user: string;
|
|
1003
|
+
reverse_status: boolean;
|
|
1004
|
+
deleted_at: number;
|
|
1005
|
+
default_price_list_id?: string;
|
|
1006
|
+
default_price_list_name?: string;
|
|
1007
|
+
default_price_list_type?: string;
|
|
1008
|
+
default_cost_center_id?: string;
|
|
1009
|
+
default_cost_center_code?: string;
|
|
1010
|
+
default_cost_center_name?: string;
|
|
1011
|
+
default_cost_center_father_code?: string;
|
|
1012
|
+
default_cost_center_father_name?: string;
|
|
1013
|
+
default_warehouse_id: string;
|
|
1014
|
+
default_discount_rate: number;
|
|
1015
|
+
credit_management: Item.CreditManagement;
|
|
1016
|
+
}
|
|
1017
|
+
namespace Item {
|
|
1018
|
+
interface CreditManagement {
|
|
1019
|
+
_id: string;
|
|
1020
|
+
client_id: string;
|
|
1021
|
+
invoice_id: string;
|
|
1022
|
+
credit: number;
|
|
1023
|
+
debit: number;
|
|
1024
|
+
retention: number;
|
|
1025
|
+
return: number;
|
|
1026
|
+
balance: number;
|
|
1027
|
+
}
|
|
1028
|
+
}
|
|
1029
|
+
}
|
|
1030
|
+
interface SendEmailParams {
|
|
1031
|
+
timezone: string;
|
|
1032
|
+
locale: string;
|
|
1033
|
+
emails?: string;
|
|
1034
|
+
}
|
|
1035
|
+
interface ChangeStatusBody {
|
|
1036
|
+
enabled: boolean;
|
|
1037
|
+
disabled_reason?: string;
|
|
1038
|
+
}
|
|
1039
|
+
interface ConfirmResponse {
|
|
1040
|
+
success: boolean;
|
|
1041
|
+
message: string;
|
|
1042
|
+
data?: any;
|
|
1043
|
+
}
|
|
1044
|
+
interface DownloadIndividualPdfParams {
|
|
1045
|
+
timezone: string;
|
|
1046
|
+
locale: string;
|
|
1047
|
+
}
|
|
1048
|
+
interface DownloadIndividualExcelParams {
|
|
1049
|
+
timezone: string;
|
|
1050
|
+
locale: string;
|
|
1051
|
+
}
|
|
1052
|
+
interface CreateXmlParams {
|
|
1053
|
+
timezone: string;
|
|
1054
|
+
locale: string;
|
|
1055
|
+
}
|
|
1056
|
+
}
|