Specification » History » Version 1
Soh Keong, 01/06/2021 05:20 PM
1 | 1 | Soh Keong | {{toc}} |
---|---|---|---|
2 | |||
3 | h1. Specification |
||
4 | |||
5 | h1. Activity Diagram |
||
6 | !Ginota.png! |
||
7 | |||
8 | h2. Programming Guide |
||
9 | |||
10 | h3. Jar version |
||
11 | |||
12 | |_. version |_. Description | |
||
13 | | 1.0 | Init | |
||
14 | |||
15 | h3. Jar File Download |
||
16 | |||
17 | "Jar":/redmine/attachments/download/560/mitake-1.0.jar |
||
18 | "Properties":/redmine/attachments/download/561/mitake.properties |
||
19 | |||
20 | h3. properties file |
||
21 | |||
22 | * *mitake.properties* |
||
23 | |||
24 | # *mitake.api.username* |
||
25 | # *mitake.api.password* |
||
26 | # *mitake.api.charset* |
||
27 | # *mitake.max.bulk.sms.count* |
||
28 | # *url.send.sms.single* |
||
29 | # *url.send.sms.bulk* |
||
30 | # *sms.response.url.ac.tw* |
||
31 | # *connection.timeout* |
||
32 | # *connection.read.timeout* |
||
33 | |||
34 | h2. Database Table |
||
35 | |||
36 | <pre> |
||
37 | CREATE TABLE MITAKE_INTERFACE ( |
||
38 | SMS_ID VARCHAR(15) NOT NULL, |
||
39 | MOBILE VARCHAR(15) NOT NULL, |
||
40 | TRX_CODE VARCHAR(5) NOT NULL, |
||
41 | STATUS_CODE VARCHAR(5), |
||
42 | SHOPPER_REF_NO INTEGER, |
||
43 | STATUS_DESC VARCHAR(100), |
||
44 | MESSAGE_ID VARCHAR(20), |
||
45 | CREATE_DATETIME TIMESTAMP WITH DEFAULT CURRENT TIMESTAMP, |
||
46 | MODIFY_DATETIME TIMESTAMP, |
||
47 | ORDER_ID VARCHAR(15), |
||
48 | PRIMARY KEY (SMS_ID)) |
||
49 | </pre> |
||
50 | |||
51 | h2. OTP Service |
||
52 | |||
53 | <pre> |
||
54 | com.mitake.service.MitakeService service = new com.mitake.service.MitakeService(); |
||
55 | </pre> |
||
56 | |||
57 | h3. sendOTP |
||
58 | |||
59 | <pre> |
||
60 | com.mitake.bean.SmsResponseBean result = service.sendSingleSms(Connection conn, com.mitake.bean.SmsRequestBean smsBean) |
||
61 | </pre> |
||
62 | |||
63 | # *conn* - Database connection. |
||
64 | # *smsBean* - SmsRequestBean object. |
||
65 | > * *clientId* |
||
66 | > * *mobileNo* |
||
67 | > * *transactionCode* |
||
68 | > * *memberName* |
||
69 | > * *shopperRefNo* |
||
70 | > * *content* |
||
71 | > * *projectName* - com.mitake.constant.CommonConstant.PROJECT_NAME_ACES_TAIWAN |
||
72 | |||
73 | # *result* - SmsResponseBean object. |
||
74 | > * *clientId* |
||
75 | > * *messageId* |
||
76 | > * *statusCode* - com.mitake.constant.CommonConstant.ERROR_CODE_* |
||
77 | > * *StatusDescription* |
||
78 | > * *duplicate* |