cardus 0.0.59 → 0.0.61
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.
|
@@ -30,7 +30,7 @@ const cookTempShipment = (_a) => __awaiter(void 0, [_a], void 0, function* ({ or
|
|
|
30
30
|
pais_salida: sellerAddress.nombre_pais,
|
|
31
31
|
tlf_salida: sellerAddress.telefono,
|
|
32
32
|
observaciones_salida: sellerAddress.observaciones,
|
|
33
|
-
contacto_salida: sellerAddress.nombre,
|
|
33
|
+
contacto_salida: (sellerAddress.nombre || '|').slice(0, 40),
|
|
34
34
|
mail_salida: sellerAddress.mail
|
|
35
35
|
});
|
|
36
36
|
const setUbicacionComprador = (order) => __awaiter(void 0, void 0, void 0, function* () {
|
|
@@ -58,8 +58,8 @@ const cookTempShipment = (_a) => __awaiter(void 0, [_a], void 0, function* ({ or
|
|
|
58
58
|
? order.nombreLLegada + ' ' + order.primerApellidoLLegada
|
|
59
59
|
: order.nombreLLegada,
|
|
60
60
|
contacto_llegada: order.primerApellidoLLegada
|
|
61
|
-
? order.nombreLLegada + ' ' + order.primerApellidoLLegada
|
|
62
|
-
: order.nombreLLegada,
|
|
61
|
+
? (order.nombreLLegada + ' ' + order.primerApellidoLLegada || '|').slice(0, 40)
|
|
62
|
+
: (order.nombreLLegada || '|').slice(0, 40),
|
|
63
63
|
direccion_llegada: order.direccionLLegada2
|
|
64
64
|
? order.direccionLLegada1 + ' ' + order.direccionLLegada2
|
|
65
65
|
: order.direccionLLegada1,
|
|
@@ -109,6 +109,9 @@ const cookTempShipment = (_a) => __awaiter(void 0, [_a], void 0, function* ({ or
|
|
|
109
109
|
const setReferenciaCliente = (order) => ({
|
|
110
110
|
referencia_cliente: order.referenciaCliente || null
|
|
111
111
|
});
|
|
112
|
+
const setDatosAdicionales = (order) => ({
|
|
113
|
+
datos_adicionales: order.etiquetaExtraInfo || null
|
|
114
|
+
});
|
|
112
115
|
const setters = [
|
|
113
116
|
setDatosVendedor,
|
|
114
117
|
setDatosComprador,
|
|
@@ -116,7 +119,8 @@ const cookTempShipment = (_a) => __awaiter(void 0, [_a], void 0, function* ({ or
|
|
|
116
119
|
setReembolso,
|
|
117
120
|
setFechas,
|
|
118
121
|
setBultos,
|
|
119
|
-
setReferenciaCliente
|
|
122
|
+
setReferenciaCliente,
|
|
123
|
+
setDatosAdicionales
|
|
120
124
|
];
|
|
121
125
|
const dataInsert = (yield setters.reduce((acc, curr) => __awaiter(void 0, void 0, void 0, function* () {
|
|
122
126
|
const accumulated = yield acc;
|
|
@@ -50,7 +50,7 @@ export const cookTempShipment = async ({
|
|
|
50
50
|
pais_salida: sellerAddress.nombre_pais,
|
|
51
51
|
tlf_salida: sellerAddress.telefono,
|
|
52
52
|
observaciones_salida: sellerAddress.observaciones,
|
|
53
|
-
contacto_salida: sellerAddress.nombre,
|
|
53
|
+
contacto_salida: (sellerAddress.nombre || '|').slice(0, 40),
|
|
54
54
|
mail_salida: sellerAddress.mail
|
|
55
55
|
});
|
|
56
56
|
|
|
@@ -97,8 +97,11 @@ export const cookTempShipment = async ({
|
|
|
97
97
|
: order.nombreLLegada,
|
|
98
98
|
|
|
99
99
|
contacto_llegada: order.primerApellidoLLegada
|
|
100
|
-
? order.nombreLLegada + ' ' + order.primerApellidoLLegada
|
|
101
|
-
|
|
100
|
+
? (order.nombreLLegada + ' ' + order.primerApellidoLLegada || '|').slice(
|
|
101
|
+
0,
|
|
102
|
+
40
|
|
103
|
+
)
|
|
104
|
+
: (order.nombreLLegada || '|').slice(0, 40),
|
|
102
105
|
|
|
103
106
|
direccion_llegada: order.direccionLLegada2
|
|
104
107
|
? order.direccionLLegada1 + ' ' + order.direccionLLegada2
|
|
@@ -158,6 +161,10 @@ export const cookTempShipment = async ({
|
|
|
158
161
|
referencia_cliente: order.referenciaCliente || null
|
|
159
162
|
});
|
|
160
163
|
|
|
164
|
+
const setDatosAdicionales = (order: ModifiedOrder) => ({
|
|
165
|
+
datos_adicionales: order.etiquetaExtraInfo || null
|
|
166
|
+
});
|
|
167
|
+
|
|
161
168
|
const setters = [
|
|
162
169
|
setDatosVendedor,
|
|
163
170
|
setDatosComprador,
|
|
@@ -165,7 +172,8 @@ export const cookTempShipment = async ({
|
|
|
165
172
|
setReembolso,
|
|
166
173
|
setFechas,
|
|
167
174
|
setBultos,
|
|
168
|
-
setReferenciaCliente
|
|
175
|
+
setReferenciaCliente,
|
|
176
|
+
setDatosAdicionales
|
|
169
177
|
];
|
|
170
178
|
|
|
171
179
|
const dataInsert = (await setters.reduce(async (acc, curr) => {
|
package/package.json
CHANGED
package/types/index.ts
CHANGED