package com.palmnest.model.wxpay;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "tb_merchant_detail")
public class MerchantDetail implements Serializable {

	/**
	 * 商户信息
	 */
	private static final long serialVersionUID = -126311357621064749L;

	private Long    id;
	private Integer orgId;//项目ID
	private String  moduleCode;//模块编码
	private String  name;//名称
	private String  appId;//公众号唯一标识
	private String  appSecret; //公众号secret
	private String  mchId;//商户号
	private String  wxApiKey;//支付秘钥
	private String  sslcertPath;
	private String  sslcertPassword;
	private Integer isEnabled;
	private String  creator;             // 创建人
	private Date    createTime;         // 创建时间
	private String  modifier;
	private Date    modifyTime;

	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	@Column(name = "id", unique = true, nullable = false)
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	@Column(name = "org_id")
	public Integer getOrgId() {
		return orgId;
	}

	public void setOrgId(Integer orgId) {
		this.orgId = orgId;
	}

	@Column(name = "module_code")
	public String getModuleCode() {
		return moduleCode;
	}

	public void setModuleCode(String moduleCode) {
		this.moduleCode = moduleCode;
	}

	@Column(name = "name")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column(name = "app_id")
	public String getAppId() {
		return appId;
	}

	public void setAppId(String appId) {
		this.appId = appId;
	}

	@Column(name = "app_secret")
	public String getAppSecret() {
		return appSecret;
	}

	public void setAppSecret(String appSecret) {
		this.appSecret = appSecret;
	}

	@Column(name = "mch_id")
	public String getMchId() {
		return mchId;
	}

	public void setMchId(String mchId) {
		this.mchId = mchId;
	}

	@Column(name = "wx_apiKey")
	public String getWxApiKey() {
		return wxApiKey;
	}

	public void setWxApiKey(String wxApiKey) {
		this.wxApiKey = wxApiKey;
	}

	@Column(name = "sslcert_path")
	public String getSslcertPath() {
		return sslcertPath;
	}

	public void setSslcertPath(String sslcertPath) {
		this.sslcertPath = sslcertPath;
	}

	@Column(name = "sslcert_password")
	public String getSslcertPassword() {
		return sslcertPassword;
	}

	public void setSslcertPassword(String sslcertPassword) {
		this.sslcertPassword = sslcertPassword;
	}

	@Column(name = "is_enabled")
	public Integer getIsEnabled() {
		return isEnabled;
	}

	public void setIsEnabled(Integer isEnabled) {
		this.isEnabled = isEnabled;
	}

	@Column(name = "creator")
	public String getCreator() {
		return creator;
	}

	public void setCreator(String creator) {
		this.creator = creator;
	}

	@Column(name = "create_time")
	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	@Column(name = "modifier")
	public String getModifier() {
		return modifier;
	}

	public void setModifier(String modifier) {
		this.modifier = modifier;
	}

	@Column(name = "modify_time")
	public Date getModifyTime() {
		return modifyTime;
	}

	public void setModifyTime(Date modifyTime) {
		this.modifyTime = modifyTime;
	}


}
