sysone-api-mapper 1.0.147 → 1.0.149

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.
Files changed (46) hide show
  1. package/{axiosInstance.js → dist/axiosInstance.js} +5 -7
  2. package/dist/index.d.ts +2 -2
  3. package/{index.ts → dist/index.js} +7 -20
  4. package/dist/services.js +92 -0
  5. package/dist/servicesData.js +996 -0
  6. package/dist/src/adapters/createApiAdapter.js +8 -0
  7. package/{src → dist/src}/adapters/financeAdapter.js +4 -5
  8. package/{src → dist/src}/adapters/locationAdapter.js +5 -6
  9. package/{src → dist/src}/adapters/partyAdapter.js +7 -8
  10. package/{src → dist/src}/components/notificationToast.js +35 -37
  11. package/dist/src/contexts/actionsContext.js +43 -0
  12. package/{src → dist/src}/contexts/apiContext.js +8 -9
  13. package/dist/src/contexts/translationContext.js +19 -0
  14. package/dist/src/mapper/Mapper.js +98 -0
  15. package/{src → dist/src}/mapper/endpointsConfig.js +821 -915
  16. package/{src → dist/src}/mapper/helpers/mappingHelpers.js +24 -26
  17. package/{src → dist/src}/mapper/modules/billing/index.js +128 -131
  18. package/{src → dist/src}/mapper/modules/claim/index.js +15 -17
  19. package/{src → dist/src}/mapper/modules/general/index.js +6 -7
  20. package/{src → dist/src}/mapper/modules/party/index.js +119 -128
  21. package/dist/src/mapper/modules/policy/index.js +573 -0
  22. package/dist/src/mapper/modules/quotation/index.js +477 -0
  23. package/{src → dist/src}/mapper/modules/request/index.js +60 -67
  24. package/dist/src/public/index.js +7 -0
  25. package/{src → dist/src}/server.js +18 -23
  26. package/package.json +4 -4
  27. package/.babelrc +0 -4
  28. package/.gitlab-ci.yml +0 -42
  29. package/config/dist/index.js +0 -307
  30. package/config/dist/index.js.LICENSE.txt +0 -1
  31. package/config/dist/index.ts +0 -319
  32. package/config/webpack.dev.js +0 -63
  33. package/config/webpack.prod.js +0 -63
  34. package/index.d.ts +0 -5
  35. package/services.js +0 -105
  36. package/servicesData.js +0 -1013
  37. package/src/adapters/createApiAdapter.ts +0 -29
  38. package/src/contexts/actionsContext.js +0 -54
  39. package/src/contexts/translationContext.js +0 -29
  40. package/src/mapper/Mapper.js +0 -141
  41. package/src/mapper/modules/policy/index.js +0 -613
  42. package/src/mapper/modules/quotation/index.js +0 -480
  43. package/src/public/index.html +0 -15
  44. package/src/public/index.js +0 -9
  45. package/test/script.js +0 -0
  46. package/tsconfig.json +0 -9
