프로젝트

일반

사용자정보

RevokeTicket » 이력 » 버전 10

이름없음, 2022/02/21 05:24

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