RevokeTicket » 이력 » 버전 7
이름없음, 2021/06/10 05:18
1 | 1 | 이름없음 | h1. RevokeTicket |
---|---|---|---|
2 | 2 | 이름없음 | |
3 | 5 | 이름없음 | * 티켓을 폐기합니다. |
4 | 2 | 이름없음 | |
5 | 5 | 이름없음 | *TicketRevokeRequest (param)* |
6 | 2 | 이름없음 | |
7 | | *field* | *type* | *description* | *note* | |
||
8 | | did | String | | | |
||
9 | 7 | 이름없음 | | command | String | | 값 : revokeTicket | |
10 | 2 | 이름없음 | | ticketId | String | | | |
11 | |||
12 | *TicketResponse* |
||
13 | |||
14 | | *field* | *type* | *description* | *note* | |
||
15 | 7 | 이름없음 | | command | String | | 값 : revokeTicket | |
16 | 6 | 이름없음 | | status | String | | | |
17 | 1 | 이름없음 | | ticketId | String | | | |
18 | 6 | 이름없음 | | expiredAt | String | | | |
19 | | createdAt | String | | | |
||
20 | | updatedAt | String | | | |
||
21 | | proposal | Proposal | | | |
||
22 | 1 | 이름없음 | |
23 | 6 | 이름없음 | *Proposal* |
24 | |||
25 | | *field* | *type* | *description* | *note* | |
||
26 | | command | String | | | |
||
27 | | status | int | | | |
||
28 | | purpose | int | | | |
||
29 | | maxIssuable | int | | | |
||
30 | | category | int[] | | | |
||
31 | | disAllowMultiIssue | boolean | | | |
||
32 | | condition | String | | | |
||
33 | | content | String | | | |
||
34 | | createdAt | String | | | |
||
35 | | revokedAt | String | | | |
||
36 | | updatedAt | String | | | |
||
37 | | deposit | String | | | |
||
38 | | duration | String | | | |
||
39 | | filter | String | | | |
||
40 | | notAfter | String | | | |
||
41 | | notBefore | String | | | |
||
42 | | owner | String | | | |
||
43 | | proposalId | String | | | |
||
44 | | ticketValidFrom | String | | | |
||
45 | | description | String[] | | | |
||
46 | | imageurl | String[] | | | |
||
47 | | consumePolicy | ProposalConsumePolicy | | | |
||
48 | | rewardPolicy | ProposalRewardPolicy | | | |
||
49 | |||
50 | *ProposalConsumePolicy* |
||
51 | |||
52 | | *field* | *type* | *description* | *note* | |
||
53 | | type | int | 소모 유형 | | |
||
54 | | count | int | 소모 허용 횟수 | | |
||
55 | | maxDataCount | int | consume시 최대 데이터 소모 수 | optional | |
||
56 | | period | String | 소모 주기 | optional | |
||
57 | |||
58 | *ProposalRewardPolicy* |
||
59 | |||
60 | | *field* | *type* | *description* | |
||
61 | | type | int | 지급 유형 | |
||
62 | | amount | int | 티켓의 지급 가능 총량 | |
||
63 | |||
64 | 1 | 이름없음 | --- |
65 | |||
66 | 7 | 이름없음 | <pre><code> |
67 | *Request Example* |
||
68 | </code></pre> |
||
69 | 2 | 이름없음 | |
70 | <pre><code class="java"> |
||
71 | mutation { |
||
72 | revokeTicket (param: { |
||
73 | 3 | 이름없음 | did: "G5rw9qAMbozGxySHkMaztD" |
74 | command: "revokeTicket" |
||
75 | ticketId: "orPxmv15e2oSPuvTht4CkPi4bVmrC3Z2MGmt3jD89cHSUgn73ijgfNd6s7WRNjHz9oZcQA43E9mQpmSMVGPb2qPmy5oGPtPP3tYgKnnTDj6VJq7Zc" |
||
76 | 2 | 이름없음 | }) { |
77 | ticketId |
||
78 | status |
||
79 | proposal { |
||
80 | status |
||
81 | proposalId |
||
82 | } |
||
83 | } |
||
84 | } |
||
85 | </code></pre> |
||
86 | |||
87 | *Response Example* |
||
88 | |||
89 | <pre><code class="java"> |
||
90 | { |
||
91 | "data": { |
||
92 | "revokeTicket": { |
||
93 | "ticketId": "orPxmv15e2oSPuvTht4CkPi4bVmrC3Z2MGmt3jD89cHSUgn73ijgfNd6s7WRNjHz9oZcQA43E9mQpmSMVGPb2qPmy5oGPtPP3tYgKnnTDj6VJq7Zc", |
||
94 | "status": 4, |
||
95 | "proposal": { |
||
96 | "status": 0, |
||
97 | 3 | 이름없음 | "proposalId": "orPxmv15e2oSPufT3TkfVmj9XSSnAqPzQirrU6A9yJCJovwkK6k89A1wCFwqWvHzNAvbDDypRgn4YeSVbeZDSS7MTRKEY1VCfypDu1wsFm41k22SK" |
98 | 2 | 이름없음 | } |
99 | } |
||
100 | } |
||
101 | } |
||
102 | </code></pre> |
||
103 | 4 | 이름없음 | |
104 | --- |
||
105 | |||
106 | *필드 관련하여 자세한 내용은 아래 URL 참고* |
||
107 | |||
108 | * "UNO.Cranberry ChainCode":https://snplab.synology.me/confluence/display/CBU/Cranberry+Chaincode |