프로젝트

일반

사용자정보

RevokeCoupon » 이력 » 개정판 2

개정판 1 (이름없음, 2021/06/03 02:46) → 개정판 2/10 (이름없음, 2021/06/03 05:29)

h2(#wiki-id-StoreServerCouponResolver-revokeCoupon). h2(#StoreServerCouponResolver-revokeCoupon). *revokeCoupon* 

 * 발행된 쿠폰 취소  

 *CouponRevokeRequest* 

 |_. field 
  |_. type 
  |_. note 
  |_. description |_. note 
  | 
 | command | String |   | Command 종류 |   | 
 | did | String |   | URL 요청 사용자 did |   | 
 | TransactionId | String |   | 취소할 쿠폰Id |   | 
 | goodsCode | String |   | 쿠폰에 대한 상품 코드 |   | 
 | Amount | int |   | 쿠폰에 대한 상품 가격 |   | 
 | test | Boolean | 필수 아님 | Test용 필드 | 필수 아님 | 

 *CouponRevokeResponse* 

 |_. field 
  |_. type 
  |_. note 
  |_. description |_. note 
  | 
 | refunded | List<CouponFund> | CouponFund - 취소된 쿠폰 상세정보(필드는 스키마 참고) | 취소된 쿠폰에 대한 정보 리스트 |   | 
 | command | String |   | 응답에 대한 Command 종류 |   | 

 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). p(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>
클립보드 이미지 추가 (최대 크기: 97.7 MB)