cardus 0.0.74 → 0.0.75

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/index.js CHANGED
@@ -219,9 +219,11 @@ class IntegrationManager {
219
219
  id_envio: detail.id_envio,
220
220
  id_usuario: idUsuario,
221
221
  contenido: detail.bulto.nombre_producto,
222
- valor: detail.bulto.valor || getRandomContentValue(),
222
+ valor: detail.bulto.precio_producto
223
+ ? parseFloat(detail.bulto.precio_producto)
224
+ : getRandomContentValue(),
223
225
  dni: user.dni,
224
- taric,
226
+ taric: detail.bulto.hs_code || taric,
225
227
  eori_importacion: user.eori_import,
226
228
  eori_exportacion: user.eori_export,
227
229
  peso_bruto: detail.bulto.peso,
package/index.ts CHANGED
@@ -309,9 +309,11 @@ export class IntegrationManager {
309
309
  id_envio: detail.id_envio,
310
310
  id_usuario: idUsuario,
311
311
  contenido: detail.bulto.nombre_producto,
312
- valor: detail.bulto.valor || getRandomContentValue(),
312
+ valor: detail.bulto.precio_producto
313
+ ? parseFloat(detail.bulto.precio_producto)
314
+ : getRandomContentValue(),
313
315
  dni: user.dni,
314
- taric,
316
+ taric: detail.bulto.hs_code || taric,
315
317
  eori_importacion: user.eori_import,
316
318
  eori_exportacion: user.eori_export,
317
319
  peso_bruto: detail.bulto.peso,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cardus",
3
- "version": "0.0.74",
3
+ "version": "0.0.75",
4
4
  "description": "an integration manager",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
package/types/index.ts CHANGED
@@ -92,6 +92,8 @@ export type Bulto = {
92
92
  url_imagen: string | null;
93
93
  nombre_producto: string | null;
94
94
  valor?: number;
95
+ precio_producto: string | null;
96
+ hs_code: string | null;
95
97
  };
96
98
  cantidad: number;
97
99
  forzarAgrupamientoDeLinea: boolean;