프로젝트

일반

사용자정보

RevokeCoupon » 이력 » 버전 2

이름없음, 2021/06/03 05:29

1 2 이름없음
h2(#wiki-id-StoreServerCouponResolver-revokeCoupon). *revokeCoupon*
2 1 이름없음
3
* 발행된 쿠폰 취소 
4
5
*CouponRevokeRequest*
6
7 2 이름없음
|_. field |_. type |_. description |_. note |
8
| command | String | Command 종류 |   |
9
| 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
| command | String | 응답에 대한 Command 종류 |   |
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
p(wiki-class-auto-cursor-target). *Request Example*
35
36 1 이름없음
<pre><code class="java">
37
query {
38
  getCouponRevoke(couponRevokeRequest : {
39 2 이름없음
    TransactionId : "BC20210419rI1iaxnlzzcuv5d" 
40
    command : "revokeCoupon" 
41
    goodsCode : "G00000220995" 
42 1 이름없음
    Amount : 950
43 2 이름없음
    did :"G5rw9qAMbozGxySHkMaztD" 
44 1 이름없음
  }) {
45
    refunded {
46
      amount
47
      dueTo
48
      expiresAt
49
      nounce
50
      owner
51
      spent
52
      type
53
      tokenId
54
      version
55
    }
56
  }
57
}
58
</code></pre>
59
60
*Response Example*
61
62
<pre><code class="java">
63
{
64
  "data": {
65
    "getCouponRevoke": {
66
      "refunded": [
67
        {
68
          "amount": 950,
69
          "dueTo": "use=refund:BC20210419rI1iaxnlzzcuv5d",
70
          "expiresAt": "__INFINITE__",
71
          "nounce": "0",
72
          "owner": "G5rw9qAMbozGxySHkMaztD",
73
          "spent": "false",
74
          "type": "bc.d.tok",
75
          "tokenId": "Gjk8x4CWuN9XcZeW3ivXNEQm47hJdd3QxaEqLDsnSdSpmtZv3CAk2UaMWeP8rMus1cH1oz7qHgrLXxWfHjZMghebDoSk8LkJXZkrZEzi9SzpKde3nkjN",
76 2 이름없음
          "version": "v0.4.2" 
77 1 이름없음
        }
78
      ]
79
    }
80
  }
81
}
82
</code></pre>
클립보드 이미지 추가 (최대 크기: 97.7 MB)