cardus 0.0.59 → 0.0.60

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.
@@ -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;
@@ -158,6 +158,10 @@ export const cookTempShipment = async ({
158
158
  referencia_cliente: order.referenciaCliente || null
159
159
  });
160
160
 
161
+ const setDatosAdicionales = (order: ModifiedOrder) => ({
162
+ datos_adicionales: order.etiquetaExtraInfo || null
163
+ });
164
+
161
165
  const setters = [
162
166
  setDatosVendedor,
163
167
  setDatosComprador,
@@ -165,7 +169,8 @@ export const cookTempShipment = async ({
165
169
  setReembolso,
166
170
  setFechas,
167
171
  setBultos,
168
- setReferenciaCliente
172
+ setReferenciaCliente,
173
+ setDatosAdicionales
169
174
  ];
170
175
 
171
176
  const dataInsert = (await setters.reduce(async (acc, curr) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cardus",
3
- "version": "0.0.59",
3
+ "version": "0.0.60",
4
4
  "description": "an integration manager",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
package/types/index.ts CHANGED
@@ -119,6 +119,7 @@ export type ModifiedOrder = {
119
119
  idCarrier?: number | null;
120
120
  agenciaEnvioIntegracion: string | null;
121
121
  referenciaCliente?: string;
122
+ etiquetaExtraInfo?: string;
122
123
  };
123
124
 
124
125
  export interface ModifiedOrderExtended extends ModifiedOrder {