allegro / allegro/allegro-api

[NEWS] 20 lipca 2020 włączymy walidację parametrów zależnych / From July 20th, 2020, we will validate dependent parameters

未关闭
#3,422 0 条评论 0 个 reaction 已指派 1 人 已被 @PrzemyslawLukanowski 认领 在 GitHub 查看
News
主要语言
没有语言数据
星标
244
派生
40
PR 合并指标
30 天内没有已合并 PR

描述

Parametry zależne na tę chwilę udostępniliśmy tylko w jednej kategorii - **Klipsy** (123428). Jeśli jako wartość parametru głównego (**Materiał**) wybierzesz:

- “Złoto”, “Złoto białe” lub “Złoto różowe” - będziesz mógł wypełnić parametr “Próba złota”,
- “Srebro”, “Srebro tybetańskie” lub “Srebro pozłacane” - będziesz mógł wypełnić parametr “Próba srebra”.

**20 lipca 2020 włączymy walidację parametrów zależnych.** Oznacza to, że udostępnimy:

- parametr "Próba złota", tylko jeśli dla parametru "Materiał" wybierzesz wartość powiązaną ze złotem,
- parametr "Próba srebra", tylko jeśli dla parametru "Materiał" wybierzesz wartość powiązaną ze srebrem,
- oba parametry, jeśli wybierzesz wartości powiązane zarówno ze złotem, jak i srebrem,
- żaden z tych parametrów, jeśli "Materiał" nie jest powiązany ani ze złotem, ani ze srebrem.

W przypadku, gdy wybierzesz błędny parametr zależny, zwrócimy stosowny błąd, przykładowo:

` “Parametr zależny Próba złota nie może przyjąć wartości [999], gdy parametr Materiał ma wartości [Szkło, Stal]."`

Więcej informacji o parametrach zależnych znajdziesz w [naszym komunikacie](https://developer.allegro.pl/news/#dependent-parameters).

-----

Dependent parameters are currently available only in one Category - **Ear Clips** (123428). If you select the value of the main parameter (**Material**):

- “Gold”, “Pink Gold” or “White Gold” - you will be able to provide value for “Gold Hallmark” parameter,
- “Silver”, “Tibetan Silver” or “Silver-gilt” - you will be able to provide value for “Silver Hallmark” parameter,

**From July 20th, 2020, we will validate dependent parameters.** It means that you will be able to choose:

- “Gold Hallmark” parameter, only if you select the value associated with gold for the "Material" parameter,
- “Silver Hallmark” parameter, only if you select the value associated with silver for the "Material" parameter,
- both parameters, if you choose values associated with gold and silver,
- none of these parameters if "Material" is not associated with either gold or silver.

If you choose an invalid dependent parameter, we will return an appropriate error, for example:

`“Dependent parameter 206646 cannot take values [999] when parameter 15835 has values [Glass, Steel].”`

You can find more information about dependent parameters in [our news](https://developer.allegro.pl/en/news/#dependent-parameters).

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。