Skip to content

Commit

Permalink
save work
Browse files Browse the repository at this point in the history
  • Loading branch information
dpgraham4401 committed May 11, 2024
1 parent b30bad6 commit 1f44148
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions server/apps/manifest/services/emanifest_search.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
from typing import Literal, Optional

EmanifestStatus = Literal[
"Pending",
"scheduled",
"InTransit",
"ReadyForSignature",
"signed",
"SignedComplete",
"UnderCorrection",
"Corrected",
]


class EManifestSearch:
def __init__(self):
self.state_code = None
self.site_id = None
self.status: Optional[EmanifestStatus] = None
self.start_date = None
self.end_date = None
self.date_type = None

# {
# "stateCode":"string",
# "siteId":"string",
# "status":"Pending|Scheduled|InTransit|ReadyForSignature|Signed|
# SignedComplete|UnderCorrection|Corrected",
# "dateType":"CertifiedDate|ReceivedDate|ShippedDate|UpdatedDate",
# "siteType":"Generator|Tsdf|Transporter|RejectionInfo_AlternateTsdf",
# "startDate":"date",
# "endDate":"date"
# "correctionRequestStatus":"NotSent|Sent|IndustryResponded|Cancelled
# }

def add_state(self, state: str = None):
self.state = state if state else "Default State"
return self

0 comments on commit 1f44148

Please sign in to comment.