Invoices¶
-
class
effipy.invoices.
Invoices
(parent, object_id=None)¶ Bases:
effipy.resource.EffiPeopleResource
-
create
(dict)¶ Create a new invoice with a dict that will be converted to JSON.
Parameters: dict (dict) – A dictionary with invoice data like the following: { "number": "Número de factura", "customerId": "Identificador único del cliente", "contractId": "Identificador único del contrato", "usagePointId": "ES0987543210987654ZF", "activityCode": "Código CNAE", "tariffId": "2.0A", "power": 5500, "activeEnergyConsumption": 400, "reactiveEnergyConsumption": 225, "isConsumptionEstimated": false, "activeEnergyCost": 200.0, "reactiveEnergyCost": 100.0, "powerCost": 300.0, "servicesCost": 75.0, "rentalsCost": 100.0, "otherCost": 50.0, "subtotal": 825.0, "otherTaxes": 6.75, "currencyCode": "Euro", "invoiceDate": 1363301230, "periodStart": 1363301020, "periodEnd": 13633012000, "vat": 173.25, "totalTaxes": 180.0, "total": 1005.0, "tariffType": "2.0DHA" }
-
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
()¶
-
measure
(measure_id)¶
-
measures
()¶
-
parent
= None¶
-
path
= 'invoices'¶
-
require
(condition)¶
-
require_collection
()¶
-
require_item
()¶
-
update
(*args, **kwargs)¶
-
wrap_object
(obj)¶
-