Skip to content

Commit 2832360

Browse files
committed
Regenerate with latest OpenAPI generator version
1 parent eb3c34b commit 2832360

File tree

354 files changed

+3128
-3095
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

354 files changed

+3128
-3095
lines changed

brevo-java-client/src/generated/java/software/xdev/brevo/client/ApiClient.java

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@
5656
import java.util.Date;
5757
import java.util.function.Supplier;
5858
import java.util.TimeZone;
59+
import java.util.concurrent.ConcurrentHashMap;
5960
import java.util.regex.Matcher;
6061
import java.util.regex.Pattern;
6162

@@ -101,8 +102,8 @@ public class ApiClient extends JavaTimeFormatter {
101102

102103
private Map<String, Authentication> authentications;
103104

104-
private int statusCode;
105-
private Map<String, List<String>> responseHeaders;
105+
private Map<Long, Integer> lastStatusCodeByThread = new ConcurrentHashMap<>();
106+
private Map<Long, Map<String, List<String>>> lastResponseHeadersByThread = new ConcurrentHashMap<>();
106107

107108
private DateFormat dateFormat;
108109

@@ -247,16 +248,18 @@ public ApiClient setServerVariables(Map<String, String> serverVariables) {
247248
*
248249
* @return Status code
249250
*/
251+
@Deprecated
250252
public int getStatusCode() {
251-
return statusCode;
253+
return lastStatusCodeByThread.get(Thread.currentThread().getId());
252254
}
253255

254256
/**
255257
* Gets the response headers of the previous request
256258
* @return Response headers
257259
*/
260+
@Deprecated
258261
public Map<String, List<String>> getResponseHeaders() {
259-
return responseHeaders;
262+
return lastResponseHeadersByThread.get(Thread.currentThread().getId());
260263
}
261264

262265
/**
@@ -745,10 +748,11 @@ public <T> T deserialize(CloseableHttpResponse response, TypeReference<T> valueT
745748
}
746749

747750
return objectMapper.readValue(content, valueType);
748-
} else if ("text/plain".equalsIgnoreCase(mimeType)) {
751+
} else if (mimeType.toLowerCase().startsWith("text/")) {
749752
// convert input stream to string
750753
return (T) EntityUtils.toString(entity);
751754
} else {
755+
Map<String, List<String>> responseHeaders = transformResponseHeaders(response.getHeaders());
752756
throw new ApiException(
753757
"Deserialization for content type '" + mimeType + "' not supported for type '" + valueType + "'",
754758
response.getCode(),
@@ -894,12 +898,15 @@ protected Cookie buildCookie(String key, String value, URI uri) {
894898
}
895899

896900
protected <T> T processResponse(CloseableHttpResponse response, TypeReference<T> returnType) throws ApiException, IOException, ParseException {
897-
statusCode = response.getCode();
901+
int statusCode = response.getCode();
902+
lastStatusCodeByThread.put(Thread.currentThread().getId(), statusCode);
898903
if (statusCode == HttpStatus.SC_NO_CONTENT) {
899904
return null;
900905
}
901906

902-
responseHeaders = transformResponseHeaders(response.getHeaders());
907+
Map<String, List<String>> responseHeaders = transformResponseHeaders(response.getHeaders());
908+
lastResponseHeadersByThread.put(Thread.currentThread().getId(), responseHeaders);
909+
903910
if (isSuccessfulStatus(statusCode)) {
904911
return this.deserialize(response, returnType);
905912
} else {

brevo-java-client/src/generated/java/software/xdev/brevo/client/ServerConfiguration.java

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
/*
2+
* Brevo API
3+
* Brevo API documentation by XDEV Software based on https://api.brevo.com/v3/swagger_definition_v3.yml
4+
*
5+
* The version of the OpenAPI document: 3.0.0
6+
*
7+
*
8+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9+
* https://openapi-generator.tech
10+
* Do not edit the class manually.
11+
*/
12+
13+
114
package software.xdev.brevo.client;
215

316
import java.util.Map;

brevo-java-client/src/generated/java/software/xdev/brevo/client/ServerVariable.java

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
/*
2+
* Brevo API
3+
* Brevo API documentation by XDEV Software based on https://api.brevo.com/v3/swagger_definition_v3.yml
4+
*
5+
* The version of the OpenAPI document: 3.0.0
6+
*
7+
*
8+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9+
* https://openapi-generator.tech
10+
* Do not edit the class manually.
11+
*/
12+
13+
114
package software.xdev.brevo.client;
215

316
import java.util.HashSet;

brevo-java-client/src/generated/java/software/xdev/brevo/model/AbTestCampaignResult.java

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public class AbTestCampaignResult {
4747
* Winning Campaign Info. pending &#x3D; Campaign has been picked for sending and winning version is yet to be decided, tie &#x3D; A tie happened between both the versions, notAvailable &#x3D; Campaign has not yet been picked for sending.
4848
*/
4949
public enum WinningVersionEnum {
50-
NOTAVAILABLE("notAvailable"),
50+
NOT_AVAILABLE("notAvailable"),
5151

5252
PENDING("pending"),
5353

@@ -152,10 +152,10 @@ public AbTestCampaignResult winningVersion(WinningVersionEnum winningVersion) {
152152
return this;
153153
}
154154

155-
/**
155+
/**
156156
* Winning Campaign Info. pending &#x3D; Campaign has been picked for sending and winning version is yet to be decided, tie &#x3D; A tie happened between both the versions, notAvailable &#x3D; Campaign has not yet been picked for sending.
157157
* @return winningVersion
158-
**/
158+
*/
159159
@jakarta.annotation.Nullable
160160
@JsonProperty(JSON_PROPERTY_WINNING_VERSION)
161161
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
@@ -177,10 +177,10 @@ public AbTestCampaignResult winningCriteria(WinningCriteriaEnum winningCriteria)
177177
return this;
178178
}
179179

180-
/**
180+
/**
181181
* Criteria choosen for winning version (Open/Click)
182182
* @return winningCriteria
183-
**/
183+
*/
184184
@jakarta.annotation.Nullable
185185
@JsonProperty(JSON_PROPERTY_WINNING_CRITERIA)
186186
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
@@ -202,10 +202,10 @@ public AbTestCampaignResult winningSubjectLine(String winningSubjectLine) {
202202
return this;
203203
}
204204

205-
/**
205+
/**
206206
* Subject Line of current winning version
207207
* @return winningSubjectLine
208-
**/
208+
*/
209209
@jakarta.annotation.Nullable
210210
@JsonProperty(JSON_PROPERTY_WINNING_SUBJECT_LINE)
211211
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
@@ -227,10 +227,10 @@ public AbTestCampaignResult openRate(String openRate) {
227227
return this;
228228
}
229229

230-
/**
230+
/**
231231
* Open rate for current winning version
232232
* @return openRate
233-
**/
233+
*/
234234
@jakarta.annotation.Nullable
235235
@JsonProperty(JSON_PROPERTY_OPEN_RATE)
236236
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
@@ -252,10 +252,10 @@ public AbTestCampaignResult clickRate(String clickRate) {
252252
return this;
253253
}
254254

255-
/**
255+
/**
256256
* Click rate for current winning version
257257
* @return clickRate
258-
**/
258+
*/
259259
@jakarta.annotation.Nullable
260260
@JsonProperty(JSON_PROPERTY_CLICK_RATE)
261261
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
@@ -277,10 +277,10 @@ public AbTestCampaignResult winningVersionRate(String winningVersionRate) {
277277
return this;
278278
}
279279

280-
/**
280+
/**
281281
* Open/Click rate for the winner version
282282
* @return winningVersionRate
283-
**/
283+
*/
284284
@jakarta.annotation.Nullable
285285
@JsonProperty(JSON_PROPERTY_WINNING_VERSION_RATE)
286286
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
@@ -302,10 +302,10 @@ public AbTestCampaignResult statistics(AbTestCampaignResultStatistics statistics
302302
return this;
303303
}
304304

305-
/**
305+
/**
306306
* Get statistics
307307
* @return statistics
308-
**/
308+
*/
309309
@jakarta.annotation.Nullable
310310
@JsonProperty(JSON_PROPERTY_STATISTICS)
311311
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
@@ -327,10 +327,10 @@ public AbTestCampaignResult clickedLinks(AbTestCampaignResultClickedLinks clicke
327327
return this;
328328
}
329329

330-
/**
330+
/**
331331
* Get clickedLinks
332332
* @return clickedLinks
333-
**/
333+
*/
334334
@jakarta.annotation.Nullable
335335
@JsonProperty(JSON_PROPERTY_CLICKED_LINKS)
336336
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

brevo-java-client/src/generated/java/software/xdev/brevo/model/AbTestCampaignResultClickedLinks.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,10 @@ public AbTestCampaignResultClickedLinks addVersionAItem(AbTestVersionClicksInner
6262
return this;
6363
}
6464

65-
/**
65+
/**
6666
* Information on clicked links for a particular version
6767
* @return versionA
68-
**/
68+
*/
6969
@jakarta.annotation.Nonnull
7070
@JsonProperty(JSON_PROPERTY_VERSION_A)
7171
@JsonInclude(value = JsonInclude.Include.ALWAYS)
@@ -95,10 +95,10 @@ public AbTestCampaignResultClickedLinks addVersionBItem(AbTestVersionClicksInner
9595
return this;
9696
}
9797

98-
/**
98+
/**
9999
* Information on clicked links for a particular version
100100
* @return versionB
101-
**/
101+
*/
102102
@jakarta.annotation.Nonnull
103103
@JsonProperty(JSON_PROPERTY_VERSION_B)
104104
@JsonInclude(value = JsonInclude.Include.ALWAYS)

brevo-java-client/src/generated/java/software/xdev/brevo/model/AbTestCampaignResultStatistics.java

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,10 @@ public AbTestCampaignResultStatistics openers(AbTestVersionStats openers) {
6767
return this;
6868
}
6969

70-
/**
70+
/**
7171
* Get openers
7272
* @return openers
73-
**/
73+
*/
7474
@jakarta.annotation.Nonnull
7575
@JsonProperty(JSON_PROPERTY_OPENERS)
7676
@JsonInclude(value = JsonInclude.Include.ALWAYS)
@@ -92,10 +92,10 @@ public AbTestCampaignResultStatistics clicks(AbTestVersionStats clicks) {
9292
return this;
9393
}
9494

95-
/**
95+
/**
9696
* Get clicks
9797
* @return clicks
98-
**/
98+
*/
9999
@jakarta.annotation.Nonnull
100100
@JsonProperty(JSON_PROPERTY_CLICKS)
101101
@JsonInclude(value = JsonInclude.Include.ALWAYS)
@@ -117,10 +117,10 @@ public AbTestCampaignResultStatistics unsubscribed(AbTestVersionStats unsubscrib
117117
return this;
118118
}
119119

120-
/**
120+
/**
121121
* Get unsubscribed
122122
* @return unsubscribed
123-
**/
123+
*/
124124
@jakarta.annotation.Nonnull
125125
@JsonProperty(JSON_PROPERTY_UNSUBSCRIBED)
126126
@JsonInclude(value = JsonInclude.Include.ALWAYS)
@@ -142,10 +142,10 @@ public AbTestCampaignResultStatistics hardBounces(AbTestVersionStats hardBounces
142142
return this;
143143
}
144144

145-
/**
145+
/**
146146
* Get hardBounces
147147
* @return hardBounces
148-
**/
148+
*/
149149
@jakarta.annotation.Nonnull
150150
@JsonProperty(JSON_PROPERTY_HARD_BOUNCES)
151151
@JsonInclude(value = JsonInclude.Include.ALWAYS)
@@ -167,10 +167,10 @@ public AbTestCampaignResultStatistics softBounces(AbTestVersionStats softBounces
167167
return this;
168168
}
169169

170-
/**
170+
/**
171171
* Get softBounces
172172
* @return softBounces
173-
**/
173+
*/
174174
@jakarta.annotation.Nonnull
175175
@JsonProperty(JSON_PROPERTY_SOFT_BOUNCES)
176176
@JsonInclude(value = JsonInclude.Include.ALWAYS)
@@ -192,10 +192,10 @@ public AbTestCampaignResultStatistics complaints(AbTestVersionStats complaints)
192192
return this;
193193
}
194194

195-
/**
195+
/**
196196
* Get complaints
197197
* @return complaints
198-
**/
198+
*/
199199
@jakarta.annotation.Nonnull
200200
@JsonProperty(JSON_PROPERTY_COMPLAINTS)
201201
@JsonInclude(value = JsonInclude.Include.ALWAYS)

brevo-java-client/src/generated/java/software/xdev/brevo/model/AbTestVersionClicksInner.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,10 @@ public AbTestVersionClicksInner link(String link) {
5454
return this;
5555
}
5656

57-
/**
57+
/**
5858
* URL of the link
5959
* @return link
60-
**/
60+
*/
6161
@jakarta.annotation.Nonnull
6262
@JsonProperty(JSON_PROPERTY_LINK)
6363
@JsonInclude(value = JsonInclude.Include.ALWAYS)
@@ -79,10 +79,10 @@ public AbTestVersionClicksInner clicksCount(Long clicksCount) {
7979
return this;
8080
}
8181

82-
/**
82+
/**
8383
* Number of times a link is clicked
8484
* @return clicksCount
85-
**/
85+
*/
8686
@jakarta.annotation.Nonnull
8787
@JsonProperty(JSON_PROPERTY_CLICKS_COUNT)
8888
@JsonInclude(value = JsonInclude.Include.ALWAYS)
@@ -104,10 +104,10 @@ public AbTestVersionClicksInner clickRate(String clickRate) {
104104
return this;
105105
}
106106

107-
/**
107+
/**
108108
* Percentage of clicks of link with respect to total clicks
109109
* @return clickRate
110-
**/
110+
*/
111111
@jakarta.annotation.Nonnull
112112
@JsonProperty(JSON_PROPERTY_CLICK_RATE)
113113
@JsonInclude(value = JsonInclude.Include.ALWAYS)

brevo-java-client/src/generated/java/software/xdev/brevo/model/AbTestVersionStats.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,10 @@ public AbTestVersionStats versionA(String versionA) {
5050
return this;
5151
}
5252

53-
/**
53+
/**
5454
* percentage of an event for version A
5555
* @return versionA
56-
**/
56+
*/
5757
@jakarta.annotation.Nonnull
5858
@JsonProperty(JSON_PROPERTY_VERSION_A)
5959
@JsonInclude(value = JsonInclude.Include.ALWAYS)
@@ -75,10 +75,10 @@ public AbTestVersionStats versionB(String versionB) {
7575
return this;
7676
}
7777

78-
/**
78+
/**
7979
* percentage of an event for version B
8080
* @return versionB
81-
**/
81+
*/
8282
@jakarta.annotation.Nonnull
8383
@JsonProperty(JSON_PROPERTY_VERSION_B)
8484
@JsonInclude(value = JsonInclude.Include.ALWAYS)

brevo-java-client/src/generated/java/software/xdev/brevo/model/AddChildDomain.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,10 @@ public AddChildDomain domain(String domain) {
4646
return this;
4747
}
4848

49-
/**
49+
/**
5050
* Sender domain to add for a specific child account
5151
* @return domain
52-
**/
52+
*/
5353
@jakarta.annotation.Nullable
5454
@JsonProperty(JSON_PROPERTY_DOMAIN)
5555
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

0 commit comments

Comments
 (0)