package com.ycwl.basic.integration.profitshare.dto.rule;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * 创建分账规则请求
 *
 * @author Claude Code
 * @date 2025-01-11
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@JsonInclude(JsonInclude.Include.NON_NULL)
public class CreateRuleRequest {

    /**
     * 景区ID
     */
    @JsonProperty("scenic_id")
    private Long scenicId;

    /**
     * 规则名称
     */
    @JsonProperty("rule_name")
    private String ruleName;

    /**
     * 规则类型（percentage, fixed_amount, scaled_amount）
     */
    @JsonProperty("rule_type")
    private String ruleType;

    /**
     * 规则描述
     */
    @JsonProperty("description")
    private String description;

    /**
     * 分账接收人列表
     */
    @JsonProperty("recipients")
    private List<CreateRecipientRequest> recipients;
}
