RevokeTicket » 이력 » 개정판 9
개정판 8 (이름없음, 2021/06/10 05:35) → 개정판 9/10 (이름없음, 2021/12/23 01:06)
h1. RevokeTicket * 티켓을 폐기합니다. --- <pre><code class="java"> revokeTicket( revokeProposal( param: TicketRevokeRequest ProposalRequest ): TicketRevokeResponse ProposalResponse </code></pre> *TicketRevokeRequest (param)* | *field* | *type* | *description* | *note* | | did | String | | | | command | String | | 값 : revokeTicket | | ticketId | String | | | | proposalId | String | | | *TicketResponse* | *field* | *type* | *description* | *note* | | command | String | | 값 : revokeTicket | | status | String | | | | ticketId | String | | | | expiredAt | String | | | | createdAt | String | | | | updatedAt | String | | | | revokedAt | String | | | | countConsumed | String | | | | owner | 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 | 티켓의 지급 가능 총량 | --- <pre><code> *Request Example* </code></pre> <pre><code class="java"> mutation { revokeTicket(param: revokeTicket (param: { did: "G5rw9qAMbozGxySHkMaztD" command: "revokeTicket" ticketId: "orPxmv15e2oSPuvTht43ZH62CYcsQYdof7GQusW1wZiEWKmGpUtz7HAv9NStGYpTGdRVEkMg5FksZP9bcyTa9g44JtZgCnRp9CNXsWKvpSDohbBiS" proposalId: "orPxmv15e2oSPufT3Tm4cNj77RbPJwFiuUhuYM4iSPRNQbgmvyAd84CNLvhzK1ur26STnQELEiLHjbPwagRv1Cgx6mSrannhbUwSdoAie7TH14AuS" "orPxmv15e2oSPuvTht4CkPi4bVmrC3Z2MGmt3jD89cHSUgn73ijgfNd6s7WRNjHz9oZcQA43E9mQpmSMVGPb2qPmy5oGPtPP3tYgKnnTDj6VJq7Zc" }) { createdAt expiredAt ticketId countConsumed status owner proposal { status proposalId revokedAt } } } </code></pre> *Response Example* <pre><code class="java"> { "data": { "revokeTicket": { "createdAt": "2021-12-22T18:31:30+09:00", "expiredAt": "2021-12-22T19:31:30+09:00", "ticketId": "orPxmv15e2oSPuvTht43ZH62CYcsQYdof7GQusW1wZiEWKmGpUtz7HAv9NStGYpTGdRVEkMg5FksZP9bcyTa9g44JtZgCnRp9CNXsWKvpSDohbBiS", "orPxmv15e2oSPuvTht4CkPi4bVmrC3Z2MGmt3jD89cHSUgn73ijgfNd6s7WRNjHz9oZcQA43E9mQpmSMVGPb2qPmy5oGPtPP3tYgKnnTDj6VJq7Zc", "countConsumed": 1, "status": 4, "owner": "G5rw9qAMbozGxySHkMaztD", "revokedAt": "2021-12-22T18:38:24+09:00" "proposal": { "status": 0, "proposalId": "orPxmv15e2oSPufT3TkfVmj9XSSnAqPzQirrU6A9yJCJovwkK6k89A1wCFwqWvHzNAvbDDypRgn4YeSVbeZDSS7MTRKEY1VCfypDu1wsFm41k22SK" } } } } </code></pre> --- *필드 관련하여 자세한 내용은 아래 URL 참고* * "UNO.Cranberry ChainCode":https://snplab.synology.me/confluence/display/CBU/Cranberry+Chaincode