Actions
Specification » History » Revision 3
« Previous |
Revision 3/10
(diff)
| Next »
Soh Keong, 01/06/2021 04:40 PM
- Table of contents
- Specification
- Activity Diagram
Specification¶
Activity Diagram
¶
Programming Guide¶
Jar version¶
version | Description |
---|---|
1.11 | Init |
Jar File Download¶
Jar
Lib
"Properties":redmine/attachments/download/557/ginota.properties
properties file¶
- ginota.properties
- ginota.api.key.{DB}.{country/project}
- ginota.api.secret.{DB}.{country/project}
- otp.validity.in.second.{DB}.{country/project}
- local.valid.period.in.second.{DB}.{country/project}
- url.send.otp
- url.verify.otp
- url.send.sms
- connection.timeout
- connection.read.timeout
Database Table¶
CREATE TABLE OTP_INTERFACE ( OTP_ID VARCHAR(15) NOT NULL, MOBILE VARCHAR(15) NOT NULL, TRX_CODE VARCHAR(5) NOT NULL, STATUS_CODE VARCHAR(5), SHOPPER_REF_NO INTEGER, STATUS_DESC VARCHAR(100), REQUEST_ID VARCHAR(20), TOTAL_SMS INTEGER, CREATE_DATETIME TIMESTAMP NOT NULL, MODIFY_DATETIME TIMESTAMP, ORDER_ID VARCHAR(15), PRIMARY KEY (OTP_ID))
OTP Service¶
com.cosway.ginota.service.OtpService service = new com.cosway.ginota.service.OtpService();
sendOTP¶
com.cosway.ginota.bean.ResultBean result = service.sendOTP(Connection conn, com.cosway.ginota.bean.OTPBean otpBean)
- conn - Database connection.
- otpBean - OTPBean object.
- shopperRefNo
- otpId - Auto setter
- transactionCode
- mobileTo
- companyName - com.cosway.ginota.constant.CommonConstant.COMPANY_NAME_*
- result - ResultBean object.
- statusCode
- otpId
- statucDescription
- requestId
- messageId
- totalSms
verifyPin¶
com.cosway.ginota.bean.ResultBean result = service.verifyPin(Connection conn, com.cosway.ginota.bean.VerifyBean verifyBean)
- conn - Database connection.
- verifyBean - VerifyBean object.
- pin
- companyName - com.cosway.ginota.constant.CommonConstant.COMPANY_NAME_*
- otpId
updateUsedPin¶
com.cosway.ginota.bean.ResultBean result = service.updateUsedPin(Connection conn, com.cosway.ginota.bean.UpdateSuccessBean updateBean)
- conn - Database connection.
- updateBean - UpdateSuccessBean object.
- otpId
- orderId
sendSms¶
com.cosway.ginota.bean.ResultBean result = service.sendSms(Connection conn, com.cosway.ginota.bean.SmsBean smsBean)
- conn - Database connection.
- smsBean - SmsBean object.
- otpId - Auto setter
- transactionCode
- mobileTo
- companyName - com.cosway.ginota.constant.CommonConstant.COMPANY_NAME_*
- shopperRefNo
- mobileFrom
- content
Updated by Soh Keong almost 4 years ago · 3 revisions