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 2be6330 commit 5266424
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
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
2 changes: 1 addition & 1 deletion cuenca_validations/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '0.10.21'
__version__ = '0.10.21.dev0'

0 comments on commit 5266424

Please sign in to comment.