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