package com.zhongshu.card.client.model.payment;


import com.github.microservice.types.OrderState;
import com.github.microservice.types.payment.PaymentType;
import com.zhongshu.card.client.model.org.UserCountModel;
import com.zhongshu.card.client.model.school.AreaSimpleModel;
import com.zhongshu.card.client.type.RefundState;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;

@Data
public class OrderUnionWithModel {

    private String id;

    private Long createTime;

    private Long updateTime;

    @Schema(description = "所属机构ID")
    private String oid;

    @Schema(description = "所属项目oid")
    private String projectOid;

    @Schema(description = "数据主题的oid")
    private String aboutOid;

    @Schema(description = "订单的总体状态")
    private OrderState orderState;

    @Schema(description = "支付方式")
    private PaymentType paymentType;

    @Schema(description = "消费金额（单位：分）")
    private BigDecimal payAmount;

    @Schema(description = "用户信息")
    private UserCountModel userAccount;

    @Schema(description = "消费机设备ID")
    private String deviceId;

//    @Schema(description = "设备类型")
//    private DeviceType deviceType;

    @Schema(description = "设备所属区域信息")
    private AreaSimpleModel area;

    @Schema(description = "是否退款")
    private Boolean isRefund;

    @Schema(description = "操作退款用户userId")
    private String refundUserId;

    @Schema(description = "退款金额")
    private BigDecimal refundAMount;

    @Schema(description = "退款状态")
    private RefundState refundState;

    @Schema(description = "申请退款时间")
    private Long refundTime;
}
