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;

    /**
     * 收钱吧收单号密码
     */
    private String sqbAcquiringSign;

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

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

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

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

    /**
     * 券核销标记 0-未核销 1-已核销
     */
    private Integer couponUsedStatus;

    /**
     * 收钱吧-退款号
     */
    private String sqbRefundSn;

    /**
     * 收钱吧-退款号密码
     */
    private String sqbRefundSignature;

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

    private String createdAt;

    private String updatedAt;

}
