Skip to content

Commit 6c8262d

Browse files
committed
[Librarian] Regenerated @ 4e75c7be2507558854a659be2e05b171bcf7512b
1 parent e01d01c commit 6c8262d

File tree

16 files changed

+652
-72
lines changed

16 files changed

+652
-72
lines changed

CHANGES.md

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

4+
[2021-06-30] Version 8.16.0
5+
---------------------------
6+
**Conversations**
7+
- Read-only Conversation Email Binding property `binding`
8+
9+
**Supersim**
10+
- Add Billing Period resource for the Super Sim Pilot
11+
- Add List endpoint to Billing Period resource for Super Sim Pilot
12+
- Add Fetch endpoint to Billing Period resource for Super Sim Pilot
13+
14+
**Taskrouter**
15+
- Update `transcribe` & `transcription_configuration` form params in Reservation update endpoint to have private visibility **(breaking change)**
16+
- Add `transcribe` & `transcription_configuration` form params to Reservation update endpoint
17+
18+
**Twiml**
19+
- Add `modify` event to `statusCallbackEvent` for `<Conference>`.
20+
21+
422
[2021-06-16] Version 8.15.0
523
---------------------------
624
**Library - Chore**

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

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -425,25 +425,21 @@ public static MessageReader reader() {
425425
* @param pathAccountSid The SID of the Account that created the resources to
426426
* update
427427
* @param pathSid The unique string that identifies the resource
428-
* @param body The text of the message you want to send
429428
* @return MessageUpdater capable of executing the update
430429
*/
431430
public static MessageUpdater updater(final String pathAccountSid,
432-
final String pathSid,
433-
final String body) {
434-
return new MessageUpdater(pathAccountSid, pathSid, body);
431+
final String pathSid) {
432+
return new MessageUpdater(pathAccountSid, pathSid);
435433
}
436434

437435
/**
438436
* Create a MessageUpdater to execute update.
439437
*
440438
* @param pathSid The unique string that identifies the resource
441-
* @param body The text of the message you want to send
442439
* @return MessageUpdater capable of executing the update
443440
*/
444-
public static MessageUpdater updater(final String pathSid,
445-
final String body) {
446-
return new MessageUpdater(pathSid, body);
441+
public static MessageUpdater updater(final String pathSid) {
442+
return new MessageUpdater(pathSid);
447443
}
448444

449445
/**

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

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,18 +20,15 @@
2020
public class MessageUpdater extends Updater<Message> {
2121
private String pathAccountSid;
2222
private final String pathSid;
23-
private final String body;
23+
private String body;
2424

2525
/**
2626
* Construct a new MessageUpdater.
2727
*
2828
* @param pathSid The unique string that identifies the resource
29-
* @param body The text of the message you want to send
3029
*/
31-
public MessageUpdater(final String pathSid,
32-
final String body) {
30+
public MessageUpdater(final String pathSid) {
3331
this.pathSid = pathSid;
34-
this.body = body;
3532
}
3633

3734
/**
@@ -40,14 +37,23 @@ public MessageUpdater(final String pathSid,
4037
* @param pathAccountSid The SID of the Account that created the resources to
4138
* update
4239
* @param pathSid The unique string that identifies the resource
43-
* @param body The text of the message you want to send
4440
*/
4541
public MessageUpdater(final String pathAccountSid,
46-
final String pathSid,
47-
final String body) {
42+
final String pathSid) {
4843
this.pathAccountSid = pathAccountSid;
4944
this.pathSid = pathSid;
45+
}
46+
47+
/**
48+
* The text of the message you want to send. Can be up to 1,600 characters
49+
* long..
50+
*
51+
* @param body The text of the message you want to send
52+
* @return this
53+
*/
54+
public MessageUpdater setBody(final String body) {
5055
this.body = body;
56+
return this;
5157
}
5258

5359
/**

src/main/java/com/twilio/rest/api/v2010/account/conference/ParticipantCreator.java

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -399,8 +399,8 @@ public ParticipantCreator setConferenceStatusCallbackMethod(final HttpMethod con
399399
/**
400400
* The conference state changes that should generate a call to
401401
* `conference_status_callback`. Can be: `start`, `end`, `join`, `leave`,
402-
* `mute`, `hold`, `speaker`, and `announcement`. Separate multiple values with
403-
* a space. Defaults to `start end`..
402+
* `mute`, `hold`, `modify`, `speaker`, and `announcement`. Separate multiple
403+
* values with a space. Defaults to `start end`..
404404
*
405405
* @param conferenceStatusCallbackEvent The conference state changes that
406406
* should generate a call to
@@ -415,8 +415,8 @@ public ParticipantCreator setConferenceStatusCallbackEvent(final List<String> co
415415
/**
416416
* The conference state changes that should generate a call to
417417
* `conference_status_callback`. Can be: `start`, `end`, `join`, `leave`,
418-
* `mute`, `hold`, `speaker`, and `announcement`. Separate multiple values with
419-
* a space. Defaults to `start end`..
418+
* `mute`, `hold`, `modify`, `speaker`, and `announcement`. Separate multiple
419+
* values with a space. Defaults to `start end`..
420420
*
421421
* @param conferenceStatusCallbackEvent The conference state changes that
422422
* should generate a call to
@@ -562,9 +562,9 @@ public ParticipantCreator setConferenceRecordingStatusCallbackMethod(final HttpM
562562

563563
/**
564564
* The recording state changes that should generate a call to
565-
* `recording_status_callback`. Can be: `in-progress`, `completed`, and
566-
* `failed`. Separate multiple values with a space. The default value is
567-
* `in-progress completed failed`..
565+
* `recording_status_callback`. Can be: `started`, `in-progress`, `paused`,
566+
* `resumed`, `stopped`, `completed`, `failed`, and `absent`. Separate multiple
567+
* values with a space, ex: `'in-progress completed failed'`..
568568
*
569569
* @param recordingStatusCallbackEvent The recording state changes that should
570570
* generate a call to
@@ -578,9 +578,9 @@ public ParticipantCreator setRecordingStatusCallbackEvent(final List<String> rec
578578

579579
/**
580580
* The recording state changes that should generate a call to
581-
* `recording_status_callback`. Can be: `in-progress`, `completed`, and
582-
* `failed`. Separate multiple values with a space. The default value is
583-
* `in-progress completed failed`..
581+
* `recording_status_callback`. Can be: `started`, `in-progress`, `paused`,
582+
* `resumed`, `stopped`, `completed`, `failed`, and `absent`. Separate multiple
583+
* values with a space, ex: `'in-progress completed failed'`..
584584
*
585585
* @param recordingStatusCallbackEvent The recording state changes that should
586586
* generate a call to
@@ -594,8 +594,8 @@ public ParticipantCreator setRecordingStatusCallbackEvent(final String recording
594594
/**
595595
* The conference recording state changes that generate a call to
596596
* `conference_recording_status_callback`. Can be: `in-progress`, `completed`,
597-
* and `failed`. Separate multiple values with a space. The default value is
598-
* `in-progress completed failed`..
597+
* `failed`, and `absent`. Separate multiple values with a space, ex:
598+
* `'in-progress completed failed'`.
599599
*
600600
* @param conferenceRecordingStatusCallbackEvent The conference recording state
601601
* changes that should generate a
@@ -611,8 +611,8 @@ public ParticipantCreator setConferenceRecordingStatusCallbackEvent(final List<S
611611
/**
612612
* The conference recording state changes that generate a call to
613613
* `conference_recording_status_callback`. Can be: `in-progress`, `completed`,
614-
* and `failed`. Separate multiple values with a space. The default value is
615-
* `in-progress completed failed`..
614+
* `failed`, and `absent`. Separate multiple values with a space, ex:
615+
* `'in-progress completed failed'`.
616616
*
617617
* @param conferenceRecordingStatusCallbackEvent The conference recording state
618618
* changes that should generate a

src/main/java/com/twilio/rest/conversations/v1/Conversation.java

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
@JsonIgnoreProperties(ignoreUnknown = true)
3838
@ToString
3939
public class Conversation extends Resource {
40-
private static final long serialVersionUID = 235657538705254L;
40+
private static final long serialVersionUID = 166881016060302L;
4141

4242
public enum WebhookEnabledType {
4343
TRUE("true"),
@@ -189,6 +189,7 @@ public static Conversation fromJson(final InputStream json, final ObjectMapper o
189189
private final Map<String, Object> timers;
190190
private final URI url;
191191
private final Map<String, String> links;
192+
private final Map<String, Object> bindings;
192193

193194
@JsonCreator
194195
private Conversation(@JsonProperty("account_sid")
@@ -216,7 +217,9 @@ private Conversation(@JsonProperty("account_sid")
216217
@JsonProperty("url")
217218
final URI url,
218219
@JsonProperty("links")
219-
final Map<String, String> links) {
220+
final Map<String, String> links,
221+
@JsonProperty("bindings")
222+
final Map<String, Object> bindings) {
220223
this.accountSid = accountSid;
221224
this.chatServiceSid = chatServiceSid;
222225
this.messagingServiceSid = messagingServiceSid;
@@ -230,6 +233,7 @@ private Conversation(@JsonProperty("account_sid")
230233
this.timers = timers;
231234
this.url = url;
232235
this.links = links;
236+
this.bindings = bindings;
233237
}
234238

235239
/**
@@ -355,6 +359,15 @@ public final Map<String, String> getLinks() {
355359
return this.links;
356360
}
357361

362+
/**
363+
* Returns The bindings.
364+
*
365+
* @return The bindings
366+
*/
367+
public final Map<String, Object> getBindings() {
368+
return this.bindings;
369+
}
370+
358371
@Override
359372
public boolean equals(final Object o) {
360373
if (this == o) {
@@ -379,7 +392,8 @@ public boolean equals(final Object o) {
379392
Objects.equals(dateUpdated, other.dateUpdated) &&
380393
Objects.equals(timers, other.timers) &&
381394
Objects.equals(url, other.url) &&
382-
Objects.equals(links, other.links);
395+
Objects.equals(links, other.links) &&
396+
Objects.equals(bindings, other.bindings);
383397
}
384398

385399
@Override
@@ -396,6 +410,7 @@ public int hashCode() {
396410
dateUpdated,
397411
timers,
398412
url,
399-
links);
413+
links,
414+
bindings);
400415
}
401416
}

src/main/java/com/twilio/rest/conversations/v1/service/Conversation.java

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
@JsonIgnoreProperties(ignoreUnknown = true)
3838
@ToString
3939
public class Conversation extends Resource {
40-
private static final long serialVersionUID = 235657538705254L;
40+
private static final long serialVersionUID = 166881016060302L;
4141

4242
public enum WebhookEnabledType {
4343
TRUE("true"),
@@ -202,6 +202,7 @@ public static Conversation fromJson(final InputStream json, final ObjectMapper o
202202
private final Map<String, Object> timers;
203203
private final URI url;
204204
private final Map<String, String> links;
205+
private final Map<String, Object> bindings;
205206

206207
@JsonCreator
207208
private Conversation(@JsonProperty("account_sid")
@@ -229,7 +230,9 @@ private Conversation(@JsonProperty("account_sid")
229230
@JsonProperty("url")
230231
final URI url,
231232
@JsonProperty("links")
232-
final Map<String, String> links) {
233+
final Map<String, String> links,
234+
@JsonProperty("bindings")
235+
final Map<String, Object> bindings) {
233236
this.accountSid = accountSid;
234237
this.chatServiceSid = chatServiceSid;
235238
this.messagingServiceSid = messagingServiceSid;
@@ -243,6 +246,7 @@ private Conversation(@JsonProperty("account_sid")
243246
this.timers = timers;
244247
this.url = url;
245248
this.links = links;
249+
this.bindings = bindings;
246250
}
247251

248252
/**
@@ -368,6 +372,15 @@ public final Map<String, String> getLinks() {
368372
return this.links;
369373
}
370374

375+
/**
376+
* Returns The bindings.
377+
*
378+
* @return The bindings
379+
*/
380+
public final Map<String, Object> getBindings() {
381+
return this.bindings;
382+
}
383+
371384
@Override
372385
public boolean equals(final Object o) {
373386
if (this == o) {
@@ -392,7 +405,8 @@ public boolean equals(final Object o) {
392405
Objects.equals(dateUpdated, other.dateUpdated) &&
393406
Objects.equals(timers, other.timers) &&
394407
Objects.equals(url, other.url) &&
395-
Objects.equals(links, other.links);
408+
Objects.equals(links, other.links) &&
409+
Objects.equals(bindings, other.bindings);
396410
}
397411

398412
@Override
@@ -409,6 +423,7 @@ public int hashCode() {
409423
dateUpdated,
410424
timers,
411425
url,
412-
links);
426+
links,
427+
bindings);
413428
}
414429
}

src/main/java/com/twilio/rest/supersim/v1/Sim.java

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
@JsonIgnoreProperties(ignoreUnknown = true)
4141
@ToString
4242
public class Sim extends Resource {
43-
private static final long serialVersionUID = 267800275352549L;
43+
private static final long serialVersionUID = 138273270353019L;
4444

4545
public enum Status {
4646
NEW("new"),
@@ -186,6 +186,7 @@ public static Sim fromJson(final InputStream json, final ObjectMapper objectMapp
186186
private final ZonedDateTime dateCreated;
187187
private final ZonedDateTime dateUpdated;
188188
private final URI url;
189+
private final Map<String, String> links;
189190

190191
@JsonCreator
191192
private Sim(@JsonProperty("sid")
@@ -205,7 +206,9 @@ private Sim(@JsonProperty("sid")
205206
@JsonProperty("date_updated")
206207
final String dateUpdated,
207208
@JsonProperty("url")
208-
final URI url) {
209+
final URI url,
210+
@JsonProperty("links")
211+
final Map<String, String> links) {
209212
this.sid = sid;
210213
this.uniqueName = uniqueName;
211214
this.accountSid = accountSid;
@@ -215,6 +218,7 @@ private Sim(@JsonProperty("sid")
215218
this.dateCreated = DateConverter.iso8601DateTimeFromString(dateCreated);
216219
this.dateUpdated = DateConverter.iso8601DateTimeFromString(dateUpdated);
217220
this.url = url;
221+
this.links = links;
218222
}
219223

220224
/**
@@ -298,6 +302,15 @@ public final URI getUrl() {
298302
return this.url;
299303
}
300304

305+
/**
306+
* Returns The links.
307+
*
308+
* @return The links
309+
*/
310+
public final Map<String, String> getLinks() {
311+
return this.links;
312+
}
313+
301314
@Override
302315
public boolean equals(final Object o) {
303316
if (this == o) {
@@ -318,7 +331,8 @@ public boolean equals(final Object o) {
318331
Objects.equals(fleetSid, other.fleetSid) &&
319332
Objects.equals(dateCreated, other.dateCreated) &&
320333
Objects.equals(dateUpdated, other.dateUpdated) &&
321-
Objects.equals(url, other.url);
334+
Objects.equals(url, other.url) &&
335+
Objects.equals(links, other.links);
322336
}
323337

324338
@Override
@@ -331,6 +345,7 @@ public int hashCode() {
331345
fleetSid,
332346
dateCreated,
333347
dateUpdated,
334-
url);
348+
url,
349+
links);
335350
}
336351
}

0 commit comments

Comments
 (0)