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

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

/**
 * 分账记录VO
 *
 * @author Claude Code
 * @date 2025-01-11
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@JsonInclude(JsonInclude.Include.NON_NULL)
public class RecordVO {

    /**
     * 记录ID
     */
    @JsonProperty("id")
    private Long id;

    /**
     * 订单ID
     */
    @JsonProperty("order_id")
    private String orderId;

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

    /**
     * 规则ID
     */
    @JsonProperty("rule_id")
    private Long ruleId;

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

    /**
     * 支付系统
     */
    @JsonProperty("payment_system")
    private String paymentSystem;

    /**
     * 支付订单ID
     */
    @JsonProperty("payment_order_id")
    private String paymentOrderId;

    /**
     * 状态（pending, processing, success, failed）
     */
    @JsonProperty("status")
    private String status;

    /**
     * 错误信息
     */
    @JsonProperty("error_message")
    private String errorMessage;

    /**
     * 创建时间
     */
    @JsonProperty("created_at")
    private String createdAt;

    /**
     * 更新时间
     */
    @JsonProperty("updated_at")
    private String updatedAt;
}
