Actions
GetTickets » 이력 » 개정판 6
« 뒤로 |
개정판 6/10
(비교(diff))
| 다음 »
이름없음, 2021/06/07 04:32
GetTickets¶
- 티켓 목록을 조회합니다.
TicketListRequest (param)
field | type | description | note |
did | String | ||
command | String | ||
lowerBound | String | ||
upperBound | String | ||
index | String |
TicketListResponse
field | type | description | note |
command | String | ||
tickets | List<Ticket> |
Ticket
field | type | description | note |
status | int | ||
ticketId | String | ||
expiredAt | String | ||
createdAt | String | ||
updatedAt | String | ||
proposal | Proposal |
Proposal
field | type | description | note |
command | String | ||
status | int | ||
purpose | int | ||
maxIssuable | int | ||
category | int[] | ||
disAllowMultiIssue | boolean | ||
condition | String | ||
content | String | ||
createdAt | String | ||
revokedAt | String | ||
updatedAt | String | ||
deposit | String | ||
duration | String | ||
filter | String | ||
notAfter | String | ||
notBefore | String | ||
owner | String | ||
proposalId | String | ||
ticketValidFrom | String | ||
description | String[] | ||
imageurl | String[] | ||
consumePolicy | ProposalConsumePolicy | ||
rewardPolicy | ProposalRewardPolicy |
ProposalConsumePolicy
field | type | description | note |
type | int | 소모 유형 | |
count | int | 소모 허용 횟수 | |
maxDataCount | int | consume시 최대 데이터 소모 수 | optional |
period | String | 소모 주기 | optional |
ProposalRewardPolicy
field | type | description |
type | int | 지급 유형 |
amount | int | 티켓의 지급 가능 총량 |
Request Example
query {
getTickets (param: {
did: "G5rw9qAMbozGxySHkMaztD"
command: "listTicket"
index: "Owner"
lowerBound: "G5rw9qAMbozGxySHkMaztD"
upperBound: "G5rw9qAMbozGxySHkMaztD"
}) {
tickets {
status
ticketId
proposal {
status
owner
proposalId
}
}
}
}
Response Example
{
"data": {
"getTickets": {
"tickets": [
{
"status": 2,
"ticketId": "orPxmv15e2oSPuvTht3g8Q2jaqpYpfriSdGcJiuf5TvGgnXai9eyz3YRQ27FBq3gHwuKECqMKJktncAQykcTYZjVaxKQ26wSVwSFSsoRqojdcbNxA",
"proposal": {
"status": 0,
"owner": "CukJeA3C31aA5bdFTyxYRr",
"proposalId": "orPxmv15e2oSPufT3Tm5AyVSfnTRnnMhUyCvfziPVa73yiPCvyMAUamcSGPRH981rNPtaMF7j6BdGWJLPYMQCGThqrobeYYQmhjPYvmgwFmUteoyt"
}
},
{
"status": 0,
"ticketId": "orPxmv15e2oSPuvTht4CGvFMaWgatRwBgKNuudBzi1Cm9XdEt4pavQBC7ZBgUukEchULxGe2vH7iQRxconRqChCiLE4DhyonxE5WaT4iXs666mbnR",
"proposal": {
"status": 0,
"owner": "NfoPEFaG1adkCpijR85L66",
"proposalId": "orPxmv15e2oSPufT3TkbTk9zkvXpo25uKkfcuW3xg9dXXTCBokDdgg7x5Cr6ebk9fDrrpVKWFNHY5Jg9ZEqAFpbHKXKaX3rQfUQBPKN36C9U31x1c"
}
}
]
}
}
}
필드 관련하여 자세한 내용은 아래 URL 참고
이름없음이(가) 약 4년 전에 변경 · 6 revisions