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

import com.github.microservice.components.data.mongo.mongo.domain.SuperEntity;
import com.github.microservice.pay.client.type.ledger.TransactionType;
import com.zhongshu.card.client.type.ShareOrderType;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.redis.core.index.Indexed;

import java.math.BigDecimal;

/**
 * 分账订单
 */
@Data
@Document
public class ShareOrder extends SuperEntity {

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

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

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

    @Schema(description = "分账订单号")
    @Indexed
    private String shareOrderNo;

    @Schema(description = "分账比例")
    private BigDecimal ratio;

    @Schema(description = "分账金额")
    private Long amount;

    private ShareOrderType shareOrderType;

    @Schema(description = "原分账订单号")
    private String oriShareOrderNo;;

}
