cardus 0.0.75 → 0.0.77
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.
|
@@ -53,6 +53,7 @@ const cookTempShipment = (_a) => __awaiter(void 0, [_a], void 0, function* ({ or
|
|
|
53
53
|
return compradorLocation;
|
|
54
54
|
});
|
|
55
55
|
const setDatosComprador = (order) => __awaiter(void 0, void 0, void 0, function* () {
|
|
56
|
+
var _b;
|
|
56
57
|
return ({
|
|
57
58
|
nom_ape_llegada: order.primerApellidoLLegada
|
|
58
59
|
? order.nombreLLegada + ' ' + order.primerApellidoLLegada
|
|
@@ -65,7 +66,7 @@ const cookTempShipment = (_a) => __awaiter(void 0, [_a], void 0, function* ({ or
|
|
|
65
66
|
: order.direccionLLegada1,
|
|
66
67
|
cod_pos_llegada: order.codigoPostalLLegada,
|
|
67
68
|
poblacion_llegada: order.ciudadLLegada,
|
|
68
|
-
tlf_llegada: order.telefonoLLegada || 'no informado',
|
|
69
|
+
tlf_llegada: ((_b = order.telefonoLLegada) === null || _b === void 0 ? void 0 : _b.replace(/[^0-9+()]/g, '')) || 'no informado',
|
|
69
70
|
mail_llegada: order.emailLLegada || 'no informado',
|
|
70
71
|
dni_destinatario: (order === null || order === void 0 ? void 0 : order.numeroIdentificacionLLegada) || null,
|
|
71
72
|
observaciones_llegada: order === null || order === void 0 ? void 0 : order.observacionesLLegada
|
|
@@ -112,7 +113,8 @@ const cookTempShipment = (_a) => __awaiter(void 0, [_a], void 0, function* ({ or
|
|
|
112
113
|
referencia_cliente: order.referenciaCliente || null
|
|
113
114
|
});
|
|
114
115
|
const setDatosAdicionales = (order) => ({
|
|
115
|
-
datos_adicionales: order.etiquetaExtraInfo || null
|
|
116
|
+
datos_adicionales: order.etiquetaExtraInfo || null,
|
|
117
|
+
observaciones: order.observaciones || ''
|
|
116
118
|
});
|
|
117
119
|
const setters = [
|
|
118
120
|
setDatosVendedor,
|
|
@@ -109,7 +109,8 @@ export const cookTempShipment = async ({
|
|
|
109
109
|
|
|
110
110
|
cod_pos_llegada: order.codigoPostalLLegada,
|
|
111
111
|
poblacion_llegada: order.ciudadLLegada,
|
|
112
|
-
tlf_llegada:
|
|
112
|
+
tlf_llegada:
|
|
113
|
+
order.telefonoLLegada?.replace(/[^0-9+()]/g, '') || 'no informado',
|
|
113
114
|
mail_llegada: order.emailLLegada || 'no informado',
|
|
114
115
|
dni_destinatario: order?.numeroIdentificacionLLegada || null,
|
|
115
116
|
observaciones_llegada: order?.observacionesLLegada
|
|
@@ -164,7 +165,8 @@ export const cookTempShipment = async ({
|
|
|
164
165
|
});
|
|
165
166
|
|
|
166
167
|
const setDatosAdicionales = (order: ModifiedOrder) => ({
|
|
167
|
-
datos_adicionales: order.etiquetaExtraInfo || null
|
|
168
|
+
datos_adicionales: order.etiquetaExtraInfo || null,
|
|
169
|
+
observaciones: order.observaciones || ''
|
|
168
170
|
});
|
|
169
171
|
|
|
170
172
|
const setters = [
|
package/package.json
CHANGED
package/types/index.ts
CHANGED