RevokeCoupon » 이력 » 개정판 9
개정판 8 (이름없음, 2021/06/10 05:31) → 개정판 9/10 (이름없음, 2021/06/10 06:11)
h2(#wiki-id-StoreServerCouponResolver-revokeCoupon). *RevokeCoupon*
* 발행된 쿠폰 취소합니다
<pre><code class="java">
revokeCoupon(
couponRevokeRequest: CouponRevokeRequest
): CouponRevokeResponse
</code></pre>
---
*CouponRevokeRequest*
|_. field |_. type |_. description |_. note |
| command | String | Command 종류 | 값: revokeCoupon |
| did | String | URL 요청 사용자 did | |
| TransactionId | String | 취소할 쿠폰Id | |
| goodsCode | String | 쿠폰에 대한 상품 코드 | |
| Amount | int | 쿠폰에 대한 상품 가격 | |
| test | Boolean | Test용 필드 | 필수 아님 |
*CouponRevokeResponse*
|_. field |_. type |_. description |_. note |
| refunded | List<CouponFund> | 취소된 쿠폰에 대한 정보 리스트 | |
| command | String | 응답에 대한 Command 종류 | 값: revokeCoupon |
p(wiki-class-auto-cursor-target). *CouponFund*
|_. field |_. type |_. description |_. note |
| amount | Int! | | |
| expiresAt | String | | |
| nounce | String | | |
| owner | String | | |
| spent | String | | |
| tokenid | string | | |
| version | String | | |
| type | String | | |
| dueTo | String | | |
---
p(wiki-class-auto-cursor-target). *Request Example*
<pre><code class="java">
query {
getCouponRevoke(couponRevokeRequest : {
TransactionId : "BC20210419rI1iaxnlzzcuv5d"
command : "revokeCoupon"
goodsCode : "G00000220995"
Amount : 950
did :"G5rw9qAMbozGxySHkMaztD"
}) {
refunded {
amount
dueTo
expiresAt
nounce
owner
spent
type
tokenId
version
}
}
}
</code></pre>
*Response Example*
<pre><code class="java">
{
"data": {
"getCouponRevoke": {
"refunded": [
{
"amount": 950,
"dueTo": "use=refund:BC20210419rI1iaxnlzzcuv5d",
"expiresAt": "__INFINITE__",
"nounce": "0",
"owner": "G5rw9qAMbozGxySHkMaztD",
"spent": "false",
"type": "bc.d.tok",
"tokenId": "Gjk8x4CWuN9XcZeW3ivXNEQm47hJdd3QxaEqLDsnSdSpmtZv3CAk2UaMWeP8rMus1cH1oz7qHgrLXxWfHjZMghebDoSk8LkJXZkrZEzi9SzpKde3nkjN",
"version": "v0.4.2"
}
]
}
}
}
</code></pre>