Subversion Repositories SmartDukaan

Rev

Hide changed files | Details | Compare with Previous | Blame | RSS feed

Filtering Options

Rev Age Author Path Log message Diff Changes
37194 67 d 16 h aman /trunk/ LOI OTP: report real send outcome instead of always 'OTP Sent Successfully!'

The Send OTP button showed success for any HTTP 200, including the daily-cap
failure where the controller returned 'Something went wrong..'. Ops could not
tell a working send from a broken one, so genuine failures were invisible.

- OTPResponse: add 'sent' flag. result=true did not mean anything was
dispatched - the 2-minute resend throttle returns the previous OTP without
contacting the gateway.
- OtpProcessor: set sent=true only on branches that actually dispatch.
- LoiFormController.sentLoiAcceptanceOtp: return {status, sent, message} with
the processor's real reason, wrap generateOtp in try/catch so a dispatch
exception is logged and reported instead of surfacing as a generic 500, and
log loiId/result/sent/reason.
- loi-form.js: check the payload; distinct green/amber/red states, re-enable
the button on failure instead of leaving it stuck on 'Sending...'.
- common.js: optional error callback on doAjaxRequestHandler /
doPostAjaxRequestHandler (additive; existing callers unchanged).
- AppConfig: static resource version 389 -> 390 for the JS change.
 
/trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/dao/service/OTPResponse.java
/trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/dao/service/OtpProcessor.java
/trunk/profitmandi-fofo/src/main/java/com/spice/profitmandi/web/config/AppConfig.java
/trunk/profitmandi-fofo/src/main/java/com/spice/profitmandi/web/controller/LoiFormController.java
/trunk/profitmandi-fofo/src/main/webapp/resources/js/common.js
/trunk/profitmandi-fofo/src/main/webapp/resources/js/loi-form.js
33510 829 d 12 h tejus.lohani /trunk/ these two file moved to dao(OTPResponse and OTPProcessor).  
/trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/dao/service/OTPResponse.java
/trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/dao/service/OtpProcessor.java
/trunk/profitmandi-web/src/main/java/com/spice/profitmandi/web/processor/OtpProcessor.java
/trunk/profitmandi-web/src/main/java/com/spice/profitmandi/web/res/OTPResponse.java
21734 3400 d 15 h ashik.ali /trunk/  
/trunk/profitmandi-web
/trunk/profitmandi-api
21730 3400 d 17 h ashik.ali /trunk/  
/trunk/profitmandi-api
/trunk/profitmandi-web
21300 3448 d 14 h kshitij.sood /trunk/profitmandi-web/src/main/java/com/spice/profitmandi/web/res/  
/trunk/profitmandi-web/src/main/java/com/spice/profitmandi/web/res/OTPResponse.java
21285 3450 d 12 h kshitij.sood /trunk/profitmandi-web/  
/trunk/profitmandi-web/src/main/java/com/spice/profitmandi/dao/convertor
/trunk/profitmandi-web/src/main/java/com/spice/profitmandi/dao/convertor/LocalDateAttributeConverter.java
/trunk/profitmandi-web/src/main/java/com/spice/profitmandi/dao/convertor/LocalDateTimeAttributeConverter.java
/trunk/profitmandi-web/src/main/java/com/spice/profitmandi/dao/entity/Otp.java
/trunk/profitmandi-web/src/main/java/com/spice/profitmandi/dao/enumuration/OtpType.java
/trunk/profitmandi-web/src/main/java/com/spice/profitmandi/dao/repository/OtpRepository.java
/trunk/profitmandi-web/src/main/java/com/spice/profitmandi/dao/repository/OtpRepositoryImpl.java
/trunk/profitmandi-web/src/main/java/com/spice/profitmandi/web/controller/OTPController.java
/trunk/profitmandi-web/src/main/java/com/spice/profitmandi/web/interceptor/SimpleCORSInterceptor.java
/trunk/profitmandi-web/src/main/java/com/spice/profitmandi/web/processor/OtpProcessor.java
/trunk/profitmandi-web/src/main/java/com/spice/profitmandi/web/res
/trunk/profitmandi-web/src/main/java/com/spice/profitmandi/web/res/OTPResponse.java
/trunk/profitmandi-web/src/main/java/com/spice/profitmandi/web/services
/trunk/profitmandi-web/src/main/java/com/spice/profitmandi/web/services/SolrService.java
/trunk/profitmandi-web/pom.xml
/trunk/profitmandi-web/src/main/java/com/spice/profitmandi/common/model/ProfitMandiConstants.java
/trunk/profitmandi-web/src/main/java/com/spice/profitmandi/common/util/StringUtils.java
/trunk/profitmandi-web/src/main/java/com/spice/profitmandi/dao/repository/UserRepositoryImpl.java
/trunk/profitmandi-web/src/main/java/com/spice/profitmandi/web/config/WebMVCConfig.java