package com.liquidnet.service.goblin.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * <p>
 * 收钱吧订单
 * </p>
 *
 * @author liquidnet
 * @since 2025-01-01
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("goblin_sqb_order")
public class GoblinSqbOrder implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "mid", type = IdType.AUTO)
    private Long mid;

    /**
     * 本地订单ID
     */
    private String orderId;

    /**
     * 用户ID
     */
    private String userId;

    /**
     * 关联演出ID
     */
    private String performancesId;

    /**
     * 商品ID
     */
    private String spuId;

    /**
     * SKU ID
     */
    private String skuId;

    /**
     * 购买数量
     */
    private Integer quantity;

    /**
     * 支付金额（分）
     */
    private Long amount;

    /**
     * 收钱吧订单号
     */
    private String sqbOrderSn;

    /**
     * 收钱吧订单签名
     */
    private String sqbOrderSignature;

    /**
     * 收钱吧收单号
     */
    private String sqbAcquiringSn;

    /**
     * 结算明细ID
     */
    private String sqbCheckoutItemsId;

    /**
     * 券码编号
     */
    private String couponSn;

    /**
     * 核销二维码
     */
    private String couponQrCode;

    /**
     * 券码过期时间
     */
    private String couponExpireTime;

    /**
     * 状态 0-待支付 1-已支付 2-已核销 3-已退款 4-退款中 9-失败
     */
    private Integer status;

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

    private String createdAt;

    private String updatedAt;

}
