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:
claudi 2026-04-17 10:20:12 +02:00
commit caacb339dd
550 changed files with 127217 additions and 0 deletions

View file

View file

@ -0,0 +1,54 @@
# coding: utf-8
"""
easybill REST API
The first version of the easybill REST API. [CHANGELOG](https://api.easybill.de/rest/v1/CHANGELOG.md) ## Authentication You can choose between two available methods: `Basic Auth` or `Bearer Token`. In each HTTP request, one of the following HTTP headers is required: ``` # Basic Auth Authorization: Basic base64_encode('<email>:<api_key>') # Bearer Token Authorization: Bearer <api_key> ``` ## Limitations ### Request Limit * PLUS: 10 requests per minute * BUSINESS: 60 requests per minute If the limit is exceeded, you will receive the HTTP error: `429 Too Many Requests` ### Result Limit All result lists are limited to 100 by default. This limit can be increased by the query parameter `limit` to a maximum of 1000. ## Query filter Many list resources can be filtered. In `/documents` you can filter e.g. by number with `/documents?number=111028654`. If you want to filter multiple numbers, you can either enter them separated by commas `/documents?number=111028654,222006895` or as an array `/documents?number[]=111028654&number[]=222006895`. **Warning**: The maximum size of an HTTP request line in bytes is 4094. If this limit is exceeded, you will receive the HTTP error: `414 Request-URI Too Large` ### Escape commas in query You can escape commans in query `name=Patrick\\, Peter` if you submit the header `X-Easybill-Escape: true` in your request. ## Property login_id This is the login of your admin or employee account. ## Date and Date-Time format Please use the timezone `Europe/Berlin`. * **date** = *Y-m-d* = `2016-12-31` * **date-time** = *Y-m-d H:i:s* = `2016-12-31 03:13:37` Date or datetime can be `null` because the attributes have been added later and the entry is older.
The version of the OpenAPI document: 1.96.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
from easybill_generated_async.models.advanced_data_field import AdvancedDataField
class TestAdvancedDataField(unittest.TestCase):
"""AdvancedDataField unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> AdvancedDataField:
"""Test AdvancedDataField
include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
# uncomment below to create an instance of `AdvancedDataField`
"""
model = AdvancedDataField()
if include_optional:
return AdvancedDataField(
identifier = 'BT-10',
value = 'Customer-Ref-123'
)
else:
return AdvancedDataField(
identifier = 'BT-10',
value = 'Customer-Ref-123',
)
"""
def testAdvancedDataField(self):
"""Test AdvancedDataField"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()

View file

@ -0,0 +1,57 @@
# coding: utf-8
"""
easybill REST API
The first version of the easybill REST API. [CHANGELOG](https://api.easybill.de/rest/v1/CHANGELOG.md) ## Authentication You can choose between two available methods: `Basic Auth` or `Bearer Token`. In each HTTP request, one of the following HTTP headers is required: ``` # Basic Auth Authorization: Basic base64_encode('<email>:<api_key>') # Bearer Token Authorization: Bearer <api_key> ``` ## Limitations ### Request Limit * PLUS: 10 requests per minute * BUSINESS: 60 requests per minute If the limit is exceeded, you will receive the HTTP error: `429 Too Many Requests` ### Result Limit All result lists are limited to 100 by default. This limit can be increased by the query parameter `limit` to a maximum of 1000. ## Query filter Many list resources can be filtered. In `/documents` you can filter e.g. by number with `/documents?number=111028654`. If you want to filter multiple numbers, you can either enter them separated by commas `/documents?number=111028654,222006895` or as an array `/documents?number[]=111028654&number[]=222006895`. **Warning**: The maximum size of an HTTP request line in bytes is 4094. If this limit is exceeded, you will receive the HTTP error: `414 Request-URI Too Large` ### Escape commas in query You can escape commans in query `name=Patrick\\, Peter` if you submit the header `X-Easybill-Escape: true` in your request. ## Property login_id This is the login of your admin or employee account. ## Date and Date-Time format Please use the timezone `Europe/Berlin`. * **date** = *Y-m-d* = `2016-12-31` * **date-time** = *Y-m-d H:i:s* = `2016-12-31 03:13:37` Date or datetime can be `null` because the attributes have been added later and the entry is older.
The version of the OpenAPI document: 1.96.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
from easybill_generated_async.models.attachment import Attachment
class TestAttachment(unittest.TestCase):
"""Attachment unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> Attachment:
"""Test Attachment
include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
# uncomment below to create an instance of `Attachment`
"""
model = Attachment()
if include_optional:
return Attachment(
created_at = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(),
customer_id = 56,
document_id = 56,
file_name = 'my_doc.pdf',
id = 56,
project_id = 56,
size = 10022
)
else:
return Attachment(
)
"""
def testAttachment(self):
"""Test Attachment"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()

View file

