package cn.superdesk.uniorder.dto.openapi.order;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @Description: Java类作用描述
 * @Author: linjinyu
 * @CreateDate: 2022/2/21 下午8:13
 * @UpdateUser: linjinyu
 * @UpdateDate: 2022/2/21 下午8:13
 * @UpdateRemark: 修改内容
 * @Version: 1.0
 */
@NoArgsConstructor
@AllArgsConstructor
@Data
@ToString
public class UnifiedOrderCreditDto implements Serializable {

	@ApiModelProperty("成功持久化后产生-不必传")
	private Long unifiedOrderCreditId;

	@ApiModelProperty("")
	private String orderSn;

	@ApiModelProperty("第三方系统商品Id")
	private Long goodsId;
	@ApiModelProperty("第三方接口-快照订单Id")
	private Long outSnapshotOrderId;
	@ApiModelProperty("第三方接口-快照订单商品Id")
	private Long outSnapshotOrderGoodsId;
	@ApiModelProperty("第三方接口-快照订单流水Id")
	private Long outSnapshotOrderCreditId;

	@ApiModelProperty("积分类型id(如果是微信支付,显示0)")
	private Integer    creditType;
	@ApiModelProperty("积分名称")
	private String     creditName;
	@ApiModelProperty("积分变动类型(1充值 2消费 3退款)")
	private Integer    dailyAccountType;
	@ApiModelProperty("积分批次 (如果是微信支付,显示 wechat)")
	private String     batchs;
	@ApiModelProperty("消耗 积分额度 积分支付金额")
	private BigDecimal balance;

	@ApiModelProperty("所属企业id(买家)")
	private Long purchaseVirtId;
	@ApiModelProperty("会员(买家)id")
	private Long purchaseUserId;

	@ApiModelProperty("0未支付  1已支付")
	private Integer payStatus;
	@ApiModelProperty("1积分支付  2微信支付")
	private Integer payType;

	@ApiModelProperty("客户对账锁定:0-正常;1-销定")
	private Integer creditLockingCustomer;
	@ApiModelProperty("供应商对账锁定:0-正常;1-销定")
	private Integer creditLockingSupplier;

	@ApiModelProperty("客户对账:1-已对账;2-未对账")
	private Integer accountingStateCustomer;
	@ApiModelProperty("供应商对账:1-已对账;2-未对账")
	private Integer accountingStateSupplier;

	@ApiModelProperty("发票申请状态 是否已申请 0-未申请;1-已申请;")
	private Integer invoiceApplyStatus;
	@ApiModelProperty("开票状态 是否已登记开票 0-未登记;1-已登记;")
	private Integer invoiceMakeStatus;
	@ApiModelProperty("回款状态 是否回款 0-未回款;1-已回款;")
	private Integer backStatus;

	@ApiModelProperty("流水方向:1-正单;-1-退单")
	private Integer direction;

//	private Date createTime;
//	private Long createUserId;
//	private Date updateTime;
//	private Long updateUserId;

	private static final long serialVersionUID = 1L;
}
