Contracts¶
-
class
effipy.contracts.
Contracts
(parent, object_id=None)¶ Bases:
effipy.resource.EffiPeopleResource
Permite gestionar los contratos de los clientes de la compañía.
-
create
(dict)¶ Create a new contract with a dict that will be converted to JSON.
>>> ef.customer(1234).contracts().create()
Parameters: dict (dict) – A dictionary with contract data like the following: { "id": "IdentificadorContrato", "customerId": "IdentificadorCliente", "version": "2", "start": 1332806400, "end": 1362009600, "tariffId": "2.0A", "power": 3300, "activityCode": "CNAE", "usagePointId": "ES0987543210987654ZF" }
-
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.
-
invoice
(object_id)¶
-
invoices
()¶
-
list_methods
()¶
-
list_resources
()¶
-
parent
= None¶
-
path
= 'contracts'¶
-
require
(condition)¶
-
require_collection
()¶
-
require_item
()¶
-
update
(*args, **kwargs)¶
-
version
(object_id)¶
-
versions
()¶
-
wrap_object
(obj)¶
-