package com.honey.honey.dto;

import lombok.Builder;
import lombok.Value;

import java.math.BigDecimal;

@Value
@Builder
public class AdminStatisticsTableRowDto {
    /** ISO date yyyy-MM-dd (day mode) or yyyy-MM (month mode). */
    String periodKey;
    /** Human-readable label for the period. */
    String periodLabel;

    long regs;
    long regsOurs;
    long regsNonOurs;

    /** Placeholder for future use; null = not implemented. */
    Long deadOurs;
    Long deadNonOurs;

    long depositsCount;
    BigDecimal depositsSumUsd;
    long ftdCount;
    /** Average USD per payment where usd_amount is present; null if none. */
    BigDecimal avgPaymentUsd;

    long withdrawalsCount;
    BigDecimal withdrawalsSumUsd;

    /** (1 - withdrawals/deposits) * 100; null if deposits sum is zero. */
    BigDecimal profitPercent;
    BigDecimal profitUsd;
}
