Subversion Repositories SmartDukaan

Rev

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

Rev 28900 Rev 28977
Line 16... Line 16...
16
	private int fofoId;
16
	private int fofoId;
17
	private PartnerStatusType partnerStatusType;
17
	private PartnerStatusType partnerStatusType;
18
	private ApplicableServiceType applicableType;
18
	private ApplicableServiceType applicableType;
19
	private boolean active;
19
	private boolean active;
20
	private int brandServiceId;
20
	private int brandServiceId;
-
 
21
	private String pbsNaComment;
-
 
22
	private String pbsPartnerStatusComment;
-
 
23
	
21
	private int serviceId;
24
	private int serviceId;
-
 
25
	
-
 
26
	
22
	private String brand;
27
	private String brand;
23
	private String name;
28
	private String name;
24
	private String code;
29
	private String code;
25
	private ApplicableServiceType serviceApplicableType;
30
	private ApplicableServiceType serviceApplicableType;
-
 
31
	
-
 
32
	private LocalDateTime  serviceCodeCreateTimestamp;
-
 
33
	private String psNaComment;
26
	private String fofoCode;
34
	private String fofoCode;
27
	private LocalDateTime createTimestamp;
35
	private LocalDateTime createTimestamp;
28
	private LocalDateTime deploymentDate;
36
	private LocalDateTime deploymentDate;
29
	private LocalDateTime payDate;
37
	private LocalDateTime payDate;
30
 
38
 
31
	private static final Logger LOGGER = LogManager.getLogger(FinanceServicesModel.class);
39
	private static final Logger LOGGER = LogManager.getLogger(FinanceServicesModel.class);
32
 
40
 
33
	static final List<String> paperFinanceServices = Arrays.asList("SAMSUNG SURE", "BAJAJ FINSERV", "HOME CREDIT",
41
	static final List<String> paperFinanceServices = Arrays.asList("SAMSUNG SURE", "BAJAJ FINSERV", "HOME CREDIT",
34
			"HDB", "CAPITAL FIRST");
42
			"HDB", "CAPITAL FIRST");
-
 
43
	
-
 
44
	
-
 
45
	
-
 
46
	public boolean getServiceStatusByCodeCreatedTimilines()   throws NullPointerException {
-
 
47
		
-
 
48
		LocalDateTime timelineDate = 	this.getServiceCodeCreateTimestamp().plusDays(7);
-
 
49
		LocalDateTime currDate = LocalDate.now().atStartOfDay();
-
 
50
		
-
 
51
		if (currDate.isBefore(timelineDate)) {
-
 
52
			LOGGER.info("timeLinesDate");
-
 
53
			return true;
-
 
54
		}
-
 
55
		
-
 
56
		return false;
-
 
57
	}
-
 
58
	
35
 
59
 
36
	public boolean getServiceStatusByCodeTimeStamp() throws NullPointerException {
60
	public boolean getServiceStatusByCodeTimeStamp() throws NullPointerException {
37
 
61
 
38
		LOGGER.info("thisName" + this.getName());
62
		LOGGER.info("thisName" + this.getName());
39
		LOGGER.info("fofoThis" + this.getFofoId());
63
		LOGGER.info("fofoThis" + this.getFofoId());
Line 255... Line 279...
255
	}
279
	}
256
 
280
 
257
	public static Logger getLogger() {
281
	public static Logger getLogger() {
258
		return LOGGER;
282
		return LOGGER;
259
	}
283
	}
-
 
284
	
-
 
285
	
-
 
286
	
-
 
287
 
-
 
288
	public String getPbsNaComment() {
-
 
289
		return pbsNaComment;
-
 
290
	}
-
 
291
 
-
 
292
 
-
 
293
	public void setPbsNaComment(String pbsNaComment) {
-
 
294
		this.pbsNaComment = pbsNaComment;
-
 
295
	}
-
 
296
 
-
 
297
 
-
 
298
	public String getPbsPartnerStatusComment() {
-
 
299
		return pbsPartnerStatusComment;
-
 
300
	}
-
 
301
 
-
 
302
 
-
 
303
	public void setPbsPartnerStatusComment(String pbsPartnerStatusComment) {
-
 
304
		this.pbsPartnerStatusComment = pbsPartnerStatusComment;
-
 
305
	}
-
 
306
 
-
 
307
 
-
 
308
	
-
 
309
	public String getPsNaComment() {
-
 
310
		return psNaComment;
-
 
311
	}
-
 
312
 
-
 
313
 
-
 
