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:
ndiezel0 2019-12-20 20:24:08 +03:00 committed by GitHub
parent 23581a17f4
commit 53dccfebbf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 47 additions and 0 deletions

View File

@ -0,0 +1,9 @@
type: object
properties:
type:
type: string
example: "bank_card"
token:
type: string
binDataID:
type: string

View 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'