프로젝트

일반

사용자정보

RevokeCoupon » 이력 » 버전 5

이름없음, 2021/06/10 04:59

1 4 이름없음
h2(#wiki-id-StoreServerCouponResolver-revokeCoupon). *RevokeCoupon*
2 1 이름없음
3
* 발행된 쿠폰 취소 
4
5
*CouponRevokeRequest*
6
7 2 이름없음
|_. field |_. type |_. description |_. note |
8 5 이름없음
| command | String | Command 종류 | 값: revokeCoupon |
9 2 이름없음
| did | String | URL 요청 사용자 did |   |
10
| TransactionId | String | 취소할 쿠폰Id |   |
11
| goodsCode | String | 쿠폰에 대한 상품 코드 |   |
12
| Amount | int | 쿠폰에 대한 상품 가격 |   |
13
| test | Boolean | Test용 필드 | 필수 아님 |
14 1 이름없음
15
*CouponRevokeResponse*
16
17 2 이름없음
|_. field |_. type |_. description |_. note |
18
| refunded | List<CouponFund> | 취소된 쿠폰에 대한 정보 리스트 |   |
19 5 이름없음
| command | String | 응답에 대한 Command 종류 | 값: revokeCoupon |
20 1 이름없음
21 2 이름없음
p(wiki-class-auto-cursor-target). *CouponFund*
22 1 이름없음
23 2 이름없음
|_. field |_. type |_. description |_. note |
24
| amount | Int! |   |   |
25
| expiresAt | String |   |   |
26
| nounce | String |   |   |
27
| owner | String |   |   |
28
| spent | String |   |   |
29
| tokenid | string |   |   |
30
| version | String |   |   |
31
| type | String |   |   |
32
| dueTo | String |   |   |
33
34 3 이름없음
---
35
36 2 이름없음
p(wiki-class-auto-cursor-target). *Request Example*
37
38 1 이름없음
<pre><code class="java">
39
query {
40
  getCouponRevoke(couponRevokeRequest : {
41 2 이름없음
    TransactionId : "BC20210419rI1iaxnlzzcuv5d" 
42
    command : "revokeCoupon" 
43
    goodsCode : "G00000220995" 
44 1 이름없음
    Amount : 950
45 2 이름없음
    did :"G5rw9qAMbozGxySHkMaztD" 
46 1 이름없음
  }) {
47
    refunded {
48
      amount
49
      dueTo
50
      expiresAt
51
      nounce
52
      owner
53
      spent
54
      type
55
      tokenId
56
      version
57
    }
58
  }
59
}
60
</code></pre>
61
62
*Response Example*
63
64
<pre><code class="java">
65
{
66
  "data": {
67
    "getCouponRevoke": {
68
      "refunded": [
69
        {
70
          "amount": 950,
71
          "dueTo": "use=refund:BC20210419rI1iaxnlzzcuv5d",
72
          "expiresAt": "__INFINITE__",
73
          "nounce": "0",
74
          "owner": "G5rw9qAMbozGxySHkMaztD",
75
          "spent": "false",
76
          "type": "bc.d.tok",
77
          "tokenId": "Gjk8x4CWuN9XcZeW3ivXNEQm47hJdd3QxaEqLDsnSdSpmtZv3CAk2UaMWeP8rMus1cH1oz7qHgrLXxWfHjZMghebDoSk8LkJXZkrZEzi9SzpKde3nkjN",
78 2 이름없음
          "version": "v0.4.2" 
79 1 이름없음
        }
80
      ]
81
    }
82
  }
83
}
84
</code></pre>
클립보드 이미지 추가 (최대 크기: 97.7 MB)