Skip to content

Commit bb5458a

Browse files
committed
[Librarian] Regenerated @ 1e94599903f1dbac80d3040ebbdba7d3f7fb074d 6af549cfa7e8d04ae26efdb2cff3835929b95b61
1 parent c5e6585 commit bb5458a

File tree

9 files changed

+96
-186
lines changed

9 files changed

+96
-186
lines changed

CHANGES.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,20 @@
11
twilio-java changelog
22
=====================
33

4+
[2023-08-10] Version 10.0.0-rc.3
5+
--------------------------------
6+
**Insights**
7+
- Normalize annotations parameters in list summary api to be prefixed
8+
9+
**Numbers**
10+
- Change Bulk_hosted_sid from BHR to BH prefix in HNO and dependent under version `/v2` API's. **(breaking change)**
11+
- Added parameter target_account_sid to portability and account_sid to response body
12+
13+
**Verify**
14+
- Remove beta feature flag to list attempts API.
15+
- Remove beta feature flag to verifications summary attempts API.
16+
17+
418
[2023-07-27] Version 10.0.0-rc.2
519
--------------------------------
620
**Api**

src/main/java/com/twilio/rest/api/v2010/account/CallReader.java

Lines changed: 4 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
import com.twilio.http.TwilioRestClient;
2828
import com.twilio.rest.Domains;
2929
import java.time.ZonedDateTime;
30-
import java.time.format.DateTimeFormatter;
3130

