package com.honey.honey.dto;

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

import jakarta.validation.constraints.NotNull;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class BalanceAdjustmentRequest {
    @NotNull(message = "Balance type is required")
    private BalanceType balanceType; // A or B
    
    @NotNull(message = "Amount is required")
    private Long amount; // In bigint format (display value * 1,000,000)
    
    @NotNull(message = "Operation is required")
    private OperationType operation; // ADD or SUBTRACT
    
    private String reason; // Optional reason for adjustment (for audit log)

    public enum BalanceType {
        A, B
    }

    public enum OperationType {
        ADD, SUBTRACT
    }
}

