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

import com.github.microservice.types.payment.PaymentType;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;

/**
 * @author TRX
 * @date 2024/9/24
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class PayShareListParam {

    @Schema(description = "数据ID")
    private String id;

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

    @Schema(description = "支付渠道")
    private PaymentType paymentType;

    @Schema(description = "规则名称")
    @NotEmpty
    private String name;

    @Schema(description = "项目分账比例，0-100")
    private BigDecimal projectScale = BigDecimal.ZERO;

    @Schema(description = "机构分账比例，0-100")
    private BigDecimal orgScale = BigDecimal.ZERO;

    @Schema(description = "")
    private String remark;

    @Schema(description = "排序")
    private Long sort = 1l;
}
