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