package com.zhongshu.card.server.core.domain.pay;

import com.github.microservice.components.data.mongo.mongo.domain.SuperEntity;
import com.github.microservice.types.payment.PaymentChannelType;
import com.github.microservice.types.payment.PaymentType;
import com.zhongshu.card.client.type.RechargeType;
import com.zhongshu.card.client.type.payAccount.RechargeOrderStatus;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.data.mongodb.core.mapping.Document;

import java.math.BigDecimal;

@Data
@Document
public class BalanceRechargeOrder extends SuperEntity {

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

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

    @Schema(description = "用户id")
    private String userId;

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

    @Schema(description = "支付账户")
    private String payAccount;

    @Schema(description = "订单状态")
    private RechargeOrderStatus status;

    @Schema(description = "状态说明")
    private String statusDesc;

    @Schema(description = "金额")
    private BigDecimal total = BigDecimal.ZERO;

    @Schema(description = "订单号")
    private String orderNo;

    @Schema(description = "描述")
    private String description;

    /********************************渠道所属参数*********************************/
    @Schema(description = "预支付单号（用于前端调起支付的参数）")
    private Object prepay;
}
