Find file
Fetching contributors…
Cannot retrieve contributors at this time
31 lines (19 sloc) 875 Bytes

Tariffs - AVDeskTariff class

Tariff pyavdesk resource described by AVDeskTariff class exposes an interface to manipulate tariffs at server.


It is advised to use server resource class AVDeskServer as a single entry point for every server resource manipulation instead of direct instantiation of AVDeskTariff class.

Basic class usage example:

# Setting up server connection parameters.
av_server = pyavdesk.AVDeskServer('admin', 'password', '')

# Get basic tariff.
tariff_classic = av_server.get_tariff(pyavdesk.TARIFF_IDS['CLASSIC'])

# Create a new tariff.
new_tariff = av_server.new_tariff('My new tariff')