Skip to content

Commit 2db60b9

Browse files
tomazt-srzb-sr
authored andcommitted
added all operations
added all operations to the repo/branch.
1 parent ec1d20d commit 2db60b9

11 files changed

+1112
-4
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
package com.sportradar.mbs.sdk.entities.common;
2+
3+
import com.fasterxml.jackson.annotation.JsonCreator;
4+
import com.fasterxml.jackson.annotation.JsonValue;
5+
import java.util.EnumSet;
6+
import java.util.HashMap;
7+
import java.util.Map;
8+
9+
public enum FinancialLimitType {
10+
DEPOSIT("deposit"),
11+
STAKE("stake"),
12+
LOSS("loss");
13+
14+
private static final Map<String, FinancialLimitType> VALUES = new HashMap<>();
15+
16+
static {
17+
for (final FinancialLimitType val : EnumSet.allOf(FinancialLimitType.class)) {
18+
VALUES.put(val.jsonVal, val);
19+
}
20+
}
21+
22+
private final String jsonVal;
23+
24+
FinancialLimitType(final String jsonVal) { this.jsonVal = jsonVal; }
25+
26+
@JsonCreator
27+
public static FinancialLimitType fromValue(final String value) {
28+
return value == null ? null : VALUES.get(value);
29+
}
30+
31+
@JsonValue
32+
public String getJsonValue() { return this.jsonVal; }
33+
34+
public String toString() { return this.jsonVal; }
35+
36+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
package com.sportradar.mbs.sdk.entities.common;
2+
3+
import com.fasterxml.jackson.annotation.JsonCreator;
4+
import com.fasterxml.jackson.annotation.JsonValue;
5+
import java.util.EnumSet;
6+
import java.util.HashMap;
7+
import java.util.Map;
8+
9+
public enum LimitFrequency {
10+
MONTHLY("monthly"),
11+
DAILY("daily"),
12+
WEEKLY("weekly");
13+
14+
private static final Map<String, LimitFrequency> VALUES = new HashMap<>();
15+
16+
static {
17+
for (final LimitFrequency val : EnumSet.allOf(LimitFrequency.class)) {
18+
VALUES.put(val.jsonVal, val);
19+
}
20+
}
21+
22+
private final String jsonVal;
23+
24+
LimitFrequency(final String jsonVal) { this.jsonVal = jsonVal; }
25+
26+
@JsonCreator
27+
public static LimitFrequency fromValue(final String value) {
28+
return value == null ? null : VALUES.get(value);
29+
}
30+
31+
@JsonValue
32+
public String getJsonValue() { return this.jsonVal; }
33+
34+
public String toString() { return this.jsonVal; }
35+
36+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
package com.sportradar.mbs.sdk.entities.common;
2+
3+
import com.fasterxml.jackson.annotation.JsonCreator;
4+
import com.fasterxml.jackson.annotation.JsonValue;
5+
6+
import java.util.EnumSet;
7+
import java.util.HashMap;
8+
import java.util.Map;
9+
10+
public enum LimitType {
11+
DEPOSIT("deposit"),
12+
SESSION("session"),
13+
LOSS("loss"),
14+
STAKE("stake");
15+
16+
private static final Map<String, LimitType> VALUES = new HashMap<>();
17+
18+
static {
19+
for (final LimitType val : EnumSet.allOf(LimitType.class)) {
20+
VALUES.put(val.jsonVal, val);
21+
}
22+
}
23+
24+
private final String jsonVal;
25+
26+
LimitType(final String jsonVal) {
27+
this.jsonVal = jsonVal;
28+
}
29+
30+
@JsonCreator
31+
public static LimitType fromValue(final String value) {
32+
return value == null ? null : VALUES.get(value);
33+
}
34+
35+
@JsonValue
36+
public String getJsonValue() {
37+
return this.jsonVal;
38+
}
39+
40+
public String toString() {
41+
return this.jsonVal;
42+
}
43+
44+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,188 @@
1+
package com.sportradar.mbs.sdk.entities.request;
2+
3+
import com.sportradar.mbs.sdk.entities.common.EndCustomer;
4+
import com.sportradar.mbs.sdk.entities.common.FinancialLimitType;
5+
import com.sportradar.mbs.sdk.entities.common.LimitFrequency;
6+
import com.sportradar.mbs.sdk.entities.common.Amount;
7+
import com.fasterxml.jackson.annotation.JsonProperty;
8+
9+
/**
10+
* Represents a request to inform about a financial limit for an end customer.
11+
*/
12+
public class FinancialLimitInformRequest extends ContentRequest {
13+
14+
/**
15+
* The financial amount associated with the limit.
16+
*/
17+
@JsonProperty("amount")
18+
private Amount amount;
19+
20+
/**
21+
* Information about the end customer.
22+
*/
23+
@JsonProperty("endCustomer")
24+
private EndCustomer endCustomer;
25+
26+
/**
27+
* The type of financial limit being informed about.
28+
*/
29+
@JsonProperty("limitType")
30+
private FinancialLimitType limitType;
31+
32+
/**
33+
* The frequency of the limit enforcement.
34+
*/
35+
@JsonProperty("frequency")
36+
private LimitFrequency frequency;
37+
38+
/**
39+
* Retrieves the financial amount associated with the limit.
40+
*
41+
* @return the amount instance
42+
*/
43+
public Amount getAmount() {
44+
return this.amount;
45+
}
46+
47+
/**
48+
* Sets the financial amount associated with the limit.
49+
*
50+
* @param value the amount instance
51+
*/
52+
public void setAmount(Amount value) {
53+
this.amount = value;
54+
}
55+
56+
/**
57+
* Retrieves the end customer information.
58+
*
59+
* @return the end customer instance
60+
*/
61+
public EndCustomer getEndCustomer() {
62+
return this.endCustomer;
63+
}
64+
65+
/**
66+
* Sets the end customer information.
67+
*
68+
* @param value the end customer instance
69+
*/
70+
public void setEndCustomer(EndCustomer value) {
71+
this.endCustomer = value;
72+
}
73+
74+
/**
75+
* Retrieves the type of financial limit.
76+
*
77+
* @return the financial limit type instance
78+
*/
79+
public FinancialLimitType getLimitType() {
80+
return this.limitType;
81+
}
82+
83+
/**
84+
* Sets the type of financial limit.
85+
*
86+
* @param value the financial limit type instance
87+
*/
88+
public void setLimitType(FinancialLimitType value) {
89+
this.limitType = value;
90+
}
91+
92+
/**
93+
* Retrieves the frequency of the financial limit enforcement.
94+
*
95+
* @return the frequency instance
96+
*/
97+
public LimitFrequency getFrequency() {
98+
return this.frequency;
99+
}
100+
101+
/**
102+
* Sets the frequency of the financial limit enforcement.
103+
*
104+
* @param value the frequency instance
105+
*/
106+
public void setFrequency(LimitFrequency value) {
107+
this.frequency = value;
108+
}
109+
110+
/**
111+
* Creates a new builder instance for constructing a {@code FinancialLimitInformRequest}.
112+
*
113+
* @return a new Builder instance
114+
*/
115+
public static Builder newBuilder() {
116+
return new Builder();
117+
}
118+
119+
/**
120+
* Builder class for {@code FinancialLimitInformRequest} to facilitate object creation.
121+
*/
122+
public static class Builder {
123+
124+
/**
125+
* Instance of {@code FinancialLimitInformRequest} being built.
126+
*/
127+
private final FinancialLimitInformRequest instance = new FinancialLimitInformRequest();
128+
129+
/**
130+
* Private constructor to enforce the use of {@code newBuilder()}.
131+
*/
132+
private Builder() {
133+
}
134+
135+
/**
136+
* Builds and returns the {@code FinancialLimitInformRequest} instance.
137+
*
138+
* @return the constructed {@code FinancialLimitInformRequest} instance
139+
*/
140+
public FinancialLimitInformRequest build() {
141+
return this.instance;
142+
}
143+
144+
/**
145+
* Sets the financial amount associated with the limit.
146+
*
147+
* @param value the amount instance
148+
* @return the builder instance
149+
*/
150+
public Builder setAmount(Amount value) {
151+
this.instance.setAmount(value);
152+
return this;
153+
}
154+
155+
/**
156+
* Sets the end customer information.
157+
*
158+
* @param value the end customer instance
159+
* @return the builder instance
160+
*/
161+
public Builder setEndCustomer(EndCustomer value) {
162+
this.instance.setEndCustomer(value);
163+
return this;
164+
}
165+
166+
/**
167+
* Sets the type of financial limit.
168+
*
169+
* @param value the financial limit type instance
170+
* @return the builder instance
171+
*/
172+
public Builder setLimitType(FinancialLimitType value) {
173+
this.instance.setLimitType(value);
174+
return this;
175+
}
176+
177+
/**
178+
* Sets the frequency of the financial limit enforcement.
179+
*
180+
* @param value the frequency instance
181+
* @return the builder instance
182+
*/
183+
public Builder setFrequency(LimitFrequency value) {
184+
this.instance.setFrequency(value);
185+
return this;
186+
}
187+
}
188+
}

0 commit comments

Comments
 (0)