diff --git a/api/wallet/internal/CompactResource.yaml b/api/wallet/internal/CompactResource.yaml new file mode 100644 index 0000000..9a94706 --- /dev/null +++ b/api/wallet/internal/CompactResource.yaml @@ -0,0 +1,9 @@ +type: object +properties: + type: + type: string + example: "bank_card" + token: + type: string + binDataID: + type: string \ No newline at end of file diff --git a/api/wallet/internal/P2PTransferQuoteTokenV1.yaml b/api/wallet/internal/P2PTransferQuoteTokenV1.yaml new file mode 100644 index 0000000..a848f3e --- /dev/null +++ b/api/wallet/internal/P2PTransferQuoteTokenV1.yaml @@ -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'