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
52
generated/async/docs/Contact.md
Normal file
52
generated/async/docs/Contact.md
Normal file
|
|
@ -0,0 +1,52 @@
|
|||
# Contact
|
||||
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**city** | **str** | |
|
||||
**state** | **str** | | [optional]
|
||||
**company_name** | **str** | | [optional]
|
||||
**country** | **str** | Two-letter country code | [optional]
|
||||
**department** | **str** | | [optional] [default to 'null']
|
||||
**emails** | **List[str]** | | [optional]
|
||||
**fax** | **str** | | [optional] [default to 'null']
|
||||
**first_name** | **str** | | [optional] [default to 'null']
|
||||
**id** | **int** | | [optional] [readonly]
|
||||
**last_name** | **str** | | [optional] [default to 'null']
|
||||
**login_id** | **int** | | [optional] [readonly]
|
||||
**mobile** | **str** | | [optional] [default to 'null']
|
||||
**note** | **str** | | [optional] [default to 'null']
|
||||
**personal** | **bool** | | [optional] [default to False]
|
||||
**phone_1** | **str** | | [optional] [default to 'null']
|
||||
**phone_2** | **str** | | [optional] [default to 'null']
|
||||
**salutation** | **int** | 0: empty<br/> 1: Herrn<br/> 2: Frau<br/> 3: Firma<br/> 4: Herrn und Frau<br/> 5: Eheleute<br/> 6: Familie | [optional]
|
||||
**street** | **str** | |
|
||||
**suffix_1** | **str** | | [optional] [default to 'null']
|
||||
**suffix_2** | **str** | | [optional] [default to 'null']
|
||||
**title** | **str** | | [optional] [default to 'null']
|
||||
**zip_code** | **str** | | [optional] [default to 'null']
|
||||
**created_at** | **str** | | [optional] [readonly]
|
||||
**updated_at** | **str** | | [optional] [readonly]
|
||||
|
||||
## Example
|
||||
|
||||
```python
|
||||
from easybill_generated_async.models.contact import Contact
|
||||
|
||||
# TODO update the JSON string below
|
||||
json = "{}"
|
||||
# create an instance of Contact from a JSON string
|
||||
contact_instance = Contact.from_json(json)
|
||||
# print the JSON string representation of the object
|
||||
print(Contact.to_json())
|
||||
|
||||
# convert the object into a dict
|
||||
contact_dict = contact_instance.to_dict()
|
||||
# create an instance of Contact from a dict
|
||||
contact_from_dict = Contact.from_dict(contact_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