RetrieveTariff — Запрос атрибутов тарифного плана
Общая информация
-
Команда актуальна, начиная с версии 1.5
Входные параметры
| Параметр | Значение | Формат значения | Расшифровка формата | Ссылка |
|---|---|---|---|---|
tariffCode |
Код тарифного плана. |
^.{1,64}$ |
Текст до 64-х символов. |
Выходные параметры
| Параметр | Значение | Формат значения |
|---|---|---|
code |
Код ответа |
Целое неотрицательное число. |
detail |
Пояснение к ответу |
Текст английскими буквами с пробелами и спецсимволами. |
response |
Объектов NbiSingleTariff |
Примеры команд и кодов
| Код | Описание ошибки |
|---|---|
101 |
Код тарифного плана некорректен |
Запрос
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://nbi.radius.eltex.org">
<soapenv:Header/>
<soapenv:Body>
<xsd:RetrieveTariff>
<xsd:tariffCode></xsd:tariffCode>
</xsd:RetrieveTariff>
</soapenv:Body>
</soapenv:Envelope>
Ответ
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<ns:RetrieveTariffResponse
xmlns:ns="http://org.eltex.radius.nbi/xsd">
<ns:return>
<ns:code>101</ns:code>
<ns:detail>Incorrect field 'tariffCode'</ns:detail>
<ns:response>
<ns:createDate xsi:nil="true"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>
<ns:deactivated>false</ns:deactivated>
<ns:tariffCode/>
<ns:tariffDescr/>
<ns:tariffDomain/>
<ns:tariffName/>
<ns:users>0</ns:users>
<ns:check/>
<ns:groupcheck/>
<ns:groupreply/>
<ns:portal/>
<ns:reply/>
</ns:response>
</ns:return>
</ns:RetrieveTariffResponse>
</soapenv:Body>
</soapenv:Envelope>
| Код | Описание ошибки |
|---|---|
100 |
Тарифного плана с таким кодом не существует |
Запрос
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://nbi.radius.eltex.org">
<soapenv:Header/>
<soapenv:Body>
<xsd:RetrieveTariff>
<xsd:tariffCode>test</xsd:tariffCode>
</xsd:RetrieveTariff>
</soapenv:Body>
</soapenv:Envelope>
Ответ
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<ns:RetrieveTariffResponse
xmlns:ns="http://org.eltex.radius.nbi/xsd">
<ns:return>
<ns:code>100</ns:code>
<ns:detail>No Tariff with code 'test'</ns:detail>
<ns:response>
<ns:createDate xsi:nil="true"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>
<ns:deactivated>false</ns:deactivated>
<ns:tariffCode/>
<ns:tariffDescr/>
<ns:tariffDomain/>
<ns:tariffName/>
<ns:users>0</ns:users>
<ns:check/>
<ns:groupcheck/>
<ns:groupreply/>
<ns:portal/>
<ns:reply/>
</ns:response>
</ns:return>
</ns:RetrieveTariffResponse>
</soapenv:Body>
</soapenv:Envelope>
| Код | Описание ошибки |
|---|---|
10 |
Домен роли не имеет прав на домен тарифного плана |
Запрос
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://nbi.radius.eltex.org">
<soapenv:Header/>
<soapenv:Body>
<xsd:RetrieveTariff>
<xsd:tariffCode>red</xsd:tariffCode>
</xsd:RetrieveTariff>
</soapenv:Body>
</soapenv:Envelope>
Ответ
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<ns:RetrieveTariffResponse
xmlns:ns="http://org.eltex.radius.nbi/xsd">
<ns:return>
<ns:code>10</ns:code>
<ns:detail>The role of the user does not have rights to tariff domain: 'enterprise.root'. Role`s domains: 'hotspot.root'</ns:detail>
<ns:response>
<ns:createDate xsi:nil="true"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>
<ns:deactivated>false</ns:deactivated>
<ns:tariffCode/>
<ns:tariffDescr/>
<ns:tariffDomain/>
<ns:tariffName/>
<ns:users>0</ns:users>
<ns:check/>
<ns:groupcheck/>
<ns:groupreply/>
<ns:portal/>
<ns:reply/>
</ns:response>
</ns:return>
</ns:RetrieveTariffResponse>
</soapenv:Body>
</soapenv:Envelope>
| Код | Описание ошибки |
|---|---|
0 |
Успешно |
Запрос
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://nbi.radius.eltex.org">
<soapenv:Header/>
<soapenv:Body>
<xsd:RetrieveTariff>
<xsd:tariffCode>test1</xsd:tariffCode>
</xsd:RetrieveTariff>
</soapenv:Body>
</soapenv:Envelope>
Ответ
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<ns:RetrieveTariffResponse
xmlns:ns="http://org.eltex.radius.nbi/xsd">
<ns:return>
<ns:code>0</ns:code>
<ns:detail/>
<ns:response>
<ns:createDate>2015-10-20T17:43:41.000+07:00</ns:createDate>
<ns:deactivated>false</ns:deactivated>
<ns:tariffCode>test1</ns:tariffCode>
<ns:tariffDescr>Безлимитный интернет на сутки за смешные 500 рублей</ns:tariffDescr>
<ns:tariffDomain>test.hotspot.root</ns:tariffDomain>
<ns:tariffName>Безлимит за смешную цену</ns:tariffName>
<ns:users>0</ns:users>
<ns:check/>
<ns:groupcheck>
<ns:attr>
<ns:name>Simultaneous-Use</ns:name>
<ns:oper>:=</ns:oper>
<ns:value>1</ns:value>
</ns:attr>
</ns:groupcheck>
<ns:groupreply>
<ns:attr>
<ns:name>Eltex-User-Create-Date</ns:name>
<ns:oper>=</ns:oper>
<ns:value>2015-10-20 17:43:41</ns:value>
</ns:attr>
<ns:attr>
<ns:name>Session-Timeout</ns:name>
<ns:oper>=</ns:oper>
<ns:value>72000</ns:value>
</ns:attr>
</ns:groupreply>
<ns:portal>
<ns:attr>
<ns:name>Eltex-Tariff-Price</ns:name>
<ns:oper>=</ns:oper>
<ns:value>500</ns:value>
</ns:attr>
</ns:portal>
<ns:reply/>
</ns:response>
</ns:return>
</ns:RetrieveTariffResponse>
</soapenv:Body>
</soapenv:Envelope>
Вернуться к списку команд
Версия 1.19-67
Дата публикации 07-05-2021 17:25:19