프로젝트

일반

사용자정보

RevokeCoupon » 이력 » 버전 7

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

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