Skip to content

Commit

Permalink
signature identity
Browse files Browse the repository at this point in the history
  • Loading branch information
mike-one committed Feb 11, 2025
1 parent 3c096db commit 83c3a75
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cuenca_validations/types/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@
'StrictTransferRequest',
'TermsOfService',
'TOSAgreement',
'Signature',
'TOSRequest',
'TrackDataMethod',
'TransactionQuery',
Expand Down Expand Up @@ -167,6 +168,7 @@
KYCFile,
PhoneNumber,
Rfc,
Signature,
TOSAgreement,
VerificationErrors,
)
Expand Down
25 changes: 25 additions & 0 deletions cuenca_validations/types/identities.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,3 +172,28 @@ class TOSAgreement(BaseModel):
}
}
)


class Signature(BaseModel):
uri: str = Field(
description="url to fetch the signature image"
)
location: str = Field(
description="location of the signature"
)
ip: IPvAnyAddress = Field(
description="ip address of the signature"
)
hash: str = Field(
description="hash of the signature"
)
model_config = ConfigDict(
json_schema_extra={
"example": {
"uri": "https://example.com/signature.png",
"location": "19.432608, -99.133209",
"ip": "192.168.1.100",
"hash": "a1b2c3d4e5f67890abcdef1234567890",
}
}
)

0 comments on commit 83c3a75

Please sign in to comment.