Skip to content

Commit

Permalink
TransferRequest with platform_id
Browse files Browse the repository at this point in the history
  • Loading branch information
Andres Hernandez committed Jul 7, 2022
1 parent c27350e commit 3b01ef5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cuenca_validations/types/requests.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ class TransferRequest(BaseRequest):
descriptor: StrictStr
idempotency_key: str
user_id: Optional[str]
platform_id: Optional[str]

class Config:
fields = {
Expand All @@ -91,6 +92,7 @@ class Config:
'description': 'Custom Id, must be unique for each transfer'
},
'user_id': {'description': 'source user to take the funds'},
'platform_id': {'description': 'platform id to take the funds'},
}
schema_extra = {
'example': {
Expand All @@ -100,6 +102,7 @@ class Config:
'descriptor': 'Mezcal, pulque y tequila',
'idempotency_key': 'UNIQUE-KEY-003',
'user_id': 'USWqY5cvkISJOxHyEKjAKf8w',
'platform_id': 'PTZbBlk__kQt-wfwzP5nwA9A',
}
}

Expand Down

0 comments on commit 3b01ef5

Please sign in to comment.