
package dev.sonpx.loyalty.mcp.reward.model;

import jakarta.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.time.LocalDate;
import lombok.Getter;
import lombok.Setter;

/**
 * Created by SonPhung on Monday, 20-Jul-2026
 */
@Setter
@Getter
public class CurrencyRate extends Fw {

    @NotNull
    private ReferenceData pcrCode;

    private String currencyRateId = "0"; // default value

    @NotNull
    private LocalDate effectiveFrom;

    @NotNull
    private LocalDate effectiveTo;

    @NotNull
    private BigDecimal buyRate;

    @NotNull
    private BigDecimal sellRate;
}
