- 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
DiscountPositions
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| page | int | The current page | |
| pages | int | Max possible pages | |
| limit | int | Items limitation. Max 1000 | |
| total | int | Total Items | |
| items | List[DiscountPosition] | [optional] |
Example
from easybill_generated_sync.models.discount_positions import DiscountPositions
# TODO update the JSON string below
json = "{}"
# create an instance of DiscountPositions from a JSON string
discount_positions_instance = DiscountPositions.from_json(json)
# print the JSON string representation of the object
print(DiscountPositions.to_json())
# convert the object into a dict
discount_positions_dict = discount_positions_instance.to_dict()
# create an instance of DiscountPositions from a dict
discount_positions_from_dict = DiscountPositions.from_dict(discount_positions_dict)