public interface TicketCancelBuilder
TicketCancel
Modifier and Type | Method and Description |
---|---|
TicketCancelBuilder |
addBetCancel(String betId,
Integer cancelPercent)
Add the bet cashout
|
TicketCancel |
build()
Creates a new
TicketCancel instance using builder parameters |
TicketCancel |
build(String ticketId,
int bookmakerId,
TicketCancellationReason code)
Creates a new
TicketCancel instance |
static TicketCancelBuilder |
create()
Deprecated.
Method create() is obsolete. Please use the appropriate method on BuilderFactory interface which can be obtained through MtsSdk instance
|
TicketCancelBuilder |
setBookmakerId(int bookmakerId)
Sets bookmaker id
|
TicketCancelBuilder |
setCancelPercent(int cancelPercent)
Sets the cancel percent (quantity multiplied by 10_000 and rounded to a long value)
|
TicketCancelBuilder |
setCode(TicketCancellationReason code)
Sets the cancellation code
|
TicketCancelBuilder |
setTicketId(String ticketId)
Sets ticket id
|
@Deprecated static TicketCancelBuilder create()
TicketCancelBuilder setTicketId(String ticketId)
ticketId
- ticket idTicketCancelBuilder setBookmakerId(int bookmakerId)
bookmakerId
- bookmaker idTicketCancelBuilder setCode(TicketCancellationReason code)
code
- The TicketCancellationReason
TicketCancelBuilder setCancelPercent(int cancelPercent)
cancelPercent
- - the cancel percent value of the assigned ticketTicketCancelBuilder addBetCancel(String betId, Integer cancelPercent)
betId
- - the bet idcancelPercent
- - the cancel percent value of the assigned bet (quantity multiplied by 10_000 and rounded to a long value)TicketCancel build(String ticketId, int bookmakerId, TicketCancellationReason code)
TicketCancel
instanceticketId
- ticket idbookmakerId
- bookmaker idcode
- The TicketCancellationReason
TicketCancel
instanceTicketCancel build()
TicketCancel
instance using builder parametersTicketCancel
instanceCopyright © 2017–2023. All rights reserved.