314
	public void setPsNaComment(String psNaComment) {
-
 
315
		this.psNaComment = psNaComment;
-
 
316
	}
-
 
317
 
-
 
318
 
-
 
319
	public LocalDateTime getServiceCodeCreateTimestamp() {
-
 
320
		return serviceCodeCreateTimestamp;
-
 
321
	}
-
 
322
 
-
 
323
	public void setServiceCodeCreateTimestamp(LocalDateTime serviceCodeCreateTimestamp) {
-
 
324
		this.serviceCodeCreateTimestamp = serviceCodeCreateTimestamp;
-
 
325
	}
-
 
326
 
-
 
327
	
260
 
328
 
261
	@Override
329
	@Override
262
	public String toString() {
330
	public String toString() {
263
		return "FinanceServicesModel [fofoId=" + fofoId + ", partnerStatusType=" + partnerStatusType
331
		return "FinanceServicesModel [fofoId=" + fofoId + ", partnerStatusType=" + partnerStatusType
264
				+ ", applicableType=" + applicableType + ", active=" + active + ", brandServiceId=" + brandServiceId
332
				+ ", applicableType=" + applicableType + ", active=" + active + ", brandServiceId=" + brandServiceId
-
 
333
				+ ", pbsNaComment=" + pbsNaComment + ", pbsPartnerStatusComment=" + pbsPartnerStatusComment
265
				+ ", serviceId=" + serviceId + ", brand=" + brand + ", name=" + name + ", code=" + code
334
				+ ", serviceId=" + serviceId + ", brand=" + brand + ", name=" + name + ", code=" + code
266
				+ ", serviceApplicableType=" + serviceApplicableType + ", fofoCode=" + fofoCode + ", createTimestamp="
335
				+ ", serviceApplicableType=" + serviceApplicableType + ", serviceCodeCreateTimestamp="
-
 
336
				+ serviceCodeCreateTimestamp + ", psNa_Comment=" + psNaComment + ", fofoCode=" + fofoCode
267
				+ createTimestamp + ", deploymentDate=" + deploymentDate + ", payDate=" + payDate + "]";
337
				+ ", createTimestamp=" + createTimestamp + ", deploymentDate=" + deploymentDate + ", payDate=" + payDate
-
 
338
				+ "]";
268
	}
339
	}
269
 
340
 
-
 
341
 
270
	public FinanceServicesModel(int fofoId, PartnerStatusType partnerStatusType, ApplicableServiceType applicableType,
342
	public FinanceServicesModel(int fofoId, PartnerStatusType partnerStatusType, ApplicableServiceType applicableType,
271
			boolean active, int brandServiceId, int serviceId, String brand, String name, String code,
343
			boolean active, int brandServiceId, String pbsNaComment, String pbsPartnerStatusComment, int serviceId,
-
 
344
			String brand, String name, String code, ApplicableServiceType serviceApplicableType,
272
			ApplicableServiceType serviceApplicableType, String fofoCode, LocalDateTime createTimestamp) {
345
			LocalDateTime serviceCodeCreateTimestamp, String psNa_Comment, String fofoCode,
-
 
346
			LocalDateTime createTimestamp) {
273
		super();
347
		super();
274
		this.fofoId = fofoId;
348
		this.fofoId = fofoId;
275
		this.partnerStatusType = partnerStatusType;
349
		this.partnerStatusType = partnerStatusType;
276
		this.applicableType = applicableType;
350
		this.applicableType = applicableType;
277
		this.active = active;
351
		this.active = active;
278
		this.brandServiceId = brandServiceId;
352
		this.brandServiceId = brandServiceId;
-
 
353
		this.pbsNaComment = pbsNaComment;
-
 
354
		this.pbsPartnerStatusComment = pbsPartnerStatusComment;
279
		this.serviceId = serviceId;
355
		this.serviceId = serviceId;
280
		this.brand = brand;
356
		this.brand = brand;
281
		this.name = name;
357
		this.name = name;
282
		this.code = code;
358
		this.code = code;
283
		this.serviceApplicableType = serviceApplicableType;
359
		this.serviceApplicableType = serviceApplicableType;
-
 
360
		this.serviceCodeCreateTimestamp = serviceCodeCreateTimestamp;
-
 
361
		this.psNaComment = psNa_Comment;
284
		this.fofoCode = fofoCode;
362
		this.fofoCode = fofoCode;
285
		this.createTimestamp = createTimestamp;
363
		this.createTimestamp = createTimestamp;
286
	}
364
	}
287
 
365
 
-
 
366
 
-
 
367
	
-
 
368
	
-
 
369
 
288
}
370
}
289
371