mirror of
https://github.com/Eledio/superfaktura-client.git
synced 2025-11-01 16:11:18 +01:00
invoice: fix docstring
This commit is contained in:
@@ -152,7 +152,7 @@ class InvoiceRespModel:
|
|||||||
- error (int): The error code.
|
- error (int): The error code.
|
||||||
- error_message (str): The error message.
|
- error_message (str): The error message.
|
||||||
- invoice_id (Optional[int]): The ID of the invoice.
|
- invoice_id (Optional[int]): The ID of the invoice.
|
||||||
- invoice_token (Optional[str]): The token of
|
- invoice_token (Optional[str]): The token of the invoice.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
error: int
|
error: int
|
||||||
@@ -178,7 +178,7 @@ class InvoiceSettings:
|
|||||||
summary_bg_color: Optional[str] = None
|
summary_bg_color: Optional[str] = None
|
||||||
|
|
||||||
def as_dict(self) -> dict:
|
def as_dict(self) -> dict:
|
||||||
"""Returns a dictionary representation of the ClientContactModel."""
|
"""Returns a dictionary representation of the InvoiceSettings."""
|
||||||
data = asdict(self)
|
data = asdict(self)
|
||||||
for key in list(data.keys()):
|
for key in list(data.keys()):
|
||||||
if data[key] is None:
|
if data[key] is None:
|
||||||
@@ -265,10 +265,6 @@ class Invoice(SuperFakturaAPI):
|
|||||||
|
|
||||||
Returns:
|
Returns:
|
||||||
InvoiceRespModel: The response model for the invoice.
|
InvoiceRespModel: The response model for the invoice.
|
||||||
:param invoice_settings:
|
|
||||||
:param contact:
|
|
||||||
:param items:
|
|
||||||
:param invoice_model:
|
|
||||||
"""
|
"""
|
||||||
data = {
|
data = {
|
||||||
"Invoice": invoice_model.as_dict(),
|
"Invoice": invoice_model.as_dict(),
|
||||||
|
|||||||
Reference in New Issue
Block a user