Project

General

Profile

Specification » History » Version 1

Soh Keong, 07/29/2021 02:23 PM

1 1 Soh Keong
{{toc}}
2
3
h1. Specification
4
5
h1. Programming Guide
6
7
h3. Jar version 
8
9
|_. version |_. Description  |
10
| 1.0       | Init           |
11
12
h3. Jar File Download
13
14
"Jar":
15
"Properties":
16
17
h3. properties file
18
19
* *service.properties*
20
21
# *json.url*                - Dotnet team URL
22
# *json.key*                - provided by json
23
# *connection.timeout*      - set connection timeout
24
# *connection.read.timeout* - set connection read timeout
25
26
h2. Methods
27
28
h3. Common Instance
29
30
<pre>
31
com.vouchertw.service.VoucherService service = new com.vouchertw.service.VoucherService();
32
</pre>
33
34
35
h3. addVoucher
36
37
<pre>
38
com.vouchertw.bean.ResponseBean result = service.addVoucher(VoucherTransactionBean bean);
39
</pre>
40
41
* *com.vouchertw.bean.VoucherTransactionBean*
42
> * *stockistId*   - String
43
> * *memberId*     - String
44
> * *countryId*    - String
45
> * *orderId*      - String
46
> * *orderDate*    - java.time.LocalDate
47
> * *voucherSet*   - Set<VoucherBean>
48
>> * *voucherCode*   - String
49
>> * *startDate*     - java.time.LocalDate
50
>> * *expiryDate*    - java.time.LocalDate
51
>> * *amount*        - double
52
>> * *point*         - int
53
>> * *voucherName*   - String
54
>> * *promoCode*     - String
55
>> * *token*         - System auto assign