package com.caliverse.admin.logs.Indicatordomain;

import com.caliverse.admin.global.common.constants.AdminConstants;
import lombok.Builder;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.List;

@Document(collection = AdminConstants.MONGO_DB_COLLECTION_LOG)
@Getter
@Setter
public class CurrencyMongoLog extends MongoLogSearchBase{
    private Double sapphireAcquired;
    private Double sapphireConsumed;
    private Double sapphireNet;
    private Double goldAcquired;
    private Double goldConsumed;
    private Double goldNet;
    private Double caliumAcquired;
    private Double caliumConsumed;
    private Double caliumNet;
    private Double beamAcquired;
    private Double beamConsumed;
    private Double beamNet;
    private Double rubyAcquired;
    private Double rubyConsumed;
    private Double rubyNet;
    private Integer totalCurrencies;
    private List<currency> currencies;

    @Data
    @Builder
    public static class currency {
        private String tranId;
        private String action;
        private String logTime;
        private String currencyType;
        private String amountDeltaType;
        private Double deltaAmount;
        private Double currencyAmount;
    }
}
