Skip to content

Commit

Permalink
[Librarian] Regenerated @ 6726c5fd8da1e96acea0c6491c83c4413eed1a25
Browse files Browse the repository at this point in the history
  • Loading branch information
twilio-ci committed Jul 8, 2020
1 parent 895b2ab commit 5d83dc7
Show file tree
Hide file tree
Showing 44 changed files with 1,122 additions and 304 deletions.
39 changes: 39 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,45 @@
twilio-java changelog
=====================

[2020-07-08] Version 7.54.0
---------------------------
**Library - Feature**
- [PR #555](https://github.com/twilio/twilio-java/pull/555): add fax capability to deserialized phone number capabilities. Thanks to [@childish-sambino](https://github.com/childish-sambino)!
- [PR #553](https://github.com/twilio/twilio-java/pull/553): include API response headers in 'Last Response'. Thanks to [@childish-sambino](https://github.com/childish-sambino)!

**Library - Chore**
- [PR #554](https://github.com/twilio/twilio-java/pull/554): bump archunit from 0.13.0 to 0.14.1. Thanks to [@dependabot](https://github.com/dependabot)!
- [PR #550](https://github.com/twilio/twilio-java/pull/550): bump cobertura-maven-plugin from 2.2 to 2.7. Thanks to [@dependabot](https://github.com/dependabot)!
- [PR #551](https://github.com/twilio/twilio-java/pull/551): bump maven-assembly-plugin from 2.3 to 3.3.0. Thanks to [@dependabot](https://github.com/dependabot)!
- [PR #543](https://github.com/twilio/twilio-java/pull/543): bump joda-time from 2.5 to 2.10.6. Thanks to [@dependabot](https://github.com/dependabot)!
- [PR #545](https://github.com/twilio/twilio-java/pull/545): bump maven-surefire-plugin from 2.20 to 2.22.2. Thanks to [@dependabot](https://github.com/dependabot)!
- [PR #546](https://github.com/twilio/twilio-java/pull/546): bump spotbugs-maven-plugin from 3.1.12 to 4.0.4. Thanks to [@dependabot](https://github.com/dependabot)!
- [PR #547](https://github.com/twilio/twilio-java/pull/547): bump maven-checkstyle-plugin from 2.17 to 3.1.1. Thanks to [@dependabot](https://github.com/dependabot)!

**Conversations**
- Allow Address updates for Participants
- Message delivery receipts

**Events**
- Add account_sid to subscription and subscribed_events resources

**Flex**
- Changed `wfm_integrations` Flex Configuration key to private **(breaking change)**

**Messaging**
- Add error states to WhatsApp Sender status with failed reason **(breaking change)**
- Delete WhatsApp Template API
- Update WhatsApp Template API
- Add WhatsApp Template Get Api (fetch and read)

**Numbers**
- Add `valid_until` in the Bundles resource
- Add API for Bundle deletion

**Verify**
- Removed support for `sms`, `totp` and `app-push` factor types in Verify push **(breaking change)**


[2020-06-24] Version 7.53.0
---------------------------
**Library - Chore**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@

@JsonIgnoreProperties(ignoreUnknown = true)
public class IncomingPhoneNumber extends Resource {
private static final long serialVersionUID = 149023433538541L;
private static final long serialVersionUID = 15921177976546L;

public enum AddressRequirement {
NONE("none"),
Expand Down Expand Up @@ -308,6 +308,7 @@ public static IncomingPhoneNumber fromJson(final InputStream json, final ObjectM
private final HttpMethod statusCallbackMethod;
private final String trunkSid;
private final String uri;
private final IncomingPhoneNumber.VoiceReceiveMode voiceReceiveMode;
private final String voiceApplicationSid;
private final Boolean voiceCallerIdLookup;
private final HttpMethod voiceFallbackMethod;
Expand All @@ -317,6 +318,7 @@ public static IncomingPhoneNumber fromJson(final InputStream json, final ObjectM
private final IncomingPhoneNumber.EmergencyStatus emergencyStatus;
private final String emergencyAddressSid;
private final String bundleSid;
private final String status;

@JsonCreator
private IncomingPhoneNumber(@JsonProperty("account_sid")
Expand Down Expand Up @@ -363,6 +365,8 @@ private IncomingPhoneNumber(@JsonProperty("account_sid")
final String trunkSid,
@JsonProperty("uri")
final String uri,
@JsonProperty("voice_receive_mode")
final IncomingPhoneNumber.VoiceReceiveMode voiceReceiveMode,
@JsonProperty("voice_application_sid")
final String voiceApplicationSid,
@JsonProperty("voice_caller_id_lookup")
Expand All @@ -380,7 +384,9 @@ private IncomingPhoneNumber(@JsonProperty("account_sid")
@JsonProperty("emergency_address_sid")
final String emergencyAddressSid,
@JsonProperty("bundle_sid")
final String bundleSid) {
final String bundleSid,
@JsonProperty("status")
final String status) {
this.accountSid = accountSid;
this.addressSid = addressSid;
this.addressRequirements = addressRequirements;
Expand All @@ -403,6 +409,7 @@ private IncomingPhoneNumber(@JsonProperty("account_sid")
this.statusCallbackMethod = statusCallbackMethod;
this.trunkSid = trunkSid;
this.uri = uri;
this.voiceReceiveMode = voiceReceiveMode;
this.voiceApplicationSid = voiceApplicationSid;
this.voiceCallerIdLookup = voiceCallerIdLookup;
this.voiceFallbackMethod = voiceFallbackMethod;
Expand All @@ -412,6 +419,7 @@ private IncomingPhoneNumber(@JsonProperty("account_sid")
this.emergencyStatus = emergencyStatus;
this.emergencyAddressSid = emergencyAddressSid;
this.bundleSid = bundleSid;
this.status = status;
}

/**
Expand Down Expand Up @@ -618,6 +626,15 @@ public final String getUri() {
return this.uri;
}

/**
* Returns The voice_receive_mode.
*
* @return The voice_receive_mode
*/
public final IncomingPhoneNumber.VoiceReceiveMode getVoiceReceiveMode() {
return this.voiceReceiveMode;
}

/**
* Returns The SID of the application that handles calls to the phone number.
*
Expand Down Expand Up @@ -699,6 +716,15 @@ public final String getBundleSid() {
return this.bundleSid;
}

/**
* Returns The status.
*
* @return The status
*/
public final String getStatus() {
return this.status;
}

@Override
public boolean equals(final Object o) {
if (this == o) {
Expand Down Expand Up @@ -733,6 +759,7 @@ public boolean equals(final Object o) {
Objects.equals(statusCallbackMethod, other.statusCallbackMethod) &&
Objects.equals(trunkSid, other.trunkSid) &&
Objects.equals(uri, other.uri) &&
Objects.equals(voiceReceiveMode, other.voiceReceiveMode) &&
Objects.equals(voiceApplicationSid, other.voiceApplicationSid) &&
Objects.equals(voiceCallerIdLookup, other.voiceCallerIdLookup) &&
Objects.equals(voiceFallbackMethod, other.voiceFallbackMethod) &&
Expand All @@ -741,7 +768,8 @@ public boolean equals(final Object o) {
Objects.equals(voiceUrl, other.voiceUrl) &&
Objects.equals(emergencyStatus, other.emergencyStatus) &&
Objects.equals(emergencyAddressSid, other.emergencyAddressSid) &&
Objects.equals(bundleSid, other.bundleSid);
Objects.equals(bundleSid, other.bundleSid) &&
Objects.equals(status, other.status);
}

@Override
Expand All @@ -768,6 +796,7 @@ public int hashCode() {
statusCallbackMethod,
trunkSid,
uri,
voiceReceiveMode,
voiceApplicationSid,
voiceCallerIdLookup,
voiceFallbackMethod,
Expand All @@ -776,7 +805,8 @@ public int hashCode() {
voiceUrl,
emergencyStatus,
emergencyAddressSid,
bundleSid);
bundleSid,
status);
}

@Override
Expand Down Expand Up @@ -804,6 +834,7 @@ public String toString() {
.add("statusCallbackMethod", statusCallbackMethod)
.add("trunkSid", trunkSid)
.add("uri", uri)
.add("voiceReceiveMode", voiceReceiveMode)
.add("voiceApplicationSid", voiceApplicationSid)
.add("voiceCallerIdLookup", voiceCallerIdLookup)
.add("voiceFallbackMethod", voiceFallbackMethod)
Expand All @@ -813,6 +844,7 @@ public String toString() {
.add("emergencyStatus", emergencyStatus)
.add("emergencyAddressSid", emergencyAddressSid)
.add("bundleSid", bundleSid)
.add("status", status)
.toString();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
*/
@JsonIgnoreProperties(ignoreUnknown = true)
public class Message extends Resource {
private static final long serialVersionUID = 205187398023238L;
private static final long serialVersionUID = 178517243734679L;

public enum WebhookEnabledType {
TRUE("true"),
Expand Down Expand Up @@ -177,6 +177,8 @@ public static Message fromJson(final InputStream json, final ObjectMapper object
private final DateTime dateCreated;
private final DateTime dateUpdated;
private final URI url;
private final Map<String, Object> delivery;
private final Map<String, String> links;

@JsonCreator
private Message(@JsonProperty("account_sid")
Expand All @@ -202,7 +204,11 @@ private Message(@JsonProperty("account_sid")
@JsonProperty("date_updated")
final String dateUpdated,
@JsonProperty("url")
final URI url) {
final URI url,
@JsonProperty("delivery")
final Map<String, Object> delivery,
@JsonProperty("links")
final Map<String, String> links) {
this.accountSid = accountSid;
this.conversationSid = conversationSid;
this.sid = sid;
Expand All @@ -215,6 +221,8 @@ private Message(@JsonProperty("account_sid")
this.dateCreated = DateConverter.iso8601DateTimeFromString(dateCreated);
this.dateUpdated = DateConverter.iso8601DateTimeFromString(dateUpdated);
this.url = url;
this.delivery = delivery;
this.links = links;
}

/**
Expand Down Expand Up @@ -327,6 +335,26 @@ public final URI getUrl() {
return this.url;
}

/**
* Returns An object that contains the summary of delivery statuses for the
* message to non-chat participants..
*
* @return An object that contains the summary of delivery statuses for the
* message to non-chat participants.
*/
public final Map<String, Object> getDelivery() {
return this.delivery;
}

/**
* Returns The links.
*
* @return The links
*/
public final Map<String, String> getLinks() {
return this.links;
}

@Override
public boolean equals(final Object o) {
if (this == o) {
Expand All @@ -350,7 +378,9 @@ public boolean equals(final Object o) {
Objects.equals(participantSid, other.participantSid) &&
Objects.equals(dateCreated, other.dateCreated) &&
Objects.equals(dateUpdated, other.dateUpdated) &&
Objects.equals(url, other.url);
Objects.equals(url, other.url) &&
Objects.equals(delivery, other.delivery) &&
Objects.equals(links, other.links);
}

@Override
Expand All @@ -366,7 +396,9 @@ public int hashCode() {
participantSid,
dateCreated,
dateUpdated,
url);
url,
delivery,
links);
}

@Override
Expand All @@ -384,6 +416,8 @@ public String toString() {
.add("dateCreated", dateCreated)
.add("dateUpdated", dateUpdated)
.add("url", url)
.add("delivery", delivery)
.add("links", links)
.toString();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ public class ParticipantUpdater extends Updater<Participant> {
private DateTime dateUpdated;
private String attributes;
private String roleSid;
private String messagingBindingProxyAddress;
private String messagingBindingProjectedAddress;

/**
* Construct a new ParticipantUpdater.
Expand Down Expand Up @@ -92,6 +94,32 @@ public ParticipantUpdater setRoleSid(final String roleSid) {
return this;
}

/**
* The address of the Twilio phone number that the participant is in contact
* with. 'null' value will remove it..
*
* @param messagingBindingProxyAddress The address of the Twilio phone number
* that the participant is in contact with.
* @return this
*/
public ParticipantUpdater setMessagingBindingProxyAddress(final String messagingBindingProxyAddress) {
this.messagingBindingProxyAddress = messagingBindingProxyAddress;
return this;
}

/**
* The address of the Twilio phone number that is used in Group MMS. 'null'
* value will remove it..
*
* @param messagingBindingProjectedAddress The address of the Twilio phone
* number that is used in Group MMS.
* @return this
*/
public ParticipantUpdater setMessagingBindingProjectedAddress(final String messagingBindingProjectedAddress) {
this.messagingBindingProjectedAddress = messagingBindingProjectedAddress;
return this;
}

/**
* Make the request to the Twilio API to perform the update.
*
Expand Down Expand Up @@ -144,5 +172,13 @@ private void addPostParams(final Request request) {
if (roleSid != null) {
request.addPostParam("RoleSid", roleSid);
}

if (messagingBindingProxyAddress != null) {
request.addPostParam("MessagingBinding.ProxyAddress", messagingBindingProxyAddress);
}

if (messagingBindingProjectedAddress != null) {
request.addPostParam("MessagingBinding.ProjectedAddress", messagingBindingProjectedAddress);
}
}
}
Loading

0 comments on commit 5d83dc7

Please sign in to comment.