Skip to content

Commit 3779e10

Browse files
committed
Promo bet
1 parent c02a6f8 commit 3779e10

14 files changed

Lines changed: 1062 additions & 0 deletions

mbs-sdk-java-promo-offer.patch

Lines changed: 629 additions & 0 deletions
Large diffs are not rendered by default.

src/sdk/src/main/java/com/sportradar/mbs/sdk/entities/common/CasinoContext.java

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,14 @@
33
import com.fasterxml.jackson.annotation.JsonProperty;
44
import com.sportradar.mbs.sdk.entities.channel.Channel;
55

6+
import java.util.List;
7+
68
public class CasinoContext {
79

810
@JsonProperty("walletId")
911
private String walletId;
12+
@JsonProperty("rates")
13+
private ExchangeRate[] rates;
1014
@JsonProperty("channel")
1115
private Channel channel;
1216
@JsonProperty("endCustomer")
@@ -24,6 +28,14 @@ public void setWalletId(String value) {
2428
this.walletId = value;
2529
}
2630

31+
public ExchangeRate[] getRates() {
32+
return this.rates;
33+
}
34+
35+
public void setRates(ExchangeRate[] value) {
36+
this.rates = value;
37+
}
38+
2739
public Channel getChannel() {
2840
return this.channel;
2941
}
@@ -56,6 +68,16 @@ public Builder setWalletId(String value) {
5668
return this;
5769
}
5870

71+
public Builder setRates(ExchangeRate... value) {
72+
this.instance.setRates(value);
73+
return this;
74+
}
75+
76+
public Builder setRates(List<? extends ExchangeRate> value) {
77+
ExchangeRate[] arr = value == null ? null : value.toArray(new ExchangeRate[0]);
78+
return this.setRates(arr);
79+
}
80+
5981
public Builder setChannel(Channel value) {
6082
this.instance.setChannel(value);
6183
return this;

src/sdk/src/main/java/com/sportradar/mbs/sdk/entities/common/TicketContext.java

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ public class TicketContext {
1313
private String walletId;
1414
@JsonProperty("ref")
1515
private TicketRef ref;
16+
@JsonProperty("rates")
17+
private ExchangeRate[] rates;
1618
@JsonProperty("channel")
1719
private Channel channel;
1820
@JsonProperty("limitId")
@@ -42,6 +44,14 @@ public void setRef(TicketRef value) {
4244
this.ref = value;
4345
}
4446

47+
public ExchangeRate[] getRates() {
48+
return this.rates;
49+
}
50+
51+
public void setRates(ExchangeRate[] value) {
52+
this.rates = value;
53+
}
54+
4555
public Channel getChannel() {
4656
return this.channel;
4757
}
@@ -95,6 +105,16 @@ public Builder setRef(TicketRef value) {
95105
return this;
96106
}
97107

108+
public Builder setRates(ExchangeRate... value) {
109+
this.instance.setRates(value);
110+
return this;
111+
}
112+
113+
public Builder setRates(List<? extends ExchangeRate> value) {
114+
ExchangeRate[] arr = value == null ? null : value.toArray(new ExchangeRate[0]);
115+
return this.setRates(arr);
116+
}
117+
98118
public Builder setChannel(Channel value) {
99119
this.instance.setChannel(value);
100120
return this;
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
package com.sportradar.mbs.sdk.entities.payoutmodifiersettlement;
2+
3+
import com.fasterxml.jackson.annotation.JsonProperty;
4+
import com.sportradar.mbs.sdk.entities.odds.Odds;
5+
6+
public class OddsPayoutModifierSettlement extends PayoutModifierSettlement {
7+
8+
@JsonProperty("odds")
9+
private Odds odds;
10+
11+
public Odds getOdds() {
12+
return this.odds;
13+
}
14+
15+
public void setOdds(Odds value) {
16+
this.odds = value;
17+
}
18+
19+
20+
public static Builder newBuilder() {
21+
return new Builder();
22+
}
23+
24+
public static class Builder {
25+
26+
private final OddsPayoutModifierSettlement instance = new OddsPayoutModifierSettlement();
27+
28+
private Builder() {
29+
}
30+
31+
public OddsPayoutModifierSettlement build() {
32+
return this.instance;
33+
}
34+
35+
public Builder setOdds(Odds value) {
36+
this.instance.setOdds(value);
37+
return this;
38+
}
39+
}
40+
}
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
package com.sportradar.mbs.sdk.entities.payoutmodifiersettlement;
2+
3+
import com.fasterxml.jackson.annotation.JsonSubTypes;
4+
import com.fasterxml.jackson.annotation.JsonTypeInfo;
5+
6+
@JsonTypeInfo(
7+
use = JsonTypeInfo.Id.NAME,
8+
include = JsonTypeInfo.As.PROPERTY,
9+
property = "type")
10+
@JsonSubTypes({
11+
@JsonSubTypes.Type(value = OddsPayoutModifierSettlement.class, name = "odds"),
12+
@JsonSubTypes.Type(value = ResultPayoutModifierSettlement.class, name = "result")
13+
})
14+
public abstract class PayoutModifierSettlement {
15+
16+
17+
public static OddsPayoutModifierSettlement.Builder newOddsPayoutModifierSettlementBuilder() {
18+
return OddsPayoutModifierSettlement.newBuilder();
19+
}
20+
21+
public static ResultPayoutModifierSettlement.Builder newResultPayoutModifierSettlementBuilder() {
22+
return ResultPayoutModifierSettlement.newBuilder();
23+
}
24+
25+
}
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
package com.sportradar.mbs.sdk.entities.payoutmodifiersettlement;
2+
3+
import com.fasterxml.jackson.annotation.JsonProperty;
4+
import com.sportradar.mbs.sdk.entities.resulting.SelectionResult;
5+
6+
public class ResultPayoutModifierSettlement extends PayoutModifierSettlement {
7+
8+
@JsonProperty("result")
9+
private SelectionResult result;
10+
11+
public SelectionResult getResult() {
12+
return this.result;
13+
}
14+
15+
public void setResult(SelectionResult value) {
16+
this.result = value;
17+
}
18+
19+
20+
public static Builder newBuilder() {
21+
return new Builder();
22+
}
23+
24+
public static class Builder {
25+
26+
private final ResultPayoutModifierSettlement instance = new ResultPayoutModifierSettlement();
27+
28+
private Builder() {
29+
}
30+
31+
public ResultPayoutModifierSettlement build() {
32+
return this.instance;
33+
}
34+
35+
public Builder setResult(SelectionResult value) {
36+
this.instance.setResult(value);
37+
return this;
38+
}
39+
}
40+
}

src/sdk/src/main/java/com/sportradar/mbs/sdk/entities/request/ContentRequest.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
@JsonSubTypes.Type(value = ExtSettlementRequest.class, name = "ext-settlement"),
2626
@JsonSubTypes.Type(value = ExtSettlementAckRequest.class, name = "ext-settlement-ack"),
2727
@JsonSubTypes.Type(value = MaxStakeRequest.class, name = "max-stake"),
28+
@JsonSubTypes.Type(value = PayoutModifierSettlementRequest.class, name = "payout-modifier-settlement"),
2829
@JsonSubTypes.Type(value = TicketRequest.class, name = "ticket"),
2930
@JsonSubTypes.Type(value = TicketAckRequest.class, name = "ticket-ack"),
3031
@JsonSubTypes.Type(value = TicketBuildRequest.class, name = "ticket-build"),
@@ -33,6 +34,7 @@
3334
})
3435
public abstract class ContentRequest {
3536

37+
3638
public static AccountInterventionInformRequest.Builder newAccountInterventionInformRequestBuilder() {
3739
return AccountInterventionInformRequest.newBuilder();
3840
}
@@ -101,6 +103,10 @@ public static MaxStakeRequest.Builder newMaxStakeRequestBuilder() {
101103
return MaxStakeRequest.newBuilder();
102104
}
103105

106+
public static PayoutModifierSettlementRequest.Builder newPayoutModifierSettlementRequestBuilder() {
107+
return PayoutModifierSettlementRequest.newBuilder();
108+
}
109+
104110
public static TicketRequest.Builder newTicketRequestBuilder() {
105111
return TicketRequest.newBuilder();
106112
}
Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
package com.sportradar.mbs.sdk.entities.request;
2+
3+
import com.fasterxml.jackson.annotation.JsonProperty;
4+
import com.sportradar.mbs.sdk.entities.payoutmodifiersettlement.PayoutModifierSettlement;
5+
6+
public class PayoutModifierSettlementRequest extends ContentRequest {
7+
8+
@JsonProperty("reference")
9+
private String reference;
10+
@JsonProperty("settlementId")
11+
private String settlementId;
12+
@JsonProperty("settlement")
13+
private PayoutModifierSettlement settlement;
14+
15+
public String getReference() {
16+
return this.reference;
17+
}
18+
19+
public void setReference(String value) {
20+
this.reference = value;
21+
}
22+
23+
public String getSettlementId() {
24+
return this.settlementId;
25+
}
26+
27+
public void setSettlementId(String value) {
28+
this.settlementId = value;
29+
}
30+
31+
public PayoutModifierSettlement getSettlement() {
32+
return this.settlement;
33+
}
34+
35+
public void setSettlement(PayoutModifierSettlement value) {
36+
this.settlement = value;
37+
}
38+
39+
40+
public static Builder newBuilder() {
41+
return new Builder();
42+
}
43+
44+
public static class Builder {
45+
46+
private final PayoutModifierSettlementRequest instance = new PayoutModifierSettlementRequest();
47+
48+
private Builder() {
49+
}
50+
51+
public PayoutModifierSettlementRequest build() {
52+
return this.instance;
53+
}
54+
55+
public Builder setReference(String value) {
56+
this.instance.setReference(value);
57+
return this;
58+
}
59+
60+
public Builder setSettlementId(String value) {
61+
this.instance.setSettlementId(value);
62+
return this;
63+
}
64+
65+
public Builder setSettlement(PayoutModifierSettlement value) {
66+
this.instance.setSettlement(value);
67+
return this;
68+
}
69+
}
70+
}

src/sdk/src/main/java/com/sportradar/mbs/sdk/entities/response/ContentResponse.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
@JsonSubTypes.Type(value = ExtSettlementAckResponse.class, name = "ext-settlement-ack-reply"),
2727
@JsonSubTypes.Type(value = ExtSettlementResponse.class, name = "ext-settlement-reply"),
2828
@JsonSubTypes.Type(value = MaxStakeResponse.class, name = "max-stake-reply"),
29+
@JsonSubTypes.Type(value = PayoutModifierSettlementResponse.class, name = "payout-modifier-settlement-reply"),
2930
@JsonSubTypes.Type(value = TicketAckResponse.class, name = "ticket-ack-reply"),
3031
@JsonSubTypes.Type(value = TicketBuildResponse.class, name = "ticket-build-reply"),
3132
@JsonSubTypes.Type(value = TicketInformResponse.class, name = "ticket-inform-reply"),
@@ -34,6 +35,7 @@
3435
})
3536
public abstract class ContentResponse {
3637

38+
3739
public static AccountInterventionInformResponse.Builder newAccountInterventionInformResponseBuilder() {
3840
return AccountInterventionInformResponse.newBuilder();
3941
}
@@ -106,6 +108,10 @@ public static MaxStakeResponse.Builder newMaxStakeResponseBuilder() {
106108
return MaxStakeResponse.newBuilder();
107109
}
108110

111+
public static PayoutModifierSettlementResponse.Builder newPayoutModifierSettlementResponseBuilder() {
112+
return PayoutModifierSettlementResponse.newBuilder();
113+
}
114+
109115
public static TicketAckResponse.Builder newTicketAckResponseBuilder() {
110116
return TicketAckResponse.newBuilder();
111117
}

0 commit comments

Comments
 (0)