프로젝트

일반

사용자정보

RevokeCoupon » 이력 » 버전 6

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

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