프로젝트

일반

사용자정보

RevokeTicket » 이력 » 버전 8

이름없음, 2021/06/10 05:35

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