@ -0,0 +1,73 @@
# coding: utf-8
"""
easybill REST API
The first version of the easybill REST API. [CHANGELOG](https://api.easybill.de/rest/v1/CHANGELOG.md) ## Authentication You can choose between two available methods: `Basic Auth` or `Bearer Token`. In each HTTP request, one of the following HTTP headers is required: ``` # Basic Auth Authorization: Basic base64_encode('<email>:<api_key>') # Bearer Token Authorization: Bearer <api_key> ``` ## Limitations ### Request Limit * PLUS: 10 requests per minute * BUSINESS: 60 requests per minute If the limit is exceeded, you will receive the HTTP error: `429 Too Many Requests` ### Result Limit All result lists are limited to 100 by default. This limit can be increased by the query parameter `limit` to a maximum of 1000. ## Query filter Many list resources can be filtered. In `/documents` you can filter e.g. by number with `/documents?number=111028654`. If you want to filter multiple numbers, you can either enter them separated by commas `/documents?number=111028654,222006895` or as an array `/documents?number[]=111028654&number[]=222006895`. **Warning**: The maximum size of an HTTP request line in bytes is 4094. If this limit is exceeded, you will receive the HTTP error: `414 Request-URI Too Large` ### Escape commas in query You can escape commans in query `name=Patrick\\, Peter` if you submit the header `X-Easybill-Escape: true` in your request. ## Property login_id This is the login of your admin or employee account. ## Date and Date-Time format Please use the timezone `Europe/Berlin`. * **date** = *Y-m-d* = `2016-12-31` * **date-time** = *Y-m-d H:i:s* = `2016-12-31 03:13:37` Date or datetime can be `null` because the attributes have been added later and the entry is older.
The version of the OpenAPI document: 1.96.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
from easybill_generated_async.api.attachment_api import AttachmentApi
class TestAttachmentApi(unittest.IsolatedAsyncioTestCase):
"""AttachmentApi unit test stubs"""
async def asyncSetUp(self) -> None:
self.api = AttachmentApi()
async def asyncTearDown(self) -> None:
await self.api.api_client.close()
async def test_attachments_get(self) -> None:
"""Test case for attachments_get
Fetch attachments list
"""
pass
async def test_attachments_id_content_get(self) -> None:
"""Test case for attachments_id_content_get
Fetch attachment content
"""
pass
async def test_attachments_id_delete(self) -> None:
"""Test case for attachments_id_delete
Delete attachment
"""
pass
async def test_attachments_id_get(self) -> None:
"""Test case for attachments_id_get
Fetch attachment
"""
pass
async def test_attachments_id_put(self) -> None:
"""Test case for attachments_id_put
Update attachment
"""
pass
async def test_attachments_post(self) -> None:
"""Test case for attachments_post
Create attachment
"""
pass
if __name__ == '__main__':
unittest.main()

View file

@ -0,0 +1,68 @@
# coding: utf-8
"""
easybill REST API
The first version of the easybill REST API. [CHANGELOG](https://api.easybill.de/rest/v1/CHANGELOG.md) ## Authentication You can choose between two available methods: `Basic Auth` or `Bearer Token`. In each HTTP request, one of the following HTTP headers is required: ``` # Basic Auth Authorization: Basic base64_encode('<email>:<api_key>') # Bearer Token Authorization: Bearer <api_key> ``` ## Limitations ### Request Limit * PLUS: 10 requests per minute * BUSINESS: 60 requests per minute If the limit is exceeded, you will receive the HTTP error: `429 Too Many Requests` ### Result Limit All result lists are limited to 100 by default. This limit can be increased by the query parameter `limit` to a maximum of 1000. ## Query filter Many list resources can be filtered. In `/documents` you can filter e.g. by number with `/documents?number=111028654`. If you want to filter multiple numbers, you can either enter them separated by commas `/documents?number=111028654,222006895` or as an array `/documents?number[]=111028654&number[]=222006895`. **Warning**: The maximum size of an HTTP request line in bytes is 4094. If this limit is exceeded, you will receive the HTTP error: `414 Request-URI Too Large` ### Escape commas in query You can escape commans in query `name=Patrick\\, Peter` if you submit the header `X-Easybill-Escape: true` in your request. ## Property login_id This is the login of your admin or employee account. ## Date and Date-Time format Please use the timezone `Europe/Berlin`. * **date** = *Y-m-d* = `2016-12-31` * **date-time** = *Y-m-d H:i:s* = `2016-12-31 03:13:37` Date or datetime can be `null` because the attributes have been added later and the entry is older.
The version of the OpenAPI document: 1.96.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
from easybill_generated_async.models.attachments import Attachments
class TestAttachments(unittest.TestCase):
"""Attachments unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> Attachments:
"""Test Attachments
include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
# uncomment below to create an instance of `Attachments`
"""
model = Attachments()
if include_optional:
return Attachments(
page = 1,
pages = 1,
limit = 100,
total = 20,
items = [
easybill_generated_async.models.attachment.Attachment(
created_at = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(),
customer_id = 56,
document_id = 56,
file_name = 'my_doc.pdf',
id = 56,
project_id = 56,
size = 10022, )
]
)
else:
return Attachments(
page = 1,
pages = 1,
limit = 100,
total = 20,
)
"""
def testAttachments(self):
"""Test Attachments"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()

View file

@ -0,0 +1,78 @@
# coding: utf-8
"""
easybill REST API
The first version of the easybill REST API. [CHANGELOG](https://api.easybill.de/rest/v1/CHANGELOG.md) ## Authentication You can choose between two available methods: `Basic Auth` or `Bearer Token`. In each HTTP request, one of the following HTTP headers is required: ``` # Basic Auth Authorization: Basic base64_encode('<email>:<api_key>') # Bearer Token Authorization: Bearer <api_key> ``` ## Limitations ### Request Limit * PLUS: 10 requests per minute * BUSINESS: 60 requests per minute If the limit is exceeded, you will receive the HTTP error: `429 Too Many Requests` ### Result Limit All result lists are limited to 100 by default. This limit can be increased by the query parameter `limit` to a maximum of 1000. ## Query filter Many list resources can be filtered. In `/documents` you can filter e.g. by number with `/documents?number=111028654`. If you want to filter multiple numbers, you can either enter them separated by commas `/documents?number=111028654,222006895` or as an array `/documents?number[]=111028654&number[]=222006895`. **Warning**: The maximum size of an HTTP request line in bytes is 4094. If this limit is exceeded, you will receive the HTTP error: `414 Request-URI Too Large` ### Escape commas in query You can escape commans in query `name=Patrick\\, Peter` if you submit the header `X-Easybill-Escape: true` in your request. ## Property login_id This is the login of your admin or employee account. ## Date and Date-Time format Please use the timezone `Europe/Berlin`. * **date** = *Y-m-d* = `2016-12-31` * **date-time** = *Y-m-d H:i:s* = `2016-12-31 03:13:37` Date or datetime can be `null` because the attributes have been added later and the entry is older.
The version of the OpenAPI document: 1.96.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
from easybill_generated_async.models.contact import Contact
class TestContact(unittest.TestCase):
"""Contact unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> Contact:
"""Test Contact
include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
# uncomment below to create an instance of `Contact`
"""
model = Contact()
if include_optional:
return Contact(
city = 'Musterstadt',
state = 'NRW',
company_name = 'Musterfirma GmbH',
country = 'DE',
department = 'null',
emails = [
'mustermann@easybill.de'
],
fax = 'null',
first_name = 'null',
id = 56,
last_name = 'null',
login_id = 56,
mobile = 'null',
note = 'null',
personal = True,
phone_1 = 'null',
phone_2 = 'null',
salutation = 56,
street = 'Musterstr.',
suffix_1 = 'null',
suffix_2 = 'null',
title = 'null',
zip_code = 'null',
created_at = '2018-01-01 23:23:45',
updated_at = '2018-01-01 23:23:45'
)
else:
return Contact(
city = 'Musterstadt',
street = 'Musterstr.',
)
"""
def testContact(self):
"""Test Contact"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()

View file

@ -0,0 +1,66 @@
# coding: utf-8
"""
easybill REST API
The first version of the easybill REST API. [CHANGELOG](https://api.easybill.de/rest/v1/CHANGELOG.md) ## Authentication You can choose between two available methods: `Basic Auth` or `Bearer Token`. In each HTTP request, one of the following HTTP headers is required: ``` # Basic Auth Authorization: Basic base64_encode('<email>:<api_key>') # Bearer Token Authorization: Bearer <api_key> ``` ## Limitations ### Request Limit * PLUS: 10 requests per minute * BUSINESS: 60 requests per minute If the limit is exceeded, you will receive the HTTP error: `429 Too Many Requests` ### Result Limit All result lists are limited to 100 by default. This limit can be increased by the query parameter `limit` to a maximum of 1000. ## Query filter Many list resources can be filtered. In `/documents` you can filter e.g. by number with `/documents?number=111028654`. If you want to filter multiple numbers, you can either enter them separated by commas `/documents?number=111028654,222006895` or as an array `/documents?number[]=111028654&number[]=222006895`. **Warning**: The maximum size of an HTTP request line in bytes is 4094. If this limit is exceeded, you will receive the HTTP error: `414 Request-URI Too Large` ### Escape commas in query You can escape commans in query `name=Patrick\\, Peter` if you submit the header `X-Easybill-Escape: true` in your request. ## Property login_id This is the login of your admin or employee account. ## Date and Date-Time format Please use the timezone `Europe/Berlin`. * **date** = *Y-m-d* = `2016-12-31` * **date-time** = *Y-m-d H:i:s* = `2016-12-31 03:13:37` Date or datetime can be `null` because the attributes have been added later and the entry is older.
The version of the OpenAPI document: 1.96.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
from easybill_generated_async.api.contact_api import ContactApi
class TestContactApi(unittest.IsolatedAsyncioTestCase):
"""ContactApi unit test stubs"""
async def asyncSetUp(self) -> None:
self.api = ContactApi()
async def asyncTearDown(self) -> None:
await self.api.api_client.close()
async def test_customers_customer_id_contacts_get(self) -> None:
"""Test case for customers_customer_id_contacts_get
Fetch customer contact list
"""
pass
async def test_customers_customer_id_contacts_id_delete(self) -> None:
"""Test case for customers_customer_id_contacts_id_delete
Delete contact
"""
pass
async def test_customers_customer_id_contacts_id_get(self) -> None:
"""Test case for customers_customer_id_contacts_id_get
Fetch contact
"""
pass
async def test_customers_customer_id_contacts_id_put(self) -> None:
"""Test case for customers_customer_id_contacts_id_put
Update Contact
"""
pass
async def test_customers_customer_id_contacts_post(self) -> None:
"""Test case for customers_customer_id_contacts_post
Create new contact
"""
pass
if __name__ == '__main__':
unittest.main()

View file

@ -0,0 +1,87 @@
# coding: utf-8
"""
easybill REST API
The first version of the easybill REST API. [CHANGELOG](https://api.easybill.de/rest/v1/CHANGELOG.md) ## Authentication You can choose between two available methods: `Basic Auth` or `Bearer Token`. In each HTTP request, one of the following HTTP headers is required: ``` # Basic Auth Authorization: Basic base64_encode('<email>:<api_key>') # Bearer Token Authorization: Bearer <api_key> ``` ## Limitations ### Request Limit * PLUS: 10 requests per minute * BUSINESS: 60 requests per minute If the limit is exceeded, you will receive the HTTP error: `429 Too Many Requests` ### Result Limit All result lists are limited to 100 by default. This limit can be increased by the query parameter `limit` to a maximum of 1000. ## Query filter Many list resources can be filtered. In `/documents` you can filter e.g. by number with `/documents?number=111028654`. If you want to filter multiple numbers, you can either enter them separated by commas `/documents?number=111028654,222006895` or as an array `/documents?number[]=111028654&number[]=222006895`. **Warning**: The maximum size of an HTTP request line in bytes is 4094. If this limit is exceeded, you will receive the HTTP error: `414 Request-URI Too Large` ### Escape commas in query You can escape commans in query `name=Patrick\\, Peter` if you submit the header `X-Easybill-Escape: true` in your request. ## Property login_id This is the login of your admin or employee account. ## Date and Date-Time format Please use the timezone `Europe/Berlin`. * **date** = *Y-m-d* = `2016-12-31` * **date-time** = *Y-m-d H:i:s* = `2016-12-31 03:13:37` Date or datetime can be `null` because the attributes have been added later and the entry is older.
The version of the OpenAPI document: 1.96.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
from easybill_generated_async.models.contacts import Contacts
class TestContacts(unittest.TestCase):
"""Contacts unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> Contacts:
"""Test Contacts
include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
# uncomment below to create an instance of `Contacts`
"""
model = Contacts()
if include_optional:
return Contacts(
page = 1,
pages = 1,
limit = 100,
total = 20,
items = [
easybill_generated_async.models.contact.Contact(
city = 'Musterstadt',
state = 'NRW',
company_name = 'Musterfirma GmbH',
country = 'DE',
department = 'null',
emails = [
'mustermann@easybill.de'
],
fax = 'null',
first_name = 'null',
id = 56,
last_name = 'null',
login_id = 56,
mobile = 'null',
note = 'null',
personal = True,
phone_1 = 'null',
phone_2 = 'null',
salutation = 56,
street = 'Musterstr.',
suffix_1 = 'null',
suffix_2 = 'null',
title = 'null',
zip_code = 'null',
created_at = '2018-01-01 23:23:45',
updated_at = '2018-01-01 23:23:45', )
]
)
else:
return Contacts(
page = 1,
pages = 1,
limit = 100,
total = 20,
)
"""
def testContacts(self):
"""Test Contacts"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()

View file

@ -0,0 +1,130 @@
# coding: utf-8
"""
easybill REST API
The first version of the easybill REST API. [CHANGELOG](https://api.easybill.de/rest/v1/CHANGELOG.md) ## Authentication You can choose between two available methods: `Basic Auth` or `Bearer Token`. In each HTTP request, one of the following HTTP headers is required: ``` # Basic Auth Authorization: Basic base64_encode('<email>:<api_key>') # Bearer Token Authorization: Bearer <api_key> ``` ## Limitations ### Request Limit * PLUS: 10 requests per minute * BUSINESS: 60 requests per minute If the limit is exceeded, you will receive the HTTP error: `429 Too Many Requests` ### Result Limit All result lists are limited to 100 by default. This limit can be increased by the query parameter `limit` to a maximum of 1000. ## Query filter Many list resources can be filtered. In `/documents` you can filter e.g. by number with `/documents?number=111028654`. If you want to filter multiple numbers, you can either enter them separated by commas `/documents?number=111028654,222006895` or as an array `/documents?number[]=111028654&number[]=222006895`. **Warning**: The maximum size of an HTTP request line in bytes is 4094. If this limit is exceeded, you will receive the HTTP error: `414 Request-URI Too Large` ### Escape commas in query You can escape commans in query `name=Patrick\\, Peter` if you submit the header `X-Easybill-Escape: true` in your request. ## Property login_id This is the login of your admin or employee account. ## Date and Date-Time format Please use the timezone `Europe/Berlin`. * **date** = *Y-m-d* = `2016-12-31` * **date-time** = *Y-m-d H:i:s* = `2016-12-31 03:13:37` Date or datetime can be `null` because the attributes have been added later and the entry is older.
The version of the OpenAPI document: 1.96.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
from easybill_generated_async.models.customer import Customer
class TestCustomer(unittest.TestCase):
"""Customer unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> Customer:
"""Test Customer
include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
# uncomment below to create an instance of `Customer`
"""
model = Customer()
if include_optional:
return Customer(
acquire_options = 5,
additional_groups_ids = [],
bank_account = '123456789',
bank_account_owner = 'Max Mustermann',
bank_bic = 'DEUTDEFF',
bank_code = '50070024',
bank_iban = 'DE89370400440532013000',
bank_name = 'Musterbank',
birth_date = 'Sat Dec 31 00:00:00 UTC 2016',
cash_allowance = 2.0,
cash_allowance_days = 7,
cash_discount = 3.0,
cash_discount_type = 'PERCENT',
city = 'Kaarst',
state = 'NRW',
company_name = 'easybill GmbH',
country = 'DE',
created_at = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(),
updated_at = '',
delivery_title = 'Dr.',
delivery_city = 'Hamburg',
delivery_state = 'NRW',
delivery_company_name = 'Musterfirma Logistik GmbH',
delivery_country = 'DE',
delivery_first_name = 'Erika',
delivery_last_name = 'Musterfrau',
delivery_personal = False,
delivery_salutation = 56,
delivery_street = 'Lieferstraße 42',
delivery_suffix_1 = 'Hinterhaus',
delivery_suffix_2 = '3. Etage',
delivery_zip_code = '20095',
display_name = '',
emails = [max.mustermann@easybill.de],
fax = '+49 2154 89701 29',
first_name = 'Max',
grace_period = 14,
due_in_days = 14,
group_id = 1,
id = 56,
info_1 = 'Kundennummer: 12345',
info_2 = 'Abteilung: Einkauf',
internet = 'https://www.easybill.de',
last_name = 'Mustermann',
login_id = 56,
mobile = '+49 170 1234567',
note = 'Wichtiger Kunde, bevorzugte Betreuung',
number = '',
supplier_number = '',
payment_options = 1,
personal = False,
phone_1 = '+49 2154 89701 20',
phone_2 = '+49 2154 89701 21',
postbox = 'Postfach 1234',
postbox_city = 'Düsseldorf',
postbox_state = 'NRW',
postbox_country = 'DE',
postbox_zip_code = '40213',
sale_price_level = 'SALEPRICE3',
salutation = 56,
sepa_agreement = 'BASIC',
sepa_agreement_date = 'Sat Jan 15 00:00:00 UTC 2022',
sepa_mandate_reference = 'MANDAT-2022-0815',
since_date = 'Sun Mar 01 00:00:00 UTC 2020',
street = 'Düsselstr. 21',
suffix_1 = 'c/o Musterfirma GmbH',
suffix_2 = '2. Stock, links',
tax_number = '21/815/08150',
court = 'Berlin',
court_registry_number = 'HRB XXXXX X',
tax_options = 'IG',
title = 'Dr.',
archived = False,
vat_identifier = 'DE814878557',
zip_code = '41564',
document_pdf_type = 'default',
buyer_reference = '',
foreign_supplier_number = ''
)
else:
return Customer(
company_name = 'easybill GmbH',
last_name = 'Mustermann',
)
"""
def testCustomer(self):
"""Test Customer"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()

View file

@ -0,0 +1,66 @@
# coding: utf-8
"""
easybill REST API
The first version of the easybill REST API. [CHANGELOG](https://api.easybill.de/rest/v1/CHANGELOG.md) ## Authentication You can choose between two available methods: `Basic Auth` or `Bearer Token`. In each HTTP request, one of the following HTTP headers is required: ``` # Basic Auth Authorization: Basic base64_encode('<email>:<api_key>') # Bearer Token Authorization: Bearer <api_key> ``` ## Limitations ### Request Limit * PLUS: 10 requests per minute * BUSINESS: 60 requests per minute If the limit is exceeded, you will receive the HTTP error: `429 Too Many Requests` ### Result Limit All result lists are limited to 100 by default. This limit can be increased by the query parameter `limit` to a maximum of 1000. ## Query filter Many list resources can be filtered. In `/documents` you can filter e.g. by number with `/documents?number=111028654`. If you want to filter multiple numbers, you can either enter them separated by commas `/documents?number=111028654,222006895` or as an array `/documents?number[]=111028654&number[]=222006895`. **Warning**: The maximum size of an HTTP request line in bytes is 4094. If this limit is exceeded, you will receive the HTTP error: `414 Request-URI Too Large` ### Escape commas in query You can escape commans in query `name=Patrick\\, Peter` if you submit the header `X-Easybill-Escape: true` in your request. ## Property login_id This is the login of your admin or employee account. ## Date and Date-Time format Please use the timezone `Europe/Berlin`. * **date** = *Y-m-d* = `2016-12-31` * **date-time** = *Y-m-d H:i:s* = `2016-12-31 03:13:37` Date or datetime can be `null` because the attributes have been added later and the entry is older.
The version of the OpenAPI document: 1.96.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
from easybill_generated_async.api.customer_api import CustomerApi
class TestCustomerApi(unittest.IsolatedAsyncioTestCase):
"""CustomerApi unit test stubs"""
async def asyncSetUp(self) -> None:
self.api = CustomerApi()
async def asyncTearDown(self) -> None:
await self.api.api_client.close()
async def test_customers_get(self) -> None:
"""Test case for customers_get
Fetch customers list
"""
pass
async def test_customers_id_delete(self) -> None:
"""Test case for customers_id_delete
Delete customer
"""
pass
async def test_customers_id_get(self) -> None:
"""Test case for customers_id_get
Fetch customer
"""
pass
async def test_customers_id_put(self) -> None:
"""Test case for customers_id_put
Update Customer
"""
pass
async def test_customers_post(self) -> None:
"""Test case for customers_post
Create customer
"""
pass
if __name__ == '__main__':
unittest.main()

View file

@ -0,0 +1,57 @@
# coding: utf-8
"""
easybill REST API
The first version of the easybill REST API. [CHANGELOG](https://api.easybill.de/rest/v1/CHANGELOG.md) ## Authentication You can choose between two available methods: `Basic Auth` or `Bearer Token`. In each HTTP request, one of the following HTTP headers is required: ``` # Basic Auth Authorization: Basic base64_encode('<email>:<api_key>') # Bearer Token Authorization: Bearer <api_key> ``` ## Limitations ### Request Limit * PLUS: 10 requests per minute * BUSINESS: 60 requests per minute If the limit is exceeded, you will receive the HTTP error: `429 Too Many Requests` ### Result Limit All result lists are limited to 100 by default. This limit can be increased by the query parameter `limit` to a maximum of 1000. ## Query filter Many list resources can be filtered. In `/documents` you can filter e.g. by number with `/documents?number=111028654`. If you want to filter multiple numbers, you can either enter them separated by commas `/documents?number=111028654,222006895` or as an array `/documents?number[]=111028654&number[]=222006895`. **Warning**: The maximum size of an HTTP request line in bytes is 4094. If this limit is exceeded, you will receive the HTTP error: `414 Request-URI Too Large` ### Escape commas in query You can escape commans in query `name=Patrick\\, Peter` if you submit the header `X-Easybill-Escape: true` in your request. ## Property login_id This is the login of your admin or employee account. ## Date and Date-Time format Please use the timezone `Europe/Berlin`. * **date** = *Y-m-d* = `2016-12-31` * **date-time** = *Y-m-d H:i:s* = `2016-12-31 03:13:37` Date or datetime can be `null` because the attributes have been added later and the entry is older.
The version of the OpenAPI document: 1.96.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
from easybill_generated_async.models.customer_group import CustomerGroup
class TestCustomerGroup(unittest.TestCase):
"""CustomerGroup unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> CustomerGroup:
"""Test CustomerGroup
include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
# uncomment below to create an instance of `CustomerGroup`
"""
model = CustomerGroup()
if include_optional:
return CustomerGroup(
name = 'Important Customers',
description = 'null',
number = '001',
display_name = '001 - Important Customers',
id = 56
)
else:
return CustomerGroup(
name = 'Important Customers',
number = '001',
)
"""
def testCustomerGroup(self):
"""Test CustomerGroup"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()

View file

@ -0,0 +1,66 @@
# coding: utf-8
"""
easybill REST API
The first version of the easybill REST API. [CHANGELOG](https://api.easybill.de/rest/v1/CHANGELOG.md) ## Authentication You can choose between two available methods: `Basic Auth` or `Bearer Token`. In each HTTP request, one of the following HTTP headers is required: ``` # Basic Auth Authorization: Basic base64_encode('<email>:<api_key>') # Bearer Token Authorization: Bearer <api_key> ``` ## Limitations ### Request Limit * PLUS: 10 requests per minute * BUSINESS: 60 requests per minute If the limit is exceeded, you will receive the HTTP error: `429 Too Many Requests` ### Result Limit All result lists are limited to 100 by default. This limit can be increased by the query parameter `limit` to a maximum of 1000. ## Query filter Many list resources can be filtered. In `/documents` you can filter e.g. by number with `/documents?number=111028654`. If you want to filter multiple numbers, you can either enter them separated by commas `/documents?number=111028654,222006895` or as an array `/documents?number[]=111028654&number[]=222006895`. **Warning**: The maximum size of an HTTP request line in bytes is 4094. If this limit is exceeded, you will receive the HTTP error: `414 Request-URI Too Large` ### Escape commas in query You can escape commans in query `name=Patrick\\, Peter` if you submit the header `X-Easybill-Escape: true` in your request. ## Property login_id This is the login of your admin or employee account. ## Date and Date-Time format Please use the timezone `Europe/Berlin`. * **date** = *Y-m-d* = `2016-12-31` * **date-time** = *Y-m-d H:i:s* = `2016-12-31 03:13:37` Date or datetime can be `null` because the attributes have been added later and the entry is older.
The version of the OpenAPI document: 1.96.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
from easybill_generated_async.api.customer_group_api import CustomerGroupApi
class TestCustomerGroupApi(unittest.IsolatedAsyncioTestCase):
"""CustomerGroupApi unit test stubs"""
async def asyncSetUp(self) -> None:
self.api = CustomerGroupApi()
async def asyncTearDown(self) -> None:
await self.api.api_client.close()
async def test_customer_groups_get(self) -> None:
"""Test case for customer_groups_get
Fetch customer group list
"""
pass
async def test_customer_groups_id_delete(self) -> None:
"""Test case for customer_groups_id_delete
Delete customer group
"""
pass
async def test_customer_groups_id_get(self) -> None:
"""Test case for customer_groups_id_get
Fetch customer group
"""
pass
async def test_customer_groups_id_put(self) -> None:
"""Test case for customer_groups_id_put
Update customer group
"""
pass
async def test_customer_groups_post(self) -> None:
"""Test case for customer_groups_post
Create customer group
"""
pass
if __name__ == '__main__':
unittest.main()

View file

@ -0,0 +1,66 @@
# coding: utf-8
"""
easybill REST API
The first version of the easybill REST API. [CHANGELOG](https://api.easybill.de/rest/v1/CHANGELOG.md) ## Authentication You can choose between two available methods: `Basic Auth` or `Bearer Token`. In each HTTP request, one of the following HTTP headers is required: ``` # Basic Auth Authorization: Basic base64_encode('<email>:<api_key>') # Bearer Token Authorization: Bearer <api_key> ``` ## Limitations ### Request Limit * PLUS: 10 requests per minute * BUSINESS: 60 requests per minute If the limit is exceeded, you will receive the HTTP error: `429 Too Many Requests` ### Result Limit All result lists are limited to 100 by default. This limit can be increased by the query parameter `limit` to a maximum of 1000. ## Query filter Many list resources can be filtered. In `/documents` you can filter e.g. by number with `/documents?number=111028654`. If you want to filter multiple numbers, you can either enter them separated by commas `/documents?number=111028654,222006895` or as an array `/documents?number[]=111028654&number[]=222006895`. **Warning**: The maximum size of an HTTP request line in bytes is 4094. If this limit is exceeded, you will receive the HTTP error: `414 Request-URI Too Large` ### Escape commas in query You can escape commans in query `name=Patrick\\, Peter` if you submit the header `X-Easybill-Escape: true` in your request. ## Property login_id This is the login of your admin or employee account. ## Date and Date-Time format Please use the timezone `Europe/Berlin`. * **date** = *Y-m-d* = `2016-12-31` * **date-time** = *Y-m-d H:i:s* = `2016-12-31 03:13:37` Date or datetime can be `null` because the attributes have been added later and the entry is older.
The version of the OpenAPI document: 1.96.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
from easybill_generated_async.models.customer_groups import CustomerGroups
class TestCustomerGroups(unittest.TestCase):
"""CustomerGroups unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> CustomerGroups:
"""Test CustomerGroups
include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
# uncomment below to create an instance of `CustomerGroups`
"""
model = CustomerGroups()
if include_optional:
return CustomerGroups(
page = 1,
pages = 1,
limit = 100,
total = 20,
items = [
easybill_generated_async.models.customer_group.CustomerGroup(
name = 'Important Customers',
description = 'null',
number = '001',
display_name = '001 - Important Customers',
id = 56, )
]
)
else:
return CustomerGroups(
page = 1,
pages = 1,
limit = 100,
total = 20,
)
"""
def testCustomerGroups(self):
"""Test CustomerGroups"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()

View file

@ -0,0 +1,130 @@
# coding: utf-8
"""
easybill REST API
The first version of the easybill REST API. [CHANGELOG](https://api.easybill.de/rest/v1/CHANGELOG.md) ## Authentication You can choose between two available methods: `Basic Auth` or `Bearer Token`. In each HTTP request, one of the following HTTP headers is required: ``` # Basic Auth Authorization: Basic base64_encode('<email>:<api_key>') # Bearer Token Authorization: Bearer <api_key> ``` ## Limitations ### Request Limit * PLUS: 10 requests per minute * BUSINESS: 60 requests per minute If the limit is exceeded, you will receive the HTTP error: `429 Too Many Requests` ### Result Limit All result lists are limited to 100 by default. This limit can be increased by the query parameter `limit` to a maximum of 1000. ## Query filter Many list resources can be filtered. In `/documents` you can filter e.g. by number with `/documents?number=111028654`. If you want to filter multiple numbers, you can either enter them separated by commas `/documents?number=111028654,222006895` or as an array `/documents?number[]=111028654&number[]=222006895`. **Warning**: The maximum size of an HTTP request line in bytes is 4094. If this limit is exceeded, you will receive the HTTP error: `414 Request-URI Too Large` ### Escape commas in query You can escape commans in query `name=Patrick\\, Peter` if you submit the header `X-Easybill-Escape: true` in your request. ## Property login_id This is the login of your admin or employee account. ## Date and Date-Time format Please use the timezone `Europe/Berlin`. * **date** = *Y-m-d* = `2016-12-31` * **date-time** = *Y-m-d H:i:s* = `2016-12-31 03:13:37` Date or datetime can be `null` because the attributes have been added later and the entry is older.
The version of the OpenAPI document: 1.96.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
from easybill_generated_async.models.customer_snapshot import CustomerSnapshot
class TestCustomerSnapshot(unittest.TestCase):
"""CustomerSnapshot unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> CustomerSnapshot:
"""Test CustomerSnapshot
include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
# uncomment below to create an instance of `CustomerSnapshot`
"""
model = CustomerSnapshot()
if include_optional:
return CustomerSnapshot(
acquire_options = 5,
additional_groups_ids = [],
bank_account = '123456789',
bank_account_owner = 'Max Mustermann',
bank_bic = 'DEUTDEFF',
bank_code = '50070024',
bank_iban = 'DE89370400440532013000',
bank_name = 'Musterbank',
birth_date = 'Sat Dec 31 00:00:00 UTC 2016',
cash_allowance = 2.0,
cash_allowance_days = 7,
cash_discount = 3.0,
cash_discount_type = 'PERCENT',
city = 'Kaarst',
state = 'NRW',
company_name = 'easybill GmbH',
country = 'DE',
created_at = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(),
updated_at = '',
delivery_title = 'Dr.',
delivery_city = 'Hamburg',
delivery_state = 'NRW',
delivery_company_name = 'Musterfirma Logistik GmbH',
delivery_country = 'DE',
delivery_first_name = 'Erika',
delivery_last_name = 'Musterfrau',
delivery_personal = False,
delivery_salutation = 56,
delivery_street = 'Lieferstraße 42',
delivery_suffix_1 = 'Hinterhaus',
delivery_suffix_2 = '3. Etage',
delivery_zip_code = '20095',
display_name = '',
emails = [max.mustermann@easybill.de],
fax = '+49 2154 89701 29',
first_name = 'Max',
grace_period = 14,
due_in_days = 14,
group_id = 1,
id = 56,
info_1 = 'Kundennummer: 12345',
info_2 = 'Abteilung: Einkauf',
internet = 'https://www.easybill.de',
last_name = 'Mustermann',
login_id = 56,
mobile = '+49 170 1234567',
note = 'Wichtiger Kunde, bevorzugte Betreuung',
number = '',
supplier_number = '',
payment_options = 1,
personal = False,
phone_1 = '+49 2154 89701 20',
phone_2 = '+49 2154 89701 21',
postbox = 'Postfach 1234',
postbox_city = 'Düsseldorf',
postbox_state = 'NRW',
postbox_country = 'DE',
postbox_zip_code = '40213',
sale_price_level = 'SALEPRICE3',
salutation = 56,
sepa_agreement = 'BASIC',
sepa_agreement_date = 'Sat Jan 15 00:00:00 UTC 2022',
sepa_mandate_reference = 'MANDAT-2022-0815',
since_date = 'Sun Mar 01 00:00:00 UTC 2020',
street = 'Düsselstr. 21',
suffix_1 = 'c/o Musterfirma GmbH',
suffix_2 = '2. Stock, links',
tax_number = '21/815/08150',
court = 'Berlin',
court_registry_number = 'HRB XXXXX X',
tax_options = 'IG',
title = 'Dr.',
archived = False,
vat_identifier = 'DE814878557',
zip_code = '41564',
document_pdf_type = 'default',
buyer_reference = '',
foreign_supplier_number = ''
)
else:
return CustomerSnapshot(
company_name = 'easybill GmbH',
last_name = 'Mustermann',
)
"""
def testCustomerSnapshot(self):
"""Test CustomerSnapshot"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()

View file

@ -0,0 +1,139 @@
# coding: utf-8
"""
easybill REST API
The first version of the easybill REST API. [CHANGELOG](https://api.easybill.de/rest/v1/CHANGELOG.md) ## Authentication You can choose between two available methods: `Basic Auth` or `Bearer Token`. In each HTTP request, one of the following HTTP headers is required: ``` # Basic Auth Authorization: Basic base64_encode('<email>:<api_key>') # Bearer Token Authorization: Bearer <api_key> ``` ## Limitations ### Request Limit * PLUS: 10 requests per minute * BUSINESS: 60 requests per minute If the limit is exceeded, you will receive the HTTP error: `429 Too Many Requests` ### Result Limit All result lists are limited to 100 by default. This limit can be increased by the query parameter `limit` to a maximum of 1000. ## Query filter Many list resources can be filtered. In `/documents` you can filter e.g. by number with `/documents?number=111028654`. If you want to filter multiple numbers, you can either enter them separated by commas `/documents?number=111028654,222006895` or as an array `/documents?number[]=111028654&number[]=222006895`. **Warning**: The maximum size of an HTTP request line in bytes is 4094. If this limit is exceeded, you will receive the HTTP error: `414 Request-URI Too Large` ### Escape commas in query You can escape commans in query `name=Patrick\\, Peter` if you submit the header `X-Easybill-Escape: true` in your request. ## Property login_id This is the login of your admin or employee account. ## Date and Date-Time format Please use the timezone `Europe/Berlin`. * **date** = *Y-m-d* = `2016-12-31` * **date-time** = *Y-m-d H:i:s* = `2016-12-31 03:13:37` Date or datetime can be `null` because the attributes have been added later and the entry is older.
The version of the OpenAPI document: 1.96.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
from easybill_generated_async.models.customers import Customers
class TestCustomers(unittest.TestCase):
"""Customers unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> Customers:
"""Test Customers
include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
# uncomment below to create an instance of `Customers`
"""
model = Customers()
if include_optional:
return Customers(
page = 1,
pages = 1,
limit = 100,
total = 20,
items = [
easybill_generated_async.models.customer.Customer(
acquire_options = 5,
additional_groups_ids = [],
bank_account = '123456789',
bank_account_owner = 'Max Mustermann',
bank_bic = 'DEUTDEFF',
bank_code = '50070024',
bank_iban = 'DE89370400440532013000',
bank_name = 'Musterbank',
birth_date = 'Sat Dec 31 00:00:00 UTC 2016',
cash_allowance = 2.0,
cash_allowance_days = 7,
cash_discount = 3.0,
cash_discount_type = 'PERCENT',
city = 'Kaarst',
state = 'NRW',
company_name = 'easybill GmbH',
country = 'DE',
created_at = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(),
updated_at = '',
delivery_title = 'Dr.',
delivery_city = 'Hamburg',
delivery_state = 'NRW',
delivery_company_name = 'Musterfirma Logistik GmbH',
delivery_country = 'DE',
delivery_first_name = 'Erika',
delivery_last_name = 'Musterfrau',
delivery_personal = False,
delivery_salutation = 56,
delivery_street = 'Lieferstraße 42',
delivery_suffix_1 = 'Hinterhaus',
delivery_suffix_2 = '3. Etage',
delivery_zip_code = '20095',
display_name = '',
emails = [max.mustermann@easybill.de],
fax = '+49 2154 89701 29',
first_name = 'Max',
grace_period = 14,
due_in_days = 14,
group_id = 1,
id = 56,
info_1 = 'Kundennummer: 12345',
info_2 = 'Abteilung: Einkauf',
internet = 'https://www.easybill.de',
last_name = 'Mustermann',
login_id = 56,
mobile = '+49 170 1234567',
note = 'Wichtiger Kunde, bevorzugte Betreuung',
number = '',
supplier_number = '',
payment_options = 1,
personal = False,
phone_1 = '+49 2154 89701 20',
phone_2 = '+49 2154 89701 21',
postbox = 'Postfach 1234',
postbox_city = 'Düsseldorf',
postbox_state = 'NRW',
postbox_country = 'DE',
postbox_zip_code = '40213',
sale_price_level = 'SALEPRICE3',
salutation = 56,
sepa_agreement = 'BASIC',
sepa_agreement_date = 'Sat Jan 15 00:00:00 UTC 2022',
sepa_mandate_reference = 'MANDAT-2022-0815',
since_date = 'Sun Mar 01 00:00:00 UTC 2020',
street = 'Düsselstr. 21',
suffix_1 = 'c/o Musterfirma GmbH',
suffix_2 = '2. Stock, links',
tax_number = '21/815/08150',
court = 'Berlin',
court_registry_number = 'HRB XXXXX X',
tax_options = 'IG',
title = 'Dr.',
archived = False,
vat_identifier = 'DE814878557',
zip_code = '41564',
document_pdf_type = 'default',
buyer_reference = '',
foreign_supplier_number = '', )
]
)
else:
return Customers(
page = 1,
pages = 1,
limit = 100,
total = 20,
)
"""
def testCustomers(self):
"""Test Customers"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()

View file

@ -0,0 +1,55 @@
# coding: utf-8
"""
easybill REST API
The first version of the easybill REST API. [CHANGELOG](https://api.easybill.de/rest/v1/CHANGELOG.md) ## Authentication You can choose between two available methods: `Basic Auth` or `Bearer Token`. In each HTTP request, one of the following HTTP headers is required: ``` # Basic Auth Authorization: Basic base64_encode('<email>:<api_key>') # Bearer Token Authorization: Bearer <api_key> ``` ## Limitations ### Request Limit * PLUS: 10 requests per minute * BUSINESS: 60 requests per minute If the limit is exceeded, you will receive the HTTP error: `429 Too Many Requests` ### Result Limit All result lists are limited to 100 by default. This limit can be increased by the query parameter `limit` to a maximum of 1000. ## Query filter Many list resources can be filtered. In `/documents` you can filter e.g. by number with `/documents?number=111028654`. If you want to filter multiple numbers, you can either enter them separated by commas `/documents?number=111028654,222006895` or as an array `/documents?number[]=111028654&number[]=222006895`. **Warning**: The maximum size of an HTTP request line in bytes is 4094. If this limit is exceeded, you will receive the HTTP error: `414 Request-URI Too Large` ### Escape commas in query You can escape commans in query `name=Patrick\\, Peter` if you submit the header `X-Easybill-Escape: true` in your request. ## Property login_id This is the login of your admin or employee account. ## Date and Date-Time format Please use the timezone `Europe/Berlin`. * **date** = *Y-m-d* = `2016-12-31` * **date-time** = *Y-m-d H:i:s* = `2016-12-31 03:13:37` Date or datetime can be `null` because the attributes have been added later and the entry is older.
The version of the OpenAPI document: 1.96.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
from easybill_generated_async.models.discount import Discount
class TestDiscount(unittest.TestCase):
"""Discount unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> Discount:
"""Test Discount
include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
# uncomment below to create an instance of `Discount`
"""
model = Discount()
if include_optional:
return Discount(
id = 56,
customer_id = 56,
discount = 10,
discount_type = 'PERCENT'
)
else:
return Discount(
customer_id = 56,
)
"""
def testDiscount(self):
"""Test Discount"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()

View file

@ -0,0 +1,101 @@
# coding: utf-8
"""
easybill REST API
The first version of the easybill REST API. [CHANGELOG](https://api.easybill.de/rest/v1/CHANGELOG.md) ## Authentication You can choose between two available methods: `Basic Auth` or `Bearer Token`. In each HTTP request, one of the following HTTP headers is required: ``` # Basic Auth Authorization: Basic base64_encode('<email>:<api_key>') # Bearer Token Authorization: Bearer <api_key> ``` ## Limitations ### Request Limit * PLUS: 10 requests per minute * BUSINESS: 60 requests per minute If the limit is exceeded, you will receive the HTTP error: `429 Too Many Requests` ### Result Limit All result lists are limited to 100 by default. This limit can be increased by the query parameter `limit` to a maximum of 1000. ## Query filter Many list resources can be filtered. In `/documents` you can filter e.g. by number with `/documents?number=111028654`. If you want to filter multiple numbers, you can either enter them separated by commas `/documents?number=111028654,222006895` or as an array `/documents?number[]=111028654&number[]=222006895`. **Warning**: The maximum size of an HTTP request line in bytes is 4094. If this limit is exceeded, you will receive the HTTP error: `414 Request-URI Too Large` ### Escape commas in query You can escape commans in query `name=Patrick\\, Peter` if you submit the header `X-Easybill-Escape: true` in your request. ## Property login_id This is the login of your admin or employee account. ## Date and Date-Time format Please use the timezone `Europe/Berlin`. * **date** = *Y-m-d* = `2016-12-31` * **date-time** = *Y-m-d H:i:s* = `2016-12-31 03:13:37` Date or datetime can be `null` because the attributes have been added later and the entry is older.
The version of the OpenAPI document: 1.96.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
from easybill_generated_async.api.discount_api import DiscountApi
class TestDiscountApi(unittest.IsolatedAsyncioTestCase):
"""DiscountApi unit test stubs"""
async def asyncSetUp(self) -> None:
self.api = DiscountApi()
async def asyncTearDown(self) -> None:
await self.api.api_client.close()
async def test_discounts_position_get(self) -> None:
"""Test case for discounts_position_get
Fetch list of position discounts
"""
pass
async def test_discounts_position_group_get(self) -> None:
"""Test case for discounts_position_group_get
Fetch list of position-group discounts
"""
pass
async def test_discounts_position_group_id_delete(self) -> None:
"""Test case for discounts_position_group_id_delete
Delete the specified position-group discount
"""
pass
async def test_discounts_position_group_id_get(self) -> None:
"""Test case for discounts_position_group_id_get
Fetch specified position-group discount by id
"""
pass
async def test_discounts_position_group_id_put(self) -> None:
"""Test case for discounts_position_group_id_put
Update a position-group discount
"""
pass
async def test_discounts_position_group_post(self) -> None:
"""Test case for discounts_position_group_post
Create a new position-group discount
"""
pass
async def test_discounts_position_id_delete(self) -> None:
"""Test case for discounts_position_id_delete
Delete the specified position discount
"""
pass
async def test_discounts_position_id_get(self) -> None:
"""Test case for discounts_position_id_get
Fetch specified position discount by id
"""
pass
async def test_discounts_position_id_put(self) -> None:
"""Test case for discounts_position_id_put
Update a position discount
"""
pass
async def test_discounts_position_post(self) -> None:
"""Test case for discounts_position_post
Create a new position discount
"""
pass
if __name__ == '__main__':
unittest.main()

View file

@ -0,0 +1,57 @@
# coding: utf-8
"""
easybill REST API
The first version of the easybill REST API. [CHANGELOG](https://api.easybill.de/rest/v1/CHANGELOG.md) ## Authentication You can choose between two available methods: `Basic Auth` or `Bearer Token`. In each HTTP request, one of the following HTTP headers is required: ``` # Basic Auth Authorization: Basic base64_encode('<email>:<api_key>') # Bearer Token Authorization: Bearer <api_key> ``` ## Limitations ### Request Limit * PLUS: 10 requests per minute * BUSINESS: 60 requests per minute If the limit is exceeded, you will receive the HTTP error: `429 Too Many Requests` ### Result Limit All result lists are limited to 100 by default. This limit can be increased by the query parameter `limit` to a maximum of 1000. ## Query filter Many list resources can be filtered. In `/documents` you can filter e.g. by number with `/documents?number=111028654`. If you want to filter multiple numbers, you can either enter them separated by commas `/documents?number=111028654,222006895` or as an array `/documents?number[]=111028654&number[]=222006895`. **Warning**: The maximum size of an HTTP request line in bytes is 4094. If this limit is exceeded, you will receive the HTTP error: `414 Request-URI Too Large` ### Escape commas in query You can escape commans in query `name=Patrick\\, Peter` if you submit the header `X-Easybill-Escape: true` in your request. ## Property login_id This is the login of your admin or employee account. ## Date and Date-Time format Please use the timezone `Europe/Berlin`. * **date** = *Y-m-d* = `2016-12-31` * **date-time** = *Y-m-d H:i:s* = `2016-12-31 03:13:37` Date or datetime can be `null` because the attributes have been added later and the entry is older.
The version of the OpenAPI document: 1.96.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
from easybill_generated_async.models.discount_position import DiscountPosition
class TestDiscountPosition(unittest.TestCase):
"""DiscountPosition unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> DiscountPosition:
"""Test DiscountPosition
include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
# uncomment below to create an instance of `DiscountPosition`
"""
model = DiscountPosition()
if include_optional:
return DiscountPosition(
id = 56,
customer_id = 56,
discount = 10,
discount_type = 'PERCENT',
position_id = 56
)
else:
return DiscountPosition(
customer_id = 56,
position_id = 56,
)
"""
def testDiscountPosition(self):
"""Test DiscountPosition"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()

View file

@ -0,0 +1,57 @@
# coding: utf-8
"""
easybill REST API
The first version of the easybill REST API. [CHANGELOG](https://api.easybill.de/rest/v1/CHANGELOG.md) ## Authentication You can choose between two available methods: `Basic Auth` or `Bearer Token`. In each HTTP request, one of the following HTTP headers is required: ``` # Basic Auth Authorization: Basic base64_encode('<email>:<api_key>') # Bearer Token Authorization: Bearer <api_key> ``` ## Limitations ### Request Limit * PLUS: 10 requests per minute * BUSINESS: 60 requests per minute If the limit is exceeded, you will receive the HTTP error: `429 Too Many Requests` ### Result Limit All result lists are limited to 100 by default. This limit can be increased by the query parameter `limit` to a maximum of 1000. ## Query filter Many list resources can be filtered. In `/documents` you can filter e.g. by number with `/documents?number=111028654`. If you want to filter multiple numbers, you can either enter them separated by commas `/documents?number=111028654,222006895` or as an array `/documents?number[]=111028654&number[]=222006895`. **Warning**: The maximum size of an HTTP request line in bytes is 4094. If this limit is exceeded, you will receive the HTTP error: `414 Request-URI Too Large` ### Escape commas in query You can escape commans in query `name=Patrick\\, Peter` if you submit the header `X-Easybill-Escape: true` in your request. ## Property login_id This is the login of your admin or employee account. ## Date and Date-Time format Please use the timezone `Europe/Berlin`. * **date** = *Y-m-d* = `2016-12-31` * **date-time** = *Y-m-d H:i:s* = `2016-12-31 03:13:37` Date or datetime can be `null` because the attributes have been added later and the entry is older.
The version of the OpenAPI document: 1.96.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
from easybill_generated_async.models.discount_position_group import DiscountPositionGroup
class TestDiscountPositionGroup(unittest.TestCase):
"""DiscountPositionGroup unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> DiscountPositionGroup:
"""Test DiscountPositionGroup
include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
# uncomment below to create an instance of `DiscountPositionGroup`
"""
model = DiscountPositionGroup()
if include_optional:
return DiscountPositionGroup(
id = 56,
customer_id = 56,
discount = 10,
discount_type = 'PERCENT',
position_group_id = 56
)
else:
return DiscountPositionGroup(
customer_id = 56,
position_group_id = 56,
)
"""
def testDiscountPositionGroup(self):
"""Test DiscountPositionGroup"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()

View file

@ -0,0 +1,61 @@
# coding: utf-8
"""
easybill REST API
The first version of the easybill REST API. [CHANGELOG](https://api.easybill.de/rest/v1/CHANGELOG.md) ## Authentication You can choose between two available methods: `Basic Auth` or `Bearer Token`. In each HTTP request, one of the following HTTP headers is required: ``` # Basic Auth Authorization: Basic base64_encode('<email>:<api_key>') # Bearer Token Authorization: Bearer <api_key> ``` ## Limitations ### Request Limit * PLUS: 10 requests per minute * BUSINESS: 60 requests per minute If the limit is exceeded, you will receive the HTTP error: `429 Too Many Requests` ### Result Limit All result lists are limited to 100 by default. This limit can be increased by the query parameter `limit` to a maximum of 1000. ## Query filter Many list resources can be filtered. In `/documents` you can filter e.g. by number with `/documents?number=111028654`. If you want to filter multiple numbers, you can either enter them separated by commas `/documents?number=111028654,222006895` or as an array `/documents?number[]=111028654&number[]=222006895`. **Warning**: The maximum size of an HTTP request line in bytes is 4094. If this limit is exceeded, you will receive the HTTP error: `414 Request-URI Too Large` ### Escape commas in query You can escape commans in query `name=Patrick\\, Peter` if you submit the header `X-Easybill-Escape: true` in your request. ## Property login_id This is the login of your admin or employee account. ## Date and Date-Time format Please use the timezone `Europe/Berlin`. * **date** = *Y-m-d* = `2016-12-31` * **date-time** = *Y-m-d H:i:s* = `2016-12-31 03:13:37` Date or datetime can be `null` because the attributes have been added later and the entry is older.
The version of the OpenAPI document: 1.96.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
from easybill_generated_async.models.discount_position_groups import DiscountPositionGroups
class TestDiscountPositionGroups(unittest.TestCase):
"""DiscountPositionGroups unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> DiscountPositionGroups:
"""Test DiscountPositionGroups
include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
# uncomment below to create an instance of `DiscountPositionGroups`
"""
model = DiscountPositionGroups()
if include_optional:
return DiscountPositionGroups(
page = 1,
pages = 1,
limit = 100,
total = 20,
items = [
null
]
)
else:
return DiscountPositionGroups(
page = 1,
pages = 1,
limit = 100,
total = 20,
)
"""
def testDiscountPositionGroups(self):
"""Test DiscountPositionGroups"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()

View file

@ -0,0 +1,61 @@
# coding: utf-8
"""
easybill REST API
The first version of the easybill REST API. [CHANGELOG](https://api.easybill.de/rest/v1/CHANGELOG.md) ## Authentication You can choose between two available methods: `Basic Auth` or `Bearer Token`. In each HTTP request, one of the following HTTP headers is required: ``` # Basic Auth Authorization: Basic base64_encode('<email>:<api_key>') # Bearer Token Authorization: Bearer <api_key> ``` ## Limitations ### Request Limit * PLUS: 10 requests per minute * BUSINESS: 60 requests per minute If the limit is exceeded, you will receive the HTTP error: `429 Too Many Requests` ### Result Limit All result lists are limited to 100 by default. This limit can be increased by the query parameter `limit` to a maximum of 1000. ## Query filter Many list resources can be filtered. In `/documents` you can filter e.g. by number with `/documents?number=111028654`. If you want to filter multiple numbers, you can either enter them separated by commas `/documents?number=111028654,222006895` or as an array `/documents?number[]=111028654&number[]=222006895`. **Warning**: The maximum size of an HTTP request line in bytes is 4094. If this limit is exceeded, you will receive the HTTP error: `414 Request-URI Too Large` ### Escape commas in query You can escape commans in query `name=Patrick\\, Peter` if you submit the header `X-Easybill-Escape: true` in your request. ## Property login_id This is the login of your admin or employee account. ## Date and Date-Time format Please use the timezone `Europe/Berlin`. * **date** = *Y-m-d* = `2016-12-31` * **date-time** = *Y-m-d H:i:s* = `2016-12-31 03:13:37` Date or datetime can be `null` because the attributes have been added later and the entry is older.
The version of the OpenAPI document: 1.96.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
from easybill_generated_async.models.discount_positions import DiscountPositions
class TestDiscountPositions(unittest.TestCase):
"""DiscountPositions unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> DiscountPositions:
"""Test DiscountPositions
include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
# uncomment below to create an instance of `DiscountPositions`
"""
model = DiscountPositions()
if include_optional:
return DiscountPositions(
page = 1,
pages = 1,
limit = 100,
total = 20,
items = [
null
]
)
else:
return DiscountPositions(
page = 1,
pages = 1,
limit = 100,
total = 20,
)
"""
def testDiscountPositions(self):
"""Test DiscountPositions"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()

View file

@ -0,0 +1,212 @@
# coding: utf-8
"""
easybill REST API
The first version of the easybill REST API. [CHANGELOG](https://api.easybill.de/rest/v1/CHANGELOG.md) ## Authentication You can choose between two available methods: `Basic Auth` or `Bearer Token`. In each HTTP request, one of the following HTTP headers is required: ``` # Basic Auth Authorization: Basic base64_encode('<email>:<api_key>') # Bearer Token Authorization: Bearer <api_key> ``` ## Limitations ### Request Limit * PLUS: 10 requests per minute * BUSINESS: 60 requests per minute If the limit is exceeded, you will receive the HTTP error: `429 Too Many Requests` ### Result Limit All result lists are limited to 100 by default. This limit can be increased by the query parameter `limit` to a maximum of 1000. ## Query filter Many list resources can be filtered. In `/documents` you can filter e.g. by number with `/documents?number=111028654`. If you want to filter multiple numbers, you can either enter them separated by commas `/documents?number=111028654,222006895` or as an array `/documents?number[]=111028654&number[]=222006895`. **Warning**: The maximum size of an HTTP request line in bytes is 4094. If this limit is exceeded, you will receive the HTTP error: `414 Request-URI Too Large` ### Escape commas in query You can escape commans in query `name=Patrick\\, Peter` if you submit the header `X-Easybill-Escape: true` in your request. ## Property login_id This is the login of your admin or employee account. ## Date and Date-Time format Please use the timezone `Europe/Berlin`. * **date** = *Y-m-d* = `2016-12-31` * **date-time** = *Y-m-d H:i:s* = `2016-12-31 03:13:37` Date or datetime can be `null` because the attributes have been added later and the entry is older.
The version of the OpenAPI document: 1.96.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
from easybill_generated_async.models.document import Document
class TestDocument(unittest.TestCase):
"""Document unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> Document:
"""Test Document
include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
# uncomment below to create an instance of `Document`
"""
model = Document()
if include_optional:
return Document(
address = easybill_generated_async.models.document_address.DocumentAddress(
salutation = 56,
personal = False,
title = 'Dr.',
first_name = 'Max',
last_name = 'Mustermann',
suffix_1 = 'Abteilung Vertrieb',
suffix_2 = '3. Etage',
company_name = 'Musterunternehmen AG',
street = 'Musterstr.',
zip_code = '12345',
city = 'Musterstadt',
state = 'NRW',
country = 'DE', ),
advanced_data_fields = [],
attachment_ids = [],
label_address = easybill_generated_async.models.document_address.DocumentAddress(
salutation = 56,
personal = False,
title = 'Dr.',
first_name = 'Max',
last_name = 'Mustermann',
suffix_1 = 'Abteilung Vertrieb',
suffix_2 = '3. Etage',
company_name = 'Musterunternehmen AG',
street = 'Musterstr.',
zip_code = '12345',
city = 'Musterstadt',
state = 'NRW',
country = 'DE', ),
amount = 56,
amount_net = 56,
anonymize_due_date = 'Thu Feb 07 00:00:00 UTC 2019',
anonymize_status = 'NOT_ANONYMIZED',
anonymized_at = '2019-02-07 00:00:00',
bank_debit_form = 'null',
billing_country = 'null',
calc_vat_from = 0,
cancel_id = 56,
cash_allowance = 1.337,
cash_allowance_days = 56,
cash_allowance_text = 'null',
contact_id = 56,
contact_label = '',
contact_text = '',
created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
currency = 'EUR',
customer_id = 56,
customer_snapshot = None,
discount = 'null',
discount_type = 'PERCENT',
document_date = 'Thu Feb 07 00:00:00 UTC 2019',
due_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(),
edited_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
external_id = 'null',
replica_url = 'null',
grace_period = 56,
due_in_days = 56,
id = 56,
is_acceptable_on_public_domain = False,
is_archive = False,
is_draft = True,
is_replica = False,
is_oss = False,
item_notes = [
''
],
items = [
easybill_generated_async.models.document_position.DocumentPosition(
number = 'null',
description = 'null',
document_note = 'Test Note',
quantity = 1.0,
quantity_str = '1:30 h',
unit = 'null',
type = 'POSITION',
position = 1,
single_price_net = 75.0,
single_price_gross = 1.337,
vat_percent = 0.0,
discount = 10.0,
discount_type = 'PERCENT',
position_id = 123456,
total_price_net = 1.337,
total_price_gross = 1.337,
total_vat = 1.337,
serial_number_id = 'SN-2023-001-ID',
serial_number = 'SN-2023-001',
booking_account = 'null',
export_cost_1 = 'null',
export_cost_2 = 'null',
cost_price_net = 45.5,
cost_price_total = 45.5,
cost_price_charge = 10.0,
cost_price_charge_type = 'PERCENT',
item_type = 'UNDEFINED',
id = 56, )
],
last_postbox_id = 56,
login_id = 56,
number = 'null',
order_number = '',
buyer_reference = '',
paid_amount = 56,
paid_at = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(),
pdf_pages = 56,
pdf_template = 'null',
payment_link_enabled = False,
payment_link_locale = 'de',
project_id = 56,
recurring_options = easybill_generated_async.models.document_recurring.DocumentRecurring(
next_date = 'Sat Feb 01 00:00:00 UTC 2020',
frequency = 'MONTHLY',
frequency_special = 'LASTDAYOFMONTH',
interval = 1,
end_date_or_count = 'null',
status = 'WAITING',
as_draft = True,
is_notify = True,
send_as = 'EMAIL',
is_sign = True,
is_paid = True,
paid_date_option = 'created_date',
is_sepa = True,
sepa_local_instrument = 'CORE',
sepa_sequence_type = 'FRST',
sepa_reference = 'null',
sepa_remittance_information = 'null',
target_type = 'INVOICE', ),
ref_id = 56,
root_id = 56,
service_date = easybill_generated_async.models.service_date.ServiceDate(
type = 'DEFAULT',
date = 'Fri Feb 01 00:00:00 UTC 2019',
date_from = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(),
date_to = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(),
text = 'null', ),
shipping_country = 'null',
status = 'ACCEPT',
text = 'Vielen Dank für Ihren Auftrag!
Bitte begleichen Sie den offenen Betrag bis zum %DOKUMENT.DATUM-FAELLIG%.
Mit freundlichen Grüßen
%FIRMA.FIRMA%
',
text_prefix = '%KUNDE.ANREDE%,
nachfolgend berechnen wir Ihnen wie vorab besprochen:
',
text_tax = 'null',
title = 'null',
type = 'INVOICE',
use_shipping_address = False,
vat_country = 'null',
vat_id = '',
fulfillment_country = 'null',
vat_option = 'NULL',
file_format_config = [
easybill_generated_async.models.file_format_config.FileFormatConfig(
type = 'default', )
]
)
else:
return Document(
)
"""
def testDocument(self):
"""Test Document"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()

View file

@ -0,0 +1,63 @@
# coding: utf-8
"""
easybill REST API
The first version of the easybill REST API. [CHANGELOG](https://api.easybill.de/rest/v1/CHANGELOG.md) ## Authentication You can choose between two available methods: `Basic Auth` or `Bearer Token`. In each HTTP request, one of the following HTTP headers is required: ``` # Basic Auth Authorization: Basic base64_encode('<email>:<api_key>') # Bearer Token Authorization: Bearer <api_key> ``` ## Limitations ### Request Limit * PLUS: 10 requests per minute * BUSINESS: 60 requests per minute If the limit is exceeded, you will receive the HTTP error: `429 Too Many Requests` ### Result Limit All result lists are limited to 100 by default. This limit can be increased by the query parameter `limit` to a maximum of 1000. ## Query filter Many list resources can be filtered. In `/documents` you can filter e.g. by number with `/documents?number=111028654`. If you want to filter multiple numbers, you can either enter them separated by commas `/documents?number=111028654,222006895` or as an array `/documents?number[]=111028654&number[]=222006895`. **Warning**: The maximum size of an HTTP request line in bytes is 4094. If this limit is exceeded, you will receive the HTTP error: `414 Request-URI Too Large` ### Escape commas in query You can escape commans in query `name=Patrick\\, Peter` if you submit the header `X-Easybill-Escape: true` in your request. ## Property login_id This is the login of your admin or employee account. ## Date and Date-Time format Please use the timezone `Europe/Berlin`. * **date** = *Y-m-d* = `2016-12-31` * **date-time** = *Y-m-d H:i:s* = `2016-12-31 03:13:37` Date or datetime can be `null` because the attributes have been added later and the entry is older.
The version of the OpenAPI document: 1.96.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
from easybill_generated_async.models.document_address import DocumentAddress
class TestDocumentAddress(unittest.TestCase):
"""DocumentAddress unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> DocumentAddress:
"""Test DocumentAddress
include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
# uncomment below to create an instance of `DocumentAddress`
"""
model = DocumentAddress()
if include_optional:
return DocumentAddress(
salutation = 56,
personal = False,
title = 'Dr.',
first_name = 'Max',
last_name = 'Mustermann',
suffix_1 = 'Abteilung Vertrieb',
suffix_2 = '3. Etage',
company_name = 'Musterunternehmen AG',
street = 'Musterstr.',
zip_code = '12345',
city = 'Musterstadt',
state = 'NRW',
country = 'DE'
)
else:
return DocumentAddress(
)
"""
def testDocumentAddress(self):
"""Test DocumentAddress"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()

View file

@ -0,0 +1,115 @@
# coding: utf-8
"""
easybill REST API
The first version of the easybill REST API. [CHANGELOG](https://api.easybill.de/rest/v1/CHANGELOG.md) ## Authentication You can choose between two available methods: `Basic Auth` or `Bearer Token`. In each HTTP request, one of the following HTTP headers is required: ``` # Basic Auth Authorization: Basic base64_encode('<email>:<api_key>') # Bearer Token Authorization: Bearer <api_key> ``` ## Limitations ### Request Limit * PLUS: 10 requests per minute * BUSINESS: 60 requests per minute If the limit is exceeded, you will receive the HTTP error: `429 Too Many Requests` ### Result Limit All result lists are limited to 100 by default. This limit can be increased by the query parameter `limit` to a maximum of 1000. ## Query filter Many list resources can be filtered. In `/documents` you can filter e.g. by number with `/documents?number=111028654`. If you want to filter multiple numbers, you can either enter them separated by commas `/documents?number=111028654,222006895` or as an array `/documents?number[]=111028654&number[]=222006895`. **Warning**: The maximum size of an HTTP request line in bytes is 4094. If this limit is exceeded, you will receive the HTTP error: `414 Request-URI Too Large` ### Escape commas in query You can escape commans in query `name=Patrick\\, Peter` if you submit the header `X-Easybill-Escape: true` in your request. ## Property login_id This is the login of your admin or employee account. ## Date and Date-Time format Please use the timezone `Europe/Berlin`. * **date** = *Y-m-d* = `2016-12-31` * **date-time** = *Y-m-d H:i:s* = `2016-12-31 03:13:37` Date or datetime can be `null` because the attributes have been added later and the entry is older.
The version of the OpenAPI document: 1.96.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
from easybill_generated_async.api.document_api import DocumentApi
class TestDocumentApi(unittest.IsolatedAsyncioTestCase):
"""DocumentApi unit test stubs"""
async def asyncSetUp(self) -> None:
self.api = DocumentApi()
async def asyncTearDown(self) -> None:
await self.api.api_client.close()
async def test_documents_get(self) -> None:
"""Test case for documents_get
Fetch documents list
"""
pass
async def test_documents_id_cancel_post(self) -> None:
"""Test case for documents_id_cancel_post
Cancel document
"""
pass
async def test_documents_id_delete(self) -> None:
"""Test case for documents_id_delete
Delete document
"""
pass
async def test_documents_id_done_put(self) -> None:
"""Test case for documents_id_done_put
To complete a document.
"""
pass
async def test_documents_id_download_get(self) -> None:
"""Test case for documents_id_download_get
Fetch the document in best fitting format to the given Accept header
"""
pass
async def test_documents_id_get(self) -> None:
"""Test case for documents_id_get
Fetch document
"""
pass
async def test_documents_id_jpg_get(self) -> None:
"""Test case for documents_id_jpg_get
Download a document as an jpeg-image
"""
pass
async def test_documents_id_pdf_get(self) -> None:
"""Test case for documents_id_pdf_get
Fetch pdf document
"""
pass
async def test_documents_id_put(self) -> None:
"""Test case for documents_id_put
Update document
"""
pass
async def test_documents_id_send_type_post(self) -> None:
"""Test case for documents_id_send_type_post
Send document
"""
pass
async def test_documents_id_type_post(self) -> None:
"""Test case for documents_id_type_post
Convert an existing document to one of a different type
"""
pass
async def test_documents_post(self) -> None:
"""Test case for documents_post
Create document
"""
pass
if __name__ == '__main__':
unittest.main()

View file

@ -0,0 +1,62 @@
# coding: utf-8
"""
easybill REST API
The first version of the easybill REST API. [CHANGELOG](https://api.easybill.de/rest/v1/CHANGELOG.md) ## Authentication You can choose between two available methods: `Basic Auth` or `Bearer Token`. In each HTTP request, one of the following HTTP headers is required: ``` # Basic Auth Authorization: Basic base64_encode('<email>:<api_key>') # Bearer Token Authorization: Bearer <api_key> ``` ## Limitations ### Request Limit * PLUS: 10 requests per minute * BUSINESS: 60 requests per minute If the limit is exceeded, you will receive the HTTP error: `429 Too Many Requests` ### Result Limit All result lists are limited to 100 by default. This limit can be increased by the query parameter `limit` to a maximum of 1000. ## Query filter Many list resources can be filtered. In `/documents` you can filter e.g. by number with `/documents?number=111028654`. If you want to filter multiple numbers, you can either enter them separated by commas `/documents?number=111028654,222006895` or as an array `/documents?number[]=111028654&number[]=222006895`. **Warning**: The maximum size of an HTTP request line in bytes is 4094. If this limit is exceeded, you will receive the HTTP error: `414 Request-URI Too Large` ### Escape commas in query You can escape commans in query `name=Patrick\\, Peter` if you submit the header `X-Easybill-Escape: true` in your request. ## Property login_id This is the login of your admin or employee account. ## Date and Date-Time format Please use the timezone `Europe/Berlin`. * **date** = *Y-m-d* = `2016-12-31` * **date-time** = *Y-m-d H:i:s* = `2016-12-31 03:13:37` Date or datetime can be `null` because the attributes have been added later and the entry is older.
The version of the OpenAPI document: 1.96.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
from easybill_generated_async.models.document_payment import DocumentPayment
class TestDocumentPayment(unittest.TestCase):
"""DocumentPayment unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> DocumentPayment:
"""Test DocumentPayment
include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
# uncomment below to create an instance of `DocumentPayment`
"""
model = DocumentPayment()
if include_optional:
return DocumentPayment(
amount = 56,
document_id = 56,
id = 56,
is_overdue_fee = True,
login_id = 56,
notice = '',
payment_at = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(),
type = '',
provider = '',
reference = ''
)
else:
return DocumentPayment(
amount = 56,
document_id = 56,
)
"""
def testDocumentPayment(self):
"""Test DocumentPayment"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()

View file

@ -0,0 +1,59 @@
# coding: utf-8
"""
easybill REST API
The first version of the easybill REST API. [CHANGELOG](https://api.easybill.de/rest/v1/CHANGELOG.md) ## Authentication You can choose between two available methods: `Basic Auth` or `Bearer Token`. In each HTTP request, one of the following HTTP headers is required: ``` # Basic Auth Authorization: Basic base64_encode('<email>:<api_key>') # Bearer Token Authorization: Bearer <api_key> ``` ## Limitations ### Request Limit * PLUS: 10 requests per minute * BUSINESS: 60 requests per minute If the limit is exceeded, you will receive the HTTP error: `429 Too Many Requests` ### Result Limit All result lists are limited to 100 by default. This limit can be increased by the query parameter `limit` to a maximum of 1000. ## Query filter Many list resources can be filtered. In `/documents` you can filter e.g. by number with `/documents?number=111028654`. If you want to filter multiple numbers, you can either enter them separated by commas `/documents?number=111028654,222006895` or as an array `/documents?number[]=111028654&number[]=222006895`. **Warning**: The maximum size of an HTTP request line in bytes is 4094. If this limit is exceeded, you will receive the HTTP error: `414 Request-URI Too Large` ### Escape commas in query You can escape commans in query `name=Patrick\\, Peter` if you submit the header `X-Easybill-Escape: true` in your request. ## Property login_id This is the login of your admin or employee account. ## Date and Date-Time format Please use the timezone `Europe/Berlin`. * **date** = *Y-m-d* = `2016-12-31` * **date-time** = *Y-m-d H:i:s* = `2016-12-31 03:13:37` Date or datetime can be `null` because the attributes have been added later and the entry is older.
The version of the OpenAPI document: 1.96.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
from easybill_generated_async.api.document_payment_api import DocumentPaymentApi
class TestDocumentPaymentApi(unittest.IsolatedAsyncioTestCase):
"""DocumentPaymentApi unit test stubs"""
async def asyncSetUp(self) -> None:
self.api = DocumentPaymentApi()
async def asyncTearDown(self) -> None:
await self.api.api_client.close()
async def test_document_payments_get(self) -> None:
"""Test case for document_payments_get
Fetch document payments list
"""
pass
async def test_document_payments_id_delete(self) -> None:
"""Test case for document_payments_id_delete
Delete document payment
"""
pass
async def test_document_payments_id_get(self) -> None:
"""Test case for document_payments_id_get
Fetch document payment
"""
pass
async def test_document_payments_post(self) -> None:
"""Test case for document_payments_post
Create document payment
"""
pass
if __name__ == '__main__':
unittest.main()

View file

@ -0,0 +1,61 @@
# coding: utf-8
"""
easybill REST API
The first version of the easybill REST API. [CHANGELOG](https://api.easybill.de/rest/v1/CHANGELOG.md) ## Authentication You can choose between two available methods: `Basic Auth` or `Bearer Token`. In each HTTP request, one of the following HTTP headers is required: ``` # Basic Auth Authorization: Basic base64_encode('<email>:<api_key>') # Bearer Token Authorization: Bearer <api_key> ``` ## Limitations ### Request Limit * PLUS: 10 requests per minute * BUSINESS: 60 requests per minute If the limit is exceeded, you will receive the HTTP error: `429 Too Many Requests` ### Result Limit All result lists are limited to 100 by default. This limit can be increased by the query parameter `limit` to a maximum of 1000. ## Query filter Many list resources can be filtered. In `/documents` you can filter e.g. by number with `/documents?number=111028654`. If you want to filter multiple numbers, you can either enter them separated by commas `/documents?number=111028654,222006895` or as an array `/documents?number[]=111028654&number[]=222006895`. **Warning**: The maximum size of an HTTP request line in bytes is 4094. If this limit is exceeded, you will receive the HTTP error: `414 Request-URI Too Large` ### Escape commas in query You can escape commans in query `name=Patrick\\, Peter` if you submit the header `X-Easybill-Escape: true` in your request. ## Property login_id This is the login of your admin or employee account. ## Date and Date-Time format Please use the timezone `Europe/Berlin`. * **date** = *Y-m-d* = `2016-12-31` * **date-time** = *Y-m-d H:i:s* = `2016-12-31 03:13:37` Date or datetime can be `null` because the attributes have been added later and the entry is older.
The version of the OpenAPI document: 1.96.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
from easybill_generated_async.models.document_payments import DocumentPayments
class TestDocumentPayments(unittest.TestCase):
"""DocumentPayments unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> DocumentPayments:
"""Test DocumentPayments
include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
# uncomment below to create an instance of `DocumentPayments`
"""
model = DocumentPayments()
if include_optional:
return DocumentPayments(
page = 1,
pages = 1,
limit = 100,
total = 20,
items = [
{id=1, document_id=1, login_id=1, amount=1000, payment_at=2007-09-17T00:00:00.000Z, type=VISA, provider=Stripe, reference=111111-VISA-222222-6666}
]
)
else:
return DocumentPayments(
page = 1,
pages = 1,
limit = 100,
total = 20,
)
"""
def testDocumentPayments(self):
"""Test DocumentPayments"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()

View file

@ -0,0 +1,78 @@
# coding: utf-8
"""
easybill REST API
The first version of the easybill REST API. [CHANGELOG](https://api.easybill.de/rest/v1/CHANGELOG.md) ## Authentication You can choose between two available methods: `Basic Auth` or `Bearer Token`. In each HTTP request, one of the following HTTP headers is required: ``` # Basic Auth Authorization: Basic base64_encode('<email>:<api_key>') # Bearer Token Authorization: Bearer <api_key> ``` ## Limitations ### Request Limit * PLUS: 10 requests per minute * BUSINESS: 60 requests per minute If the limit is exceeded, you will receive the HTTP error: `429 Too Many Requests` ### Result Limit All result lists are limited to 100 by default. This limit can be increased by the query parameter `limit` to a maximum of 1000. ## Query filter Many list resources can be filtered. In `/documents` you can filter e.g. by number with `/documents?number=111028654`. If you want to filter multiple numbers, you can either enter them separated by commas `/documents?number=111028654,222006895` or as an array `/documents?number[]=111028654&number[]=222006895`. **Warning**: The maximum size of an HTTP request line in bytes is 4094. If this limit is exceeded, you will receive the HTTP error: `414 Request-URI Too Large` ### Escape commas in query You can escape commans in query `name=Patrick\\, Peter` if you submit the header `X-Easybill-Escape: true` in your request. ## Property login_id This is the login of your admin or employee account. ## Date and Date-Time format Please use the timezone `Europe/Berlin`. * **date** = *Y-m-d* = `2016-12-31` * **date-time** = *Y-m-d H:i:s* = `2016-12-31 03:13:37` Date or datetime can be `null` because the attributes have been added later and the entry is older.
The version of the OpenAPI document: 1.96.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
from easybill_generated_async.models.document_position import DocumentPosition
class TestDocumentPosition(unittest.TestCase):
"""DocumentPosition unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> DocumentPosition:
"""Test DocumentPosition
include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
# uncomment below to create an instance of `DocumentPosition`
"""
model = DocumentPosition()
if include_optional:
return DocumentPosition(
number = 'null',
description = 'null',
document_note = 'Test Note',
quantity = 1.0,
quantity_str = '1:30 h',
unit = 'null',
type = 'POSITION',
position = 1,
single_price_net = 75.0,
single_price_gross = 1.337,
vat_percent = 0.0,
discount = 10.0,
discount_type = 'PERCENT',
position_id = 123456,
total_price_net = 1.337,
total_price_gross = 1.337,
total_vat = 1.337,
serial_number_id = 'SN-2023-001-ID',
serial_number = 'SN-2023-001',
booking_account = 'null',
export_cost_1 = 'null',
export_cost_2 = 'null',
cost_price_net = 45.5,
cost_price_total = 45.5,
cost_price_charge = 10.0,
cost_price_charge_type = 'PERCENT',
item_type = 'UNDEFINED',
id = 56
)
else:
return DocumentPosition(
)
"""
def testDocumentPosition(self):
"""Test DocumentPosition"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()

View file

@ -0,0 +1,69 @@
# coding: utf-8
"""
easybill REST API
The first version of the easybill REST API. [CHANGELOG](https://api.easybill.de/rest/v1/CHANGELOG.md) ## Authentication You can choose between two available methods: `Basic Auth` or `Bearer Token`. In each HTTP request, one of the following HTTP headers is required: ``` # Basic Auth Authorization: Basic base64_encode('<email>:<api_key>') # Bearer Token Authorization: Bearer <api_key> ``` ## Limitations ### Request Limit * PLUS: 10 requests per minute * BUSINESS: 60 requests per minute If the limit is exceeded, you will receive the HTTP error: `429 Too Many Requests` ### Result Limit All result lists are limited to 100 by default. This limit can be increased by the query parameter `limit` to a maximum of 1000. ## Query filter Many list resources can be filtered. In `/documents` you can filter e.g. by number with `/documents?number=111028654`. If you want to filter multiple numbers, you can either enter them separated by commas `/documents?number=111028654,222006895` or as an array `/documents?number[]=111028654&number[]=222006895`. **Warning**: The maximum size of an HTTP request line in bytes is 4094. If this limit is exceeded, you will receive the HTTP error: `414 Request-URI Too Large` ### Escape commas in query You can escape commans in query `name=Patrick\\, Peter` if you submit the header `X-Easybill-Escape: true` in your request. ## Property login_id This is the login of your admin or employee account. ## Date and Date-Time format Please use the timezone `Europe/Berlin`. * **date** = *Y-m-d* = `2016-12-31` * **date-time** = *Y-m-d H:i:s* = `2016-12-31 03:13:37` Date or datetime can be `null` because the attributes have been added later and the entry is older.
The version of the OpenAPI document: 1.96.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
from easybill_generated_async.models.document_recurring import DocumentRecurring
class TestDocumentRecurring(unittest.TestCase):
"""DocumentRecurring unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> DocumentRecurring:
"""Test DocumentRecurring
include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
# uncomment below to create an instance of `DocumentRecurring`
"""
model = DocumentRecurring()
if include_optional:
return DocumentRecurring(
next_date = 'Sat Feb 01 00:00:00 UTC 2020',
frequency = 'MONTHLY',
frequency_special = 'LASTDAYOFMONTH',
interval = 1,
end_date_or_count = 'null',
status = 'WAITING',
as_draft = True,
is_notify = True,
send_as = 'EMAIL',
is_sign = True,
is_paid = True,
paid_date_option = 'created_date',
is_sepa = True,
sepa_local_instrument = 'CORE',
sepa_sequence_type = 'FRST',
sepa_reference = 'null',
sepa_remittance_information = 'null',
target_type = 'INVOICE'
)
else:
return DocumentRecurring(
next_date = 'Sat Feb 01 00:00:00 UTC 2020',
)
"""
def testDocumentRecurring(self):
"""Test DocumentRecurring"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()

View file

@ -0,0 +1,59 @@
# coding: utf-8
"""
easybill REST API
The first version of the easybill REST API. [CHANGELOG](https://api.easybill.de/rest/v1/CHANGELOG.md) ## Authentication You can choose between two available methods: `Basic Auth` or `Bearer Token`. In each HTTP request, one of the following HTTP headers is required: ``` # Basic Auth Authorization: Basic base64_encode('<email>:<api_key>') # Bearer Token Authorization: Bearer <api_key> ``` ## Limitations ### Request Limit * PLUS: 10 requests per minute * BUSINESS: 60 requests per minute If the limit is exceeded, you will receive the HTTP error: `429 Too Many Requests` ### Result Limit All result lists are limited to 100 by default. This limit can be increased by the query parameter `limit` to a maximum of 1000. ## Query filter Many list resources can be filtered. In `/documents` you can filter e.g. by number with `/documents?number=111028654`. If you want to filter multiple numbers, you can either enter them separated by commas `/documents?number=111028654,222006895` or as an array `/documents?number[]=111028654&number[]=222006895`. **Warning**: The maximum size of an HTTP request line in bytes is 4094. If this limit is exceeded, you will receive the HTTP error: `414 Request-URI Too Large` ### Escape commas in query You can escape commans in query `name=Patrick\\, Peter` if you submit the header `X-Easybill-Escape: true` in your request. ## Property login_id This is the login of your admin or employee account. ## Date and Date-Time format Please use the timezone `Europe/Berlin`. * **date** = *Y-m-d* = `2016-12-31` * **date-time** = *Y-m-d H:i:s* = `2016-12-31 03:13:37` Date or datetime can be `null` because the attributes have been added later and the entry is older.
The version of the OpenAPI document: 1.96.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
from easybill_generated_async.models.document_version import DocumentVersion
class TestDocumentVersion(unittest.TestCase):
"""DocumentVersion unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> DocumentVersion:
"""Test DocumentVersion
include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
# uncomment below to create an instance of `DocumentVersion`
"""
model = DocumentVersion()
if include_optional:
return DocumentVersion(
created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
document_id = 56,
id = 56,
items = [
easybill_generated_async.models.document_version_item.DocumentVersionItem(
document_version_item_type = 'default',
id = 56, )
],
reason = 'Added another position to the document'
)
else:
return DocumentVersion(
)
"""
def testDocumentVersion(self):
"""Test DocumentVersion"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()

View file

@ -0,0 +1,52 @@
# coding: utf-8
"""
easybill REST API
The first version of the easybill REST API. [CHANGELOG](https://api.easybill.de/rest/v1/CHANGELOG.md) ## Authentication You can choose between two available methods: `Basic Auth` or `Bearer Token`. In each HTTP request, one of the following HTTP headers is required: ``` # Basic Auth Authorization: Basic base64_encode('<email>:<api_key>') # Bearer Token Authorization: Bearer <api_key> ``` ## Limitations ### Request Limit * PLUS: 10 requests per minute * BUSINESS: 60 requests per minute If the limit is exceeded, you will receive the HTTP error: `429 Too Many Requests` ### Result Limit All result lists are limited to 100 by default. This limit can be increased by the query parameter `limit` to a maximum of 1000. ## Query filter Many list resources can be filtered. In `/documents` you can filter e.g. by number with `/documents?number=111028654`. If you want to filter multiple numbers, you can either enter them separated by commas `/documents?number=111028654,222006895` or as an array `/documents?number[]=111028654&number[]=222006895`. **Warning**: The maximum size of an HTTP request line in bytes is 4094. If this limit is exceeded, you will receive the HTTP error: `414 Request-URI Too Large` ### Escape commas in query You can escape commans in query `name=Patrick\\, Peter` if you submit the header `X-Easybill-Escape: true` in your request. ## Property login_id This is the login of your admin or employee account. ## Date and Date-Time format Please use the timezone `Europe/Berlin`. * **date** = *Y-m-d* = `2016-12-31` * **date-time** = *Y-m-d H:i:s* = `2016-12-31 03:13:37` Date or datetime can be `null` because the attributes have been added later and the entry is older.
The version of the OpenAPI document: 1.96.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
from easybill_generated_async.api.document_version_api import DocumentVersionApi
class TestDocumentVersionApi(unittest.IsolatedAsyncioTestCase):
"""DocumentVersionApi unit test stubs"""
async def asyncSetUp(self) -> None:
self.api = DocumentVersionApi()
async def asyncTearDown(self) -> None:
await self.api.api_client.close()
async def test_documents_id_versions_get(self) -> None:
"""Test case for documents_id_versions_get
List all versions of a given document
"""
pass
async def test_documents_id_versions_version_id_get(self) -> None:
"""Test case for documents_id_versions_version_id_get
Show a single version of a given document
"""
pass
async def test_documents_id_versions_version_id_items_version_item_id_download_get(self) -> None:
"""Test case for documents_id_versions_version_id_items_version_item_id_download_get
Download a specific file for a single version of a given document
"""
pass
if __name__ == '__main__':
unittest.main()

View file

@ -0,0 +1,52 @@
# coding: utf-8
"""
easybill REST API
The first version of the easybill REST API. [CHANGELOG](https://api.easybill.de/rest/v1/CHANGELOG.md) ## Authentication You can choose between two available methods: `Basic Auth` or `Bearer Token`. In each HTTP request, one of the following HTTP headers is required: ``` # Basic Auth Authorization: Basic base64_encode('<email>:<api_key>') # Bearer Token Authorization: Bearer <api_key> ``` ## Limitations ### Request Limit * PLUS: 10 requests per minute * BUSINESS: 60 requests per minute If the limit is exceeded, you will receive the HTTP error: `429 Too Many Requests` ### Result Limit All result lists are limited to 100 by default. This limit can be increased by the query parameter `limit` to a maximum of 1000. ## Query filter Many list resources can be filtered. In `/documents` you can filter e.g. by number with `/documents?number=111028654`. If you want to filter multiple numbers, you can either enter them separated by commas `/documents?number=111028654,222006895` or as an array `/documents?number[]=111028654&number[]=222006895`. **Warning**: The maximum size of an HTTP request line in bytes is 4094. If this limit is exceeded, you will receive the HTTP error: `414 Request-URI Too Large` ### Escape commas in query You can escape commans in query `name=Patrick\\, Peter` if you submit the header `X-Easybill-Escape: true` in your request. ## Property login_id This is the login of your admin or employee account. ## Date and Date-Time format Please use the timezone `Europe/Berlin`. * **date** = *Y-m-d* = `2016-12-31` * **date-time** = *Y-m-d H:i:s* = `2016-12-31 03:13:37` Date or datetime can be `null` because the attributes have been added later and the entry is older.
The version of the OpenAPI document: 1.96.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
from easybill_generated_async.models.document_version_item import DocumentVersionItem
class TestDocumentVersionItem(unittest.TestCase):
"""DocumentVersionItem unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> DocumentVersionItem:
"""Test DocumentVersionItem
include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
# uncomment below to create an instance of `DocumentVersionItem`
"""
model = DocumentVersionItem()
if include_optional:
return DocumentVersionItem(
document_version_item_type = 'default',
id = 56
)
else:
return DocumentVersionItem(
)
"""
def testDocumentVersionItem(self):
"""Test DocumentVersionItem"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()

View file

@ -0,0 +1,70 @@
# coding: utf-8
"""
easybill REST API
The first version of the easybill REST API. [CHANGELOG](https://api.easybill.de/rest/v1/CHANGELOG.md) ## Authentication You can choose between two available methods: `Basic Auth` or `Bearer Token`. In each HTTP request, one of the following HTTP headers is required: ``` # Basic Auth Authorization: Basic base64_encode('<email>:<api_key>') # Bearer Token Authorization: Bearer <api_key> ``` ## Limitations ### Request Limit * PLUS: 10 requests per minute * BUSINESS: 60 requests per minute If the limit is exceeded, you will receive the HTTP error: `429 Too Many Requests` ### Result Limit All result lists are limited to 100 by default. This limit can be increased by the query parameter `limit` to a maximum of 1000. ## Query filter Many list resources can be filtered. In `/documents` you can filter e.g. by number with `/documents?number=111028654`. If you want to filter multiple numbers, you can either enter them separated by commas `/documents?number=111028654,222006895` or as an array `/documents?number[]=111028654&number[]=222006895`. **Warning**: The maximum size of an HTTP request line in bytes is 4094. If this limit is exceeded, you will receive the HTTP error: `414 Request-URI Too Large` ### Escape commas in query You can escape commans in query `name=Patrick\\, Peter` if you submit the header `X-Easybill-Escape: true` in your request. ## Property login_id This is the login of your admin or employee account. ## Date and Date-Time format Please use the timezone `Europe/Berlin`. * **date** = *Y-m-d* = `2016-12-31` * **date-time** = *Y-m-d H:i:s* = `2016-12-31 03:13:37` Date or datetime can be `null` because the attributes have been added later and the entry is older.
The version of the OpenAPI document: 1.96.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
from easybill_generated_async.models.document_versions import DocumentVersions
class TestDocumentVersions(unittest.TestCase):
"""DocumentVersions unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> DocumentVersions:
"""Test DocumentVersions
include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
# uncomment below to create an instance of `DocumentVersions`
"""
model = DocumentVersions()
if include_optional:
return DocumentVersions(
page = 1,
pages = 1,
limit = 100,
total = 20,
items = [
easybill_generated_async.models.document_version.DocumentVersion(
created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
document_id = 56,
id = 56,
items = [
easybill_generated_async.models.document_version_item.DocumentVersionItem(
document_version_item_type = 'default',
id = 56, )
],
reason = 'Added another position to the document', )
]
)
else:
return DocumentVersions(
page = 1,
pages = 1,
limit = 100,
total = 20,
)
"""
def testDocumentVersions(self):
"""Test DocumentVersions"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()

View file

@ -0,0 +1,223 @@
# coding: utf-8
"""
easybill REST API
The first version of the easybill REST API. [CHANGELOG](https://api.easybill.de/rest/v1/CHANGELOG.md) ## Authentication You can choose between two available methods: `Basic Auth` or `Bearer Token`. In each HTTP request, one of the following HTTP headers is required: ``` # Basic Auth Authorization: Basic base64_encode('<email>:<api_key>') # Bearer Token Authorization: Bearer <api_key> ``` ## Limitations ### Request Limit * PLUS: 10 requests per minute * BUSINESS: 60 requests per minute If the limit is exceeded, you will receive the HTTP error: `429 Too Many Requests` ### Result Limit All result lists are limited to 100 by default. This limit can be increased by the query parameter `limit` to a maximum of 1000. ## Query filter Many list resources can be filtered. In `/documents` you can filter e.g. by number with `/documents?number=111028654`. If you want to filter multiple numbers, you can either enter them separated by commas `/documents?number=111028654,222006895` or as an array `/documents?number[]=111028654&number[]=222006895`. **Warning**: The maximum size of an HTTP request line in bytes is 4094. If this limit is exceeded, you will receive the HTTP error: `414 Request-URI Too Large` ### Escape commas in query You can escape commans in query `name=Patrick\\, Peter` if you submit the header `X-Easybill-Escape: true` in your request. ## Property login_id This is the login of your admin or employee account. ## Date and Date-Time format Please use the timezone `Europe/Berlin`. * **date** = *Y-m-d* = `2016-12-31` * **date-time** = *Y-m-d H:i:s* = `2016-12-31 03:13:37` Date or datetime can be `null` because the attributes have been added later and the entry is older.
The version of the OpenAPI document: 1.96.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
from easybill_generated_async.models.documents import Documents
class TestDocuments(unittest.TestCase):
"""Documents unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> Documents:
"""Test Documents
include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
# uncomment below to create an instance of `Documents`
"""
model = Documents()
if include_optional:
return Documents(
page = 1,
pages = 1,
limit = 100,
total = 20,
items = [
easybill_generated_async.models.document.Document(
address = easybill_generated_async.models.document_address.DocumentAddress(
salutation = 56,
personal = False,
title = 'Dr.',
first_name = 'Max',
last_name = 'Mustermann',
suffix_1 = 'Abteilung Vertrieb',
suffix_2 = '3. Etage',
company_name = 'Musterunternehmen AG',
street = 'Musterstr.',
zip_code = '12345',
city = 'Musterstadt',
state = 'NRW',
country = 'DE', ),
advanced_data_fields = [],
attachment_ids = [],
label_address = easybill_generated_async.models.document_address.DocumentAddress(
salutation = 56,
personal = False,
title = 'Dr.',
first_name = 'Max',
last_name = 'Mustermann',
suffix_1 = 'Abteilung Vertrieb',
suffix_2 = '3. Etage',
company_name = 'Musterunternehmen AG',
street = 'Musterstr.',
zip_code = '12345',
city = 'Musterstadt',
state = 'NRW',
country = 'DE', ),
amount = 56,
amount_net = 56,
anonymize_due_date = 'Thu Feb 07 00:00:00 UTC 2019',
anonymize_status = 'NOT_ANONYMIZED',
anonymized_at = '2019-02-07 00:00:00',
bank_debit_form = 'null',
billing_country = 'null',
calc_vat_from = 0,
cancel_id = 56,
cash_allowance = 1.337,
cash_allowance_days = 56,
cash_allowance_text = 'null',
contact_id = 56,
contact_label = '',
contact_text = '',
created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
currency = 'EUR',
customer_id = 56,
customer_snapshot = null,
discount = 'null',
discount_type = 'PERCENT',
document_date = 'Thu Feb 07 00:00:00 UTC 2019',
due_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(),
edited_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
external_id = 'null',
replica_url = 'null',
grace_period = 56,
due_in_days = 56,
id = 56,
is_acceptable_on_public_domain = False,
is_archive = False,
is_draft = True,
is_replica = False,
is_oss = False,
item_notes = [
''
],
items = [
easybill_generated_async.models.document_position.DocumentPosition(
number = 'null',
description = 'null',
document_note = 'Test Note',
quantity = 1.0,
quantity_str = '1:30 h',
unit = 'null',
type = 'POSITION',
position = 1,
single_price_net = 75.0,
single_price_gross = 1.337,
vat_percent = 0.0,
discount = 10.0,
discount_type = 'PERCENT',
position_id = 123456,
total_price_net = 1.337,
total_price_gross = 1.337,
total_vat = 1.337,
serial_number_id = 'SN-2023-001-ID',
serial_number = 'SN-2023-001',
booking_account = 'null',
export_cost_1 = 'null',
export_cost_2 = 'null',
cost_price_net = 45.5,
cost_price_total = 45.5,
cost_price_charge = 10.0,
cost_price_charge_type = 'PERCENT',
item_type = 'UNDEFINED',
id = 56, )
],
last_postbox_id = 56,
login_id = 56,
number = 'null',
order_number = '',
buyer_reference = '',
paid_amount = 56,
paid_at = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(),
pdf_pages = 56,
pdf_template = 'null',
payment_link_enabled = False,
payment_link_locale = 'de',
project_id = 56,
recurring_options = easybill_generated_async.models.document_recurring.DocumentRecurring(
next_date = 'Sat Feb 01 00:00:00 UTC 2020',
frequency = 'MONTHLY',
frequency_special = 'LASTDAYOFMONTH',
interval = 1,
end_date_or_count = 'null',
status = 'WAITING',
as_draft = True,
is_notify = True,
send_as = 'EMAIL',
is_sign = True,
is_paid = True,
paid_date_option = 'created_date',
is_sepa = True,
sepa_local_instrument = 'CORE',
sepa_sequence_type = 'FRST',
sepa_reference = 'null',
sepa_remittance_information = 'null',
target_type = 'INVOICE', ),
ref_id = 56,
root_id = 56,
service_date = easybill_generated_async.models.service_date.ServiceDate(
type = 'DEFAULT',
date = 'Fri Feb 01 00:00:00 UTC 2019',
date_from = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(),
date_to = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(),
text = 'null', ),
shipping_country = 'null',
status = 'ACCEPT',
text = 'Vielen Dank für Ihren Auftrag!
Bitte begleichen Sie den offenen Betrag bis zum %DOKUMENT.DATUM-FAELLIG%.
Mit freundlichen Grüßen
%FIRMA.FIRMA%
',
text_prefix = '%KUNDE.ANREDE%,
nachfolgend berechnen wir Ihnen wie vorab besprochen:
',
text_tax = 'null',
title = 'null',
type = 'INVOICE',
use_shipping_address = False,
vat_country = 'null',
vat_id = '',
fulfillment_country = 'null',
vat_option = 'NULL',
file_format_config = [
easybill_generated_async.models.file_format_config.FileFormatConfig(
type = 'default', )
], )
]
)
else:
return Documents(
page = 1,
pages = 1,
limit = 100,
total = 20,
)
"""
def testDocuments(self):
"""Test Documents"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()

View file

@ -0,0 +1,52 @@
# coding: utf-8
"""
easybill REST API
The first version of the easybill REST API. [CHANGELOG](https://api.easybill.de/rest/v1/CHANGELOG.md) ## Authentication You can choose between two available methods: `Basic Auth` or `Bearer Token`. In each HTTP request, one of the following HTTP headers is required: ``` # Basic Auth Authorization: Basic base64_encode('<email>:<api_key>') # Bearer Token Authorization: Bearer <api_key> ``` ## Limitations ### Request Limit * PLUS: 10 requests per minute * BUSINESS: 60 requests per minute If the limit is exceeded, you will receive the HTTP error: `429 Too Many Requests` ### Result Limit All result lists are limited to 100 by default. This limit can be increased by the query parameter `limit` to a maximum of 1000. ## Query filter Many list resources can be filtered. In `/documents` you can filter e.g. by number with `/documents?number=111028654`. If you want to filter multiple numbers, you can either enter them separated by commas `/documents?number=111028654,222006895` or as an array `/documents?number[]=111028654&number[]=222006895`. **Warning**: The maximum size of an HTTP request line in bytes is 4094. If this limit is exceeded, you will receive the HTTP error: `414 Request-URI Too Large` ### Escape commas in query You can escape commans in query `name=Patrick\\, Peter` if you submit the header `X-Easybill-Escape: true` in your request. ## Property login_id This is the login of your admin or employee account. ## Date and Date-Time format Please use the timezone `Europe/Berlin`. * **date** = *Y-m-d* = `2016-12-31` * **date-time** = *Y-m-d H:i:s* = `2016-12-31 03:13:37` Date or datetime can be `null` because the attributes have been added later and the entry is older.
The version of the OpenAPI document: 1.96.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
from easybill_generated_async.models.file_format_config import FileFormatConfig
class TestFileFormatConfig(unittest.TestCase):
"""FileFormatConfig unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> FileFormatConfig:
"""Test FileFormatConfig
include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
# uncomment below to create an instance of `FileFormatConfig`
"""
model = FileFormatConfig()
if include_optional:
return FileFormatConfig(
type = 'default'
)
else:
return FileFormatConfig(
type = 'default',
)
"""
def testFileFormatConfig(self):
"""Test FileFormatConfig"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()

View file

@ -0,0 +1,58 @@
# coding: utf-8
"""
easybill REST API
The first version of the easybill REST API. [CHANGELOG](https://api.easybill.de/rest/v1/CHANGELOG.md) ## Authentication You can choose between two available methods: `Basic Auth` or `Bearer Token`. In each HTTP request, one of the following HTTP headers is required: ``` # Basic Auth Authorization: Basic base64_encode('<email>:<api_key>') # Bearer Token Authorization: Bearer <api_key> ``` ## Limitations ### Request Limit * PLUS: 10 requests per minute * BUSINESS: 60 requests per minute If the limit is exceeded, you will receive the HTTP error: `429 Too Many Requests` ### Result Limit All result lists are limited to 100 by default. This limit can be increased by the query parameter `limit` to a maximum of 1000. ## Query filter Many list resources can be filtered. In `/documents` you can filter e.g. by number with `/documents?number=111028654`. If you want to filter multiple numbers, you can either enter them separated by commas `/documents?number=111028654,222006895` or as an array `/documents?number[]=111028654&number[]=222006895`. **Warning**: The maximum size of an HTTP request line in bytes is 4094. If this limit is exceeded, you will receive the HTTP error: `414 Request-URI Too Large` ### Escape commas in query You can escape commans in query `name=Patrick\\, Peter` if you submit the header `X-Easybill-Escape: true` in your request. ## Property login_id This is the login of your admin or employee account. ## Date and Date-Time format Please use the timezone `Europe/Berlin`. * **date** = *Y-m-d* = `2016-12-31` * **date-time** = *Y-m-d H:i:s* = `2016-12-31 03:13:37` Date or datetime can be `null` because the attributes have been added later and the entry is older.
The version of the OpenAPI document: 1.96.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
from easybill_generated_async.models.list import List
class TestList(unittest.TestCase):
"""List unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> List:
"""Test List
include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
# uncomment below to create an instance of `List`
"""
model = List()
if include_optional:
return List(
page = 1,
pages = 1,
limit = 100,
total = 20
)
else:
return List(
page = 1,
pages = 1,
limit = 100,
total = 20,
)
"""
def testList(self):
"""Test List"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()

View file

@ -0,0 +1,64 @@
# coding: utf-8
"""
easybill REST API
The first version of the easybill REST API. [CHANGELOG](https://api.easybill.de/rest/v1/CHANGELOG.md) ## Authentication You can choose between two available methods: `Basic Auth` or `Bearer Token`. In each HTTP request, one of the following HTTP headers is required: ``` # Basic Auth Authorization: Basic base64_encode('<email>:<api_key>') # Bearer Token Authorization: Bearer <api_key> ``` ## Limitations ### Request Limit * PLUS: 10 requests per minute * BUSINESS: 60 requests per minute If the limit is exceeded, you will receive the HTTP error: `429 Too Many Requests` ### Result Limit All result lists are limited to 100 by default. This limit can be increased by the query parameter `limit` to a maximum of 1000. ## Query filter Many list resources can be filtered. In `/documents` you can filter e.g. by number with `/documents?number=111028654`. If you want to filter multiple numbers, you can either enter them separated by commas `/documents?number=111028654,222006895` or as an array `/documents?number[]=111028654&number[]=222006895`. **Warning**: The maximum size of an HTTP request line in bytes is 4094. If this limit is exceeded, you will receive the HTTP error: `414 Request-URI Too Large` ### Escape commas in query You can escape commans in query `name=Patrick\\, Peter` if you submit the header `X-Easybill-Escape: true` in your request. ## Property login_id This is the login of your admin or employee account. ## Date and Date-Time format Please use the timezone `Europe/Berlin`. * **date** = *Y-m-d* = `2016-12-31` * **date-time** = *Y-m-d H:i:s* = `2016-12-31 03:13:37` Date or datetime can be `null` because the attributes have been added later and the entry is older.
The version of the OpenAPI document: 1.96.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
from easybill_generated_async.models.login import Login
class TestLogin(unittest.TestCase):
"""Login unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> Login:
"""Test Login
include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
# uncomment below to create an instance of `Login`
"""
model = Login()
if include_optional:
return Login(
id = 56,
first_name = 'Max',
last_name = 'Musterfrau',
display_name = 'Max Musterfrau',
phone = '+4923489342',
email = 'example@easybill.de',
email_signature = 'null',
login_type = 'ASSISTANT',
locale = 'de',
time_zone = 'Europe/Berlin',
security = easybill_generated_async.models.login_security.LoginSecurity(
two_factor_enabled = True,
recovery_codes_enabled = True,
notify_on_new_login_enabled = True, )
)
else:
return Login(
)
"""
def testLogin(self):
"""Test Login"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()

View file

@ -0,0 +1,53 @@
# coding: utf-8
"""
easybill REST API
The first version of the easybill REST API. [CHANGELOG](https://api.easybill.de/rest/v1/CHANGELOG.md) ## Authentication You can choose between two available methods: `Basic Auth` or `Bearer Token`. In each HTTP request, one of the following HTTP headers is required: ``` # Basic Auth Authorization: Basic base64_encode('<email>:<api_key>') # Bearer Token Authorization: Bearer <api_key> ``` ## Limitations ### Request Limit * PLUS: 10 requests per minute * BUSINESS: 60 requests per minute If the limit is exceeded, you will receive the HTTP error: `429 Too Many Requests` ### Result Limit All result lists are limited to 100 by default. This limit can be increased by the query parameter `limit` to a maximum of 1000. ## Query filter Many list resources can be filtered. In `/documents` you can filter e.g. by number with `/documents?number=111028654`. If you want to filter multiple numbers, you can either enter them separated by commas `/documents?number=111028654,222006895` or as an array `/documents?number[]=111028654&number[]=222006895`. **Warning**: The maximum size of an HTTP request line in bytes is 4094. If this limit is exceeded, you will receive the HTTP error: `414 Request-URI Too Large` ### Escape commas in query You can escape commans in query `name=Patrick\\, Peter` if you submit the header `X-Easybill-Escape: true` in your request. ## Property login_id This is the login of your admin or employee account. ## Date and Date-Time format Please use the timezone `Europe/Berlin`. * **date** = *Y-m-d* = `2016-12-31` * **date-time** = *Y-m-d H:i:s* = `2016-12-31 03:13:37` Date or datetime can be `null` because the attributes have been added later and the entry is older.
The version of the OpenAPI document: 1.96.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
from easybill_generated_async.models.login_security import LoginSecurity
class TestLoginSecurity(unittest.TestCase):
"""LoginSecurity unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> LoginSecurity:
"""Test LoginSecurity
include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
# uncomment below to create an instance of `LoginSecurity`
"""
model = LoginSecurity()
if include_optional:
return LoginSecurity(
two_factor_enabled = True,
recovery_codes_enabled = True,
notify_on_new_login_enabled = True
)
else:
return LoginSecurity(
)
"""
def testLoginSecurity(self):
"""Test LoginSecurity"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()

View file

@ -0,0 +1,75 @@
# coding: utf-8
"""
easybill REST API
The first version of the easybill REST API. [CHANGELOG](https://api.easybill.de/rest/v1/CHANGELOG.md) ## Authentication You can choose between two available methods: `Basic Auth` or `Bearer Token`. In each HTTP request, one of the following HTTP headers is required: ``` # Basic Auth Authorization: Basic base64_encode('<email>:<api_key>') # Bearer Token Authorization: Bearer <api_key> ``` ## Limitations ### Request Limit * PLUS: 10 requests per minute * BUSINESS: 60 requests per minute If the limit is exceeded, you will receive the HTTP error: `429 Too Many Requests` ### Result Limit All result lists are limited to 100 by default. This limit can be increased by the query parameter `limit` to a maximum of 1000. ## Query filter Many list resources can be filtered. In `/documents` you can filter e.g. by number with `/documents?number=111028654`. If you want to filter multiple numbers, you can either enter them separated by commas `/documents?number=111028654,222006895` or as an array `/documents?number[]=111028654&number[]=222006895`. **Warning**: The maximum size of an HTTP request line in bytes is 4094. If this limit is exceeded, you will receive the HTTP error: `414 Request-URI Too Large` ### Escape commas in query You can escape commans in query `name=Patrick\\, Peter` if you submit the header `X-Easybill-Escape: true` in your request. ## Property login_id This is the login of your admin or employee account. ## Date and Date-Time format Please use the timezone `Europe/Berlin`. * **date** = *Y-m-d* = `2016-12-31` * **date-time** = *Y-m-d H:i:s* = `2016-12-31 03:13:37` Date or datetime can be `null` because the attributes have been added later and the entry is older.
The version of the OpenAPI document: 1.96.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
from easybill_generated_async.models.logins import Logins
class TestLogins(unittest.TestCase):
"""Logins unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> Logins:
"""Test Logins
include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
# uncomment below to create an instance of `Logins`
"""
model = Logins()
if include_optional:
return Logins(
page = 1,
pages = 1,
limit = 100,
total = 20,
items = [
easybill_generated_async.models.login.Login(
id = 56,
first_name = 'Max',
last_name = 'Musterfrau',
display_name = 'Max Musterfrau',
phone = '+4923489342',
email = 'example@easybill.de',
email_signature = 'null',
login_type = 'ASSISTANT',
locale = 'de',
time_zone = 'Europe/Berlin',
security = easybill_generated_async.models.login_security.LoginSecurity(
two_factor_enabled = True,
recovery_codes_enabled = True,
notify_on_new_login_enabled = True, ), )
]
)
else:
return Logins(
page = 1,
pages = 1,
limit = 100,
total = 20,
)
"""
def testLogins(self):
"""Test Logins"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()

View file

@ -0,0 +1,43 @@
# coding: utf-8
"""
easybill REST API
The first version of the easybill REST API. [CHANGELOG](https://api.easybill.de/rest/v1/CHANGELOG.md) ## Authentication You can choose between two available methods: `Basic Auth` or `Bearer Token`. In each HTTP request, one of the following HTTP headers is required: ``` # Basic Auth Authorization: Basic base64_encode('<email>:<api_key>') # Bearer Token Authorization: Bearer <api_key> ``` ## Limitations ### Request Limit * PLUS: 10 requests per minute * BUSINESS: 60 requests per minute If the limit is exceeded, you will receive the HTTP error: `429 Too Many Requests` ### Result Limit All result lists are limited to 100 by default. This limit can be increased by the query parameter `limit` to a maximum of 1000. ## Query filter Many list resources can be filtered. In `/documents` you can filter e.g. by number with `/documents?number=111028654`. If you want to filter multiple numbers, you can either enter them separated by commas `/documents?number=111028654,222006895` or as an array `/documents?number[]=111028654&number[]=222006895`. **Warning**: The maximum size of an HTTP request line in bytes is 4094. If this limit is exceeded, you will receive the HTTP error: `414 Request-URI Too Large` ### Escape commas in query You can escape commans in query `name=Patrick\\, Peter` if you submit the header `X-Easybill-Escape: true` in your request. ## Property login_id This is the login of your admin or employee account. ## Date and Date-Time format Please use the timezone `Europe/Berlin`. * **date** = *Y-m-d* = `2016-12-31` * **date-time** = *Y-m-d H:i:s* = `2016-12-31 03:13:37` Date or datetime can be `null` because the attributes have been added later and the entry is older.
The version of the OpenAPI document: 1.96.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
from easybill_generated_async.api.logins_api import LoginsApi
class TestLoginsApi(unittest.IsolatedAsyncioTestCase):
"""LoginsApi unit test stubs"""
async def asyncSetUp(self) -> None:
self.api = LoginsApi()
async def asyncTearDown(self) -> None:
await self.api.api_client.close()
async def test_logins_get(self) -> None:
"""Test case for logins_get
"""
pass
async def test_logins_id_get(self) -> None:
"""Test case for logins_id_get
"""
pass
if __name__ == '__main__':
unittest.main()

View file

@ -0,0 +1,60 @@
# coding: utf-8
"""
easybill REST API
The first version of the easybill REST API. [CHANGELOG](https://api.easybill.de/rest/v1/CHANGELOG.md) ## Authentication You can choose between two available methods: `Basic Auth` or `Bearer Token`. In each HTTP request, one of the following HTTP headers is required: ``` # Basic Auth Authorization: Basic base64_encode('<email>:<api_key>') # Bearer Token Authorization: Bearer <api_key> ``` ## Limitations ### Request Limit * PLUS: 10 requests per minute * BUSINESS: 60 requests per minute If the limit is exceeded, you will receive the HTTP error: `429 Too Many Requests` ### Result Limit All result lists are limited to 100 by default. This limit can be increased by the query parameter `limit` to a maximum of 1000. ## Query filter Many list resources can be filtered. In `/documents` you can filter e.g. by number with `/documents?number=111028654`. If you want to filter multiple numbers, you can either enter them separated by commas `/documents?number=111028654,222006895` or as an array `/documents?number[]=111028654&number[]=222006895`. **Warning**: The maximum size of an HTTP request line in bytes is 4094. If this limit is exceeded, you will receive the HTTP error: `414 Request-URI Too Large` ### Escape commas in query You can escape commans in query `name=Patrick\\, Peter` if you submit the header `X-Easybill-Escape: true` in your request. ## Property login_id This is the login of your admin or employee account. ## Date and Date-Time format Please use the timezone `Europe/Berlin`. * **date** = *Y-m-d* = `2016-12-31` * **date-time** = *Y-m-d H:i:s* = `2016-12-31 03:13:37` Date or datetime can be `null` because the attributes have been added later and the entry is older.
The version of the OpenAPI document: 1.96.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
from easybill_generated_async.models.pdf_template import PDFTemplate
class TestPDFTemplate(unittest.TestCase):
"""PDFTemplate unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> PDFTemplate:
"""Test PDFTemplate
include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
# uncomment below to create an instance of `PDFTemplate`
"""
model = PDFTemplate()
if include_optional:
return PDFTemplate(
id = 'INVOICE-DE',
name = 'Default template',
pdf_template = 'DE',
document_type = 'INVOICE',
settings = easybill_generated_async.models.pdf_template_settings.PDFTemplate_settings(
text_prefix = '',
text = '',
email = easybill_generated_async.models.pdf_template_settings_email.PDFTemplate_settings_email(
subject = '',
message = '', ), )
)
else:
return PDFTemplate(
)
"""
def testPDFTemplate(self):
"""Test PDFTemplate"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()

View file

@ -0,0 +1,55 @@
# coding: utf-8
"""
easybill REST API
The first version of the easybill REST API. [CHANGELOG](https://api.easybill.de/rest/v1/CHANGELOG.md) ## Authentication You can choose between two available methods: `Basic Auth` or `Bearer Token`. In each HTTP request, one of the following HTTP headers is required: ``` # Basic Auth Authorization: Basic base64_encode('<email>:<api_key>') # Bearer Token Authorization: Bearer <api_key> ``` ## Limitations ### Request Limit * PLUS: 10 requests per minute * BUSINESS: 60 requests per minute If the limit is exceeded, you will receive the HTTP error: `429 Too Many Requests` ### Result Limit All result lists are limited to 100 by default. This limit can be increased by the query parameter `limit` to a maximum of 1000. ## Query filter Many list resources can be filtered. In `/documents` you can filter e.g. by number with `/documents?number=111028654`. If you want to filter multiple numbers, you can either enter them separated by commas `/documents?number=111028654,222006895` or as an array `/documents?number[]=111028654&number[]=222006895`. **Warning**: The maximum size of an HTTP request line in bytes is 4094. If this limit is exceeded, you will receive the HTTP error: `414 Request-URI Too Large` ### Escape commas in query You can escape commans in query `name=Patrick\\, Peter` if you submit the header `X-Easybill-Escape: true` in your request. ## Property login_id This is the login of your admin or employee account. ## Date and Date-Time format Please use the timezone `Europe/Berlin`. * **date** = *Y-m-d* = `2016-12-31` * **date-time** = *Y-m-d H:i:s* = `2016-12-31 03:13:37` Date or datetime can be `null` because the attributes have been added later and the entry is older.
The version of the OpenAPI document: 1.96.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
from easybill_generated_async.models.pdf_template_settings import PDFTemplateSettings
class TestPDFTemplateSettings(unittest.TestCase):
"""PDFTemplateSettings unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> PDFTemplateSettings:
"""Test PDFTemplateSettings
include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
# uncomment below to create an instance of `PDFTemplateSettings`
"""
model = PDFTemplateSettings()
if include_optional:
return PDFTemplateSettings(
text_prefix = '',
text = '',
email = easybill_generated_async.models.pdf_template_settings_email.PDFTemplate_settings_email(
subject = '',
message = '', )
)
else:
return PDFTemplateSettings(
)
"""
def testPDFTemplateSettings(self):
"""Test PDFTemplateSettings"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()

View file

@ -0,0 +1,52 @@
# coding: utf-8
"""
easybill REST API
The first version of the easybill REST API. [CHANGELOG](https://api.easybill.de/rest/v1/CHANGELOG.md) ## Authentication You can choose between two available methods: `Basic Auth` or `Bearer Token`. In each HTTP request, one of the following HTTP headers is required: ``` # Basic Auth Authorization: Basic base64_encode('<email>:<api_key>') # Bearer Token Authorization: Bearer <api_key> ``` ## Limitations ### Request Limit * PLUS: 10 requests per minute * BUSINESS: 60 requests per minute If the limit is exceeded, you will receive the HTTP error: `429 Too Many Requests` ### Result Limit All result lists are limited to 100 by default. This limit can be increased by the query parameter `limit` to a maximum of 1000. ## Query filter Many list resources can be filtered. In `/documents` you can filter e.g. by number with `/documents?number=111028654`. If you want to filter multiple numbers, you can either enter them separated by commas `/documents?number=111028654,222006895` or as an array `/documents?number[]=111028654&number[]=222006895`. **Warning**: The maximum size of an HTTP request line in bytes is 4094. If this limit is exceeded, you will receive the HTTP error: `414 Request-URI Too Large` ### Escape commas in query You can escape commans in query `name=Patrick\\, Peter` if you submit the header `X-Easybill-Escape: true` in your request. ## Property login_id This is the login of your admin or employee account. ## Date and Date-Time format Please use the timezone `Europe/Berlin`. * **date** = *Y-m-d* = `2016-12-31` * **date-time** = *Y-m-d H:i:s* = `2016-12-31 03:13:37` Date or datetime can be `null` because the attributes have been added later and the entry is older.
The version of the OpenAPI document: 1.96.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
from easybill_generated_async.models.pdf_template_settings_email import PDFTemplateSettingsEmail
class TestPDFTemplateSettingsEmail(unittest.TestCase):
"""PDFTemplateSettingsEmail unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> PDFTemplateSettingsEmail:
"""Test PDFTemplateSettingsEmail
include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
# uncomment below to create an instance of `PDFTemplateSettingsEmail`
"""
model = PDFTemplateSettingsEmail()
if include_optional:
return PDFTemplateSettingsEmail(
subject = '',
message = ''
)
else:
return PDFTemplateSettingsEmail(
)
"""
def testPDFTemplateSettingsEmail(self):
"""Test PDFTemplateSettingsEmail"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()

View file

@ -0,0 +1,63 @@
# coding: utf-8
"""
easybill REST API
The first version of the easybill REST API. [CHANGELOG](https://api.easybill.de/rest/v1/CHANGELOG.md) ## Authentication You can choose between two available methods: `Basic Auth` or `Bearer Token`. In each HTTP request, one of the following HTTP headers is required: ``` # Basic Auth Authorization: Basic base64_encode('<email>:<api_key>') # Bearer Token Authorization: Bearer <api_key> ``` ## Limitations ### Request Limit * PLUS: 10 requests per minute * BUSINESS: 60 requests per minute If the limit is exceeded, you will receive the HTTP error: `429 Too Many Requests` ### Result Limit All result lists are limited to 100 by default. This limit can be increased by the query parameter `limit` to a maximum of 1000. ## Query filter Many list resources can be filtered. In `/documents` you can filter e.g. by number with `/documents?number=111028654`. If you want to filter multiple numbers, you can either enter them separated by commas `/documents?number=111028654,222006895` or as an array `/documents?number[]=111028654&number[]=222006895`. **Warning**: The maximum size of an HTTP request line in bytes is 4094. If this limit is exceeded, you will receive the HTTP error: `414 Request-URI Too Large` ### Escape commas in query You can escape commans in query `name=Patrick\\, Peter` if you submit the header `X-Easybill-Escape: true` in your request. ## Property login_id This is the login of your admin or employee account. ## Date and Date-Time format Please use the timezone `Europe/Berlin`. * **date** = *Y-m-d* = `2016-12-31` * **date-time** = *Y-m-d H:i:s* = `2016-12-31 03:13:37` Date or datetime can be `null` because the attributes have been added later and the entry is older.
The version of the OpenAPI document: 1.96.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
from easybill_generated_async.models.pdf_templates import PDFTemplates
class TestPDFTemplates(unittest.TestCase):
"""PDFTemplates unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> PDFTemplates:
"""Test PDFTemplates
include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
# uncomment below to create an instance of `PDFTemplates`
"""
model = PDFTemplates()
if include_optional:
return PDFTemplates(
items = [
easybill_generated_async.models.pdf_template.PDFTemplate(
id = 'INVOICE-DE',
name = 'Default template',
pdf_template = 'DE',
document_type = 'INVOICE',
settings = easybill_generated_async.models.pdf_template_settings.PDFTemplate_settings(
text_prefix = '',
text = '',
email = easybill_generated_async.models.pdf_template_settings_email.PDFTemplate_settings_email(
subject = '',
message = '', ), ), )
]
)
else:
return PDFTemplates(
)
"""
def testPDFTemplates(self):
"""Test PDFTemplates"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()

View file

@ -0,0 +1,38 @@
# coding: utf-8
"""
easybill REST API
The first version of the easybill REST API. [CHANGELOG](https://api.easybill.de/rest/v1/CHANGELOG.md) ## Authentication You can choose between two available methods: `Basic Auth` or `Bearer Token`. In each HTTP request, one of the following HTTP headers is required: ``` # Basic Auth Authorization: Basic base64_encode('<email>:<api_key>') # Bearer Token Authorization: Bearer <api_key> ``` ## Limitations ### Request Limit * PLUS: 10 requests per minute * BUSINESS: 60 requests per minute If the limit is exceeded, you will receive the HTTP error: `429 Too Many Requests` ### Result Limit All result lists are limited to 100 by default. This limit can be increased by the query parameter `limit` to a maximum of 1000. ## Query filter Many list resources can be filtered. In `/documents` you can filter e.g. by number with `/documents?number=111028654`. If you want to filter multiple numbers, you can either enter them separated by commas `/documents?number=111028654,222006895` or as an array `/documents?number[]=111028654&number[]=222006895`. **Warning**: The maximum size of an HTTP request line in bytes is 4094. If this limit is exceeded, you will receive the HTTP error: `414 Request-URI Too Large` ### Escape commas in query You can escape commans in query `name=Patrick\\, Peter` if you submit the header `X-Easybill-Escape: true` in your request. ## Property login_id This is the login of your admin or employee account. ## Date and Date-Time format Please use the timezone `Europe/Berlin`. * **date** = *Y-m-d* = `2016-12-31` * **date-time** = *Y-m-d H:i:s* = `2016-12-31 03:13:37` Date or datetime can be `null` because the attributes have been added later and the entry is older.
The version of the OpenAPI document: 1.96.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
from easybill_generated_async.api.pdf_templates_api import PdfTemplatesApi
class TestPdfTemplatesApi(unittest.IsolatedAsyncioTestCase):
"""PdfTemplatesApi unit test stubs"""
async def asyncSetUp(self) -> None:
self.api = PdfTemplatesApi()
async def asyncTearDown(self) -> None:
await self.api.api_client.close()
async def test_pdf_templates_get(self) -> None:
"""Test case for pdf_templates_get
Fetch PDF Templates list
"""
pass
if __name__ == '__main__':
unittest.main()

View file

@ -0,0 +1,96 @@
# coding: utf-8
"""
easybill REST API
The first version of the easybill REST API. [CHANGELOG](https://api.easybill.de/rest/v1/CHANGELOG.md) ## Authentication You can choose between two available methods: `Basic Auth` or `Bearer Token`. In each HTTP request, one of the following HTTP headers is required: ``` # Basic Auth Authorization: Basic base64_encode('<email>:<api_key>') # Bearer Token Authorization: Bearer <api_key> ``` ## Limitations ### Request Limit * PLUS: 10 requests per minute * BUSINESS: 60 requests per minute If the limit is exceeded, you will receive the HTTP error: `429 Too Many Requests` ### Result Limit All result lists are limited to 100 by default. This limit can be increased by the query parameter `limit` to a maximum of 1000. ## Query filter Many list resources can be filtered. In `/documents` you can filter e.g. by number with `/documents?number=111028654`. If you want to filter multiple numbers, you can either enter them separated by commas `/documents?number=111028654,222006895` or as an array `/documents?number[]=111028654&number[]=222006895`. **Warning**: The maximum size of an HTTP request line in bytes is 4094. If this limit is exceeded, you will receive the HTTP error: `414 Request-URI Too Large` ### Escape commas in query You can escape commans in query `name=Patrick\\, Peter` if you submit the header `X-Easybill-Escape: true` in your request. ## Property login_id This is the login of your admin or employee account. ## Date and Date-Time format Please use the timezone `Europe/Berlin`. * **date** = *Y-m-d* = `2016-12-31` * **date-time** = *Y-m-d H:i:s* = `2016-12-31 03:13:37` Date or datetime can be `null` because the attributes have been added later and the entry is older.
The version of the OpenAPI document: 1.96.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
from easybill_generated_async.models.position import Position
class TestPosition(unittest.TestCase):
"""Position unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> Position:
"""Test Position
include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
# uncomment below to create an instance of `Position`
"""
model = Position()
if include_optional:
return Position(
id = 56,
type = 'PRODUCT',
number = '1234',
description = 'iPhone X',
document_note = 'Test Note',
note = 'null',
unit = 'null',
export_identifier = 'null',
export_identifier_extended = easybill_generated_async.models.position_export_identifier_extended.PositionExportIdentifierExtended(
null = 'null',
n_stb = 'null',
n_stb_ust_id = 'null',
n_stb_none_ust_id = 'null',
n_stb_im = 'null',
revc = 'null',
ig = 'null',
al = 'null',
s_stfr = 'null',
small_business = 'null', ),
login_id = 56,
price_type = 'NETTO',
vat_percent = 19.0,
sale_price = 1250.0,
sale_price2 = 1.337,
sale_price3 = 1.337,
sale_price4 = 1.337,
sale_price5 = 1.337,
sale_price6 = 1.337,
sale_price7 = 1.337,
sale_price8 = 1.337,
sale_price9 = 1.337,
sale_price10 = 1.337,
cost_price = 830.0,
export_cost1 = 'null',
export_cost2 = 'null',
group_id = 56,
stock = 'NO',
stock_count = 100,
stock_limit_notify = True,
stock_limit_notify_frequency = 'ALWAYS',
stock_limit = 50,
quantity = 10.0,
archived = False
)
else:
return Position(
number = '1234',
description = 'iPhone X',
sale_price = 1250.0,
)
"""
def testPosition(self):
"""Test Position"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()

View file

@ -0,0 +1,66 @@
# coding: utf-8
"""
easybill REST API
The first version of the easybill REST API. [CHANGELOG](https://api.easybill.de/rest/v1/CHANGELOG.md) ## Authentication You can choose between two available methods: `Basic Auth` or `Bearer Token`. In each HTTP request, one of the following HTTP headers is required: ``` # Basic Auth Authorization: Basic base64_encode('<email>:<api_key>') # Bearer Token Authorization: Bearer <api_key> ``` ## Limitations ### Request Limit * PLUS: 10 requests per minute * BUSINESS: 60 requests per minute If the limit is exceeded, you will receive the HTTP error: `429 Too Many Requests` ### Result Limit All result lists are limited to 100 by default. This limit can be increased by the query parameter `limit` to a maximum of 1000. ## Query filter Many list resources can be filtered. In `/documents` you can filter e.g. by number with `/documents?number=111028654`. If you want to filter multiple numbers, you can either enter them separated by commas `/documents?number=111028654,222006895` or as an array `/documents?number[]=111028654&number[]=222006895`. **Warning**: The maximum size of an HTTP request line in bytes is 4094. If this limit is exceeded, you will receive the HTTP error: `414 Request-URI Too Large` ### Escape commas in query You can escape commans in query `name=Patrick\\, Peter` if you submit the header `X-Easybill-Escape: true` in your request. ## Property login_id This is the login of your admin or employee account. ## Date and Date-Time format Please use the timezone `Europe/Berlin`. * **date** = *Y-m-d* = `2016-12-31` * **date-time** = *Y-m-d H:i:s* = `2016-12-31 03:13:37` Date or datetime can be `null` because the attributes have been added later and the entry is older.
The version of the OpenAPI document: 1.96.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
from easybill_generated_async.api.position_api import PositionApi
class TestPositionApi(unittest.IsolatedAsyncioTestCase):
"""PositionApi unit test stubs"""
async def asyncSetUp(self) -> None:
self.api = PositionApi()
async def asyncTearDown(self) -> None:
await self.api.api_client.close()
async def test_positions_get(self) -> None:
"""Test case for positions_get
Fetch positions list
"""
pass
async def test_positions_id_delete(self) -> None:
"""Test case for positions_id_delete
Delete position
"""
pass
async def test_positions_id_get(self) -> None:
"""Test case for positions_id_get
Fetch position
"""
pass
async def test_positions_id_put(self) -> None:
"""Test case for positions_id_put
Update position
"""
pass
async def test_positions_post(self) -> None:
"""Test case for positions_post
Create position
"""
pass
if __name__ == '__main__':
unittest.main()

View file

@ -0,0 +1,60 @@
# coding: utf-8
"""
easybill REST API
The first version of the easybill REST API. [CHANGELOG](https://api.easybill.de/rest/v1/CHANGELOG.md) ## Authentication You can choose between two available methods: `Basic Auth` or `Bearer Token`. In each HTTP request, one of the following HTTP headers is required: ``` # Basic Auth Authorization: Basic base64_encode('<email>:<api_key>') # Bearer Token Authorization: Bearer <api_key> ``` ## Limitations ### Request Limit * PLUS: 10 requests per minute * BUSINESS: 60 requests per minute If the limit is exceeded, you will receive the HTTP error: `429 Too Many Requests` ### Result Limit All result lists are limited to 100 by default. This limit can be increased by the query parameter `limit` to a maximum of 1000. ## Query filter Many list resources can be filtered. In `/documents` you can filter e.g. by number with `/documents?number=111028654`. If you want to filter multiple numbers, you can either enter them separated by commas `/documents?number=111028654,222006895` or as an array `/documents?number[]=111028654&number[]=222006895`. **Warning**: The maximum size of an HTTP request line in bytes is 4094. If this limit is exceeded, you will receive the HTTP error: `414 Request-URI Too Large` ### Escape commas in query You can escape commans in query `name=Patrick\\, Peter` if you submit the header `X-Easybill-Escape: true` in your request. ## Property login_id This is the login of your admin or employee account. ## Date and Date-Time format Please use the timezone `Europe/Berlin`. * **date** = *Y-m-d* = `2016-12-31` * **date-time** = *Y-m-d H:i:s* = `2016-12-31 03:13:37` Date or datetime can be `null` because the attributes have been added later and the entry is older.
The version of the OpenAPI document: 1.96.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
from easybill_generated_async.models.position_export_identifier_extended import PositionExportIdentifierExtended
class TestPositionExportIdentifierExtended(unittest.TestCase):
"""PositionExportIdentifierExtended unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> PositionExportIdentifierExtended:
"""Test PositionExportIdentifierExtended
include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
# uncomment below to create an instance of `PositionExportIdentifierExtended`
"""
model = PositionExportIdentifierExtended()
if include_optional:
return PositionExportIdentifierExtended(
null = 'null',
n_stb = 'null',
n_stb_ust_id = 'null',
n_stb_none_ust_id = 'null',
n_stb_im = 'null',
revc = 'null',
ig = 'null',
al = 'null',
s_stfr = 'null',
small_business = 'null'
)
else:
return PositionExportIdentifierExtended(
)
"""
def testPositionExportIdentifierExtended(self):
"""Test PositionExportIdentifierExtended"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()

View file

@ -0,0 +1,58 @@
# coding: utf-8
"""
easybill REST API
The first version of the easybill REST API. [CHANGELOG](https://api.easybill.de/rest/v1/CHANGELOG.md) ## Authentication You can choose between two available methods: `Basic Auth` or `Bearer Token`. In each HTTP request, one of the following HTTP headers is required: ``` # Basic Auth Authorization: Basic base64_encode('<email>:<api_key>') # Bearer Token Authorization: Bearer <api_key> ``` ## Limitations ### Request Limit * PLUS: 10 requests per minute * BUSINESS: 60 requests per minute If the limit is exceeded, you will receive the HTTP error: `429 Too Many Requests` ### Result Limit All result lists are limited to 100 by default. This limit can be increased by the query parameter `limit` to a maximum of 1000. ## Query filter Many list resources can be filtered. In `/documents` you can filter e.g. by number with `/documents?number=111028654`. If you want to filter multiple numbers, you can either enter them separated by commas `/documents?number=111028654,222006895` or as an array `/documents?number[]=111028654&number[]=222006895`. **Warning**: The maximum size of an HTTP request line in bytes is 4094. If this limit is exceeded, you will receive the HTTP error: `414 Request-URI Too Large` ### Escape commas in query You can escape commans in query `name=Patrick\\, Peter` if you submit the header `X-Easybill-Escape: true` in your request. ## Property login_id This is the login of your admin or employee account. ## Date and Date-Time format Please use the timezone `Europe/Berlin`. * **date** = *Y-m-d* = `2016-12-31` * **date-time** = *Y-m-d H:i:s* = `2016-12-31 03:13:37` Date or datetime can be `null` because the attributes have been added later and the entry is older.
The version of the OpenAPI document: 1.96.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
from easybill_generated_async.models.position_group import PositionGroup
class TestPositionGroup(unittest.TestCase):
"""PositionGroup unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> PositionGroup:
"""Test PositionGroup
include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
# uncomment below to create an instance of `PositionGroup`
"""
model = PositionGroup()
if include_optional:
return PositionGroup(
description = 'null',
login_id = 56,
name = 'Mobile Phones',
number = '001',
display_name = '001 - Mobile Phones',
id = 56
)
else:
return PositionGroup(
name = 'Mobile Phones',
number = '001',
)
"""
def testPositionGroup(self):
"""Test PositionGroup"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()

View file

@ -0,0 +1,66 @@
# coding: utf-8
"""
easybill REST API
The first version of the easybill REST API. [CHANGELOG](https://api.easybill.de/rest/v1/CHANGELOG.md) ## Authentication You can choose between two available methods: `Basic Auth` or `Bearer Token`. In each HTTP request, one of the following HTTP headers is required: ``` # Basic Auth Authorization: Basic base64_encode('<email>:<api_key>') # Bearer Token Authorization: Bearer <api_key> ``` ## Limitations ### Request Limit * PLUS: 10 requests per minute * BUSINESS: 60 requests per minute If the limit is exceeded, you will receive the HTTP error: `429 Too Many Requests` ### Result Limit All result lists are limited to 100 by default. This limit can be increased by the query parameter `limit` to a maximum of 1000. ## Query filter Many list resources can be filtered. In `/documents` you can filter e.g. by number with `/documents?number=111028654`. If you want to filter multiple numbers, you can either enter them separated by commas `/documents?number=111028654,222006895` or as an array `/documents?number[]=111028654&number[]=222006895`. **Warning**: The maximum size of an HTTP request line in bytes is 4094. If this limit is exceeded, you will receive the HTTP error: `414 Request-URI Too Large` ### Escape commas in query You can escape commans in query `name=Patrick\\, Peter` if you submit the header `X-Easybill-Escape: true` in your request. ## Property login_id This is the login of your admin or employee account. ## Date and Date-Time format Please use the timezone `Europe/Berlin`. * **date** = *Y-m-d* = `2016-12-31` * **date-time** = *Y-m-d H:i:s* = `2016-12-31 03:13:37` Date or datetime can be `null` because the attributes have been added later and the entry is older.
The version of the OpenAPI document: 1.96.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
from easybill_generated_async.api.position_group_api import PositionGroupApi
class TestPositionGroupApi(unittest.IsolatedAsyncioTestCase):
"""PositionGroupApi unit test stubs"""
async def asyncSetUp(self) -> None:
self.api = PositionGroupApi()
async def asyncTearDown(self) -> None:
await self.api.api_client.close()
async def test_position_groups_get(self) -> None:
"""Test case for position_groups_get
Fetch position group list
"""
pass
async def test_position_groups_id_delete(self) -> None:
"""Test case for position_groups_id_delete
Delete position group
"""
pass
async def test_position_groups_id_get(self) -> None:
"""Test case for position_groups_id_get
Fetch position group
"""
pass
async def test_position_groups_id_put(self) -> None:
"""Test case for position_groups_id_put
Update position group
"""
pass
async def test_position_groups_post(self) -> None:
"""Test case for position_groups_post
Create position group
"""
pass
if __name__ == '__main__':
unittest.main()

View file

@ -0,0 +1,67 @@
# coding: utf-8
"""
easybill REST API
The first version of the easybill REST API. [CHANGELOG](https://api.easybill.de/rest/v1/CHANGELOG.md) ## Authentication You can choose between two available methods: `Basic Auth` or `Bearer Token`. In each HTTP request, one of the following HTTP headers is required: ``` # Basic Auth Authorization: Basic base64_encode('<email>:<api_key>') # Bearer Token Authorization: Bearer <api_key> ``` ## Limitations ### Request Limit * PLUS: 10 requests per minute * BUSINESS: 60 requests per minute If the limit is exceeded, you will receive the HTTP error: `429 Too Many Requests` ### Result Limit All result lists are limited to 100 by default. This limit can be increased by the query parameter `limit` to a maximum of 1000. ## Query filter Many list resources can be filtered. In `/documents` you can filter e.g. by number with `/documents?number=111028654`. If you want to filter multiple numbers, you can either enter them separated by commas `/documents?number=111028654,222006895` or as an array `/documents?number[]=111028654&number[]=222006895`. **Warning**: The maximum size of an HTTP request line in bytes is 4094. If this limit is exceeded, you will receive the HTTP error: `414 Request-URI Too Large` ### Escape commas in query You can escape commans in query `name=Patrick\\, Peter` if you submit the header `X-Easybill-Escape: true` in your request. ## Property login_id This is the login of your admin or employee account. ## Date and Date-Time format Please use the timezone `Europe/Berlin`. * **date** = *Y-m-d* = `2016-12-31` * **date-time** = *Y-m-d H:i:s* = `2016-12-31 03:13:37` Date or datetime can be `null` because the attributes have been added later and the entry is older.
The version of the OpenAPI document: 1.96.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
from easybill_generated_async.models.position_groups import PositionGroups
class TestPositionGroups(unittest.TestCase):
"""PositionGroups unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> PositionGroups:
"""Test PositionGroups
include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
# uncomment below to create an instance of `PositionGroups`
"""
model = PositionGroups()
if include_optional:
return PositionGroups(
page = 1,
pages = 1,
limit = 100,
total = 20,
items = [
easybill_generated_async.models.position_group.PositionGroup(
description = 'null',
login_id = 56,
name = 'Mobile Phones',
number = '001',
display_name = '001 - Mobile Phones',
id = 56, )
]
)
else:
return PositionGroups(
page = 1,
pages = 1,
limit = 100,
total = 20,
)
"""
def testPositionGroups(self):
"""Test PositionGroups"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()

View file

@ -0,0 +1,104 @@
# coding: utf-8
"""
easybill REST API
The first version of the easybill REST API. [CHANGELOG](https://api.easybill.de/rest/v1/CHANGELOG.md) ## Authentication You can choose between two available methods: `Basic Auth` or `Bearer Token`. In each HTTP request, one of the following HTTP headers is required: ``` # Basic Auth Authorization: Basic base64_encode('<email>:<api_key>') # Bearer Token Authorization: Bearer <api_key> ``` ## Limitations ### Request Limit * PLUS: 10 requests per minute * BUSINESS: 60 requests per minute If the limit is exceeded, you will receive the HTTP error: `429 Too Many Requests` ### Result Limit All result lists are limited to 100 by default. This limit can be increased by the query parameter `limit` to a maximum of 1000. ## Query filter Many list resources can be filtered. In `/documents` you can filter e.g. by number with `/documents?number=111028654`. If you want to filter multiple numbers, you can either enter them separated by commas `/documents?number=111028654,222006895` or as an array `/documents?number[]=111028654&number[]=222006895`. **Warning**: The maximum size of an HTTP request line in bytes is 4094. If this limit is exceeded, you will receive the HTTP error: `414 Request-URI Too Large` ### Escape commas in query You can escape commans in query `name=Patrick\\, Peter` if you submit the header `X-Easybill-Escape: true` in your request. ## Property login_id This is the login of your admin or employee account. ## Date and Date-Time format Please use the timezone `Europe/Berlin`. * **date** = *Y-m-d* = `2016-12-31` * **date-time** = *Y-m-d H:i:s* = `2016-12-31 03:13:37` Date or datetime can be `null` because the attributes have been added later and the entry is older.
The version of the OpenAPI document: 1.96.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
from easybill_generated_async.models.positions import Positions
class TestPositions(unittest.TestCase):
"""Positions unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> Positions:
"""Test Positions
include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
# uncomment below to create an instance of `Positions`
"""
model = Positions()
if include_optional:
return Positions(
page = 1,
pages = 1,
limit = 100,
total = 20,
items = [
easybill_generated_async.models.position.Position(
id = 56,
type = 'PRODUCT',
number = '1234',
description = 'iPhone X',
document_note = 'Test Note',
note = 'null',
unit = 'null',
export_identifier = 'null',
export_identifier_extended = easybill_generated_async.models.position_export_identifier_extended.PositionExportIdentifierExtended(
null = 'null',
n_stb = 'null',
n_stb_ust_id = 'null',
n_stb_none_ust_id = 'null',
n_stb_im = 'null',
revc = 'null',
ig = 'null',
al = 'null',
s_stfr = 'null',
small_business = 'null', ),
login_id = 56,
price_type = 'NETTO',
vat_percent = 19.0,
sale_price = 1250.0,
sale_price2 = 1.337,
sale_price3 = 1.337,
sale_price4 = 1.337,
sale_price5 = 1.337,
sale_price6 = 1.337,
sale_price7 = 1.337,
sale_price8 = 1.337,
sale_price9 = 1.337,
sale_price10 = 1.337,
cost_price = 830.0,
export_cost1 = 'null',
export_cost2 = 'null',
group_id = 56,
stock = 'NO',
stock_count = 100,
stock_limit_notify = True,
stock_limit_notify_frequency = 'ALWAYS',
stock_limit = 50,
quantity = 10.0,
archived = False, )
]
)
else:
return Positions(
page = 1,
pages = 1,
limit = 100,
total = 20,
)
"""
def testPositions(self):
"""Test Positions"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()

View file

@ -0,0 +1,69 @@
# coding: utf-8
"""
easybill REST API
The first version of the easybill REST API. [CHANGELOG](https://api.easybill.de/rest/v1/CHANGELOG.md) ## Authentication You can choose between two available methods: `Basic Auth` or `Bearer Token`. In each HTTP request, one of the following HTTP headers is required: ``` # Basic Auth Authorization: Basic base64_encode('<email>:<api_key>') # Bearer Token Authorization: Bearer <api_key> ``` ## Limitations ### Request Limit * PLUS: 10 requests per minute * BUSINESS: 60 requests per minute If the limit is exceeded, you will receive the HTTP error: `429 Too Many Requests` ### Result Limit All result lists are limited to 100 by default. This limit can be increased by the query parameter `limit` to a maximum of 1000. ## Query filter Many list resources can be filtered. In `/documents` you can filter e.g. by number with `/documents?number=111028654`. If you want to filter multiple numbers, you can either enter them separated by commas `/documents?number=111028654,222006895` or as an array `/documents?number[]=111028654&number[]=222006895`. **Warning**: The maximum size of an HTTP request line in bytes is 4094. If this limit is exceeded, you will receive the HTTP error: `414 Request-URI Too Large` ### Escape commas in query You can escape commans in query `name=Patrick\\, Peter` if you submit the header `X-Easybill-Escape: true` in your request. ## Property login_id This is the login of your admin or employee account. ## Date and Date-Time format Please use the timezone `Europe/Berlin`. * **date** = *Y-m-d* = `2016-12-31` * **date-time** = *Y-m-d H:i:s* = `2016-12-31 03:13:37` Date or datetime can be `null` because the attributes have been added later and the entry is older.
The version of the OpenAPI document: 1.96.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
from easybill_generated_async.models.post_box import PostBox
class TestPostBox(unittest.TestCase):
"""PostBox unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> PostBox:
"""Test PostBox
include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
# uncomment below to create an instance of `PostBox`
"""
model = PostBox()
if include_optional:
return PostBox(
id = 56,
document_id = 56,
to = 'example@easybill.de',
cc = 'null',
var_from = 'example@easybill.de',
subject = 'Invoice',
message = 'Dear Mr. ...',
var_date = 'Thu Feb 07 00:00:00 UTC 2019',
created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
processed_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
send_by_self = False,
send_with_attachment = True,
type = 'EMAIL',
status = 'WAITING',
status_msg = 'null',
login_id = 56,
document_file_type = 'default',
post_send_type = 'post_send_type_standard',
tracking_identifier = 'DE1234567890'
)
else:
return PostBox(
)
"""
def testPostBox(self):
"""Test PostBox"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()

View file

@ -0,0 +1,52 @@
# coding: utf-8
"""
easybill REST API
The first version of the easybill REST API. [CHANGELOG](https://api.easybill.de/rest/v1/CHANGELOG.md) ## Authentication You can choose between two available methods: `Basic Auth` or `Bearer Token`. In each HTTP request, one of the following HTTP headers is required: ``` # Basic Auth Authorization: Basic base64_encode('<email>:<api_key>') # Bearer Token Authorization: Bearer <api_key> ``` ## Limitations ### Request Limit * PLUS: 10 requests per minute * BUSINESS: 60 requests per minute If the limit is exceeded, you will receive the HTTP error: `429 Too Many Requests` ### Result Limit All result lists are limited to 100 by default. This limit can be increased by the query parameter `limit` to a maximum of 1000. ## Query filter Many list resources can be filtered. In `/documents` you can filter e.g. by number with `/documents?number=111028654`. If you want to filter multiple numbers, you can either enter them separated by commas `/documents?number=111028654,222006895` or as an array `/documents?number[]=111028654&number[]=222006895`. **Warning**: The maximum size of an HTTP request line in bytes is 4094. If this limit is exceeded, you will receive the HTTP error: `414 Request-URI Too Large` ### Escape commas in query You can escape commans in query `name=Patrick\\, Peter` if you submit the header `X-Easybill-Escape: true` in your request. ## Property login_id This is the login of your admin or employee account. ## Date and Date-Time format Please use the timezone `Europe/Berlin`. * **date** = *Y-m-d* = `2016-12-31` * **date-time** = *Y-m-d H:i:s* = `2016-12-31 03:13:37` Date or datetime can be `null` because the attributes have been added later and the entry is older.
The version of the OpenAPI document: 1.96.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
from easybill_generated_async.api.post_box_api import PostBoxApi
class TestPostBoxApi(unittest.IsolatedAsyncioTestCase):
"""PostBoxApi unit test stubs"""
async def asyncSetUp(self) -> None:
self.api = PostBoxApi()
async def asyncTearDown(self) -> None:
await self.api.api_client.close()
async def test_post_boxes_get(self) -> None:
"""Test case for post_boxes_get
Fetch post box list
"""
pass
async def test_post_boxes_id_delete(self) -> None:
"""Test case for post_boxes_id_delete
Delete post box
"""
pass
async def test_post_boxes_id_get(self) -> None:
"""Test case for post_boxes_id_get
Fetch post box
"""
pass
if __name__ == '__main__':
unittest.main()

View file

@ -0,0 +1,60 @@
# coding: utf-8
"""
easybill REST API
The first version of the easybill REST API. [CHANGELOG](https://api.easybill.de/rest/v1/CHANGELOG.md) ## Authentication You can choose between two available methods: `Basic Auth` or `Bearer Token`. In each HTTP request, one of the following HTTP headers is required: ``` # Basic Auth Authorization: Basic base64_encode('<email>:<api_key>') # Bearer Token Authorization: Bearer <api_key> ``` ## Limitations ### Request Limit * PLUS: 10 requests per minute * BUSINESS: 60 requests per minute If the limit is exceeded, you will receive the HTTP error: `429 Too Many Requests` ### Result Limit All result lists are limited to 100 by default. This limit can be increased by the query parameter `limit` to a maximum of 1000. ## Query filter Many list resources can be filtered. In `/documents` you can filter e.g. by number with `/documents?number=111028654`. If you want to filter multiple numbers, you can either enter them separated by commas `/documents?number=111028654,222006895` or as an array `/documents?number[]=111028654&number[]=222006895`. **Warning**: The maximum size of an HTTP request line in bytes is 4094. If this limit is exceeded, you will receive the HTTP error: `414 Request-URI Too Large` ### Escape commas in query You can escape commans in query `name=Patrick\\, Peter` if you submit the header `X-Easybill-Escape: true` in your request. ## Property login_id This is the login of your admin or employee account. ## Date and Date-Time format Please use the timezone `Europe/Berlin`. * **date** = *Y-m-d* = `2016-12-31` * **date-time** = *Y-m-d H:i:s* = `2016-12-31 03:13:37` Date or datetime can be `null` because the attributes have been added later and the entry is older.
The version of the OpenAPI document: 1.96.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
from easybill_generated_async.models.post_box_request import PostBoxRequest
class TestPostBoxRequest(unittest.TestCase):
"""PostBoxRequest unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> PostBoxRequest:
"""Test PostBoxRequest
include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
# uncomment below to create an instance of `PostBoxRequest`
"""
model = PostBoxRequest()
if include_optional:
return PostBoxRequest(
to = '',
cc = '',
var_from = '',
subject = '',
message = '',
var_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(),
send_by_self = False,
send_with_attachment = True,
document_file_type = 'default',
post_send_type = 'post_send_type_standard'
)
else:
return PostBoxRequest(
)
"""
def testPostBoxRequest(self):
"""Test PostBoxRequest"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()

View file

@ -0,0 +1,80 @@
# coding: utf-8
"""
easybill REST API
The first version of the easybill REST API. [CHANGELOG](https://api.easybill.de/rest/v1/CHANGELOG.md) ## Authentication You can choose between two available methods: `Basic Auth` or `Bearer Token`. In each HTTP request, one of the following HTTP headers is required: ``` # Basic Auth Authorization: Basic base64_encode('<email>:<api_key>') # Bearer Token Authorization: Bearer <api_key> ``` ## Limitations ### Request Limit * PLUS: 10 requests per minute * BUSINESS: 60 requests per minute If the limit is exceeded, you will receive the HTTP error: `429 Too Many Requests` ### Result Limit All result lists are limited to 100 by default. This limit can be increased by the query parameter `limit` to a maximum of 1000. ## Query filter Many list resources can be filtered. In `/documents` you can filter e.g. by number with `/documents?number=111028654`. If you want to filter multiple numbers, you can either enter them separated by commas `/documents?number=111028654,222006895` or as an array `/documents?number[]=111028654&number[]=222006895`. **Warning**: The maximum size of an HTTP request line in bytes is 4094. If this limit is exceeded, you will receive the HTTP error: `414 Request-URI Too Large` ### Escape commas in query You can escape commans in query `name=Patrick\\, Peter` if you submit the header `X-Easybill-Escape: true` in your request. ## Property login_id This is the login of your admin or employee account. ## Date and Date-Time format Please use the timezone `Europe/Berlin`. * **date** = *Y-m-d* = `2016-12-31` * **date-time** = *Y-m-d H:i:s* = `2016-12-31 03:13:37` Date or datetime can be `null` because the attributes have been added later and the entry is older.
The version of the OpenAPI document: 1.96.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
from easybill_generated_async.models.post_boxes import PostBoxes
class TestPostBoxes(unittest.TestCase):
"""PostBoxes unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> PostBoxes:
"""Test PostBoxes
include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
# uncomment below to create an instance of `PostBoxes`
"""
model = PostBoxes()
if include_optional:
return PostBoxes(
page = 1,
pages = 1,
limit = 100,
total = 20,
items = [
easybill_generated_async.models.post_box.PostBox(
id = 56,
document_id = 56,
to = 'example@easybill.de',
cc = 'null',
from = 'example@easybill.de',
subject = 'Invoice',
message = 'Dear Mr. ...',
date = 'Thu Feb 07 00:00:00 UTC 2019',
created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
processed_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
send_by_self = False,
send_with_attachment = True,
type = 'EMAIL',
status = 'WAITING',
status_msg = 'null',
login_id = 56,
document_file_type = 'default',
post_send_type = 'post_send_type_standard',
tracking_identifier = 'DE1234567890', )
]
)
else:
return PostBoxes(
page = 1,
pages = 1,
limit = 100,
total = 20,
)
"""
def testPostBoxes(self):
"""Test PostBoxes"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()

View file

@ -0,0 +1,64 @@
# coding: utf-8
"""
easybill REST API
The first version of the easybill REST API. [CHANGELOG](https://api.easybill.de/rest/v1/CHANGELOG.md) ## Authentication You can choose between two available methods: `Basic Auth` or `Bearer Token`. In each HTTP request, one of the following HTTP headers is required: ``` # Basic Auth Authorization: Basic base64_encode('<email>:<api_key>') # Bearer Token Authorization: Bearer <api_key> ``` ## Limitations ### Request Limit * PLUS: 10 requests per minute * BUSINESS: 60 requests per minute If the limit is exceeded, you will receive the HTTP error: `429 Too Many Requests` ### Result Limit All result lists are limited to 100 by default. This limit can be increased by the query parameter `limit` to a maximum of 1000. ## Query filter Many list resources can be filtered. In `/documents` you can filter e.g. by number with `/documents?number=111028654`. If you want to filter multiple numbers, you can either enter them separated by commas `/documents?number=111028654,222006895` or as an array `/documents?number[]=111028654&number[]=222006895`. **Warning**: The maximum size of an HTTP request line in bytes is 4094. If this limit is exceeded, you will receive the HTTP error: `414 Request-URI Too Large` ### Escape commas in query You can escape commans in query `name=Patrick\\, Peter` if you submit the header `X-Easybill-Escape: true` in your request. ## Property login_id This is the login of your admin or employee account. ## Date and Date-Time format Please use the timezone `Europe/Berlin`. * **date** = *Y-m-d* = `2016-12-31` * **date-time** = *Y-m-d H:i:s* = `2016-12-31 03:13:37` Date or datetime can be `null` because the attributes have been added later and the entry is older.
The version of the OpenAPI document: 1.96.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
from easybill_generated_async.models.project import Project
class TestProject(unittest.TestCase):
"""Project unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> Project:
"""Test Project
include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
# uncomment below to create an instance of `Project`
"""
model = Project()
if include_optional:
return Project(
budget_amount = 10000,
budget_time = 60,
customer_id = 56,
hourly_rate = 3000.0,
id = 56,
login_id = 56,
name = 'My Project',
note = 'null',
status = 'OPEN',
due_at = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(),
budget_notify_frequency = 'ALWAYS',
consumed_time = 56,
consumed_amount = 56
)
else:
return Project(
name = 'My Project',
)
"""
def testProject(self):
"""Test Project"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()

View file

@ -0,0 +1,66 @@
# coding: utf-8
"""
easybill REST API
The first version of the easybill REST API. [CHANGELOG](https://api.easybill.de/rest/v1/CHANGELOG.md) ## Authentication You can choose between two available methods: `Basic Auth` or `Bearer Token`. In each HTTP request, one of the following HTTP headers is required: ``` # Basic Auth Authorization: Basic base64_encode('<email>:<api_key>') # Bearer Token Authorization: Bearer <api_key> ``` ## Limitations ### Request Limit * PLUS: 10 requests per minute * BUSINESS: 60 requests per minute If the limit is exceeded, you will receive the HTTP error: `429 Too Many Requests` ### Result Limit All result lists are limited to 100 by default. This limit can be increased by the query parameter `limit` to a maximum of 1000. ## Query filter Many list resources can be filtered. In `/documents` you can filter e.g. by number with `/documents?number=111028654`. If you want to filter multiple numbers, you can either enter them separated by commas `/documents?number=111028654,222006895` or as an array `/documents?number[]=111028654&number[]=222006895`. **Warning**: The maximum size of an HTTP request line in bytes is 4094. If this limit is exceeded, you will receive the HTTP error: `414 Request-URI Too Large` ### Escape commas in query You can escape commans in query `name=Patrick\\, Peter` if you submit the header `X-Easybill-Escape: true` in your request. ## Property login_id This is the login of your admin or employee account. ## Date and Date-Time format Please use the timezone `Europe/Berlin`. * **date** = *Y-m-d* = `2016-12-31` * **date-time** = *Y-m-d H:i:s* = `2016-12-31 03:13:37` Date or datetime can be `null` because the attributes have been added later and the entry is older.
The version of the OpenAPI document: 1.96.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
from easybill_generated_async.api.project_api import ProjectApi
class TestProjectApi(unittest.IsolatedAsyncioTestCase):
"""ProjectApi unit test stubs"""
async def asyncSetUp(self) -> None:
self.api = ProjectApi()
async def asyncTearDown(self) -> None:
await self.api.api_client.close()
async def test_projects_get(self) -> None:
"""Test case for projects_get
Fetch projects list
"""
pass
async def test_projects_id_delete(self) -> None:
"""Test case for projects_id_delete
Delete project
"""
pass
async def test_projects_id_get(self) -> None:
"""Test case for projects_id_get
Fetch project
"""
pass
async def test_projects_id_put(self) -> None:
"""Test case for projects_id_put
Update project
"""
pass
async def test_projects_post(self) -> None:
"""Test case for projects_post
Create project
"""
pass
if __name__ == '__main__':
unittest.main()

View file

@ -0,0 +1,74 @@
# coding: utf-8
"""
easybill REST API
The first version of the easybill REST API. [CHANGELOG](https://api.easybill.de/rest/v1/CHANGELOG.md) ## Authentication You can choose between two available methods: `Basic Auth` or `Bearer Token`. In each HTTP request, one of the following HTTP headers is required: ``` # Basic Auth Authorization: Basic base64_encode('<email>:<api_key>') # Bearer Token Authorization: Bearer <api_key> ``` ## Limitations ### Request Limit * PLUS: 10 requests per minute * BUSINESS: 60 requests per minute If the limit is exceeded, you will receive the HTTP error: `429 Too Many Requests` ### Result Limit All result lists are limited to 100 by default. This limit can be increased by the query parameter `limit` to a maximum of 1000. ## Query filter Many list resources can be filtered. In `/documents` you can filter e.g. by number with `/documents?number=111028654`. If you want to filter multiple numbers, you can either enter them separated by commas `/documents?number=111028654,222006895` or as an array `/documents?number[]=111028654&number[]=222006895`. **Warning**: The maximum size of an HTTP request line in bytes is 4094. If this limit is exceeded, you will receive the HTTP error: `414 Request-URI Too Large` ### Escape commas in query You can escape commans in query `name=Patrick\\, Peter` if you submit the header `X-Easybill-Escape: true` in your request. ## Property login_id This is the login of your admin or employee account. ## Date and Date-Time format Please use the timezone `Europe/Berlin`. * **date** = *Y-m-d* = `2016-12-31` * **date-time** = *Y-m-d H:i:s* = `2016-12-31 03:13:37` Date or datetime can be `null` because the attributes have been added later and the entry is older.
The version of the OpenAPI document: 1.96.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
from easybill_generated_async.models.projects import Projects
class TestProjects(unittest.TestCase):
"""Projects unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> Projects:
"""Test Projects
include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
# uncomment below to create an instance of `Projects`
"""
model = Projects()
if include_optional:
return Projects(
page = 1,
pages = 1,
limit = 100,
total = 20,
items = [
easybill_generated_async.models.project.Project(
budget_amount = 10000,
budget_time = 60,
customer_id = 56,
hourly_rate = 3000.0,
id = 56,
login_id = 56,
name = 'My Project',
note = 'null',
status = 'OPEN',
due_at = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(),
budget_notify_frequency = 'ALWAYS',
consumed_time = 56,
consumed_amount = 56, )
]
)
else:
return Projects(
page = 1,
pages = 1,
limit = 100,
total = 20,
)
"""
def testProjects(self):
"""Test Projects"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()

View file

@ -0,0 +1,83 @@
# coding: utf-8
"""
easybill REST API
The first version of the easybill REST API. [CHANGELOG](https://api.easybill.de/rest/v1/CHANGELOG.md) ## Authentication You can choose between two available methods: `Basic Auth` or `Bearer Token`. In each HTTP request, one of the following HTTP headers is required: ``` # Basic Auth Authorization: Basic base64_encode('<email>:<api_key>') # Bearer Token Authorization: Bearer <api_key> ``` ## Limitations ### Request Limit * PLUS: 10 requests per minute * BUSINESS: 60 requests per minute If the limit is exceeded, you will receive the HTTP error: `429 Too Many Requests` ### Result Limit All result lists are limited to 100 by default. This limit can be increased by the query parameter `limit` to a maximum of 1000. ## Query filter Many list resources can be filtered. In `/documents` you can filter e.g. by number with `/documents?number=111028654`. If you want to filter multiple numbers, you can either enter them separated by commas `/documents?number=111028654,222006895` or as an array `/documents?number[]=111028654&number[]=222006895`. **Warning**: The maximum size of an HTTP request line in bytes is 4094. If this limit is exceeded, you will receive the HTTP error: `414 Request-URI Too Large` ### Escape commas in query You can escape commans in query `name=Patrick\\, Peter` if you submit the header `X-Easybill-Escape: true` in your request. ## Property login_id This is the login of your admin or employee account. ## Date and Date-Time format Please use the timezone `Europe/Berlin`. * **date** = *Y-m-d* = `2016-12-31` * **date-time** = *Y-m-d H:i:s* = `2016-12-31 03:13:37` Date or datetime can be `null` because the attributes have been added later and the entry is older.
The version of the OpenAPI document: 1.96.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
from easybill_generated_async.models.sepa_payment import SEPAPayment
class TestSEPAPayment(unittest.TestCase):
"""SEPAPayment unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> SEPAPayment:
"""Test SEPAPayment
include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
# uncomment below to create an instance of `SEPAPayment`
"""
model = SEPAPayment()
if include_optional:
return SEPAPayment(
amount = 10000,
created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
creditor_bic = 'null',
creditor_iban = 'DE12345678901234567890',
creditor_name = 'Easybill GmbH',
debitor_bic = 'null',
debitor_iban = 'DE12345678901234567890',
debitor_name = 'Easybill GmbH',
debitor_address_line_1 = 'Bahnhofstr. 1',
debitor_address_line2 = '8001 Zürich',
debitor_country = 'CH',
document_id = 56,
export_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
export_error = 'null',
id = 56,
local_instrument = 'CORE',
mandate_date_of_signature = 'Fri Feb 01 00:00:00 UTC 2019',
mandate_id = '001',
reference = 'X000000001',
remittance_information = 'null',
requested_at = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(),
sequence_type = 'FRST',
updated_at = '2018-01-01 23:23:45',
type = 'DEBIT'
)
else:
return SEPAPayment(
amount = 10000,
debitor_iban = 'DE12345678901234567890',
debitor_name = 'Easybill GmbH',
document_id = 56,
local_instrument = 'CORE',
mandate_date_of_signature = 'Fri Feb 01 00:00:00 UTC 2019',
mandate_id = '001',
reference = 'X000000001',
sequence_type = 'FRST',
)
"""
def testSEPAPayment(self):
"""Test SEPAPayment"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()

View file

@ -0,0 +1,66 @@
# coding: utf-8
"""
easybill REST API
The first version of the easybill REST API. [CHANGELOG](https://api.easybill.de/rest/v1/CHANGELOG.md) ## Authentication You can choose between two available methods: `Basic Auth` or `Bearer Token`. In each HTTP request, one of the following HTTP headers is required: ``` # Basic Auth Authorization: Basic base64_encode('<email>:<api_key>') # Bearer Token Authorization: Bearer <api_key> ``` ## Limitations ### Request Limit * PLUS: 10 requests per minute * BUSINESS: 60 requests per minute If the limit is exceeded, you will receive the HTTP error: `429 Too Many Requests` ### Result Limit All result lists are limited to 100 by default. This limit can be increased by the query parameter `limit` to a maximum of 1000. ## Query filter Many list resources can be filtered. In `/documents` you can filter e.g. by number with `/documents?number=111028654`. If you want to filter multiple numbers, you can either enter them separated by commas `/documents?number=111028654,222006895` or as an array `/documents?number[]=111028654&number[]=222006895`. **Warning**: The maximum size of an HTTP request line in bytes is 4094. If this limit is exceeded, you will receive the HTTP error: `414 Request-URI Too Large` ### Escape commas in query You can escape commans in query `name=Patrick\\, Peter` if you submit the header `X-Easybill-Escape: true` in your request. ## Property login_id This is the login of your admin or employee account. ## Date and Date-Time format Please use the timezone `Europe/Berlin`. * **date** = *Y-m-d* = `2016-12-31` * **date-time** = *Y-m-d H:i:s* = `2016-12-31 03:13:37` Date or datetime can be `null` because the attributes have been added later and the entry is older.
The version of the OpenAPI document: 1.96.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
from easybill_generated_async.api.sepa_payment_api import SepaPaymentApi
class TestSepaPaymentApi(unittest.IsolatedAsyncioTestCase):
"""SepaPaymentApi unit test stubs"""
async def asyncSetUp(self) -> None:
self.api = SepaPaymentApi()
async def asyncTearDown(self) -> None:
await self.api.api_client.close()
async def test_sepa_payments_get(self) -> None:
"""Test case for sepa_payments_get
Fetch SEPA payments list
"""
pass
async def test_sepa_payments_id_delete(self) -> None:
"""Test case for sepa_payments_id_delete
Delete SEPA payment
"""
pass
async def test_sepa_payments_id_get(self) -> None:
"""Test case for sepa_payments_id_get
Fetch SEPA payment
"""
pass
async def test_sepa_payments_id_put(self) -> None:
"""Test case for sepa_payments_id_put
Update SEPA payment
"""
pass
async def test_sepa_payments_post(self) -> None:
"""Test case for sepa_payments_post
Create SEPA payment
"""
pass
if __name__ == '__main__':
unittest.main()

View file

@ -0,0 +1,85 @@
# coding: utf-8
"""
easybill REST API
The first version of the easybill REST API. [CHANGELOG](https://api.easybill.de/rest/v1/CHANGELOG.md) ## Authentication You can choose between two available methods: `Basic Auth` or `Bearer Token`. In each HTTP request, one of the following HTTP headers is required: ``` # Basic Auth Authorization: Basic base64_encode('<email>:<api_key>') # Bearer Token Authorization: Bearer <api_key> ``` ## Limitations ### Request Limit * PLUS: 10 requests per minute * BUSINESS: 60 requests per minute If the limit is exceeded, you will receive the HTTP error: `429 Too Many Requests` ### Result Limit All result lists are limited to 100 by default. This limit can be increased by the query parameter `limit` to a maximum of 1000. ## Query filter Many list resources can be filtered. In `/documents` you can filter e.g. by number with `/documents?number=111028654`. If you want to filter multiple numbers, you can either enter them separated by commas `/documents?number=111028654,222006895` or as an array `/documents?number[]=111028654&number[]=222006895`. **Warning**: The maximum size of an HTTP request line in bytes is 4094. If this limit is exceeded, you will receive the HTTP error: `414 Request-URI Too Large` ### Escape commas in query You can escape commans in query `name=Patrick\\, Peter` if you submit the header `X-Easybill-Escape: true` in your request. ## Property login_id This is the login of your admin or employee account. ## Date and Date-Time format Please use the timezone `Europe/Berlin`. * **date** = *Y-m-d* = `2016-12-31` * **date-time** = *Y-m-d H:i:s* = `2016-12-31 03:13:37` Date or datetime can be `null` because the attributes have been added later and the entry is older.
The version of the OpenAPI document: 1.96.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
from easybill_generated_async.models.sepa_payments import SEPAPayments
class TestSEPAPayments(unittest.TestCase):
"""SEPAPayments unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> SEPAPayments:
"""Test SEPAPayments
include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
# uncomment below to create an instance of `SEPAPayments`
"""
model = SEPAPayments()
if include_optional:
return SEPAPayments(
page = 1,
pages = 1,
limit = 100,
total = 20,
items = [
easybill_generated_async.models.sepa_payment.SEPAPayment(
amount = 10000,
created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
creditor_bic = 'null',
creditor_iban = 'DE12345678901234567890',
creditor_name = 'Easybill GmbH',
debitor_bic = 'null',
debitor_iban = 'DE12345678901234567890',
debitor_name = 'Easybill GmbH',
debitor_address_line_1 = 'Bahnhofstr. 1',
debitor_address_line2 = '8001 Zürich',
debitor_country = 'CH',
document_id = 56,
export_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
export_error = 'null',
id = 56,
local_instrument = 'CORE',
mandate_date_of_signature = 'Fri Feb 01 00:00:00 UTC 2019',
mandate_id = '001',
reference = 'X000000001',
remittance_information = 'null',
requested_at = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(),
sequence_type = 'FRST',
updated_at = '2018-01-01 23:23:45',
type = 'DEBIT', )
]
)
else:
return SEPAPayments(
page = 1,
pages = 1,
limit = 100,
total = 20,
)
"""
def testSEPAPayments(self):
"""Test SEPAPayments"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()

View file

@ -0,0 +1,59 @@
# coding: utf-8
"""
easybill REST API
The first version of the easybill REST API. [CHANGELOG](https://api.easybill.de/rest/v1/CHANGELOG.md) ## Authentication You can choose between two available methods: `Basic Auth` or `Bearer Token`. In each HTTP request, one of the following HTTP headers is required: ``` # Basic Auth Authorization: Basic base64_encode('<email>:<api_key>') # Bearer Token Authorization: Bearer <api_key> ``` ## Limitations ### Request Limit * PLUS: 10 requests per minute * BUSINESS: 60 requests per minute If the limit is exceeded, you will receive the HTTP error: `429 Too Many Requests` ### Result Limit All result lists are limited to 100 by default. This limit can be increased by the query parameter `limit` to a maximum of 1000. ## Query filter Many list resources can be filtered. In `/documents` you can filter e.g. by number with `/documents?number=111028654`. If you want to filter multiple numbers, you can either enter them separated by commas `/documents?number=111028654,222006895` or as an array `/documents?number[]=111028654&number[]=222006895`. **Warning**: The maximum size of an HTTP request line in bytes is 4094. If this limit is exceeded, you will receive the HTTP error: `414 Request-URI Too Large` ### Escape commas in query You can escape commans in query `name=Patrick\\, Peter` if you submit the header `X-Easybill-Escape: true` in your request. ## Property login_id This is the login of your admin or employee account. ## Date and Date-Time format Please use the timezone `Europe/Berlin`. * **date** = *Y-m-d* = `2016-12-31` * **date-time** = *Y-m-d H:i:s* = `2016-12-31 03:13:37` Date or datetime can be `null` because the attributes have been added later and the entry is older.
The version of the OpenAPI document: 1.96.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
from easybill_generated_async.models.serial_number import SerialNumber
class TestSerialNumber(unittest.TestCase):
"""SerialNumber unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> SerialNumber:
"""Test SerialNumber
include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
# uncomment below to create an instance of `SerialNumber`
"""
model = SerialNumber()
if include_optional:
return SerialNumber(
id = 56,
serial_number = 'DHEZ-DHSNR-2344D-FFW',
position_id = 56,
document_id = 56,
document_position_id = 56,
used_at = 'null',
created_at = '2018-01-01 23:23:45'
)
else:
return SerialNumber(
serial_number = 'DHEZ-DHSNR-2344D-FFW',
position_id = 56,
)
"""
def testSerialNumber(self):
"""Test SerialNumber"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()

View file

@ -0,0 +1,59 @@
# coding: utf-8
"""
easybill REST API
The first version of the easybill REST API. [CHANGELOG](https://api.easybill.de/rest/v1/CHANGELOG.md) ## Authentication You can choose between two available methods: `Basic Auth` or `Bearer Token`. In each HTTP request, one of the following HTTP headers is required: ``` # Basic Auth Authorization: Basic base64_encode('<email>:<api_key>') # Bearer Token Authorization: Bearer <api_key> ``` ## Limitations ### Request Limit * PLUS: 10 requests per minute * BUSINESS: 60 requests per minute If the limit is exceeded, you will receive the HTTP error: `429 Too Many Requests` ### Result Limit All result lists are limited to 100 by default. This limit can be increased by the query parameter `limit` to a maximum of 1000. ## Query filter Many list resources can be filtered. In `/documents` you can filter e.g. by number with `/documents?number=111028654`. If you want to filter multiple numbers, you can either enter them separated by commas `/documents?number=111028654,222006895` or as an array `/documents?number[]=111028654&number[]=222006895`. **Warning**: The maximum size of an HTTP request line in bytes is 4094. If this limit is exceeded, you will receive the HTTP error: `414 Request-URI Too Large` ### Escape commas in query You can escape commans in query `name=Patrick\\, Peter` if you submit the header `X-Easybill-Escape: true` in your request. ## Property login_id This is the login of your admin or employee account. ## Date and Date-Time format Please use the timezone `Europe/Berlin`. * **date** = *Y-m-d* = `2016-12-31` * **date-time** = *Y-m-d H:i:s* = `2016-12-31 03:13:37` Date or datetime can be `null` because the attributes have been added later and the entry is older.
The version of the OpenAPI document: 1.96.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
from easybill_generated_async.api.serial_number_api import SerialNumberApi
class TestSerialNumberApi(unittest.IsolatedAsyncioTestCase):
"""SerialNumberApi unit test stubs"""
async def asyncSetUp(self) -> None:
self.api = SerialNumberApi()
async def asyncTearDown(self) -> None:
await self.api.api_client.close()
async def test_serial_numbers_get(self) -> None:
"""Test case for serial_numbers_get
Fetch a list of serial numbers for positions
"""
pass
async def test_serial_numbers_id_delete(self) -> None:
"""Test case for serial_numbers_id_delete
Delete a serial number for a position
"""
pass
async def test_serial_numbers_id_get(self) -> None:
"""Test case for serial_numbers_id_get
Fetch a serial number for a position
"""
pass
async def test_serial_numbers_post(self) -> None:
"""Test case for serial_numbers_post
Create s serial number for a position
"""
pass
if __name__ == '__main__':
unittest.main()

View file

@ -0,0 +1,68 @@
# coding: utf-8
"""
easybill REST API
The first version of the easybill REST API. [CHANGELOG](https://api.easybill.de/rest/v1/CHANGELOG.md) ## Authentication You can choose between two available methods: `Basic Auth` or `Bearer Token`. In each HTTP request, one of the following HTTP headers is required: ``` # Basic Auth Authorization: Basic base64_encode('<email>:<api_key>') # Bearer Token Authorization: Bearer <api_key> ``` ## Limitations ### Request Limit * PLUS: 10 requests per minute * BUSINESS: 60 requests per minute If the limit is exceeded, you will receive the HTTP error: `429 Too Many Requests` ### Result Limit All result lists are limited to 100 by default. This limit can be increased by the query parameter `limit` to a maximum of 1000. ## Query filter Many list resources can be filtered. In `/documents` you can filter e.g. by number with `/documents?number=111028654`. If you want to filter multiple numbers, you can either enter them separated by commas `/documents?number=111028654,222006895` or as an array `/documents?number[]=111028654&number[]=222006895`. **Warning**: The maximum size of an HTTP request line in bytes is 4094. If this limit is exceeded, you will receive the HTTP error: `414 Request-URI Too Large` ### Escape commas in query You can escape commans in query `name=Patrick\\, Peter` if you submit the header `X-Easybill-Escape: true` in your request. ## Property login_id This is the login of your admin or employee account. ## Date and Date-Time format Please use the timezone `Europe/Berlin`. * **date** = *Y-m-d* = `2016-12-31` * **date-time** = *Y-m-d H:i:s* = `2016-12-31 03:13:37` Date or datetime can be `null` because the attributes have been added later and the entry is older.
The version of the OpenAPI document: 1.96.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
from easybill_generated_async.models.serial_numbers import SerialNumbers
class TestSerialNumbers(unittest.TestCase):
"""SerialNumbers unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> SerialNumbers:
"""Test SerialNumbers
include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
# uncomment below to create an instance of `SerialNumbers`
"""
model = SerialNumbers()
if include_optional:
return SerialNumbers(
page = 1,
pages = 1,
limit = 100,
total = 20,
items = [
easybill_generated_async.models.serial_number.SerialNumber(
id = 56,
serial_number = 'DHEZ-DHSNR-2344D-FFW',
position_id = 56,
document_id = 56,
document_position_id = 56,
used_at = 'null',
created_at = '2018-01-01 23:23:45', )
]
)
else:
return SerialNumbers(
page = 1,
pages = 1,
limit = 100,
total = 20,
)
"""
def testSerialNumbers(self):
"""Test SerialNumbers"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()

View file

@ -0,0 +1,55 @@
# coding: utf-8
"""
easybill REST API
The first version of the easybill REST API. [CHANGELOG](https://api.easybill.de/rest/v1/CHANGELOG.md) ## Authentication You can choose between two available methods: `Basic Auth` or `Bearer Token`. In each HTTP request, one of the following HTTP headers is required: ``` # Basic Auth Authorization: Basic base64_encode('<email>:<api_key>') # Bearer Token Authorization: Bearer <api_key> ``` ## Limitations ### Request Limit * PLUS: 10 requests per minute * BUSINESS: 60 requests per minute If the limit is exceeded, you will receive the HTTP error: `429 Too Many Requests` ### Result Limit All result lists are limited to 100 by default. This limit can be increased by the query parameter `limit` to a maximum of 1000. ## Query filter Many list resources can be filtered. In `/documents` you can filter e.g. by number with `/documents?number=111028654`. If you want to filter multiple numbers, you can either enter them separated by commas `/documents?number=111028654,222006895` or as an array `/documents?number[]=111028654&number[]=222006895`. **Warning**: The maximum size of an HTTP request line in bytes is 4094. If this limit is exceeded, you will receive the HTTP error: `414 Request-URI Too Large` ### Escape commas in query You can escape commans in query `name=Patrick\\, Peter` if you submit the header `X-Easybill-Escape: true` in your request. ## Property login_id This is the login of your admin or employee account. ## Date and Date-Time format Please use the timezone `Europe/Berlin`. * **date** = *Y-m-d* = `2016-12-31` * **date-time** = *Y-m-d H:i:s* = `2016-12-31 03:13:37` Date or datetime can be `null` because the attributes have been added later and the entry is older.
The version of the OpenAPI document: 1.96.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
from easybill_generated_async.models.service_date import ServiceDate
class TestServiceDate(unittest.TestCase):
"""ServiceDate unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> ServiceDate:
"""Test ServiceDate
include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
# uncomment below to create an instance of `ServiceDate`
"""
model = ServiceDate()
if include_optional:
return ServiceDate(
type = 'DEFAULT',
var_date = 'Fri Feb 01 00:00:00 UTC 2019',
date_from = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(),
date_to = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(),
text = 'null'
)
else:
return ServiceDate(
)
"""
def testServiceDate(self):
"""Test ServiceDate"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()

View file

@ -0,0 +1,61 @@
# coding: utf-8
"""
easybill REST API
The first version of the easybill REST API. [CHANGELOG](https://api.easybill.de/rest/v1/CHANGELOG.md) ## Authentication You can choose between two available methods: `Basic Auth` or `Bearer Token`. In each HTTP request, one of the following HTTP headers is required: ``` # Basic Auth Authorization: Basic base64_encode('<email>:<api_key>') # Bearer Token Authorization: Bearer <api_key> ``` ## Limitations ### Request Limit * PLUS: 10 requests per minute * BUSINESS: 60 requests per minute If the limit is exceeded, you will receive the HTTP error: `429 Too Many Requests` ### Result Limit All result lists are limited to 100 by default. This limit can be increased by the query parameter `limit` to a maximum of 1000. ## Query filter Many list resources can be filtered. In `/documents` you can filter e.g. by number with `/documents?number=111028654`. If you want to filter multiple numbers, you can either enter them separated by commas `/documents?number=111028654,222006895` or as an array `/documents?number[]=111028654&number[]=222006895`. **Warning**: The maximum size of an HTTP request line in bytes is 4094. If this limit is exceeded, you will receive the HTTP error: `414 Request-URI Too Large` ### Escape commas in query You can escape commans in query `name=Patrick\\, Peter` if you submit the header `X-Easybill-Escape: true` in your request. ## Property login_id This is the login of your admin or employee account. ## Date and Date-Time format Please use the timezone `Europe/Berlin`. * **date** = *Y-m-d* = `2016-12-31` * **date-time** = *Y-m-d H:i:s* = `2016-12-31 03:13:37` Date or datetime can be `null` because the attributes have been added later and the entry is older.
The version of the OpenAPI document: 1.96.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
from easybill_generated_async.models.stock import Stock
class TestStock(unittest.TestCase):
"""Stock unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> Stock:
"""Test Stock
include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
# uncomment below to create an instance of `Stock`
"""
model = Stock()
if include_optional:
return Stock(
id = 56,
note = 'Correction for stock count of the Entry from 11/01/2017',
stock_count = 666,
position_id = 56,
document_id = 56,
document_position_id = 56,
stored_at = '2017-04-11 13:00:00',
created_at = '2018-01-01 23:23:45',
updated_at = '2018-01-01 23:23:45'
)
else:
return Stock(
stock_count = 666,
position_id = 56,
)
"""
def testStock(self):
"""Test Stock"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()

View file

@ -0,0 +1,52 @@
# coding: utf-8
"""
easybill REST API
The first version of the easybill REST API. [CHANGELOG](https://api.easybill.de/rest/v1/CHANGELOG.md) ## Authentication You can choose between two available methods: `Basic Auth` or `Bearer Token`. In each HTTP request, one of the following HTTP headers is required: ``` # Basic Auth Authorization: Basic base64_encode('<email>:<api_key>') # Bearer Token Authorization: Bearer <api_key> ``` ## Limitations ### Request Limit * PLUS: 10 requests per minute * BUSINESS: 60 requests per minute If the limit is exceeded, you will receive the HTTP error: `429 Too Many Requests` ### Result Limit All result lists are limited to 100 by default. This limit can be increased by the query parameter `limit` to a maximum of 1000. ## Query filter Many list resources can be filtered. In `/documents` you can filter e.g. by number with `/documents?number=111028654`. If you want to filter multiple numbers, you can either enter them separated by commas `/documents?number=111028654,222006895` or as an array `/documents?number[]=111028654&number[]=222006895`. **Warning**: The maximum size of an HTTP request line in bytes is 4094. If this limit is exceeded, you will receive the HTTP error: `414 Request-URI Too Large` ### Escape commas in query You can escape commans in query `name=Patrick\\, Peter` if you submit the header `X-Easybill-Escape: true` in your request. ## Property login_id This is the login of your admin or employee account. ## Date and Date-Time format Please use the timezone `Europe/Berlin`. * **date** = *Y-m-d* = `2016-12-31` * **date-time** = *Y-m-d H:i:s* = `2016-12-31 03:13:37` Date or datetime can be `null` because the attributes have been added later and the entry is older.
The version of the OpenAPI document: 1.96.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
from easybill_generated_async.api.stock_api import StockApi
class TestStockApi(unittest.IsolatedAsyncioTestCase):
"""StockApi unit test stubs"""
async def asyncSetUp(self) -> None:
self.api = StockApi()
async def asyncTearDown(self) -> None:
await self.api.api_client.close()
async def test_stocks_get(self) -> None:
"""Test case for stocks_get
Fetch a list of stock entries for positions
"""
pass
async def test_stocks_id_get(self) -> None:
"""Test case for stocks_id_get
Fetch an stock entry for a position
"""
pass
async def test_stocks_post(self) -> None:
"""Test case for stocks_post
Create a stock entry for a position
"""
pass
if __name__ == '__main__':
unittest.main()

View file

@ -0,0 +1,70 @@
# coding: utf-8
"""
easybill REST API
The first version of the easybill REST API. [CHANGELOG](https://api.easybill.de/rest/v1/CHANGELOG.md) ## Authentication You can choose between two available methods: `Basic Auth` or `Bearer Token`. In each HTTP request, one of the following HTTP headers is required: ``` # Basic Auth Authorization: Basic base64_encode('<email>:<api_key>') # Bearer Token Authorization: Bearer <api_key> ``` ## Limitations ### Request Limit * PLUS: 10 requests per minute * BUSINESS: 60 requests per minute If the limit is exceeded, you will receive the HTTP error: `429 Too Many Requests` ### Result Limit All result lists are limited to 100 by default. This limit can be increased by the query parameter `limit` to a maximum of 1000. ## Query filter Many list resources can be filtered. In `/documents` you can filter e.g. by number with `/documents?number=111028654`. If you want to filter multiple numbers, you can either enter them separated by commas `/documents?number=111028654,222006895` or as an array `/documents?number[]=111028654&number[]=222006895`. **Warning**: The maximum size of an HTTP request line in bytes is 4094. If this limit is exceeded, you will receive the HTTP error: `414 Request-URI Too Large` ### Escape commas in query You can escape commans in query `name=Patrick\\, Peter` if you submit the header `X-Easybill-Escape: true` in your request. ## Property login_id This is the login of your admin or employee account. ## Date and Date-Time format Please use the timezone `Europe/Berlin`. * **date** = *Y-m-d* = `2016-12-31` * **date-time** = *Y-m-d H:i:s* = `2016-12-31 03:13:37` Date or datetime can be `null` because the attributes have been added later and the entry is older.
The version of the OpenAPI document: 1.96.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
from easybill_generated_async.models.stocks import Stocks
class TestStocks(unittest.TestCase):
"""Stocks unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> Stocks:
"""Test Stocks
include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
# uncomment below to create an instance of `Stocks`
"""
model = Stocks()
if include_optional:
return Stocks(
page = 1,
pages = 1,
limit = 100,
total = 20,
items = [
easybill_generated_async.models.stock.Stock(
id = 56,
note = 'Correction for stock count of the Entry from 11/01/2017',
stock_count = 666,
position_id = 56,
document_id = 56,
document_position_id = 56,
stored_at = '2017-04-11 13:00:00',
created_at = '2018-01-01 23:23:45',
updated_at = '2018-01-01 23:23:45', )
]
)
else:
return Stocks(
page = 1,
pages = 1,
limit = 100,
total = 20,
)
"""
def testStocks(self):
"""Test Stocks"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()

View file

@ -0,0 +1,69 @@
# coding: utf-8
"""
easybill REST API
The first version of the easybill REST API. [CHANGELOG](https://api.easybill.de/rest/v1/CHANGELOG.md) ## Authentication You can choose between two available methods: `Basic Auth` or `Bearer Token`. In each HTTP request, one of the following HTTP headers is required: ``` # Basic Auth Authorization: Basic base64_encode('<email>:<api_key>') # Bearer Token Authorization: Bearer <api_key> ``` ## Limitations ### Request Limit * PLUS: 10 requests per minute * BUSINESS: 60 requests per minute If the limit is exceeded, you will receive the HTTP error: `429 Too Many Requests` ### Result Limit All result lists are limited to 100 by default. This limit can be increased by the query parameter `limit` to a maximum of 1000. ## Query filter Many list resources can be filtered. In `/documents` you can filter e.g. by number with `/documents?number=111028654`. If you want to filter multiple numbers, you can either enter them separated by commas `/documents?number=111028654,222006895` or as an array `/documents?number[]=111028654&number[]=222006895`. **Warning**: The maximum size of an HTTP request line in bytes is 4094. If this limit is exceeded, you will receive the HTTP error: `414 Request-URI Too Large` ### Escape commas in query You can escape commans in query `name=Patrick\\, Peter` if you submit the header `X-Easybill-Escape: true` in your request. ## Property login_id This is the login of your admin or employee account. ## Date and Date-Time format Please use the timezone `Europe/Berlin`. * **date** = *Y-m-d* = `2016-12-31` * **date-time** = *Y-m-d H:i:s* = `2016-12-31 03:13:37` Date or datetime can be `null` because the attributes have been added later and the entry is older.
The version of the OpenAPI document: 1.96.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
from easybill_generated_async.models.task import Task
class TestTask(unittest.TestCase):
"""Task unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> Task:
"""Test Task
include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
# uncomment below to create an instance of `Task`
"""
model = Task()
if include_optional:
return Task(
category = 'CALL',
category_custom = 'null',
created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
customer_id = 56,
description = 'null',
document_id = 56,
end_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
finish_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
id = 56,
login_id = 56,
name = 'Call client',
position_id = 56,
priority = 'NORMAL',
project_id = 56,
start_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
status = 'PROCESSING',
status_percent = 50
)
else:
return Task(
name = 'Call client',
status = 'PROCESSING',
)
"""
def testTask(self):
"""Test Task"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()

View file

@ -0,0 +1,66 @@
# coding: utf-8
"""
easybill REST API
The first version of the easybill REST API. [CHANGELOG](https://api.easybill.de/rest/v1/CHANGELOG.md) ## Authentication You can choose between two available methods: `Basic Auth` or `Bearer Token`. In each HTTP request, one of the following HTTP headers is required: ``` # Basic Auth Authorization: Basic base64_encode('<email>:<api_key>') # Bearer Token Authorization: Bearer <api_key> ``` ## Limitations ### Request Limit * PLUS: 10 requests per minute * BUSINESS: 60 requests per minute If the limit is exceeded, you will receive the HTTP error: `429 Too Many Requests` ### Result Limit All result lists are limited to 100 by default. This limit can be increased by the query parameter `limit` to a maximum of 1000. ## Query filter Many list resources can be filtered. In `/documents` you can filter e.g. by number with `/documents?number=111028654`. If you want to filter multiple numbers, you can either enter them separated by commas `/documents?number=111028654,222006895` or as an array `/documents?number[]=111028654&number[]=222006895`. **Warning**: The maximum size of an HTTP request line in bytes is 4094. If this limit is exceeded, you will receive the HTTP error: `414 Request-URI Too Large` ### Escape commas in query You can escape commans in query `name=Patrick\\, Peter` if you submit the header `X-Easybill-Escape: true` in your request. ## Property login_id This is the login of your admin or employee account. ## Date and Date-Time format Please use the timezone `Europe/Berlin`. * **date** = *Y-m-d* = `2016-12-31` * **date-time** = *Y-m-d H:i:s* = `2016-12-31 03:13:37` Date or datetime can be `null` because the attributes have been added later and the entry is older.
The version of the OpenAPI document: 1.96.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
from easybill_generated_async.api.task_api import TaskApi
class TestTaskApi(unittest.IsolatedAsyncioTestCase):
"""TaskApi unit test stubs"""
async def asyncSetUp(self) -> None:
self.api = TaskApi()
async def asyncTearDown(self) -> None:
await self.api.api_client.close()
async def test_tasks_get(self) -> None:
"""Test case for tasks_get
Fetch tasks list
"""
pass
async def test_tasks_id_delete(self) -> None:
"""Test case for tasks_id_delete
Delete task
"""
pass
async def test_tasks_id_get(self) -> None:
"""Test case for tasks_id_get
Fetch task
"""
pass
async def test_tasks_id_put(self) -> None:
"""Test case for tasks_id_put
Update task
"""
pass
async def test_tasks_post(self) -> None:
"""Test case for tasks_post
Create task
"""
pass
if __name__ == '__main__':
unittest.main()

View file

@ -0,0 +1,78 @@
# coding: utf-8
"""
easybill REST API
The first version of the easybill REST API. [CHANGELOG](https://api.easybill.de/rest/v1/CHANGELOG.md) ## Authentication You can choose between two available methods: `Basic Auth` or `Bearer Token`. In each HTTP request, one of the following HTTP headers is required: ``` # Basic Auth Authorization: Basic base64_encode('<email>:<api_key>') # Bearer Token Authorization: Bearer <api_key> ``` ## Limitations ### Request Limit * PLUS: 10 requests per minute * BUSINESS: 60 requests per minute If the limit is exceeded, you will receive the HTTP error: `429 Too Many Requests` ### Result Limit All result lists are limited to 100 by default. This limit can be increased by the query parameter `limit` to a maximum of 1000. ## Query filter Many list resources can be filtered. In `/documents` you can filter e.g. by number with `/documents?number=111028654`. If you want to filter multiple numbers, you can either enter them separated by commas `/documents?number=111028654,222006895` or as an array `/documents?number[]=111028654&number[]=222006895`. **Warning**: The maximum size of an HTTP request line in bytes is 4094. If this limit is exceeded, you will receive the HTTP error: `414 Request-URI Too Large` ### Escape commas in query You can escape commans in query `name=Patrick\\, Peter` if you submit the header `X-Easybill-Escape: true` in your request. ## Property login_id This is the login of your admin or employee account. ## Date and Date-Time format Please use the timezone `Europe/Berlin`. * **date** = *Y-m-d* = `2016-12-31` * **date-time** = *Y-m-d H:i:s* = `2016-12-31 03:13:37` Date or datetime can be `null` because the attributes have been added later and the entry is older.
The version of the OpenAPI document: 1.96.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
from easybill_generated_async.models.tasks import Tasks
class TestTasks(unittest.TestCase):
"""Tasks unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> Tasks:
"""Test Tasks
include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
# uncomment below to create an instance of `Tasks`
"""
model = Tasks()
if include_optional:
return Tasks(
page = 1,
pages = 1,
limit = 100,
total = 20,
items = [
easybill_generated_async.models.task.Task(
category = 'CALL',
category_custom = 'null',
created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
customer_id = 56,
description = 'null',
document_id = 56,
end_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
finish_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
id = 56,
login_id = 56,
name = 'Call client',
position_id = 56,
priority = 'NORMAL',
project_id = 56,
start_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
status = 'PROCESSING',
status_percent = 50, )
]
)
else:
return Tasks(
page = 1,
pages = 1,
limit = 100,
total = 20,
)
"""
def testTasks(self):
"""Test Tasks"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()

View file

@ -0,0 +1,56 @@
# coding: utf-8
"""
easybill REST API
The first version of the easybill REST API. [CHANGELOG](https://api.easybill.de/rest/v1/CHANGELOG.md) ## Authentication You can choose between two available methods: `Basic Auth` or `Bearer Token`. In each HTTP request, one of the following HTTP headers is required: ``` # Basic Auth Authorization: Basic base64_encode('<email>:<api_key>') # Bearer Token Authorization: Bearer <api_key> ``` ## Limitations ### Request Limit * PLUS: 10 requests per minute * BUSINESS: 60 requests per minute If the limit is exceeded, you will receive the HTTP error: `429 Too Many Requests` ### Result Limit All result lists are limited to 100 by default. This limit can be increased by the query parameter `limit` to a maximum of 1000. ## Query filter Many list resources can be filtered. In `/documents` you can filter e.g. by number with `/documents?number=111028654`. If you want to filter multiple numbers, you can either enter them separated by commas `/documents?number=111028654,222006895` or as an array `/documents?number[]=111028654&number[]=222006895`. **Warning**: The maximum size of an HTTP request line in bytes is 4094. If this limit is exceeded, you will receive the HTTP error: `414 Request-URI Too Large` ### Escape commas in query You can escape commans in query `name=Patrick\\, Peter` if you submit the header `X-Easybill-Escape: true` in your request. ## Property login_id This is the login of your admin or employee account. ## Date and Date-Time format Please use the timezone `Europe/Berlin`. * **date** = *Y-m-d* = `2016-12-31` * **date-time** = *Y-m-d H:i:s* = `2016-12-31 03:13:37` Date or datetime can be `null` because the attributes have been added later and the entry is older.
The version of the OpenAPI document: 1.96.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
from easybill_generated_async.models.text_template import TextTemplate
class TestTextTemplate(unittest.TestCase):
"""TextTemplate unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> TextTemplate:
"""Test TextTemplate
include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
# uncomment below to create an instance of `TextTemplate`
"""
model = TextTemplate()
if include_optional:
return TextTemplate(
can_modify = True,
id = 56,
text = 'Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.',
title = 'Lorem Ipsum'
)
else:
return TextTemplate(
text = 'Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.',
title = 'Lorem Ipsum',
)
"""
def testTextTemplate(self):
"""Test TextTemplate"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()

View file

@ -0,0 +1,66 @@
# coding: utf-8
"""
easybill REST API
The first version of the easybill REST API. [CHANGELOG](https://api.easybill.de/rest/v1/CHANGELOG.md) ## Authentication You can choose between two available methods: `Basic Auth` or `Bearer Token`. In each HTTP request, one of the following HTTP headers is required: ``` # Basic Auth Authorization: Basic base64_encode('<email>:<api_key>') # Bearer Token Authorization: Bearer <api_key> ``` ## Limitations ### Request Limit * PLUS: 10 requests per minute * BUSINESS: 60 requests per minute If the limit is exceeded, you will receive the HTTP error: `429 Too Many Requests` ### Result Limit All result lists are limited to 100 by default. This limit can be increased by the query parameter `limit` to a maximum of 1000. ## Query filter Many list resources can be filtered. In `/documents` you can filter e.g. by number with `/documents?number=111028654`. If you want to filter multiple numbers, you can either enter them separated by commas `/documents?number=111028654,222006895` or as an array `/documents?number[]=111028654&number[]=222006895`. **Warning**: The maximum size of an HTTP request line in bytes is 4094. If this limit is exceeded, you will receive the HTTP error: `414 Request-URI Too Large` ### Escape commas in query You can escape commans in query `name=Patrick\\, Peter` if you submit the header `X-Easybill-Escape: true` in your request. ## Property login_id This is the login of your admin or employee account. ## Date and Date-Time format Please use the timezone `Europe/Berlin`. * **date** = *Y-m-d* = `2016-12-31` * **date-time** = *Y-m-d H:i:s* = `2016-12-31 03:13:37` Date or datetime can be `null` because the attributes have been added later and the entry is older.
The version of the OpenAPI document: 1.96.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
from easybill_generated_async.api.text_template_api import TextTemplateApi
class TestTextTemplateApi(unittest.IsolatedAsyncioTestCase):
"""TextTemplateApi unit test stubs"""
async def asyncSetUp(self) -> None:
self.api = TextTemplateApi()
async def asyncTearDown(self) -> None:
await self.api.api_client.close()
async def test_text_templates_get(self) -> None:
"""Test case for text_templates_get
Fetch text templates list
"""
pass
async def test_text_templates_id_delete(self) -> None:
"""Test case for text_templates_id_delete
Delete text template
"""
pass
async def test_text_templates_id_get(self) -> None:
"""Test case for text_templates_id_get
Fetch text template
"""
pass
async def test_text_templates_id_put(self) -> None:
"""Test case for text_templates_id_put
Update text template
"""
pass
async def test_text_templates_post(self) -> None:
"""Test case for text_templates_post
Create text template
"""
pass
if __name__ == '__main__':
unittest.main()

View file

@ -0,0 +1,65 @@
# coding: utf-8
"""
easybill REST API
The first version of the easybill REST API. [CHANGELOG](https://api.easybill.de/rest/v1/CHANGELOG.md) ## Authentication You can choose between two available methods: `Basic Auth` or `Bearer Token`. In each HTTP request, one of the following HTTP headers is required: ``` # Basic Auth Authorization: Basic base64_encode('<email>:<api_key>') # Bearer Token Authorization: Bearer <api_key> ``` ## Limitations ### Request Limit * PLUS: 10 requests per minute * BUSINESS: 60 requests per minute If the limit is exceeded, you will receive the HTTP error: `429 Too Many Requests` ### Result Limit All result lists are limited to 100 by default. This limit can be increased by the query parameter `limit` to a maximum of 1000. ## Query filter Many list resources can be filtered. In `/documents` you can filter e.g. by number with `/documents?number=111028654`. If you want to filter multiple numbers, you can either enter them separated by commas `/documents?number=111028654,222006895` or as an array `/documents?number[]=111028654&number[]=222006895`. **Warning**: The maximum size of an HTTP request line in bytes is 4094. If this limit is exceeded, you will receive the HTTP error: `414 Request-URI Too Large` ### Escape commas in query You can escape commans in query `name=Patrick\\, Peter` if you submit the header `X-Easybill-Escape: true` in your request. ## Property login_id This is the login of your admin or employee account. ## Date and Date-Time format Please use the timezone `Europe/Berlin`. * **date** = *Y-m-d* = `2016-12-31` * **date-time** = *Y-m-d H:i:s* = `2016-12-31 03:13:37` Date or datetime can be `null` because the attributes have been added later and the entry is older.
The version of the OpenAPI document: 1.96.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
from easybill_generated_async.models.text_templates import TextTemplates
class TestTextTemplates(unittest.TestCase):
"""TextTemplates unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> TextTemplates:
"""Test TextTemplates
include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
# uncomment below to create an instance of `TextTemplates`
"""
model = TextTemplates()
if include_optional:
return TextTemplates(
page = 1,
pages = 1,
limit = 100,
total = 20,
items = [
easybill_generated_async.models.text_template.TextTemplate(
can_modify = True,
id = 56,
text = 'Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.',
title = 'Lorem Ipsum', )
]
)
else:
return TextTemplates(
page = 1,
pages = 1,
limit = 100,
total = 20,
)
"""
def testTextTemplates(self):
"""Test TextTemplates"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()

View file

@ -0,0 +1,64 @@
# coding: utf-8
"""
easybill REST API
The first version of the easybill REST API. [CHANGELOG](https://api.easybill.de/rest/v1/CHANGELOG.md) ## Authentication You can choose between two available methods: `Basic Auth` or `Bearer Token`. In each HTTP request, one of the following HTTP headers is required: ``` # Basic Auth Authorization: Basic base64_encode('<email>:<api_key>') # Bearer Token Authorization: Bearer <api_key> ``` ## Limitations ### Request Limit * PLUS: 10 requests per minute * BUSINESS: 60 requests per minute If the limit is exceeded, you will receive the HTTP error: `429 Too Many Requests` ### Result Limit All result lists are limited to 100 by default. This limit can be increased by the query parameter `limit` to a maximum of 1000. ## Query filter Many list resources can be filtered. In `/documents` you can filter e.g. by number with `/documents?number=111028654`. If you want to filter multiple numbers, you can either enter them separated by commas `/documents?number=111028654,222006895` or as an array `/documents?number[]=111028654&number[]=222006895`. **Warning**: The maximum size of an HTTP request line in bytes is 4094. If this limit is exceeded, you will receive the HTTP error: `414 Request-URI Too Large` ### Escape commas in query You can escape commans in query `name=Patrick\\, Peter` if you submit the header `X-Easybill-Escape: true` in your request. ## Property login_id This is the login of your admin or employee account. ## Date and Date-Time format Please use the timezone `Europe/Berlin`. * **date** = *Y-m-d* = `2016-12-31` * **date-time** = *Y-m-d H:i:s* = `2016-12-31 03:13:37` Date or datetime can be `null` because the attributes have been added later and the entry is older.
The version of the OpenAPI document: 1.96.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
from easybill_generated_async.models.time_tracking import TimeTracking
class TestTimeTracking(unittest.TestCase):
"""TimeTracking unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> TimeTracking:
"""Test TimeTracking
include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
# uncomment below to create an instance of `TimeTracking`
"""
model = TimeTracking()
if include_optional:
return TimeTracking(
cleared_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
date_from_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
date_thru_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
description = 'Meeting with client',
hourly_rate = 2000.0,
id = 56,
note = 'null',
number = '001',
position_id = 56,
project_id = 56,
login_id = 56,
timer_value = 90
)
else:
return TimeTracking(
description = 'Meeting with client',
)
"""
def testTimeTracking(self):
"""Test TimeTracking"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()

View file

@ -0,0 +1,66 @@
# coding: utf-8
"""
easybill REST API
The first version of the easybill REST API. [CHANGELOG](https://api.easybill.de/rest/v1/CHANGELOG.md) ## Authentication You can choose between two available methods: `Basic Auth` or `Bearer Token`. In each HTTP request, one of the following HTTP headers is required: ``` # Basic Auth Authorization: Basic base64_encode('<email>:<api_key>') # Bearer Token Authorization: Bearer <api_key> ``` ## Limitations ### Request Limit * PLUS: 10 requests per minute * BUSINESS: 60 requests per minute If the limit is exceeded, you will receive the HTTP error: `429 Too Many Requests` ### Result Limit All result lists are limited to 100 by default. This limit can be increased by the query parameter `limit` to a maximum of 1000. ## Query filter Many list resources can be filtered. In `/documents` you can filter e.g. by number with `/documents?number=111028654`. If you want to filter multiple numbers, you can either enter them separated by commas `/documents?number=111028654,222006895` or as an array `/documents?number[]=111028654&number[]=222006895`. **Warning**: The maximum size of an HTTP request line in bytes is 4094. If this limit is exceeded, you will receive the HTTP error: `414 Request-URI Too Large` ### Escape commas in query You can escape commans in query `name=Patrick\\, Peter` if you submit the header `X-Easybill-Escape: true` in your request. ## Property login_id This is the login of your admin or employee account. ## Date and Date-Time format Please use the timezone `Europe/Berlin`. * **date** = *Y-m-d* = `2016-12-31` * **date-time** = *Y-m-d H:i:s* = `2016-12-31 03:13:37` Date or datetime can be `null` because the attributes have been added later and the entry is older.
The version of the OpenAPI document: 1.96.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
from easybill_generated_async.api.time_tracking_api import TimeTrackingApi
class TestTimeTrackingApi(unittest.IsolatedAsyncioTestCase):
"""TimeTrackingApi unit test stubs"""
async def asyncSetUp(self) -> None:
self.api = TimeTrackingApi()
async def asyncTearDown(self) -> None:
await self.api.api_client.close()
async def test_time_trackings_get(self) -> None:
"""Test case for time_trackings_get
Fetch time trackings list
"""
pass
async def test_time_trackings_id_delete(self) -> None:
"""Test case for time_trackings_id_delete
Delete time tracking
"""
pass
async def test_time_trackings_id_get(self) -> None:
"""Test case for time_trackings_id_get
Fetch time tracking
"""
pass
async def test_time_trackings_id_put(self) -> None:
"""Test case for time_trackings_id_put
Update time tracking
"""
pass
async def test_time_trackings_post(self) -> None:
"""Test case for time_trackings_post
Create time tracking
"""
pass
if __name__ == '__main__':
unittest.main()

View file

@ -0,0 +1,74 @@
# coding: utf-8
"""
easybill REST API
The first version of the easybill REST API. [CHANGELOG](https://api.easybill.de/rest/v1/CHANGELOG.md) ## Authentication You can choose between two available methods: `Basic Auth` or `Bearer Token`. In each HTTP request, one of the following HTTP headers is required: ``` # Basic Auth Authorization: Basic base64_encode('<email>:<api_key>') # Bearer Token Authorization: Bearer <api_key> ``` ## Limitations ### Request Limit * PLUS: 10 requests per minute * BUSINESS: 60 requests per minute If the limit is exceeded, you will receive the HTTP error: `429 Too Many Requests` ### Result Limit All result lists are limited to 100 by default. This limit can be increased by the query parameter `limit` to a maximum of 1000. ## Query filter Many list resources can be filtered. In `/documents` you can filter e.g. by number with `/documents?number=111028654`. If you want to filter multiple numbers, you can either enter them separated by commas `/documents?number=111028654,222006895` or as an array `/documents?number[]=111028654&number[]=222006895`. **Warning**: The maximum size of an HTTP request line in bytes is 4094. If this limit is exceeded, you will receive the HTTP error: `414 Request-URI Too Large` ### Escape commas in query You can escape commans in query `name=Patrick\\, Peter` if you submit the header `X-Easybill-Escape: true` in your request. ## Property login_id This is the login of your admin or employee account. ## Date and Date-Time format Please use the timezone `Europe/Berlin`. * **date** = *Y-m-d* = `2016-12-31` * **date-time** = *Y-m-d H:i:s* = `2016-12-31 03:13:37` Date or datetime can be `null` because the attributes have been added later and the entry is older.
The version of the OpenAPI document: 1.96.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
from easybill_generated_async.models.time_trackings import TimeTrackings
class TestTimeTrackings(unittest.TestCase):
"""TimeTrackings unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> TimeTrackings:
"""Test TimeTrackings
include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
# uncomment below to create an instance of `TimeTrackings`
"""
model = TimeTrackings()
if include_optional:
return TimeTrackings(
page = 1,
pages = 1,
limit = 100,
total = 20,
items = [
easybill_generated_async.models.time_tracking.TimeTracking(
cleared_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
date_from_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
date_thru_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
description = 'Meeting with client',
hourly_rate = 2000.0,
id = 56,
note = 'null',
number = '001',
position_id = 56,
project_id = 56,
login_id = 56,
timer_value = 90, )
]
)
else:
return TimeTrackings(
page = 1,
pages = 1,
limit = 100,
total = 20,
)
"""
def testTimeTrackings(self):
"""Test TimeTrackings"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()

View file

@ -0,0 +1,70 @@
# coding: utf-8
"""
easybill REST API
The first version of the easybill REST API. [CHANGELOG](https://api.easybill.de/rest/v1/CHANGELOG.md) ## Authentication You can choose between two available methods: `Basic Auth` or `Bearer Token`. In each HTTP request, one of the following HTTP headers is required: ``` # Basic Auth Authorization: Basic base64_encode('<email>:<api_key>') # Bearer Token Authorization: Bearer <api_key> ``` ## Limitations ### Request Limit * PLUS: 10 requests per minute * BUSINESS: 60 requests per minute If the limit is exceeded, you will receive the HTTP error: `429 Too Many Requests` ### Result Limit All result lists are limited to 100 by default. This limit can be increased by the query parameter `limit` to a maximum of 1000. ## Query filter Many list resources can be filtered. In `/documents` you can filter e.g. by number with `/documents?number=111028654`. If you want to filter multiple numbers, you can either enter them separated by commas `/documents?number=111028654,222006895` or as an array `/documents?number[]=111028654&number[]=222006895`. **Warning**: The maximum size of an HTTP request line in bytes is 4094. If this limit is exceeded, you will receive the HTTP error: `414 Request-URI Too Large` ### Escape commas in query You can escape commans in query `name=Patrick\\, Peter` if you submit the header `X-Easybill-Escape: true` in your request. ## Property login_id This is the login of your admin or employee account. ## Date and Date-Time format Please use the timezone `Europe/Berlin`. * **date** = *Y-m-d* = `2016-12-31` * **date-time** = *Y-m-d H:i:s* = `2016-12-31 03:13:37` Date or datetime can be `null` because the attributes have been added later and the entry is older.
The version of the OpenAPI document: 1.96.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
from easybill_generated_async.models.web_hook import WebHook
class TestWebHook(unittest.TestCase):
"""WebHook unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> WebHook:
"""Test WebHook
include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
# uncomment below to create an instance of `WebHook`
"""
model = WebHook()
if include_optional:
return WebHook(
content_type = 'form',
description = 'My Webhook',
events = [
'document.create'
],
id = 56,
is_active = True,
last_response = easybill_generated_async.models.web_hook_last_response.WebHookLastResponse(
date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
code = 204,
response = '', ),
secret = '',
url = 'https://...'
)
else:
return WebHook(
content_type = 'form',
description = 'My Webhook',
events = [
'document.create'
],
secret = '',
url = 'https://...',
)
"""
def testWebHook(self):
"""Test WebHook"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()

View file

@ -0,0 +1,53 @@
# coding: utf-8
"""
easybill REST API
The first version of the easybill REST API. [CHANGELOG](https://api.easybill.de/rest/v1/CHANGELOG.md) ## Authentication You can choose between two available methods: `Basic Auth` or `Bearer Token`. In each HTTP request, one of the following HTTP headers is required: ``` # Basic Auth Authorization: Basic base64_encode('<email>:<api_key>') # Bearer Token Authorization: Bearer <api_key> ``` ## Limitations ### Request Limit * PLUS: 10 requests per minute * BUSINESS: 60 requests per minute If the limit is exceeded, you will receive the HTTP error: `429 Too Many Requests` ### Result Limit All result lists are limited to 100 by default. This limit can be increased by the query parameter `limit` to a maximum of 1000. ## Query filter Many list resources can be filtered. In `/documents` you can filter e.g. by number with `/documents?number=111028654`. If you want to filter multiple numbers, you can either enter them separated by commas `/documents?number=111028654,222006895` or as an array `/documents?number[]=111028654&number[]=222006895`. **Warning**: The maximum size of an HTTP request line in bytes is 4094. If this limit is exceeded, you will receive the HTTP error: `414 Request-URI Too Large` ### Escape commas in query You can escape commans in query `name=Patrick\\, Peter` if you submit the header `X-Easybill-Escape: true` in your request. ## Property login_id This is the login of your admin or employee account. ## Date and Date-Time format Please use the timezone `Europe/Berlin`. * **date** = *Y-m-d* = `2016-12-31` * **date-time** = *Y-m-d H:i:s* = `2016-12-31 03:13:37` Date or datetime can be `null` because the attributes have been added later and the entry is older.
The version of the OpenAPI document: 1.96.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
from easybill_generated_async.models.web_hook_last_response import WebHookLastResponse
class TestWebHookLastResponse(unittest.TestCase):
"""WebHookLastResponse unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> WebHookLastResponse:
"""Test WebHookLastResponse
include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
# uncomment below to create an instance of `WebHookLastResponse`
"""
model = WebHookLastResponse()
if include_optional:
return WebHookLastResponse(
var_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
code = 204,
response = ''
)
else:
return WebHookLastResponse(
)
"""
def testWebHookLastResponse(self):
"""Test WebHookLastResponse"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()

View file

@ -0,0 +1,74 @@
# coding: utf-8
"""
easybill REST API
The first version of the easybill REST API. [CHANGELOG](https://api.easybill.de/rest/v1/CHANGELOG.md) ## Authentication You can choose between two available methods: `Basic Auth` or `Bearer Token`. In each HTTP request, one of the following HTTP headers is required: ``` # Basic Auth Authorization: Basic base64_encode('<email>:<api_key>') # Bearer Token Authorization: Bearer <api_key> ``` ## Limitations ### Request Limit * PLUS: 10 requests per minute * BUSINESS: 60 requests per minute If the limit is exceeded, you will receive the HTTP error: `429 Too Many Requests` ### Result Limit All result lists are limited to 100 by default. This limit can be increased by the query parameter `limit` to a maximum of 1000. ## Query filter Many list resources can be filtered. In `/documents` you can filter e.g. by number with `/documents?number=111028654`. If you want to filter multiple numbers, you can either enter them separated by commas `/documents?number=111028654,222006895` or as an array `/documents?number[]=111028654&number[]=222006895`. **Warning**: The maximum size of an HTTP request line in bytes is 4094. If this limit is exceeded, you will receive the HTTP error: `414 Request-URI Too Large` ### Escape commas in query You can escape commans in query `name=Patrick\\, Peter` if you submit the header `X-Easybill-Escape: true` in your request. ## Property login_id This is the login of your admin or employee account. ## Date and Date-Time format Please use the timezone `Europe/Berlin`. * **date** = *Y-m-d* = `2016-12-31` * **date-time** = *Y-m-d H:i:s* = `2016-12-31 03:13:37` Date or datetime can be `null` because the attributes have been added later and the entry is older.
The version of the OpenAPI document: 1.96.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
from easybill_generated_async.models.web_hooks import WebHooks
class TestWebHooks(unittest.TestCase):
"""WebHooks unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> WebHooks:
"""Test WebHooks
include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
# uncomment below to create an instance of `WebHooks`
"""
model = WebHooks()
if include_optional:
return WebHooks(
page = 1,
pages = 1,
limit = 100,
total = 20,
items = [
easybill_generated_async.models.web_hook.WebHook(
content_type = 'form',
description = 'My Webhook',
events = [
'document.create'
],
id = 56,
is_active = True,
last_response = easybill_generated_async.models.web_hook_last_response.WebHookLastResponse(
date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
code = 204,
response = '', ),
secret = '',
url = 'https://...', )
]
)
else:
return WebHooks(
page = 1,
pages = 1,
limit = 100,
total = 20,
)
"""
def testWebHooks(self):
"""Test WebHooks"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()

View file

@ -0,0 +1,66 @@
# coding: utf-8
"""
easybill REST API
The first version of the easybill REST API. [CHANGELOG](https://api.easybill.de/rest/v1/CHANGELOG.md) ## Authentication You can choose between two available methods: `Basic Auth` or `Bearer Token`. In each HTTP request, one of the following HTTP headers is required: ``` # Basic Auth Authorization: Basic base64_encode('<email>:<api_key>') # Bearer Token Authorization: Bearer <api_key> ``` ## Limitations ### Request Limit * PLUS: 10 requests per minute * BUSINESS: 60 requests per minute If the limit is exceeded, you will receive the HTTP error: `429 Too Many Requests` ### Result Limit All result lists are limited to 100 by default. This limit can be increased by the query parameter `limit` to a maximum of 1000. ## Query filter Many list resources can be filtered. In `/documents` you can filter e.g. by number with `/documents?number=111028654`. If you want to filter multiple numbers, you can either enter them separated by commas `/documents?number=111028654,222006895` or as an array `/documents?number[]=111028654&number[]=222006895`. **Warning**: The maximum size of an HTTP request line in bytes is 4094. If this limit is exceeded, you will receive the HTTP error: `414 Request-URI Too Large` ### Escape commas in query You can escape commans in query `name=Patrick\\, Peter` if you submit the header `X-Easybill-Escape: true` in your request. ## Property login_id This is the login of your admin or employee account. ## Date and Date-Time format Please use the timezone `Europe/Berlin`. * **date** = *Y-m-d* = `2016-12-31` * **date-time** = *Y-m-d H:i:s* = `2016-12-31 03:13:37` Date or datetime can be `null` because the attributes have been added later and the entry is older.
The version of the OpenAPI document: 1.96.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
from easybill_generated_async.api.webhook_api import WebhookApi
class TestWebhookApi(unittest.IsolatedAsyncioTestCase):
"""WebhookApi unit test stubs"""
async def asyncSetUp(self) -> None:
self.api = WebhookApi()
async def asyncTearDown(self) -> None:
await self.api.api_client.close()
async def test_webhooks_get(self) -> None:
"""Test case for webhooks_get
Fetch WebHooks list
"""
pass
async def test_webhooks_id_delete(self) -> None:
"""Test case for webhooks_id_delete
Delete WebHook
"""
pass
async def test_webhooks_id_get(self) -> None:
"""Test case for webhooks_id_get
Fetch WebHook
"""
pass
async def test_webhooks_id_put(self) -> None:
"""Test case for webhooks_id_put
Update WebHook
"""
pass
async def test_webhooks_post(self) -> None:
"""Test case for webhooks_post
Create WebHook
"""
pass
if __name__ == '__main__':
unittest.main()