- 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.1 KiB
1.1 KiB
Stock
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| id | int | [optional] [readonly] | |
| note | str | [optional] | |
| stock_count | int | ||
| position_id | int | ||
| document_id | int | [optional] [readonly] | |
| document_position_id | int | [optional] [readonly] | |
| stored_at | str | [optional] | |
| created_at | str | [optional] [readonly] | |
| updated_at | str | [optional] [readonly] |
Example
from easybill_generated_async.models.stock import Stock
# TODO update the JSON string below
json = "{}"
# create an instance of Stock from a JSON string
stock_instance = Stock.from_json(json)
# print the JSON string representation of the object
print(Stock.to_json())
# convert the object into a dict
stock_dict = stock_instance.to_dict()
# create an instance of Stock from a dict
stock_from_dict = Stock.from_dict(stock_dict)