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

import com.fasterxml.jackson.annotation.JsonFormat;
import dev.sonpx.loyalty.mcp.enums.ExpiryPolicy;
import jakarta.validation.constraints.NotNull;
import java.time.LocalDate;
import lombok.Getter;
import lombok.Setter;

/**
 * PhuDao created on 16/10/2023
 */
@Getter
@Setter
public class PaTypeExpiry extends Fw {

    private Long poolRecordNo;

    private String poolId;

    @NotNull
    private ReferenceData productAccountLevel;

    @NotNull
    private ReferenceData productAccountType;

    private ExpiryPolicy expiryPolicy;

    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Integer expiryPolicyParam;

    private LocalDate fixedDate;
}
