| | |
| | | private final Long currentMonthOrderCount; |
| | | private final BigDecimal rating; |
| | | private final Integer autoDisableWhitelisted; |
| | | private final boolean premiumEnabled; |
| | | private final Integer status; |
| | | private final LocalDateTime createdAt; |
| | | |
| | |
| | | this.currentMonthOrderCount = user.getCurrentMonthOrderCount() == null ? 0L : user.getCurrentMonthOrderCount(); |
| | | this.rating = user.getRating() == null ? BigDecimal.ZERO : user.getRating(); |
| | | this.autoDisableWhitelisted = user.getAutoDisableWhitelisted() == null ? 0 : user.getAutoDisableWhitelisted(); |
| | | this.premiumEnabled = Integer.valueOf(1).equals(user.getPremiumEnabled()); |
| | | this.status = user.getStatus(); |
| | | this.createdAt = user.getCreatedAt(); |
| | | } |
| | |
| | | public Long getCurrentMonthOrderCount() { return currentMonthOrderCount; } |
| | | public BigDecimal getRating() { return rating; } |
| | | public Integer getAutoDisableWhitelisted() { return autoDisableWhitelisted; } |
| | | public boolean isPremiumEnabled() { return premiumEnabled; } |
| | | public Integer getStatus() { return status; } |
| | | public LocalDateTime getCreatedAt() { return createdAt; } |
| | | } |