mirror of
https://github.com/valitydev/swag-wallets.git
synced 2024-11-06 02:45:19 +00:00
FF-139: Add P2PTransferQuote version 1 inner structure (#56)
* FF-139: Add P2PTransferQuote version 1 inner structure * FF-139: Review fix * Update api/wallet/spec/definitions/internal/P2PTransferQuoteTokenV1.yaml Co-Authored-By: Andrew Mayorov <a.mayorov@rbkmoney.com> * FF-139: Move CompactResource to internal * FF-139: Move `internal` folder out of `spec` folder * FF-139: Fix refs * FF-139: Fix spec refs Co-authored-by: Andrew Mayorov <encube.ul@gmail.com>
This commit is contained in:
parent
23581a17f4
commit
53dccfebbf
9
api/wallet/internal/CompactResource.yaml
Normal file
9
api/wallet/internal/CompactResource.yaml
Normal file
@ -0,0 +1,9 @@
|
||||
type: object
|
||||
properties:
|
||||
type:
|
||||
type: string
|
||||
example: "bank_card"
|
||||
token:
|
||||
type: string
|
||||
binDataID:
|
||||
type: string
|
38
api/wallet/internal/P2PTransferQuoteTokenV1.yaml
Normal file
38
api/wallet/internal/P2PTransferQuoteTokenV1.yaml
Normal file
@ -0,0 +1,38 @@
|
||||
description: Cхема содержимого [токена для создания перевода](#/definitions/P2PTransferQuoteToken.yaml) версии 1
|
||||
type: object
|
||||
required:
|
||||
- version
|
||||
- amount
|
||||
- partyRevision
|
||||
- domainRevision
|
||||
- createdAt
|
||||
- expiresOn
|
||||
- partyID
|
||||
- identityID
|
||||
- sender
|
||||
- receiver
|
||||
properties:
|
||||
version:
|
||||
type: integer
|
||||
minimum: 1
|
||||
maximum: 1
|
||||
amount:
|
||||
$ref: '../spec/definitions/Asset.yaml'
|
||||
partyRevision:
|
||||
type: integer
|
||||
domainRevision:
|
||||
type: integer
|
||||
createdAt:
|
||||
type: string
|
||||
format: date-time
|
||||
expiresOn:
|
||||
type: string
|
||||
format: date-time
|
||||
partyID:
|
||||
type: string
|
||||
identityID:
|
||||
$ref: '../spec/definitions/IdentityID.yaml'
|
||||
sender:
|
||||
$ref: 'CompactResource.yaml'
|
||||
receiver:
|
||||
$ref: 'CompactResource.yaml'
|
Loading…
Reference in New Issue
Block a user