Add unit tests for authentication and webhook parsing
- 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.
This commit is contained in:
commit
caacb339dd
550 changed files with 127217 additions and 0 deletions
47
generated/sync/docs/PostBox.md
Normal file
47
generated/sync/docs/PostBox.md
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
# PostBox
|
||||
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**id** | **int** | | [optional] [readonly]
|
||||
**document_id** | **int** | | [optional]
|
||||
**to** | **str** | | [optional]
|
||||
**cc** | **str** | | [optional]
|
||||
**var_from** | **str** | | [optional]
|
||||
**subject** | **str** | | [optional]
|
||||
**message** | **str** | | [optional]
|
||||
**var_date** | **date** | | [optional]
|
||||
**created_at** | **datetime** | | [optional]
|
||||
**processed_at** | **datetime** | | [optional]
|
||||
**send_by_self** | **bool** | | [optional]
|
||||
**send_with_attachment** | **bool** | | [optional]
|
||||
**type** | **str** | | [optional]
|
||||
**status** | **str** | | [optional]
|
||||
**status_msg** | **str** | | [optional]
|
||||
**login_id** | **int** | | [optional] [readonly]
|
||||
**document_file_type** | **str** | | [optional]
|
||||
**post_send_type** | **str** | This value indicates what method is used when the document is send via mail. The different types are offered by the german post as additional services. The registered mail options will include a tracking number which will be added to the postbox when known. If the value is omitted or empty when a postbox is created with the type \"POST\" post_send_type_standard will be used. For postbox with a different type than \"POST\" this field will hold a empty string. | [optional]
|
||||
**tracking_identifier** | **str** | If the document is send with one of the registered send types stated for post_send_type, a tracking identifier will be added to the postbox at a later point when the tracking identifier is provided by our service partner. | [optional] [readonly]
|
||||
|
||||
## Example
|
||||
|
||||
```python
|
||||
from easybill_generated_sync.models.post_box import PostBox
|
||||
|
||||
# TODO update the JSON string below
|
||||
json = "{}"
|
||||
# create an instance of PostBox from a JSON string
|
||||
post_box_instance = PostBox.from_json(json)
|
||||
# print the JSON string representation of the object
|
||||
print(PostBox.to_json())
|
||||
|
||||
# convert the object into a dict
|
||||
post_box_dict = post_box_instance.to_dict()
|
||||
# create an instance of PostBox from a dict
|
||||
post_box_from_dict = PostBox.from_dict(post_box_dict)
|
||||
```
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue