package com.cyksj.model.request;

import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.List;

/*
 *项目名: netflix
 *文件名: OrderRefundReq
 *创建者: JavaZou
 *创建时间:2023/5/31 12:14
 */
@Getter
@Setter
public class OrderRefundReq {
	@NotNull(message = "订单id不为空")
	private Long orderId;

	/**
	 * 退款金额
	 */
	@NotNull(message = "退款金额不为空")
	private BigDecimal refundMoney;

	/**
	 * 退款原因
	 */
	private String refundDesc;

	/**
	 * 退款类型
	 * 订单金额、余额、金额和余额混合bxj
	 */
	private String refundType;

	/**
	 * 补差价余额
	 */
	private BigDecimal refundBalance;

	/**
	 * 仅仅退余额
	 */
	private Boolean isOnly;

	private String operator;

	/**
	 * 聊天记录截图
	 */
	private String chatImg;

	/**
	 * 扣除的余额
	 */
	private BigDecimal deductBalance;

	/**
	 * 是否是补差价
	 */
	private Boolean isDiffer = false;

	private Long adminId;

	/**
	 * 加购订单退款车票ids
	 */
	private List<Long> dpRelationIds;

	@Getter
	public enum RefundType {
		balance("余额退款"),
		money("现金退款"),
		bxj("余额现金"),
		;
		String desc;

		RefundType(String desc) {
			this.desc = desc;
		}
	}
}