package com.bocloud.cmp.model.common;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

import com.bocloud.common.utils.DateDeserializer;
import com.bocloud.common.utils.DateSerializer;
import com.bocloud.nms.enums.ChargeCommon;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 订单
 * 
 * @author wangyu
 * @version 1.0
 * @since 2020年3月10日
 *
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class ServiceOrderBean {

	private Long id;
	private String sn;
	private ChargeCommon.ChargeMode chargeMode;
	private Boolean slaAgreed;
	private ChargeCommon.ResourceStatus resourceStatus;
	private ChargeCommon.OrderStatus orderStatus;
	private Long userId;
	private Long projectId;
	private Long tenantId;
	private Long couponId;
	private Boolean deleted;
	@JsonSerialize(using = DateSerializer.class)
	@JsonDeserialize(using = DateDeserializer.class)
	private Date gmtCreate;
	@JsonSerialize(using = DateSerializer.class)
	@JsonDeserialize(using = DateDeserializer.class)
	private Date gmtModify;
	private String remarks;
	private String message;
	private String applyParam;
	private String serviceCode;
	private Long vendorId;
	private Boolean autoRenew;
	private String vendorName;
	private String userName;
	private String tenantName;
	private String couponName;
	private BigDecimal money;
	private List<OrderItemBean> items;
	private String serviceName;
}
