package org.springblade.payment.entity;

import com.alibaba.fastjson.JSONObject;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springblade.ldt.agent.entity.AgentLeagueRecord;
import org.springblade.ldt.bills.entity.Bills;

import java.math.BigDecimal;

/**
 * @author: lianghanqiang
 * @description: 支付成功参数
 * @since: 8/5/21 -- 2:38 PM
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class SuccessParams {

	public static final String PAY_STATUS_SUCCESS = "success";
	public static final String PAY_STATUS_FAIL = "fail";


	/**
	 * 支付状态
	 */

	private String status;
	/**
	 * 订单类型
	 */
	private String orderType;

	/**
	 * 积分订单id
	 */
	private Long pointBillsId;

	/**
	 * 余额订单id
	 */
	private Long balanceBillsId;

	/**
	 * 交易总额
	 * */
	private BigDecimal totalPrice;

	/**
	 * 第三方平台交易订单号
	 * */
	private String thirdOrderId;

	/**
	 * 	交易用户id
	 * */
	private Long userId;

	/**
	 * 积分渠道id
	 * */
	private Long channelId;

	/**
	 * 	商户id
	 * */
	private Long shopId;

	/**
	 * 提现记录的id
	 */
	private Long withdrawRecId;
	/**
	 * 交易账单
	 * */
	private Bills bills;

	/**
	 * 	租户id
	 * */
	private String tenantId;

	/**
	 * 	易宝回调对象
	 * */
	private JSONObject res;

	/**
	 * 代理加盟费记录
	 */
	private AgentLeagueRecord agentLeagueRecord;

}
