CP-13: Add additional auth data to destination (#61)

This commit is contained in:
Артем 2024-05-31 12:32:54 +03:00 committed by GitHub
parent 44cc6be629
commit 3f8c8021c3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 36 additions and 0 deletions

View File

@ -35,6 +35,8 @@ allOf:
- $ref: "#/definitions/CurrencyID"
resource:
$ref: "#/definitions/DestinationResource"
additionalAuthData:
$ref: "#/definitions/DestinationAuthData"
metadata:
description: |
Some non-transparent for system set of data associated with this destination

View File

@ -0,0 +1,13 @@
---
description: Destination auth data to make withdrawals
type: object
discriminator: type
required:
- type
properties:
type:
description: |
The auth data type of the destination.
type: string
enum:
- SenderReceiverDestinationAuthData

View File

@ -0,0 +1,21 @@
---
description: Both sender and receiver auth data refs
allOf:
- $ref: "#/definitions/DestinationAuthData"
- type: object
required:
- senderToken
- receiverToken
properties:
senderToken:
description: Token identifying the sender auth data
type: string
minLength: 1
maxLength: 1000
example: zu3TcwGI71Bpaaw2XkLWZXlhMdn4zpVzMQg9xMkh
receiverToken:
description: Token identifying the receiver auth data
type: string
minLength: 1
maxLength: 1000
example: zu3TcwGI71Bpaaw2XkLWZXlhMdn4zpVzMQg9xMkh