@@ -32,7 +32,8 @@ public record QuoteRequest(
3232 @Schema(description = "US state of the product being quoted", example = "TX")
3333 RegulatoryState regulatoryState,
3434
35- @Schema(description = "Reason for a quote", example = "New Business") String amendmentReason,
35+ @Schema(description = "Reason for a quote", example = "New Business")
36+ String amendmentReason,
3637
3738 int x,
3839 int j) {}
@@ -79,24 +80,28 @@ public record Game(
7980 @JsonProperty("accumulating") @JsonPropertyDescription("Marks which games with accumulating bonuses.")
8081 Boolean accumulating,
8182
82- @JsonProperty("bonus_buy") @JsonPropertyDescription("Games with purchasable bonuses.") Boolean bonusBuy,
83+ @JsonProperty("bonus_buy") @JsonPropertyDescription("Games with purchasable bonuses.")
84+ Boolean bonusBuy,
8385
8486 @JsonProperty("category")
8587 @JsonPropertyDescription("Game's category. Allowed values: slots, roulette, card, "
8688 + "casual, lottery, poker, craps, video_poker")
8789 String category,
8890
89- @JsonProperty("hd") @JsonPropertyDescription("HD format games.") Boolean hd,
91+ @JsonProperty("hd") @JsonPropertyDescription("HD format games.")
92+ Boolean hd,
9093
91- @JsonProperty("new") @JsonPropertyDescription("New format games.") Boolean assa,
94+ @JsonProperty("new") @JsonPropertyDescription("New format games.")
95+ Boolean assa,
9296
9397 @JsonProperty("hit_rate")
9498 @JsonPropertyDescription("Frequency of wins per 100 bets. The higher, the hit rate the lower the volatility "
9599 + "rating, and vice versa. Positive value. For slots only. "
96100 + "Match pattern: ^\\d{1,18}(\\.\\d{1,12})?$")
97101 String hitRate,
98102
99- @JsonProperty("params") @JsonPropertyDescription("Game's custom parameters.") Map<String, String> params) {
103+ @JsonProperty("params") @JsonPropertyDescription("Game's custom parameters.")
104+ Map<String, String> params) {
100105
101106 private void get(@JsonNode("value") String value) {}
102107
@@ -110,7 +115,11 @@ record ApiEndpoint(@JsonValue("name") String name, HttpMethod method, String url
110115}
111116
112117record ApiEndpoint(
113- @JsonValue(name = "name")
118+ @JsonProperty("bonus_buy")
119+ @JsonValue(
120+ some_other_name_that_is_here = "value",
121+ name_which_is_super_long_that_goes_beyond_the_limit = "name",
122+ other = "other")
114123 String name,
115124
116125 HttpMethod method,
@@ -119,3 +128,19 @@ record ApiEndpoint(
119128 name = name.toUpperCase();
120129 }
121130}
131+
132+ record ApiEndpoint(@JsonValue(name = "name") String name, HttpMethod method, String url) {
133+ ApiEndpoint {
134+ name = name.toUpperCase();
135+ }
136+ }
137+
138+ record ApiEndpoint(
139+ @JsonValue(name = "name") String name,
140+ HttpMethod method,
141+ String url,
142+ @JsonValue(name = "name") String name) {
143+ ApiEndpoint {
144+ name = name.toUpperCase();
145+ }
146+ }
0 commit comments