3.5. Tariffs Handling

Top  Previous  Next

Added scripts

stations_list.ds—get the list of stations of a tariff group.

Changed scripts

Get tariff group information—tariffs/info.ds

Lists of packages for group installing are added to the response. The response contains the total number of child groups and stations instead of the list of child groups and stations.

TO get a list of child groups, add the parent-group parameter to the tariffs/list.ds request. To get a list of stations, use the tariffs/stations-list.ds request.

Changes in request parameters:

The child-groups and stations parameters are removed.

Changes in XML response:

The <child-groups /> element is changed. Now it contains information on the groups number instead of the list of all groups.

The <stations /> element is changed. Now it contains information on the stations number instead of the list of all stations.

Get tariff groups list—tariffs/list.ds

Script logic is changed. In the previous versions, the response contained the list of all tariff groups regardless of its hierarchy. Now it contains only the root tariff groups. The script can also return nested tariff groups of a specified group. For that, add the parent-group parameter to the request.

Changes in request parameters:

The parent-group parameter is added.

Changes in XML response:

Outdated attributes parent_id and parent_name are removed from the <group /> element;

The stations attribute of the <group /> element contains the number of all stations including nested groups.

Add a tariff group—tariffs/add.ds

When adding a new tariff, new request parameters are added for easier setting of the installing components list. You can set installing components using new parameters such as component-scanner, component-office-control, component-spider-guard and so on. The old version with the components parameters is supported too.

The response contains only the identifier of an added tariff group. In the XML API 3.x version, it contained all the information about an added tariff group (same information as the tariffs/info.ds script returns).

Changes in request parameters:

The following parameters are added: component-scanner, component-office-control, component-spider-guard, component-spider-guard-servers, component-spider-mail, component-spider-gate, component-msoutlook-plugin, component-firewall, component-antispam.

Changes in XML response:

The response contains only the identifier of an added tariff group:

<groups id="group_id"/>

Delete a tariff group—tariffs/delete.ds

The response contains only the identifier of an deleted tariff group. In the XML API 3.x version, it contained all the information about a deleted tariff group (same information as the tariffs/info.ds script returns).

Changes in XML response:

The response contains only the identifier of a deleted tariff group:

<group id="group_id"/>

Change a tariff group—tariffs/change.ds

The response contains only the identifier of an changed tariff group. In the XML API 3.x version, it contained all the information about a changed tariff group (same information as the tariffs/info.ds script returns).

Changes in request parameters:

The grace-period and parent-group parameters are removed.

Changes in XML response:The response contains only the identifier of a changed tariff group:

<group id="group_id"/>