sysone-api-mapper 1.0.78 → 1.0.80

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.78",
3
+ "version": "1.0.80",
4
4
  "description": "Paquete mapper para portal de productores",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -680,6 +680,33 @@ const requestModule = {
680
680
  }
681
681
  },
682
682
 
683
+ GET_REQUEST_REPORT: {
684
+ default: {
685
+ url: '{0}/v1/policies/{1}/certificate',
686
+ method: methods.GET,
687
+ requestMapper: (request) => ({
688
+ mappedParams: request,
689
+ headers: {
690
+ "Content-Type": "application/pdf",
691
+ },
692
+ responseType: "arraybuffer"
693
+ }),
694
+ responseMapper: (response) => response
695
+ },
696
+ cnp: {
697
+ url: '/request/v1/request/savings/{0}/report',
698
+ method: methods.GET,
699
+ requestMapper: (request) => ({
700
+ mappedParams: request,
701
+ headers: {
702
+ "Content-Type": "application/pdf",
703
+ },
704
+ responseType: "arraybuffer"
705
+ }),
706
+ responseMapper: (response) => response
707
+ }
708
+ },
709
+
683
710
  POST_SEND_REQUEST: {
684
711
  cnp: {
685
712
  url: '/request/v1/request/savings',