]> git.stg.codes - stg.git/blob - doc/xmlrpc/API-tariffs.xml
Ticket 37. The object tariff definition moved into the if(newTariff)
[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>string <parameter>period</parameter></term>
118                             <listitem>
119                                 <para>Периодичность снятия абонплаты:
120                                     <simplelist type="vert">
121                                         <member>month &#151; ежемесячное снятие</member>
122                                         <member>day &#151; ежедневное снятие</member>
123                                     </simplelist>
124                                 </para>
125                             </listitem>
126                         </varlistentry>
127                         <varlistentry>
128                             <term>array of struct <parameter>dirprices</parameter></term>
129                             <listitem>
130                                 <para>Массив стурктур, описывающих тарификацию направлений:
131                                     <variablelist>
132                                         <varlistentry>
133                                             <term>int <parameter>hday</parameter></term>
134                                             <listitem>
135                                                 <para>Часы начала дня</para>
136                                             </listitem>
137                                         </varlistentry>
138                                         <varlistentry>
139                                             <term>int <parameter>mday</parameter></term>
140                                             <listitem>
141                                                 <para>Минуты начала дня</para>
142                                             </listitem>
143                                         </varlistentry>
144                                         <varlistentry>
145                                             <term>int <parameter>hnight</parameter></term>
146                                             <listitem>
147                                                 <para>Часы начала ночи</para>
148                                             </listitem>
149                                         </varlistentry>
150                                         <varlistentry>
151                                             <term>int <parameter>mnight</parameter></term>
152                                             <listitem>
153                                                 <para>Минуты начала ночи</para>
154                                             </listitem>
155                                         </varlistentry>
156                                         <varlistentry>
157                                             <term>double <parameter>pricedaya</parameter></term>
158                                             <listitem>
159                                                 <para>Цена 1 мегабайта трафика днем до превышения порогового значения</para>
160                                             </listitem>
161                                         </varlistentry>
162                                         <varlistentry>
163                                             <term>double <parameter>pricedayb</parameter></term>
164                                             <listitem>
165                                                 <para>Цена 1 мегабайта трафика днем после превышения порогового значения</para>
166                                             </listitem>
167                                         </varlistentry>
168                                         <varlistentry>
169                                             <term>double <parameter>pricenighta</parameter></term>
170                                             <listitem>
171                                                 <para>Цена 1 мегабайта трафика ночью до превышения порогового значения</para>
172                                             </listitem>
173                                         </varlistentry>
174                                         <varlistentry>
175                                             <term>double <parameter>pricenightb</parameter></term>
176                                             <listitem>
177                                                 <para>Цена 1 мегабайта трафика ночью после превышения порогового значения</para>
178                                             </listitem>
179                                         </varlistentry>
180                                         <varlistentry>
181                                             <term>int <parameter>threshold</parameter></term>
182                                             <listitem>
183                                                 <para>Величина порога в мегабайтах</para>
184                                             </listitem>
185                                         </varlistentry>
186                                         <varlistentry>
187                                             <term>boolean <parameter>singleprice</parameter></term>
188                                             <listitem>
189                                                 <para>Цена не зависит от времени суток</para>
190                                             </listitem>
191                                         </varlistentry>
192                                         <varlistentry>
193                                             <term>boolean <parameter>nodiscount</parameter></term>
194                                             <listitem>
195                                                 <para>Цена не зависит от порога</para>
196                                             </listitem>
197                                         </varlistentry>
198                                     </variablelist>
199                                 </para>
200                             </listitem>
201                         </varlistentry>
202                     </variablelist>
203                 </para>
204             </refsect2>
205         </refsect1>
206         <refsect1>
207             <title>See also</title>
208             <para>
209                 <link linkend="stargazer.get_tariffs"><function>stargazer.get_tariffs</function></link>,
210                 <link linkend="stargazer.add_tariff"><function>stargazer.add_tariff</function></link>,
211                 <link linkend="stargazer.del_tariff"><function>stargazer.del_tariff</function></link>,
212                 <link linkend="stargazer.chg_tariff"><function>stargazer.chg_tariff</function></link>
213             </para>
214         </refsect1>
215     </refentry>
216     <refentry id="stargazer.get_tariffs">
217         <refmeta>
218             <refentrytitle>stargazer.get_tariffs</refentrytitle>
219         </refmeta>
220         <refnamediv>
221             <refname>stargazer.get_tariffs</refname>
222             <refpurpose>Получает информацию о тарифных планах</refpurpose>
223         </refnamediv>
224         <refsynopsisdiv>
225             <funcsynopsis>
226                 <funcprototype>
227                     <funcdef><function>stargazer.get_tariffs</function></funcdef>
228                     <paramdef>string <parameter>cookie</parameter></paramdef>
229                 </funcprototype>
230             </funcsynopsis>
231         </refsynopsisdiv>
232         <refsect1>
233             <title>Description</title>
234             <para>Метод <function>stargazer.get_tariffs</function> получает информацию о тарифных планах.</para>
235             <variablelist>
236                 <varlistentry>
237                     <term>string <parameter>cookie</parameter></term>
238                     <listitem>
239                         <para>Авторизационный cookie. Для авторизации в системе используется метод <function><link linkend="stargazer.login">stargazer.login</link></function></para>
240                     </listitem>
241                 </varlistentry>
242             </variablelist>
243             <refsect2>
244                 <title>Return Value</title>
245                 <para>
246                     Возвращает массив структур:
247                     <variablelist>
248                         <varlistentry>
249                             <term>boolean <parameter>result</parameter></term>
250                             <listitem>
251                                 <para>Результат операции. true - успешно, false - неудача (неправильный или устаревший cookie, неправильное название тарифа).</para>
252                             </listitem>
253                         </varlistentry>
254                         <varlistentry>
255                             <term>string <parameter>name</parameter></term>
256                             <listitem>
257                                 <para>Название тарифа</para>
258                             </listitem>
259                         </varlistentry>
260                         <varlistentry>
261                             <term>double <parameter>fee</parameter></term>
262                             <listitem>
263                                 <para>Абонплата</para>
264                             </listitem>
265                         </varlistentry>
266                         <varlistentry>
267                             <term>double <parameter>freemb</parameter></term>
268                             <listitem>
269                                 <para>Количество бесплатных мегабайт включенных в абонплату</para>
270                             </listitem>
271                         </varlistentry>
272                         <varlistentry>
273                             <term>double <parameter>passivecost</parameter></term>
274                             <listitem>
275                                 <para>Стоимость "заморозки" пользователя</para>
276                             </listitem>
277                         </varlistentry>
278                         <varlistentry>
279                             <term>int <parameter>trafftype</parameter></term>
280                             <listitem>
281                                 <para>Тип подсчета трафика:
282                                     <simplelist type="vert">
283                                         <member>0 &#151; подсчитывать только исходящий трафик</member>
284                                         <member>1 &#151; подсчитывать только входящий трафик</member>
285                                         <member>2 &#151; подсчитывать суммарно входящий и исходящий трафик</member>
286                                         <member>3 &#151; подсчитывать максимальный из входящего и исходящего трафика</member>
287                                     </simplelist>
288                                 </para>
289                             </listitem>
290                         </varlistentry>
291                         <varlistentry>
292                             <term>string <parameter>period</parameter></term>
293                             <listitem>
294                                 <para>Периодичность снятия абонплаты:
295                                     <simplelist type="vert">
296                                         <member>month &#151; ежемесячное снятие</member>
297                                         <member>day &#151; ежедневное снятие</member>
298                                     </simplelist>
299                                 </para>
300                             </listitem>
301                         </varlistentry>
302                         <varlistentry>
303                             <term>array of struct <parameter>dirprices</parameter></term>
304                             <listitem>
305                                 <para>Массив стурктур, описывающих тарификацию направлений:
306                                     <variablelist>
307                                         <varlistentry>
308                                             <term>int <parameter>hday</parameter></term>
309                                             <listitem>
310                                                 <para>Часы начала дня</para>
311                                             </listitem>
312                                         </varlistentry>
313                                         <varlistentry>
314                                             <term>int <parameter>mday</parameter></term>
315                                             <listitem>
316                                                 <para>Минуты начала дня</para>
317                                             </listitem>
318                                         </varlistentry>
319                                         <varlistentry>
320                                             <term>int <parameter>hnight</parameter></term>
321                                             <listitem>
322                                                 <para>Часы начала ночи</para>
323                                             </listitem>
324                                         </varlistentry>
325                                         <varlistentry>
326                                             <term>int <parameter>mnight</parameter></term>
327                                             <listitem>
328                                                 <para>Минуты начала ночи</para>
329                                             </listitem>
330                                         </varlistentry>
331                                         <varlistentry>
332                                             <term>double <parameter>pricedaya</parameter></term>
333                                             <listitem>
334                                                 <para>Цена 1 мегабайта трафика днем до превышения порогового значения</para>
335                                             </listitem>
336                                         </varlistentry>
337                                         <varlistentry>
338                                             <term>double <parameter>pricedayb</parameter></term>
339                                             <listitem>
340                                                 <para>Цена 1 мегабайта трафика днем после превышения порогового значения</para>
341                                             </listitem>
342                                         </varlistentry>
343                                         <varlistentry>
344                                             <term>double <parameter>pricenighta</parameter></term>
345                                             <listitem>
346                                                 <para>Цена 1 мегабайта трафика ночью до превышения порогового значения</para>
347                                             </listitem>
348                                         </varlistentry>
349                                         <varlistentry>
350                                             <term>double <parameter>pricenightb</parameter></term>
351                                             <listitem>
352                                                 <para>Цена 1 мегабайта трафика ночью после превышения порогового значения</para>
353                                             </listitem>
354                                         </varlistentry>
355                                         <varlistentry>
356                                             <term>int <parameter>threshold</parameter></term>
357                                             <listitem>
358                                                 <para>Величина порога в мегабайтах</para>
359                                             </listitem>
360                                         </varlistentry>
361                                         <varlistentry>
362                                             <term>boolean <parameter>singleprice</parameter></term>
363                                             <listitem>
364                                                 <para>Цена не зависит от времени стуок</para>
365                                             </listitem>
366                                         </varlistentry>
367                                         <varlistentry>
368                                             <term>boolean <parameter>nodiscount</parameter></term>
369                                             <listitem>
370                                                 <para>Цена не зависит от порога</para>
371                                             </listitem>
372                                         </varlistentry>
373                                     </variablelist>
374                                 </para>
375                             </listitem>
376                         </varlistentry>
377                     </variablelist>
378                 </para>
379             </refsect2>
380         </refsect1>
381         <refsect1>
382             <title>See also</title>
383             <para>
384                 <link linkend="stargazer.get_tariff"><function>stargazer.get_tariff</function></link>,
385                 <link linkend="stargazer.add_tariff"><function>stargazer.add_tariff</function></link>,
386                 <link linkend="stargazer.del_tariff"><function>stargazer.del_tariff</function></link>,
387                 <link linkend="stargazer.chg_tariff"><function>stargazer.chg_tariff</function></link>
388             </para>
389         </refsect1>
390     </refentry>
391     <refentry id="stargazer.add_tariff">
392         <refmeta>
393             <refentrytitle>stargazer.add_tariff</refentrytitle>
394         </refmeta>
395         <refnamediv>
396             <refname>stargazer.add_tariff</refname>
397             <refpurpose>Добавляет в систему новый тарифный план</refpurpose>
398         </refnamediv>
399         <refsynopsisdiv>
400             <funcsynopsis>
401                 <funcprototype>
402                     <funcdef><function>stargazer.add_tariff</function></funcdef>
403                     <paramdef>string <parameter>cookie</parameter></paramdef>
404                     <paramdef>string <parameter>tariff</parameter></paramdef>
405                 </funcprototype>
406             </funcsynopsis>
407         </refsynopsisdiv>
408         <refsect1>
409             <title>Description</title>
410             <para>Метод <function>stargazer.add_tariff</function> добавляет в систему новый "пустой" тарифный план. Для его настройки используется метод <link linkend="stargazer.chg_tariff"><function>stargazer.chg_tariff</function></link>.</para>
411             <variablelist>
412                 <varlistentry>
413                     <term>string <parameter>cookie</parameter></term>
414                     <listitem>
415                         <para>Авторизационный cookie. Для авторизации в системе используется метод <function><link linkend="stargazer.login">stargazer.login</link></function></para>
416                     </listitem>
417                 </varlistentry>
418                 <varlistentry>
419                     <term>string <parameter>tariff</parameter></term>
420                     <listitem>
421                         <para>Название тарифа</para>
422                     </listitem>
423                 </varlistentry>
424             </variablelist>
425             <refsect2>
426                 <title>Return Value</title>
427                 <para>Возвращет true в случае успеха и false в случае неудачи</para>
428             </refsect2>
429         </refsect1>
430         <refsect1>
431             <title>See also</title>
432             <para>
433                 <link linkend="stargazer.get_tariffs"><function>stargazer.get_tariffs</function></link>,
434                 <link linkend="stargazer.get_tariff"><function>stargazer.get_tariff</function></link>,
435                 <link linkend="stargazer.del_tariff"><function>stargazer.del_tariff</function></link>,
436                 <link linkend="stargazer.chg_tariff"><function>stargazer.chg_tariff</function></link>
437             </para>
438         </refsect1>
439     </refentry>
440     <refentry id="stargazer.del_tariff">
441         <refmeta>
442             <refentrytitle>stargazer.del_tariff</refentrytitle>
443         </refmeta>
444         <refnamediv>
445             <refname>stargazer.del_tariff</refname>
446             <refpurpose>Удаляет из системы тарифный план</refpurpose>
447         </refnamediv>
448         <refsynopsisdiv>
449             <funcsynopsis>
450                 <funcprototype>
451                     <funcdef><function>stargazer.del_tariff</function></funcdef>
452                     <paramdef>string <parameter>cookie</parameter></paramdef>
453                     <paramdef>string <parameter>tariff</parameter></paramdef>
454                 </funcprototype>
455             </funcsynopsis>
456         </refsynopsisdiv>
457         <refsect1>
458             <title>Description</title>
459             <para>Метод <function>stargazer.del_tariff</function> удаляет из системы тарифный план</para>
460             <variablelist>
461                 <varlistentry>
462                     <term>string <parameter>cookie</parameter></term>
463                     <listitem>
464                         <para>Авторизационный cookie. Для авторизации в системе используется метод <function><link linkend="stargazer.login">stargazer.login</link></function></para>
465                     </listitem>
466                 </varlistentry>
467                 <varlistentry>
468                     <term>string <parameter>tariff</parameter></term>
469                     <listitem>
470                         <para>Название тарифа</para>
471                     </listitem>
472                 </varlistentry>
473             </variablelist>
474             <refsect2>
475                 <title>Return Value</title>
476                 <para>Возвращет true в случае успеха и false в случае неудачи</para>
477             </refsect2>
478         </refsect1>
479         <refsect1>
480             <title>See also</title>
481             <para>
482                 <link linkend="stargazer.get_tariffs"><function>stargazer.get_tariffs</function></link>,
483                 <link linkend="stargazer.get_tariff"><function>stargazer.get_tariff</function></link>,
484                 <link linkend="stargazer.add_tariff"><function>stargazer.add_tariff</function></link>,
485                 <link linkend="stargazer.chg_tariff"><function>stargazer.chg_tariff</function></link>
486             </para>
487         </refsect1>
488     </refentry>
489     <refentry id="stargazer.chg_tariff">
490         <refmeta>
491             <refentrytitle>stargazer.chg_tariff</refentrytitle>
492         </refmeta>
493         <refnamediv>
494             <refname>stargazer.chg_tariff</refname>
495             <refpurpose>Изменяет информацию о тарифном плане</refpurpose>
496         </refnamediv>
497         <refsynopsisdiv>
498             <funcsynopsis>
499                 <funcprototype>
500                     <funcdef><function>stargazer.chg_tariff</function></funcdef>
501                     <paramdef>string <parameter>cookie</parameter></paramdef>
502                     <paramdef>string <parameter>tariff</parameter></paramdef>
503                     <paramdef>struct <parameter>info</parameter></paramdef>
504                 </funcprototype>
505             </funcsynopsis>
506         </refsynopsisdiv>
507         <refsect1>
508             <title>Description</title>
509             <para>Метод <function>stargazer.chg_tariff</function> изменяет информацию о тарифном плане. Допустимо частичное указание параметров в структуре info. В этом случае изменение затронет только указанные параметры. Дополнительные поля структуры (не входящие в описание) будут проигнорированы.</para>
510             <variablelist>
511                 <varlistentry>
512                     <term>string <parameter>cookie</parameter></term>
513                     <listitem>
514                         <para>Авторизационный cookie. Для авторизации в системе используется метод <function><link linkend="stargazer.login">stargazer.login</link></function></para>
515                     </listitem>
516                 </varlistentry>
517                 <varlistentry>
518                     <term>string <parameter>tariff</parameter></term>
519                     <listitem>
520                         <para>Название тарифа</para>
521                     </listitem>
522                 </varlistentry>
523                 <varlistentry>
524                     <term>struct <parameter>info</parameter></term>
525                     <listitem>
526                         <para>
527                             Структура с информацией о тарифном плане:
528                             <variablelist>
529                                 <varlistentry>
530                                     <term>string <parameter>name</parameter></term>
531                                     <listitem>
532                                         <para>Название тарифа</para>
533                                     </listitem>
534                                 </varlistentry>
535                                 <varlistentry>
536                                     <term>double <parameter>fee</parameter></term>
537                                     <listitem>
538                                         <para>Абонплата</para>
539                                     </listitem>
540                                 </varlistentry>
541                                 <varlistentry>
542                                     <term>double <parameter>freemb</parameter></term>
543                                     <listitem>
544                                         <para>Количество свободных мегабайт, включенных в абонплату</para>
545                                     </listitem>
546                                 </varlistentry>
547                                 <varlistentry>
548                                     <term>double <parameter>passivecost</parameter></term>
549                                     <listitem>
550                                         <para>Стоимость заморозки пользователя</para>
551                                     </listitem>
552                                 </varlistentry>
553                                 <varlistentry>
554                                     <term>int <parameter>trafftype</parameter></term>
555                                     <listitem>
556                                         <para>Тип подсчета трафика:
557                                             <simplelist type="vert">
558                                                 <member>0 &#151; подсчитывать только исходящий трафик</member>
559                                                 <member>1 &#151; подсчитывать только входящий трафик</member>
560                                                 <member>2 &#151; подсчитывать суммарно входящий и исходящий трафик</member>
561                                                 <member>3 &#151; подсчитывать максимальный из входящего и исходящего трафика</member>
562                                             </simplelist>
563                                         </para>
564                                     </listitem>
565                                 </varlistentry>
566                                 <varlistentry>
567                                     <term>string <parameter>period</parameter></term>
568                                     <listitem>
569                                         <para>Периодичность снятия абонплаты:
570                                             <simplelist type="vert">
571                                                 <member>month &#151; ежемесячное снятие</member>
572                                                 <member>day &#151; ежедневное снятие</member>
573                                             </simplelist>
574                                         </para>
575                                     </listitem>
576                                 </varlistentry>
577                                 <varlistentry>
578                                     <term>array of struct <parameter>dirprices</parameter></term>
579                                     <listitem>
580                                         <para>Массив стурктур, описывающих тарификацию направлений:
581                                             <variablelist>
582                                                 <varlistentry>
583                                                     <term>int <parameter>hday</parameter></term>
584                                                     <listitem>
585                                                         <para>Часы начала дня</para>
586                                                     </listitem>
587                                                 </varlistentry>
588                                                 <varlistentry>
589                                                     <term>int <parameter>mday</parameter></term>
590                                                     <listitem>
591                                                         <para>Минуты начала дня</para>
592                                                     </listitem>
593                                                 </varlistentry>
594                                                 <varlistentry>
595                                                     <term>int <parameter>hnight</parameter></term>
596                                                     <listitem>
597                                                         <para>Часы начала ночи</para>
598                                                     </listitem>
599                                                 </varlistentry>
600                                                 <varlistentry>
601                                                     <term>int <parameter>mnight</parameter></term>
602                                                     <listitem>
603                                                         <para>Минуты начала ночи</para>
604                                                     </listitem>
605                                                 </varlistentry>
606                                                 <varlistentry>
607                                                     <term>double <parameter>pricedaya</parameter></term>
608                                                     <listitem>
609                                                         <para>Цена 1 мегабайта трафика днем до превышения порогового значения</para>
610                                                     </listitem>
611                                                 </varlistentry>
612                                                 <varlistentry>
613                                                     <term>double <parameter>pricedayb</parameter></term>
614                                                     <listitem>
615                                                         <para>Цена 1 мегабайта трафика днем после превышения порогового значения</para>
616                                                     </listitem>
617                                                 </varlistentry>
618                                                 <varlistentry>
619                                                     <term>double <parameter>pricenighta</parameter></term>
620                                                     <listitem>
621                                                         <para>Цена 1 мегабайта трафика ночью до превышения порогового значения</para>
622                                                     </listitem>
623                                                 </varlistentry>
624                                                 <varlistentry>
625                                                     <term>double <parameter>pricenightb</parameter></term>
626                                                     <listitem>
627                                                         <para>Цена 1 мегабайта трафика ночью после превышения порогового значения</para>
628                                                     </listitem>
629                                                 </varlistentry>
630                                                 <varlistentry>
631                                                     <term>int <parameter>threshold</parameter></term>
632                                                     <listitem>
633                                                         <para>Величина порога в мегабайтах</para>
634                                                     </listitem>
635                                                 </varlistentry>
636                                                 <varlistentry>
637                                                     <term>boolean <parameter>singleprice</parameter></term>
638                                                     <listitem>
639                                                         <para>Цена не зависит от времени стуок</para>
640                                                     </listitem>
641                                                 </varlistentry>
642                                                 <varlistentry>
643                                                     <term>boolean <parameter>nodiscount</parameter></term>
644                                                     <listitem>
645                                                         <para>Цена не зависит от порога</para>
646                                                     </listitem>
647                                                 </varlistentry>
648                                             </variablelist>
649                                         </para>
650                                     </listitem>
651                                 </varlistentry>
652                             </variablelist>
653                         </para>
654                     </listitem>
655                 </varlistentry>
656             </variablelist>
657             <refsect2>
658                 <title>Return Value</title>
659                 <para>Возвращет true в случае успеха и false в случае неудачи</para>
660             </refsect2>
661         </refsect1>
662         <refsect1>
663             <title>See also</title>
664             <para>
665                 <link linkend="stargazer.get_tariffs"><function>stargazer.get_tariffs</function></link>,
666                 <link linkend="stargazer.get_tariff"><function>stargazer.get_tariff</function></link>,
667                 <link linkend="stargazer.add_tariff"><function>stargazer.add_tariff</function></link>,
668                 <link linkend="stargazer.del_tariff"><function>stargazer.del_tariff</function></link>
669             </para>
670         </refsect1>
671     </refentry>
672 </chapter>