sysone-api-mapper 1.0.36 → 1.0.38
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
|
1
|
+
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
package/package.json
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
|
|
|
@@ -33,6 +33,39 @@ export const tenantsConfig = {
|
|
|
33
33
|
|
|
34
34
|
//------------ PARTY ---------------------------
|
|
35
35
|
|
|
36
|
+
GET_CURRENCIES: {
|
|
37
|
+
default: {
|
|
38
|
+
url: 'finance/v1/currencies',
|
|
39
|
+
method: methods.GET,
|
|
40
|
+
requestMapper: (request) => ({ mappedParams: request }),
|
|
41
|
+
responseMapper: (response) => response,
|
|
42
|
+
},
|
|
43
|
+
cnp: {
|
|
44
|
+
url: 'party/v1/currencies',
|
|
45
|
+
method: methods.GET,
|
|
46
|
+
source: "https://developers-test.cnp.com.ar/api-details#api=party-api&operation=get-v1-currencies",
|
|
47
|
+
requestMapper: request => ({ mappedParams: request }),
|
|
48
|
+
responseMapper: (response) => response,
|
|
49
|
+
},
|
|
50
|
+
},
|
|
51
|
+
GET_COVERAGES: {
|
|
52
|
+
cnp: {
|
|
53
|
+
url: 'party/v1/products/{0}/coverages',
|
|
54
|
+
method: methods.GET,
|
|
55
|
+
source: "https://developers-test.cnp.com.ar/api-details#api=party-api&operation=get-v1-products-code-coverages-currencycode-currencycode-smoker-smoker",
|
|
56
|
+
requestMapper: request => ({ mappedParams: request }),
|
|
57
|
+
responseMapper: (response) => response,
|
|
58
|
+
},
|
|
59
|
+
},
|
|
60
|
+
GET_DISTRIBUTION_LIMITS: {
|
|
61
|
+
cnp: {
|
|
62
|
+
url: 'party/v1/products/{0}/savings-distribution',
|
|
63
|
+
method: methods.GET,
|
|
64
|
+
source: "https://developers-test.cnp.com.ar/api-details#api=party-api&operation=get-v1-products-code-coverages-currencycode-currencycode-smoker-smoker",
|
|
65
|
+
requestMapper: request => ({ mappedParams: request }),
|
|
66
|
+
responseMapper: (response) => response,
|
|
67
|
+
},
|
|
68
|
+
},
|
|
36
69
|
GET_IDENTIFICATION_TYPES: {
|
|
37
70
|
default: {
|
|
38
71
|
url: 'party/v1/identification-types',
|
|
@@ -137,7 +170,7 @@ export const tenantsConfig = {
|
|
|
137
170
|
url: 'party/v1/subsections/{0}/products',
|
|
138
171
|
method: methods.GET,
|
|
139
172
|
source: "https://developers-test.cnp.com.ar/api-details#api=party-api&operation=get-v1-subsections-code-products",
|
|
140
|
-
requestMapper: request => ({ mappedParams: request }),
|
|
173
|
+
requestMapper: request => ({ mappedParams: getProductsBySubsections_Request(request) }),
|
|
141
174
|
responseMapper: (response) => getProductsBySubsections(response),
|
|
142
175
|
},
|
|
143
176
|
},
|