You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
При расчете стоимости доставки через api есть возможность передать параметры доп услуг services, но в случае с последней версией SDK в базовом классе https://github.com/cdek-it/sdk2.0/blob/master/src/BaseTypes/Tariff.php отсутствует возможность передать параметры доп услуг через базовый тип https://github.com/cdek-it/sdk2.0/blob/master/src/BaseTypes/Services.php хотелось бы иметь такую возможность.
Сейчас параметры услуг можно передать только через массив и придется реализовать отдельный клиент для этого, т.к. метод add() отправит запрос на роут "/tarifflist" если передать просто массив, см. https://github.com/cdek-it/sdk2.0/blob/master/src/Actions/Calculator.php#L44 т.е. через sdk2.0 невозможно рассчитать стоимость доставки с учетом доп услуг, хотя в API вроде бы такая возможность есть... https://apidoc.cdek.ru/#tag/calculator/operation/tariff
Beta Was this translation helpful? Give feedback.
All reactions