mallgroup / mpapi-client-php

MPAPI client is a PHP tool created to help Internet Mall, a. s. partners easily manage article catalog, deliveries, orders, etc. using Mall Marketplace API.
Apache License 2.0
6 stars 19 forks source link

API SDK returns different field keys for Category Param Id and Value #42

Open DRN88 opened 1 year ago

DRN88 commented 1 year ago

Stated in Category.md

  {
    "categoryParamId": "SURFACE",
    "title": "Povrch",
    "unit": "",
    "values": [
      {
        "id": "BRON ELOX",
        "text": "bronzový elox"
      },
      {
        "id": "CHROME",
        "text": "chrom"
      },
      ...
    ]
  },

Actual

  7 => array:4 [
    "paramId" => "LISTING_DESCRIPTION"
    "title" => "A lista leírása"
    "unit" => ""
    "values" => array:3 [
      0 => array:2 [
        "value" => "BASIC"
        "text" => "alapvető"
      ]
      1 => array:2 [
        "value" => "UPGRADE"
        "text" => "frissítés"
      ]
      2 => array:2 [
        "value" => "PREMIUM"
        "text" => "prémium"
      ]
    ]

categoryParamId vs paramId and id vs value