package/servicesData.js DELETED
@@ -1,1013 +0,0 @@
1
- export const modules = {
2
- PARTY: "PARTY_MODULE",
3
- INTERMEDIARY: "INTERMEDIARY_MODULE",
4
- COMMERCIAL_STRUCTURE: "COMMERCIAL_STRUCTURE_MODULE",
5
- POLICY: "POLICY_MODULE",
6
- BILLING: "BILLING_MODULE",
7
- COLLECTION: "COLLECTION_MODULE",
8
- ACCOUNTING: "ACCOUNTING_MODULE",
9
- CONFIGURATOR: "CONFIGURATOR_MODULE",
10
- //falta agregar los endpoints para billing, collection, accounting, configurator
11
- };
12
-
13
- export const methods = {
14
- GET: "GET",
15
- POST: "POST",
16
- PUT: "PUT",
17
- DELETE: "DELETE",
18
- };
19
-
20
- export const endpoints = {
21
- // *************** PARTY_MODULE ****************
22
- // ------PEOPLE-------
23
- GET_ACTIVITIES: "GET_ACTIVITIES",
24
- GET_PRACTICES: "GET_PRACTICES",
25
- SEARCH_INDIVIDUALS: "SEARCH_INDIVIDUALS",
26
- CREATE_INDIVIDUAL: "CREATE_INDIVIDUAL",
27
- GET_IDENTIFICATION_TYPES: "GET_IDENTIFICATION_TYPES",
28
- GET_RELATIONS: "GET_RELATIONS",
29
- GET_NOTES: "GET_NOTES",
30
- GET_FILES: "GET_FILES",
31
- GET_SECTORS: "GET_SECTORS",
32
- GET_FISCAL_CATEGORIES: "GET_FISCAL_CATEGORIES",
33
- GET_MAIL_TYPES: "GET_MAIL_TYPES",
34
- GET_PHONE_TYPES: "GET_PHONE_TYPES",
35
- UPDATE_NOTES: "UPDATE_NOTES",
36
- UPDATE_FILES: "UPDATE_FILES",
37
- ADD_RELATION_WITH_EXISTING_PARTY: "ADD_RELATION_WITH_EXISTING_PARTY",
38
- GET_RELATIONS_BY_PARTY_CODE: "GET_RELATIONS_BY_PARTY_CODE",
39
- REMOVE_RELATION: "REMOVE_RELATION",
40
- GET_FILE: "GET_FILE",
41
-
42
- //-ORGANIZATION-ENDPOINTS
43
- GET_ORGANIZATION_TYPES: "GET_ORGANIZATION_TYPES",
44
- SEARCH_ORGANIZATION: "SEARCH_ORGANIZATION",
45
- CREATE_ORGANIZATION: "CREATE_ORGANIZATION",
46
- GET_ORGANIZATION_BY_CODE: "GET_ORGANIZATION_BY_CODE",
47
- UPDATE_ORGANIZATION: "UPDATE_ORGANIZATION",
48
- ADD_RELATION_WITH_NEW_ORGANIZATION: "ADD_RELATION_WITH_NEW_ORGANIZATION",
49
-
50
- //-PEOPLE-ENDPOINTS
51
- GET_PERSON_BY_CODE: "GET_PERSON_BY_CODE",
52
- GET_GENDERS: "GET_GENDERS",
53
- GET_MARITAL_STATUSES: "GET_MARITAL_STATUSES",
54
- GET_WORKER_TYPES: "GET_WORKER_TYPES",
55
- GET_ECONOMIC_CLASSES: "GET_ECONOMIC_CLASSES",
56
- SEARCH_PERSON: "SEARCH_PERSON",
57
- UPDATE_PERSON: "UPDATE_PERSON",
58
- GET_RELATION_TYPES: "GET_RELATION_TYPES",
59
- ADD_RELATION_WITH_NEW_PERSON: "ADD_RELATION_WITH_NEW_PERSON",
60
-
61
- // ------POLICIES-------
62
- GET_POLICY_PROCESSES: "GET_POLICY_PROCESSES",
63
-
64
- // ------LOCATION-------
65
- GET_COUNTRIES: "GET_COUNTRIES",
66
- GET_COUNTRY_BY_CODE: "GET_COUNTRY_BY_CODE",
67
- GET_PROVINCES: "GET_PROVINCES",
68
- GET_CITIES: "GET_CITIES",
69
- GET_POSTAL_CODES: "GET_POSTAL_CODES",
70
- GET_ADDRESSES_BY_PARTY_CODE: "GET_ADDRESSES_BY_PARTY_CODE",
71
- GET_ADDRESS_TYPES: "GET_ADDRESS_TYPES",
72
-
73
- // ------FINANCE-------
74
- GET_PAYMENT_METHODS_BY_PARTY_CODE: "GET_PAYMENT_METHODS_BY_PARTY_CODE",
75
- GET_CREDIT_CARD_TYPES: "GET_CREDIT_CARD_TYPES",
76
- GET_CARD_PROVIDERS: "GET_CARD_PROVIDERS",
77
- UPDATE_PAYMENTS: "UPDATE_PAYMENTS",
78
- GET_BANKS: "GET_BANKS",
79
- GET_CURRENCIES: "GET_CURRENCIES",
80
- GET_BANK_ACCOUNT_TYPES: "GET_BANK_ACCOUNT_TYPES",
81
- GET_BANK_BRANCHES: "GET_BANK_BRANCHES",
82
-
83
- // **************** INTERMEDIARY_MODULE ****************
84
- // ------INTERMEDIARIES-------
85
- GET_PERSON_INTERMEDIARY_BY_CODE: "GET_PERSON_INTERMEDIARY_BY_CODE",
86
- GET_ORGANIZATION_INTERMEDIARY_BY_CODE:
87
- "GET_ORGANIZATION_INTERMEDIARY_BY_CODE",
88
- GET_INTERMEDIARIES_GROUPS: "GET_INTERMEDIARIES_GROUPS",
89
- GET_INTERMEDIARIES_ROLES: "GET_INTERMEDIARIES_ROLES",
90
- GET_INTERMEDIARY_STRUCTURES: "GET_INTERMEDIARY_STRUCTURES",
91
- SEARCH_INTERMEDIARIES: "SEARCH_INTERMEDIARIES",
92
- SEARCH_ACCOUNT_OFFICERS: "SEARCH_ACCOUNT_OFFICERS",
93
- GET_INTERMEDIARIES_STATES: "GET_INTERMEDIARIES_STATES",
94
- GET_INTERMEDIARIES_TYPES: "GET_INTERMEDIARIES_TYPES",
95
- CREATE_INTERMEDIARY_ASSOCIATED_WITH_PARTY:
96
- "CREATE_INTERMEDIARY_ASSOCIATED_WITH_PARTY",
97
- CREATE_INTERMEDIARY_WITH_WITH_PERSON: "CREATE_INTERMEDIARY_WITH_WITH_PERSON",
98
- CREATE_INTERMEDIARY_WITH_WITH_ORGANIZATION:
99
- "CREATE_INTERMEDIARY_WITH_WITH_ORGANIZATION",
100
- UPDATE_INTERMEDIARY: "UPDATE_INTERMEDIARY",
101
-
102
-
103
- // **************** COMMERCIAL_STRUCTURE_MODULE ****************
104
- // ------COMMERCIAL-STRUCTURES-------
105
- CREATE_COMMERCIAL_STRUCTURE: "CREATE_COMMERCIAL_STRUCTURE",
106
- GET_COMMERCIAL_STRUCTURE_STATUSES: "GET_COMMERCIAL_STRUCTURE_STATUSES",
107
- SEARCH_COMMERCIAL_STRUCTURE: "SEARCH_COMMERCIAL_STRUCTURE",
108
- GET_COMMERCIAL_STRUCTURES_BY_CODE: "GET_COMMERCIAL_STRUCTURES_BY_CODE",
109
- UPDATE_COMMERCIAL_STRUCTURE: "UPDATE_COMMERCIAL_STRUCTURE",
110
- UPDATE_COMMERCIAL_STRUCTURE_INTERMEDIARIES:
111
- "UPDATE_COMMERCIAL_STRUCTURE_INTERMEDIARIES",
112
-
113
- // ********************** POLICY_MODULE **********************
114
- // ------POLICIES-------
115
- GET_POLICY_SECTIONS: "GET_POLICY_SECTIONS",
116
- GET_POLICY_SUBSECTIONS: "GET_POLICY_SUBSECTIONS",
117
- GET_POLICY_PROCESSES: "GET_POLICY_PROCESSES",
118
- GET_POLICY_PRODUCTS: "GET_POLICY_PRODUCTS",
119
- GET_VALIDITY_TYPES: "GET_VALIDITY_TYPES",
120
- GET_POLICY_CARACTERS: "GET_POLICY_CARACTERS",
121
- GET_POLICY_TYPE_OF_DOCUMENTATION: "GET_POLICY_TYPE_OF_DOCUMENTATION",
122
- GET_PAYMENT_FREQUENCIES: "GET_PAYMENT_FREQUENCIES",
123
- GET_ASSOCIATE_TERMS_CONDITION: "GET_ASSOCIATE_TERMS_CONDITION",
124
- GET_ASSOCIATE_EXPENSES: "GET_ASSOCIATE_EXPENSES",
125
- GET_ASSOCIATE_COVERAGE: "GET_ASSOCIATE_COVERAGE",
126
- GET_COVERAGES: "GET_COVERAGES",
127
- GET_EXPENSEVALUES: "GET_EXPENSEVALUES",
128
- GET_MORTALITY_TABLE: "GET_MORTALITY_TABLE",
129
- CREATE_POLICY_STEP1: "CREATE_POLICY_STEP1",
130
- CREATE_POLICY_STEP2: "CREATE_POLICY_STEP2",
131
- CREATE_POLICY_STEP3: "CREATE_POLICY_STEP3",
132
- CREATE_POLICY_STEP4: "CREATE_POLICY_STEP4",
133
- CREATE_POLICY_STEP5: "CREATE_POLICY_STEP5",
134
- CREATE_POLICY_STEP6: "CREATE_POLICY_STEP6",
135
- CREATE_POLICY_STEP7: "CREATE_POLICY_STEP7",
136
- CREATE_POLICY_STEP8: "CREATE_POLICY_STEP8",
137
- CREATE_POLICY_STEP9: "CREATE_POLICY_STEP9",
138
- CREATE_POLICY_STEP10: "CREATE_POLICY_STEP10",
139
- CREATE_POLICY_STEP11: "CREATE_POLICY_STEP11",
140
- GET_STEP1_DATA: "GET_STEP1_DATA",
141
- GET_STEP2_DATA: "GET_STEP2_DATA",
142
- GET_STEP3_DATA: "GET_STEP3_DATA",
143
- GET_STEP4_DATA: "GET_STEP4_DATA",
144
- GET_STEP5_DATA: "GET_STEP5_DATA",
145
- GET_STEP6_DATA: "GET_STEP6_DATA",
146
- GET_STEP7_DATA: "GET_STEP7_DATA",
147
- GET_STEP9_DATA: "GET_STEP9_DATA",
148
- GET_STEP11_DATA: "GET_STEP11_DATA",
149
- GET_STEP11_FILE: "GET_STEP11_FILE",
150
- UPDATE_POLICY_STEP1: "UPDATE_POLICY_STEP1",
151
- GET_ISURED_PERSONS: "GET_ISURED_PERSONS",
152
- UPDATE_PARTY: "UPDATE_PARTY",
153
- GET_POLICY_DETAILS: "GET_POLICY_DETAILS",
154
- UPDATE_PAYMENTS: "UPDATE_PAYMENTS",
155
- CREATE_POLICY_RISK: "CREATE_POLICY_RISK",
156
- ACTIVATE_POLICY: "ACTIVATE_POLICY",
157
- COMPLETE_POLICY: "COMPLETE_POLICY",
158
- SET_POLICY_BUILDING: "SET_POLICY_BUILDING",
159
- SEARCH_POLICIES: "SEARCH_POLICIES",
160
- SEARCH_POLICY_GENERAL_CONDITIONS: "SEARCH_POLICY_GENERAL_CONDITIONS",
161
- GET_ASSURED_LIST: "GET_ASSURED_LIST",
162
- GET_ADHERENTS: "GET_ADHERENTS",
163
- GET_ADHERENTS_BY_OWNER: "GET_ADHERENTS_BY_OWNER",
164
- GET_OWNERS: "GET_OWNERS",
165
- GET_POLICY_ROLES: "GET_POLICY_ROLES",
166
- // ********************** CONFIGURATOR_MODULE **********************
167
- //CONFIGURATOR
168
- CREATE_PRODUCT: "CREATE_PRODUCT",
169
- };
170
-
171
- export const services = [
172
- {
173
- endpoint: endpoints.SEARCH_INDIVIDUALS,
174
- serviceName: "individuals",
175
- url: "party/v1/individuals",
176
- method: methods.GET,
177
- module: modules.PARTY,
178
- },
179
- {
180
- endpoint: endpoints.CREATE_INDIVIDUAL,
181
- serviceName: "individuals",
182
- url: "party/v1/individuals",
183
- method: methods.POST,
184
- module: modules.PARTY,
185
- },
186
- {
187
- endpoint: endpoints.GET_ACTIVITIES,
188
- serviceName: "activities",
189
- url: "party/v1/activities/{0}",
190
- method: methods.GET,
191
- module: modules.PARTY,
192
- },
193
- {
194
- endpoint: endpoints.GET_PRACTICES,
195
- serviceName: "practices",
196
- url: "party/v1/practices/{0}",
197
- method: methods.GET,
198
- module: modules.PARTY,
199
- },
200
- {
201
- endpoint: endpoints.GET_SECTORS,
202
- serviceName: "sectors",
203
- url: "party/v1/sectors",
204
- method: methods.GET,
205
- module: modules.PARTY,
206
- },
207
- {
208
- endpoint: endpoints.GET_FISCAL_CATEGORIES,
209
- serviceName: "fiscal-categories",
210
- url: "party/v1/fiscal-categories?party-type-code={0}&country-code={1}",
211
- method: methods.GET,
212
- module: modules.PARTY,
213
- },
214
- {
215
- endpoint: endpoints.GET_MAIL_TYPES,
216
- serviceName: "mail-types",
217
- url: "party/v1/mail-types",
218
- method: methods.GET,
219
- module: modules.PARTY,
220
- },
221
- {
222
- endpoint: endpoints.GET_PHONE_TYPES,
223
- serviceName: "phone-types",
224
- url: "party/v1/phone-types",
225
- method: methods.GET,
226
- module: modules.PARTY,
227
- },
228
- {
229
- endpoint: endpoints.GET_IDENTIFICATION_TYPES,
230
- serviceName: "identification-types",
231
- url: "party/v1/identification-types?party-type-code={0}&country-code={1}",
232
- method: methods.GET,
233
- module: modules.PARTY,
234
- },
235
- {
236
- endpoint: endpoints.GET_RELATIONS,
237
- serviceName: "parties/relations",
238
- url: "party/v1/parties/{0}/relations",
239
- method: methods.GET,
240
- module: modules.PARTY,
241
- },
242
- {
243
- endpoint: endpoints.GET_NOTES,
244
- serviceName: "parties/notes",
245
- url: "party/v1/parties/{0}/notes",
246
- method: methods.GET,
247
- module: modules.PARTY,
248
- },
249
- {
250
- endpoint: endpoints.GET_FILES,
251
- serviceName: "parties/files",
252
- url: "party/v1/parties/{0}/files",
253
- method: methods.GET,
254
- module: modules.PARTY,
255
- },
256
- {
257
- endpoint: endpoints.UPDATE_NOTES,
258
- serviceName: "parties/notes",
259
- url: "party/v1/parties/{0}/notes",
260
- method: methods.PUT,
261
- module: modules.PARTY,
262
- },
263
- {
264
- endpoint: endpoints.UPDATE_FILES,
265
- serviceName: "parties/files",
266
- url: "party/v1/parties/{0}/files",
267
- method: methods.PUT,
268
- module: modules.PARTY,
269
- },
270
- {
271
- endpoint: endpoints.ADD_RELATION_WITH_EXISTING_PARTY,
272
- serviceName: "parties/relations",
273
- url: "party/v1/parties/{0}/relations",
274
- method: methods.PUT,
275
- module: modules.PARTY,
276
- },
277
- {
278
- endpoint: endpoints.GET_RELATIONS_BY_PARTY_CODE,
279
- serviceName: "parties/relations",
280
- url: "party/v1/parties/{0}/relations",
281
- method: methods.GET,
282
- module: modules.PARTY,
283
- },
284
- {
285
- endpoint: endpoints.REMOVE_RELATION,
286
- serviceName: "parties/relations/disable",
287
- url: "party/v1/parties/{0}/relations/disable",
288
- method: methods.PUT,
289
- module: modules.PARTY,
290
- },
291
- {
292
- endpoint: endpoints.GET_FILE,
293
- serviceName: "parties/file",
294
- url: "party/v1/parties/{0}/file/{1}",
295
- method: methods.GET,
296
- module: modules.PARTY,
297
- },
298
- {
299
- endpoint: endpoints.SEARCH_ORGANIZATION,
300
- serviceName: "organisations",
301
- url: "party/v1/organisations",
302
- method: methods.GET,
303
- module: modules.PARTY,
304
- },
305
- {
306
- endpoint: endpoints.GET_ORGANIZATION_TYPES,
307
- serviceName: "organisation-types",
308
- url: "party/v1/organisation-types",
309
- method: methods.GET,
310
- module: modules.PARTY,
311
- },
312
- {
313
- endpoint: endpoints.CREATE_ORGANIZATION,
314
- serviceName: "organisations",
315
- url: "party/v1/organisations",
316
- method: methods.POST,
317
- module: modules.PARTY,
318
- },
319
- {
320
- endpoint: endpoints.UPDATE_ORGANIZATION,
321
- serviceName: "organisations",
322
- url: "party/v1/organisations/{0}",
323
- method: methods.PUT,
324
- module: modules.PARTY,
325
- },
326
- {
327
- endpoint: endpoints.GET_ORGANIZATION_BY_CODE,
328
- serviceName: "organisations",
329
- url: "party/v1/organisations/{0}",
330
- method: methods.GET,
331
- module: modules.PARTY,
332
- },
333
- {
334
- endpoint: endpoints.ADD_RELATION_WITH_NEW_ORGANIZATION,
335
- serviceName: "organisations/relations",
336
- url: "party/v1/organisations/{0}/relations",
337
- method: methods.PUT,
338
- module: modules.PARTY,
339
- },
340
- {
341
- endpoint: endpoints.UPDATE_PERSON,
342
- serviceName: "individuals",
343
- url: "party/v1/individuals/{0}",
344
- method: methods.PUT,
345
- module: modules.PARTY,
346
- },
347
- {
348
- endpoint: endpoints.SEARCH_PERSON,
349
- serviceName: "individuals",
350
- url: "party/v1/individuals",
351
- method: methods.GET,
352
- module: modules.PARTY,
353
- },
354
- {
355
- endpoint: endpoints.GET_PERSON_BY_CODE,
356
- serviceName: "individuals",
357
- url: "party/v1/individuals/{0}",
358
- method: methods.GET,
359
- module: modules.PARTY,
360
- },
361
- {
362
- endpoint: endpoints.GET_GENDERS,
363
- serviceName: "genders",
364
- url: "party/v1/genders",
365
- method: methods.GET,
366
- module: modules.PARTY,
367
- },
368
- {
369
- endpoint: endpoints.GET_MARITAL_STATUSES,
370
- serviceName: "marital-statuses",
371
- url: "party/v1/marital-statuses",
372
- method: methods.GET,
373
- module: modules.PARTY,
374
- },
375
- {
376
- endpoint: endpoints.GET_WORKER_TYPES,
377
- serviceName: "worker-types",
378
- url: "party/v1/worker-types",
379
- method: methods.GET,
380
- module: modules.PARTY,
381
- },
382
- {
383
- endpoint: endpoints.GET_ECONOMIC_CLASSES,
384
- serviceName: "economic-classes",
385
- url: "party/v1/economic-classes",
386
- method: methods.GET,
387
- module: modules.PARTY,
388
- },
389
- {
390
- endpoint: endpoints.GET_RELATION_TYPES,
391
- serviceName: "relation-types",
392
- url: "party/v1/relation-types/{0}",
393
- method: methods.GET,
394
- module: modules.PARTY,
395
- },
396
- {
397
- endpoint: endpoints.ADD_RELATION_WITH_NEW_PERSON,
398
- serviceName: "individuals/relations",
399
- url: "party/v1/individuals/{0}/relations",
400
- method: methods.PUT,
401
- module: modules.PARTY,
402
- },
403
- {
404
- endpoint: endpoints.GET_POLICY_PROCESSES,
405
- serviceName: "policy-statuses",
406
- url: "policy/v1/policy-statuses",
407
- method: methods.GET,
408
- module: modules.PARTY,
409
- },
410
- {
411
- endpoint: endpoints.GET_COUNTRIES,
412
- serviceName: "countries",
413
- url: "location/v1/countries",
414
- method: methods.GET,
415
- module: modules.PARTY,
416
- },
417
- {
418
- endpoint: endpoints.GET_COUNTRY_BY_CODE,
419
- serviceName: "countries",
420
- url: "location/v1/countries/{0}",
421
- method: methods.GET,
422
- module: modules.PARTY,
423
- },
424
- {
425
- endpoint: endpoints.GET_PROVINCES,
426
- serviceName: "countries/provinces",
427
- url: "location/v1/countries/{0}/provinces",
428
- method: methods.GET,
429
- module: modules.PARTY,
430
- },
431
- {
432
- endpoint: endpoints.GET_CITIES,
433
- serviceName: "provinces/cities",
434
- url: "location/v1/provinces/{0}/cities",
435
- method: methods.GET,
436
- module: modules.PARTY,
437
- },
438
- {
439
- endpoint: endpoints.GET_POSTAL_CODES,
440
- serviceName: "cities/postal-codes",
441
- url: "location/v1/cities/{0}/postal-codes",
442
- method: methods.GET,
443
- module: modules.PARTY,
444
- },
445
- {
446
- endpoint: endpoints.GET_ADDRESSES_BY_PARTY_CODE,
447
- serviceName: "party/addresses",
448
- url: "location/v1/party/{0}/addresses",
449
- method: methods.GET,
450
- module: modules.PARTY,
451
- },
452
- {
453
- endpoint: endpoints.GET_ADDRESS_TYPES,
454
- serviceName: "address-types",
455
- url: "location/v1/address-types",
456
- method: methods.GET,
457
- module: modules.PARTY,
458
- },
459
- {
460
- endpoint: endpoints.GET_PAYMENT_METHODS_BY_PARTY_CODE,
461
- serviceName: "parties/payment-methods",
462
- url: "party/v1/parties/{0}/payment-methods",
463
- method: methods.GET,
464
- module: modules.PARTY,
465
- },
466
- {
467
- endpoint: endpoints.GET_CREDIT_CARD_TYPES,
468
- serviceName: "credit-card-types",
469
- url: "finance/v1/credit-card-types",
470
- method: methods.GET,
471
- module: modules.PARTY,
472
- },
473
- {
474
- endpoint: endpoints.GET_CARD_PROVIDERS,
475
- serviceName: "card-providers",
476
- url: "finance/v1/card-providers",
477
- method: methods.GET,
478
- module: modules.PARTY,
479
- },
480
- {
481
- endpoint: endpoints.UPDATE_PAYMENTS,
482
- serviceName: "parties/payment-methods",
483
- url: "party/v1/parties/{0}/payment-methods",
484
- method: methods.PUT,
485
- module: modules.PARTY,
486
- },
487
- {
488
- endpoint: endpoints.GET_BANKS,
489
- serviceName: "banks",
490
- url: "finance/v1/banks",
491
- method: methods.GET,
492
- module: modules.PARTY,
493
- },
494
- {
495
- endpoint: endpoints.GET_CURRENCIES,
496
- serviceName: "currencies",
497
- url: "finance/v1/currencies",
498
- method: methods.GET,
499
- module: modules.PARTY,
500
- },
501
- {
502
- endpoint: endpoints.GET_BANK_ACCOUNT_TYPES,
503
- serviceName: "bank-account-types",
504
- url: "finance/v1/bank-account-types",
505
- method: methods.GET,
506
- module: modules.PARTY,
507
- },
508
- {
509
- endpoint: endpoints.GET_BANK_BRANCHES,
510
- serviceName: "banks/branches",
511
- url: "finance/v1/banks/{0}/branches",
512
- method: methods.GET,
513
- module: modules.PARTY,
514
- },
515
- {
516
- endpoint: endpoints.SEARCH_INTERMEDIARIES,
517
- serviceName: "intermediary",
518
- url: "intermediary/v1/intermediary",
519
- method: methods.GET,
520
- module: modules.INTERMEDIARY,
521
- },
522
- {
523
- endpoint: endpoints.GET_PERSON_INTERMEDIARY_BY_CODE,
524
- serviceName: "intermediary-individual",
525
- url: "intermediary/v1/intermediary-individual/{0}",
526
- method: methods.GET,
527
- module: modules.INTERMEDIARY,
528
- },
529
- {
530
- endpoint: endpoints.GET_ORGANIZATION_INTERMEDIARY_BY_CODE,
531
- serviceName: "intermediary-organisation",
532
- url: "intermediary/v1/intermediary-organisation/{0}",
533
- method: methods.GET,
534
- module: modules.INTERMEDIARY,
535
- },
536
- {
537
- endpoint: endpoints.GET_INTERMEDIARIES_GROUPS,
538
- serviceName: "intermediary-groups",
539
- url: "intermediary/v1/intermediary-groups",
540
- method: methods.GET,
541
- module: modules.INTERMEDIARY,
542
- },
543
- {
544
- endpoint: endpoints.GET_INTERMEDIARIES_ROLES,
545
- serviceName: "intermediary-roles",
546
- url: "intermediary/v1/intermediary-roles",
547
- method: methods.GET,
548
- module: modules.INTERMEDIARY,
549
- },
550
- {
551
- endpoint: endpoints.GET_INTERMEDIARY_STRUCTURES,
552
- serviceName: "intermediary-structures",
553
- url: "intermediary/v1/intermediary/{0}/commercial-structures",
554
- method: methods.GET,
555
- module: modules.INTERMEDIARY,
556
- },
557
- {
558
- endpoint: endpoints.GET_INTERMEDIARIES_STATES,
559
- serviceName: "commercial-structure-statuses",
560
- url: "intermediary/v1/commercial-structure-statuses",
561
- method: methods.GET,
562
- module: modules.INTERMEDIARY,
563
- },
564
- {
565
- endpoint: endpoints.GET_INTERMEDIARIES_TYPES,
566
- serviceName: "intermediary-types",
567
- url: "intermediary/v1/intermediary-types",
568
- method: methods.GET,
569
- module: modules.INTERMEDIARY,
570
- },
571
- {
572
- endpoint: endpoints.CREATE_INTERMEDIARY_ASSOCIATED_WITH_PARTY,
573
- serviceName: "intermediary-party-association",
574
- url: "intermediary/v1/intermediary-party-association",
575
- method: methods.POST,
576
- module: modules.INTERMEDIARY,
577
- },
578
- {
579
- endpoint: endpoints.CREATE_INTERMEDIARY_WITH_WITH_PERSON,
580
- serviceName: "intermediary-individual",
581
- url: "intermediary/v1/intermediary-individual",
582
- method: methods.POST,
583
- module: modules.INTERMEDIARY,
584
- },
585
- {
586
- endpoint: endpoints.CREATE_INTERMEDIARY_WITH_WITH_ORGANIZATION,
587
- serviceName: "intermediary-organisation",
588
- url: "intermediary/v1/intermediary-organisation",
589
- method: methods.POST,
590
- module: modules.INTERMEDIARY,
591
- },
592
- {
593
- endpoint: endpoints.UPDATE_INTERMEDIARY,
594
- serviceName: "intermediary",
595
- url: "intermediary/v1/intermediary/{0}",
596
- method: methods.PUT,
597
- module: modules.INTERMEDIARY,
598
- },
599
- {
600
- endpoint: endpoints.SEARCH_COMMERCIAL_STRUCTURE,
601
- serviceName: "commercial-structures",
602
- url: "intermediary/v1/commercial-structures",
603
- method: methods.GET,
604
- module: modules.COMMERCIAL_STRUCTURE,
605
- },
606
- {
607
- endpoint: endpoints.CREATE_COMMERCIAL_STRUCTURE,
608
- serviceName: "commercial-structures",
609
- url: "intermediary/v1/commercial-structures",
610
- method: methods.POST,
611
- module: modules.COMMERCIAL_STRUCTURE,
612
- },
613
- {
614
- endpoint: endpoints.GET_COMMERCIAL_STRUCTURE_STATUSES,
615
- serviceName: "commercial-structure-statuses",
616
- url: "intermediary/v1/commercial-structure-statuses",
617
- method: methods.GET,
618
- module: modules.COMMERCIAL_STRUCTURE,
619
- },
620
- {
621
- endpoint: endpoints.GET_COMMERCIAL_STRUCTURES_BY_CODE,
622
- serviceName: "commercial-structures",
623
- url: "intermediary/v1/commercial-structures/{0}",
624
- method: methods.GET,
625
- module: modules.COMMERCIAL_STRUCTURE,
626
- },
627
- {
628
- endpoint: endpoints.UPDATE_COMMERCIAL_STRUCTURE,
629
- serviceName: "commercial-structures",
630
- url: "intermediary/v1/commercial-structures/{0}",
631
- method: methods.PUT,
632
- module: modules.COMMERCIAL_STRUCTURE,
633
- },
634
- {
635
- endpoint: endpoints.UPDATE_COMMERCIAL_STRUCTURE_INTERMEDIARIES,
636
- serviceName: "commercial-structures/intermediaries",
637
- url: "intermediary/v1/commercial-structures/{0}/intermediaries",
638
- method: methods.PUT,
639
- module: modules.COMMERCIAL_STRUCTURE,
640
- },
641
-
642
- {
643
- endpoint: endpoints.SEARCH_POLICIES,
644
- serviceName: "policies",
645
- url: "policy/v1/policies",
646
- method: methods.GET,
647
- module: modules.POLICY,
648
- },
649
- {
650
- endpoint: endpoints.GET_POLICY_SECTIONS,
651
- serviceName: "sections",
652
- url: "product/v1/sections",
653
- method: methods.GET,
654
- module: modules.POLICY,
655
- },
656
- {
657
- endpoint: endpoints.GET_POLICY_SUBSECTIONS,
658
- serviceName: "sections/subsections",
659
- url: "product/v1/sections/{0}/subsections",
660
- method: methods.GET,
661
- module: modules.POLICY,
662
- },
663
- {
664
- endpoint: endpoints.GET_POLICY_PROCESSES,
665
- serviceName: "policy-statuses",
666
- url: "policy/v1/policy-statuses",
667
- method: methods.GET,
668
- module: modules.POLICY,
669
- },
670
- {
671
- endpoint: endpoints.GET_POLICY_PRODUCTS,
672
- serviceName: "subsections/products",
673
- url: "product/v1/subsections/{0}/products",
674
- method: methods.GET,
675
- module: modules.POLICY,
676
- },
677
- {
678
- endpoint: endpoints.GET_VALIDITY_TYPES,
679
- serviceName: "policy-validities",
680
- url: "policy/v1/policy-validities",
681
- method: methods.GET,
682
- module: modules.POLICY,
683
- },
684
- {
685
- endpoint: endpoints.GET_POLICY_CARACTERS,
686
- serviceName: "wording-types",
687
- url: "product/v1/wording-types",
688
- method: methods.GET,
689
- module: modules.POLICY,
690
- },
691
- {
692
- endpoint: endpoints.SEARCH_POLICY_GENERAL_CONDITIONS,
693
- serviceName: "wordings",
694
- url: "/product/v1/products/{0}/wordings",
695
- method: methods.GET,
696
- module: modules.POLICY,
697
- },
698
- {
699
- endpoint: endpoints.GET_POLICY_TYPE_OF_DOCUMENTATION,
700
- serviceName: "file-types",
701
- url: "policy/v1/file-types",
702
- method: methods.GET,
703
- module: modules.POLICY,
704
- },
705
- {
706
- endpoint: endpoints.GET_PAYMENT_FREQUENCIES,
707
- serviceName: "payment-frequencies",
708
- url: "policy/v1/payment-frequencies",
709
- method: methods.GET,
710
- module: modules.POLICY,
711
- },
712
- {
713
- endpoint: endpoints.GET_ASSOCIATE_TERMS_CONDITION,
714
- serviceName: "terms",
715
- url: "policy/v1/policies/{0}/terms",
716
- method: methods.GET,
717
- module: modules.POLICY,
718
- },
719
- {
720
- endpoint: endpoints.GET_ASSOCIATE_EXPENSES,
721
- serviceName: "expenses",
722
- url: "policy/v1/policies/{0}/expenses",
723
- method: methods.GET,
724
- module: modules.POLICY,
725
- },
726
- {
727
- endpoint: endpoints.GET_ASSOCIATE_COVERAGE,
728
- serviceName: "coverages",
729
- url: "policy-life/v1/policies/{0}/coverages",
730
- method: methods.GET,
731
- module: modules.POLICY,
732
- },
733
- {
734
- endpoint: endpoints.GET_COVERAGES,
735
- serviceName: "coverages",
736
- url: "product/v1/products/{0}/coverages",
737
- method: methods.GET,
738
- module: modules.POLICY,
739
- },
740
- {
741
- endpoint: endpoints.GET_EXPENSEVALUES,
742
- serviceName: "expenses",
743
- url: "/product/v1/products/{0}/expenses",
744
- method: methods.GET,
745
- module: modules.POLICY,
746
- },
747
- {
748
- endpoint: endpoints.GET_MORTALITY_TABLE,
749
- serviceName: "mortality-tables",
750
- url: "policy-life/v1/mortality-tables",
751
- method: methods.GET,
752
- module: modules.POLICY,
753
- },
754
- {
755
- endpoint: endpoints.CREATE_POLICY_STEP1,
756
- serviceName: "policies",
757
- url: "policy/v1/policies",
758
- method: methods.POST,
759
- module: modules.POLICY,
760
- },
761
- {
762
- endpoint: endpoints.CREATE_POLICY_STEP2,
763
- serviceName: "policies/roles",
764
- url: "policy/v1/policies/{0}/roles",
765
- method: methods.PUT,
766
- module: modules.POLICY,
767
- },
768
- {
769
- endpoint: endpoints.CREATE_POLICY_STEP3,
770
- serviceName: "policies/collections",
771
- url: "policy/v1/policies/{0}/collections",
772
- method: methods.PUT,
773
- module: modules.POLICY,
774
- },
775
- {
776
- endpoint: endpoints.CREATE_POLICY_STEP4,
777
- serviceName: "policies/commercial-structures",
778
- url: "policy/v1/policies/{0}/commercial-structures",
779
- method: methods.PUT,
780
- module: modules.POLICY,
781
- },
782
- {
783
- endpoint: endpoints.CREATE_POLICY_STEP5,
784
- serviceName: "policies/products",
785
- url: "policy-life/v1/policies/{0}/products",
786
- method: methods.PUT,
787
- module: modules.POLICY,
788
- },
789
- {
790
- endpoint: endpoints.CREATE_POLICY_STEP6,
791
- serviceName: "policies/coverages",
792
- url: "policy-life/v1/policies/{0}/coverages",
793
- method: methods.PUT,
794
- module: modules.POLICY,
795
- },
796
- {
797
- endpoint: endpoints.CREATE_POLICY_STEP7,
798
- serviceName: "policies/insurables",
799
- url: "policy-life/v1/policies/{0}/insurables",
800
- method: methods.PUT,
801
- module: modules.POLICY,
802
- },
803
- {
804
- endpoint: endpoints.CREATE_POLICY_STEP8,
805
- serviceName: "policies/expenses",
806
- url: "policy/v1/policies/{0}/expenses",
807
- method: methods.PUT,
808
- module: modules.POLICY,
809
- },
810
- {
811
- endpoint: endpoints.CREATE_POLICY_STEP9,
812
- serviceName: "policies/wordings",
813
- url: "policy/v1/policies/{0}/wordings",
814
- method: methods.PUT,
815
- module: modules.POLICY,
816
- },
817
- {
818
- endpoint: endpoints.CREATE_POLICY_STEP10,
819
- serviceName: "policies/terms",
820
- url: "policy/v1/policies/{0}/terms",
821
- method: methods.PUT,
822
- module: modules.POLICY,
823
- },
824
- {
825
- endpoint: endpoints.CREATE_POLICY_STEP11,
826
- serviceName: "policies/documentation",
827
- url: "policy/v1/policies/{0}/documentation",
828
- method: methods.PUT,
829
- module: modules.POLICY,
830
- },
831
- {
832
- endpoint: endpoints.GET_STEP1_DATA,
833
- serviceName: "policies",
834
- url: "policy/v1/policies/{0}",
835
- method: methods.GET,
836
- module: modules.POLICY,
837
- },
838
- {
839
- endpoint: endpoints.GET_STEP2_DATA,
840
- serviceName: "policies/roles",
841
- url: "policy/v1/policies/{0}/roles",
842
- method: methods.GET,
843
- module: modules.POLICY,
844
- },
845
- {
846
- endpoint: endpoints.GET_STEP3_DATA,
847
- serviceName: "policies/collections",
848
- url: "policy/v1/policies/{0}/collections",
849
- method: methods.GET,
850
- module: modules.POLICY,
851
- },
852
- {
853
- endpoint: endpoints.GET_STEP4_DATA,
854
- serviceName: "policies/commercial-structures",
855
- url: "policy/v1/policies/{0}/commercial-structures",
856
- method: methods.GET,
857
- module: modules.POLICY,
858
- },
859
- {
860
- endpoint: endpoints.GET_STEP5_DATA,
861
- serviceName: "policies/products",
862
- url: "policy/v1/policies/{0}/products",
863
- method: methods.GET,
864
- module: modules.POLICY,
865
- },
866
- {
867
- endpoint: endpoints.GET_STEP6_DATA,
868
- serviceName: "policies/coverages",
869
- url: "policy-life/v1/policies/{0}/coverages",
870
- method: methods.GET,
871
- module: modules.POLICY,
872
- },
873
- {
874
- endpoint: endpoints.GET_STEP7_DATA,
875
- serviceName: "policies/insurables",
876
- url: "policy-life/v1/policies/{0}/insurables",
877
- method: methods.GET,
878
- module: modules.POLICY,
879
- },
880
- {
881
- endpoint: endpoints.GET_STEP9_DATA,
882
- serviceName: "policies/wordings",
883
- url: "policy/v1/policies/{0}/wordings",
884
- method: methods.GET,
885
- module: modules.POLICY,
886
- },
887
- {
888
- endpoint: endpoints.GET_STEP11_DATA,
889
- serviceName: "policies/documentation",
890
- url: "policy/v1/policies/{0}/documentation",
891
- method: methods.GET,
892
- module: modules.POLICY,
893
- },
894
- {
895
- endpoint: endpoints.GET_STEP11_FILE,
896
- serviceName: "policies/file",
897
- url: "policy/v1/policies/{0}/file/{1}",
898
- method: methods.GET,
899
- module: modules.POLICY,
900
- },
901
- {
902
- endpoint: endpoints.UPDATE_POLICY_STEP1,
903
- serviceName: "policies",
904
- url: "policy/v1/policies/{0}",
905
- method: methods.PUT,
906
- module: modules.POLICY,
907
- },
908
- {
909
- endpoint: endpoints.GET_ISURED_PERSONS,
910
- serviceName: "insurables",
911
- url: "policy-life/v1/products/{0}/insurables",
912
- method: methods.GET,
913
- module: modules.POLICY,
914
- },
915
- {
916
- endpoint: endpoints.UPDATE_PARTY,
917
- serviceName: "parties",
918
- url: "policy/v1/parties/{0}",
919
- method: methods.PUT,
920
- module: modules.POLICY,
921
- },
922
- {
923
- endpoint: endpoints.GET_POLICY_DETAILS,
924
- serviceName: "policies/details",
925
- url: "policy-life/v1/policies/{0}/details",
926
- method: methods.GET,
927
- module: modules.POLICY,
928
- },
929
- {
930
- endpoint: endpoints.UPDATE_PAYMENTS,
931
- serviceName: "policies/collections",
932
- url: "policy/v1/policies/collections",
933
- method: methods.PUT,
934
- module: modules.POLICY,
935
- },
936
- {
937
- endpoint: endpoints.CREATE_POLICY_RISK,
938
- serviceName: "policies",
939
- url: "policy-life/v1/policies/{0}/insureds",
940
- method: methods.POST,
941
- module: modules.POLICY,
942
- },
943
- {
944
- endpoint: endpoints.ACTIVATE_POLICY,
945
- serviceName: "policies/activate",
946
- url: "policy-life/v1/policies/{0}/activate",
947
- method: methods.PUT,
948
- module: modules.POLICY,
949
- },
950
- {
951
- endpoint: endpoints.COMPLETE_POLICY,
952
- serviceName: "policies/complete",
953
- url: "/policy-life/v1/policies/{0}/complete",
954
- method: methods.PUT,
955
- module: modules.POLICY,
956
- },
957
- {
958
- endpoint: endpoints.SET_POLICY_BUILDING,
959
- serviceName: "policies/build",
960
- url: "policy-life/v1/policies/{0}/build",
961
- method: methods.PUT,
962
- module: modules.POLICY,
963
- },
964
- {
965
- endpoint: endpoints.GET_POLICY_ROLES,
966
- serviceName: "policies/roles",
967
- url: "policy/v1/policies/{0}/roles",
968
- method: methods.GET,
969
- module: modules.POLICY,
970
- },
971
- {
972
- endpoint: endpoints.GET_ASSURED_LIST,
973
- serviceName: "insureds",
974
- url: "policy-life/v1/policies/{0}/insureds",
975
- method: methods.GET,
976
- module: modules.POLICY,
977
- },
978
- {
979
- endpoint: endpoints.GET_ADHERENTS,
980
- serviceName: "adherents",
981
- url: "policy-life/v1/adherents/{0}",
982
- method: methods.GET,
983
- module: modules.POLICY,
984
- },
985
- {
986
- endpoint: endpoints.GET_OWNERS,
987
- serviceName: "owners",
988
- url: "policy-life/v1/owners/{0}",
989
- method: methods.GET,
990
- module: modules.POLICY,
991
- },
992
- {
993
- endpoint: endpoints.GET_ADHERENTS_BY_OWNER,
994
- serviceName: "owners/adherents",
995
- url: "policy-life/v1/owners/{0}/adherents",
996
- method: methods.GET,
997
- module: modules.POLICY,
998
- },
999
- {
1000
- endpoint: endpoints.SEARCH_ACCOUNT_OFFICERS,
1001
- serviceName: "account-officers",
1002
- url: "intermediary/v1/account-officers",
1003
- method: methods.GET,
1004
- module: modules.INTERMEDIARY,
1005
- },
1006
- {
1007
- endpoint: endpoints.CREATE_PRODUCT,
1008
- serviceName: "configurator-product-creation", // modificar cuando agregan service para modulo configurator
1009
- url: "policy-life/v1/products",
1010
- method: methods.POST,
1011
- module: modules.CONFIGURATOR,
1012
- },
1013
- ];