generated from marcieltorres/python-boilerplate-project
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add Get PDF of Invoice to API (#93)
- Loading branch information
Showing
5 changed files
with
107 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
from dataclasses import dataclass, field | ||
|
||
from mashumaro import DataClassDictMixin, field_options | ||
from mashumaro.config import BaseConfig | ||
|
||
|
||
@dataclass | ||
class GetPdfRequest(DataClassDictMixin): | ||
""" | ||
Get PDF Request dataclass. | ||
""" | ||
|
||
invoice_number: str = field(metadata=field_options(alias="invoiceNumber")) | ||
contract_id: str = field(metadata=field_options(alias="contractId")) | ||
bp_number: str = field(metadata=field_options(alias="bpNumber")) | ||
|
||
class Config(BaseConfig): | ||
serialize_by_alias = True |