sysone-api-mapper 1.0.184 → 1.0.186

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,1105 +1,1114 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.tenantsConfig = exports.methods = void 0;
4
- // Import modules organized by functionality
5
- const billing_1 = require("./modules/billing");
6
- const claim_1 = require("./modules/claim");
7
- const general_1 = require("./modules/general");
8
- const party_1 = require("./modules/party");
9
- const policy_1 = require("./modules/policy");
10
- const quotation_1 = require("./modules/quotation");
11
- const request_1 = require("./modules/request");
12
- exports.methods = {
13
- GET: "GET",
14
- POST: "POST",
15
- PUT: "PUT",
16
- DELETE: "DELETE",
17
- };
18
- // ============================================================================
19
- // CONFIGURATION MODULE
20
- // ============================================================================
21
- const configurationModule = {
22
- GET_MODULES: {
23
- default: {
24
- url: 'ui-configuration/v1/platforms/link-one/modules',
25
- method: exports.methods.GET,
26
- requestMapper: (request) => ({ mappedParams: request }),
27
- responseMapper: (response) => response.data,
28
- },
29
- cnp: {
30
- url: 'ui-configuration/v1/modules',
31
- method: exports.methods.GET,
32
- requestMapper: request => ({ mappedParams: (0, general_1.getModules_Request)(request) }),
33
- responseMapper: (response) => response.data,
34
- },
35
- },
36
- GET_POWERBI_TOKEN: {
37
- cnp: {
38
- url: 'ui-configuration/v1/embedded-reports',
39
- method: exports.methods.GET,
40
- requestMapper: request => ({ mappedParams: request }),
41
- responseMapper: (response) => response.data,
42
- },
43
- }
44
- };
45
- // ============================================================================
46
- // BILLING MODULE
47
- // ============================================================================
48
- const billingModule = {
49
- GET_BILLINGS: {
50
- default: {
51
- url: 'billing/v1/billing',
52
- method: exports.methods.GET,
53
- requestMapper: (request) => ({ mappedParams: request }),
54
- responseMapper: (response) => response.data,
55
- },
56
- cnp: {
57
- url: 'policy/v1/policy/{0}/{1}/payments',
58
- method: exports.methods.GET,
59
- requestMapper: request => ({ mappedParams: (0, billing_1.getBillingsParams)(request) }),
60
- responseMapper: (response) => (0, billing_1.getBillingsResponse)(response.data),
61
- },
62
- },
63
- GET_POLICY_COLLECTIONS: {
64
- default: {
65
- url: '/collection/v1/collections',
66
- method: exports.methods.GET,
67
- requestMapper: (request) => ({ mappedParams: request }),
68
- responseMapper: (response) => response.data,
69
- },
70
- cnp: {
71
- url: 'policy/v1/policy/{0}/{1}/payments',
72
- method: exports.methods.GET,
73
- requestMapper: request => ({ mappedParams: (0, billing_1.getBillingsParams)(request) }),
74
- responseMapper: (response) => (0, billing_1.getCollecionsResponse)(response.data),
75
- },
76
- },
77
- GET_DEBTORS: {
78
- default: {
79
- url: 'billing/v1/billing',
80
- method: exports.methods.GET,
81
- requestMapper: (request) => ({ mappedParams: request }),
82
- responseMapper: (response) => response.data,
83
- },
84
- cnp: {
85
- url: 'policy/v1/policy/{0}/{1}/payments',
86
- method: exports.methods.GET,
87
- requestMapper: request => ({ mappedParams: (0, billing_1.getBillingsParams)(request) }),
88
- responseMapper: (response) => (0, billing_1.getDebtorsResponse)(response.data),
89
- },
90
- },
91
- GET_BILLING_TYPE: {
92
- default: {
93
- url: 'billing/v1/billing-types',
94
- method: exports.methods.GET,
95
- requestMapper: (request) => ({ mappedParams: request }),
96
- responseMapper: (response) => response.data,
97
- },
98
- cnp: {
99
- url: 'party/v1/genders',
100
- method: exports.methods.GET,
101
- requestMapper: request => ({ mappedParams: request }),
102
- responseMapper: (response) => (0, billing_1.getBillingTypeResponse)(response.data),
103
- },
104
- },
105
- BILLING_GET_BY_CODE: {
106
- default: {
107
- url: 'billing/v1/billing/{0}',
108
- method: exports.methods.GET,
109
- requestMapper: (request) => ({ mappedParams: request }),
110
- responseMapper: (response) => response.data,
111
- },
112
- },
113
- GET_BILLING_REPORT: {
114
- default: {
115
- url: 'billing/v1/billing/{0}/report',
116
- method: exports.methods.GET,
117
- requestMapper: (request) => ({
118
- mappedParams: request,
119
- responseType: "arraybuffer",
120
- }),
121
- responseMapper: (response) => response
122
- },
123
- },
124
- GET_BILLING_PAYMENT_STATUS: {
125
- default: {
126
- url: 'billing/v1/billing-payment-status',
127
- method: exports.methods.GET,
128
- requestMapper: (request) => ({ mappedParams: request }),
129
- responseMapper: (response) => response.data,
130
- },
131
- }
132
- };
133
- // ============================================================================
134
- // INTERMEDIARY MODULE
135
- // ============================================================================
136
- const intermediaryModule = {
137
- GET_INTERMEDIARY_STRUCTURE: {
138
- default: {
139
- url: 'intermediary/v1/intermediary/{0}/commercial-structures',
140
- method: exports.methods.GET,
141
- requestMapper: (request) => ({ mappedParams: request }),
142
- responseMapper: (response) => response.data,
143
- },
144
- },
145
- GET_INTERMEDIARY_BY_CODE: {
146
- default: {
147
- url: 'intermediary/v1/intermediary/{0}',
148
- method: exports.methods.GET,
149
- requestMapper: (request) => ({ mappedParams: request }),
150
- responseMapper: (response) => response.data,
151
- }
152
- },
153
- GET_COMMERCIAL_STRUCTURE: {
154
- default: {
155
- url: 'intermediary/v1/commercial-structures',
156
- method: exports.methods.GET,
157
- requestMapper: (request) => ({ mappedParams: request }),
158
- responseMapper: (response) => response.data,
159
- }
160
- }
161
- };
162
- // ============================================================================
163
- // PARTY MODULE
164
- // ============================================================================
165
- const partyModule = {
166
- GET_INDIVIDUAL_DETAILS: {
167
- default: {
168
- url: 'party/v1/individuals/{0}',
169
- method: exports.methods.GET,
170
- source: 'https://apidoc.sysone.com/party/v1/open-api.html#/paths/~1v1~1individuals~1%7Bcode%7D/get',
171
- requestMapper: (request) => ({ mappedParams: request }),
172
- responseMapper: (response) => response.data,
173
- },
174
- },
175
- GET_ORGANISATION_DETAILS: {
176
- default: {
177
- url: 'party/v1/organisations/{0}',
178
- method: exports.methods.GET,
179
- source: 'https://apidoc.sysone.com/party/v1/open-api.html#/paths/~1v1~1organisations~1%7Bcode%7D/get',
180
- requestMapper: (request) => ({ mappedParams: request }),
181
- responseMapper: (response) => response.data,
182
- },
183
- },
184
- GET_CURRENCIES: {
185
- default: {
186
- url: 'finance/v1/currencies',
187
- method: exports.methods.GET,
188
- requestMapper: (request) => ({ mappedParams: request }),
189
- responseMapper: (response) => response.data,
190
- },
191
- cnp: {
192
- url: 'party/v1/currencies',
193
- method: exports.methods.GET,
194
- source: "https://developers-test.cnp.com.ar/api-details#api=party-api&operation=get-v1-currencies",
195
- requestMapper: request => ({ mappedParams: request }),
196
- responseMapper: (response) => response.data,
197
- },
198
- },
199
- GET_GENDERS: {
200
- default: {
201
- url: 'party/v1/genders',
202
- method: exports.methods.GET,
203
- source: 'https://apidoc.sysone.com/party/v1/open-api.html#/paths/~1v1~1genders/get',
204
- requestMapper: (request) => ({ mappedParams: request }),
205
- responseMapper: (response) => response.data,
206
- },
207
- cnp: {
208
- url: 'party/v1/genders',
209
- method: exports.methods.GET,
210
- requestMapper: request => ({ mappedParams: request }),
211
- responseMapper: (response) => (0, party_1.getGenders)(response.data),
212
- },
213
- },
214
- GET_PARTY_STATUS: {
215
- default: {
216
- url: 'party/v1/parties/{0}/status',
217
- method: exports.methods.GET,
218
- source: 'https://apidoc.sysone.com/party/v1/open-api.html#/paths/~1v1~1parties~1%7Bcode%7D~1status/get',
219
- requestMapper: (request) => ({ mappedParams: request }),
220
- responseMapper: (response) => response.data,
221
- },
222
- },
223
- GET_IDENTIFICATION_TYPES: {
224
- default: {
225
- url: 'party/v1/identification-types?party-type-code={0}&country-code={1}',
226
- method: exports.methods.GET,
227
- source: 'https://apidoc.sysone.com/party/v1/open-api.html#/paths/~1v1~1identification-types/get',
228
- requestMapper: (request) => ({ mappedParams: request }),
229
- responseMapper: (response) => response.data,
230
- },
231
- cnp: {
232
- url: 'party/v1/identification-types',
233
- method: exports.methods.GET,
234
- source: "https://developers-test.cnp.com.ar/api-details#api=party-api&operation=get-v1-identification-types",
235
- requestMapper: request => ({ mappedParams: request }),
236
- responseMapper: (response) => (0, party_1.getIdentificationTypes)(response.data),
237
- },
238
- },
239
- GET_PAYMENT_METHODS_BY_PARTY_CODE: {
240
- default: {
241
- url: 'party/v1/parties/{0}/payment-methods',
242
- method: exports.methods.GET,
243
- source: 'https://apidoc.sysone.com/party/v1/open-api.html#/paths/~1v1~1parties~1%7Bcode%7D~1payment-methods/get',
244
- requestMapper: (request) => ({ mappedParams: request }),
245
- responseMapper: (response) => response.data,
246
- },
247
- },
248
- PUT_PAYMENT_METHODS_BY_PARTY_CODE: {
249
- default: {
250
- url: 'party/v1/parties/{0}/payment-methods',
251
- method: exports.methods.PUT,
252
- source: 'https://apidoc.sysone.com/party/v1/open-api.html#/paths/~1v1~1parties~1%7Bcode%7D~1payment-methods/put',
253
- requestMapper: (request) => ({
254
- mappedParams: null,
255
- mappedBody: request,
256
- }),
257
- responseMapper: (response) => response.data,
258
- },
259
- },
260
- PUT_PERSON: {
261
- default: {
262
- url: 'party/v1/individuals/{0}',
263
- method: exports.methods.PUT,
264
- source: 'https://apidoc.sysone.com/party/v1/open-api.html#/paths/~1v1~1individuals~1%7Bcode%7D/put',
265
- requestMapper: (request) => ({
266
- mappedParams: null,
267
- mappedBody: request,
268
- }),
269
- responseMapper: (response) => response.data,
270
- },
271
- },
272
- GET_COUNTRIES: {
273
- default: {
274
- url: 'location/v1/countries',
275
- method: exports.methods.GET,
276
- source: 'https://apidoc.sysone.com/location/v1/open-api.html#/paths/~1v1~1countries/get',
277
- requestMapper: (request) => ({ mappedParams: request }),
278
- responseMapper: (response) => response.data,
279
- },
280
- cnp: {
281
- url: 'party/v1/countries',
282
- method: exports.methods.GET,
283
- source: "https://developers-test.cnp.com.ar/api-details#api=party-api&operation=get-v1-countries",
284
- requestMapper: request => ({ mappedParams: request }),
285
- responseMapper: (response) => (0, party_1.getCountries)(response.data),
286
- },
287
- },
288
- GET_PROVINCES: {
289
- default: {
290
- url: 'location/v1/countries/{0}/provinces',
291
- method: exports.methods.GET,
292
- source: 'https://apidoc.sysone.com/location/v1/open-api.html#/paths/~1v1~1countries/get',
293
- requestMapper: (request) => ({ mappedParams: request }),
294
- responseMapper: (response) => response.data,
295
- },
296
- cnp: {
297
- url: 'party/v1/countries/{0}/provinces',
298
- method: exports.methods.GET,
299
- source: "https://developers-test.cnp.com.ar/api-details#api=party-api&operation=get-v1-countries",
300
- requestMapper: request => ({ mappedParams: request }),
301
- responseMapper: (response) => (0, party_1.getProvinces)(response.data),
302
- },
303
- },
304
- GET_CITIES: {
305
- default: {
306
- url: 'location/v1/provinces/{0}/cities',
307
- method: exports.methods.GET,
308
- source: 'https://apidoc.sysone.com/location/v1/open-api.html#/paths/~1v1~1provinces~1%7Bcode%7D~1cities/get',
309
- requestMapper: (request) => ({ mappedParams: request }),
310
- responseMapper: (response) => response.data,
311
- },
312
- },
313
- GET_POSTAL_CODES: {
314
- default: {
315
- url: 'location/v1/cities/{0}/postal-codes',
316
- method: exports.methods.GET,
317
- source: 'https://apidoc.sysone.com/location/v1/open-api.html#/paths/~1v1~1cities~1%7Bcode%7D~1postal-codes/get',
318
- requestMapper: (request) => ({ mappedParams: request }),
319
- responseMapper: (response) => response.data,
320
- },
321
- },
322
- GET_MARITAL_STATUS: {
323
- default: {
324
- url: 'party/v1/marital-statuses',
325
- method: exports.methods.GET,
326
- source: 'https://apidoc.sysone.com/party/v1/open-api.html#/paths/~1v1~1marital-statuses/get',
327
- requestMapper: (request) => ({ mappedParams: request }),
328
- responseMapper: (response) => response.data,
329
- },
330
- cnp: {
331
- url: 'party/v1/marital-statuses',
332
- method: exports.methods.GET,
333
- source: "https://developers-test.cnp.com.ar/api-details#api=party-api&operation=get-v1-marital-statuses",
334
- requestMapper: request => ({ mappedParams: request }),
335
- responseMapper: (response) => (0, party_1.getMaritalStatuses)(response.data),
336
- },
337
- },
338
- GET_ACTIVITY: {
339
- default: {
340
- url: 'party/v1/sectors',
341
- method: exports.methods.GET,
342
- source: 'https://apidoc.sysone.com/party/v1/open-api.html#/paths/~1v1~1sectors/get',
343
- requestMapper: (request) => ({ mappedParams: request }),
344
- responseMapper: (response) => response.data,
345
- },
346
- cnp: {
347
- url: 'party/v1/activities',
348
- method: exports.methods.GET,
349
- source: "https://developers-test.cnp.com.ar/api-details#api=quotation-api&operation=get-v1-activity",
350
- requestMapper: request => ({ mappedParams: request }),
351
- responseMapper: (response) => (0, quotation_1.getActivityList)(response.data),
352
- },
353
- },
354
- GET_BLOOD_PRESSURES: {
355
- cnp: {
356
- url: 'party/v1/blood-pressures',
357
- method: exports.methods.GET,
358
- source: "https://developers-test.cnp.com.ar/api-details#api=party-api&operation=get-v1-blood-pressures",
359
- requestMapper: request => ({ mappedParams: request }),
360
- responseMapper: (response) => response.data
361
- },
362
- },
363
- GET_PAYMENT_FRECUENCIES: {
364
- default: {
365
- url: 'quotation/v1/payment-frequencies',
366
- method: exports.methods.GET,
367
- requestMapper: (request) => ({ mappedParams: request }),
368
- responseMapper: (response) => response.data,
369
- },
370
- cnp: {
371
- url: 'party/v1/payment-frequencies',
372
- method: exports.methods.GET,
373
- source: "https://developers-test.cnp.com.ar/api-details#api=party-api&operation=get-v1-payment-frequencies",
374
- requestMapper: request => ({ mappedParams: request }),
375
- responseMapper: (response) => (0, quotation_1.getPaymentFrecuencies)(response.data),
376
- },
377
- },
378
- GET_PAYMENT_TYPES: {
379
- default: {
380
- url: 'collection/v1/payment-types',
381
- method: exports.methods.GET,
382
- requestMapper: (request) => ({ mappedParams: request }),
383
- responseMapper: (response) => response.data,
384
- },
385
- cnp: {
386
- url: 'party/v1/payment-types',
387
- method: exports.methods.GET,
388
- source: "https://developers-test.cnp.com.ar/api-details#api=party-api&operation=get-v1-payment-types",
389
- requestMapper: request => ({ mappedParams: request }),
390
- responseMapper: (response) => response.data,
391
- },
392
- },
393
- GET_BRANCHES: {
394
- cnp: {
395
- url: 'party/v1/branches',
396
- method: exports.methods.GET,
397
- source: "https://developers-test.cnp.com.ar/api-details#api=party-api&operation=get-v1-branches",
398
- requestMapper: request => ({ mappedParams: request }),
399
- responseMapper: (response) => response.data,
400
- },
401
- },
402
- GET_PARTIES: {
403
- default: {
404
- url: 'party/v1/{0}',
405
- method: exports.methods.GET,
406
- source: "https://apidoc.sysone.com/party/v1/open-api.html#/paths/~1v1~1individuals/get",
407
- requestMapper: (request) => ({ mappedParams: request }),
408
- responseMapper: (response) => response.data,
409
- },
410
- cnp: {
411
- url: "party/v1/parties",
412
- method: exports.methods.GET,
413
- source: "https://developers-test.cnp.com.ar/api-details#api=party-api&operation=get-v1-parties",
414
- requestMapper: request => ({ mappedParams: (0, party_1.partySearchParams)(request) }),
415
- responseMapper: (response) => (0, party_1.partySearch)(response.data),
416
- },
417
- },
418
- GET_SECTION: {
419
- default: {
420
- url: "product/v1/sections",
421
- method: exports.methods.GET,
422
- source: "",
423
- requestMapper: (request) => ({ mappedParams: request }),
424
- responseMapper: (response) => response.data,
425
- },
426
- cnp: {
427
- url: "party/v1/subsections",
428
- method: exports.methods.GET,
429
- source: "https://developers-test.cnp.com.ar/api-details#api=party-api&operation=get-v1-subsections",
430
- requestMapper: request => ({ mappedParams: request }),
431
- responseMapper: response => (0, party_1.getSections)(response.data),
432
- }
433
- },
434
- GET_SUBSECTION_BY_CODE: {
435
- default: {
436
- url: "product/v1/sections/{0}/subsections",
437
- method: exports.methods.GET,
438
- source: "",
439
- requestMapper: (request) => ({ mappedParams: request }),
440
- responseMapper: (response) => response.data,
441
- },
442
- cnp: {
443
- url: "party/v1/subsections",
444
- method: exports.methods.GET,
445
- source: "https://developers-test.cnp.com.ar/api-details#api=party-api&operation=get-v1-subsections",
446
- requestMapper: request => ({ mappedParams: request }),
447
- responseMapper: response => (0, party_1.getSubsections)(response.data),
448
- }
449
- },
450
- GET_PARTY_VALIDATION: {
451
- default: {
452
- url: 'party/v1/parties/{0}/{1}/validation',
453
- method: exports.methods.GET,
454
- source: "https://apidoc.sysone.com/party/v1/open-api.html#/paths/~1v1~1parties~1%7Bidentification-type-code%7D~1%7Bidentification-value%7D~1validation/get",
455
- requestMapper: (request) => ({ mappedParams: request }),
456
- responseMapper: (response) => response.data,
457
- },
458
- },
459
- POST_PARTY_VALIDATION: {
460
- default: {
461
- url: 'party/v1/parties/{0}/{1}/validation',
462
- method: exports.methods.POST,
463
- source: "https://apidoc.sysone.com/party/v1/open-api.html#/paths/~1v1~1parties~1%7Bidentification-type-code%7D~1%7Bidentification-value%7D~1validation/post",
464
- requestMapper: (request) => ({ mappedBody: request }),
465
- responseMapper: (response) => response.data,
466
- },
467
- },
468
- GET_PARTY_ONBOARDING: {
469
- default: {
470
- url: 'party/v1/parties/{0}/{1}/onboarding',
471
- method: exports.methods.GET,
472
- source: "https://apidoc.sysone.com/party/v1/open-api.html#/paths/~1v1~1parties~1%7Bidentification-type-code%7D~1%7Bidentification-value%7D~1onboarding/get",
473
- requestMapper: (request) => ({ mappedParams: request }),
474
- responseMapper: (response) => response.data,
475
- },
476
- },
477
- POST_PARTY_ONBOARDING: {
478
- default: {
479
- url: 'party/v1/parties/{0}/{1}/onboarding',
480
- method: exports.methods.POST,
481
- source: "https://apidoc.sysone.com/party/v1/open-api.html#/paths/~1v1~1parties~1%7Bidentification-type-code%7D~1%7Bidentification-value%7D~1onboarding/post",
482
- requestMapper: (request) => ({ mappedBody: request }),
483
- responseMapper: (response) => response.data,
484
- },
485
- },
486
- POST_AGE: {
487
- default: {
488
- url: '',
489
- method: exports.methods.POST,
490
- source: '',
491
- requestMapper: (params) => ({ mappedBody: params }),
492
- responseMapper: (response) => response,
493
- },
494
- cnp: {
495
- url: 'party/v1/age',
496
- method: exports.methods.POST,
497
- source: 'https://developers-test.cnp.com.ar/api-details#api=party-api&operation=post-v1-age',
498
- requestMapper: (params) => ({ mappedBody: params }),
499
- responseMapper: (response) => response,
500
- }
501
- },
502
- };
503
- // ============================================================================
504
- // PRODUCT MODULE
505
- // ============================================================================
506
- const productModule = {
507
- GET_COVERAGES: {
508
- default: {
509
- url: 'product/v1/products/{0}/coverages',
510
- method: exports.methods.GET,
511
- requestMapper: (request) => ({ mappedParams: request }),
512
- responseMapper: (response) => response.data,
513
- },
514
- cnp: {
515
- url: 'party/v1/products/{0}/coverages',
516
- method: exports.methods.GET,
517
- source: "https://developers-test.cnp.com.ar/api-details#api=party-api&operation=get-v1-products-code-coverages-currencycode-currencycode-smoker-smoker",
518
- requestMapper: request => ({ mappedParams: request }),
519
- responseMapper: (response) => (0, party_1.getCoverages)(response.data),
520
- },
521
- },
522
- GET_DISTRIBUTION_LIMITS: {
523
- cnp: {
524
- url: 'party/v1/products/{0}/savings-distribution',
525
- method: exports.methods.GET,
526
- source: "https://developers-test.cnp.com.ar/api-details#api=party-api&operation=get-v1-products-code-coverages-currencycode-currencycode-smoker-smoker",
527
- requestMapper: request => ({ mappedParams: request }),
528
- responseMapper: (response) => response.data,
529
- },
530
- },
531
- GET_PRODUCTS_BY_SUBSECTIONS: {
532
- default: {
533
- url: 'product/v1/products',
534
- method: exports.methods.GET,
535
- source: 'https://apidoc.sysone.com/product/v1/open-api.html#/paths/~1v1~1products/get',
536
- requestMapper: (request) => ({
537
- mappedParams: request,
538
- headers: {
539
- 'X-Channel': 'L-ONE',
540
- 'X-Subchannel': 'WEB'
541
- }
542
- }),
543
- responseMapper: (response) => response.data,
544
- },
545
- cnp: {
546
- url: 'party/v1/subsections/{0}/products',
547
- method: exports.methods.GET,
548
- source: "https://developers-test.cnp.com.ar/api-details#api=party-api&operation=get-v1-subsections-code-products",
549
- requestMapper: request => ({ mappedParams: (0, party_1.getProductsBySubsections_Request)(request) }),
550
- responseMapper: (response) => (0, quotation_1.getProductsBySubsections)(response.data),
551
- },
552
- },
553
- GET_PRODUCT_PARAMETERS: {
554
- cnp: {
555
- url: `party/v1/products/{0}`,
556
- method: exports.methods.GET,
557
- requestMapper: request => ({ mappedParams: request }),
558
- responseMapper: (response) => (0, quotation_1.getProductParameters)(response.data),
559
- }
560
- },
561
- GET_MONETARY_GOALS: {
562
- cnp: {
563
- url: 'party/v1/products/{0}/monetary-goals',
564
- method: exports.methods.GET,
565
- source: "https://developers-test.cnp.com.ar/api-details#api=party-api&operation=get-v1-monetary-goals",
566
- requestMapper: request => ({ mappedParams: request }),
567
- responseMapper: (response) => response.data,
568
- },
569
- },
570
- GET_SAVINGS_DISTRIBUTION: {
571
- cnp: {
572
- url: 'party/v1/products/{0}/savings-distribution',
573
- method: exports.methods.GET,
574
- source: "https://developers-test.cnp.com.ar/api-details#api=party-api&operation=get-v1-products-code-savings-distribution-goalcode-goalcode-goalamount-goala",
575
- requestMapper: request => ({ mappedParams: request }),
576
- responseMapper: (response) => response.data,
577
- },
578
- },
579
- GET_QUOTATION_BENEFITS: {
580
- cnp: {
581
- url: 'party/v1/quotation-benefits',
582
- method: exports.methods.GET,
583
- source: "https://developers-test.cnp.com.ar/api-details#api=party-api&operation=get-v1-quotation-benefits",
584
- requestMapper: request => ({ mappedParams: request }),
585
- responseMapper: (response) => response.data,
586
- },
587
- },
588
- GET_PRODUCT_SEGMENTS: {
589
- default: {
590
- url: "product/v1/products/{0}/segments",
591
- source: "https://apidoc.sysone.com/product/v1/open-api.html#/paths/~1v1~1products~1%7Bcode%7D~1segments/get",
592
- method: exports.methods.GET,
593
- requestMapper: request => ({ mappedParams: request }),
594
- responseMapper: response => response.data
595
- },
596
- cnp: {
597
- url: "party/v1/products/{0}/segments",
598
- source: "https://developers-test.cnp.com.ar/api-details#api=party-api&operation=get-v1-products-code-segments-provincecode-provincecode-birthdate-birthdate",
599
- method: exports.methods.GET,
600
- requestMapper: request => ({ mappedParams: request }),
601
- responseMapper: response => response.data
602
- }
603
- },
604
- };
605
- // ============================================================================
606
- // POLICY MODULE
607
- // ============================================================================
608
- const policyModule = {
609
- GET_ENDORSEMENTS: {
610
- default: {
611
- url: 'policy/v1/policies/{0}/endorsements',
612
- method: exports.methods.GET,
613
- source: 'https://apidoc.sysone.com/policy/v1/open-api.html#/paths/~1v1~1policies~1%7Bcode%7D~1endorsements/get',
614
- requestMapper: request => ({ mappedParams: request }),
615
- responseMapper: (response) => response.data,
616
- },
617
- cnp: {
618
- url: 'policy/v1/policy/{0}/{1}/endorsements',
619
- method: exports.methods.GET,
620
- source: 'https://developers-test.cnp.com.ar/api-details#api=policy-api&operation=get-v1-policy-policy-number-section-code-endorsements',
621
- requestMapper: request => ({ mappedParams: (0, policy_1.getEndorsements_Request)(request) }),
622
- responseMapper: (response) => (0, policy_1.getEndorsements_CNP)(response.data),
623
- },
624
- },
625
- GET_INSUREDS: {
626
- default: {
627
- url: '{0}/v1/policies/{1}/insureds',
628
- method: exports.methods.GET,
629
- source: 'https://apidoc.sysone.com/policy-life/v1/open-api.html#/paths/~1v1~1policies~1%7Bcode%7D~1insureds/get',
630
- requestMapper: (request) => ({ mappedParams: request }),
631
- responseMapper: (response) => response.data,
632
- },
633
- cnp: {
634
- url: 'policy/v1/policy/{0}/{1}/policy-insured',
635
- method: exports.methods.GET,
636
- source: 'https://developers-test.cnp.com.ar/api-details#api=policy-api&operation=get-v1-policy-policy-number-section-code-insureds',
637
- requestMapper: request => ({ mappedParams: (0, policy_1.getInsureds_CNP_Request)(request) }),
638
- responseMapper: (response) => (0, policy_1.getInsureds_CNP)(response.data),
639
- },
640
- },
641
- GET_INSUREDS_BY_FILTERS: {
642
- default: {
643
- url: 'policy-life/v1/insureds',
644
- method: exports.methods.GET,
645
- source: 'https://apidoc.sysone.com/policy-life/v1/open-api.html#/paths/~1v1~1insureds/get',
646
- requestMapper: (request) => ({ mappedParams: request }),
647
- responseMapper: (response) => response.data,
648
- },
649
- },
650
- GET_POLICIES: {
651
- default: {
652
- url: 'policy/v1/policies',
653
- method: exports.methods.GET,
654
- source: 'https://apidoc.sysone.com/policy/v1/open-api.html#/paths/~1v1~1policies/get',
655
- requestMapper: (request) => ({ mappedParams: request }),
656
- responseMapper: (response) => response.data,
657
- },
658
- cnp: {
659
- url: 'policy/v1/policy',
660
- method: exports.methods.GET,
661
- source: "https://developers-test.cnp.com.ar/api-details#api=policy-api&operation=get-v1-policy-pagenumber-pagenumber-sort-sort-ordertype-ordertype-pagesize-p",
662
- requestMapper: request => ({ mappedParams: (0, policy_1.getPolicies_CNP_Request)(request) }),
663
- responseMapper: (response) => (0, policy_1.getPolicies_CNP)(response.data),
664
- },
665
- },
666
- GET_POLICY_DETAIL: {
667
- default: {
668
- url: '/{0}/v1/policies/{1}/details',
669
- method: exports.methods.GET,
670
- source: 'https://apidoc.sysone.com/policy/v1/open-api.html#/paths/~1v1~1policies/get',
671
- requestMapper: (request) => ({ mappedParams: request }),
672
- responseMapper: (response) => response.data,
673
- },
674
- cnp: {
675
- url: 'policy/v1/policy-individual/{0}/{1}/detail',
676
- method: exports.methods.GET,
677
- requestMapper: request => ({ mappedParams: (0, policy_1.getPolicyDetail_Request)(request) }),
678
- responseMapper: (response) => (0, policy_1.getPolicyDetail_CNP)(response.data)
679
- },
680
- },
681
- GET_COLLECTIONS: {
682
- default: {
683
- url: '/policy/v1/policies/{0}/collections',
684
- method: exports.methods.GET,
685
- requestMapper: (request) => ({ mappedParams: request }),
686
- responseMapper: (response) => response.data,
687
- },
688
- cnp: {
689
- url: 'policy/v1/policy-individual/{0}/{1}/detail',
690
- method: exports.methods.GET,
691
- requestMapper: request => ({ mappedParams: (0, policy_1.getPolicyCollection_Request)(request) }),
692
- responseMapper: (response) => (0, policy_1.getPolicyCollection)(response.data)
693
- },
694
- },
695
- GET_COLLECTIONS: {
696
- default: {
697
- url: '/policy/v1/policies/{0}/collections',
698
- method: exports.methods.GET,
699
- requestMapper: (request) => ({ mappedParams: request }),
700
- responseMapper: (response) => response.data,
701
- },
702
- cnp: {
703
- url: 'policy/v1/policy-individual/{0}/{1}/detail',
704
- method: exports.methods.GET,
705
- requestMapper: request => ({ mappedParams: (0, policy_1.getPolicyCollection_Request)(request) }),
706
- responseMapper: (response) => (0, policy_1.getPolicyCollection)(response.data)
707
- },
708
- },
709
- SEARCH_COLLECTIONS: {
710
- default: {
711
- url: 'collection/v1/collections',
712
- method: exports.methods.GET,
713
- requestMapper: (request) => ({ mappedParams: request }),
714
- responseMapper: (response) => response.data,
715
- },
716
- },
717
- GET_COLLECTION_STATUSES: {
718
- default: {
719
- url: "collection/v1/collection-statuses",
720
- method: exports.methods.GET,
721
- requestMapper: (request) => ({ mappedParams: request }),
722
- responseMapper: (response) => response.data,
723
- },
724
- },
725
- GET_POLICY_HOME_COLLECTIVE_DETAIL: {
726
- default: {
727
- url: 'policy-home/v1/policies/{0}/details',
728
- method: exports.methods.GET,
729
- source: 'https://apidoc.sysone.com/policy/v1/open-api.html#/paths/~1v1~1policies~1%7Bcode%7D~1details/get',
730
- requestMapper: (request) => ({ mappedParams: request }),
731
- responseMapper: (response) => response.data,
732
- },
733
- cnp: {
734
- url: 'policy/v1/policy-individual/{0}/{1}/detail',
735
- method: exports.methods.GET,
736
- source: "https://developers-test.cnp.com.ar/api-details#api=policy-api&operation=get-v1-policy-individual-policy-number-section-code-detail",
737
- requestMapper: request => ({ mappedParams: (0, policy_1.getPolicyCollectiveDetail_Request)(request) }),
738
- responseMapper: (response) => (0, policy_1.getPolicyCollectiveDetail_CNP)(response.data),
739
- },
740
- },
741
- GET_POLICY_HOME_INDIVIDUAL_DETAIL: {
742
- default: {
743
- url: 'policy-home/v1/policies/{0}/details',
744
- method: exports.methods.GET,
745
- source: 'https://apidoc.sysone.com/policy/v1/open-api.html#/paths/~1v1~1policies~1%7Bcode%7D~1details/get',
746
- requestMapper: (request) => ({ mappedParams: request }),
747
- responseMapper: (response) => response.data,
748
- },
749
- cnp: {
750
- url: 'policy/v1/policy-individual/{0}/{1}/detail',
751
- method: exports.methods.GET,
752
- source: "https://developers-test.cnp.com.ar/api-details#api=policy-api&operation=get-v1-policy-individual-policy-number-section-code-detail",
753
- requestMapper: request => ({ mappedParams: (0, policy_1.getPolicyIndividualDetail_Request)(request) }),
754
- responseMapper: (response) => (0, policy_1.getPolicyDetail_CNP)(response.data),
755
- },
756
- },
757
- GET_POLICY_LIFE_COLLECTIVE_DETAIL: {
758
- default: {
759
- url: 'policy-life/v1/policies/{0}/details',
760
- method: exports.methods.GET,
761
- source: 'https://apidoc.sysone.com/policy/v1/open-api.html#/paths/~1v1~1policies~1%7Bcode%7D~1details/get',
762
- requestMapper: (request) => ({ mappedParams: request }),
763
- responseMapper: (response) => response.data,
764
- },
765
- cnp: {
766
- url: 'policy/v1/policy-individual/{0}/{1}/detail',
767
- method: exports.methods.GET,
768
- source: "https://developers-test.cnp.com.ar/api-details#api=policy-api&operation=get-v1-policy-individual-policy-number-section-code-detail",
769
- requestMapper: request => ({ mappedParams: (0, policy_1.getPolicyCollectiveDetail_Request)(request) }),
770
- responseMapper: (response) => (0, policy_1.getPolicyCollectiveDetail_CNP)(response.data),
771
- },
772
- },
773
- GET_POLICY_LIFE_INDIVIDUAL_DETAIL: {
774
- default: {
775
- url: 'policy-life/v1/policies/{0}/details',
776
- method: exports.methods.GET,
777
- source: 'https://apidoc.sysone.com/policy/v1/open-api.html#/paths/~1v1~1policies~1%7Bcode%7D~1details/get',
778
- requestMapper: (request) => ({ mappedParams: request }),
779
- responseMapper: (response) => response.data,
780
- },
781
- cnp: {
782
- url: 'policy/v1/policy-individual/{0}/{1}/detail',
783
- method: exports.methods.GET,
784
- source: "https://developers-test.cnp.com.ar/api-details#api=policy-api&operation=get-v1-policy-individual-policy-number-section-code-detail",
785
- requestMapper: request => ({ mappedParams: (0, policy_1.getPolicyIndividualDetail_Request)(request) }),
786
- responseMapper: (response) => (0, policy_1.getPolicyDetail_CNP)(response.data),
787
- },
788
- },
789
- GET_POLICY_STATUSES: {
790
- default: {
791
- url: 'policy/v1/policy-statuses',
792
- method: exports.methods.GET,
793
- requestMapper: (request) => ({ mappedParams: request }),
794
- responseMapper: (response) => response.data,
795
- },
796
- },
797
- GET_BENEFICIRY_TYPES: {
798
- cnp: {
799
- url: 'policy/v1/beneficiary-types',
800
- method: exports.methods.GET,
801
- requestMapper: request => ({ mappedParams: request }),
802
- responseMapper: (response) => response.data,
803
- },
804
- },
805
- POST_INSURED_UPDATE: {
806
- default: {
807
- url: 'policy-life/v1/policies/{0}/insureds',
808
- method: exports.methods.POST,
809
- requestMapper: null,
810
- source: 'https://apidoc.sysone.com/policy-life/v1/open-api.html#/paths/~1v1~1policies~1%7Bcode%7D~1insureds/post',
811
- responseMapper: (response) => response,
812
- },
813
- cnp: {
814
- url: 'v1/policy-collective/{0}/{1}/insureds',
815
- method: exports.methods.POST,
816
- requestMapper: null,
817
- source: 'https://developers-test.cnp.com.ar/api-details#api=policy-api&operation=post-v1-policy-collective-policy-number-section-code-insureds',
818
- responseMapper: (response) => (0, policy_1.postInsureds_CNP)(response),
819
- },
820
- },
821
- GET_POLICY_CERTIFICATE: {
822
- default: {
823
- url: 'policy-{0}/v1/policies/{1}/certificate',
824
- method: exports.methods.GET,
825
- requestMapper: (request) => ({
826
- mappedParams: request,
827
- responseType: "arraybuffer",
828
- }),
829
- responseMapper: (response) => response.data,
830
- },
831
- }
832
- };
833
- // ============================================================================
834
- // CLAIM MODULE
835
- // ============================================================================
836
- const claimModule = {
837
- GET_CLAIMS: {
838
- default: {
839
- url: 'claim/v1/claims',
840
- method: exports.methods.GET,
841
- source: 'https://apidoc.sysone.com/claim/v1/open-api.html',
842
- requestMapper: (request) => ({ mappedParams: request }),
843
- responseMapper: (response) => response.data,
844
- },
845
- cnp: {
846
- url: 'claim/v1/claim',
847
- method: exports.methods.GET,
848
- source: "https://developers-test.cnp.com.ar/api-details#api=claim-api&operation=get-v1-claim-pagenumber-pagenumber-pagesize-pagesize",
849
- requestMapper: null,
850
- responseMapper: (response) => (0, claim_1.getClaims_CNP)(response.data),
851
- },
852
- },
853
- };
854
- // ============================================================================
855
- // QUOTATION MODULE
856
- // ============================================================================
857
- const quotationModule = {
858
- GET_QUOTATION_BY_CODE: {
859
- default: {
860
- url: 'quotation/v1/quotations/{0}',
861
- method: exports.methods.GET,
862
- source: 'https://apidoc.sysone.com/quotation/v1/open-api.html#/paths/~1v1~1quotations~1%7Bcode%7D/get',
863
- requestMapper: (request) => ({ mappedParams: request }),
864
- responseMapper: (response) => response.data
865
- },
866
- cnp: {
867
- url: 'quotation/v1/quotation/standard-plan/{0}',
868
- method: exports.methods.GET,
869
- source: 'https://developers-test.cnp.com.ar/api-details#api=quotation-api&operation=get-v1-quotation-standard-plan-number',
870
- requestMapper: (request) => ({ mappedParams: (0, quotation_1.getQuotationByCode_Request)(request) }),
871
- responseMapper: (response) => (0, quotation_1.getQuotationByCode)(response.data)
872
- }
873
- },
874
- GET_QUOTATIONS: {
875
- default: {
876
- url: 'quotation/v1/quotations',
877
- method: exports.methods.GET,
878
- source: 'https://apidoc.sysone.com/quotation/v1/open-api.html#/paths/~1v1~1quotations/get',
879
- requestMapper: (request) => ({ mappedParams: request }),
880
- responseMapper: (response) => response.data
881
- },
882
- cnp: {
883
- url: 'quotation/v1/quotations',
884
- method: exports.methods.GET,
885
- requestMapper: request => ({ mappedParams: (0, quotation_1.getQuotations_Request)(request) }),
886
- responseMapper: (response) => (0, quotation_1.getQuotationsList)(response.data)
887
- }
888
- },
889
- GET_QUOTATION_DETAILS: {
890
- default: {
891
- url: '{0}/v1/quotations/{1}',
892
- method: exports.methods.GET,
893
- requestMapper: (request) => ({ mappedParams: request }),
894
- responseMapper: (response) => response.data
895
- },
896
- cnp: {
897
- url: 'quotation/v1/quotations/{0}',
898
- method: exports.methods.GET,
899
- requestMapper: request => ({ mappedParams: request }),
900
- responseMapper: (response) => (0, quotation_1.getQuotationDetail)(response.data)
901
- }
902
- },
903
- GET_SWORN_STATEMENT: {
904
- cnp: {
905
- url: 'quotation/v1/quotations/{0}/questionnaires',
906
- method: exports.methods.GET,
907
- requestMapper: request => ({ mappedParams: request }),
908
- responseMapper: (response) => response.data
909
- }
910
- },
911
- GET_QUOTATION_REPORT: {
912
- default: {
913
- url: '{0}/v1/quotations/{1}/report',
914
- method: exports.methods.GET,
915
- requestMapper: (request) => ({
916
- mappedParams: request,
917
- responseType: "arraybuffer"
918
- }),
919
- responseMapper: (response) => response
920
- },
921
- cnp: {
922
- url: '/quotation/v1/quotations/{0}/report',
923
- method: exports.methods.GET,
924
- requestMapper: (request) => ({
925
- mappedParams: request,
926
- headers: {
927
- 'Accept': 'application/json',
928
- }
929
- }),
930
- responseMapper: (response) => response
931
- }
932
- },
933
- POST_CREATE_QUOTATION_STANDARD_PLAN: {
934
- default: {
935
- url: 'quotation/v1/quotations',
936
- method: exports.methods.POST,
937
- source: 'https://apidoc.sysone.com/quotation/v1/open-api.html#/paths/~1v1~1quotations/post',
938
- requestMapper: (params) => ({
939
- mappedBody: params
940
- }),
941
- responseMapper: (response) => response,
942
- },
943
- cnp: {
944
- url: 'quotation/v1/quotation/standard-plan',
945
- method: exports.methods.POST,
946
- source: 'https://developers-test.cnp.com.ar/api-details#api=quotation-api&operation=post-v1-quotation-standard-plan',
947
- requestMapper: (params) => ({
948
- mappedBody: (0, quotation_1.quotationStandardPlanCreationMapped)(params)
949
- }),
950
- responseMapper: (response) => response,
951
- }
952
- },
953
- POST_CREATE_QUOTATION_VARIABLE_PLAN: {
954
- default: {
955
- url: 'quotation/v1/quotations',
956
- method: exports.methods.POST,
957
- source: 'https://apidoc.sysone.com/quotation/v1/open-api.html#/paths/~1v1~1quotations/post',
958
- requestMapper: (params) => ({
959
- mappedBody: params
960
- }),
961
- responseMapper: (response) => response,
962
- },
963
- cnp: {
964
- url: 'quotation/v1/quotation/variable-plan',
965
- method: exports.methods.POST,
966
- source: 'https://developers-test.cnp.com.ar/api-details#api=quotation-api&operation=post-v1-quotation-variable-plan',
967
- requestMapper: (params) => ({
968
- mappedBody: (0, quotation_1.quotationVariablePlanCreationMapped)(params)
969
- }),
970
- responseMapper: (response) => response,
971
- }
972
- },
973
- POST_CALCULATE_LS: {
974
- cnp: {
975
- url: 'quotation/v1/quotations/calculate',
976
- method: exports.methods.POST,
977
- requestMapper: (params) => ({ mappedBody: params }),
978
- responseMapper: (response) => response,
979
- }
980
- },
981
- POST_CREATE_QUOTATION_LS: {
982
- cnp: {
983
- url: 'quotation/v1/quotations',
984
- method: exports.methods.POST,
985
- requestMapper: (params) => ({ mappedBody: params }),
986
- responseMapper: (response) => response,
987
- }
988
- },
989
- };
990
- // ============================================================================
991
- // REQUEST MODULE
992
- // ============================================================================
993
- const requestModule = {
994
- GET_REQUESTS_LOOKUP: {
995
- default: {
996
- url: 'request/v1/requests',
997
- method: exports.methods.GET,
998
- source: 'https://apidoc.sysone.com/quotation/v1/open-api.html#/paths/~1v1~1quotations/get',
999
- requestMapper: (request) => ({ mappedParams: request }),
1000
- responseMapper: (response) => response.data
1001
- },
1002
- cnp: {
1003
- url: 'request/v1/request/savings',
1004
- method: exports.methods.GET,
1005
- requestMapper: request => ({ mappedParams: (0, request_1.getRequest_Params)(request) }),
1006
- responseMapper: (response) => response.data
1007
- }
1008
- },
1009
- GET_REQUEST_DETAIL: {
1010
- default: {
1011
- url: '{0}/v1/requests/{1}',
1012
- method: exports.methods.GET,
1013
- requestMapper: (request) => ({ mappedParams: request }),
1014
- responseMapper: (response) => response.data
1015
- },
1016
- cnp: {
1017
- url: '/request/v1/request/savings/{0}',
1018
- method: exports.methods.GET,
1019
- requestMapper: request => ({ mappedParams: request }),
1020
- responseMapper: (response) => (0, request_1.getRequestDetail)(response.data)
1021
- }
1022
- },
1023
- GET_REQUEST_REPORT: {
1024
- default: {
1025
- url: '{0}/v1/policies/{1}/certificate',
1026
- method: exports.methods.GET,
1027
- requestMapper: (request) => ({
1028
- mappedParams: request,
1029
- responseType: "arraybuffer"
1030
- }),
1031
- responseMapper: (response) => response
1032
- },
1033
- cnp: {
1034
- url: '/request/v1/request/savings/{0}/report',
1035
- method: exports.methods.GET,
1036
- requestMapper: (request) => ({
1037
- mappedParams: request,
1038
- headers: {
1039
- 'Accept': 'application/json',
1040
- }
1041
- }),
1042
- responseMapper: (response) => response
1043
- },
1044
- },
1045
- POST_REQUEST_SIGNATURE: {
1046
- cnp: {
1047
- url: '/request/v1/request/savings/{0}/signature',
1048
- method: exports.methods.POST,
1049
- requestMapper: (params) => ({ mappedBody: params }),
1050
- responseMapper: (response) => response,
1051
- }
1052
- },
1053
- POST_SEND_REQUEST_LIFE: {
1054
- cnp: {
1055
- url: '/request/v1/request/savings',
1056
- method: exports.methods.POST,
1057
- requestMapper: (params) => ({ mappedBody: params }),
1058
- responseMapper: (response) => response,
1059
- }
1060
- },
1061
- POST_SEND_REQUEST_HEALTH: {
1062
- cnp: {
1063
- url: '/request/v1/request/health',
1064
- method: exports.methods.POST,
1065
- requestMapper: (params) => ({ mappedBody: params }),
1066
- responseMapper: (response) => response,
1067
- }
1068
- }
1069
- };
1070
- // ============================================================================
1071
- // finance module
1072
- // ============================================================================
1073
- const financeModule = {
1074
- GET_BANKS: {
1075
- default: {
1076
- url: 'finance/v1/banks',
1077
- method: exports.methods.GET,
1078
- requestMapper: (request) => ({ mappedParams: request }),
1079
- responseMapper: (response) => response.data,
1080
- },
1081
- },
1082
- GET_CREDIT_CARD_TYPES: {
1083
- default: {
1084
- url: "finance/v1/credit-card-types",
1085
- method: exports.methods.GET,
1086
- requestMapper: (request) => ({ mappedParams: request }),
1087
- responseMapper: (response) => response.data,
1088
- },
1089
- },
1090
- };
1091
- // ============================================================================
1092
- // MAIN CONFIGURATION EXPORT
1093
- // ============================================================================
1094
- exports.tenantsConfig = {
1095
- ...configurationModule,
1096
- ...intermediaryModule,
1097
- ...partyModule,
1098
- ...productModule,
1099
- ...policyModule,
1100
- ...claimModule,
1101
- ...quotationModule,
1102
- ...requestModule,
1103
- ...billingModule,
1104
- ...financeModule
1105
- };
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.tenantsConfig = exports.methods = void 0;
4
+ // Import modules organized by functionality
5
+ const billing_1 = require("./modules/billing");
6
+ const claim_1 = require("./modules/claim");
7
+ const general_1 = require("./modules/general");
8
+ const party_1 = require("./modules/party");
9
+ const policy_1 = require("./modules/policy");
10
+ const quotation_1 = require("./modules/quotation");
11
+ const request_1 = require("./modules/request");
12
+ exports.methods = {
13
+ GET: "GET",
14
+ POST: "POST",
15
+ PUT: "PUT",
16
+ DELETE: "DELETE",
17
+ };
18
+ // ============================================================================
19
+ // CONFIGURATION MODULE
20
+ // ============================================================================
21
+ const configurationModule = {
22
+ GET_MODULES: {
23
+ default: {
24
+ url: 'ui-configuration/v1/platforms/link-one/modules',
25
+ method: exports.methods.GET,
26
+ requestMapper: (request) => ({ mappedParams: request }),
27
+ responseMapper: (response) => response.data,
28
+ },
29
+ cnp: {
30
+ url: 'ui-configuration/v1/modules',
31
+ method: exports.methods.GET,
32
+ requestMapper: request => ({ mappedParams: (0, general_1.getModules_Request)(request) }),
33
+ responseMapper: (response) => response.data,
34
+ },
35
+ },
36
+ GET_POWERBI_TOKEN: {
37
+ cnp: {
38
+ url: 'ui-configuration/v1/embedded-reports',
39
+ method: exports.methods.GET,
40
+ requestMapper: request => ({ mappedParams: request }),
41
+ responseMapper: (response) => response.data,
42
+ },
43
+ }
44
+ };
45
+ // ============================================================================
46
+ // BILLING MODULE
47
+ // ============================================================================
48
+ const billingModule = {
49
+ GET_BILLINGS: {
50
+ default: {
51
+ url: 'billing/v1/billing',
52
+ method: exports.methods.GET,
53
+ requestMapper: (request) => ({ mappedParams: request }),
54
+ responseMapper: (response) => response.data,
55
+ },
56
+ cnp: {
57
+ url: 'policy/v1/policy/{0}/{1}/payments',
58
+ method: exports.methods.GET,
59
+ requestMapper: request => ({ mappedParams: (0, billing_1.getBillingsParams)(request) }),
60
+ responseMapper: (response) => (0, billing_1.getBillingsResponse)(response.data),
61
+ },
62
+ },
63
+ GET_POLICY_COLLECTIONS: {
64
+ default: {
65
+ url: '/collection/v1/collections',
66
+ method: exports.methods.GET,
67
+ requestMapper: (request) => ({ mappedParams: request }),
68
+ responseMapper: (response) => response.data,
69
+ },
70
+ cnp: {
71
+ url: 'policy/v1/policy/{0}/{1}/payments',
72
+ method: exports.methods.GET,
73
+ requestMapper: request => ({ mappedParams: (0, billing_1.getBillingsParams)(request) }),
74
+ responseMapper: (response) => (0, billing_1.getCollecionsResponse)(response.data),
75
+ },
76
+ },
77
+ GET_DEBTORS: {
78
+ default: {
79
+ url: 'billing/v1/billing',
80
+ method: exports.methods.GET,
81
+ requestMapper: (request) => ({ mappedParams: request }),
82
+ responseMapper: (response) => response.data,
83
+ },
84
+ cnp: {
85
+ url: 'policy/v1/policy/{0}/{1}/payments',
86
+ method: exports.methods.GET,
87
+ requestMapper: request => ({ mappedParams: (0, billing_1.getBillingsParams)(request) }),
88
+ responseMapper: (response) => (0, billing_1.getDebtorsResponse)(response.data),
89
+ },
90
+ },
91
+ GET_BILLING_TYPE: {
92
+ default: {
93
+ url: 'billing/v1/billing-types',
94
+ method: exports.methods.GET,
95
+ requestMapper: (request) => ({ mappedParams: request }),
96
+ responseMapper: (response) => response.data,
97
+ },
98
+ cnp: {
99
+ url: 'party/v1/genders',
100
+ method: exports.methods.GET,
101
+ requestMapper: request => ({ mappedParams: request }),
102
+ responseMapper: (response) => (0, billing_1.getBillingTypeResponse)(response.data),
103
+ },
104
+ },
105
+ BILLING_GET_BY_CODE: {
106
+ default: {
107
+ url: 'billing/v1/billing/{0}',
108
+ method: exports.methods.GET,
109
+ requestMapper: (request) => ({ mappedParams: request }),
110
+ responseMapper: (response) => response.data,
111
+ },
112
+ },
113
+ GET_BILLING_REPORT: {
114
+ default: {
115
+ url: 'billing/v1/billing/{0}/report',
116
+ method: exports.methods.GET,
117
+ requestMapper: (request) => ({
118
+ mappedParams: request,
119
+ responseType: "arraybuffer",
120
+ }),
121
+ responseMapper: (response) => response
122
+ },
123
+ },
124
+ GET_BILLING_PAYMENT_STATUS: {
125
+ default: {
126
+ url: 'billing/v1/billing-payment-status',
127
+ method: exports.methods.GET,
128
+ requestMapper: (request) => ({ mappedParams: request }),
129
+ responseMapper: (response) => response.data,
130
+ },
131
+ }
132
+ };
133
+ // ============================================================================
134
+ // INTERMEDIARY MODULE
135
+ // ============================================================================
136
+ const intermediaryModule = {
137
+ GET_INTERMEDIARY_STRUCTURE: {
138
+ default: {
139
+ url: 'intermediary/v1/intermediary/{0}/commercial-structures',
140
+ method: exports.methods.GET,
141
+ requestMapper: (request) => ({ mappedParams: request }),
142
+ responseMapper: (response) => response.data,
143
+ },
144
+ },
145
+ GET_INTERMEDIARY_BY_CODE: {
146
+ default: {
147
+ url: 'intermediary/v1/intermediary/{0}',
148
+ method: exports.methods.GET,
149
+ requestMapper: (request) => ({ mappedParams: request }),
150
+ responseMapper: (response) => response.data,
151
+ }
152
+ },
153
+ GET_COMMERCIAL_STRUCTURE: {
154
+ default: {
155
+ url: 'intermediary/v1/commercial-structures',
156
+ method: exports.methods.GET,
157
+ requestMapper: (request) => ({ mappedParams: request }),
158
+ responseMapper: (response) => response.data,
159
+ }
160
+ }
161
+ };
162
+ // ============================================================================
163
+ // PARTY MODULE
164
+ // ============================================================================
165
+ const partyModule = {
166
+ GET_INDIVIDUAL_DETAILS: {
167
+ default: {
168
+ url: 'party/v1/individuals/{0}',
169
+ method: exports.methods.GET,
170
+ source: 'https://apidoc.sysone.com/party/v1/open-api.html#/paths/~1v1~1individuals~1%7Bcode%7D/get',
171
+ requestMapper: (request) => ({ mappedParams: request }),
172
+ responseMapper: (response) => response.data,
173
+ },
174
+ },
175
+ GET_ORGANISATION_DETAILS: {
176
+ default: {
177
+ url: 'party/v1/organisations/{0}',
178
+ method: exports.methods.GET,
179
+ source: 'https://apidoc.sysone.com/party/v1/open-api.html#/paths/~1v1~1organisations~1%7Bcode%7D/get',
180
+ requestMapper: (request) => ({ mappedParams: request }),
181
+ responseMapper: (response) => response.data,
182
+ },
183
+ },
184
+ GET_CURRENCIES: {
185
+ default: {
186
+ url: 'finance/v1/currencies',
187
+ method: exports.methods.GET,
188
+ requestMapper: (request) => ({ mappedParams: request }),
189
+ responseMapper: (response) => response.data,
190
+ },
191
+ cnp: {
192
+ url: 'party/v1/currencies',
193
+ method: exports.methods.GET,
194
+ source: "https://developers-test.cnp.com.ar/api-details#api=party-api&operation=get-v1-currencies",
195
+ requestMapper: request => ({ mappedParams: request }),
196
+ responseMapper: (response) => response.data,
197
+ },
198
+ },
199
+ GET_PHONE_TYPES: {
200
+ default: {
201
+ url: "party/v1/phone-types",
202
+ method: exports.methods.GET,
203
+ source: 'https://apidoc.sysone.com/party/v1/open-api.html#/paths/~1v1~1phone-types/get',
204
+ requestMapper: (request) => ({ mappedParams: request }),
205
+ responseMapper: (response) => response.data,
206
+ },
207
+ },
208
+ GET_GENDERS: {
209
+ default: {
210
+ url: 'party/v1/genders',
211
+ method: exports.methods.GET,
212
+ source: 'https://apidoc.sysone.com/party/v1/open-api.html#/paths/~1v1~1genders/get',
213
+ requestMapper: (request) => ({ mappedParams: request }),
214
+ responseMapper: (response) => response.data,
215
+ },
216
+ cnp: {
217
+ url: 'party/v1/genders',
218
+ method: exports.methods.GET,
219
+ requestMapper: request => ({ mappedParams: request }),
220
+ responseMapper: (response) => (0, party_1.getGenders)(response.data),
221
+ },
222
+ },
223
+ GET_PARTY_STATUS: {
224
+ default: {
225
+ url: 'party/v1/parties/{0}/status',
226
+ method: exports.methods.GET,
227
+ source: 'https://apidoc.sysone.com/party/v1/open-api.html#/paths/~1v1~1parties~1%7Bcode%7D~1status/get',
228
+ requestMapper: (request) => ({ mappedParams: request }),
229
+ responseMapper: (response) => response.data,
230
+ },
231
+ },
232
+ GET_IDENTIFICATION_TYPES: {
233
+ default: {
234
+ url: 'party/v1/identification-types?party-type-code={0}&country-code={1}',
235
+ method: exports.methods.GET,
236
+ source: 'https://apidoc.sysone.com/party/v1/open-api.html#/paths/~1v1~1identification-types/get',
237
+ requestMapper: (request) => ({ mappedParams: request }),
238
+ responseMapper: (response) => response.data,
239
+ },
240
+ cnp: {
241
+ url: 'party/v1/identification-types',
242
+ method: exports.methods.GET,
243
+ source: "https://developers-test.cnp.com.ar/api-details#api=party-api&operation=get-v1-identification-types",
244
+ requestMapper: request => ({ mappedParams: request }),
245
+ responseMapper: (response) => (0, party_1.getIdentificationTypes)(response.data),
246
+ },
247
+ },
248
+ GET_PAYMENT_METHODS_BY_PARTY_CODE: {
249
+ default: {
250
+ url: 'party/v1/parties/{0}/payment-methods',
251
+ method: exports.methods.GET,
252
+ source: 'https://apidoc.sysone.com/party/v1/open-api.html#/paths/~1v1~1parties~1%7Bcode%7D~1payment-methods/get',
253
+ requestMapper: (request) => ({ mappedParams: request }),
254
+ responseMapper: (response) => response.data,
255
+ },
256
+ },
257
+ PUT_PAYMENT_METHODS_BY_PARTY_CODE: {
258
+ default: {
259
+ url: 'party/v1/parties/{0}/payment-methods',
260
+ method: exports.methods.PUT,
261
+ source: 'https://apidoc.sysone.com/party/v1/open-api.html#/paths/~1v1~1parties~1%7Bcode%7D~1payment-methods/put',
262
+ requestMapper: (request) => ({
263
+ mappedParams: null,
264
+ mappedBody: request,
265
+ }),
266
+ responseMapper: (response) => response.data,
267
+ },
268
+ },
269
+ PUT_PERSON: {
270
+ default: {
271
+ url: 'party/v1/individuals/{0}',
272
+ method: exports.methods.PUT,
273
+ source: 'https://apidoc.sysone.com/party/v1/open-api.html#/paths/~1v1~1individuals~1%7Bcode%7D/put',
274
+ requestMapper: (request) => ({
275
+ mappedParams: null,
276
+ mappedBody: request,
277
+ }),
278
+ responseMapper: (response) => response.data,
279
+ },
280
+ },
281
+ GET_COUNTRIES: {
282
+ default: {
283
+ url: 'location/v1/countries',
284
+ method: exports.methods.GET,
285
+ source: 'https://apidoc.sysone.com/location/v1/open-api.html#/paths/~1v1~1countries/get',
286
+ requestMapper: (request) => ({ mappedParams: request }),
287
+ responseMapper: (response) => response.data,
288
+ },
289
+ cnp: {
290
+ url: 'party/v1/countries',
291
+ method: exports.methods.GET,
292
+ source: "https://developers-test.cnp.com.ar/api-details#api=party-api&operation=get-v1-countries",
293
+ requestMapper: request => ({ mappedParams: request }),
294
+ responseMapper: (response) => (0, party_1.getCountries)(response.data),
295
+ },
296
+ },
297
+ GET_PROVINCES: {
298
+ default: {
299
+ url: 'location/v1/countries/{0}/provinces',
300
+ method: exports.methods.GET,
301
+ source: 'https://apidoc.sysone.com/location/v1/open-api.html#/paths/~1v1~1countries/get',
302
+ requestMapper: (request) => ({ mappedParams: request }),
303
+ responseMapper: (response) => response.data,
304
+ },
305
+ cnp: {
306
+ url: 'party/v1/countries/{0}/provinces',
307
+ method: exports.methods.GET,
308
+ source: "https://developers-test.cnp.com.ar/api-details#api=party-api&operation=get-v1-countries",
309
+ requestMapper: request => ({ mappedParams: request }),
310
+ responseMapper: (response) => (0, party_1.getProvinces)(response.data),
311
+ },
312
+ },
313
+ GET_CITIES: {
314
+ default: {
315
+ url: 'location/v1/provinces/{0}/cities',
316
+ method: exports.methods.GET,
317
+ source: 'https://apidoc.sysone.com/location/v1/open-api.html#/paths/~1v1~1provinces~1%7Bcode%7D~1cities/get',
318
+ requestMapper: (request) => ({ mappedParams: request }),
319
+ responseMapper: (response) => response.data,
320
+ },
321
+ },
322
+ GET_POSTAL_CODES: {
323
+ default: {
324
+ url: 'location/v1/cities/{0}/postal-codes',
325
+ method: exports.methods.GET,
326
+ source: 'https://apidoc.sysone.com/location/v1/open-api.html#/paths/~1v1~1cities~1%7Bcode%7D~1postal-codes/get',
327
+ requestMapper: (request) => ({ mappedParams: request }),
328
+ responseMapper: (response) => response.data,
329
+ },
330
+ },
331
+ GET_MARITAL_STATUS: {
332
+ default: {
333
+ url: 'party/v1/marital-statuses',
334
+ method: exports.methods.GET,
335
+ source: 'https://apidoc.sysone.com/party/v1/open-api.html#/paths/~1v1~1marital-statuses/get',
336
+ requestMapper: (request) => ({ mappedParams: request }),
337
+ responseMapper: (response) => response.data,
338
+ },
339
+ cnp: {
340
+ url: 'party/v1/marital-statuses',
341
+ method: exports.methods.GET,
342
+ source: "https://developers-test.cnp.com.ar/api-details#api=party-api&operation=get-v1-marital-statuses",
343
+ requestMapper: request => ({ mappedParams: request }),
344
+ responseMapper: (response) => (0, party_1.getMaritalStatuses)(response.data),
345
+ },
346
+ },
347
+ GET_ACTIVITY: {
348
+ default: {
349
+ url: 'party/v1/sectors',
350
+ method: exports.methods.GET,
351
+ source: 'https://apidoc.sysone.com/party/v1/open-api.html#/paths/~1v1~1sectors/get',
352
+ requestMapper: (request) => ({ mappedParams: request }),
353
+ responseMapper: (response) => response.data,
354
+ },
355
+ cnp: {
356
+ url: 'party/v1/activities',
357
+ method: exports.methods.GET,
358
+ source: "https://developers-test.cnp.com.ar/api-details#api=quotation-api&operation=get-v1-activity",
359
+ requestMapper: request => ({ mappedParams: request }),
360
+ responseMapper: (response) => (0, quotation_1.getActivityList)(response.data),
361
+ },
362
+ },
363
+ GET_BLOOD_PRESSURES: {
364
+ cnp: {
365
+ url: 'party/v1/blood-pressures',
366
+ method: exports.methods.GET,
367
+ source: "https://developers-test.cnp.com.ar/api-details#api=party-api&operation=get-v1-blood-pressures",
368
+ requestMapper: request => ({ mappedParams: request }),
369
+ responseMapper: (response) => response.data
370
+ },
371
+ },
372
+ GET_PAYMENT_FRECUENCIES: {
373
+ default: {
374
+ url: 'quotation/v1/payment-frequencies',
375
+ method: exports.methods.GET,
376
+ requestMapper: (request) => ({ mappedParams: request }),
377
+ responseMapper: (response) => response.data,
378
+ },
379
+ cnp: {
380
+ url: 'party/v1/payment-frequencies',
381
+ method: exports.methods.GET,
382
+ source: "https://developers-test.cnp.com.ar/api-details#api=party-api&operation=get-v1-payment-frequencies",
383
+ requestMapper: request => ({ mappedParams: request }),
384
+ responseMapper: (response) => (0, quotation_1.getPaymentFrecuencies)(response.data),
385
+ },
386
+ },
387
+ GET_PAYMENT_TYPES: {
388
+ default: {
389
+ url: 'collection/v1/payment-types',
390
+ method: exports.methods.GET,
391
+ requestMapper: (request) => ({ mappedParams: request }),
392
+ responseMapper: (response) => response.data,
393
+ },
394
+ cnp: {
395
+ url: 'party/v1/payment-types',
396
+ method: exports.methods.GET,
397
+ source: "https://developers-test.cnp.com.ar/api-details#api=party-api&operation=get-v1-payment-types",
398
+ requestMapper: request => ({ mappedParams: request }),
399
+ responseMapper: (response) => response.data,
400
+ },
401
+ },
402
+ GET_BRANCHES: {
403
+ cnp: {
404
+ url: 'party/v1/branches',
405
+ method: exports.methods.GET,
406
+ source: "https://developers-test.cnp.com.ar/api-details#api=party-api&operation=get-v1-branches",
407
+ requestMapper: request => ({ mappedParams: request }),
408
+ responseMapper: (response) => response.data,
409
+ },
410
+ },
411
+ GET_PARTIES: {
412
+ default: {
413
+ url: 'party/v1/{0}',
414
+ method: exports.methods.GET,
415
+ source: "https://apidoc.sysone.com/party/v1/open-api.html#/paths/~1v1~1individuals/get",
416
+ requestMapper: (request) => ({ mappedParams: request }),
417
+ responseMapper: (response) => response.data,
418
+ },
419
+ cnp: {
420
+ url: "party/v1/parties",
421
+ method: exports.methods.GET,
422
+ source: "https://developers-test.cnp.com.ar/api-details#api=party-api&operation=get-v1-parties",
423
+ requestMapper: request => ({ mappedParams: (0, party_1.partySearchParams)(request) }),
424
+ responseMapper: (response) => (0, party_1.partySearch)(response.data),
425
+ },
426
+ },
427
+ GET_SECTION: {
428
+ default: {
429
+ url: "product/v1/sections",
430
+ method: exports.methods.GET,
431
+ source: "",
432
+ requestMapper: (request) => ({ mappedParams: request }),
433
+ responseMapper: (response) => response.data,
434
+ },
435
+ cnp: {
436
+ url: "party/v1/subsections",
437
+ method: exports.methods.GET,
438
+ source: "https://developers-test.cnp.com.ar/api-details#api=party-api&operation=get-v1-subsections",
439
+ requestMapper: request => ({ mappedParams: request }),
440
+ responseMapper: response => (0, party_1.getSections)(response.data),
441
+ }
442
+ },
443
+ GET_SUBSECTION_BY_CODE: {
444
+ default: {
445
+ url: "product/v1/sections/{0}/subsections",
446
+ method: exports.methods.GET,
447
+ source: "",
448
+ requestMapper: (request) => ({ mappedParams: request }),
449
+ responseMapper: (response) => response.data,
450
+ },
451
+ cnp: {
452
+ url: "party/v1/subsections",
453
+ method: exports.methods.GET,
454
+ source: "https://developers-test.cnp.com.ar/api-details#api=party-api&operation=get-v1-subsections",
455
+ requestMapper: request => ({ mappedParams: request }),
456
+ responseMapper: response => (0, party_1.getSubsections)(response.data),
457
+ }
458
+ },
459
+ GET_PARTY_VALIDATION: {
460
+ default: {
461
+ url: 'party/v1/parties/{0}/{1}/validation',
462
+ method: exports.methods.GET,
463
+ source: "https://apidoc.sysone.com/party/v1/open-api.html#/paths/~1v1~1parties~1%7Bidentification-type-code%7D~1%7Bidentification-value%7D~1validation/get",
464
+ requestMapper: (request) => ({ mappedParams: request }),
465
+ responseMapper: (response) => response.data,
466
+ },
467
+ },
468
+ POST_PARTY_VALIDATION: {
469
+ default: {
470
+ url: 'party/v1/parties/{0}/{1}/validation',
471
+ method: exports.methods.POST,
472
+ source: "https://apidoc.sysone.com/party/v1/open-api.html#/paths/~1v1~1parties~1%7Bidentification-type-code%7D~1%7Bidentification-value%7D~1validation/post",
473
+ requestMapper: (request) => ({ mappedBody: request }),
474
+ responseMapper: (response) => response.data,
475
+ },
476
+ },
477
+ GET_PARTY_ONBOARDING: {
478
+ default: {
479
+ url: 'party/v1/parties/{0}/{1}/onboarding',
480
+ method: exports.methods.GET,
481
+ source: "https://apidoc.sysone.com/party/v1/open-api.html#/paths/~1v1~1parties~1%7Bidentification-type-code%7D~1%7Bidentification-value%7D~1onboarding/get",
482
+ requestMapper: (request) => ({ mappedParams: request }),
483
+ responseMapper: (response) => response.data,
484
+ },
485
+ },
486
+ POST_PARTY_ONBOARDING: {
487
+ default: {
488
+ url: 'party/v1/parties/{0}/{1}/onboarding',
489
+ method: exports.methods.POST,
490
+ source: "https://apidoc.sysone.com/party/v1/open-api.html#/paths/~1v1~1parties~1%7Bidentification-type-code%7D~1%7Bidentification-value%7D~1onboarding/post",
491
+ requestMapper: (request) => ({ mappedBody: request }),
492
+ responseMapper: (response) => response.data,
493
+ },
494
+ },
495
+ POST_AGE: {
496
+ default: {
497
+ url: '',
498
+ method: exports.methods.POST,
499
+ source: '',
500
+ requestMapper: (params) => ({ mappedBody: params }),
501
+ responseMapper: (response) => response,
502
+ },
503
+ cnp: {
504
+ url: 'party/v1/age',
505
+ method: exports.methods.POST,
506
+ source: 'https://developers-test.cnp.com.ar/api-details#api=party-api&operation=post-v1-age',
507
+ requestMapper: (params) => ({ mappedBody: params }),
508
+ responseMapper: (response) => response,
509
+ }
510
+ },
511
+ };
512
+ // ============================================================================
513
+ // PRODUCT MODULE
514
+ // ============================================================================
515
+ const productModule = {
516
+ GET_COVERAGES: {
517
+ default: {
518
+ url: 'product/v1/products/{0}/coverages',
519
+ method: exports.methods.GET,
520
+ requestMapper: (request) => ({ mappedParams: request }),
521
+ responseMapper: (response) => response.data,
522
+ },
523
+ cnp: {
524
+ url: 'party/v1/products/{0}/coverages',
525
+ method: exports.methods.GET,
526
+ source: "https://developers-test.cnp.com.ar/api-details#api=party-api&operation=get-v1-products-code-coverages-currencycode-currencycode-smoker-smoker",
527
+ requestMapper: request => ({ mappedParams: request }),
528
+ responseMapper: (response) => (0, party_1.getCoverages)(response.data),
529
+ },
530
+ },
531
+ GET_DISTRIBUTION_LIMITS: {
532
+ cnp: {
533
+ url: 'party/v1/products/{0}/savings-distribution',
534
+ method: exports.methods.GET,
535
+ source: "https://developers-test.cnp.com.ar/api-details#api=party-api&operation=get-v1-products-code-coverages-currencycode-currencycode-smoker-smoker",
536
+ requestMapper: request => ({ mappedParams: request }),
537
+ responseMapper: (response) => response.data,
538
+ },
539
+ },
540
+ GET_PRODUCTS_BY_SUBSECTIONS: {
541
+ default: {
542
+ url: 'product/v1/products',
543
+ method: exports.methods.GET,
544
+ source: 'https://apidoc.sysone.com/product/v1/open-api.html#/paths/~1v1~1products/get',
545
+ requestMapper: (request) => ({
546
+ mappedParams: request,
547
+ headers: {
548
+ 'X-Channel': 'L-ONE',
549
+ 'X-Subchannel': 'WEB'
550
+ }
551
+ }),
552
+ responseMapper: (response) => response.data,
553
+ },
554
+ cnp: {
555
+ url: 'party/v1/subsections/{0}/products',
556
+ method: exports.methods.GET,
557
+ source: "https://developers-test.cnp.com.ar/api-details#api=party-api&operation=get-v1-subsections-code-products",
558
+ requestMapper: request => ({ mappedParams: (0, party_1.getProductsBySubsections_Request)(request) }),
559
+ responseMapper: (response) => (0, quotation_1.getProductsBySubsections)(response.data),
560
+ },
561
+ },
562
+ GET_PRODUCT_PARAMETERS: {
563
+ cnp: {
564
+ url: `party/v1/products/{0}`,
565
+ method: exports.methods.GET,
566
+ requestMapper: request => ({ mappedParams: request }),
567
+ responseMapper: (response) => (0, quotation_1.getProductParameters)(response.data),
568
+ }
569
+ },
570
+ GET_MONETARY_GOALS: {
571
+ cnp: {
572
+ url: 'party/v1/products/{0}/monetary-goals',
573
+ method: exports.methods.GET,
574
+ source: "https://developers-test.cnp.com.ar/api-details#api=party-api&operation=get-v1-monetary-goals",
575
+ requestMapper: request => ({ mappedParams: request }),
576
+ responseMapper: (response) => response.data,
577
+ },
578
+ },
579
+ GET_SAVINGS_DISTRIBUTION: {
580
+ cnp: {
581
+ url: 'party/v1/products/{0}/savings-distribution',
582
+ method: exports.methods.GET,
583
+ source: "https://developers-test.cnp.com.ar/api-details#api=party-api&operation=get-v1-products-code-savings-distribution-goalcode-goalcode-goalamount-goala",
584
+ requestMapper: request => ({ mappedParams: request }),
585
+ responseMapper: (response) => response.data,
586
+ },
587
+ },
588
+ GET_QUOTATION_BENEFITS: {
589
+ cnp: {
590
+ url: 'party/v1/quotation-benefits',
591
+ method: exports.methods.GET,
592
+ source: "https://developers-test.cnp.com.ar/api-details#api=party-api&operation=get-v1-quotation-benefits",
593
+ requestMapper: request => ({ mappedParams: request }),
594
+ responseMapper: (response) => response.data,
595
+ },
596
+ },
597
+ GET_PRODUCT_SEGMENTS: {
598
+ default: {
599
+ url: "product/v1/products/{0}/segments",
600
+ source: "https://apidoc.sysone.com/product/v1/open-api.html#/paths/~1v1~1products~1%7Bcode%7D~1segments/get",
601
+ method: exports.methods.GET,
602
+ requestMapper: request => ({ mappedParams: request }),
603
+ responseMapper: response => response.data
604
+ },
605
+ cnp: {
606
+ url: "party/v1/products/{0}/segments",
607
+ source: "https://developers-test.cnp.com.ar/api-details#api=party-api&operation=get-v1-products-code-segments-provincecode-provincecode-birthdate-birthdate",
608
+ method: exports.methods.GET,
609
+ requestMapper: request => ({ mappedParams: request }),
610
+ responseMapper: response => response.data
611
+ }
612
+ },
613
+ };
614
+ // ============================================================================
615
+ // POLICY MODULE
616
+ // ============================================================================
617
+ const policyModule = {
618
+ GET_ENDORSEMENTS: {
619
+ default: {
620
+ url: 'policy/v1/policies/{0}/endorsements',
621
+ method: exports.methods.GET,
622
+ source: 'https://apidoc.sysone.com/policy/v1/open-api.html#/paths/~1v1~1policies~1%7Bcode%7D~1endorsements/get',
623
+ requestMapper: request => ({ mappedParams: request }),
624
+ responseMapper: (response) => response.data,
625
+ },
626
+ cnp: {
627
+ url: 'policy/v1/policy/{0}/{1}/endorsements',
628
+ method: exports.methods.GET,
629
+ source: 'https://developers-test.cnp.com.ar/api-details#api=policy-api&operation=get-v1-policy-policy-number-section-code-endorsements',
630
+ requestMapper: request => ({ mappedParams: (0, policy_1.getEndorsements_Request)(request) }),
631
+ responseMapper: (response) => (0, policy_1.getEndorsements_CNP)(response.data),
632
+ },
633
+ },
634
+ GET_INSUREDS: {
635
+ default: {
636
+ url: '{0}/v1/policies/{1}/insureds',
637
+ method: exports.methods.GET,
638
+ source: 'https://apidoc.sysone.com/policy-life/v1/open-api.html#/paths/~1v1~1policies~1%7Bcode%7D~1insureds/get',
639
+ requestMapper: (request) => ({ mappedParams: request }),
640
+ responseMapper: (response) => response.data,
641
+ },
642
+ cnp: {
643
+ url: 'policy/v1/policy/{0}/{1}/policy-insured',
644
+ method: exports.methods.GET,
645
+ source: 'https://developers-test.cnp.com.ar/api-details#api=policy-api&operation=get-v1-policy-policy-number-section-code-insureds',
646
+ requestMapper: request => ({ mappedParams: (0, policy_1.getInsureds_CNP_Request)(request) }),
647
+ responseMapper: (response) => (0, policy_1.getInsureds_CNP)(response.data),
648
+ },
649
+ },
650
+ GET_INSUREDS_BY_FILTERS: {
651
+ default: {
652
+ url: 'policy-life/v1/insureds',
653
+ method: exports.methods.GET,
654
+ source: 'https://apidoc.sysone.com/policy-life/v1/open-api.html#/paths/~1v1~1insureds/get',
655
+ requestMapper: (request) => ({ mappedParams: request }),
656
+ responseMapper: (response) => response.data,
657
+ },
658
+ },
659
+ GET_POLICIES: {
660
+ default: {
661
+ url: 'policy/v1/policies',
662
+ method: exports.methods.GET,
663
+ source: 'https://apidoc.sysone.com/policy/v1/open-api.html#/paths/~1v1~1policies/get',
664
+ requestMapper: (request) => ({ mappedParams: request }),
665
+ responseMapper: (response) => response.data,
666
+ },
667
+ cnp: {
668
+ url: 'policy/v1/policy',
669
+ method: exports.methods.GET,
670
+ source: "https://developers-test.cnp.com.ar/api-details#api=policy-api&operation=get-v1-policy-pagenumber-pagenumber-sort-sort-ordertype-ordertype-pagesize-p",
671
+ requestMapper: request => ({ mappedParams: (0, policy_1.getPolicies_CNP_Request)(request) }),
672
+ responseMapper: (response) => (0, policy_1.getPolicies_CNP)(response.data),
673
+ },
674
+ },
675
+ GET_POLICY_DETAIL: {
676
+ default: {
677
+ url: '/{0}/v1/policies/{1}/details',
678
+ method: exports.methods.GET,
679
+ source: 'https://apidoc.sysone.com/policy/v1/open-api.html#/paths/~1v1~1policies/get',
680
+ requestMapper: (request) => ({ mappedParams: request }),
681
+ responseMapper: (response) => response.data,
682
+ },
683
+ cnp: {
684
+ url: 'policy/v1/policy-individual/{0}/{1}/detail',
685
+ method: exports.methods.GET,
686
+ requestMapper: request => ({ mappedParams: (0, policy_1.getPolicyDetail_Request)(request) }),
687
+ responseMapper: (response) => (0, policy_1.getPolicyDetail_CNP)(response.data)
688
+ },
689
+ },
690
+ GET_COLLECTIONS: {
691
+ default: {
692
+ url: '/policy/v1/policies/{0}/collections',
693
+ method: exports.methods.GET,
694
+ requestMapper: (request) => ({ mappedParams: request }),
695
+ responseMapper: (response) => response.data,
696
+ },
697
+ cnp: {
698
+ url: 'policy/v1/policy-individual/{0}/{1}/detail',
699
+ method: exports.methods.GET,
700
+ requestMapper: request => ({ mappedParams: (0, policy_1.getPolicyCollection_Request)(request) }),
701
+ responseMapper: (response) => (0, policy_1.getPolicyCollection)(response.data)
702
+ },
703
+ },
704
+ GET_COLLECTIONS: {
705
+ default: {
706
+ url: '/policy/v1/policies/{0}/collections',
707
+ method: exports.methods.GET,
708
+ requestMapper: (request) => ({ mappedParams: request }),
709
+ responseMapper: (response) => response.data,
710
+ },
711
+ cnp: {
712
+ url: 'policy/v1/policy-individual/{0}/{1}/detail',
713
+ method: exports.methods.GET,
714
+ requestMapper: request => ({ mappedParams: (0, policy_1.getPolicyCollection_Request)(request) }),
715
+ responseMapper: (response) => (0, policy_1.getPolicyCollection)(response.data)
716
+ },
717
+ },
718
+ SEARCH_COLLECTIONS: {
719
+ default: {
720
+ url: 'collection/v1/collections',
721
+ method: exports.methods.GET,
722
+ requestMapper: (request) => ({ mappedParams: request }),
723
+ responseMapper: (response) => response.data,
724
+ },
725
+ },
726
+ GET_COLLECTION_STATUSES: {
727
+ default: {
728
+ url: "collection/v1/collection-statuses",
729
+ method: exports.methods.GET,
730
+ requestMapper: (request) => ({ mappedParams: request }),
731
+ responseMapper: (response) => response.data,
732
+ },
733
+ },
734
+ GET_POLICY_HOME_COLLECTIVE_DETAIL: {
735
+ default: {
736
+ url: 'policy-home/v1/policies/{0}/details',
737
+ method: exports.methods.GET,
738
+ source: 'https://apidoc.sysone.com/policy/v1/open-api.html#/paths/~1v1~1policies~1%7Bcode%7D~1details/get',
739
+ requestMapper: (request) => ({ mappedParams: request }),
740
+ responseMapper: (response) => response.data,
741
+ },
742
+ cnp: {
743
+ url: 'policy/v1/policy-individual/{0}/{1}/detail',
744
+ method: exports.methods.GET,
745
+ source: "https://developers-test.cnp.com.ar/api-details#api=policy-api&operation=get-v1-policy-individual-policy-number-section-code-detail",
746
+ requestMapper: request => ({ mappedParams: (0, policy_1.getPolicyCollectiveDetail_Request)(request) }),
747
+ responseMapper: (response) => (0, policy_1.getPolicyCollectiveDetail_CNP)(response.data),
748
+ },
749
+ },
750
+ GET_POLICY_HOME_INDIVIDUAL_DETAIL: {
751
+ default: {
752
+ url: 'policy-home/v1/policies/{0}/details',
753
+ method: exports.methods.GET,
754
+ source: 'https://apidoc.sysone.com/policy/v1/open-api.html#/paths/~1v1~1policies~1%7Bcode%7D~1details/get',
755
+ requestMapper: (request) => ({ mappedParams: request }),
756
+ responseMapper: (response) => response.data,
757
+ },
758
+ cnp: {
759
+ url: 'policy/v1/policy-individual/{0}/{1}/detail',
760
+ method: exports.methods.GET,
761
+ source: "https://developers-test.cnp.com.ar/api-details#api=policy-api&operation=get-v1-policy-individual-policy-number-section-code-detail",
762
+ requestMapper: request => ({ mappedParams: (0, policy_1.getPolicyIndividualDetail_Request)(request) }),
763
+ responseMapper: (response) => (0, policy_1.getPolicyDetail_CNP)(response.data),
764
+ },
765
+ },
766
+ GET_POLICY_LIFE_COLLECTIVE_DETAIL: {
767
+ default: {
768
+ url: 'policy-life/v1/policies/{0}/details',
769
+ method: exports.methods.GET,
770
+ source: 'https://apidoc.sysone.com/policy/v1/open-api.html#/paths/~1v1~1policies~1%7Bcode%7D~1details/get',
771
+ requestMapper: (request) => ({ mappedParams: request }),
772
+ responseMapper: (response) => response.data,
773
+ },
774
+ cnp: {
775
+ url: 'policy/v1/policy-individual/{0}/{1}/detail',
776
+ method: exports.methods.GET,
777
+ source: "https://developers-test.cnp.com.ar/api-details#api=policy-api&operation=get-v1-policy-individual-policy-number-section-code-detail",
778
+ requestMapper: request => ({ mappedParams: (0, policy_1.getPolicyCollectiveDetail_Request)(request) }),
779
+ responseMapper: (response) => (0, policy_1.getPolicyCollectiveDetail_CNP)(response.data),
780
+ },
781
+ },
782
+ GET_POLICY_LIFE_INDIVIDUAL_DETAIL: {
783
+ default: {
784
+ url: 'policy-life/v1/policies/{0}/details',
785
+ method: exports.methods.GET,
786
+ source: 'https://apidoc.sysone.com/policy/v1/open-api.html#/paths/~1v1~1policies~1%7Bcode%7D~1details/get',
787
+ requestMapper: (request) => ({ mappedParams: request }),
788
+ responseMapper: (response) => response.data,
789
+ },
790
+ cnp: {
791
+ url: 'policy/v1/policy-individual/{0}/{1}/detail',
792
+ method: exports.methods.GET,
793
+ source: "https://developers-test.cnp.com.ar/api-details#api=policy-api&operation=get-v1-policy-individual-policy-number-section-code-detail",
794
+ requestMapper: request => ({ mappedParams: (0, policy_1.getPolicyIndividualDetail_Request)(request) }),
795
+ responseMapper: (response) => (0, policy_1.getPolicyDetail_CNP)(response.data),
796
+ },
797
+ },
798
+ GET_POLICY_STATUSES: {
799
+ default: {
800
+ url: 'policy/v1/policy-statuses',
801
+ method: exports.methods.GET,
802
+ requestMapper: (request) => ({ mappedParams: request }),
803
+ responseMapper: (response) => response.data,
804
+ },
805
+ },
806
+ GET_BENEFICIRY_TYPES: {
807
+ cnp: {
808
+ url: 'policy/v1/beneficiary-types',
809
+ method: exports.methods.GET,
810
+ requestMapper: request => ({ mappedParams: request }),
811
+ responseMapper: (response) => response.data,
812
+ },
813
+ },
814
+ POST_INSURED_UPDATE: {
815
+ default: {
816
+ url: 'policy-life/v1/policies/{0}/insureds',
817
+ method: exports.methods.POST,
818
+ requestMapper: null,
819
+ source: 'https://apidoc.sysone.com/policy-life/v1/open-api.html#/paths/~1v1~1policies~1%7Bcode%7D~1insureds/post',
820
+ responseMapper: (response) => response,
821
+ },
822
+ cnp: {
823
+ url: 'v1/policy-collective/{0}/{1}/insureds',
824
+ method: exports.methods.POST,
825
+ requestMapper: null,
826
+ source: 'https://developers-test.cnp.com.ar/api-details#api=policy-api&operation=post-v1-policy-collective-policy-number-section-code-insureds',
827
+ responseMapper: (response) => (0, policy_1.postInsureds_CNP)(response),
828
+ },
829
+ },
830
+ GET_POLICY_CERTIFICATE: {
831
+ default: {
832
+ url: 'policy-{0}/v1/policies/{1}/certificate',
833
+ method: exports.methods.GET,
834
+ requestMapper: (request) => ({
835
+ mappedParams: request,
836
+ responseType: "arraybuffer",
837
+ }),
838
+ responseMapper: (response) => response.data,
839
+ },
840
+ }
841
+ };
842
+ // ============================================================================
843
+ // CLAIM MODULE
844
+ // ============================================================================
845
+ const claimModule = {
846
+ GET_CLAIMS: {
847
+ default: {
848
+ url: 'claim/v1/claims',
849
+ method: exports.methods.GET,
850
+ source: 'https://apidoc.sysone.com/claim/v1/open-api.html',
851
+ requestMapper: (request) => ({ mappedParams: request }),
852
+ responseMapper: (response) => response.data,
853
+ },
854
+ cnp: {
855
+ url: 'claim/v1/claim',
856
+ method: exports.methods.GET,
857
+ source: "https://developers-test.cnp.com.ar/api-details#api=claim-api&operation=get-v1-claim-pagenumber-pagenumber-pagesize-pagesize",
858
+ requestMapper: null,
859
+ responseMapper: (response) => (0, claim_1.getClaims_CNP)(response.data),
860
+ },
861
+ },
862
+ };
863
+ // ============================================================================
864
+ // QUOTATION MODULE
865
+ // ============================================================================
866
+ const quotationModule = {
867
+ GET_QUOTATION_BY_CODE: {
868
+ default: {
869
+ url: 'quotation/v1/quotations/{0}',
870
+ method: exports.methods.GET,
871
+ source: 'https://apidoc.sysone.com/quotation/v1/open-api.html#/paths/~1v1~1quotations~1%7Bcode%7D/get',
872
+ requestMapper: (request) => ({ mappedParams: request }),
873
+ responseMapper: (response) => response.data
874
+ },
875
+ cnp: {
876
+ url: 'quotation/v1/quotation/standard-plan/{0}',
877
+ method: exports.methods.GET,
878
+ source: 'https://developers-test.cnp.com.ar/api-details#api=quotation-api&operation=get-v1-quotation-standard-plan-number',
879
+ requestMapper: (request) => ({ mappedParams: (0, quotation_1.getQuotationByCode_Request)(request) }),
880
+ responseMapper: (response) => (0, quotation_1.getQuotationByCode)(response.data)
881
+ }
882
+ },
883
+ GET_QUOTATIONS: {
884
+ default: {
885
+ url: 'quotation/v1/quotations',
886
+ method: exports.methods.GET,
887
+ source: 'https://apidoc.sysone.com/quotation/v1/open-api.html#/paths/~1v1~1quotations/get',
888
+ requestMapper: (request) => ({ mappedParams: request }),
889
+ responseMapper: (response) => response.data
890
+ },
891
+ cnp: {
892
+ url: 'quotation/v1/quotations',
893
+ method: exports.methods.GET,
894
+ requestMapper: request => ({ mappedParams: (0, quotation_1.getQuotations_Request)(request) }),
895
+ responseMapper: (response) => (0, quotation_1.getQuotationsList)(response.data)
896
+ }
897
+ },
898
+ GET_QUOTATION_DETAILS: {
899
+ default: {
900
+ url: '{0}/v1/quotations/{1}',
901
+ method: exports.methods.GET,
902
+ requestMapper: (request) => ({ mappedParams: request }),
903
+ responseMapper: (response) => response.data
904
+ },
905
+ cnp: {
906
+ url: 'quotation/v1/quotations/{0}',
907
+ method: exports.methods.GET,
908
+ requestMapper: request => ({ mappedParams: request }),
909
+ responseMapper: (response) => (0, quotation_1.getQuotationDetail)(response.data)
910
+ }
911
+ },
912
+ GET_SWORN_STATEMENT: {
913
+ cnp: {
914
+ url: 'quotation/v1/quotations/{0}/questionnaires',
915
+ method: exports.methods.GET,
916
+ requestMapper: request => ({ mappedParams: request }),
917
+ responseMapper: (response) => response.data
918
+ }
919
+ },
920
+ GET_QUOTATION_REPORT: {
921
+ default: {
922
+ url: '{0}/v1/quotations/{1}/report',
923
+ method: exports.methods.GET,
924
+ requestMapper: (request) => ({
925
+ mappedParams: request,
926
+ responseType: "arraybuffer"
927
+ }),
928
+ responseMapper: (response) => response
929
+ },
930
+ cnp: {
931
+ url: '/quotation/v1/quotations/{0}/report',
932
+ method: exports.methods.GET,
933
+ requestMapper: (request) => ({
934
+ mappedParams: request,
935
+ headers: {
936
+ 'Accept': 'application/json',
937
+ }
938
+ }),
939
+ responseMapper: (response) => response
940
+ }
941
+ },
942
+ POST_CREATE_QUOTATION_STANDARD_PLAN: {
943
+ default: {
944
+ url: 'quotation/v1/quotations',
945
+ method: exports.methods.POST,
946
+ source: 'https://apidoc.sysone.com/quotation/v1/open-api.html#/paths/~1v1~1quotations/post',
947
+ requestMapper: (params) => ({
948
+ mappedBody: params
949
+ }),
950
+ responseMapper: (response) => response,
951
+ },
952
+ cnp: {
953
+ url: 'quotation/v1/quotation/standard-plan',
954
+ method: exports.methods.POST,
955
+ source: 'https://developers-test.cnp.com.ar/api-details#api=quotation-api&operation=post-v1-quotation-standard-plan',
956
+ requestMapper: (params) => ({
957
+ mappedBody: (0, quotation_1.quotationStandardPlanCreationMapped)(params)
958
+ }),
959
+ responseMapper: (response) => response,
960
+ }
961
+ },
962
+ POST_CREATE_QUOTATION_VARIABLE_PLAN: {
963
+ default: {
964
+ url: 'quotation/v1/quotations',
965
+ method: exports.methods.POST,
966
+ source: 'https://apidoc.sysone.com/quotation/v1/open-api.html#/paths/~1v1~1quotations/post',
967
+ requestMapper: (params) => ({
968
+ mappedBody: params
969
+ }),
970
+ responseMapper: (response) => response,
971
+ },
972
+ cnp: {
973
+ url: 'quotation/v1/quotation/variable-plan',
974
+ method: exports.methods.POST,
975
+ source: 'https://developers-test.cnp.com.ar/api-details#api=quotation-api&operation=post-v1-quotation-variable-plan',
976
+ requestMapper: (params) => ({
977
+ mappedBody: (0, quotation_1.quotationVariablePlanCreationMapped)(params)
978
+ }),
979
+ responseMapper: (response) => response,
980
+ }
981
+ },
982
+ POST_CALCULATE_LS: {
983
+ cnp: {
984
+ url: 'quotation/v1/quotations/calculate',
985
+ method: exports.methods.POST,
986
+ requestMapper: (params) => ({ mappedBody: params }),
987
+ responseMapper: (response) => response,
988
+ }
989
+ },
990
+ POST_CREATE_QUOTATION_LS: {
991
+ cnp: {
992
+ url: 'quotation/v1/quotations',
993
+ method: exports.methods.POST,
994
+ requestMapper: (params) => ({ mappedBody: params }),
995
+ responseMapper: (response) => response,
996
+ }
997
+ },
998
+ };
999
+ // ============================================================================
1000
+ // REQUEST MODULE
1001
+ // ============================================================================
1002
+ const requestModule = {
1003
+ GET_REQUESTS_LOOKUP: {
1004
+ default: {
1005
+ url: 'request/v1/requests',
1006
+ method: exports.methods.GET,
1007
+ source: 'https://apidoc.sysone.com/quotation/v1/open-api.html#/paths/~1v1~1quotations/get',
1008
+ requestMapper: (request) => ({ mappedParams: request }),
1009
+ responseMapper: (response) => response.data
1010
+ },
1011
+ cnp: {
1012
+ url: 'request/v1/request/savings',
1013
+ method: exports.methods.GET,
1014
+ requestMapper: request => ({ mappedParams: (0, request_1.getRequest_Params)(request) }),
1015
+ responseMapper: (response) => response.data
1016
+ }
1017
+ },
1018
+ GET_REQUEST_DETAIL: {
1019
+ default: {
1020
+ url: '{0}/v1/requests/{1}',
1021
+ method: exports.methods.GET,
1022
+ requestMapper: (request) => ({ mappedParams: request }),
1023
+ responseMapper: (response) => response.data
1024
+ },
1025
+ cnp: {
1026
+ url: '/request/v1/request/savings/{0}',
1027
+ method: exports.methods.GET,
1028
+ requestMapper: request => ({ mappedParams: request }),
1029
+ responseMapper: (response) => (0, request_1.getRequestDetail)(response.data)
1030
+ }
1031
+ },
1032
+ GET_REQUEST_REPORT: {
1033
+ default: {
1034
+ url: '{0}/v1/policies/{1}/certificate',
1035
+ method: exports.methods.GET,
1036
+ requestMapper: (request) => ({
1037
+ mappedParams: request,
1038
+ responseType: "arraybuffer"
1039
+ }),
1040
+ responseMapper: (response) => response
1041
+ },
1042
+ cnp: {
1043
+ url: '/request/v1/request/savings/{0}/report',
1044
+ method: exports.methods.GET,
1045
+ requestMapper: (request) => ({
1046
+ mappedParams: request,
1047
+ headers: {
1048
+ 'Accept': 'application/json',
1049
+ }
1050
+ }),
1051
+ responseMapper: (response) => response
1052
+ },
1053
+ },
1054
+ POST_REQUEST_SIGNATURE: {
1055
+ cnp: {
1056
+ url: '/request/v1/request/savings/{0}/signature',
1057
+ method: exports.methods.POST,
1058
+ requestMapper: (params) => ({ mappedBody: params }),
1059
+ responseMapper: (response) => response,
1060
+ }
1061
+ },
1062
+ POST_SEND_REQUEST_LIFE: {
1063
+ cnp: {
1064
+ url: '/request/v1/request/savings',
1065
+ method: exports.methods.POST,
1066
+ requestMapper: (params) => ({ mappedBody: params }),
1067
+ responseMapper: (response) => response,
1068
+ }
1069
+ },
1070
+ POST_SEND_REQUEST_HEALTH: {
1071
+ cnp: {
1072
+ url: '/request/v1/request/health',
1073
+ method: exports.methods.POST,
1074
+ requestMapper: (params) => ({ mappedBody: params }),
1075
+ responseMapper: (response) => response,
1076
+ }
1077
+ }
1078
+ };
1079
+ // ============================================================================
1080
+ // finance module
1081
+ // ============================================================================
1082
+ const financeModule = {
1083
+ GET_BANKS: {
1084
+ default: {
1085
+ url: 'finance/v1/banks',
1086
+ method: exports.methods.GET,
1087
+ requestMapper: (request) => ({ mappedParams: request }),
1088
+ responseMapper: (response) => response.data,
1089
+ },
1090
+ },
1091
+ GET_CREDIT_CARD_TYPES: {
1092
+ default: {
1093
+ url: "finance/v1/credit-card-types",
1094
+ method: exports.methods.GET,
1095
+ requestMapper: (request) => ({ mappedParams: request }),
1096
+ responseMapper: (response) => response.data,
1097
+ },
1098
+ },
1099
+ };
1100
+ // ============================================================================
1101
+ // MAIN CONFIGURATION EXPORT
1102
+ // ============================================================================
1103
+ exports.tenantsConfig = {
1104
+ ...configurationModule,
1105
+ ...intermediaryModule,
1106
+ ...partyModule,
1107
+ ...productModule,
1108
+ ...policyModule,
1109
+ ...claimModule,
1110
+ ...quotationModule,
1111
+ ...requestModule,
1112
+ ...billingModule,
1113
+ ...financeModule
1114
+ };