mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
modify trigger request object
This commit is contained in:
parent
540cafc62a
commit
d5bd88b61a
1 changed files with 8 additions and 1 deletions
|
|
@ -4,9 +4,16 @@ from pydantic import BaseModel
|
|||
|
||||
|
||||
class PashubToAraTriggerRequest(BaseModel):
|
||||
pashub_job_id: str
|
||||
pashub_link: (
|
||||
str # e.g. https://pashub.net/jobs/12345-abcd-1234-abcd-12345abcde/details
|
||||
)
|
||||
|
||||
address: Optional[str] = None
|
||||
sharepoint_link: Optional[str] = None
|
||||
uprn: Optional[str] = None
|
||||
landlord_property_id: Optional[str] = None
|
||||
deal_stage: Optional[str] = None
|
||||
|
||||
@property
|
||||
def pashub_job_id(self) -> str:
|
||||
return self.pashub_link.split("/")[-2]
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue