29 lines
786 B
Java
29 lines
786 B
Java
package com.pmumali.plr.dtos;
|
|
|
|
import java.math.BigDecimal;
|
|
import java.time.LocalDateTime;
|
|
import java.util.List;
|
|
|
|
import com.pmumali.plr.enums.PariType;
|
|
|
|
import lombok.Builder;
|
|
|
|
@Builder
|
|
public record GainViewDto(
|
|
Long pariId,
|
|
Long courseId,
|
|
String courseNom,
|
|
PariType pariType,
|
|
String pariSousType, // e.g. "QP_ORDRE", "MULTI6" (optional)
|
|
String bettorRef,
|
|
BigDecimal mise,
|
|
BigDecimal gain, // official or 0 when provisional
|
|
String payoutMode, // "OFFICIAL" or "PROVISIONAL"
|
|
String numeroPlus, // for Quinté+ tickets (if any)
|
|
List<GainViewDto.Selection> selections,
|
|
LocalDateTime createdAt
|
|
) {
|
|
@Builder
|
|
public static record Selection(Long chevalId, String nomCheval, Integer position) {}
|
|
}
|