]> git.stg.codes - stg.git/blob - doc/xmlrpc/API-tariffs.xml
Stylistic changes
[stg.git] / doc / xmlrpc / API-tariffs.xml
1 <?xml version='1.0' encoding='UTF-8'?>
2 <chapter xmlns="http://docbook.org/ns/docbook">
3     <title>Управление тарифами</title>
4     <para>В этом разделе собраны вызовы для манипулирования тарифными планами. Тарифный план включает в себя:</para>
5     <itemizedlist>
6         <listitem><para>название;</para></listitem>
7         <listitem><para>абонплата;</para></listitem>
8         <listitem><para>количество бесплатных мегабайт, включенных в абонплату;</para></listitem>
9         <listitem><para>стоимость "заморозки" пользователя;</para></listitem>
10         <listitem>
11             <para>тип подсчета трафика:</para>
12             <itemizedlist>
13                 <listitem><para>только входящий,</para></listitem>
14                 <listitem><para>только исходящий,</para></listitem>
15                 <listitem><para>входящий и исходящий суммарно,</para></listitem>
16                 <listitem><para>максимум из входящего и исходящего</para></listitem>
17             </itemizedlist>
18         </listitem>
19         <listitem>
20             <para>информацию о тарификации направлений:</para>
21             <itemizedlist>
22                 <listitem><para>время начала дня;</para></listitem>
23                 <listitem><para>конца дня;</para></listitem>
24                 <listitem><para>цена за мегабайт трафика до порога днем;</para></listitem>
25                 <listitem><para>цена за мегабайт трафика после порога днем;</para></listitem>
26                 <listitem><para>цена за мегабайт трафика до порога ночью;</para></listitem>
27                 <listitem><para>цена за мегабайт трафика после порога ночью;</para></listitem>
28                 <listitem><para>пороговый объем трафика в мегабайтах;</para></listitem>
29                 <listitem><para>флаг игнорирования времени суток;</para></listitem>
30                 <listitem><para>флаг игнорирования порога.</para></listitem>
31             </itemizedlist>
32         </listitem>
33     </itemizedlist>
34     <refentry id="stargazer.get_tariff">
35         <refmeta>
36             <refentrytitle>stargazer.get_tariff</refentrytitle>
37         </refmeta>
38         <refnamediv>
39             <refname>stargazer.get_tariff</refname>
40             <refpurpose>Получает информацию о тарифном плане</refpurpose>
41         </refnamediv>
42         <refsynopsisdiv>
43             <funcsynopsis>
44                 <funcprototype>
45                     <funcdef><function>stargazer.get_tariff</function></funcdef>
46                     <paramdef>string <parameter>cookie</parameter></paramdef>
47                     <paramdef>string <parameter>tariff</parameter></paramdef>
48                 </funcprototype>
49             </funcsynopsis>
50         </refsynopsisdiv>
51         <refsect1>
52             <title>Description</title>
53             <para>Метод <function>stargazer.get_tariff</function> получает информацию о тарифном плане.</para>
54             <variablelist>
55                 <varlistentry>
56                     <term>string <parameter>cookie</parameter></term>
57                     <listitem>
58                         <para>Авторизационный cookie. Для авторизации в системе используется метод <function><link linkend="stargazer.login">stargazer.login</link></function></para>
59                     </listitem>
60                 </varlistentry>
61                 <varlistentry>
62                     <term>string <parameter>tariff</parameter></term>
63                     <listitem>
64                         <para>Название тарифа</para>
65                     </listitem>
66                 </varlistentry>
67             </variablelist>
68             <refsect2>
69                 <title>Return Value</title>
70                 <para>
71                     Возвращает структуру:
72                     <variablelist>
73                         <varlistentry>
74                             <term>boolean <parameter>result</parameter></term>
75                             <listitem>
76                                 <para>Результат операции. true - успешно, false - неудача (неправильный или устаревший cookie, неправильное название тарифа).</para>
77                             </listitem>
78                         </varlistentry>
79                         <varlistentry>
80                             <term>string <parameter>name</parameter></term>
81                             <listitem>
82                                 <para>Название тарифа</para>
83                             </listitem>
84                         </varlistentry>
85                         <varlistentry>
86                             <term>double <parameter>fee</parameter></term>
87                             <listitem>
88                                 <para>Абонплата</para>
89                             </listitem>
90                         </varlistentry>
91                         <varlistentry>
92                             <term>double <parameter>freemb</parameter></term>
93                             <listitem>
94                                 <para>Количество бесплатных мегабайт включенных в абонплату</para>
95                             </listitem>
96                         </varlistentry>
97                         <varlistentry>
98                             <term>double <parameter>passivecost</parameter></term>
99                             <listitem>
100                                 <para>Стоимость "заморозки" пользователя</para>
101                             </listitem>
102                         </varlistentry>
103                         <varlistentry>
104                             <term>int <parameter>trafftype</parameter></term>
105                             <listitem>
106                                 <para>Тип подсчета трафика:
107                                     <simplelist type="vert">
108                                         <member>0 &#151; подсчитывать только исходящий трафик</member>
109                                         <member>1 &#151; подсчитывать только входящий трафик</member>
110                                         <member>2 &#151; подсчитывать суммарно входящий и исходящий трафик</member>
111                                         <member>3 &#151; подсчитывать максимальный из входящего и исходящего трафика</member>
112                                     </simplelist>
113                                 </para>
114                             </listitem>
115                         </varlistentry>
116                         <varlistentry>
117                             <term>array of struct <parameter>dirprices</parameter></term>
118                             <listitem>
119                                 <para>Массив стурктур, описывающих тарификацию направлений:
120                                     <variablelist>
121                                         <varlistentry>
122                                             <term>int <parameter>hday</parameter></term>
123                                             <listitem>
124                                                 <para>Часы начала дня</para>
125                                             </listitem>
126                                         </varlistentry>
127                                         <varlistentry>
128                                             <term>int <parameter>mday</parameter></term>
129                                             <listitem>
130                                                 <para>Минуты начала дня</para>
131                                             </listitem>
132                                         </varlistentry>
133                                         <varlistentry>
134                                             <term>int <parameter>hnight</parameter></term>
135                                             <listitem>
136                                                 <para>Часы начала ночи</para>
137                                             </listitem>
138                                         </varlistentry>
139                                         <varlistentry>
140                                             <term>int <parameter>mnight</parameter></term>
141                                             <listitem>
142                                                 <para>Минуты начала ночи</para>
143                                             </listitem>
144                                         </varlistentry>
145                                         <varlistentry>
146                                             <term>double <parameter>pricedaya</parameter></term>
147                                             <listitem>
148                                                 <para>Цена 1 мегабайта трафика днем до превышения порогового значения</para>
149                                             </listitem>
150                                         </varlistentry>
151                                         <varlistentry>
152                                             <term>double <parameter>pricedayb</parameter></term>
153                                             <listitem>
154                                                 <para>Цена 1 мегабайта трафика днем после превышения порогового значения</para>
155                                             </listitem>
156                                         </varlistentry>
157                                         <varlistentry>
158                                             <term>double <parameter>pricenighta</parameter></term>
159                                             <listitem>
160                                                 <para>Цена 1 мегабайта трафика ночью до превышения порогового значения</para>
161                                             </listitem>
162                                         </varlistentry>
163                                         <varlistentry>
164                                             <term>double <parameter>pricenightb</parameter></term>
165                                             <listitem>
166                                                 <para>Цена 1 мегабайта трафика ночью после превышения порогового значения</para>
167                                             </listitem>
168                                         </varlistentry>
169                                         <varlistentry>
170                                             <term>int <parameter>threshold</parameter></term>
171                                             <listitem>
172                                                 <para>Величина порога в мегабайтах</para>
173                                             </listitem>
174                                         </varlistentry>
175                                         <varlistentry>
176                                             <term>boolean <parameter>singleprice</parameter></term>
177                                             <listitem>
178                                                 <para>Цена не зависит от времени суток</para>
179                                             </listitem>
180                                         </varlistentry>
181                                         <varlistentry>
182                                             <term>boolean <parameter>nodiscount</parameter></term>
183                                             <listitem>
184                                                 <para>Цена не зависит от порога</para>
185                                             </listitem>
186                                         </varlistentry>
187                                     </variablelist>
188                                 </para>
189                             </listitem>
190                         </varlistentry>
191                     </variablelist>
192                 </para>
193             </refsect2>
194         </refsect1>
195         <refsect1>
196             <title>See also</title>
197             <para>
198                 <link linkend="stargazer.get_tariffs"><function>stargazer.get_tariffs</function></link>,
199                 <link linkend="stargazer.add_tariff"><function>stargazer.add_tariff</function></link>,
200                 <link linkend="stargazer.del_tariff"><function>stargazer.del_tariff</function></link>,
201                 <link linkend="stargazer.chg_tariff"><function>stargazer.chg_tariff</function></link>
202             </para>
203         </refsect1>
204     </refentry>
205     <refentry id="stargazer.get_tariffs">
206         <refmeta>
207             <refentrytitle>stargazer.get_tariffs</refentrytitle>
208         </refmeta>
209         <refnamediv>
210             <refname>stargazer.get_tariffs</refname>
211             <refpurpose>Получает информацию о тарифных планах</refpurpose>
212         </refnamediv>
213         <refsynopsisdiv>
214             <funcsynopsis>
215                 <funcprototype>
216                     <funcdef><function>stargazer.get_tariffs</function></funcdef>
217                     <paramdef>string <parameter>cookie</parameter></paramdef>
218                 </funcprototype>
219             </funcsynopsis>
220         </refsynopsisdiv>
221         <refsect1>
222             <title>Description</title>
223             <para>Метод <function>stargazer.get_tariffs</function> получает информацию о тарифных планах.</para>
224             <variablelist>
225                 <varlistentry>
226                     <term>string <parameter>cookie</parameter></term>
227                     <listitem>
228                         <para>Авторизационный cookie. Для авторизации в системе используется метод <function><link linkend="stargazer.login">stargazer.login</link></function></para>
229                     </listitem>
230                 </varlistentry>
231             </variablelist>
232             <refsect2>
233                 <title>Return Value</title>
234                 <para>
235                     Возвращает массив структур:
236                     <variablelist>
237                         <varlistentry>
238                             <term>boolean <parameter>result</parameter></term>
239                             <listitem>
240                                 <para>Результат операции. true - успешно, false - неудача (неправильный или устаревший cookie, неправильное название тарифа).</para>
241                             </listitem>
242                         </varlistentry>
243                         <varlistentry>
244                             <term>string <parameter>name</parameter></term>
245                             <listitem>
246                                 <para>Название тарифа</para>
247                             </listitem>
248                         </varlistentry>
249                         <varlistentry>
250                             <term>double <parameter>fee</parameter></term>
251                             <listitem>
252                                 <para>Абонплата</para>
253                             </listitem>
254                         </varlistentry>
255                         <varlistentry>
256                             <term>double <parameter>freemb</parameter></term>
257                             <listitem>
258                                 <para>Количество бесплатных мегабайт включенных в абонплату</para>
259                             </listitem>
260                         </varlistentry>
261                         <varlistentry>
262                             <term>double <parameter>passivecost</parameter></term>
263                             <listitem>
264                                 <para>Стоимость "заморозки" пользователя</para>
265                             </listitem>
266                         </varlistentry>
267                         <varlistentry>
268                             <term>int <parameter>trafftype</parameter></term>
269                             <listitem>
270                                 <para>Тип подсчета трафика:
271                                     <simplelist type="vert">
272                                         <member>0 &#151; подсчитывать только исходящий трафик</member>
273                                         <member>1 &#151; подсчитывать только входящий трафик</member>
274                                         <member>2 &#151; подсчитывать суммарно входящий и исходящий трафик</member>
275                                         <member>3 &#151; подсчитывать максимальный из входящего и исходящего трафика</member>
276                                     </simplelist>
277                                 </para>
278                             </listitem>
279                         </varlistentry>
280                         <varlistentry>
281                             <term>array of struct <parameter>dirprices</parameter></term>
282                             <listitem>
283                                 <para>Массив стурктур, описывающих тарификацию направлений:
284                                     <variablelist>
285                                         <varlistentry>
286                                             <term>int <parameter>hday</parameter></term>
287                                             <listitem>
288                                                 <para>Часы начала дня</para>
289                                             </listitem>
290                                         </varlistentry>
291                                         <varlistentry>
292                                             <term>int <parameter>mday</parameter></term>
293                                             <listitem>
294                                                 <para>Минуты начала дня</para>
295                                             </listitem>
296                                         </varlistentry>
297                                         <varlistentry>
298                                             <term>int <parameter>hnight</parameter></term>
299                                             <listitem>
300                                                 <para>Часы начала ночи</para>
301                                             </listitem>
302                                         </varlistentry>
303                                         <varlistentry>
304                                             <term>int <parameter>mnight</parameter></term>
305                                             <listitem>
306                                                 <para>Минуты начала ночи</para>
307                                             </listitem>
308                                         </varlistentry>
309                                         <varlistentry>
310                                             <term>double <parameter>pricedaya</parameter></term>
311                                             <listitem>
312                                                 <para>Цена 1 мегабайта трафика днем до превышения порогового значения</para>
313                                             </listitem>
314                                         </varlistentry>
315                                         <varlistentry>
316                                             <term>double <parameter>pricedayb</parameter></term>
317                                             <listitem>
318                                                 <para>Цена 1 мегабайта трафика днем после превышения порогового значения</para>
319                                             </listitem>
320                                         </varlistentry>
321                                         <varlistentry>
322                                             <term>double <parameter>pricenighta</parameter></term>
323                                             <listitem>
324                                                 <para>Цена 1 мегабайта трафика ночью до превышения порогового значения</para>
325                                             </listitem>
326                                         </varlistentry>
327                                         <varlistentry>
328                                             <term>double <parameter>pricenightb</parameter></term>
329                                             <listitem>
330                                                 <para>Цена 1 мегабайта трафика ночью после превышения порогового значения</para>
331                                             </listitem>
332                                         </varlistentry>
333                                         <varlistentry>
334                                             <term>int <parameter>threshold</parameter></term>
335                                             <listitem>
336                                                 <para>Величина порога в мегабайтах</para>
337                                             </listitem>
338                                         </varlistentry>
339                                         <varlistentry>
340                                             <term>boolean <parameter>singleprice</parameter></term>
341                                             <listitem>
342                                                 <para>Цена не зависит от времени стуок</para>
343                                             </listitem>
344                                         </varlistentry>
345                                         <varlistentry>
346                                             <term>boolean <parameter>nodiscount</parameter></term>
347                                             <listitem>
348                                                 <para>Цена не зависит от порога</para>
349                                             </listitem>
350                                         </varlistentry>
351                                     </variablelist>
352                                 </para>
353                             </listitem>
354                         </varlistentry>
355                     </variablelist>
356                 </para>
357             </refsect2>
358         </refsect1>
359         <refsect1>
360             <title>See also</title>
361             <para>
362                 <link linkend="stargazer.get_tariff"><function>stargazer.get_tariff</function></link>,
363                 <link linkend="stargazer.add_tariff"><function>stargazer.add_tariff</function></link>,
364                 <link linkend="stargazer.del_tariff"><function>stargazer.del_tariff</function></link>,
365                 <link linkend="stargazer.chg_tariff"><function>stargazer.chg_tariff</function></link>
366             </para>
367         </refsect1>
368     </refentry>
369     <refentry id="stargazer.add_tariff">
370         <refmeta>
371             <refentrytitle>stargazer.add_tariff</refentrytitle>
372         </refmeta>
373         <refnamediv>
374             <refname>stargazer.add_tariff</refname>
375             <refpurpose>Добавляет в систему новый тарифный план</refpurpose>
376         </refnamediv>
377         <refsynopsisdiv>
378             <funcsynopsis>
379                 <funcprototype>
380                     <funcdef><function>stargazer.add_tariff</function></funcdef>
381                     <paramdef>string <parameter>cookie</parameter></paramdef>
382                     <paramdef>string <parameter>tariff</parameter></paramdef>
383                 </funcprototype>
384             </funcsynopsis>
385         </refsynopsisdiv>
386         <refsect1>
387             <title>Description</title>
388             <para>Метод <function>stargazer.add_tariff</function> добавляет в систему новый "пустой" тарифный план. Для его настройки используется метод <link linkend="stargazer.chg_tariff"><function>stargazer.chg_tariff</function></link>.</para>
389             <variablelist>
390                 <varlistentry>
391                     <term>string <parameter>cookie</parameter></term>
392                     <listitem>
393                         <para>Авторизационный cookie. Для авторизации в системе используется метод <function><link linkend="stargazer.login">stargazer.login</link></function></para>
394                     </listitem>
395                 </varlistentry>
396                 <varlistentry>
397                     <term>string <parameter>tariff</parameter></term>
398                     <listitem>
399                         <para>Название тарифа</para>
400                     </listitem>
401                 </varlistentry>
402             </variablelist>
403             <refsect2>
404                 <title>Return Value</title>
405                 <para>Возвращет true в случае успеха и false в случае неудачи</para>
406             </refsect2>
407         </refsect1>
408         <refsect1>
409             <title>See also</title>
410             <para>
411                 <link linkend="stargazer.get_tariffs"><function>stargazer.get_tariffs</function></link>,
412                 <link linkend="stargazer.get_tariff"><function>stargazer.get_tariff</function></link>,
413                 <link linkend="stargazer.del_tariff"><function>stargazer.del_tariff</function></link>,
414                 <link linkend="stargazer.chg_tariff"><function>stargazer.chg_tariff</function></link>
415             </para>
416         </refsect1>
417     </refentry>
418     <refentry id="stargazer.del_tariff">
419         <refmeta>
420             <refentrytitle>stargazer.del_tariff</refentrytitle>
421         </refmeta>
422         <refnamediv>
423             <refname>stargazer.del_tariff</refname>
424             <refpurpose>Удаляет из системы тарифный план</refpurpose>
425         </refnamediv>
426         <refsynopsisdiv>
427             <funcsynopsis>
428                 <funcprototype>
429                     <funcdef><function>stargazer.del_tariff</function></funcdef>
430                     <paramdef>string <parameter>cookie</parameter></paramdef>
431                     <paramdef>string <parameter>tariff</parameter></paramdef>
432                 </funcprototype>
433             </funcsynopsis>
434         </refsynopsisdiv>
435         <refsect1>
436             <title>Description</title>
437             <para>Метод <function>stargazer.del_tariff</function> удаляет из системы тарифный план</para>
438             <variablelist>
439                 <varlistentry>
440                     <term>string <parameter>cookie</parameter></term>
441                     <listitem>
442                         <para>Авторизационный cookie. Для авторизации в системе используется метод <function><link linkend="stargazer.login">stargazer.login</link></function></para>
443                     </listitem>
444                 </varlistentry>
445                 <varlistentry>
446                     <term>string <parameter>tariff</parameter></term>
447                     <listitem>
448                         <para>Название тарифа</para>
449                     </listitem>
450                 </varlistentry>
451             </variablelist>
452             <refsect2>
453                 <title>Return Value</title>
454                 <para>Возвращет true в случае успеха и false в случае неудачи</para>
455             </refsect2>
456         </refsect1>
457         <refsect1>
458             <title>See also</title>
459             <para>
460                 <link linkend="stargazer.get_tariffs"><function>stargazer.get_tariffs</function></link>,
461                 <link linkend="stargazer.get_tariff"><function>stargazer.get_tariff</function></link>,
462                 <link linkend="stargazer.add_tariff"><function>stargazer.add_tariff</function></link>,
463                 <link linkend="stargazer.chg_tariff"><function>stargazer.chg_tariff</function></link>
464             </para>
465         </refsect1>
466     </refentry>
467     <refentry id="stargazer.chg_tariff">
468         <refmeta>
469             <refentrytitle>stargazer.chg_tariff</refentrytitle>
470         </refmeta>
471         <refnamediv>
472             <refname>stargazer.chg_tariff</refname>
473             <refpurpose>Изменяет информацию о тарифном плане</refpurpose>
474         </refnamediv>
475         <refsynopsisdiv>
476             <funcsynopsis>
477                 <funcprototype>
478                     <funcdef><function>stargazer.chg_tariff</function></funcdef>
479                     <paramdef>string <parameter>cookie</parameter></paramdef>
480                     <paramdef>string <parameter>tariff</parameter></paramdef>
481                     <paramdef>struct <parameter>info</parameter></paramdef>
482                 </funcprototype>
483             </funcsynopsis>
484         </refsynopsisdiv>
485         <refsect1>
486             <title>Description</title>
487             <para>Метод <function>stargazer.chg_tariff</function> изменяет информацию о тарифном плане. Допустимо частичное указание параметров в структуре info. В этом случае изменение затронет только указанные параметры. Дополнительные поля структуры (не входящие в описание) будут проигнорированы.</para>
488             <variablelist>
489                 <varlistentry>
490                     <term>string <parameter>cookie</parameter></term>
491                     <listitem>
492                         <para>Авторизационный cookie. Для авторизации в системе используется метод <function><link linkend="stargazer.login">stargazer.login</link></function></para>
493                     </listitem>
494                 </varlistentry>
495                 <varlistentry>
496                     <term>string <parameter>tariff</parameter></term>
497                     <listitem>
498                         <para>Название тарифа</para>
499                     </listitem>
500                 </varlistentry>
501                 <varlistentry>
502                     <term>struct <parameter>info</parameter></term>
503                     <listitem>
504                         <para>
505                             Структура с информацией о тарифном плане:
506                             <variablelist>
507                                 <varlistentry>
508                                     <term>string <parameter>name</parameter></term>
509                                     <listitem>
510                                         <para>Название тарифа</para>
511                                     </listitem>
512                                 </varlistentry>
513                                 <varlistentry>
514                                     <term>double <parameter>fee</parameter></term>
515                                     <listitem>
516                                         <para>Абонплата</para>
517                                     </listitem>
518                                 </varlistentry>
519                                 <varlistentry>
520                                     <term>double <parameter>freemb</parameter></term>
521                                     <listitem>
522                                         <para>Количество свободных мегабайт, включенных в абонплату</para>
523                                     </listitem>
524                                 </varlistentry>
525                                 <varlistentry>
526                                     <term>double <parameter>passivecost</parameter></term>
527                                     <listitem>
528                                         <para>Стоимость заморозки пользователя</para>
529                                     </listitem>
530                                 </varlistentry>
531                                 <varlistentry>
532                                     <term>int <parameter>trafftype</parameter></term>
533                                     <listitem>
534                                         <para>Тип подсчета трафика:
535                                             <simplelist type="vert">
536                                                 <member>0 &#151; подсчитывать только исходящий трафик</member>
537                                                 <member>1 &#151; подсчитывать только входящий трафик</member>
538                                                 <member>2 &#151; подсчитывать суммарно входящий и исходящий трафик</member>
539                                                 <member>3 &#151; подсчитывать максимальный из входящего и исходящего трафика</member>
540                                             </simplelist>
541                                         </para>
542                                     </listitem>
543                                 </varlistentry>
544                                 <varlistentry>
545                                     <term>array of struct <parameter>dirprices</parameter></term>
546                                     <listitem>
547                                         <para>Массив стурктур, описывающих тарификацию направлений:
548                                             <variablelist>
549                                                 <varlistentry>
550                                                     <term>int <parameter>hday</parameter></term>
551                                                     <listitem>
552                                                         <para>Часы начала дня</para>
553                                                     </listitem>
554                                                 </varlistentry>
555                                                 <varlistentry>
556                                                     <term>int <parameter>mday</parameter></term>
557                                                     <listitem>
558                                                         <para>Минуты начала дня</para>
559                                                     </listitem>
560                                                 </varlistentry>
561                                                 <varlistentry>
562                                                     <term>int <parameter>hnight</parameter></term>
563                                                     <listitem>
564                                                         <para>Часы начала ночи</para>
565                                                     </listitem>
566                                                 </varlistentry>
567                                                 <varlistentry>
568                                                     <term>int <parameter>mnight</parameter></term>
569                                                     <listitem>
570                                                         <para>Минуты начала ночи</para>
571                                                     </listitem>
572                                                 </varlistentry>
573                                                 <varlistentry>
574                                                     <term>double <parameter>pricedaya</parameter></term>
575                                                     <listitem>
576                                                         <para>Цена 1 мегабайта трафика днем до превышения порогового значения</para>
577                                                     </listitem>
578                                                 </varlistentry>
579                                                 <varlistentry>
580                                                     <term>double <parameter>pricedayb</parameter></term>
581                                                     <listitem>
582                                                         <para>Цена 1 мегабайта трафика днем после превышения порогового значения</para>
583                                                     </listitem>
584                                                 </varlistentry>
585                                                 <varlistentry>
586                                                     <term>double <parameter>pricenighta</parameter></term>
587                                                     <listitem>
588                                                         <para>Цена 1 мегабайта трафика ночью до превышения порогового значения</para>
589                                                     </listitem>
590                                                 </varlistentry>
591                                                 <varlistentry>
592                                                     <term>double <parameter>pricenightb</parameter></term>
593                                                     <listitem>
594                                                         <para>Цена 1 мегабайта трафика ночью после превышения порогового значения</para>
595                                                     </listitem>
596                                                 </varlistentry>
597                                                 <varlistentry>
598                                                     <term>int <parameter>threshold</parameter></term>
599                                                     <listitem>
600                                                         <para>Величина порога в мегабайтах</para>
601                                                     </listitem>
602                                                 </varlistentry>
603                                                 <varlistentry>
604                                                     <term>boolean <parameter>singleprice</parameter></term>
605                                                     <listitem>
606                                                         <para>Цена не зависит от времени стуок</para>
607                                                     </listitem>
608                                                 </varlistentry>
609                                                 <varlistentry>
610                                                     <term>boolean <parameter>nodiscount</parameter></term>
611                                                     <listitem>
612                                                         <para>Цена не зависит от порога</para>
613                                                     </listitem>
614                                                 </varlistentry>
615                                             </variablelist>
616                                         </para>
617                                     </listitem>
618                                 </varlistentry>
619                             </variablelist>
620                         </para>
621                     </listitem>
622                 </varlistentry>
623             </variablelist>
624             <refsect2>
625                 <title>Return Value</title>
626                 <para>Возвращет true в случае успеха и false в случае неудачи</para>
627             </refsect2>
628         </refsect1>
629         <refsect1>
630             <title>See also</title>
631             <para>
632                 <link linkend="stargazer.get_tariffs"><function>stargazer.get_tariffs</function></link>,
633                 <link linkend="stargazer.get_tariff"><function>stargazer.get_tariff</function></link>,
634                 <link linkend="stargazer.add_tariff"><function>stargazer.add_tariff</function></link>,
635                 <link linkend="stargazer.del_tariff"><function>stargazer.del_tariff</function></link>
636             </para>
637         </refsect1>
638     </refentry>
639 </chapter>