Subversion Repositories SmartDukaan

Rev

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

Rev 29839 Rev 30651
Line 1... Line 1...
1
package com.spice.profitmandi.dao.model;
1
package com.spice.profitmandi.dao.model;
2
 
2
 
3
import java.time.LocalDateTime;
-
 
4
import java.util.List;
-
 
5
 
-
 
6
import org.apache.logging.log4j.LogManager;
3
import com.spice.profitmandi.common.util.FormattingUtils;
7
import org.apache.logging.log4j.Logger;
-
 
8
 
-
 
9
import com.spice.profitmandi.dao.enumuration.catalog.AchievementType;
4
import com.spice.profitmandi.dao.enumuration.catalog.AchievementType;
10
import com.spice.profitmandi.dao.enumuration.catalog.AmountType;
5
import com.spice.profitmandi.dao.enumuration.catalog.AmountType;
11
import com.spice.profitmandi.dao.enumuration.catalog.OfferSchemeType;
6
import com.spice.profitmandi.dao.enumuration.catalog.OfferSchemeType;
12
import com.spice.profitmandi.service.offers.ItemCriteria;
7
import com.spice.profitmandi.service.offers.ItemCriteria;
13
import com.spice.profitmandi.service.offers.PartnerCriteria;
8
import com.spice.profitmandi.service.offers.PartnerCriteria;
14
import com.spice.profitmandi.service.offers.PayoutSlab;
9
import com.spice.profitmandi.service.offers.PayoutSlab;
-
 
10
import org.apache.logging.log4j.LogManager;
-
 
11
import org.apache.logging.log4j.Logger;
-
 
12
 
-
 
13
import java.time.LocalDateTime;
-
 
14
import java.util.List;
15
 
15
 
16
public class CreateOfferRequest {
16
public class CreateOfferRequest {
17
	private int id;
17
	private int id;
18
	private boolean active;
18
	private boolean active;
19
	private boolean baseCriteria;
19
	private boolean baseCriteria;
Line 288... Line 288...
288
 
288
 
289
	public AchievementType getTargetType() {
289
	public AchievementType getTargetType() {
290
		return targetType;
290
		return targetType;
291
	}
291
	}
292
 
292
 
-
 
293
	public String getTitle() {
-
 
294
		return String.join(" ", this.getName(), ", ", "From", FormattingUtils.formatDate(this.startDate), "to", FormattingUtils.formatDate(this.endDate), String.valueOf(this.id));
-
 
295
	}
-
 
296
 
-
 
297
	public String getDescription() {
-
 
298
		return String.join(" ", this.getName() + ",", "From", FormattingUtils.formatDate(this.startDate), "to", FormattingUtils.formatDate(this.endDate));
-
 
299
	}
-
 
300
 
293
	public void setTargetType(AchievementType targetType) {
301
	public void setTargetType(AchievementType targetType) {
294
		this.targetType = targetType;
302
		this.targetType = targetType;
295
	}
303
	}
296
 
304
 
297
	@Override
305
	@Override