sysone-api-mapper 1.0.62 → 1.0.64

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sysone-api-mapper",
3
- "version": "1.0.62",
3
+ "version": "1.0.64",
4
4
  "description": "Paquete mapper para portal de productores",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -42,6 +42,7 @@ export const getQuotationsList = async (response) => {
42
42
 
43
43
  export const getQuotationDetail = async (res) => {
44
44
  const quotation = {
45
+ areaCode: res?.areaCode || null,
45
46
  code: res?.code || null,
46
47
  commercialStructure: {
47
48
  data: {
@@ -170,11 +171,10 @@ export const getQuotationDetail = async (res) => {
170
171
  },
171
172
  birthdate: risk?.data?.birthdate || null,
172
173
  savings: risk?.data?.savings || null,
173
- identification: risk?.data?.identification || null,
174
- firstName: risk?.data?.firstName || null,
175
- lastName: risk?.data?.lastName || null,
176
- birthdate: risk?.data?.birthdate || null,
177
- spouse: risk?.data?.spouse || null,
174
+ identification: risk?.data?.identification ?? null,
175
+ firstName: risk?.data?.firstName ?? null,
176
+ lastName: risk?.data?.lastName ?? null,
177
+ spouse: risk?.data?.spouse ?? null,
178
178
  values: risk?.data?.values || null
179
179
  },
180
180
  groupedEconomicValues: []