프로젝트

일반

사용자정보

IssueCoupon » 이력 » 버전 10

이름없음, 2021/06/10 06:15

1 10 이름없음
h1(#wiki-id-StoreServerCouponResolver-issueCoupon). *IssueCoupon*
2 1 이름없음
3 8 이름없음
* 원하는 상품을 구매하기 위해 필요한 쿠폰을 발급합니다
4 1 이름없음
5 6 이름없음
<pre><code class="java">
6
issueCoupon(
7
couponIssueRequest: CouponIssueRequest
8
): CouponIssueResponse
9
</code></pre>
10
11 9 이름없음
---
12
13 1 이름없음
*CouponIssueRequest 파라미터*
14
15 2 이름없음
|_. field |_. type |_. description |_. note |
16 5 이름없음
| command | String | Command 종류 | 값: issueCoupon |
17 2 이름없음
| did | String | URL 요청하는 사용자 did |   |
18
| goodsCode | String | 사려는 상품 코드 |   |
19
| Amount | int | 상품 가격 |   |
20
| Input | String[] | Reword의 TokenId |   |
21
| test | Boolean | Test용 필드 | 필수 아님 |
22 1 이름없음
23 2 이름없음
p(wiki-class-auto-cursor-target). *CouponIssueResponse 파라미터*
24 1 이름없음
25 3 이름없음
|_. field |_. type |_. description |_. note |
26
| orderNo | String | 쿠폰 주문 번호 - kt에서 전달해주는 값 |   |
27
| pinNo | String | 쿠폰 핀 번호 - kt에서 전달해주는 값 |   |
28
| couponImgUrl | String | 쿠폰 이미지 URL |   |
29
| transactionId | String | 쿠폰Id  |   |
30 5 이름없음
| command | String | 응답 Command 종류 | 값: issueCoupon |
31 3 이름없음
32
---
33 1 이름없음
34 2 이름없음
p(wiki-class-auto-cursor-target). *Request Example*
35 1 이름없음
36
<pre><code class="java">
37
query {
38
  getCouponIssue(couponIssueRequest : {
39
    Input : ["Gjk8x4CWuN9XcZeW3ivXNDxCSZF211t2Ew2iYVnvCo2JyrkmhbT7pV5P3a2jFFZBrJafXkDTxFoXL3QH7VHgvXBSVKRHZwjpjxYqZKxmdu9gCmjQNkoe"]
40
    Amount : 950
41 2 이름없음
    goodsCode : "G00000220995" 
42
    did : "G5rw9qAMbozGxySHkMaztD" 
43
    command : "issueCoupon" 
44 1 이름없음
  }) {
45
    command
46
    couponImgUrl
47
    orderNo
48
    tokenId
49
    transactionId
50
    pinNo
51
  }
52
}
53
</code></pre>
54
55
*Response Example*
56
57
<pre><code class="java">
58
{
59
  "data": {
60
    "getCouponIssue": {
61
      "command": "issueCoupon",
62
      "couponImgUrl": "https://imgs.giftishow.co.kr/Resource2/mms/20210419/17/mms_1e683e3c8290cbafc62a4fd68bba8c0a_01.jpg",
63
      "orderNo": "20210419632599",
64
      "tokenId": [
65 2 이름없음
        "Gjk8x4CWuN9XcZeW3ivXNERLSXXP6hxauXw94xCKs8UdXrausaHXXXxzrmvUSHWTgy1ACKv4sBTTr3JdYVkw2S6MiKadNNJ4GaJ1cUf3wFGPuEif514s" 
66 1 이름없음
      ],
67
      "transactionId": "BC20210419rI1iaxnlzzcuv5d",
68 2 이름없음
      "pinNo": "998532721558" 
69 1 이름없음
    }
70
  }
71
}
72
</code></pre>
클립보드 이미지 추가 (최대 크기: 97.7 MB)