Subversion Repositories SmartDukaan

Rev

Rev 29064 | Rev 29100 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 29064 Rev 29067
Line 43... Line 43...
43
	static final List<String> paperFinanceServices = Arrays.asList("SAMSUNG SURE", "BAJAJ FINSERV", "HOME CREDIT",
43
	static final List<String> paperFinanceServices = Arrays.asList("SAMSUNG SURE", "BAJAJ FINSERV", "HOME CREDIT",
44
			"HDB", "CAPITAL FIRST");
44
			"HDB", "CAPITAL FIRST");
45
 
45
 
46
	public boolean getServiceStatusByCodeCreatedTimilines() throws NullPointerException {
46
	public boolean getServiceStatusByCodeCreatedTimilines() throws NullPointerException {
47
 
47
 
-
 
48
		
48
		LocalDateTime timelineDate = this.getServiceCodeCreateTimestamp().plusDays(7);
49
		LocalDateTime timelineDate = this.getServiceCodeCreateTimestamp().plusDays(7);
49
		LocalDateTime currDate = LocalDate.now().atStartOfDay();
50
		LocalDateTime currDate = LocalDate.now().atStartOfDay();
50
 
51
 
51
		if (currDate.isBefore(timelineDate)) {
52
		if (currDate.isBefore(timelineDate)) {
52
			LOGGER.info("timeLinesDate");
53
			LOGGER.info("timeLinesDate");
Line 58... Line 59...
58
 
59
 
59
	public boolean getServiceStatusByCodeTimeStamp() throws NullPointerException {
60
	public boolean getServiceStatusByCodeTimeStamp() throws NullPointerException {
60
 
61
 
61
		LOGGER.info("thisName" + this.getName());
62
		LOGGER.info("thisName" + this.getName());
62
		LOGGER.info("fofoThis" + this.getFofoId());
63
		LOGGER.info("fofoThis" + this.getFofoId());
-
 
64
		
-
 
65
		if(this.getName() != null) {
-
 
66
	
-
 
67
		if (this.getName().equals("PAYTM") && this.getCreateTimestamp() != null ) {
63
 
68
 
64
		if (this.getName().equals("PAYTM") && this.getCreateTimestamp() != null) {
-
 
65
 
69
			
66
			LocalDateTime paytmTime = this.getCreateTimestamp().plusDays(5);
70
			LocalDateTime paytmTime = this.getCreateTimestamp().plusDays(5);
67
			LocalDateTime currDate = LocalDate.now().atStartOfDay();
71
			LocalDateTime currDate = LocalDate.now().atStartOfDay();
68
 
72
 
69
			if (currDate.isBefore(paytmTime)) {
73
			if (currDate.isBefore(paytmTime)) {
70
				LOGGER.info("PAYTMTrue");
74
				LOGGER.info("PAYTMTrue");
Line 75... Line 79...
75
 
79
 
76
		else if (this.getName().equals("PINELABS") && this.getCreateTimestamp() != null)
80
		else if (this.getName().equals("PINELABS") && this.getCreateTimestamp() != null)
77
 
81
 
78
		{
82
		{
79
 
83
 
80
			LOGGER.info("PINELABS");
84
			
81
			LocalDateTime pinlabsTime = this.getCreateTimestamp().plusDays(10);
85
			LocalDateTime pinlabsTime = this.getCreateTimestamp().plusDays(10);
82
 
86
 
83
			LocalDateTime currDate = LocalDate.now().atStartOfDay();
87
			LocalDateTime currDate = LocalDate.now().atStartOfDay();
84
 
88
 
85
			if (currDate.isBefore(pinlabsTime)) {
89
			if (currDate.isBefore(pinlabsTime)) {
Line 162... Line 166...
162
					}
166
					}
163
				}
167
				}
164
			}
168
			}
165
 
169
 
166
		}
170
		}
-
 
171
	}
167
 
172
 
168
		return true;
173
		return true;
169
	}
174
	}
170
 
175
 
171
	public int getFofoId() {
176
	public int getFofoId() {