Actions
Specification » History » Revision 3
« Previous |
Revision 3/7
(diff)
| Next »
Soh Keong, 04/10/2023 04:33 PM
- Table of contents
- Specification
Specification¶
Programming Guide¶
Jar version¶
version | Description |
---|---|
1.0 | Init |
Jar File Download¶
Controller
Ginota
Mocean
Properties
properties file¶
- messageControl.properties
- message.provider - 1(Ginota), 2(Mocean)
- otp.length - 4/6
- otp.valid.in.second - 60 ~ 3600 seconds
MessageService¶
message.controller.service.MessageService service = new message.controller.service.MessageService();
sendOtp¶
message.controller.bean.ResponseBean resultBean = service.sendOtp(Connection conn, message.controller.bean.RequestOTPBean bean);
- conn - Database connection.
- bean - RequestOTPBean object.
- shopperRefNo
- otpId - Auto setter
- transactionCode
- mobileTo
- companyName - message.controller.constant.CommonConstant.COMPANY_NAME_*
- projectName - COSWAY/eCosway/eCos2/Aces
- *resultBean * - ResponseBean object.
- statusCode - 0(Success)
- statucDescription
- otpId - return this value when verify OTP.
- serviceProvider - return this value when verify OTP.
- requestId
- messageId
verifyPin¶
message.controller.bean.ResponseBean resultBean = service.verifyPin(Connection conn, message.controller.bean.VerifyOtpBean verifyBean)
- conn - Database connection.
- verifyBean - VerifyOtpBean object.
- pin
- orderId - For recording purpose
- companyName - com.cosway.ginota.constant.CommonConstant.COMPANY_NAME_*
- otpId - From Request Pin's resultBean
- serviceProvider - From Request Pin's resultBean
- *resultBean * - ResponseBean object.
- statusCode - 0(Success)
- statucDescription
- otpId
- serviceProvider
sendSms¶
message.controller.bean.ResponseBean resultBean = service.sendSms(Connection conn, message.controller.bean.RequestSmsBean smsBean)
- conn - Database connection.
- smsBean - SmsBean object.
- otpId - Auto setter
- transactionCode
- mobileTo
- companyName - com.cosway.ginota.constant.CommonConstant.COMPANY_NAME_*
- shopperRefNo
- mobileFrom
- content
- ResponseUrl - For Delivery status update. (Mocean)
- *resultBean * - ResponseBean object.
- statusCode - 0(Success)
- statucDescription
- otpId
- serviceProvider
- requestId
- messageId
- totalSms
Updated by Soh Keong over 1 year ago · 3 revisions