com.salesmanager.shop.model.customer.CustomerEntity Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sm-shop-model Show documentation
Show all versions of sm-shop-model Show documentation
sm-shop-model contains Shopizer model objects for api
The newest version!
package com.salesmanager.shop.model.customer;
import java.io.Serializable;
import javax.validation.Valid;
import javax.validation.constraints.Email;
import javax.validation.constraints.NotEmpty;
import com.salesmanager.shop.model.customer.address.Address;
import io.swagger.annotations.ApiModelProperty;
public class CustomerEntity extends Customer implements Serializable {
/**
*
*/
private static final long serialVersionUID = 1L;
@ApiModelProperty(notes = "Customer email address. Required for registration")
@Email (message="{messages.invalid.email}")
@NotEmpty(message="{NotEmpty.customer.emailAddress}")
private String emailAddress;
@Valid
@ApiModelProperty(notes = "Customer billing address")
private Address billing;
private Address delivery;
@ApiModelProperty(notes = "Customer gender M | F")
private String gender;
@ApiModelProperty(notes = "2 letters language code en | fr | ...")
private String language;
private String firstName;
private String lastName;
private String provider;//online, facebook ...
private String storeCode;
//@ApiModelProperty(notes = "Username (use email address)")
//@NotEmpty(message="{NotEmpty.customer.userName}")
//can be email or anything else
private String userName;
private Double rating = 0D;
private int ratingCount;
public void setUserName(final String userName) {
this.userName = userName;
}
public String getUserName() {
return userName;
}
public void setStoreCode(final String storeCode) {
this.storeCode = storeCode;
}
public String getStoreCode() {
return storeCode;
}
public void setEmailAddress(final String emailAddress) {
this.emailAddress = emailAddress;
}
public String getEmailAddress() {
return emailAddress;
}
public void setLanguage(final String language) {
this.language = language;
}
public String getLanguage() {
return language;
}
public Address getBilling() {
return billing;
}
public void setBilling(final Address billing) {
this.billing = billing;
}
public Address getDelivery() {
return delivery;
}
public void setDelivery(final Address delivery) {
this.delivery = delivery;
}
public void setGender(final String gender) {
this.gender = gender;
}
public String getGender() {
return gender;
}
public String getFirstName() {
return firstName;
}
public void setFirstName(String firstName) {
this.firstName = firstName;
}
public String getLastName() {
return lastName;
}
public void setLastName(String lastName) {
this.lastName = lastName;
}
public int getRatingCount() {
return ratingCount;
}
public void setRatingCount(int ratingCount) {
this.ratingCount = ratingCount;
}
public Double getRating() {
return rating;
}
public void setRating(Double rating) {
this.rating = rating;
}
public String getProvider() {
return provider;
}
public void setProvider(String provider) {
this.provider = provider;
}
}