- Implement tests for basic and bearer authentication headers in `test_auth.py`. - Create tests for the `EasybillWebhookParser` in `test_webhooks.py`, covering JSON and form-encoded payloads, as well as a generic parse and acknowledgement method.
1.6 KiB
1.6 KiB
Project
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| budget_amount | int | Project budget in cents (e.g. "150" = 1.50€) | [optional] |
| budget_time | int | Time budget in minutes (e.g. "90" = 1 hour and 30 minutes) | [optional] |
| customer_id | int | [optional] | |
| hourly_rate | float | Hourly rate in cents (e.g. "150" = 1.50€) | [optional] |
| id | int | [optional] [readonly] | |
| login_id | int | If omitted or null, the currently active login is used | [optional] |
| name | str | ||
| note | str | [optional] [default to 'null'] | |
| status | str | [optional] [default to 'OPEN'] | |
| due_at | date | [optional] | |
| budget_notify_frequency | str | [optional] [default to 'ALWAYS'] | |
| consumed_time | int | [optional] [readonly] | |
| consumed_amount | int | [optional] [readonly] |
Example
from easybill_generated_async.models.project import Project
# TODO update the JSON string below
json = "{}"
# create an instance of Project from a JSON string
project_instance = Project.from_json(json)
# print the JSON string representation of the object
print(Project.to_json())
# convert the object into a dict
project_dict = project_instance.to_dict()
# create an instance of Project from a dict
project_from_dict = Project.from_dict(project_dict)