/* Options: Date: 2025-11-08 11:00:31 Version: 8.80 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://s4w2.api.bettor.cc //Package: //GlobalNamespace: dtos //AddPropertyAccessors: True //SettersReturnThis: True //AddServiceStackTypes: True //AddResponseStatus: False //AddDescriptionAsComments: True //AddImplicitVersion: IncludeTypes: PlaceBets.* //ExcludeTypes: //TreatTypesAsStrings: //DefaultImports: java.math.*,java.util.*,java.io.InputStream,net.servicestack.client.* */ import java.math.*; import java.util.*; import java.io.InputStream; import net.servicestack.client.*; public class dtos { @Route(Path="/cmd/bets/v2", Verbs="POST") public static class PlaceBets implements IReturn { public String slipId = null; public Ref bettor = null; public Origin origin = null; public Date placedAt = null; public ArrayList bets = null; public String getSlipId() { return slipId; } public PlaceBets setSlipId(String value) { this.slipId = value; return this; } public Ref getBettor() { return bettor; } public PlaceBets setBettor(Ref value) { this.bettor = value; return this; } public Origin getOrigin() { return origin; } public PlaceBets setOrigin(Origin value) { this.origin = value; return this; } public Date getPlacedAt() { return placedAt; } public PlaceBets setPlacedAt(Date value) { this.placedAt = value; return this; } public ArrayList getBets() { return bets; } public PlaceBets setBets(ArrayList value) { this.bets = value; return this; } private static Object responseType = ResponseStatus.class; public Object getResponseType() { return responseType; } } @DataContract public static class ResponseStatus { @DataMember(Order=1) public String errorCode = null; @DataMember(Order=2) public String message = null; @DataMember(Order=3) public String stackTrace = null; @DataMember(Order=4) public ArrayList errors = null; @DataMember(Order=5) public HashMap meta = null; public String getErrorCode() { return errorCode; } public ResponseStatus setErrorCode(String value) { this.errorCode = value; return this; } public String getMessage() { return message; } public ResponseStatus setMessage(String value) { this.message = value; return this; } public String getStackTrace() { return stackTrace; } public ResponseStatus setStackTrace(String value) { this.stackTrace = value; return this; } public ArrayList getErrors() { return errors; } public ResponseStatus setErrors(ArrayList value) { this.errors = value; return this; } public HashMap getMeta() { return meta; } public ResponseStatus setMeta(HashMap value) { this.meta = value; return this; } } public static class Ref { public String id = null; public String val = null; public String getId() { return id; } public Ref setId(String value) { this.id = value; return this; } public String getVal() { return val; } public Ref setVal(String value) { this.val = value; return this; } } public static class Origin { public BettingApp application = null; public String ip = null; public RefEx organization = null; public Ref region = null; public Ref locationGroup = null; public RefEx location = null; public RefEx device = null; public Ref clerk = null; public BettingApp getApplication() { return application; } public Origin setApplication(BettingApp value) { this.application = value; return this; } public String getIp() { return ip; } public Origin setIp(String value) { this.ip = value; return this; } public RefEx getOrganization() { return organization; } public Origin setOrganization(RefEx value) { this.organization = value; return this; } public Ref getRegion() { return region; } public Origin setRegion(Ref value) { this.region = value; return this; } public Ref getLocationGroup() { return locationGroup; } public Origin setLocationGroup(Ref value) { this.locationGroup = value; return this; } public RefEx getLocation() { return location; } public Origin setLocation(RefEx value) { this.location = value; return this; } public RefEx getDevice() { return device; } public Origin setDevice(RefEx value) { this.device = value; return this; } public Ref getClerk() { return clerk; } public Origin setClerk(Ref value) { this.clerk = value; return this; } } public static class Bet { public String id = null; public Integer ordinalOfAvailableRoundToAssignTo = null; public String content = null; public BigDecimal stake = null; public HashMap payload = null; public String getId() { return id; } public Bet setId(String value) { this.id = value; return this; } public Integer getOrdinalOfAvailableRoundToAssignTo() { return ordinalOfAvailableRoundToAssignTo; } public Bet setOrdinalOfAvailableRoundToAssignTo(Integer value) { this.ordinalOfAvailableRoundToAssignTo = value; return this; } public String getContent() { return content; } public Bet setContent(String value) { this.content = value; return this; } public BigDecimal getStake() { return stake; } public Bet setStake(BigDecimal value) { this.stake = value; return this; } public HashMap getPayload() { return payload; } public Bet setPayload(HashMap value) { this.payload = value; return this; } } public static class Bet { public String id = null; public String slipId = null; public Ref bettor = null; public Origin origin = null; public Date placedAt = null; public String roundId = null; public String content = null; public BigDecimal stake = null; public BetOutcome outcome = null; public BigDecimal win = null; public BetProcessingStatus processingStatus = null; public BetValidity validity = null; public HashMap results = null; public HashMap payload = null; public String getId() { return id; } public Bet setId(String value) { this.id = value; return this; } public String getSlipId() { return slipId; } public Bet setSlipId(String value) { this.slipId = value; return this; } public Ref getBettor() { return bettor; } public Bet setBettor(Ref value) { this.bettor = value; return this; } public Origin getOrigin() { return origin; } public Bet setOrigin(Origin value) { this.origin = value; return this; } public Date getPlacedAt() { return placedAt; } public Bet setPlacedAt(Date value) { this.placedAt = value; return this; } public String getRoundId() { return roundId; } public Bet setRoundId(String value) { this.roundId = value; return this; } public String getContent() { return content; } public Bet setContent(String value) { this.content = value; return this; } public BigDecimal getStake() { return stake; } public Bet setStake(BigDecimal value) { this.stake = value; return this; } public BetOutcome getOutcome() { return outcome; } public Bet setOutcome(BetOutcome value) { this.outcome = value; return this; } public BigDecimal getWin() { return win; } public Bet setWin(BigDecimal value) { this.win = value; return this; } public BetProcessingStatus getProcessingStatus() { return processingStatus; } public Bet setProcessingStatus(BetProcessingStatus value) { this.processingStatus = value; return this; } public BetValidity getValidity() { return validity; } public Bet setValidity(BetValidity value) { this.validity = value; return this; } public HashMap getResults() { return results; } public Bet setResults(HashMap value) { this.results = value; return this; } public HashMap getPayload() { return payload; } public Bet setPayload(HashMap value) { this.payload = value; return this; } } public static class BettingApp { public String name = null; public String version = null; public String getName() { return name; } public BettingApp setName(String value) { this.name = value; return this; } public String getVersion() { return version; } public BettingApp setVersion(String value) { this.version = value; return this; } } public static class RefEx extends Ref { public RecordDictionary data = null; public RecordDictionary getData() { return data; } public RefEx setData(RecordDictionary value) { this.data = value; return this; } } public static class RecordDictionary extends HashMap { } public static class Bet { public Boolean isFound = null; public String betId = null; public String slipId = null; public Object combStake = null; public Boolean getIsFound() { return isFound; } public Bet setIsFound(Boolean value) { this.isFound = value; return this; } public String getBetId() { return betId; } public Bet setBetId(String value) { this.betId = value; return this; } public String getSlipId() { return slipId; } public Bet setSlipId(String value) { this.slipId = value; return this; } public Object getCombStake() { return combStake; } public Bet setCombStake(Object value) { this.combStake = value; return this; } } }