Tariffs¶
-
class
effipy.tariffs.
Tariffs
(parent, object_id=None)¶ Bases:
effipy.resource.EffiPeopleResource
Permite gestionar las tarifas de la compañía.
-
create
(dict)¶ Create a new tariffs with a dict that will be converted to JSON.
Parameters: dict (dict) – A dictionary with tariffs data like the following: { "id": "2.0DHA", "name": "Luz 10 (2.0A)", "tariffType": "2.0DHA", "version": "2", "start": 1363301230, "end": 1363304568, "periods": { "p1": { "activeEnergyPrice": 0.167658, "powerPrice": 1.824432 }, "p2": { "activeEnergyPrice": 0.05719, "powerPrice": 1.824432 } } }
-
add_filter
(filter_function)¶
-
apply_filters
(request)¶
-
delete
(*args, **kwargs)¶ Delete this resource.
-
filters
= ()¶
-
get
(*args, **kwargs)¶ -
get
()¶ -
`get()` method for all the EffiPeople resources.
Parameters: - start (int) – Start of the results
- limit (int) – Limit of the results
-
-
get_url
()¶ Get the URL for the endpoint.
In our case, we replace ‘/’ for ‘-‘ for the object identifier.
-
list_methods
()¶
-
list_resources
()¶
-
parent
= None¶
-
path
= 'tariffs'¶
-
require
(condition)¶
-
require_collection
()¶
-
require_item
()¶
-
update
(*args, **kwargs)¶
-
version
(object_id)¶
-
versions
()¶
-
wrap_object
(obj)¶
-