sysone-api-mapper 1.0.45 → 1.0.47

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sysone-api-mapper",
3
- "version": "1.0.45",
3
+ "version": "1.0.47",
4
4
  "description": "Paquete mapper para portal de productores",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -191,7 +191,7 @@ export const tenantsConfig = {
191
191
  },
192
192
  GET_MONETARY_GOALS: {
193
193
  cnp: {
194
- url: 'party/v1/monetary-goals',
194
+ url: 'party/v1/products/{0}/monetary-goals',
195
195
  method: methods.GET,
196
196
  source: "https://developers-test.cnp.com.ar/api-details#api=party-api&operation=get-v1-monetary-goals",
197
197
  requestMapper: request => ({ mappedParams: request }),
@@ -273,7 +273,7 @@ export const getActivityList = async (response) => {
273
273
 
274
274
  export const getProductsBySubsections = async (response) => {
275
275
  const objectMapped = {
276
- values: response.map(item => ({
276
+ values: response.products.map(item => ({
277
277
  name: item.name,
278
278
  code: item.code,
279
279
  version: item.version,