3231
public class CallReader extends Reader<Call> {
3332

@@ -37,11 +36,7 @@ public class CallReader extends Reader<Call> {
3736
private String parentCallSid;
3837
private Call.Status status;
3938
private ZonedDateTime startTime;
40-
private ZonedDateTime startTimeBefore;
41-
private ZonedDateTime startTimeAfter;
4239
private ZonedDateTime endTime;
43-
private ZonedDateTime endTimeBefore;
44-
private ZonedDateTime endTimeAfter;
4540
private Integer pageSize;
4641

4742
public CallReader() {}
@@ -83,31 +78,11 @@ public CallReader setStartTime(final ZonedDateTime startTime) {
8378
return this;
8479
}
8580

86-
public CallReader setStartTimeBefore(final ZonedDateTime startTimeBefore) {
87-
this.startTimeBefore = startTimeBefore;
88-
return this;
89-
}
90-
91-
public CallReader setStartTimeAfter(final ZonedDateTime startTimeAfter) {
92-
this.startTimeAfter = startTimeAfter;
93-
return this;
94-
}
95-
9681
public CallReader setEndTime(final ZonedDateTime endTime) {
9782
this.endTime = endTime;
9883
return this;
9984
}
10085

101-
public CallReader setEndTimeBefore(final ZonedDateTime endTimeBefore) {
102-
this.endTimeBefore = endTimeBefore;
103-
return this;
104-
}
105-
106-
public CallReader setEndTimeAfter(final ZonedDateTime endTimeAfter) {
107-
this.endTimeAfter = endTimeAfter;
108-
return this;
109-
}
110-
11186
public CallReader setPageSize(final Integer pageSize) {
11287
this.pageSize = pageSize;
11388
return this;
@@ -219,35 +194,14 @@ private void addQueryParams(final Request request) {
219194
if (startTime != null) {
220195
request.addQueryParam(
221196
"StartTime",
222-
startTime.format(
223-
DateTimeFormatter.ofPattern(
224-
Request.QUERY_STRING_DATE_TIME_FORMAT
225-
)
226-
)
227-
);
228-
} else if (startTimeAfter != null || startTimeBefore != null) {
229-
request.addQueryDateTimeRange(
230-
"StartTime",
231-
startTimeAfter,
232-
startTimeBefore
197+
startTime.toInstant().toString()
233198
);
234199
}
200+
235201
if (endTime != null) {
236-
request.addQueryParam(
237-
"EndTime",
238-
endTime.format(
239-
DateTimeFormatter.ofPattern(
240-
Request.QUERY_STRING_DATE_TIME_FORMAT
241-
)
242-
)
243-
);
244-
} else if (endTimeAfter != null || endTimeBefore != null) {
245-
request.addQueryDateTimeRange(
246-
"EndTime",
247-
endTimeAfter,
248-
endTimeBefore
249-
);
202+
request.addQueryParam("EndTime", endTime.toInstant().toString());
250203
}
204+
251205
if (pageSize != null) {
252206
request.addQueryParam("PageSize", pageSize.toString());
253207
}

src/main/java/com/twilio/rest/api/v2010/account/ConferenceReader.java

Lines changed: 5 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
import com.twilio.base.Page;
1818
import com.twilio.base.Reader;
1919
import com.twilio.base.ResourceSet;
20+
import com.twilio.converter.DateConverter;
2021
import com.twilio.exception.ApiConnectionException;
2122
import com.twilio.exception.ApiException;
2223
import com.twilio.exception.RestException;
@@ -26,17 +27,12 @@
2627
import com.twilio.http.TwilioRestClient;
2728
import com.twilio.rest.Domains;
2829
import java.time.LocalDate;
29-
import java.time.format.DateTimeFormatter;
3030

3131
public class ConferenceReader extends Reader<Conference> {
3232

3333
private String pathAccountSid;
3434
private LocalDate dateCreated;
35-
private LocalDate dateCreatedBefore;
36-
private LocalDate dateCreatedAfter;
3735
private LocalDate dateUpdated;
38-
private LocalDate dateUpdatedBefore;
39-
private LocalDate dateUpdatedAfter;
4036
private String friendlyName;
4137
private Conference.Status status;
4238
private Integer pageSize;
@@ -52,39 +48,11 @@ public ConferenceReader setDateCreated(final LocalDate dateCreated) {
5248
return this;
5349
}
5450

55-
public ConferenceReader setDateCreatedBefore(
56-
final LocalDate dateCreatedBefore
57-
) {
58-
this.dateCreatedBefore = dateCreatedBefore;
59-
return this;
60-
}
61-
62-
public ConferenceReader setDateCreatedAfter(
63-
final LocalDate dateCreatedAfter
64-
) {
65-
this.dateCreatedAfter = dateCreatedAfter;
66-
return this;
67-
}
68-
6951
public ConferenceReader setDateUpdated(final LocalDate dateUpdated) {
7052
this.dateUpdated = dateUpdated;
7153
return this;
7254
}
7355

74-
public ConferenceReader setDateUpdatedBefore(
75-
final LocalDate dateUpdatedBefore
76-
) {
77-
this.dateUpdatedBefore = dateUpdatedBefore;
78-
return this;
79-
}
80-
81-
public ConferenceReader setDateUpdatedAfter(
82-
final LocalDate dateUpdatedAfter
83-
) {
84-
this.dateUpdatedAfter = dateUpdatedAfter;
85-
return this;
86-
}
87-
8856
public ConferenceReader setFriendlyName(final String friendlyName) {
8957
this.friendlyName = friendlyName;
9058
return this;
@@ -194,35 +162,17 @@ private void addQueryParams(final Request request) {
194162
if (dateCreated != null) {
195163
request.addQueryParam(
196164
"DateCreated",
197-
dateCreated.format(
198-
DateTimeFormatter.ofPattern(
199-
Request.QUERY_STRING_DATE_FORMAT
200-
)
201-
)
202-
);
203-
} else if (dateCreatedAfter != null || dateCreatedBefore != null) {
204-
request.addQueryDateRange(
205-
"DateCreated",
206-
dateCreatedAfter,
207-
dateCreatedBefore
165+
DateConverter.dateStringFromLocalDate(dateCreated)
208166
);
209167
}
168+
210169
if (dateUpdated != null) {
211170
request.addQueryParam(
212171
"DateUpdated",
213-
dateUpdated.format(
214-
DateTimeFormatter.ofPattern(
215-
Request.QUERY_STRING_DATE_FORMAT
216-
)
217-
)
218-
);
219-
} else if (dateUpdatedAfter != null || dateUpdatedBefore != null) {
220-
request.addQueryDateRange(
221-
"DateUpdated",
222-
dateUpdatedAfter,
223-
dateUpdatedBefore
172+
DateConverter.dateStringFromLocalDate(dateUpdated)
224173
);
225174
}
175+
226176
if (friendlyName != null) {
227177
request.addQueryParam("FriendlyName", friendlyName);
228178
}

src/main/java/com/twilio/rest/api/v2010/account/MessageReader.java

Lines changed: 2 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -27,16 +27,13 @@
2727
import com.twilio.http.TwilioRestClient;
2828
import com.twilio.rest.Domains;
2929
import java.time.ZonedDateTime;
30-
import java.time.format.DateTimeFormatter;
3130

3231
public class MessageReader extends Reader<Message> {
3332

3433
private String pathAccountSid;
3534
private com.twilio.type.PhoneNumber to;
3635
private com.twilio.type.PhoneNumber from;
3736
private ZonedDateTime dateSent;
38-
private ZonedDateTime dateSentBefore;
39-
private ZonedDateTime dateSentAfter;
4037
private Integer pageSize;
4138

4239
public MessageReader() {}
@@ -68,16 +65,6 @@ public MessageReader setDateSent(final ZonedDateTime dateSent) {
6865
return this;
6966
}
7067

71-
public MessageReader setDateSentBefore(final ZonedDateTime dateSentBefore) {
72-
this.dateSentBefore = dateSentBefore;
73-
return this;
74-
}
75-
76-
public MessageReader setDateSentAfter(final ZonedDateTime dateSentAfter) {
77-
this.dateSentAfter = dateSentAfter;
78-
return this;
79-
}
80-
8168
public MessageReader setPageSize(final Integer pageSize) {
8269
this.pageSize = pageSize;
8370
return this;
@@ -181,21 +168,9 @@ private void addQueryParams(final Request request) {
181168
request.addQueryParam("From", from.toString());
182169
}
183170
if (dateSent != null) {
184-
request.addQueryParam(
185-
"DateSent",
186-
dateSent.format(
187-
DateTimeFormatter.ofPattern(
188-
Request.QUERY_STRING_DATE_TIME_FORMAT
189-
)
190-
)
191-
);
192-
} else if (dateSentAfter != null || dateSentBefore != null) {
193-
request.addQueryDateTimeRange(
194-
"DateSent",
195-
dateSentAfter,
196-
dateSentBefore
197-
);
171+
request.addQueryParam("DateSent", dateSent.toInstant().toString());
198172
}
173+
199174
if (pageSize != null) {
200175
request.addQueryParam("PageSize", pageSize.toString());
201176
}

src/main/java/com/twilio/rest/insights/v1/CallSummariesReader.java

Lines changed: 42 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,11 @@ public class CallSummariesReader extends Reader<CallSummaries> {
4747
private String subaccount;
4848
private Boolean abnormalSession;
4949
private CallSummaries.AnsweredBy answeredBy;
50-
private String connectivityIssue;
51-
private String qualityIssue;
52-
private Boolean spam;
53-
private String callScore;
50+
private String answeredByAnnotation;
51+
private String connectivityIssueAnnotation;
52+
private String qualityIssueAnnotation;
53+
private Boolean spamAnnotation;
54+
private String callScoreAnnotation;
5455
private Integer pageSize;
5556

5657
public CallSummariesReader() {}
@@ -158,25 +159,36 @@ public CallSummariesReader setAnsweredBy(
158159
return this;
159160
}
160161

161-
public CallSummariesReader setConnectivityIssue(
162-
final String connectivityIssue
162+
public CallSummariesReader setAnsweredByAnnotation(
163+
final String answeredByAnnotation
163164
) {
164-
this.connectivityIssue = connectivityIssue;
165+
this.answeredByAnnotation = answeredByAnnotation;
165166
return this;
166167
}
167168

168-
public CallSummariesReader setQualityIssue(final String qualityIssue) {
169-
this.qualityIssue = qualityIssue;
169+
public CallSummariesReader setConnectivityIssueAnnotation(
170+
final String connectivityIssueAnnotation
171+
) {
172+
this.connectivityIssueAnnotation = connectivityIssueAnnotation;
173+
return this;
174+
}
175+
176+
public CallSummariesReader setQualityIssueAnnotation(
177+
final String qualityIssueAnnotation
178+
) {
179+
this.qualityIssueAnnotation = qualityIssueAnnotation;
170180
return this;
171181
}
172182

173-
public CallSummariesReader setSpam(final Boolean spam) {
174-
this.spam = spam;
183+
public CallSummariesReader setSpamAnnotation(final Boolean spamAnnotation) {
184+
this.spamAnnotation = spamAnnotation;
175185
return this;
176186
}
177187

178-
public CallSummariesReader setCallScore(final String callScore) {
179-
this.callScore = callScore;
188+
public CallSummariesReader setCallScoreAnnotation(
189+
final String callScoreAnnotation
190+
) {
191+
this.callScoreAnnotation = callScoreAnnotation;
180192
return this;
181193
}
182194

@@ -330,17 +342,26 @@ private void addQueryParams(final Request request) {
330342
if (answeredBy != null) {
331343
request.addQueryParam("AnsweredBy", answeredBy.toString());
332344
}
333-
if (connectivityIssue != null) {
334-
request.addQueryParam("ConnectivityIssue", connectivityIssue);
345+
if (answeredByAnnotation != null) {
346+
request.addQueryParam("AnsweredByAnnotation", answeredByAnnotation);
335347
}
336-
if (qualityIssue != null) {
337-
request.addQueryParam("QualityIssue", qualityIssue);
348+
if (connectivityIssueAnnotation != null) {
349+
request.addQueryParam(
350+
"ConnectivityIssueAnnotation",
351+
connectivityIssueAnnotation
352+
);
353+
}
354+
if (qualityIssueAnnotation != null) {
355+
request.addQueryParam(
356+
"QualityIssueAnnotation",
357+
qualityIssueAnnotation
358+
);
338359
}
339-
if (spam != null) {
340-
request.addQueryParam("Spam", spam.toString());
360+
if (spamAnnotation != null) {
361+
request.addQueryParam("SpamAnnotation", spamAnnotation.toString());
341362
}
342-
if (callScore != null) {
343-
request.addQueryParam("CallScore", callScore);
363+
if (callScoreAnnotation != null) {
364+
request.addQueryParam("CallScoreAnnotation", callScoreAnnotation);
344365
}
345366
if (pageSize != null) {
346367
request.addQueryParam("PageSize", pageSize.toString());

src/main/java/com/twilio/rest/lookups/bulk/Query.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -541,10 +541,10 @@ public static class ReassignedNumberResponse {
541541
private String lastVerifiedDate;
542542

543543
@JsonInclude(JsonInclude.Include.NON_EMPTY)
544-
@JsonProperty("status")
544+
@JsonProperty("is_number_reassigned")
545545
@Getter
546546
@Setter
547-
private String status;
547+
private String isNumberReassigned;
548548

549549
@JsonInclude(JsonInclude.Include.NON_EMPTY)
550550
@JsonProperty("error_code")

0 commit comments

Comments
 (0)