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

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.ycwl.basic.integration.profitshare.dto.rule.CreateRecipientRequest;
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 CalculateShareRequest {

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

    /**
     * 总金额
     */
    @JsonProperty("total_amount")
    private Double totalAmount;

    /**
     * 规则类型
     */
    @JsonProperty("rule_type")
    private String ruleType;

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