package com.honey.honey.dto;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * DTO for a transaction entry in transaction history.
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class TransactionDto {
    /**
     * Amount in bigint format (positive for credits, negative for debits).
     * Example: +900000000 means +900.0000 (credit)
     * Example: -100000000 means -100.0000 (debit)
     */
    private Long amount;
    
    /**
     * Date formatted as dd.MM at HH:mm (e.g., "13.01 at 22:29")
     */
    private String date;
    
    /**
     * Transaction type: DEPOSIT, WITHDRAWAL, TASK_BONUS, CANCELLATION_OF_WITHDRAWAL
     */
    private String type;
    
    /**
     * Task ID for TASK_BONUS type (null for other types)
     */
    private Integer taskId;
}


