mirror of
https://github.com/valitydev/swag-wallets.git
synced 2024-11-06 02:45:19 +00:00
CP-13: Add additional auth data to destination (#61)
This commit is contained in:
parent
44cc6be629
commit
3f8c8021c3
@ -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
|
||||
|
13
api/wallet/spec/definitions/DestinationAuthData.yaml
Normal file
13
api/wallet/spec/definitions/DestinationAuthData.yaml
Normal 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
|
@ -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
|
Loading…
Reference in New Issue
Block a user