sysone-api-mapper 1.0.181 → 1.0.182

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.
@@ -13,7 +13,7 @@ export interface Api {
13
13
  getGenders: () => Promise<any>;
14
14
  getMaritalStatus: () => Promise<any>;
15
15
  getActivity: () => Promise<any>;
16
- getIdentificationTypes: (country: string) => Promise<any>;
16
+ getIdentificationTypes: (personType: string, country: string) => Promise<any>;
17
17
  getPaymentMethodsByPartyCode: (partyCode: string) => Promise<any>;
18
18
  updatePaymentMethodsByPartyCode: (partyCode: string, data: any) => Promise<any>;
19
19
  updatePerson: (partyCode: string, data: any) => Promise<any>;
@@ -6,7 +6,7 @@ export function partyAdapter(tenant: any): {
6
6
  getGenders: () => Promise<any>;
7
7
  getMaritalStatus: () => Promise<any>;
8
8
  getActivity: () => Promise<any>;
9
- getIdentificationTypes: (countryCode: any) => Promise<any>;
9
+ getIdentificationTypes: (personType: any, countryCode: any) => Promise<any>;
10
10
  getPaymentMethodsByPartyCode: (partyCode: any) => Promise<any>;
11
11
  updatePaymentMethodsByPartyCode: (partyCode: any, data: any) => Promise<any>;
12
12
  updatePerson: (partyCode: any, data: any) => Promise<any>;
@@ -10,7 +10,7 @@ const partyAdapter = (tenant) => ({
10
10
  getGenders: () => (0, Mapper_1.apiMapper)("GET_GENDERS", tenant),
11
11
  getMaritalStatus: () => (0, Mapper_1.apiMapper)("GET_MARITAL_STATUS", tenant),
12
12
  getActivity: () => (0, Mapper_1.apiMapper)("GET_ACTIVITY", tenant),
13
- getIdentificationTypes: (countryCode) => (0, Mapper_1.apiMapper)("GET_IDENTIFICATION_TYPES", tenant, [countryCode]),
13
+ getIdentificationTypes: (personType, countryCode) => (0, Mapper_1.apiMapper)("GET_IDENTIFICATION_TYPES", tenant, [personType, countryCode]),
14
14
  getPaymentMethodsByPartyCode: (partyCode) => (0, Mapper_1.apiMapper)("GET_PAYMENT_METHODS_BY_PARTY_CODE", tenant, [partyCode]),
15
15
  updatePaymentMethodsByPartyCode: (partyCode, data) => (0, Mapper_1.apiMapper)("PUT_PAYMENT_METHODS_BY_PARTY_CODE", tenant, [partyCode], data),
16
16
  updatePerson: (partyCode, data) => (0, Mapper_1.apiMapper)("PUT_PERSON", tenant, [partyCode], data),
@@ -213,7 +213,7 @@ const partyModule = {
213
213
  },
214
214
  GET_IDENTIFICATION_TYPES: {
215
215
  default: {
216
- url: 'party/v1/identification-types',
216
+ url: 'party/v1/identification-types?party-type-code={0}&country-code={1}',
217
217
  method: exports.methods.GET,
218
218
  source: 'https://apidoc.sysone.com/party/v1/open-api.html#/paths/~1v1~1identification-types/get',
219
219
  requestMapper: (request) => ({ mappedParams: request }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sysone-api-mapper",
3
- "version": "1.0.181",
3
+ "version": "1.0.182",
4
4
  "description": "Paquete mapper para portal de productores",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",