sysone-api-mapper 1.0.82 → 1.0.83
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
|
@@ -594,7 +594,12 @@ const quotationModule = {
|
|
|
594
594
|
},
|
|
595
595
|
responseType: "arraybuffer"
|
|
596
596
|
}),
|
|
597
|
-
responseMapper: (response) =>
|
|
597
|
+
responseMapper: (response) => {
|
|
598
|
+
if (response instanceof ArrayBuffer) {
|
|
599
|
+
return response;
|
|
600
|
+
}
|
|
601
|
+
return response;
|
|
602
|
+
}
|
|
598
603
|
},
|
|
599
604
|
cnp: {
|
|
600
605
|
url: '/quotation/v1/quotations/{0}/report',
|
|
@@ -602,9 +607,8 @@ const quotationModule = {
|
|
|
602
607
|
requestMapper: (request) => ({
|
|
603
608
|
mappedParams: request,
|
|
604
609
|
headers: {
|
|
605
|
-
"Content-Type": "application/
|
|
610
|
+
"Content-Type": "application/json", // CNP devuelve JSON con base64
|
|
606
611
|
},
|
|
607
|
-
responseType: "arraybuffer"
|
|
608
612
|
}),
|
|
609
613
|
responseMapper: (response) => response
|
|
610
614
|
}
|