sysone-api-mapper 1.0.35 → 1.0.37
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
package/src/mapper/Mapper.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// import { methods } from "./mapper";
|
|
2
2
|
import { getClaims_CNP } from "./modules/claim";
|
|
3
3
|
import { getModules, getModules_Request } from "./modules/general";
|
|
4
|
-
import { getCountries, getIdentificationTypes, getMaritalStatuses, getProvinces } from "./modules/party";
|
|
4
|
+
import { getCountries, getIdentificationTypes, getMaritalStatuses, getProductsBySubsections_Request, getProvinces } from "./modules/party";
|
|
5
5
|
import { getEndorsements_CNP, getEndorsements_Request, getInsureds_CNP, getInsureds_CNP_Request, getPolicies_CNP, getPolicies_CNP_Request, getPolicyCollectiveDetail_CNP, getPolicyCollectiveDetail_Request, getPolicyDetail_CNP, getPolicyIndividualDetail_Request, postInsureds_CNP } from "./modules/policy";
|
|
6
6
|
import { getActivityList, getPaymentFrecuencies, getProductsBySubsections, getQuotationByCode, getQuotationByCode_Request, getQuotations_Request, getQuotationsList, quotationStandardPlanCreationMapped, quotationVariablePlanCreationMapped } from "./modules/quotation";
|
|
7
7
|
|
|
@@ -127,9 +127,9 @@ export const tenantsConfig = {
|
|
|
127
127
|
},
|
|
128
128
|
GET_PRODUCTS_BY_SUBSECTIONS: {
|
|
129
129
|
default: {
|
|
130
|
-
url: 'product/v1/
|
|
130
|
+
url: 'product/v1/products',
|
|
131
131
|
method: methods.GET,
|
|
132
|
-
source: 'https://apidoc.sysone.com/product/v1/open-api.html#/paths/~1v1~
|
|
132
|
+
source: 'https://apidoc.sysone.com/product/v1/open-api.html#/paths/~1v1~1products/get',
|
|
133
133
|
requestMapper: (request) => ({ mappedParams: request }),
|
|
134
134
|
responseMapper: (response) => response,
|
|
135
135
|
},
|
|
@@ -137,7 +137,7 @@ export const tenantsConfig = {
|
|
|
137
137
|
url: 'party/v1/subsections/{0}/products',
|
|
138
138
|
method: methods.GET,
|
|
139
139
|
source: "https://developers-test.cnp.com.ar/api-details#api=party-api&operation=get-v1-subsections-code-products",
|
|
140
|
-
requestMapper: request => ({ mappedParams: request }),
|
|
140
|
+
requestMapper: request => ({ mappedParams: getProductsBySubsections_Request(request) }),
|
|
141
141
|
responseMapper: (response) => getProductsBySubsections(response),
|
|
142
142
|
},
|
|
143
143
|
},
|