diff --git a/src/main/java/com/twilio/rest/accounts/v1/SafelistDeleter.java b/src/main/java/com/twilio/rest/accounts/v1/SafelistDeleter.java index 15f1f10f3c..5e6cf668a6 100644 --- a/src/main/java/com/twilio/rest/accounts/v1/SafelistDeleter.java +++ b/src/main/java/com/twilio/rest/accounts/v1/SafelistDeleter.java @@ -26,6 +26,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class SafelistDeleter extends Deleter { @@ -42,6 +43,8 @@ public SafelistDeleter setPhoneNumber(final String phoneNumber) { public boolean delete(final TwilioRestClient client) { String path = "/v1/SafeList/Numbers"; + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.ACCOUNTS.toString(), @@ -68,7 +71,7 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } private void addQueryParams(final Request request) { diff --git a/src/main/java/com/twilio/rest/accounts/v1/SecondaryAuthTokenDeleter.java b/src/main/java/com/twilio/rest/accounts/v1/SecondaryAuthTokenDeleter.java index b2f9ab5e30..ae70718673 100644 --- a/src/main/java/com/twilio/rest/accounts/v1/SecondaryAuthTokenDeleter.java +++ b/src/main/java/com/twilio/rest/accounts/v1/SecondaryAuthTokenDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class SecondaryAuthTokenDeleter extends Deleter { @@ -33,6 +34,8 @@ public SecondaryAuthTokenDeleter() {} public boolean delete(final TwilioRestClient client) { String path = "/v1/AuthTokens/Secondary"; + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.ACCOUNTS.toString(), @@ -58,6 +61,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/accounts/v1/credential/AwsDeleter.java b/src/main/java/com/twilio/rest/accounts/v1/credential/AwsDeleter.java index 48d4769fc0..bf7feebcaa 100644 --- a/src/main/java/com/twilio/rest/accounts/v1/credential/AwsDeleter.java +++ b/src/main/java/com/twilio/rest/accounts/v1/credential/AwsDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class AwsDeleter extends Deleter { @@ -39,6 +40,8 @@ public boolean delete(final TwilioRestClient client) { path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.ACCOUNTS.toString(), @@ -64,6 +67,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/accounts/v1/credential/PublicKeyDeleter.java b/src/main/java/com/twilio/rest/accounts/v1/credential/PublicKeyDeleter.java index c9e1c47a43..a1d34fa67c 100644 --- a/src/main/java/com/twilio/rest/accounts/v1/credential/PublicKeyDeleter.java +++ b/src/main/java/com/twilio/rest/accounts/v1/credential/PublicKeyDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class PublicKeyDeleter extends Deleter { @@ -39,6 +40,8 @@ public boolean delete(final TwilioRestClient client) { path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.ACCOUNTS.toString(), @@ -64,6 +67,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/api/v2010/account/AddressDeleter.java b/src/main/java/com/twilio/rest/api/v2010/account/AddressDeleter.java index 19f47ee274..c759116a2f 100644 --- a/src/main/java/com/twilio/rest/api/v2010/account/AddressDeleter.java +++ b/src/main/java/com/twilio/rest/api/v2010/account/AddressDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class AddressDeleter extends Deleter
{ @@ -54,6 +55,8 @@ public boolean delete(final TwilioRestClient client) { ); path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.API.toString(), @@ -79,6 +82,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/api/v2010/account/ApplicationDeleter.java b/src/main/java/com/twilio/rest/api/v2010/account/ApplicationDeleter.java index 62feed5285..cdc0bb3ade 100644 --- a/src/main/java/com/twilio/rest/api/v2010/account/ApplicationDeleter.java +++ b/src/main/java/com/twilio/rest/api/v2010/account/ApplicationDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class ApplicationDeleter extends Deleter { @@ -58,6 +59,8 @@ public boolean delete(final TwilioRestClient client) { ); path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.API.toString(), @@ -83,6 +86,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/api/v2010/account/CallDeleter.java b/src/main/java/com/twilio/rest/api/v2010/account/CallDeleter.java index 8f31cb7475..f2c2e62ca3 100644 --- a/src/main/java/com/twilio/rest/api/v2010/account/CallDeleter.java +++ b/src/main/java/com/twilio/rest/api/v2010/account/CallDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class CallDeleter extends Deleter { @@ -54,6 +55,8 @@ public boolean delete(final TwilioRestClient client) { ); path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.API.toString(), @@ -79,6 +82,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/api/v2010/account/ConnectAppDeleter.java b/src/main/java/com/twilio/rest/api/v2010/account/ConnectAppDeleter.java index 7065c49102..48e24ba0f9 100644 --- a/src/main/java/com/twilio/rest/api/v2010/account/ConnectAppDeleter.java +++ b/src/main/java/com/twilio/rest/api/v2010/account/ConnectAppDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class ConnectAppDeleter extends Deleter { @@ -58,6 +59,8 @@ public boolean delete(final TwilioRestClient client) { ); path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.API.toString(), @@ -83,6 +86,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/api/v2010/account/IncomingPhoneNumberDeleter.java b/src/main/java/com/twilio/rest/api/v2010/account/IncomingPhoneNumberDeleter.java index ab01b89360..61bf59cd22 100644 --- a/src/main/java/com/twilio/rest/api/v2010/account/IncomingPhoneNumberDeleter.java +++ b/src/main/java/com/twilio/rest/api/v2010/account/IncomingPhoneNumberDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class IncomingPhoneNumberDeleter extends Deleter { @@ -58,6 +59,8 @@ public boolean delete(final TwilioRestClient client) { ); path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.API.toString(), @@ -83,6 +86,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/api/v2010/account/KeyDeleter.java b/src/main/java/com/twilio/rest/api/v2010/account/KeyDeleter.java index ad4adc9567..50b2e8fbe6 100644 --- a/src/main/java/com/twilio/rest/api/v2010/account/KeyDeleter.java +++ b/src/main/java/com/twilio/rest/api/v2010/account/KeyDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class KeyDeleter extends Deleter { @@ -54,6 +55,8 @@ public boolean delete(final TwilioRestClient client) { ); path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.API.toString(), @@ -79,6 +82,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/api/v2010/account/MessageDeleter.java b/src/main/java/com/twilio/rest/api/v2010/account/MessageDeleter.java index cdb7c27755..3fc9f39176 100644 --- a/src/main/java/com/twilio/rest/api/v2010/account/MessageDeleter.java +++ b/src/main/java/com/twilio/rest/api/v2010/account/MessageDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class MessageDeleter extends Deleter { @@ -54,6 +55,8 @@ public boolean delete(final TwilioRestClient client) { ); path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.API.toString(), @@ -79,6 +82,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/api/v2010/account/OutgoingCallerIdDeleter.java b/src/main/java/com/twilio/rest/api/v2010/account/OutgoingCallerIdDeleter.java index f662ce42ab..72e9b693f2 100644 --- a/src/main/java/com/twilio/rest/api/v2010/account/OutgoingCallerIdDeleter.java +++ b/src/main/java/com/twilio/rest/api/v2010/account/OutgoingCallerIdDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class OutgoingCallerIdDeleter extends Deleter { @@ -58,6 +59,8 @@ public boolean delete(final TwilioRestClient client) { ); path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.API.toString(), @@ -83,6 +86,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/api/v2010/account/QueueDeleter.java b/src/main/java/com/twilio/rest/api/v2010/account/QueueDeleter.java index 0e05f4f66e..ba6844974a 100644 --- a/src/main/java/com/twilio/rest/api/v2010/account/QueueDeleter.java +++ b/src/main/java/com/twilio/rest/api/v2010/account/QueueDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class QueueDeleter extends Deleter { @@ -54,6 +55,8 @@ public boolean delete(final TwilioRestClient client) { ); path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.API.toString(), @@ -79,6 +82,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/api/v2010/account/RecordingDeleter.java b/src/main/java/com/twilio/rest/api/v2010/account/RecordingDeleter.java index 8d2c79254b..3f0a78016f 100644 --- a/src/main/java/com/twilio/rest/api/v2010/account/RecordingDeleter.java +++ b/src/main/java/com/twilio/rest/api/v2010/account/RecordingDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class RecordingDeleter extends Deleter { @@ -54,6 +55,8 @@ public boolean delete(final TwilioRestClient client) { ); path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.API.toString(), @@ -79,6 +82,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/api/v2010/account/SigningKeyDeleter.java b/src/main/java/com/twilio/rest/api/v2010/account/SigningKeyDeleter.java index 4bd091a198..4ef1cd2f29 100644 --- a/src/main/java/com/twilio/rest/api/v2010/account/SigningKeyDeleter.java +++ b/src/main/java/com/twilio/rest/api/v2010/account/SigningKeyDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class SigningKeyDeleter extends Deleter { @@ -58,6 +59,8 @@ public boolean delete(final TwilioRestClient client) { ); path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.API.toString(), @@ -83,6 +86,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/api/v2010/account/TranscriptionDeleter.java b/src/main/java/com/twilio/rest/api/v2010/account/TranscriptionDeleter.java index e02b1f18d8..56bec7ba58 100644 --- a/src/main/java/com/twilio/rest/api/v2010/account/TranscriptionDeleter.java +++ b/src/main/java/com/twilio/rest/api/v2010/account/TranscriptionDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class TranscriptionDeleter extends Deleter { @@ -58,6 +59,8 @@ public boolean delete(final TwilioRestClient client) { ); path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.API.toString(), @@ -83,6 +86,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/api/v2010/account/address/DependentPhoneNumber.java b/src/main/java/com/twilio/rest/api/v2010/account/address/DependentPhoneNumber.java index 5d63b6840a..b4e617b8b4 100644 --- a/src/main/java/com/twilio/rest/api/v2010/account/address/DependentPhoneNumber.java +++ b/src/main/java/com/twilio/rest/api/v2010/account/address/DependentPhoneNumber.java @@ -22,7 +22,6 @@ import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.ObjectMapper; -import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.twilio.base.Resource; import com.twilio.base.Resource; import com.twilio.converter.Promoter; @@ -30,11 +29,11 @@ import com.twilio.exception.ApiException; import com.twilio.http.HttpMethod; import com.twilio.type.*; +import com.twilio.type.PhoneNumberCapabilities; import java.io.IOException; import java.io.IOException; import java.io.InputStream; import java.net.URI; -import java.time.ZonedDateTime; import java.util.Objects; import lombok.Getter; import lombok.ToString; @@ -163,13 +162,13 @@ public static String toJson(Object object, ObjectMapper mapper) { private final String apiVersion; @Getter - private final Object capabilities; + private final PhoneNumberCapabilities capabilities; @Getter - private final ZonedDateTime dateCreated; + private final String dateCreated; @Getter - private final ZonedDateTime dateUpdated; + private final String dateUpdated; @Getter private final String emergencyAddressSid; @@ -238,13 +237,11 @@ private DependentPhoneNumber( "address_requirements" ) final DependentPhoneNumber.AddressRequirement addressRequirements, @JsonProperty("api_version") final String apiVersion, - @JsonProperty("capabilities") final Object capabilities, - @JsonProperty("date_created") @JsonDeserialize( - using = com.twilio.converter.RFC2822Deserializer.class - ) final ZonedDateTime dateCreated, - @JsonProperty("date_updated") @JsonDeserialize( - using = com.twilio.converter.RFC2822Deserializer.class - ) final ZonedDateTime dateUpdated, + @JsonProperty( + "capabilities" + ) final PhoneNumberCapabilities capabilities, + @JsonProperty("date_created") final String dateCreated, + @JsonProperty("date_updated") final String dateUpdated, @JsonProperty("emergency_address_sid") final String emergencyAddressSid, @JsonProperty( "emergency_status" diff --git a/src/main/java/com/twilio/rest/api/v2010/account/call/RecordingDeleter.java b/src/main/java/com/twilio/rest/api/v2010/account/call/RecordingDeleter.java index 857aa7aac0..7a628eda03 100644 --- a/src/main/java/com/twilio/rest/api/v2010/account/call/RecordingDeleter.java +++ b/src/main/java/com/twilio/rest/api/v2010/account/call/RecordingDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class RecordingDeleter extends Deleter { @@ -63,6 +64,8 @@ public boolean delete(final TwilioRestClient client) { path = path.replace("{" + "CallSid" + "}", this.pathCallSid.toString()); path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.API.toString(), @@ -88,6 +91,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/api/v2010/account/call/UserDefinedMessageSubscriptionDeleter.java b/src/main/java/com/twilio/rest/api/v2010/account/call/UserDefinedMessageSubscriptionDeleter.java index ea6d6f56dd..330f58d9ab 100644 --- a/src/main/java/com/twilio/rest/api/v2010/account/call/UserDefinedMessageSubscriptionDeleter.java +++ b/src/main/java/com/twilio/rest/api/v2010/account/call/UserDefinedMessageSubscriptionDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class UserDefinedMessageSubscriptionDeleter extends Deleter { @@ -67,6 +68,8 @@ public boolean delete(final TwilioRestClient client) { path = path.replace("{" + "CallSid" + "}", this.pathCallSid.toString()); path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.API.toString(), @@ -92,6 +95,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/api/v2010/account/conference/ParticipantCreator.java b/src/main/java/com/twilio/rest/api/v2010/account/conference/ParticipantCreator.java index d5511ff420..e8f178ec1e 100644 --- a/src/main/java/com/twilio/rest/api/v2010/account/conference/ParticipantCreator.java +++ b/src/main/java/com/twilio/rest/api/v2010/account/conference/ParticipantCreator.java @@ -83,7 +83,6 @@ public class ParticipantCreator extends Creator { private HttpMethod amdStatusCallbackMethod; private String trim; private String callToken; - private String callerDisplayName; public ParticipantCreator( final String pathConferenceSid, @@ -467,13 +466,6 @@ public ParticipantCreator setCallToken(final String callToken) { return this; } - public ParticipantCreator setCallerDisplayName( - final String callerDisplayName - ) { - this.callerDisplayName = callerDisplayName; - return this; - } - @Override public Participant create(final TwilioRestClient client) { String path = @@ -963,14 +955,5 @@ private void addPostParams(final Request request) { ParameterType.URLENCODED ); } - - if (callerDisplayName != null) { - Serializer.toString( - request, - "CallerDisplayName", - callerDisplayName, - ParameterType.URLENCODED - ); - } } } diff --git a/src/main/java/com/twilio/rest/api/v2010/account/conference/ParticipantDeleter.java b/src/main/java/com/twilio/rest/api/v2010/account/conference/ParticipantDeleter.java index fb8ad33a62..5f79518df0 100644 --- a/src/main/java/com/twilio/rest/api/v2010/account/conference/ParticipantDeleter.java +++ b/src/main/java/com/twilio/rest/api/v2010/account/conference/ParticipantDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class ParticipantDeleter extends Deleter { @@ -70,6 +71,8 @@ public boolean delete(final TwilioRestClient client) { ); path = path.replace("{" + "CallSid" + "}", this.pathCallSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.API.toString(), @@ -95,6 +98,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/api/v2010/account/conference/RecordingDeleter.java b/src/main/java/com/twilio/rest/api/v2010/account/conference/RecordingDeleter.java index 48a51de60d..0576d038b7 100644 --- a/src/main/java/com/twilio/rest/api/v2010/account/conference/RecordingDeleter.java +++ b/src/main/java/com/twilio/rest/api/v2010/account/conference/RecordingDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class RecordingDeleter extends Deleter { @@ -70,6 +71,8 @@ public boolean delete(final TwilioRestClient client) { ); path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.API.toString(), @@ -95,6 +98,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/api/v2010/account/incomingphonenumber/AssignedAddOnDeleter.java b/src/main/java/com/twilio/rest/api/v2010/account/incomingphonenumber/AssignedAddOnDeleter.java index 5a82e36135..16524e4c91 100644 --- a/src/main/java/com/twilio/rest/api/v2010/account/incomingphonenumber/AssignedAddOnDeleter.java +++ b/src/main/java/com/twilio/rest/api/v2010/account/incomingphonenumber/AssignedAddOnDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class AssignedAddOnDeleter extends Deleter { @@ -70,6 +71,8 @@ public boolean delete(final TwilioRestClient client) { ); path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.API.toString(), @@ -95,6 +98,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/api/v2010/account/message/MediaDeleter.java b/src/main/java/com/twilio/rest/api/v2010/account/message/MediaDeleter.java index a88026d057..c0bc53adbf 100644 --- a/src/main/java/com/twilio/rest/api/v2010/account/message/MediaDeleter.java +++ b/src/main/java/com/twilio/rest/api/v2010/account/message/MediaDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class MediaDeleter extends Deleter { @@ -67,6 +68,8 @@ public boolean delete(final TwilioRestClient client) { ); path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.API.toString(), @@ -92,6 +95,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/api/v2010/account/recording/AddOnResultDeleter.java b/src/main/java/com/twilio/rest/api/v2010/account/recording/AddOnResultDeleter.java index d3510dff39..03fb882276 100644 --- a/src/main/java/com/twilio/rest/api/v2010/account/recording/AddOnResultDeleter.java +++ b/src/main/java/com/twilio/rest/api/v2010/account/recording/AddOnResultDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class AddOnResultDeleter extends Deleter { @@ -70,6 +71,8 @@ public boolean delete(final TwilioRestClient client) { ); path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.API.toString(), @@ -95,6 +98,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/api/v2010/account/recording/TranscriptionDeleter.java b/src/main/java/com/twilio/rest/api/v2010/account/recording/TranscriptionDeleter.java index 5bc662bd6c..bc486c1811 100644 --- a/src/main/java/com/twilio/rest/api/v2010/account/recording/TranscriptionDeleter.java +++ b/src/main/java/com/twilio/rest/api/v2010/account/recording/TranscriptionDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class TranscriptionDeleter extends Deleter { @@ -70,6 +71,8 @@ public boolean delete(final TwilioRestClient client) { ); path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.API.toString(), @@ -95,6 +98,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/api/v2010/account/recording/addonresult/PayloadDeleter.java b/src/main/java/com/twilio/rest/api/v2010/account/recording/addonresult/PayloadDeleter.java index 7323ac3af6..b02117dd8e 100644 --- a/src/main/java/com/twilio/rest/api/v2010/account/recording/addonresult/PayloadDeleter.java +++ b/src/main/java/com/twilio/rest/api/v2010/account/recording/addonresult/PayloadDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class PayloadDeleter extends Deleter { @@ -80,6 +81,8 @@ public boolean delete(final TwilioRestClient client) { ); path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.API.toString(), @@ -105,6 +108,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/api/v2010/account/sip/CredentialListDeleter.java b/src/main/java/com/twilio/rest/api/v2010/account/sip/CredentialListDeleter.java index 80fd6a91be..ec65bcc194 100644 --- a/src/main/java/com/twilio/rest/api/v2010/account/sip/CredentialListDeleter.java +++ b/src/main/java/com/twilio/rest/api/v2010/account/sip/CredentialListDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class CredentialListDeleter extends Deleter { @@ -58,6 +59,8 @@ public boolean delete(final TwilioRestClient client) { ); path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.API.toString(), @@ -83,6 +86,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/api/v2010/account/sip/DomainDeleter.java b/src/main/java/com/twilio/rest/api/v2010/account/sip/DomainDeleter.java index b249d49b11..4b4c7e5354 100644 --- a/src/main/java/com/twilio/rest/api/v2010/account/sip/DomainDeleter.java +++ b/src/main/java/com/twilio/rest/api/v2010/account/sip/DomainDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class DomainDeleter extends Deleter { @@ -55,6 +56,8 @@ public boolean delete(final TwilioRestClient client) { ); path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.API.toString(), @@ -80,6 +83,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/api/v2010/account/sip/IpAccessControlListDeleter.java b/src/main/java/com/twilio/rest/api/v2010/account/sip/IpAccessControlListDeleter.java index 9601ee1415..a76e494ff6 100644 --- a/src/main/java/com/twilio/rest/api/v2010/account/sip/IpAccessControlListDeleter.java +++ b/src/main/java/com/twilio/rest/api/v2010/account/sip/IpAccessControlListDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class IpAccessControlListDeleter extends Deleter { @@ -58,6 +59,8 @@ public boolean delete(final TwilioRestClient client) { ); path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.API.toString(), @@ -83,6 +86,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/api/v2010/account/sip/credentiallist/CredentialDeleter.java b/src/main/java/com/twilio/rest/api/v2010/account/sip/credentiallist/CredentialDeleter.java index 5a64fcbceb..dd921d52cd 100644 --- a/src/main/java/com/twilio/rest/api/v2010/account/sip/credentiallist/CredentialDeleter.java +++ b/src/main/java/com/twilio/rest/api/v2010/account/sip/credentiallist/CredentialDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class CredentialDeleter extends Deleter { @@ -70,6 +71,8 @@ public boolean delete(final TwilioRestClient client) { ); path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.API.toString(), @@ -95,6 +98,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/api/v2010/account/sip/domain/CredentialListMappingDeleter.java b/src/main/java/com/twilio/rest/api/v2010/account/sip/domain/CredentialListMappingDeleter.java index 9d3141407e..a5436b69b3 100644 --- a/src/main/java/com/twilio/rest/api/v2010/account/sip/domain/CredentialListMappingDeleter.java +++ b/src/main/java/com/twilio/rest/api/v2010/account/sip/domain/CredentialListMappingDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class CredentialListMappingDeleter extends Deleter { @@ -71,6 +72,8 @@ public boolean delete(final TwilioRestClient client) { ); path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.API.toString(), @@ -96,6 +99,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/api/v2010/account/sip/domain/IpAccessControlListMappingDeleter.java b/src/main/java/com/twilio/rest/api/v2010/account/sip/domain/IpAccessControlListMappingDeleter.java index 8b32446a86..4d688b8859 100644 --- a/src/main/java/com/twilio/rest/api/v2010/account/sip/domain/IpAccessControlListMappingDeleter.java +++ b/src/main/java/com/twilio/rest/api/v2010/account/sip/domain/IpAccessControlListMappingDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class IpAccessControlListMappingDeleter extends Deleter { @@ -71,6 +72,8 @@ public boolean delete(final TwilioRestClient client) { ); path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.API.toString(), @@ -96,6 +99,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/api/v2010/account/sip/domain/authtypes/authtypecalls/AuthCallsCredentialListMappingDeleter.java b/src/main/java/com/twilio/rest/api/v2010/account/sip/domain/authtypes/authtypecalls/AuthCallsCredentialListMappingDeleter.java index b418ea28a5..4ec73ec30e 100644 --- a/src/main/java/com/twilio/rest/api/v2010/account/sip/domain/authtypes/authtypecalls/AuthCallsCredentialListMappingDeleter.java +++ b/src/main/java/com/twilio/rest/api/v2010/account/sip/domain/authtypes/authtypecalls/AuthCallsCredentialListMappingDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class AuthCallsCredentialListMappingDeleter extends Deleter { @@ -71,6 +72,8 @@ public boolean delete(final TwilioRestClient client) { ); path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.API.toString(), @@ -96,6 +99,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/api/v2010/account/sip/domain/authtypes/authtypecalls/AuthCallsIpAccessControlListMappingDeleter.java b/src/main/java/com/twilio/rest/api/v2010/account/sip/domain/authtypes/authtypecalls/AuthCallsIpAccessControlListMappingDeleter.java index f88b971224..3f3ea67840 100644 --- a/src/main/java/com/twilio/rest/api/v2010/account/sip/domain/authtypes/authtypecalls/AuthCallsIpAccessControlListMappingDeleter.java +++ b/src/main/java/com/twilio/rest/api/v2010/account/sip/domain/authtypes/authtypecalls/AuthCallsIpAccessControlListMappingDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class AuthCallsIpAccessControlListMappingDeleter extends Deleter { @@ -71,6 +72,8 @@ public boolean delete(final TwilioRestClient client) { ); path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.API.toString(), @@ -96,6 +99,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/api/v2010/account/sip/domain/authtypes/authtyperegistrations/AuthRegistrationsCredentialListMappingDeleter.java b/src/main/java/com/twilio/rest/api/v2010/account/sip/domain/authtypes/authtyperegistrations/AuthRegistrationsCredentialListMappingDeleter.java index 7e9f6c2e3f..3be3f8b714 100644 --- a/src/main/java/com/twilio/rest/api/v2010/account/sip/domain/authtypes/authtyperegistrations/AuthRegistrationsCredentialListMappingDeleter.java +++ b/src/main/java/com/twilio/rest/api/v2010/account/sip/domain/authtypes/authtyperegistrations/AuthRegistrationsCredentialListMappingDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class AuthRegistrationsCredentialListMappingDeleter extends Deleter { @@ -71,6 +72,8 @@ public boolean delete(final TwilioRestClient client) { ); path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.API.toString(), @@ -96,6 +99,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/api/v2010/account/sip/ipaccesscontrollist/IpAddressDeleter.java b/src/main/java/com/twilio/rest/api/v2010/account/sip/ipaccesscontrollist/IpAddressDeleter.java index 0245ee261f..d09b57d900 100644 --- a/src/main/java/com/twilio/rest/api/v2010/account/sip/ipaccesscontrollist/IpAddressDeleter.java +++ b/src/main/java/com/twilio/rest/api/v2010/account/sip/ipaccesscontrollist/IpAddressDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class IpAddressDeleter extends Deleter { @@ -70,6 +71,8 @@ public boolean delete(final TwilioRestClient client) { ); path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.API.toString(), @@ -95,6 +98,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/api/v2010/account/usage/Record.java b/src/main/java/com/twilio/rest/api/v2010/account/usage/Record.java index 47322a2b73..75f4666b40 100644 --- a/src/main/java/com/twilio/rest/api/v2010/account/usage/Record.java +++ b/src/main/java/com/twilio/rest/api/v2010/account/usage/Record.java @@ -25,6 +25,7 @@ import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.twilio.base.Resource; import com.twilio.base.Resource; +import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; import com.twilio.type.*; @@ -51,6 +52,931 @@ public static RecordReader reader(final String pathAccountSid) { return new RecordReader(pathAccountSid); } + public enum Category { + A2P_10DLC_REGISTRATIONFEES_BRANDREGISTRATION( + "a2p-10dlc-registrationfees-brandregistration" + ), + A2P_10DLC_REGISTRATIONFEES_BV("a2p-10dlc-registrationfees-bv"), + A2P_10DLC_REGISTRATIONFEES_CAMPAIGNCHARGES( + "a2p-10dlc-registrationfees-campaigncharges" + ), + A2P_10DLC_REGISTRATIONFEES_CAMPAIGNREGISTRATION( + "a2p-10dlc-registrationfees-campaignregistration" + ), + A2P_10DLC_REGISTRATIONFEES_CAMPAIGNVETTING( + "a2p-10dlc-registrationfees-campaignvetting" + ), + A2P_10DLC_REGISTRATIONFEES_MONTHLY( + "a2p-10dlc-registrationfees-monthly" + ), + A2P_10DLC_REGISTRATIONFEES_ONETIME( + "a2p-10dlc-registrationfees-onetime" + ), + A2P_REGISTRATION_FEES("a2p-registration-fees"), + ACCOUNT_SECURITY("account-security"), + AGENT_CONFERENCE("agent-conference"), + AGENT_COPILOT("agent-copilot"), + AGENT_COPILOT_MESSAGES("agent-copilot-messages"), + AGENT_COPILOT_PARTICIPANT_MINUTES("agent-copilot-participant-minutes"), + AI_ASSISTANTS("ai-assistants"), + AI_ASSISTANTS_VOICE("ai-assistants-voice"), + AMAZON_POLLY("amazon-polly"), + ANSWERING_MACHINE_DETECTION("answering-machine-detection"), + ASSETS("assets"), + AUDIENCE_MINUTES("audience-minutes"), + AUDIENCE_MINUTES_AUDIO("audience-minutes-audio"), + AUTHY_AUTHENTICATIONS("authy-authentications"), + AUTHY_CALLS_OUTBOUND("authy-calls-outbound"), + AUTHY_EMAIL_AUTHENTICATIONS("authy-email-authentications"), + AUTHY_MONTHLY_FEES("authy-monthly-fees"), + AUTHY_OUTBOUND_EMAIL("authy-outbound-email"), + AUTHY_PHONE_INTELLIGENCE("authy-phone-intelligence"), + AUTHY_PHONE_VERIFICATIONS("authy-phone-verifications"), + AUTHY_SMS_OUTBOUND("authy-sms-outbound"), + AUTHY_VERIFY_EMAIL_VERIFICATIONS("authy-verify-email-verifications"), + AUTHY_VERIFY_OUTBOUND_EMAIL("authy-verify-outbound-email"), + AUTOPILOT("autopilot"), + AUTOPILOT_HOME_ASSISTANTS("autopilot-home-assistants"), + AUTOPILOT_MESSAGING("autopilot-messaging"), + AUTOPILOT_OTHER("autopilot-other"), + AUTOPILOT_VOICE("autopilot-voice"), + BASIC_PEER_TO_PEER_ROOMS_PARTICIPANT_MINUTES( + "basic-peer-to-peer-rooms-participant-minutes" + ), + BRANDED_CALLING("branded-calling"), + BUNDLE_SMS_BUCKET("bundle-sms-bucket"), + BUNDLE_SUBSCRIPTION_FEES("bundle-subscription-fees"), + CALL_FORWARDING_LOOKUPS("call-forwarding-lookups"), + CALL_PROGESS_EVENTS("call-progess-events"), + CALLERIDLOOKUPS("calleridlookups"), + CALLS("calls"), + CALLS_CLIENT("calls-client"), + CALLS_EMERGENCY("calls-emergency"), + CALLS_GLOBALCONFERENCE("calls-globalconference"), + CALLS_INBOUND("calls-inbound"), + CALLS_INBOUND_LOCAL("calls-inbound-local"), + CALLS_INBOUND_MOBILE("calls-inbound-mobile"), + CALLS_INBOUND_TOLLFREE("calls-inbound-tollfree"), + CALLS_INBOUND_TOLLFREE_LOCAL("calls-inbound-tollfree-local"), + CALLS_INBOUND_TOLLFREE_MOBILE("calls-inbound-tollfree-mobile"), + CALLS_MEDIA_STREAM_MINUTES("calls-media-stream-minutes"), + CALLS_OUTBOUND("calls-outbound"), + CALLS_PAY_VERB_TRANSACTIONS("calls-pay-verb-transactions"), + CALLS_RECORDINGS("calls-recordings"), + CALLS_SIP("calls-sip"), + CALLS_SIP_INBOUND("calls-sip-inbound"), + CALLS_SIP_OUTBOUND("calls-sip-outbound"), + CALLS_TEXT_TO_SPEECH("calls-text-to-speech"), + CALLS_TRANSFERS("calls-transfers"), + CARRIER_LOOKUPS("carrier-lookups"), + CATEGORY("category"), + CHANNELS("channels"), + CHANNELS_MESSAGING("channels-messaging"), + CHANNELS_MESSAGING_INBOUND("channels-messaging-inbound"), + CHANNELS_MESSAGING_OUTBOUND("channels-messaging-outbound"), + CHANNELS_WHATSAPP("channels-whatsapp"), + CHANNELS_WHATSAPP_CONVERSATION_AUTHENTICATION( + "channels-whatsapp-conversation-authentication" + ), + CHANNELS_WHATSAPP_CONVERSATION_FREE( + "channels-whatsapp-conversation-free" + ), + CHANNELS_WHATSAPP_CONVERSATION_MARKETING( + "channels-whatsapp-conversation-marketing" + ), + CHANNELS_WHATSAPP_CONVERSATION_SERVICE( + "channels-whatsapp-conversation-service" + ), + CHANNELS_WHATSAPP_CONVERSATION_UTILITY( + "channels-whatsapp-conversation-utility" + ), + CHANNELS_WHATSAPP_INBOUND("channels-whatsapp-inbound"), + CHANNELS_WHATSAPP_OUTBOUND("channels-whatsapp-outbound"), + CHAT_VIRTUAL_AGENT("chat-virtual-agent"), + CONVERSATION_RELAY("conversation-relay"), + CONVERSATIONS("conversations"), + CONVERSATIONS_API_REQUESTS("conversations-api-requests"), + CONVERSATIONS_CONVERSATION_EVENTS("conversations-conversation-events"), + CONVERSATIONS_ENDPOINT_CONNECTIVITY( + "conversations-endpoint-connectivity" + ), + CONVERSATIONS_EVENTS("conversations-events"), + CONVERSATIONS_PARTICIPANT_EVENTS("conversations-participant-events"), + CONVERSATIONS_PARTICIPANTS("conversations-participants"), + CPS("cps"), + CREDIT_TRANSFER("credit-transfer"), + EMAIL("email"), + EMERGING_TECH("emerging-tech"), + ENGAGEMENT_SUITE_PACKAGED_PLANS("engagement-suite-packaged-plans"), + ENHANCED_LINE_TYPE_LOOKUPS("enhanced-line-type-lookups"), + ENTERPRISE("enterprise"), + EVENTS("events"), + EXPERIMENT_FRANCE_SMS("experiment-france-sms"), + EXPERIMENT_INDIA_SMS("experiment-india-sms"), + EXPERIMENT_UK_SMS("experiment-uk-sms"), + FAILED_MESSAGE_PROCESSING_FEE("failed-message-processing-fee"), + FLEX("flex"), + FLEX_ACTIVE_USER_HOURS("flex-active-user-hours"), + FLEX_CONCURRENT_USERS("flex-concurrent-users"), + FLEX_CONVERSATIONAL_INSIGHTS("flex-conversational-insights"), + FLEX_CONVERSATIONAL_INSIGHTS_MESSAGES( + "flex-conversational-insights-messages" + ), + FLEX_CONVERSATIONAL_INSIGHTS_VOICE_MINUTES( + "flex-conversational-insights-voice-minutes" + ), + FLEX_EMAIL_USAGE("flex-email-usage"), + FLEX_MESSAGING_USAGE("flex-messaging-usage"), + FLEX_PARTNER_SPINSCI("flex-partner-spinsci"), + FLEX_PARTNER_XCELERATE("flex-partner-xcelerate"), + FLEX_RESELLER_ECOSYSTEM("flex-reseller-ecosystem"), + FLEX_UNIQUE_USER("flex-unique-user"), + FLEX_USAGE("flex-usage"), + FLEX_USERS("flex-users"), + FLEX_VOICE_MINUTE("flex-voice-minute"), + FLEX_YTICA("flex-ytica"), + FRAUD_LOOKUPS("fraud-lookups"), + FRONTLINE("frontline"), + FRONTLINE_USERS("frontline-users"), + FUNCTIONS("functions"), + GENERIC_PAY_TRANSACTIONS("generic-pay-transactions"), + GROUP_ROOMS("group-rooms"), + GROUP_ROOMS_DATA_TRACK("group-rooms-data-track"), + GROUP_ROOMS_ENCRYPTED_MEDIA_RECORDED( + "group-rooms-encrypted-media-recorded" + ), + GROUP_ROOMS_MEDIA_DOWNLOADED("group-rooms-media-downloaded"), + GROUP_ROOMS_MEDIA_RECORDED("group-rooms-media-recorded"), + GROUP_ROOMS_MEDIA_ROUTED("group-rooms-media-routed"), + GROUP_ROOMS_MEDIA_STORED("group-rooms-media-stored"), + GROUP_ROOMS_PARTICIPANT_MINUTES("group-rooms-participant-minutes"), + GROUP_ROOMS_RECORDED_MINUTES("group-rooms-recorded-minutes"), + IP_MESSAGING("ip-messaging"), + IP_MESSAGING_COMMANDS("ip-messaging-commands"), + IP_MESSAGING_DATA_STORAGE("ip-messaging-data-storage"), + IP_MESSAGING_DATA_TRANSFER("ip-messaging-data-transfer"), + IP_MESSAGING_ENDPOINT_CONNECTIVITY( + "ip-messaging-endpoint-connectivity" + ), + IVR_VIRTUAL_AGENT_CUSTOM_VOICES("ivr-virtual-agent-custom-voices"), + IVR_VIRTUAL_AGENT_GENAI("ivr-virtual-agent-genai"), + LINE_STATUS_LOOKUPS("line-status-lookups"), + LIVE_ACTIVITY_LOOKUPS("live-activity-lookups"), + LOOKUP_BUCKET_ADJUSTMENT("lookup-bucket-adjustment"), + LOOKUP_IDENTITY_MATCH("lookup-identity-match"), + LOOKUPS("lookups"), + MARKETPLACE("marketplace"), + MARKETPLACE_ALGORITHMIA_NAMED_ENTITY_RECOGNITION( + "marketplace-algorithmia-named-entity-recognition" + ), + MARKETPLACE_CADENCE_TRANSCRIPTION("marketplace-cadence-transcription"), + MARKETPLACE_CADENCE_TRANSLATION("marketplace-cadence-translation"), + MARKETPLACE_CAPIO_SPEECH_TO_TEXT("marketplace-capio-speech-to-text"), + MARKETPLACE_CONVRIZA_ABABA("marketplace-convriza-ababa"), + MARKETPLACE_DEEPGRAM_PHRASE_DETECTOR( + "marketplace-deepgram-phrase-detector" + ), + MARKETPLACE_DEEPGRAM_TRANSCRIPTION( + "marketplace-deepgram-transcription" + ), + MARKETPLACE_DEEPGRAM_TRANSCRIPTION_BASE( + "marketplace-deepgram-transcription-base" + ), + MARKETPLACE_DEEPGRAM_TRANSSCRIPTION_ENHANCED( + "marketplace-deepgram-transscription-enhanced" + ), + MARKETPLACE_DIGITAL_SEGMENT_BUSINESS_INFO( + "marketplace-digital-segment-business-info" + ), + MARKETPLACE_FACEBOOK_OFFLINE_CONVERSIONS( + "marketplace-facebook-offline-conversions" + ), + MARKETPLACE_GOOGLE_SPEECH_TO_TEXT("marketplace-google-speech-to-text"), + MARKETPLACE_IBM_WATSON_MESSAGE_INSIGHTS( + "marketplace-ibm-watson-message-insights" + ), + MARKETPLACE_IBM_WATSON_MESSAGE_SENTIMENT( + "marketplace-ibm-watson-message-sentiment" + ), + MARKETPLACE_IBM_WATSON_RECORDING_ANALYSIS( + "marketplace-ibm-watson-recording-analysis" + ), + MARKETPLACE_IBM_WATSON_TONE_ANALYZER( + "marketplace-ibm-watson-tone-analyzer" + ), + MARKETPLACE_ICEHOOK_SYSTEMS_SCOUT("marketplace-icehook-systems-scout"), + MARKETPLACE_INFOGROUP_DATAAXLE_BIZINFO( + "marketplace-infogroup-dataaxle-bizinfo" + ), + MARKETPLACE_KEEN_IO_CONTACT_CENTER_ANALYTICS( + "marketplace-keen-io-contact-center-analytics" + ), + MARKETPLACE_MARCHEX_CLEANCALL("marketplace-marchex-cleancall"), + MARKETPLACE_MARCHEX_RECORDING_ANALYSIS( + "marketplace-marchex-recording-analysis" + ), + MARKETPLACE_MARCHEX_SENTIMENT_ANALYSIS_FOR_SMS( + "marketplace-marchex-sentiment-analysis-for-sms" + ), + MARKETPLACE_MARKETPLACE_NEXTCALLER_SOCIAL_ID( + "marketplace-marketplace-nextcaller-social-id" + ), + MARKETPLACE_MOBILE_COMMONS_OPT_OUT_CLASSIFIER( + "marketplace-mobile-commons-opt-out-classifier" + ), + MARKETPLACE_NEXIWAVE_VOICEMAIL_TO_TEXT( + "marketplace-nexiwave-voicemail-to-text" + ), + MARKETPLACE_NEXTCALLER_ADVANCED_CALLER_IDENTIFICATION( + "marketplace-nextcaller-advanced-caller-identification" + ), + MARKETPLACE_NOMOROBO_SPAM_SCORE("marketplace-nomorobo-spam-score"), + MARKETPLACE_PAY_ADDONS("marketplace-pay-addons"), + MARKETPLACE_PAY_ADDONS_BASECOMMERCE_PAY_CONNECTOR( + "marketplace-pay-addons-basecommerce-pay-connector" + ), + MARKETPLACE_PAY_ADDONS_BRAINTREE_PAY_CONNECTOR( + "marketplace-pay-addons-braintree-pay-connector" + ), + MARKETPLACE_PAY_ADDONS_CARDCONNECT_PAY_CONNECTOR( + "marketplace-pay-addons-cardconnect-pay-connector" + ), + MARKETPLACE_PAY_ADDONS_CHASE_PAY_CONNECTOR( + "marketplace-pay-addons-chase-pay-connector" + ), + MARKETPLACE_PAY_ADDONS_SHUTTLE_PAY_CONNECTOR( + "marketplace-pay-addons-shuttle-pay-connector" + ), + MARKETPLACE_PAY_ADDONS_STRIPE_PAY_CONNECTOR( + "marketplace-pay-addons-stripe-pay-connector" + ), + MARKETPLACE_PAYFONE_TCPA_COMPLIANCE( + "marketplace-payfone-tcpa-compliance" + ), + MARKETPLACE_POLY_AI_CONNECTOR("marketplace-poly-ai-connector"), + MARKETPLACE_REALPHONEVALIDATION("marketplace-realphonevalidation"), + MARKETPLACE_REMEETING_AUTOMATIC_SPEECH_RECOGNITION( + "marketplace-remeeting-automatic-speech-recognition" + ), + MARKETPLACE_SPOKE_PHONE_LICENSE_PRO( + "marketplace-spoke-phone-license-pro" + ), + MARKETPLACE_SPOKE_PHONE_LICENSE_STANDARD( + "marketplace-spoke-phone-license-standard" + ), + MARKETPLACE_TCPA_DEFENSE_SOLUTIONS_BLACKLIST_FEED( + "marketplace-tcpa-defense-solutions-blacklist-feed" + ), + MARKETPLACE_TELO_OPENCNAM("marketplace-telo-opencnam"), + MARKETPLACE_TRESTLE_SOLUTIONS_CALLER_IDENTIFICATION( + "marketplace-trestle-solutions-caller-identification" + ), + MARKETPLACE_TRUECNAM_TRUE_SPAM("marketplace-truecnam-true-spam"), + MARKETPLACE_TWILIO_CALLER_NAME_LOOKUP_US( + "marketplace-twilio-caller-name-lookup-us" + ), + MARKETPLACE_TWILIO_CARRIER_INFORMATION_LOOKUP( + "marketplace-twilio-carrier-information-lookup" + ), + MARKETPLACE_VOICEBASE_PCI("marketplace-voicebase-pci"), + MARKETPLACE_VOICEBASE_TRANSCRIPTION( + "marketplace-voicebase-transcription" + ), + MARKETPLACE_VOICEBASE_TRANSCRIPTION_CUSTOM_VOCABULARY( + "marketplace-voicebase-transcription-custom-vocabulary" + ), + MARKETPLACE_WEB_PURIFY_PROFANITY_FILTER( + "marketplace-web-purify-profanity-filter" + ), + MARKETPLACE_WHITEPAGES_PRO_CALLER_IDENTIFICATION( + "marketplace-whitepages-pro-caller-identification" + ), + MARKETPLACE_WHITEPAGES_PRO_PHONE_INTELLIGENCE( + "marketplace-whitepages-pro-phone-intelligence" + ), + MARKETPLACE_WHITEPAGES_PRO_PHONE_REPUTATION( + "marketplace-whitepages-pro-phone-reputation" + ), + MARKETPLACE_WOLFARM_SPOKEN_RESULTS( + "marketplace-wolfarm-spoken-results" + ), + MARKETPLACE_WOLFRAM_SHORT_ANSWER("marketplace-wolfram-short-answer"), + MARKETPLACE_YTICA_CONTACT_CENTER_REPORTING_ANALYTICS( + "marketplace-ytica-contact-center-reporting-analytics" + ), + MARKETPLAY_PAY_ADDONS_SHUTTLE_PAY_CONNECTOR( + "marketplay-pay-addons-shuttle-pay-connector" + ), + MEDIA_COMPOSER_MINUTES("media-composer-minutes"), + MEDIASTORAGE("mediastorage"), + MIN_SPEND_ADJUSTMENTS("min-spend-adjustments"), + MMS("mms"), + MMS_INBOUND("mms-inbound"), + MMS_INBOUND_LONGCODE("mms-inbound-longcode"), + MMS_INBOUND_SHORTCODE("mms-inbound-shortcode"), + MMS_INBOUND_TOLL_FREE("mms-inbound-toll-free"), + MMS_MESSAGES_CARRIERFEES("mms-messages-carrierfees"), + MMS_OUTBOUND("mms-outbound"), + MMS_OUTBOUND_LONGCODE("mms-outbound-longcode"), + MMS_OUTBOUND_SHORTCODE("mms-outbound-shortcode"), + MMS_OUTBOUND_TOLLFREE("mms-outbound-tollfree"), + MONITOR("monitor"), + MONITOR_READS("monitor-reads"), + MONITOR_STORAGE("monitor-storage"), + MONITOR_WRITES("monitor-writes"), + NOTIFY("notify"), + NOTIFY_ACTIONS_ATTEMPTS("notify-actions-attempts"), + NOTIFY_CHANNELS("notify-channels"), + NUMBER_FORMAT_LOOKUPS("number-format-lookups"), + PCHAT("pchat"), + PCHAT_ACTIONS("pchat-actions"), + PCHAT_APS("pchat-aps"), + PCHAT_CONV_MED_STORAGE("pchat-conv-med-storage"), + PCHAT_MESSAGES("pchat-messages"), + PCHAT_NOTIFICATIONS("pchat-notifications"), + PCHAT_READS("pchat-reads"), + PCHAT_USERS("pchat-users"), + PEER_TO_PEER_ROOMS_PARTICIPANT_MINUTES( + "peer-to-peer-rooms-participant-minutes" + ), + PFAX("pfax"), + PFAX_MINUTES("pfax-minutes"), + PFAX_MINUTES_INBOUND("pfax-minutes-inbound"), + PFAX_MINUTES_OUTBOUND("pfax-minutes-outbound"), + PFAX_PAGES("pfax-pages"), + PHONE_QUALITY_SCORE_LOOKUPS("phone-quality-score-lookups"), + PHONENUMBERS("phonenumbers"), + PHONENUMBERS_CPS("phonenumbers-cps"), + PHONENUMBERS_EMERGENCY("phonenumbers-emergency"), + PHONENUMBERS_LOCAL("phonenumbers-local"), + PHONENUMBERS_MOBILE("phonenumbers-mobile"), + PHONENUMBERS_PORTING("phonenumbers-porting"), + PHONENUMBERS_SETUPS("phonenumbers-setups"), + PHONENUMBERS_TOLLFREE("phonenumbers-tollfree"), + PREMIUMSUPPORT("premiumsupport"), + PREMIUMSUPPORT_PERCENTAGE_SPEND("premiumsupport-percentage-spend"), + PROGRAMMABLEVOICE_PLATFORM("programmablevoice-platform"), + PROGRAMMABLEVOICECONN_CLIENTSDK("programmablevoiceconn-clientsdk"), + PROGRAMMABLEVOICECONN_CLIENTSDK_INBOUND( + "programmablevoiceconn-clientsdk-inbound" + ), + PROGRAMMABLEVOICECONN_CLIENTSDK_OUTBOUND( + "programmablevoiceconn-clientsdk-outbound" + ), + PROGRAMMABLEVOICECONN_ONNET("programmablevoiceconn-onnet"), + PROGRAMMABLEVOICECONN_ONNET_INBOUND( + "programmablevoiceconn-onnet-inbound" + ), + PROGRAMMABLEVOICECONN_ONNET_OUTBOUND( + "programmablevoiceconn-onnet-outbound" + ), + PROGRAMMABLEVOICECONN_SIP("programmablevoiceconn-sip"), + PROGRAMMABLEVOICECONN_SIP_INBOUND("programmablevoiceconn-sip-inbound"), + PROGRAMMABLEVOICECONN_SIP_OUTBOUND( + "programmablevoiceconn-sip-outbound" + ), + PROGRAMMABLEVOICECONNECTIVITY("programmablevoiceconnectivity"), + PROXY("proxy"), + PROXY_ACTIVE_SESSIONS("proxy-active-sessions"), + PROXY_BUCKET_ADJUSTMENT("proxy-bucket-adjustment"), + PROXY_LICENSES("proxy-licenses"), + PSTNCONNECTIVITY("pstnconnectivity"), + PSTNCONNECTIVITY_INBOUND("pstnconnectivity-inbound"), + PSTNCONNECTIVITY_OUTBOUND("pstnconnectivity-outbound"), + PV("pv"), + PV_BASIC_ROOMS("pv-basic-rooms"), + PV_COMPOSITION_MEDIA_DOWNLOADED("pv-composition-media-downloaded"), + PV_COMPOSITION_MEDIA_ENCRYPTED("pv-composition-media-encrypted"), + PV_COMPOSITION_MEDIA_STORED("pv-composition-media-stored"), + PV_COMPOSITION_MINUTES("pv-composition-minutes"), + PV_RECORDING_COMPOSITIONS("pv-recording-compositions"), + PV_ROOM_PARTICIPANTS("pv-room-participants"), + PV_ROOM_PARTICIPANTS_AU1("pv-room-participants-au1"), + PV_ROOM_PARTICIPANTS_BR1("pv-room-participants-br1"), + PV_ROOM_PARTICIPANTS_IE1("pv-room-participants-ie1"), + PV_ROOM_PARTICIPANTS_JP1("pv-room-participants-jp1"), + PV_ROOM_PARTICIPANTS_SG1("pv-room-participants-sg1"), + PV_ROOM_PARTICIPANTS_US1("pv-room-participants-us1"), + PV_ROOM_PARTICIPANTS_US2("pv-room-participants-us2"), + PV_ROOMS("pv-rooms"), + PV_SIP_ENDPOINT_REGISTRATIONS("pv-sip-endpoint-registrations"), + RCS_MESSAGES("rcs-messages"), + REASSIGNED_NUMBER("reassigned-number"), + RECORDINGS("recordings"), + RECORDINGSTORAGE("recordingstorage"), + SHORTCODES("shortcodes"), + SHORTCODES_CUSTOMEROWNED("shortcodes-customerowned"), + SHORTCODES_MMS_ENABLEMENT("shortcodes-mms-enablement"), + SHORTCODES_MPS("shortcodes-mps"), + SHORTCODES_RANDOM("shortcodes-random"), + SHORTCODES_SETUP_FEES("shortcodes-setup-fees"), + SHORTCODES_UK("shortcodes-uk"), + SHORTCODES_VANITY("shortcodes-vanity"), + SIM_SWAP_LOOKUPS("sim-swap-lookups"), + SIP_SECURE_MEDIA("sip-secure-media"), + SMALL_GROUP_ROOMS("small-group-rooms"), + SMALL_GROUP_ROOMS_DATA_TRACK("small-group-rooms-data-track"), + SMALL_GROUP_ROOMS_PARTICIPANT_MINUTES( + "small-group-rooms-participant-minutes" + ), + SMS("sms"), + SMS_INBOUND("sms-inbound"), + SMS_INBOUND_LONGCODE("sms-inbound-longcode"), + SMS_INBOUND_SHORTCODE("sms-inbound-shortcode"), + SMS_INBOUND_TOLLFREE("sms-inbound-tollfree"), + SMS_MESSAGES_CARRIERFEES("sms-messages-carrierfees"), + SMS_MESSAGES_FEATURES("sms-messages-features"), + SMS_MESSAGES_FEATURES_ENGAGEMENT_SUITE( + "sms-messages-features-engagement-suite" + ), + SMS_MESSAGES_FEATURES_MESSAGE_REDACTION( + "sms-messages-features-message-redaction" + ), + SMS_MESSAGES_FEATURES_SENDERID("sms-messages-features-senderid"), + SMS_MPS("sms-mps"), + SMS_MPS_SHORTCODE("sms-mps-shortcode"), + SMS_MPS_TOLLFREE("sms-mps-tollfree"), + SMS_MPS_TOLLFREE_SETUP("sms-mps-tollfree-setup"), + SMS_NATIONAL_REGULATORY_PROTECTION( + "sms-national-regulatory-protection" + ), + SMS_OUTBOUND("sms-outbound"), + SMS_OUTBOUND_CONTENT_INSPECTION("sms-outbound-content-inspection"), + SMS_OUTBOUND_LONGCODE("sms-outbound-longcode"), + SMS_OUTBOUND_SHORTCODE("sms-outbound-shortcode"), + SMS_OUTBOUND_TOLLFREE("sms-outbound-tollfree"), + SMS_PUMPING_PROTECTION("sms-pumping-protection"), + SMS_PUMPING_RISK("sms-pumping-risk"), + SMSMESSAGES_BUCKET_ADJUSTMENTS("smsmessages-bucket-adjustments"), + SMSMESSAGES_OUTBOUND_DOMESTIC("smsmessages-outbound-domestic"), + SPEECH_RECOGNITION("speech-recognition"), + STUDIO_ENGAGEMENTS("studio-engagements"), + SYNC("sync"), + SYNC_ACTIONS("sync-actions"), + SYNC_ENDPOINT_HOURS("sync-endpoint-hours"), + SYNC_ENDPOINT_HOURS_ABOVE_DAILY_CAP( + "sync-endpoint-hours-above-daily-cap" + ), + TASKROUTER_TASKS("taskrouter-tasks"), + TOTALPRICE("totalprice"), + TRANSCRIPTIONS("transcriptions"), + TRUNKING_CPS("trunking-cps"), + TRUNKING_EMERGENCY_CALLS("trunking-emergency-calls"), + TRUNKING_ORIGINATION("trunking-origination"), + TRUNKING_ORIGINATION_LOCAL("trunking-origination-local"), + TRUNKING_ORIGINATION_MOBILE("trunking-origination-mobile"), + TRUNKING_ORIGINATION_TOLLFREE("trunking-origination-tollfree"), + TRUNKING_RECORDINGS("trunking-recordings"), + TRUNKING_SECURE("trunking-secure"), + TRUNKING_TERMINATION("trunking-termination"), + TTS_GOOGLE("tts-google"), + TURNMEGABYTES("turnmegabytes"), + TURNMEGABYTES_AUSTRALIA("turnmegabytes-australia"), + TURNMEGABYTES_BRASIL("turnmegabytes-brasil"), + TURNMEGABYTES_GERMANY("turnmegabytes-germany"), + TURNMEGABYTES_INDIA("turnmegabytes-india"), + TURNMEGABYTES_IRELAND("turnmegabytes-ireland"), + TURNMEGABYTES_JAPAN("turnmegabytes-japan"), + TURNMEGABYTES_SINGAPORE("turnmegabytes-singapore"), + TURNMEGABYTES_USEAST("turnmegabytes-useast"), + TURNMEGABYTES_USWEST("turnmegabytes-uswest"), + TWILIO_FOR_SALESFORCE("twilio-for-salesforce"), + TWILIO_FOR_SALESFORCE_LICENSES("twilio-for-salesforce-licenses"), + TWILIO_INTERCONNECT("twilio-interconnect"), + TWIML("twiml"), + USAGE_FLEX_VIDEO("usage-flex-video"), + USAGE_FUNCTIONS("usage-functions"), + USAGE_RCS_BASIC_MESSAGES_OUTBOUND("usage-rcs-basic-messages-outbound"), + USAGE_RCS_MESSAGES("usage-rcs-messages"), + USAGE_RCS_MESSAGES_INBOUND("usage-rcs-messages-inbound"), + USAGE_RCS_MESSAGING_CARRIER_FEES("usage-rcs-messaging-carrier-fees"), + USAGE_RCS_SINGLE_MESSAGES_OUTBOUND( + "usage-rcs-single-messages-outbound" + ), + VERIFY_PACKAGE_PLANS("verify-package-plans"), + VERIFY_PUSH("verify-push"), + VERIFY_SNA("verify-sna"), + VERIFY_TOTP("verify-totp"), + VERIFY_VOICE_SMS("verify-voice-sms"), + VERIFY_WHATSAPP_CONVERSATIONS_BUSINESS_INITIATED( + "verify-whatsapp-conversations-business-initiated" + ), + VIDEO_RECORDINGS("video-recordings"), + VIDEO_ROOMS_TURN_MEGABYTES("video-rooms-turn-megabytes"), + VIRTUAL_AGENT("virtual-agent"), + VOICE_INSIGHTS("voice-insights"), + VOICE_INSIGHTS_CLIENT_INSIGHTS_ON_DEMAND_MINUTE( + "voice-insights-client-insights-on-demand-minute" + ), + VOICE_INSIGHTS_PTSN_INSIGHTS_ON_DEMAND_MINUTE( + "voice-insights-ptsn-insights-on-demand-minute" + ), + VOICE_INSIGHTS_SIP_INTERFACE_INSIGHTS_ON_DEMAND_MINUTE( + "voice-insights-sip-interface-insights-on-demand-minute" + ), + VOICE_INSIGHTS_SIP_TRUNKING_INSIGHTS_ON_DEMAND_MINUTE( + "voice-insights-sip-trunking-insights-on-demand-minute" + ), + VOICE_INTELLIGENCE("voice-intelligence"), + VOICE_INTELLIGENCE_EIP_OPERATORS("voice-intelligence-eip-operators"), + VOICE_INTELLIGENCE_OPERATORS("voice-intelligence-operators"), + VOICE_INTELLIGENCE_TRANSCRIPTION("voice-intelligence-transcription"), + WDS("wds"), + WIRELESS("wireless"), + WIRELESS_DATA("wireless-data"), + WIRELESS_DATA_PAYG("wireless-data-payg"), + WIRELESS_DATA_PAYG_AFRICA("wireless-data-payg-africa"), + WIRELESS_DATA_PAYG_ASIA("wireless-data-payg-asia"), + WIRELESS_DATA_PAYG_CENTRALANDSOUTHAMERICA( + "wireless-data-payg-centralandsouthamerica" + ), + WIRELESS_DATA_PAYG_EUROPE("wireless-data-payg-europe"), + WIRELESS_DATA_PAYG_NORTHAMERICA("wireless-data-payg-northamerica"), + WIRELESS_DATA_PAYG_OCEANIA("wireless-data-payg-oceania"), + WIRELESS_DATA_QUOTA1("wireless-data-quota1"), + WIRELESS_DATA_QUOTA1_AFRICA("wireless-data-quota1-africa"), + WIRELESS_DATA_QUOTA1_ASIA("wireless-data-quota1-asia"), + WIRELESS_DATA_QUOTA1_CENTRALANDSOUTHAMERICA( + "wireless-data-quota1-centralandsouthamerica" + ), + WIRELESS_DATA_QUOTA1_EUROPE("wireless-data-quota1-europe"), + WIRELESS_DATA_QUOTA1_NORTHAMERICA("wireless-data-quota1-northamerica"), + WIRELESS_DATA_QUOTA1_OCEANIA("wireless-data-quota1-oceania"), + WIRELESS_DATA_QUOTA10("wireless-data-quota10"), + WIRELESS_DATA_QUOTA10_AFRICA("wireless-data-quota10-africa"), + WIRELESS_DATA_QUOTA10_ASIA("wireless-data-quota10-asia"), + WIRELESS_DATA_QUOTA10_CENTRALANDSOUTHAMERICA( + "wireless-data-quota10-centralandsouthamerica" + ), + WIRELESS_DATA_QUOTA10_EUROPE("wireless-data-quota10-europe"), + WIRELESS_DATA_QUOTA10_NORTHAMERICA( + "wireless-data-quota10-northamerica" + ), + WIRELESS_DATA_QUOTA10_OCEANIA("wireless-data-quota10-oceania"), + WIRELESS_DATA_QUOTA50("wireless-data-quota50"), + WIRELESS_DATA_QUOTA50_AFRICA("wireless-data-quota50-africa"), + WIRELESS_DATA_QUOTA50_ASIA("wireless-data-quota50-asia"), + WIRELESS_DATA_QUOTA50_CENTRALANDSOUTHAMERICA( + "wireless-data-quota50-centralandsouthamerica" + ), + WIRELESS_DATA_QUOTA50_EUROPE("wireless-data-quota50-europe"), + WIRELESS_DATA_QUOTA50_NORTHAMERICA( + "wireless-data-quota50-northamerica" + ), + WIRELESS_DATA_QUOTA50_OCEANIA("wireless-data-quota50-oceania"), + WIRELESS_DATA_QUOTACUSTOM("wireless-data-quotacustom"), + WIRELESS_DATA_QUOTACUSTOM_AFRICA("wireless-data-quotacustom-africa"), + WIRELESS_DATA_QUOTACUSTOM_ASIA("wireless-data-quotacustom-asia"), + WIRELESS_DATA_QUOTACUSTOM_CENTRALANDSOUTHAMERICA( + "wireless-data-quotacustom-centralandsouthamerica" + ), + WIRELESS_DATA_QUOTACUSTOM_EUROPE("wireless-data-quotacustom-europe"), + WIRELESS_DATA_QUOTACUSTOM_NORTHAMERICA( + "wireless-data-quotacustom-northamerica" + ), + WIRELESS_DATA_QUOTACUSTOM_OCEANIA("wireless-data-quotacustom-oceania"), + WIRELESS_MRC_PAYG("wireless-mrc-payg"), + WIRELESS_MRC_QUOTA1("wireless-mrc-quota1"), + WIRELESS_MRC_QUOTA10("wireless-mrc-quota10"), + WIRELESS_MRC_QUOTA50("wireless-mrc-quota50"), + WIRELESS_MRC_QUOTACUSTOM("wireless-mrc-quotacustom"), + WIRELESS_ORDERS("wireless-orders"), + WIRELESS_ORDERS_ARTWORK("wireless-orders-artwork"), + WIRELESS_ORDERS_BULK("wireless-orders-bulk"), + WIRELESS_ORDERS_ESIM("wireless-orders-esim"), + WIRELESS_ORDERS_STARTER("wireless-orders-starter"), + WIRELESS_QUOTAS("wireless-quotas"), + WIRELESS_SMS_AFRICA("wireless-sms-africa"), + WIRELESS_SMS_ASIA("wireless-sms-asia"), + WIRELESS_SMS_CENTRALANDSOUTHAMERICA( + "wireless-sms-centralandsouthamerica" + ), + WIRELESS_SMS_EUROPE("wireless-sms-europe"), + WIRELESS_SMS_NORTHAMERICA("wireless-sms-northamerica"), + WIRELESS_SMS_OCEANIA("wireless-sms-oceania"), + WIRELESS_SUPER_SIM("wireless-super-sim"), + WIRELESS_SUPER_SIM_DATA("wireless-super-sim-data"), + WIRELESS_SUPER_SIM_DATA_NORTH_AMERICA_USA( + "wireless-super-sim-data-north-america-usa" + ), + WIRELESS_SUPER_SIM_DATA_PAYG("wireless-super-sim-data-payg"), + WIRELESS_SUPER_SIM_DATA_PAYG_EUROPE( + "wireless-super-sim-data-payg-europe" + ), + WIRELESS_SUPER_SIM_DATA_PAYG_NORTH_AMERICA( + "wireless-super-sim-data-payg-north-america" + ), + WIRELESS_SUPER_SIM_HARDWARE("wireless-super-sim-hardware"), + WIRELESS_SUPER_SIM_HARDWARE_BULK("wireless-super-sim-hardware-bulk"), + WIRELESS_SUPER_SIM_SMSCOMMANDS("wireless-super-sim-smscommands"), + WIRELESS_SUPER_SIM_SMSCOMMANDS_AFRICA( + "wireless-super-sim-smscommands-africa" + ), + WIRELESS_SUPER_SIM_SMSCOMMANDS_ASIA( + "wireless-super-sim-smscommands-asia" + ), + WIRELESS_SUPER_SIM_SMSCOMMANDS_CENT_AND_SOUTH_AMERICA( + "wireless-super-sim-smscommands-cent-and-south-america" + ), + WIRELESS_SUPER_SIM_SMSCOMMANDS_EUROPE( + "wireless-super-sim-smscommands-europe" + ), + WIRELESS_SUPER_SIM_SMSCOMMANDS_NORTH_AMERICA( + "wireless-super-sim-smscommands-north-america" + ), + WIRELESS_SUPER_SIM_SMSCOMMANDS_OCEANIA( + "wireless-super-sim-smscommands-oceania" + ), + WIRELESS_SUPER_SIM_SUBSCRIPTION("wireless-super-sim-subscription"), + WIRELESS_SUPER_SIM_SUBSCRIPTION_PAYG( + "wireless-super-sim-subscription-payg" + ), + WIRELESS_USAGE("wireless-usage"), + WIRELESS_USAGE_COMMANDS("wireless-usage-commands"), + WIRELESS_USAGE_COMMANDS_AFRICA("wireless-usage-commands-africa"), + WIRELESS_USAGE_COMMANDS_ASIA("wireless-usage-commands-asia"), + WIRELESS_USAGE_COMMANDS_CENTRALANDSOUTHAMERICA( + "wireless-usage-commands-centralandsouthamerica" + ), + WIRELESS_USAGE_COMMANDS_EUROPE("wireless-usage-commands-europe"), + WIRELESS_USAGE_COMMANDS_HOME("wireless-usage-commands-home"), + WIRELESS_USAGE_COMMANDS_NORTHAMERICA( + "wireless-usage-commands-northamerica" + ), + WIRELESS_USAGE_COMMANDS_OCEANIA("wireless-usage-commands-oceania"), + WIRELESS_USAGE_COMMANDS_ROAMING("wireless-usage-commands-roaming"), + WIRELESS_USAGE_DATA("wireless-usage-data"), + WIRELESS_USAGE_DATA_AFRICA("wireless-usage-data-africa"), + WIRELESS_USAGE_DATA_ASIA("wireless-usage-data-asia"), + WIRELESS_USAGE_DATA_CENTRALANDSOUTHAMERICA( + "wireless-usage-data-centralandsouthamerica" + ), + WIRELESS_USAGE_DATA_CUSTOM_ADDITIONALMB( + "wireless-usage-data-custom-additionalmb" + ), + WIRELESS_USAGE_DATA_CUSTOM_FIRST5MB( + "wireless-usage-data-custom-first5mb" + ), + WIRELESS_USAGE_DATA_DOMESTIC_ROAMING( + "wireless-usage-data-domestic-roaming" + ), + WIRELESS_USAGE_DATA_EUROPE("wireless-usage-data-europe"), + WIRELESS_USAGE_DATA_INDIVIDUAL_ADDITIONALGB( + "wireless-usage-data-individual-additionalgb" + ), + WIRELESS_USAGE_DATA_INDIVIDUAL_FIRSTGB( + "wireless-usage-data-individual-firstgb" + ), + WIRELESS_USAGE_DATA_INTERNATIONAL_ROAMING_CANADA( + "wireless-usage-data-international-roaming-canada" + ), + WIRELESS_USAGE_DATA_INTERNATIONAL_ROAMING_INDIA( + "wireless-usage-data-international-roaming-india" + ), + WIRELESS_USAGE_DATA_INTERNATIONAL_ROAMING_MEXICO( + "wireless-usage-data-international-roaming-mexico" + ), + WIRELESS_USAGE_DATA_NORTHAMERICA("wireless-usage-data-northamerica"), + WIRELESS_USAGE_DATA_OCEANIA("wireless-usage-data-oceania"), + WIRELESS_USAGE_DATA_POOLED("wireless-usage-data-pooled"), + WIRELESS_USAGE_DATA_POOLED_DOWNLINK( + "wireless-usage-data-pooled-downlink" + ), + WIRELESS_USAGE_DATA_POOLED_UPLINK("wireless-usage-data-pooled-uplink"), + WIRELESS_USAGE_MRC("wireless-usage-mrc"), + WIRELESS_USAGE_MRC_CUSTOM("wireless-usage-mrc-custom"), + WIRELESS_USAGE_MRC_INDIVIDUAL("wireless-usage-mrc-individual"), + WIRELESS_USAGE_MRC_POOLED("wireless-usage-mrc-pooled"), + WIRELESS_USAGE_MRC_SUSPENDED("wireless-usage-mrc-suspended"), + WIRELESS_USAGE_SMS("wireless-usage-sms"), + WIRELESS_USAGE_VOICE("wireless-usage-voice"), + A2P_FAST_TRACK_ONBOARDING("a2p-fast-track-onboarding"), + ADVISORY_SERVICES("advisory-services"), + ADVISORY_SERVICES_BILLED("advisory-services-billed"), + ADVISORY_SERVICES_CALL_TRACKING("advisory-services-call-tracking"), + ADVISORY_SERVICES_DATA_SERVICES("advisory-services-data-services"), + ADVISORY_SERVICES_EXPENSES("advisory-services-expenses"), + ADVISORY_SERVICES_SIP_TRUNKING("advisory-services-sip-trunking"), + ASSETS_REQUESTS("assets-requests"), + AUDIENCE_MINUTES_VIDEO("audience-minutes-video"), + AUTHY_BUCKET_ADJUSTMENT("authy-bucket-adjustment"), + AUTHY_SOFTWARE("authy-software"), + CALLERIDLOOKUPS_API("calleridlookups-api"), + CALLERIDLOOKUPS_PROGRAMMABLEVOICE("calleridlookups-programmablevoice"), + CALLERIDLOOKUPS_TRUNKING("calleridlookups-trunking"), + CALLS_TRUNKING_INBOUND_TOLLFREE_LOCAL( + "calls-trunking-inbound-tollfree-local" + ), + CALLS_TRUNKING_INBOUND_TOLLFREE_MOBILE( + "calls-trunking-inbound-tollfree-mobile" + ), + CHANNELS_WHATSAPP_CONVERSATION_FREE_1( + "channels-whatsapp-conversation-free-1" + ), + CONFERENCE("conference"), + CONVERSATIONAL_INSIGHTS("conversational-insights"), + CONVERSATIONAL_INSIGHTS_MESSAGES("conversational-insights-messages"), + CONVERSATIONAL_INSIGHTS_VOICE_MINUTES( + "conversational-insights-voice-minutes" + ), + DEMO("demo"), + DEMO_UC_SCRIPT_TEST("demo-uc-script-test"), + ELASTIC_SIP_TRUNKING("elastic-sip-trunking"), + ELASTIC_SIP_TRUNKING_CALL_TRANSFERS( + "elastic-sip-trunking-call-transfers" + ), + ENTERPRISE_HIPPA("enterprise-hippa"), + FLEX_NAMED_USERS("flex-named-users"), + FLEX_SPINSCI("flex-spinsci"), + FLEX_USERS_1("flex-users-1"), + FLEX_WFO_PREMIUM_SPEECH_ANALYTICS("flex-wfo-premium-speech-analytics"), + FLEX_XCELERATE("flex-xcelerate"), + FUNCTIONS_ROLLUP("functions-rollup"), + IMP_V1_USAGE("imp-v1-usage"), + IP_MESSAGING_ADDONS("ip-messaging-addons"), + IVR("ivr"), + IVR_CONVERSATIONAL("ivr-conversational"), + IVR_DTMF("ivr-dtmf"), + IVR_VIRTUALAGENT("ivr-virtualagent"), + LIVE("live"), + LIVE_MEDIA_RECORDING_MINUTES("live-media-recording-minutes"), + LONGCODE_MPS("longcode-mps"), + MARKETPLACE_ANALYTICS_ADDONS("marketplace-analytics-addons"), + MARKETPLACE_ISV_ADDONS("marketplace-isv-addons"), + MARKETPLACE_MESSAGING_ADDONS("marketplace-messaging-addons"), + MARKETPLACE_PHONENUMBERS_ADDONS("marketplace-phonenumbers-addons"), + MARKETPLACE_RECORDING_ADDONS("marketplace-recording-addons"), + MARKETPLACE_VIRTUALAGENT_ADDONS("marketplace-virtualagent-addons"), + MARKETPLAY_PAY_ADDONS_SHUTTLE_PAY_CONNECTOR_1( + "marketplay-pay-addons-shuttle-pay-connector-1" + ), + MARKETPLAY_PAY_ADDONS_STRIPE_PAY_CONNECTOR( + "marketplay-pay-addons-stripe-pay-connector" + ), + MMS_INBOUND_LONGCODE_CANADA("mms-inbound-longcode-canada"), + MMS_INBOUND_LONGCODE_UNITEDSTATES("mms-inbound-longcode-unitedstates"), + MMS_OUTBOUND_LONGCODE_CANADA("mms-outbound-longcode-canada"), + MMS_OUTBOUND_LONGCODE_UNITEDSTATES( + "mms-outbound-longcode-unitedstates" + ), + MMS_OUTBOUND_TOLL_FREE("mms-outbound-toll-free"), + NOTIFY_CHATAPPSANDOTHERCHANNELS("notify-chatappsandotherchannels"), + NOTIFY_NOTIFYSERVICES("notify-notifyservices"), + NOTIFY_PUSHNOTIFICATIONS("notify-pushnotifications"), + PAYMENT_GATEWAY_CONNECTORS("payment-gateway-connectors"), + PAYMENT_SOLUTIONS("payment-solutions"), + PCHAT_BUCKET_ADJUSTMENT("pchat-bucket-adjustment"), + PHONENUMBERS_NUMBERS("phonenumbers-numbers"), + PROG_VOICE_CLIENT_ANDROID("prog-voice-client-android"), + PROG_VOICE_CLIENT_ANDROID_INBOUND("prog-voice-client-android-inbound"), + PROG_VOICE_CLIENT_ANDROID_OUTBOUND( + "prog-voice-client-android-outbound" + ), + PROG_VOICE_CLIENT_IOS("prog-voice-client-ios"), + PROG_VOICE_CLIENT_IOS_INBOUND("prog-voice-client-ios-inbound"), + PROG_VOICE_CLIENT_IOS_OUTBOUND("prog-voice-client-ios-outbound"), + PROG_VOICE_CLIENT_SDK("prog-voice-client-sdk"), + PROG_VOICE_CLIENT_WEB("prog-voice-client-web"), + PROG_VOICE_CLIENT_WEB_INBOUND("prog-voice-client-web-inbound"), + PROG_VOICE_CLIENT_WEB_OUTBOUND("prog-voice-client-web-outbound"), + PROGRAMMABLEVOICECONNECTIVITY_MEDIA_STREAMS( + "programmablevoiceconnectivity-media-streams" + ), + PSTNCONNECTIVITY_BYOC("pstnconnectivity-byoc"), + PSTNCONNECTIVITY_EMERGENCY("pstnconnectivity-emergency"), + PSTNCONNECTIVITY_MINUTES("pstnconnectivity-minutes"), + PSTNCONNECTIVITY_MINUTES_1("pstnconnectivity-minutes-1"), + PSTNCONNECTIVITY_MINUTESINBOUNDLOCAL( + "pstnconnectivity-minutesinboundlocal" + ), + PSTNCONNECTIVITY_MINUTESINBOUNDMOBILE( + "pstnconnectivity-minutesinboundmobile" + ), + PSTNCONNECTIVITY_MINUTESINBOUNDTOLLFREE( + "pstnconnectivity-minutesinboundtollfree" + ), + PSTNCONNECTIVITY_MINUTESINBOUNDTOLLFREELOCAL( + "pstnconnectivity-minutesinboundtollfreelocal" + ), + PSTNCONNECTIVITY_MINUTESINBOUNDTOLLFREEMOBILE( + "pstnconnectivity-minutesinboundtollfreemobile" + ), + PV_ROOM_HOURS("pv-room-hours"), + PV_ROOM_SIMULTANEOUS_PARTICIPANT_CONNECTIONS( + "pv-room-simultaneous-participant-connections" + ), + PVIDEO_ROOM_HOURS_AU1("pvideo-room-hours-au1"), + PVIDEO_ROOM_HOURS_BR1("pvideo-room-hours-br1"), + PVIDEO_ROOM_HOURS_IE1("pvideo-room-hours-ie1"), + PVIDEO_ROOM_HOURS_JP1("pvideo-room-hours-jp1"), + PVIDEO_ROOM_HOURS_SG1("pvideo-room-hours-sg1"), + PVIDEO_ROOM_HOURS_US1("pvideo-room-hours-us1"), + PVIDEO_ROOM_HOURS_US2("pvideo-room-hours-us2"), + RECORDINGS_ENCRYPTED("recordings-encrypted"), + SHORT_CODE_SETUP_FEES("short-code-setup-fees"), + SHORTCODES_MESSAGES_INBOUND("shortcodes-messages-inbound"), + SHORTCODES_MESSAGES_OUTBOUND("shortcodes-messages-outbound"), + SMS_MESSAGES_REGISTRATIONFEES("sms-messages-registrationfees"), + SMS_MMS_PENALTY_FEES("sms-mms-penalty-fees"), + SMS_MMS_PENALTY_FEES_1("sms-mms-penalty-fees-1"), + SMS_PUMPING_PROTECTION_NON_USCA("sms-pumping-protection-non-usca"), + SMS_PUMPING_PROTECTION_USCA("sms-pumping-protection-usca"), + STUDIO("studio"), + STUDIO_MONTHLY_FEES("studio-monthly-fees"), + SUPERSIM("supersim"), + TASK_ROUTER("task-router"), + TASK_ROUTER_WORKERS("task-router-workers"), + TEST_QUOTA_BUCKETS("test-quota-buckets"), + TEST_UC_SCRIPT_1("test-uc-script-1"), + TEST_UC_SCRIPT_DEMO_2("test-uc-script-demo-2"), + TEXT_TO_SPEECH("text-to-speech"), + TME("tme"), + TTS_BASIC("tts-basic"), + TWILIO_EDITIONS("twilio-editions"), + TWILIO_INTERCONNECT_CALIFORNIA("twilio-interconnect-california"), + TWILIO_INTERCONNECT_CALIFORNIA_MONTHLY( + "twilio-interconnect-california-monthly" + ), + TWILIO_INTERCONNECT_CALIFORNIA_SETUP( + "twilio-interconnect-california-setup" + ), + TWILIO_INTERCONNECT_FRANKFURT("twilio-interconnect-frankfurt"), + TWILIO_INTERCONNECT_FRANKFURT_MO("twilio-interconnect-frankfurt-mo"), + TWILIO_INTERCONNECT_FRANKFURT_SETUP( + "twilio-interconnect-frankfurt-setup" + ), + TWILIO_INTERCONNECT_LONDON("twilio-interconnect-london"), + TWILIO_INTERCONNECT_LONDON_MO("twilio-interconnect-london-mo"), + TWILIO_INTERCONNECT_LONDON_SETUP("twilio-interconnect-london-setup"), + TWILIO_INTERCONNECT_SAO_PAULO("twilio-interconnect-sao-paulo"), + TWILIO_INTERCONNECT_SAO_PAULO_MONTHLY( + "twilio-interconnect-sao-paulo-monthly" + ), + TWILIO_INTERCONNECT_SAO_PAULO_SETUP( + "twilio-interconnect-sao-paulo-setup" + ), + TWILIO_INTERCONNECT_SINGAPORE("twilio-interconnect-singapore"), + TWILIO_INTERCONNECT_SINGAPORE_MO("twilio-interconnect-singapore-mo"), + TWILIO_INTERCONNECT_SINGAPORE_SETUP( + "twilio-interconnect-singapore-setup" + ), + TWILIO_INTERCONNECT_SYDNEY("twilio-interconnect-sydney"), + TWILIO_INTERCONNECT_SYDNEY_MO("twilio-interconnect-sydney-mo"), + TWILIO_INTERCONNECT_SYDNEY_SETUP("twilio-interconnect-sydney-setup"), + TWILIO_INTERCONNECT_TOKYO("twilio-interconnect-tokyo"), + TWILIO_INTERCONNECT_TOKYO_MO("twilio-interconnect-tokyo-mo"), + TWILIO_INTERCONNECT_TOKYO_SETUP("twilio-interconnect-tokyo-setup"), + TWILIO_INTERCONNECT_VA("twilio-interconnect-va"), + TWILIO_INTERCONNECT_VA_MO("twilio-interconnect-va-mo"), + TWILIO_INTERCONNECT_VA_SETUP("twilio-interconnect-va-setup"), + TWIML_VERBS("twiml-verbs"), + TWIML_VERBS_SAY("twiml-verbs-say"), + USAGE_PROGRAMMABLE_MESSAGING_ENGAGEMENT_SUITE( + "usage-programmable-messaging-engagement-suite" + ), + USAGE_PROGRAMMABLE_MESSAGING_FEES_SERVICES( + "usage-programmable-messaging-fees-services" + ), + VERIFY_OUTBOUND_EMAIL("verify-outbound-email"), + VERIFY_PACKAGED_PLANS("verify-packaged-plans"), + VERIFY_SILENT_NETWORK_AUTH("verify-silent-network-auth"), + VERIFY_VOICE_AND_SMS("verify-voice-and-sms"), + VOICE_INSIGHTS_CLIENT_INSIGHTS_MONTHY_COMMIT( + "voice-insights-client-insights-monthy-commit" + ), + WIRELESS_DATA_PAYG_ASIA_AFG("wireless-data-payg-asia-afg"), + WIRELESS_MULTI_IMSI_SIM_COMMANDS("wireless-multi-imsi-sim-commands"), + WIRELESS_MULTI_IMSI_SIM_COMMANDS_USA( + "wireless-multi-imsi-sim-commands-usa" + ), + WIRELESS_MULTI_IMSI_SIM_DATA("wireless-multi-imsi-sim-data"), + WIRELESS_MULTI_IMSI_SIM_DATA_EU28("wireless-multi-imsi-sim-data-eu28"), + WIRELESS_MULTI_IMSI_SIM_DATA_USA("wireless-multi-imsi-sim-data-usa"), + WIRELESS_MULTI_IMSI_SIM_MONTHLY_FEES( + "wireless-multi-imsi-sim-monthly-fees" + ), + WIRELESS_MULTI_IMSI_SIM_USAGE("wireless-multi-imsi-sim-usage"), + WIRELESS_SUPER_SIM_DATA_NORTH_AMERICA( + "wireless-super-sim-data-north-america" + ), + WIRELESS_SUPER_SIM_USAGE("wireless-super-sim-usage"); + + private final String value; + + private Category(final String value) { + this.value = value; + } + + public String toString() { + return value; + } + + @JsonCreator + public static Category forValue(final String value) { + return Promoter.enumFromString(value, Category.values()); + } + } + /** * Converts a JSON String into a Record object using the provided ObjectMapper. * @@ -116,7 +1042,7 @@ public static String toJson(Object object, ObjectMapper mapper) { private final String asOf; @Getter - private final String category; + private final Record.Category category; @Getter private final String count; @@ -156,7 +1082,7 @@ private Record( @JsonProperty("account_sid") final String accountSid, @JsonProperty("api_version") final String apiVersion, @JsonProperty("as_of") final String asOf, - @JsonProperty("category") final String category, + @JsonProperty("category") final Record.Category category, @JsonProperty("count") final String count, @JsonProperty("count_unit") final String countUnit, @JsonProperty("description") final String description, diff --git a/src/main/java/com/twilio/rest/api/v2010/account/usage/RecordReader.java b/src/main/java/com/twilio/rest/api/v2010/account/usage/RecordReader.java index 9257a707aa..373f0a4ceb 100644 --- a/src/main/java/com/twilio/rest/api/v2010/account/usage/RecordReader.java +++ b/src/main/java/com/twilio/rest/api/v2010/account/usage/RecordReader.java @@ -33,7 +33,7 @@ public class RecordReader extends Reader { private String pathAccountSid; - private String category; + private Record.Category category; private LocalDate startDate; private LocalDate endDate; private Boolean includeSubaccounts; @@ -45,7 +45,7 @@ public RecordReader(final String pathAccountSid) { this.pathAccountSid = pathAccountSid; } - public RecordReader setCategory(final String category) { + public RecordReader setCategory(final Record.Category category) { this.category = category; return this; } diff --git a/src/main/java/com/twilio/rest/api/v2010/account/usage/Trigger.java b/src/main/java/com/twilio/rest/api/v2010/account/usage/Trigger.java index 335f457c3f..b4f9bd11a4 100644 --- a/src/main/java/com/twilio/rest/api/v2010/account/usage/Trigger.java +++ b/src/main/java/com/twilio/rest/api/v2010/account/usage/Trigger.java @@ -46,7 +46,7 @@ public class Trigger extends Resource { public static TriggerCreator creator( final URI callbackUrl, final String triggerValue, - final String usageCategory + final Trigger.UsageCategory usageCategory ) { return new TriggerCreator(callbackUrl, triggerValue, usageCategory); } @@ -55,7 +55,7 @@ public static TriggerCreator creator( final String pathAccountSid, final URI callbackUrl, final String triggerValue, - final String usageCategory + final Trigger.UsageCategory usageCategory ) { return new TriggerCreator( pathAccountSid, @@ -106,6 +106,931 @@ public static TriggerUpdater updater( return new TriggerUpdater(pathAccountSid, pathSid); } + public enum UsageCategory { + A2P_10DLC_REGISTRATIONFEES_BRANDREGISTRATION( + "a2p-10dlc-registrationfees-brandregistration" + ), + A2P_10DLC_REGISTRATIONFEES_BV("a2p-10dlc-registrationfees-bv"), + A2P_10DLC_REGISTRATIONFEES_CAMPAIGNCHARGES( + "a2p-10dlc-registrationfees-campaigncharges" + ), + A2P_10DLC_REGISTRATIONFEES_CAMPAIGNREGISTRATION( + "a2p-10dlc-registrationfees-campaignregistration" + ), + A2P_10DLC_REGISTRATIONFEES_CAMPAIGNVETTING( + "a2p-10dlc-registrationfees-campaignvetting" + ), + A2P_10DLC_REGISTRATIONFEES_MONTHLY( + "a2p-10dlc-registrationfees-monthly" + ), + A2P_10DLC_REGISTRATIONFEES_ONETIME( + "a2p-10dlc-registrationfees-onetime" + ), + A2P_REGISTRATION_FEES("a2p-registration-fees"), + ACCOUNT_SECURITY("account-security"), + AGENT_CONFERENCE("agent-conference"), + AGENT_COPILOT("agent-copilot"), + AGENT_COPILOT_MESSAGES("agent-copilot-messages"), + AGENT_COPILOT_PARTICIPANT_MINUTES("agent-copilot-participant-minutes"), + AI_ASSISTANTS("ai-assistants"), + AI_ASSISTANTS_VOICE("ai-assistants-voice"), + AMAZON_POLLY("amazon-polly"), + ANSWERING_MACHINE_DETECTION("answering-machine-detection"), + ASSETS("assets"), + AUDIENCE_MINUTES("audience-minutes"), + AUDIENCE_MINUTES_AUDIO("audience-minutes-audio"), + AUTHY_AUTHENTICATIONS("authy-authentications"), + AUTHY_CALLS_OUTBOUND("authy-calls-outbound"), + AUTHY_EMAIL_AUTHENTICATIONS("authy-email-authentications"), + AUTHY_MONTHLY_FEES("authy-monthly-fees"), + AUTHY_OUTBOUND_EMAIL("authy-outbound-email"), + AUTHY_PHONE_INTELLIGENCE("authy-phone-intelligence"), + AUTHY_PHONE_VERIFICATIONS("authy-phone-verifications"), + AUTHY_SMS_OUTBOUND("authy-sms-outbound"), + AUTHY_VERIFY_EMAIL_VERIFICATIONS("authy-verify-email-verifications"), + AUTHY_VERIFY_OUTBOUND_EMAIL("authy-verify-outbound-email"), + AUTOPILOT("autopilot"), + AUTOPILOT_HOME_ASSISTANTS("autopilot-home-assistants"), + AUTOPILOT_MESSAGING("autopilot-messaging"), + AUTOPILOT_OTHER("autopilot-other"), + AUTOPILOT_VOICE("autopilot-voice"), + BASIC_PEER_TO_PEER_ROOMS_PARTICIPANT_MINUTES( + "basic-peer-to-peer-rooms-participant-minutes" + ), + BRANDED_CALLING("branded-calling"), + BUNDLE_SMS_BUCKET("bundle-sms-bucket"), + BUNDLE_SUBSCRIPTION_FEES("bundle-subscription-fees"), + CALL_FORWARDING_LOOKUPS("call-forwarding-lookups"), + CALL_PROGESS_EVENTS("call-progess-events"), + CALLERIDLOOKUPS("calleridlookups"), + CALLS("calls"), + CALLS_CLIENT("calls-client"), + CALLS_EMERGENCY("calls-emergency"), + CALLS_GLOBALCONFERENCE("calls-globalconference"), + CALLS_INBOUND("calls-inbound"), + CALLS_INBOUND_LOCAL("calls-inbound-local"), + CALLS_INBOUND_MOBILE("calls-inbound-mobile"), + CALLS_INBOUND_TOLLFREE("calls-inbound-tollfree"), + CALLS_INBOUND_TOLLFREE_LOCAL("calls-inbound-tollfree-local"), + CALLS_INBOUND_TOLLFREE_MOBILE("calls-inbound-tollfree-mobile"), + CALLS_MEDIA_STREAM_MINUTES("calls-media-stream-minutes"), + CALLS_OUTBOUND("calls-outbound"), + CALLS_PAY_VERB_TRANSACTIONS("calls-pay-verb-transactions"), + CALLS_RECORDINGS("calls-recordings"), + CALLS_SIP("calls-sip"), + CALLS_SIP_INBOUND("calls-sip-inbound"), + CALLS_SIP_OUTBOUND("calls-sip-outbound"), + CALLS_TEXT_TO_SPEECH("calls-text-to-speech"), + CALLS_TRANSFERS("calls-transfers"), + CARRIER_LOOKUPS("carrier-lookups"), + CATEGORY("category"), + CHANNELS("channels"), + CHANNELS_MESSAGING("channels-messaging"), + CHANNELS_MESSAGING_INBOUND("channels-messaging-inbound"), + CHANNELS_MESSAGING_OUTBOUND("channels-messaging-outbound"), + CHANNELS_WHATSAPP("channels-whatsapp"), + CHANNELS_WHATSAPP_CONVERSATION_AUTHENTICATION( + "channels-whatsapp-conversation-authentication" + ), + CHANNELS_WHATSAPP_CONVERSATION_FREE( + "channels-whatsapp-conversation-free" + ), + CHANNELS_WHATSAPP_CONVERSATION_MARKETING( + "channels-whatsapp-conversation-marketing" + ), + CHANNELS_WHATSAPP_CONVERSATION_SERVICE( + "channels-whatsapp-conversation-service" + ), + CHANNELS_WHATSAPP_CONVERSATION_UTILITY( + "channels-whatsapp-conversation-utility" + ), + CHANNELS_WHATSAPP_INBOUND("channels-whatsapp-inbound"), + CHANNELS_WHATSAPP_OUTBOUND("channels-whatsapp-outbound"), + CHAT_VIRTUAL_AGENT("chat-virtual-agent"), + CONVERSATION_RELAY("conversation-relay"), + CONVERSATIONS("conversations"), + CONVERSATIONS_API_REQUESTS("conversations-api-requests"), + CONVERSATIONS_CONVERSATION_EVENTS("conversations-conversation-events"), + CONVERSATIONS_ENDPOINT_CONNECTIVITY( + "conversations-endpoint-connectivity" + ), + CONVERSATIONS_EVENTS("conversations-events"), + CONVERSATIONS_PARTICIPANT_EVENTS("conversations-participant-events"), + CONVERSATIONS_PARTICIPANTS("conversations-participants"), + CPS("cps"), + CREDIT_TRANSFER("credit-transfer"), + EMAIL("email"), + EMERGING_TECH("emerging-tech"), + ENGAGEMENT_SUITE_PACKAGED_PLANS("engagement-suite-packaged-plans"), + ENHANCED_LINE_TYPE_LOOKUPS("enhanced-line-type-lookups"), + ENTERPRISE("enterprise"), + EVENTS("events"), + EXPERIMENT_FRANCE_SMS("experiment-france-sms"), + EXPERIMENT_INDIA_SMS("experiment-india-sms"), + EXPERIMENT_UK_SMS("experiment-uk-sms"), + FAILED_MESSAGE_PROCESSING_FEE("failed-message-processing-fee"), + FLEX("flex"), + FLEX_ACTIVE_USER_HOURS("flex-active-user-hours"), + FLEX_CONCURRENT_USERS("flex-concurrent-users"), + FLEX_CONVERSATIONAL_INSIGHTS("flex-conversational-insights"), + FLEX_CONVERSATIONAL_INSIGHTS_MESSAGES( + "flex-conversational-insights-messages" + ), + FLEX_CONVERSATIONAL_INSIGHTS_VOICE_MINUTES( + "flex-conversational-insights-voice-minutes" + ), + FLEX_EMAIL_USAGE("flex-email-usage"), + FLEX_MESSAGING_USAGE("flex-messaging-usage"), + FLEX_PARTNER_SPINSCI("flex-partner-spinsci"), + FLEX_PARTNER_XCELERATE("flex-partner-xcelerate"), + FLEX_RESELLER_ECOSYSTEM("flex-reseller-ecosystem"), + FLEX_UNIQUE_USER("flex-unique-user"), + FLEX_USAGE("flex-usage"), + FLEX_USERS("flex-users"), + FLEX_VOICE_MINUTE("flex-voice-minute"), + FLEX_YTICA("flex-ytica"), + FRAUD_LOOKUPS("fraud-lookups"), + FRONTLINE("frontline"), + FRONTLINE_USERS("frontline-users"), + FUNCTIONS("functions"), + GENERIC_PAY_TRANSACTIONS("generic-pay-transactions"), + GROUP_ROOMS("group-rooms"), + GROUP_ROOMS_DATA_TRACK("group-rooms-data-track"), + GROUP_ROOMS_ENCRYPTED_MEDIA_RECORDED( + "group-rooms-encrypted-media-recorded" + ), + GROUP_ROOMS_MEDIA_DOWNLOADED("group-rooms-media-downloaded"), + GROUP_ROOMS_MEDIA_RECORDED("group-rooms-media-recorded"), + GROUP_ROOMS_MEDIA_ROUTED("group-rooms-media-routed"), + GROUP_ROOMS_MEDIA_STORED("group-rooms-media-stored"), + GROUP_ROOMS_PARTICIPANT_MINUTES("group-rooms-participant-minutes"), + GROUP_ROOMS_RECORDED_MINUTES("group-rooms-recorded-minutes"), + IP_MESSAGING("ip-messaging"), + IP_MESSAGING_COMMANDS("ip-messaging-commands"), + IP_MESSAGING_DATA_STORAGE("ip-messaging-data-storage"), + IP_MESSAGING_DATA_TRANSFER("ip-messaging-data-transfer"), + IP_MESSAGING_ENDPOINT_CONNECTIVITY( + "ip-messaging-endpoint-connectivity" + ), + IVR_VIRTUAL_AGENT_CUSTOM_VOICES("ivr-virtual-agent-custom-voices"), + IVR_VIRTUAL_AGENT_GENAI("ivr-virtual-agent-genai"), + LINE_STATUS_LOOKUPS("line-status-lookups"), + LIVE_ACTIVITY_LOOKUPS("live-activity-lookups"), + LOOKUP_BUCKET_ADJUSTMENT("lookup-bucket-adjustment"), + LOOKUP_IDENTITY_MATCH("lookup-identity-match"), + LOOKUPS("lookups"), + MARKETPLACE("marketplace"), + MARKETPLACE_ALGORITHMIA_NAMED_ENTITY_RECOGNITION( + "marketplace-algorithmia-named-entity-recognition" + ), + MARKETPLACE_CADENCE_TRANSCRIPTION("marketplace-cadence-transcription"), + MARKETPLACE_CADENCE_TRANSLATION("marketplace-cadence-translation"), + MARKETPLACE_CAPIO_SPEECH_TO_TEXT("marketplace-capio-speech-to-text"), + MARKETPLACE_CONVRIZA_ABABA("marketplace-convriza-ababa"), + MARKETPLACE_DEEPGRAM_PHRASE_DETECTOR( + "marketplace-deepgram-phrase-detector" + ), + MARKETPLACE_DEEPGRAM_TRANSCRIPTION( + "marketplace-deepgram-transcription" + ), + MARKETPLACE_DEEPGRAM_TRANSCRIPTION_BASE( + "marketplace-deepgram-transcription-base" + ), + MARKETPLACE_DEEPGRAM_TRANSSCRIPTION_ENHANCED( + "marketplace-deepgram-transscription-enhanced" + ), + MARKETPLACE_DIGITAL_SEGMENT_BUSINESS_INFO( + "marketplace-digital-segment-business-info" + ), + MARKETPLACE_FACEBOOK_OFFLINE_CONVERSIONS( + "marketplace-facebook-offline-conversions" + ), + MARKETPLACE_GOOGLE_SPEECH_TO_TEXT("marketplace-google-speech-to-text"), + MARKETPLACE_IBM_WATSON_MESSAGE_INSIGHTS( + "marketplace-ibm-watson-message-insights" + ), + MARKETPLACE_IBM_WATSON_MESSAGE_SENTIMENT( + "marketplace-ibm-watson-message-sentiment" + ), + MARKETPLACE_IBM_WATSON_RECORDING_ANALYSIS( + "marketplace-ibm-watson-recording-analysis" + ), + MARKETPLACE_IBM_WATSON_TONE_ANALYZER( + "marketplace-ibm-watson-tone-analyzer" + ), + MARKETPLACE_ICEHOOK_SYSTEMS_SCOUT("marketplace-icehook-systems-scout"), + MARKETPLACE_INFOGROUP_DATAAXLE_BIZINFO( + "marketplace-infogroup-dataaxle-bizinfo" + ), + MARKETPLACE_KEEN_IO_CONTACT_CENTER_ANALYTICS( + "marketplace-keen-io-contact-center-analytics" + ), + MARKETPLACE_MARCHEX_CLEANCALL("marketplace-marchex-cleancall"), + MARKETPLACE_MARCHEX_RECORDING_ANALYSIS( + "marketplace-marchex-recording-analysis" + ), + MARKETPLACE_MARCHEX_SENTIMENT_ANALYSIS_FOR_SMS( + "marketplace-marchex-sentiment-analysis-for-sms" + ), + MARKETPLACE_MARKETPLACE_NEXTCALLER_SOCIAL_ID( + "marketplace-marketplace-nextcaller-social-id" + ), + MARKETPLACE_MOBILE_COMMONS_OPT_OUT_CLASSIFIER( + "marketplace-mobile-commons-opt-out-classifier" + ), + MARKETPLACE_NEXIWAVE_VOICEMAIL_TO_TEXT( + "marketplace-nexiwave-voicemail-to-text" + ), + MARKETPLACE_NEXTCALLER_ADVANCED_CALLER_IDENTIFICATION( + "marketplace-nextcaller-advanced-caller-identification" + ), + MARKETPLACE_NOMOROBO_SPAM_SCORE("marketplace-nomorobo-spam-score"), + MARKETPLACE_PAY_ADDONS("marketplace-pay-addons"), + MARKETPLACE_PAY_ADDONS_BASECOMMERCE_PAY_CONNECTOR( + "marketplace-pay-addons-basecommerce-pay-connector" + ), + MARKETPLACE_PAY_ADDONS_BRAINTREE_PAY_CONNECTOR( + "marketplace-pay-addons-braintree-pay-connector" + ), + MARKETPLACE_PAY_ADDONS_CARDCONNECT_PAY_CONNECTOR( + "marketplace-pay-addons-cardconnect-pay-connector" + ), + MARKETPLACE_PAY_ADDONS_CHASE_PAY_CONNECTOR( + "marketplace-pay-addons-chase-pay-connector" + ), + MARKETPLACE_PAY_ADDONS_SHUTTLE_PAY_CONNECTOR( + "marketplace-pay-addons-shuttle-pay-connector" + ), + MARKETPLACE_PAY_ADDONS_STRIPE_PAY_CONNECTOR( + "marketplace-pay-addons-stripe-pay-connector" + ), + MARKETPLACE_PAYFONE_TCPA_COMPLIANCE( + "marketplace-payfone-tcpa-compliance" + ), + MARKETPLACE_POLY_AI_CONNECTOR("marketplace-poly-ai-connector"), + MARKETPLACE_REALPHONEVALIDATION("marketplace-realphonevalidation"), + MARKETPLACE_REMEETING_AUTOMATIC_SPEECH_RECOGNITION( + "marketplace-remeeting-automatic-speech-recognition" + ), + MARKETPLACE_SPOKE_PHONE_LICENSE_PRO( + "marketplace-spoke-phone-license-pro" + ), + MARKETPLACE_SPOKE_PHONE_LICENSE_STANDARD( + "marketplace-spoke-phone-license-standard" + ), + MARKETPLACE_TCPA_DEFENSE_SOLUTIONS_BLACKLIST_FEED( + "marketplace-tcpa-defense-solutions-blacklist-feed" + ), + MARKETPLACE_TELO_OPENCNAM("marketplace-telo-opencnam"), + MARKETPLACE_TRESTLE_SOLUTIONS_CALLER_IDENTIFICATION( + "marketplace-trestle-solutions-caller-identification" + ), + MARKETPLACE_TRUECNAM_TRUE_SPAM("marketplace-truecnam-true-spam"), + MARKETPLACE_TWILIO_CALLER_NAME_LOOKUP_US( + "marketplace-twilio-caller-name-lookup-us" + ), + MARKETPLACE_TWILIO_CARRIER_INFORMATION_LOOKUP( + "marketplace-twilio-carrier-information-lookup" + ), + MARKETPLACE_VOICEBASE_PCI("marketplace-voicebase-pci"), + MARKETPLACE_VOICEBASE_TRANSCRIPTION( + "marketplace-voicebase-transcription" + ), + MARKETPLACE_VOICEBASE_TRANSCRIPTION_CUSTOM_VOCABULARY( + "marketplace-voicebase-transcription-custom-vocabulary" + ), + MARKETPLACE_WEB_PURIFY_PROFANITY_FILTER( + "marketplace-web-purify-profanity-filter" + ), + MARKETPLACE_WHITEPAGES_PRO_CALLER_IDENTIFICATION( + "marketplace-whitepages-pro-caller-identification" + ), + MARKETPLACE_WHITEPAGES_PRO_PHONE_INTELLIGENCE( + "marketplace-whitepages-pro-phone-intelligence" + ), + MARKETPLACE_WHITEPAGES_PRO_PHONE_REPUTATION( + "marketplace-whitepages-pro-phone-reputation" + ), + MARKETPLACE_WOLFARM_SPOKEN_RESULTS( + "marketplace-wolfarm-spoken-results" + ), + MARKETPLACE_WOLFRAM_SHORT_ANSWER("marketplace-wolfram-short-answer"), + MARKETPLACE_YTICA_CONTACT_CENTER_REPORTING_ANALYTICS( + "marketplace-ytica-contact-center-reporting-analytics" + ), + MARKETPLAY_PAY_ADDONS_SHUTTLE_PAY_CONNECTOR( + "marketplay-pay-addons-shuttle-pay-connector" + ), + MEDIA_COMPOSER_MINUTES("media-composer-minutes"), + MEDIASTORAGE("mediastorage"), + MIN_SPEND_ADJUSTMENTS("min-spend-adjustments"), + MMS("mms"), + MMS_INBOUND("mms-inbound"), + MMS_INBOUND_LONGCODE("mms-inbound-longcode"), + MMS_INBOUND_SHORTCODE("mms-inbound-shortcode"), + MMS_INBOUND_TOLL_FREE("mms-inbound-toll-free"), + MMS_MESSAGES_CARRIERFEES("mms-messages-carrierfees"), + MMS_OUTBOUND("mms-outbound"), + MMS_OUTBOUND_LONGCODE("mms-outbound-longcode"), + MMS_OUTBOUND_SHORTCODE("mms-outbound-shortcode"), + MMS_OUTBOUND_TOLLFREE("mms-outbound-tollfree"), + MONITOR("monitor"), + MONITOR_READS("monitor-reads"), + MONITOR_STORAGE("monitor-storage"), + MONITOR_WRITES("monitor-writes"), + NOTIFY("notify"), + NOTIFY_ACTIONS_ATTEMPTS("notify-actions-attempts"), + NOTIFY_CHANNELS("notify-channels"), + NUMBER_FORMAT_LOOKUPS("number-format-lookups"), + PCHAT("pchat"), + PCHAT_ACTIONS("pchat-actions"), + PCHAT_APS("pchat-aps"), + PCHAT_CONV_MED_STORAGE("pchat-conv-med-storage"), + PCHAT_MESSAGES("pchat-messages"), + PCHAT_NOTIFICATIONS("pchat-notifications"), + PCHAT_READS("pchat-reads"), + PCHAT_USERS("pchat-users"), + PEER_TO_PEER_ROOMS_PARTICIPANT_MINUTES( + "peer-to-peer-rooms-participant-minutes" + ), + PFAX("pfax"), + PFAX_MINUTES("pfax-minutes"), + PFAX_MINUTES_INBOUND("pfax-minutes-inbound"), + PFAX_MINUTES_OUTBOUND("pfax-minutes-outbound"), + PFAX_PAGES("pfax-pages"), + PHONE_QUALITY_SCORE_LOOKUPS("phone-quality-score-lookups"), + PHONENUMBERS("phonenumbers"), + PHONENUMBERS_CPS("phonenumbers-cps"), + PHONENUMBERS_EMERGENCY("phonenumbers-emergency"), + PHONENUMBERS_LOCAL("phonenumbers-local"), + PHONENUMBERS_MOBILE("phonenumbers-mobile"), + PHONENUMBERS_PORTING("phonenumbers-porting"), + PHONENUMBERS_SETUPS("phonenumbers-setups"), + PHONENUMBERS_TOLLFREE("phonenumbers-tollfree"), + PREMIUMSUPPORT("premiumsupport"), + PREMIUMSUPPORT_PERCENTAGE_SPEND("premiumsupport-percentage-spend"), + PROGRAMMABLEVOICE_PLATFORM("programmablevoice-platform"), + PROGRAMMABLEVOICECONN_CLIENTSDK("programmablevoiceconn-clientsdk"), + PROGRAMMABLEVOICECONN_CLIENTSDK_INBOUND( + "programmablevoiceconn-clientsdk-inbound" + ), + PROGRAMMABLEVOICECONN_CLIENTSDK_OUTBOUND( + "programmablevoiceconn-clientsdk-outbound" + ), + PROGRAMMABLEVOICECONN_ONNET("programmablevoiceconn-onnet"), + PROGRAMMABLEVOICECONN_ONNET_INBOUND( + "programmablevoiceconn-onnet-inbound" + ), + PROGRAMMABLEVOICECONN_ONNET_OUTBOUND( + "programmablevoiceconn-onnet-outbound" + ), + PROGRAMMABLEVOICECONN_SIP("programmablevoiceconn-sip"), + PROGRAMMABLEVOICECONN_SIP_INBOUND("programmablevoiceconn-sip-inbound"), + PROGRAMMABLEVOICECONN_SIP_OUTBOUND( + "programmablevoiceconn-sip-outbound" + ), + PROGRAMMABLEVOICECONNECTIVITY("programmablevoiceconnectivity"), + PROXY("proxy"), + PROXY_ACTIVE_SESSIONS("proxy-active-sessions"), + PROXY_BUCKET_ADJUSTMENT("proxy-bucket-adjustment"), + PROXY_LICENSES("proxy-licenses"), + PSTNCONNECTIVITY("pstnconnectivity"), + PSTNCONNECTIVITY_INBOUND("pstnconnectivity-inbound"), + PSTNCONNECTIVITY_OUTBOUND("pstnconnectivity-outbound"), + PV("pv"), + PV_BASIC_ROOMS("pv-basic-rooms"), + PV_COMPOSITION_MEDIA_DOWNLOADED("pv-composition-media-downloaded"), + PV_COMPOSITION_MEDIA_ENCRYPTED("pv-composition-media-encrypted"), + PV_COMPOSITION_MEDIA_STORED("pv-composition-media-stored"), + PV_COMPOSITION_MINUTES("pv-composition-minutes"), + PV_RECORDING_COMPOSITIONS("pv-recording-compositions"), + PV_ROOM_PARTICIPANTS("pv-room-participants"), + PV_ROOM_PARTICIPANTS_AU1("pv-room-participants-au1"), + PV_ROOM_PARTICIPANTS_BR1("pv-room-participants-br1"), + PV_ROOM_PARTICIPANTS_IE1("pv-room-participants-ie1"), + PV_ROOM_PARTICIPANTS_JP1("pv-room-participants-jp1"), + PV_ROOM_PARTICIPANTS_SG1("pv-room-participants-sg1"), + PV_ROOM_PARTICIPANTS_US1("pv-room-participants-us1"), + PV_ROOM_PARTICIPANTS_US2("pv-room-participants-us2"), + PV_ROOMS("pv-rooms"), + PV_SIP_ENDPOINT_REGISTRATIONS("pv-sip-endpoint-registrations"), + RCS_MESSAGES("rcs-messages"), + REASSIGNED_NUMBER("reassigned-number"), + RECORDINGS("recordings"), + RECORDINGSTORAGE("recordingstorage"), + SHORTCODES("shortcodes"), + SHORTCODES_CUSTOMEROWNED("shortcodes-customerowned"), + SHORTCODES_MMS_ENABLEMENT("shortcodes-mms-enablement"), + SHORTCODES_MPS("shortcodes-mps"), + SHORTCODES_RANDOM("shortcodes-random"), + SHORTCODES_SETUP_FEES("shortcodes-setup-fees"), + SHORTCODES_UK("shortcodes-uk"), + SHORTCODES_VANITY("shortcodes-vanity"), + SIM_SWAP_LOOKUPS("sim-swap-lookups"), + SIP_SECURE_MEDIA("sip-secure-media"), + SMALL_GROUP_ROOMS("small-group-rooms"), + SMALL_GROUP_ROOMS_DATA_TRACK("small-group-rooms-data-track"), + SMALL_GROUP_ROOMS_PARTICIPANT_MINUTES( + "small-group-rooms-participant-minutes" + ), + SMS("sms"), + SMS_INBOUND("sms-inbound"), + SMS_INBOUND_LONGCODE("sms-inbound-longcode"), + SMS_INBOUND_SHORTCODE("sms-inbound-shortcode"), + SMS_INBOUND_TOLLFREE("sms-inbound-tollfree"), + SMS_MESSAGES_CARRIERFEES("sms-messages-carrierfees"), + SMS_MESSAGES_FEATURES("sms-messages-features"), + SMS_MESSAGES_FEATURES_ENGAGEMENT_SUITE( + "sms-messages-features-engagement-suite" + ), + SMS_MESSAGES_FEATURES_MESSAGE_REDACTION( + "sms-messages-features-message-redaction" + ), + SMS_MESSAGES_FEATURES_SENDERID("sms-messages-features-senderid"), + SMS_MPS("sms-mps"), + SMS_MPS_SHORTCODE("sms-mps-shortcode"), + SMS_MPS_TOLLFREE("sms-mps-tollfree"), + SMS_MPS_TOLLFREE_SETUP("sms-mps-tollfree-setup"), + SMS_NATIONAL_REGULATORY_PROTECTION( + "sms-national-regulatory-protection" + ), + SMS_OUTBOUND("sms-outbound"), + SMS_OUTBOUND_CONTENT_INSPECTION("sms-outbound-content-inspection"), + SMS_OUTBOUND_LONGCODE("sms-outbound-longcode"), + SMS_OUTBOUND_SHORTCODE("sms-outbound-shortcode"), + SMS_OUTBOUND_TOLLFREE("sms-outbound-tollfree"), + SMS_PUMPING_PROTECTION("sms-pumping-protection"), + SMS_PUMPING_RISK("sms-pumping-risk"), + SMSMESSAGES_BUCKET_ADJUSTMENTS("smsmessages-bucket-adjustments"), + SMSMESSAGES_OUTBOUND_DOMESTIC("smsmessages-outbound-domestic"), + SPEECH_RECOGNITION("speech-recognition"), + STUDIO_ENGAGEMENTS("studio-engagements"), + SYNC("sync"), + SYNC_ACTIONS("sync-actions"), + SYNC_ENDPOINT_HOURS("sync-endpoint-hours"), + SYNC_ENDPOINT_HOURS_ABOVE_DAILY_CAP( + "sync-endpoint-hours-above-daily-cap" + ), + TASKROUTER_TASKS("taskrouter-tasks"), + TOTALPRICE("totalprice"), + TRANSCRIPTIONS("transcriptions"), + TRUNKING_CPS("trunking-cps"), + TRUNKING_EMERGENCY_CALLS("trunking-emergency-calls"), + TRUNKING_ORIGINATION("trunking-origination"), + TRUNKING_ORIGINATION_LOCAL("trunking-origination-local"), + TRUNKING_ORIGINATION_MOBILE("trunking-origination-mobile"), + TRUNKING_ORIGINATION_TOLLFREE("trunking-origination-tollfree"), + TRUNKING_RECORDINGS("trunking-recordings"), + TRUNKING_SECURE("trunking-secure"), + TRUNKING_TERMINATION("trunking-termination"), + TTS_GOOGLE("tts-google"), + TURNMEGABYTES("turnmegabytes"), + TURNMEGABYTES_AUSTRALIA("turnmegabytes-australia"), + TURNMEGABYTES_BRASIL("turnmegabytes-brasil"), + TURNMEGABYTES_GERMANY("turnmegabytes-germany"), + TURNMEGABYTES_INDIA("turnmegabytes-india"), + TURNMEGABYTES_IRELAND("turnmegabytes-ireland"), + TURNMEGABYTES_JAPAN("turnmegabytes-japan"), + TURNMEGABYTES_SINGAPORE("turnmegabytes-singapore"), + TURNMEGABYTES_USEAST("turnmegabytes-useast"), + TURNMEGABYTES_USWEST("turnmegabytes-uswest"), + TWILIO_FOR_SALESFORCE("twilio-for-salesforce"), + TWILIO_FOR_SALESFORCE_LICENSES("twilio-for-salesforce-licenses"), + TWILIO_INTERCONNECT("twilio-interconnect"), + TWIML("twiml"), + USAGE_FLEX_VIDEO("usage-flex-video"), + USAGE_FUNCTIONS("usage-functions"), + USAGE_RCS_BASIC_MESSAGES_OUTBOUND("usage-rcs-basic-messages-outbound"), + USAGE_RCS_MESSAGES("usage-rcs-messages"), + USAGE_RCS_MESSAGES_INBOUND("usage-rcs-messages-inbound"), + USAGE_RCS_MESSAGING_CARRIER_FEES("usage-rcs-messaging-carrier-fees"), + USAGE_RCS_SINGLE_MESSAGES_OUTBOUND( + "usage-rcs-single-messages-outbound" + ), + VERIFY_PACKAGE_PLANS("verify-package-plans"), + VERIFY_PUSH("verify-push"), + VERIFY_SNA("verify-sna"), + VERIFY_TOTP("verify-totp"), + VERIFY_VOICE_SMS("verify-voice-sms"), + VERIFY_WHATSAPP_CONVERSATIONS_BUSINESS_INITIATED( + "verify-whatsapp-conversations-business-initiated" + ), + VIDEO_RECORDINGS("video-recordings"), + VIDEO_ROOMS_TURN_MEGABYTES("video-rooms-turn-megabytes"), + VIRTUAL_AGENT("virtual-agent"), + VOICE_INSIGHTS("voice-insights"), + VOICE_INSIGHTS_CLIENT_INSIGHTS_ON_DEMAND_MINUTE( + "voice-insights-client-insights-on-demand-minute" + ), + VOICE_INSIGHTS_PTSN_INSIGHTS_ON_DEMAND_MINUTE( + "voice-insights-ptsn-insights-on-demand-minute" + ), + VOICE_INSIGHTS_SIP_INTERFACE_INSIGHTS_ON_DEMAND_MINUTE( + "voice-insights-sip-interface-insights-on-demand-minute" + ), + VOICE_INSIGHTS_SIP_TRUNKING_INSIGHTS_ON_DEMAND_MINUTE( + "voice-insights-sip-trunking-insights-on-demand-minute" + ), + VOICE_INTELLIGENCE("voice-intelligence"), + VOICE_INTELLIGENCE_EIP_OPERATORS("voice-intelligence-eip-operators"), + VOICE_INTELLIGENCE_OPERATORS("voice-intelligence-operators"), + VOICE_INTELLIGENCE_TRANSCRIPTION("voice-intelligence-transcription"), + WDS("wds"), + WIRELESS("wireless"), + WIRELESS_DATA("wireless-data"), + WIRELESS_DATA_PAYG("wireless-data-payg"), + WIRELESS_DATA_PAYG_AFRICA("wireless-data-payg-africa"), + WIRELESS_DATA_PAYG_ASIA("wireless-data-payg-asia"), + WIRELESS_DATA_PAYG_CENTRALANDSOUTHAMERICA( + "wireless-data-payg-centralandsouthamerica" + ), + WIRELESS_DATA_PAYG_EUROPE("wireless-data-payg-europe"), + WIRELESS_DATA_PAYG_NORTHAMERICA("wireless-data-payg-northamerica"), + WIRELESS_DATA_PAYG_OCEANIA("wireless-data-payg-oceania"), + WIRELESS_DATA_QUOTA1("wireless-data-quota1"), + WIRELESS_DATA_QUOTA1_AFRICA("wireless-data-quota1-africa"), + WIRELESS_DATA_QUOTA1_ASIA("wireless-data-quota1-asia"), + WIRELESS_DATA_QUOTA1_CENTRALANDSOUTHAMERICA( + "wireless-data-quota1-centralandsouthamerica" + ), + WIRELESS_DATA_QUOTA1_EUROPE("wireless-data-quota1-europe"), + WIRELESS_DATA_QUOTA1_NORTHAMERICA("wireless-data-quota1-northamerica"), + WIRELESS_DATA_QUOTA1_OCEANIA("wireless-data-quota1-oceania"), + WIRELESS_DATA_QUOTA10("wireless-data-quota10"), + WIRELESS_DATA_QUOTA10_AFRICA("wireless-data-quota10-africa"), + WIRELESS_DATA_QUOTA10_ASIA("wireless-data-quota10-asia"), + WIRELESS_DATA_QUOTA10_CENTRALANDSOUTHAMERICA( + "wireless-data-quota10-centralandsouthamerica" + ), + WIRELESS_DATA_QUOTA10_EUROPE("wireless-data-quota10-europe"), + WIRELESS_DATA_QUOTA10_NORTHAMERICA( + "wireless-data-quota10-northamerica" + ), + WIRELESS_DATA_QUOTA10_OCEANIA("wireless-data-quota10-oceania"), + WIRELESS_DATA_QUOTA50("wireless-data-quota50"), + WIRELESS_DATA_QUOTA50_AFRICA("wireless-data-quota50-africa"), + WIRELESS_DATA_QUOTA50_ASIA("wireless-data-quota50-asia"), + WIRELESS_DATA_QUOTA50_CENTRALANDSOUTHAMERICA( + "wireless-data-quota50-centralandsouthamerica" + ), + WIRELESS_DATA_QUOTA50_EUROPE("wireless-data-quota50-europe"), + WIRELESS_DATA_QUOTA50_NORTHAMERICA( + "wireless-data-quota50-northamerica" + ), + WIRELESS_DATA_QUOTA50_OCEANIA("wireless-data-quota50-oceania"), + WIRELESS_DATA_QUOTACUSTOM("wireless-data-quotacustom"), + WIRELESS_DATA_QUOTACUSTOM_AFRICA("wireless-data-quotacustom-africa"), + WIRELESS_DATA_QUOTACUSTOM_ASIA("wireless-data-quotacustom-asia"), + WIRELESS_DATA_QUOTACUSTOM_CENTRALANDSOUTHAMERICA( + "wireless-data-quotacustom-centralandsouthamerica" + ), + WIRELESS_DATA_QUOTACUSTOM_EUROPE("wireless-data-quotacustom-europe"), + WIRELESS_DATA_QUOTACUSTOM_NORTHAMERICA( + "wireless-data-quotacustom-northamerica" + ), + WIRELESS_DATA_QUOTACUSTOM_OCEANIA("wireless-data-quotacustom-oceania"), + WIRELESS_MRC_PAYG("wireless-mrc-payg"), + WIRELESS_MRC_QUOTA1("wireless-mrc-quota1"), + WIRELESS_MRC_QUOTA10("wireless-mrc-quota10"), + WIRELESS_MRC_QUOTA50("wireless-mrc-quota50"), + WIRELESS_MRC_QUOTACUSTOM("wireless-mrc-quotacustom"), + WIRELESS_ORDERS("wireless-orders"), + WIRELESS_ORDERS_ARTWORK("wireless-orders-artwork"), + WIRELESS_ORDERS_BULK("wireless-orders-bulk"), + WIRELESS_ORDERS_ESIM("wireless-orders-esim"), + WIRELESS_ORDERS_STARTER("wireless-orders-starter"), + WIRELESS_QUOTAS("wireless-quotas"), + WIRELESS_SMS_AFRICA("wireless-sms-africa"), + WIRELESS_SMS_ASIA("wireless-sms-asia"), + WIRELESS_SMS_CENTRALANDSOUTHAMERICA( + "wireless-sms-centralandsouthamerica" + ), + WIRELESS_SMS_EUROPE("wireless-sms-europe"), + WIRELESS_SMS_NORTHAMERICA("wireless-sms-northamerica"), + WIRELESS_SMS_OCEANIA("wireless-sms-oceania"), + WIRELESS_SUPER_SIM("wireless-super-sim"), + WIRELESS_SUPER_SIM_DATA("wireless-super-sim-data"), + WIRELESS_SUPER_SIM_DATA_NORTH_AMERICA_USA( + "wireless-super-sim-data-north-america-usa" + ), + WIRELESS_SUPER_SIM_DATA_PAYG("wireless-super-sim-data-payg"), + WIRELESS_SUPER_SIM_DATA_PAYG_EUROPE( + "wireless-super-sim-data-payg-europe" + ), + WIRELESS_SUPER_SIM_DATA_PAYG_NORTH_AMERICA( + "wireless-super-sim-data-payg-north-america" + ), + WIRELESS_SUPER_SIM_HARDWARE("wireless-super-sim-hardware"), + WIRELESS_SUPER_SIM_HARDWARE_BULK("wireless-super-sim-hardware-bulk"), + WIRELESS_SUPER_SIM_SMSCOMMANDS("wireless-super-sim-smscommands"), + WIRELESS_SUPER_SIM_SMSCOMMANDS_AFRICA( + "wireless-super-sim-smscommands-africa" + ), + WIRELESS_SUPER_SIM_SMSCOMMANDS_ASIA( + "wireless-super-sim-smscommands-asia" + ), + WIRELESS_SUPER_SIM_SMSCOMMANDS_CENT_AND_SOUTH_AMERICA( + "wireless-super-sim-smscommands-cent-and-south-america" + ), + WIRELESS_SUPER_SIM_SMSCOMMANDS_EUROPE( + "wireless-super-sim-smscommands-europe" + ), + WIRELESS_SUPER_SIM_SMSCOMMANDS_NORTH_AMERICA( + "wireless-super-sim-smscommands-north-america" + ), + WIRELESS_SUPER_SIM_SMSCOMMANDS_OCEANIA( + "wireless-super-sim-smscommands-oceania" + ), + WIRELESS_SUPER_SIM_SUBSCRIPTION("wireless-super-sim-subscription"), + WIRELESS_SUPER_SIM_SUBSCRIPTION_PAYG( + "wireless-super-sim-subscription-payg" + ), + WIRELESS_USAGE("wireless-usage"), + WIRELESS_USAGE_COMMANDS("wireless-usage-commands"), + WIRELESS_USAGE_COMMANDS_AFRICA("wireless-usage-commands-africa"), + WIRELESS_USAGE_COMMANDS_ASIA("wireless-usage-commands-asia"), + WIRELESS_USAGE_COMMANDS_CENTRALANDSOUTHAMERICA( + "wireless-usage-commands-centralandsouthamerica" + ), + WIRELESS_USAGE_COMMANDS_EUROPE("wireless-usage-commands-europe"), + WIRELESS_USAGE_COMMANDS_HOME("wireless-usage-commands-home"), + WIRELESS_USAGE_COMMANDS_NORTHAMERICA( + "wireless-usage-commands-northamerica" + ), + WIRELESS_USAGE_COMMANDS_OCEANIA("wireless-usage-commands-oceania"), + WIRELESS_USAGE_COMMANDS_ROAMING("wireless-usage-commands-roaming"), + WIRELESS_USAGE_DATA("wireless-usage-data"), + WIRELESS_USAGE_DATA_AFRICA("wireless-usage-data-africa"), + WIRELESS_USAGE_DATA_ASIA("wireless-usage-data-asia"), + WIRELESS_USAGE_DATA_CENTRALANDSOUTHAMERICA( + "wireless-usage-data-centralandsouthamerica" + ), + WIRELESS_USAGE_DATA_CUSTOM_ADDITIONALMB( + "wireless-usage-data-custom-additionalmb" + ), + WIRELESS_USAGE_DATA_CUSTOM_FIRST5MB( + "wireless-usage-data-custom-first5mb" + ), + WIRELESS_USAGE_DATA_DOMESTIC_ROAMING( + "wireless-usage-data-domestic-roaming" + ), + WIRELESS_USAGE_DATA_EUROPE("wireless-usage-data-europe"), + WIRELESS_USAGE_DATA_INDIVIDUAL_ADDITIONALGB( + "wireless-usage-data-individual-additionalgb" + ), + WIRELESS_USAGE_DATA_INDIVIDUAL_FIRSTGB( + "wireless-usage-data-individual-firstgb" + ), + WIRELESS_USAGE_DATA_INTERNATIONAL_ROAMING_CANADA( + "wireless-usage-data-international-roaming-canada" + ), + WIRELESS_USAGE_DATA_INTERNATIONAL_ROAMING_INDIA( + "wireless-usage-data-international-roaming-india" + ), + WIRELESS_USAGE_DATA_INTERNATIONAL_ROAMING_MEXICO( + "wireless-usage-data-international-roaming-mexico" + ), + WIRELESS_USAGE_DATA_NORTHAMERICA("wireless-usage-data-northamerica"), + WIRELESS_USAGE_DATA_OCEANIA("wireless-usage-data-oceania"), + WIRELESS_USAGE_DATA_POOLED("wireless-usage-data-pooled"), + WIRELESS_USAGE_DATA_POOLED_DOWNLINK( + "wireless-usage-data-pooled-downlink" + ), + WIRELESS_USAGE_DATA_POOLED_UPLINK("wireless-usage-data-pooled-uplink"), + WIRELESS_USAGE_MRC("wireless-usage-mrc"), + WIRELESS_USAGE_MRC_CUSTOM("wireless-usage-mrc-custom"), + WIRELESS_USAGE_MRC_INDIVIDUAL("wireless-usage-mrc-individual"), + WIRELESS_USAGE_MRC_POOLED("wireless-usage-mrc-pooled"), + WIRELESS_USAGE_MRC_SUSPENDED("wireless-usage-mrc-suspended"), + WIRELESS_USAGE_SMS("wireless-usage-sms"), + WIRELESS_USAGE_VOICE("wireless-usage-voice"), + A2P_FAST_TRACK_ONBOARDING("a2p-fast-track-onboarding"), + ADVISORY_SERVICES("advisory-services"), + ADVISORY_SERVICES_BILLED("advisory-services-billed"), + ADVISORY_SERVICES_CALL_TRACKING("advisory-services-call-tracking"), + ADVISORY_SERVICES_DATA_SERVICES("advisory-services-data-services"), + ADVISORY_SERVICES_EXPENSES("advisory-services-expenses"), + ADVISORY_SERVICES_SIP_TRUNKING("advisory-services-sip-trunking"), + ASSETS_REQUESTS("assets-requests"), + AUDIENCE_MINUTES_VIDEO("audience-minutes-video"), + AUTHY_BUCKET_ADJUSTMENT("authy-bucket-adjustment"), + AUTHY_SOFTWARE("authy-software"), + CALLERIDLOOKUPS_API("calleridlookups-api"), + CALLERIDLOOKUPS_PROGRAMMABLEVOICE("calleridlookups-programmablevoice"), + CALLERIDLOOKUPS_TRUNKING("calleridlookups-trunking"), + CALLS_TRUNKING_INBOUND_TOLLFREE_LOCAL( + "calls-trunking-inbound-tollfree-local" + ), + CALLS_TRUNKING_INBOUND_TOLLFREE_MOBILE( + "calls-trunking-inbound-tollfree-mobile" + ), + CHANNELS_WHATSAPP_CONVERSATION_FREE_1( + "channels-whatsapp-conversation-free-1" + ), + CONFERENCE("conference"), + CONVERSATIONAL_INSIGHTS("conversational-insights"), + CONVERSATIONAL_INSIGHTS_MESSAGES("conversational-insights-messages"), + CONVERSATIONAL_INSIGHTS_VOICE_MINUTES( + "conversational-insights-voice-minutes" + ), + DEMO("demo"), + DEMO_UC_SCRIPT_TEST("demo-uc-script-test"), + ELASTIC_SIP_TRUNKING("elastic-sip-trunking"), + ELASTIC_SIP_TRUNKING_CALL_TRANSFERS( + "elastic-sip-trunking-call-transfers" + ), + ENTERPRISE_HIPPA("enterprise-hippa"), + FLEX_NAMED_USERS("flex-named-users"), + FLEX_SPINSCI("flex-spinsci"), + FLEX_USERS_1("flex-users-1"), + FLEX_WFO_PREMIUM_SPEECH_ANALYTICS("flex-wfo-premium-speech-analytics"), + FLEX_XCELERATE("flex-xcelerate"), + FUNCTIONS_ROLLUP("functions-rollup"), + IMP_V1_USAGE("imp-v1-usage"), + IP_MESSAGING_ADDONS("ip-messaging-addons"), + IVR("ivr"), + IVR_CONVERSATIONAL("ivr-conversational"), + IVR_DTMF("ivr-dtmf"), + IVR_VIRTUALAGENT("ivr-virtualagent"), + LIVE("live"), + LIVE_MEDIA_RECORDING_MINUTES("live-media-recording-minutes"), + LONGCODE_MPS("longcode-mps"), + MARKETPLACE_ANALYTICS_ADDONS("marketplace-analytics-addons"), + MARKETPLACE_ISV_ADDONS("marketplace-isv-addons"), + MARKETPLACE_MESSAGING_ADDONS("marketplace-messaging-addons"), + MARKETPLACE_PHONENUMBERS_ADDONS("marketplace-phonenumbers-addons"), + MARKETPLACE_RECORDING_ADDONS("marketplace-recording-addons"), + MARKETPLACE_VIRTUALAGENT_ADDONS("marketplace-virtualagent-addons"), + MARKETPLAY_PAY_ADDONS_SHUTTLE_PAY_CONNECTOR_1( + "marketplay-pay-addons-shuttle-pay-connector-1" + ), + MARKETPLAY_PAY_ADDONS_STRIPE_PAY_CONNECTOR( + "marketplay-pay-addons-stripe-pay-connector" + ), + MMS_INBOUND_LONGCODE_CANADA("mms-inbound-longcode-canada"), + MMS_INBOUND_LONGCODE_UNITEDSTATES("mms-inbound-longcode-unitedstates"), + MMS_OUTBOUND_LONGCODE_CANADA("mms-outbound-longcode-canada"), + MMS_OUTBOUND_LONGCODE_UNITEDSTATES( + "mms-outbound-longcode-unitedstates" + ), + MMS_OUTBOUND_TOLL_FREE("mms-outbound-toll-free"), + NOTIFY_CHATAPPSANDOTHERCHANNELS("notify-chatappsandotherchannels"), + NOTIFY_NOTIFYSERVICES("notify-notifyservices"), + NOTIFY_PUSHNOTIFICATIONS("notify-pushnotifications"), + PAYMENT_GATEWAY_CONNECTORS("payment-gateway-connectors"), + PAYMENT_SOLUTIONS("payment-solutions"), + PCHAT_BUCKET_ADJUSTMENT("pchat-bucket-adjustment"), + PHONENUMBERS_NUMBERS("phonenumbers-numbers"), + PROG_VOICE_CLIENT_ANDROID("prog-voice-client-android"), + PROG_VOICE_CLIENT_ANDROID_INBOUND("prog-voice-client-android-inbound"), + PROG_VOICE_CLIENT_ANDROID_OUTBOUND( + "prog-voice-client-android-outbound" + ), + PROG_VOICE_CLIENT_IOS("prog-voice-client-ios"), + PROG_VOICE_CLIENT_IOS_INBOUND("prog-voice-client-ios-inbound"), + PROG_VOICE_CLIENT_IOS_OUTBOUND("prog-voice-client-ios-outbound"), + PROG_VOICE_CLIENT_SDK("prog-voice-client-sdk"), + PROG_VOICE_CLIENT_WEB("prog-voice-client-web"), + PROG_VOICE_CLIENT_WEB_INBOUND("prog-voice-client-web-inbound"), + PROG_VOICE_CLIENT_WEB_OUTBOUND("prog-voice-client-web-outbound"), + PROGRAMMABLEVOICECONNECTIVITY_MEDIA_STREAMS( + "programmablevoiceconnectivity-media-streams" + ), + PSTNCONNECTIVITY_BYOC("pstnconnectivity-byoc"), + PSTNCONNECTIVITY_EMERGENCY("pstnconnectivity-emergency"), + PSTNCONNECTIVITY_MINUTES("pstnconnectivity-minutes"), + PSTNCONNECTIVITY_MINUTES_1("pstnconnectivity-minutes-1"), + PSTNCONNECTIVITY_MINUTESINBOUNDLOCAL( + "pstnconnectivity-minutesinboundlocal" + ), + PSTNCONNECTIVITY_MINUTESINBOUNDMOBILE( + "pstnconnectivity-minutesinboundmobile" + ), + PSTNCONNECTIVITY_MINUTESINBOUNDTOLLFREE( + "pstnconnectivity-minutesinboundtollfree" + ), + PSTNCONNECTIVITY_MINUTESINBOUNDTOLLFREELOCAL( + "pstnconnectivity-minutesinboundtollfreelocal" + ), + PSTNCONNECTIVITY_MINUTESINBOUNDTOLLFREEMOBILE( + "pstnconnectivity-minutesinboundtollfreemobile" + ), + PV_ROOM_HOURS("pv-room-hours"), + PV_ROOM_SIMULTANEOUS_PARTICIPANT_CONNECTIONS( + "pv-room-simultaneous-participant-connections" + ), + PVIDEO_ROOM_HOURS_AU1("pvideo-room-hours-au1"), + PVIDEO_ROOM_HOURS_BR1("pvideo-room-hours-br1"), + PVIDEO_ROOM_HOURS_IE1("pvideo-room-hours-ie1"), + PVIDEO_ROOM_HOURS_JP1("pvideo-room-hours-jp1"), + PVIDEO_ROOM_HOURS_SG1("pvideo-room-hours-sg1"), + PVIDEO_ROOM_HOURS_US1("pvideo-room-hours-us1"), + PVIDEO_ROOM_HOURS_US2("pvideo-room-hours-us2"), + RECORDINGS_ENCRYPTED("recordings-encrypted"), + SHORT_CODE_SETUP_FEES("short-code-setup-fees"), + SHORTCODES_MESSAGES_INBOUND("shortcodes-messages-inbound"), + SHORTCODES_MESSAGES_OUTBOUND("shortcodes-messages-outbound"), + SMS_MESSAGES_REGISTRATIONFEES("sms-messages-registrationfees"), + SMS_MMS_PENALTY_FEES("sms-mms-penalty-fees"), + SMS_MMS_PENALTY_FEES_1("sms-mms-penalty-fees-1"), + SMS_PUMPING_PROTECTION_NON_USCA("sms-pumping-protection-non-usca"), + SMS_PUMPING_PROTECTION_USCA("sms-pumping-protection-usca"), + STUDIO("studio"), + STUDIO_MONTHLY_FEES("studio-monthly-fees"), + SUPERSIM("supersim"), + TASK_ROUTER("task-router"), + TASK_ROUTER_WORKERS("task-router-workers"), + TEST_QUOTA_BUCKETS("test-quota-buckets"), + TEST_UC_SCRIPT_1("test-uc-script-1"), + TEST_UC_SCRIPT_DEMO_2("test-uc-script-demo-2"), + TEXT_TO_SPEECH("text-to-speech"), + TME("tme"), + TTS_BASIC("tts-basic"), + TWILIO_EDITIONS("twilio-editions"), + TWILIO_INTERCONNECT_CALIFORNIA("twilio-interconnect-california"), + TWILIO_INTERCONNECT_CALIFORNIA_MONTHLY( + "twilio-interconnect-california-monthly" + ), + TWILIO_INTERCONNECT_CALIFORNIA_SETUP( + "twilio-interconnect-california-setup" + ), + TWILIO_INTERCONNECT_FRANKFURT("twilio-interconnect-frankfurt"), + TWILIO_INTERCONNECT_FRANKFURT_MO("twilio-interconnect-frankfurt-mo"), + TWILIO_INTERCONNECT_FRANKFURT_SETUP( + "twilio-interconnect-frankfurt-setup" + ), + TWILIO_INTERCONNECT_LONDON("twilio-interconnect-london"), + TWILIO_INTERCONNECT_LONDON_MO("twilio-interconnect-london-mo"), + TWILIO_INTERCONNECT_LONDON_SETUP("twilio-interconnect-london-setup"), + TWILIO_INTERCONNECT_SAO_PAULO("twilio-interconnect-sao-paulo"), + TWILIO_INTERCONNECT_SAO_PAULO_MONTHLY( + "twilio-interconnect-sao-paulo-monthly" + ), + TWILIO_INTERCONNECT_SAO_PAULO_SETUP( + "twilio-interconnect-sao-paulo-setup" + ), + TWILIO_INTERCONNECT_SINGAPORE("twilio-interconnect-singapore"), + TWILIO_INTERCONNECT_SINGAPORE_MO("twilio-interconnect-singapore-mo"), + TWILIO_INTERCONNECT_SINGAPORE_SETUP( + "twilio-interconnect-singapore-setup" + ), + TWILIO_INTERCONNECT_SYDNEY("twilio-interconnect-sydney"), + TWILIO_INTERCONNECT_SYDNEY_MO("twilio-interconnect-sydney-mo"), + TWILIO_INTERCONNECT_SYDNEY_SETUP("twilio-interconnect-sydney-setup"), + TWILIO_INTERCONNECT_TOKYO("twilio-interconnect-tokyo"), + TWILIO_INTERCONNECT_TOKYO_MO("twilio-interconnect-tokyo-mo"), + TWILIO_INTERCONNECT_TOKYO_SETUP("twilio-interconnect-tokyo-setup"), + TWILIO_INTERCONNECT_VA("twilio-interconnect-va"), + TWILIO_INTERCONNECT_VA_MO("twilio-interconnect-va-mo"), + TWILIO_INTERCONNECT_VA_SETUP("twilio-interconnect-va-setup"), + TWIML_VERBS("twiml-verbs"), + TWIML_VERBS_SAY("twiml-verbs-say"), + USAGE_PROGRAMMABLE_MESSAGING_ENGAGEMENT_SUITE( + "usage-programmable-messaging-engagement-suite" + ), + USAGE_PROGRAMMABLE_MESSAGING_FEES_SERVICES( + "usage-programmable-messaging-fees-services" + ), + VERIFY_OUTBOUND_EMAIL("verify-outbound-email"), + VERIFY_PACKAGED_PLANS("verify-packaged-plans"), + VERIFY_SILENT_NETWORK_AUTH("verify-silent-network-auth"), + VERIFY_VOICE_AND_SMS("verify-voice-and-sms"), + VOICE_INSIGHTS_CLIENT_INSIGHTS_MONTHY_COMMIT( + "voice-insights-client-insights-monthy-commit" + ), + WIRELESS_DATA_PAYG_ASIA_AFG("wireless-data-payg-asia-afg"), + WIRELESS_MULTI_IMSI_SIM_COMMANDS("wireless-multi-imsi-sim-commands"), + WIRELESS_MULTI_IMSI_SIM_COMMANDS_USA( + "wireless-multi-imsi-sim-commands-usa" + ), + WIRELESS_MULTI_IMSI_SIM_DATA("wireless-multi-imsi-sim-data"), + WIRELESS_MULTI_IMSI_SIM_DATA_EU28("wireless-multi-imsi-sim-data-eu28"), + WIRELESS_MULTI_IMSI_SIM_DATA_USA("wireless-multi-imsi-sim-data-usa"), + WIRELESS_MULTI_IMSI_SIM_MONTHLY_FEES( + "wireless-multi-imsi-sim-monthly-fees" + ), + WIRELESS_MULTI_IMSI_SIM_USAGE("wireless-multi-imsi-sim-usage"), + WIRELESS_SUPER_SIM_DATA_NORTH_AMERICA( + "wireless-super-sim-data-north-america" + ), + WIRELESS_SUPER_SIM_USAGE("wireless-super-sim-usage"); + + private final String value; + + private UsageCategory(final String value) { + this.value = value; + } + + public String toString() { + return value; + } + + @JsonCreator + public static UsageCategory forValue(final String value) { + return Promoter.enumFromString(value, UsageCategory.values()); + } + } + public enum Recurring { DAILY("daily"), MONTHLY("monthly"), @@ -247,7 +1172,7 @@ public static String toJson(Object object, ObjectMapper mapper) { private final String uri; @Getter - private final String usageCategory; + private final Trigger.UsageCategory usageCategory; @Getter private final String usageRecordUri; @@ -274,7 +1199,9 @@ private Trigger( @JsonProperty("trigger_by") final Trigger.TriggerField triggerBy, @JsonProperty("trigger_value") final String triggerValue, @JsonProperty("uri") final String uri, - @JsonProperty("usage_category") final String usageCategory, + @JsonProperty( + "usage_category" + ) final Trigger.UsageCategory usageCategory, @JsonProperty("usage_record_uri") final String usageRecordUri ) { this.accountSid = accountSid; diff --git a/src/main/java/com/twilio/rest/api/v2010/account/usage/TriggerCreator.java b/src/main/java/com/twilio/rest/api/v2010/account/usage/TriggerCreator.java index f45df46602..47daecda77 100644 --- a/src/main/java/com/twilio/rest/api/v2010/account/usage/TriggerCreator.java +++ b/src/main/java/com/twilio/rest/api/v2010/account/usage/TriggerCreator.java @@ -35,7 +35,7 @@ public class TriggerCreator extends Creator { private String pathAccountSid; private URI callbackUrl; private String triggerValue; - private String usageCategory; + private Trigger.UsageCategory usageCategory; private HttpMethod callbackMethod; private String friendlyName; private Trigger.Recurring recurring; @@ -44,7 +44,7 @@ public class TriggerCreator extends Creator { public TriggerCreator( final URI callbackUrl, final String triggerValue, - final String usageCategory + final Trigger.UsageCategory usageCategory ) { this.callbackUrl = callbackUrl; this.triggerValue = triggerValue; @@ -55,7 +55,7 @@ public TriggerCreator( final String pathAccountSid, final URI callbackUrl, final String triggerValue, - final String usageCategory + final Trigger.UsageCategory usageCategory ) { this.pathAccountSid = pathAccountSid; this.callbackUrl = callbackUrl; @@ -77,7 +77,9 @@ public TriggerCreator setTriggerValue(final String triggerValue) { return this; } - public TriggerCreator setUsageCategory(final String usageCategory) { + public TriggerCreator setUsageCategory( + final Trigger.UsageCategory usageCategory + ) { this.usageCategory = usageCategory; return this; } diff --git a/src/main/java/com/twilio/rest/api/v2010/account/usage/TriggerDeleter.java b/src/main/java/com/twilio/rest/api/v2010/account/usage/TriggerDeleter.java index 0c63f16b49..4e46e71ecf 100644 --- a/src/main/java/com/twilio/rest/api/v2010/account/usage/TriggerDeleter.java +++ b/src/main/java/com/twilio/rest/api/v2010/account/usage/TriggerDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class TriggerDeleter extends Deleter { @@ -55,6 +56,8 @@ public boolean delete(final TwilioRestClient client) { ); path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.API.toString(), @@ -80,6 +83,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/api/v2010/account/usage/TriggerReader.java b/src/main/java/com/twilio/rest/api/v2010/account/usage/TriggerReader.java index 2e0b4a6d61..59e574b5a9 100644 --- a/src/main/java/com/twilio/rest/api/v2010/account/usage/TriggerReader.java +++ b/src/main/java/com/twilio/rest/api/v2010/account/usage/TriggerReader.java @@ -34,7 +34,7 @@ public class TriggerReader extends Reader { private String pathAccountSid; private Trigger.Recurring recurring; private Trigger.TriggerField triggerBy; - private String usageCategory; + private Trigger.UsageCategory usageCategory; private Long pageSize; public TriggerReader() {} @@ -53,7 +53,9 @@ public TriggerReader setTriggerBy(final Trigger.TriggerField triggerBy) { return this; } - public TriggerReader setUsageCategory(final String usageCategory) { + public TriggerReader setUsageCategory( + final Trigger.UsageCategory usageCategory + ) { this.usageCategory = usageCategory; return this; } diff --git a/src/main/java/com/twilio/rest/api/v2010/account/usage/record/AllTime.java b/src/main/java/com/twilio/rest/api/v2010/account/usage/record/AllTime.java index 6e99f3084f..e606a27c85 100644 --- a/src/main/java/com/twilio/rest/api/v2010/account/usage/record/AllTime.java +++ b/src/main/java/com/twilio/rest/api/v2010/account/usage/record/AllTime.java @@ -25,6 +25,7 @@ import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.twilio.base.Resource; import com.twilio.base.Resource; +import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; import com.twilio.type.*; @@ -51,6 +52,931 @@ public static AllTimeReader reader(final String pathAccountSid) { return new AllTimeReader(pathAccountSid); } + public enum Category { + A2P_10DLC_REGISTRATIONFEES_BRANDREGISTRATION( + "a2p-10dlc-registrationfees-brandregistration" + ), + A2P_10DLC_REGISTRATIONFEES_BV("a2p-10dlc-registrationfees-bv"), + A2P_10DLC_REGISTRATIONFEES_CAMPAIGNCHARGES( + "a2p-10dlc-registrationfees-campaigncharges" + ), + A2P_10DLC_REGISTRATIONFEES_CAMPAIGNREGISTRATION( + "a2p-10dlc-registrationfees-campaignregistration" + ), + A2P_10DLC_REGISTRATIONFEES_CAMPAIGNVETTING( + "a2p-10dlc-registrationfees-campaignvetting" + ), + A2P_10DLC_REGISTRATIONFEES_MONTHLY( + "a2p-10dlc-registrationfees-monthly" + ), + A2P_10DLC_REGISTRATIONFEES_ONETIME( + "a2p-10dlc-registrationfees-onetime" + ), + A2P_REGISTRATION_FEES("a2p-registration-fees"), + ACCOUNT_SECURITY("account-security"), + AGENT_CONFERENCE("agent-conference"), + AGENT_COPILOT("agent-copilot"), + AGENT_COPILOT_MESSAGES("agent-copilot-messages"), + AGENT_COPILOT_PARTICIPANT_MINUTES("agent-copilot-participant-minutes"), + AI_ASSISTANTS("ai-assistants"), + AI_ASSISTANTS_VOICE("ai-assistants-voice"), + AMAZON_POLLY("amazon-polly"), + ANSWERING_MACHINE_DETECTION("answering-machine-detection"), + ASSETS("assets"), + AUDIENCE_MINUTES("audience-minutes"), + AUDIENCE_MINUTES_AUDIO("audience-minutes-audio"), + AUTHY_AUTHENTICATIONS("authy-authentications"), + AUTHY_CALLS_OUTBOUND("authy-calls-outbound"), + AUTHY_EMAIL_AUTHENTICATIONS("authy-email-authentications"), + AUTHY_MONTHLY_FEES("authy-monthly-fees"), + AUTHY_OUTBOUND_EMAIL("authy-outbound-email"), + AUTHY_PHONE_INTELLIGENCE("authy-phone-intelligence"), + AUTHY_PHONE_VERIFICATIONS("authy-phone-verifications"), + AUTHY_SMS_OUTBOUND("authy-sms-outbound"), + AUTHY_VERIFY_EMAIL_VERIFICATIONS("authy-verify-email-verifications"), + AUTHY_VERIFY_OUTBOUND_EMAIL("authy-verify-outbound-email"), + AUTOPILOT("autopilot"), + AUTOPILOT_HOME_ASSISTANTS("autopilot-home-assistants"), + AUTOPILOT_MESSAGING("autopilot-messaging"), + AUTOPILOT_OTHER("autopilot-other"), + AUTOPILOT_VOICE("autopilot-voice"), + BASIC_PEER_TO_PEER_ROOMS_PARTICIPANT_MINUTES( + "basic-peer-to-peer-rooms-participant-minutes" + ), + BRANDED_CALLING("branded-calling"), + BUNDLE_SMS_BUCKET("bundle-sms-bucket"), + BUNDLE_SUBSCRIPTION_FEES("bundle-subscription-fees"), + CALL_FORWARDING_LOOKUPS("call-forwarding-lookups"), + CALL_PROGESS_EVENTS("call-progess-events"), + CALLERIDLOOKUPS("calleridlookups"), + CALLS("calls"), + CALLS_CLIENT("calls-client"), + CALLS_EMERGENCY("calls-emergency"), + CALLS_GLOBALCONFERENCE("calls-globalconference"), + CALLS_INBOUND("calls-inbound"), + CALLS_INBOUND_LOCAL("calls-inbound-local"), + CALLS_INBOUND_MOBILE("calls-inbound-mobile"), + CALLS_INBOUND_TOLLFREE("calls-inbound-tollfree"), + CALLS_INBOUND_TOLLFREE_LOCAL("calls-inbound-tollfree-local"), + CALLS_INBOUND_TOLLFREE_MOBILE("calls-inbound-tollfree-mobile"), + CALLS_MEDIA_STREAM_MINUTES("calls-media-stream-minutes"), + CALLS_OUTBOUND("calls-outbound"), + CALLS_PAY_VERB_TRANSACTIONS("calls-pay-verb-transactions"), + CALLS_RECORDINGS("calls-recordings"), + CALLS_SIP("calls-sip"), + CALLS_SIP_INBOUND("calls-sip-inbound"), + CALLS_SIP_OUTBOUND("calls-sip-outbound"), + CALLS_TEXT_TO_SPEECH("calls-text-to-speech"), + CALLS_TRANSFERS("calls-transfers"), + CARRIER_LOOKUPS("carrier-lookups"), + CATEGORY("category"), + CHANNELS("channels"), + CHANNELS_MESSAGING("channels-messaging"), + CHANNELS_MESSAGING_INBOUND("channels-messaging-inbound"), + CHANNELS_MESSAGING_OUTBOUND("channels-messaging-outbound"), + CHANNELS_WHATSAPP("channels-whatsapp"), + CHANNELS_WHATSAPP_CONVERSATION_AUTHENTICATION( + "channels-whatsapp-conversation-authentication" + ), + CHANNELS_WHATSAPP_CONVERSATION_FREE( + "channels-whatsapp-conversation-free" + ), + CHANNELS_WHATSAPP_CONVERSATION_MARKETING( + "channels-whatsapp-conversation-marketing" + ), + CHANNELS_WHATSAPP_CONVERSATION_SERVICE( + "channels-whatsapp-conversation-service" + ), + CHANNELS_WHATSAPP_CONVERSATION_UTILITY( + "channels-whatsapp-conversation-utility" + ), + CHANNELS_WHATSAPP_INBOUND("channels-whatsapp-inbound"), + CHANNELS_WHATSAPP_OUTBOUND("channels-whatsapp-outbound"), + CHAT_VIRTUAL_AGENT("chat-virtual-agent"), + CONVERSATION_RELAY("conversation-relay"), + CONVERSATIONS("conversations"), + CONVERSATIONS_API_REQUESTS("conversations-api-requests"), + CONVERSATIONS_CONVERSATION_EVENTS("conversations-conversation-events"), + CONVERSATIONS_ENDPOINT_CONNECTIVITY( + "conversations-endpoint-connectivity" + ), + CONVERSATIONS_EVENTS("conversations-events"), + CONVERSATIONS_PARTICIPANT_EVENTS("conversations-participant-events"), + CONVERSATIONS_PARTICIPANTS("conversations-participants"), + CPS("cps"), + CREDIT_TRANSFER("credit-transfer"), + EMAIL("email"), + EMERGING_TECH("emerging-tech"), + ENGAGEMENT_SUITE_PACKAGED_PLANS("engagement-suite-packaged-plans"), + ENHANCED_LINE_TYPE_LOOKUPS("enhanced-line-type-lookups"), + ENTERPRISE("enterprise"), + EVENTS("events"), + EXPERIMENT_FRANCE_SMS("experiment-france-sms"), + EXPERIMENT_INDIA_SMS("experiment-india-sms"), + EXPERIMENT_UK_SMS("experiment-uk-sms"), + FAILED_MESSAGE_PROCESSING_FEE("failed-message-processing-fee"), + FLEX("flex"), + FLEX_ACTIVE_USER_HOURS("flex-active-user-hours"), + FLEX_CONCURRENT_USERS("flex-concurrent-users"), + FLEX_CONVERSATIONAL_INSIGHTS("flex-conversational-insights"), + FLEX_CONVERSATIONAL_INSIGHTS_MESSAGES( + "flex-conversational-insights-messages" + ), + FLEX_CONVERSATIONAL_INSIGHTS_VOICE_MINUTES( + "flex-conversational-insights-voice-minutes" + ), + FLEX_EMAIL_USAGE("flex-email-usage"), + FLEX_MESSAGING_USAGE("flex-messaging-usage"), + FLEX_PARTNER_SPINSCI("flex-partner-spinsci"), + FLEX_PARTNER_XCELERATE("flex-partner-xcelerate"), + FLEX_RESELLER_ECOSYSTEM("flex-reseller-ecosystem"), + FLEX_UNIQUE_USER("flex-unique-user"), + FLEX_USAGE("flex-usage"), + FLEX_USERS("flex-users"), + FLEX_VOICE_MINUTE("flex-voice-minute"), + FLEX_YTICA("flex-ytica"), + FRAUD_LOOKUPS("fraud-lookups"), + FRONTLINE("frontline"), + FRONTLINE_USERS("frontline-users"), + FUNCTIONS("functions"), + GENERIC_PAY_TRANSACTIONS("generic-pay-transactions"), + GROUP_ROOMS("group-rooms"), + GROUP_ROOMS_DATA_TRACK("group-rooms-data-track"), + GROUP_ROOMS_ENCRYPTED_MEDIA_RECORDED( + "group-rooms-encrypted-media-recorded" + ), + GROUP_ROOMS_MEDIA_DOWNLOADED("group-rooms-media-downloaded"), + GROUP_ROOMS_MEDIA_RECORDED("group-rooms-media-recorded"), + GROUP_ROOMS_MEDIA_ROUTED("group-rooms-media-routed"), + GROUP_ROOMS_MEDIA_STORED("group-rooms-media-stored"), + GROUP_ROOMS_PARTICIPANT_MINUTES("group-rooms-participant-minutes"), + GROUP_ROOMS_RECORDED_MINUTES("group-rooms-recorded-minutes"), + IP_MESSAGING("ip-messaging"), + IP_MESSAGING_COMMANDS("ip-messaging-commands"), + IP_MESSAGING_DATA_STORAGE("ip-messaging-data-storage"), + IP_MESSAGING_DATA_TRANSFER("ip-messaging-data-transfer"), + IP_MESSAGING_ENDPOINT_CONNECTIVITY( + "ip-messaging-endpoint-connectivity" + ), + IVR_VIRTUAL_AGENT_CUSTOM_VOICES("ivr-virtual-agent-custom-voices"), + IVR_VIRTUAL_AGENT_GENAI("ivr-virtual-agent-genai"), + LINE_STATUS_LOOKUPS("line-status-lookups"), + LIVE_ACTIVITY_LOOKUPS("live-activity-lookups"), + LOOKUP_BUCKET_ADJUSTMENT("lookup-bucket-adjustment"), + LOOKUP_IDENTITY_MATCH("lookup-identity-match"), + LOOKUPS("lookups"), + MARKETPLACE("marketplace"), + MARKETPLACE_ALGORITHMIA_NAMED_ENTITY_RECOGNITION( + "marketplace-algorithmia-named-entity-recognition" + ), + MARKETPLACE_CADENCE_TRANSCRIPTION("marketplace-cadence-transcription"), + MARKETPLACE_CADENCE_TRANSLATION("marketplace-cadence-translation"), + MARKETPLACE_CAPIO_SPEECH_TO_TEXT("marketplace-capio-speech-to-text"), + MARKETPLACE_CONVRIZA_ABABA("marketplace-convriza-ababa"), + MARKETPLACE_DEEPGRAM_PHRASE_DETECTOR( + "marketplace-deepgram-phrase-detector" + ), + MARKETPLACE_DEEPGRAM_TRANSCRIPTION( + "marketplace-deepgram-transcription" + ), + MARKETPLACE_DEEPGRAM_TRANSCRIPTION_BASE( + "marketplace-deepgram-transcription-base" + ), + MARKETPLACE_DEEPGRAM_TRANSSCRIPTION_ENHANCED( + "marketplace-deepgram-transscription-enhanced" + ), + MARKETPLACE_DIGITAL_SEGMENT_BUSINESS_INFO( + "marketplace-digital-segment-business-info" + ), + MARKETPLACE_FACEBOOK_OFFLINE_CONVERSIONS( + "marketplace-facebook-offline-conversions" + ), + MARKETPLACE_GOOGLE_SPEECH_TO_TEXT("marketplace-google-speech-to-text"), + MARKETPLACE_IBM_WATSON_MESSAGE_INSIGHTS( + "marketplace-ibm-watson-message-insights" + ), + MARKETPLACE_IBM_WATSON_MESSAGE_SENTIMENT( + "marketplace-ibm-watson-message-sentiment" + ), + MARKETPLACE_IBM_WATSON_RECORDING_ANALYSIS( + "marketplace-ibm-watson-recording-analysis" + ), + MARKETPLACE_IBM_WATSON_TONE_ANALYZER( + "marketplace-ibm-watson-tone-analyzer" + ), + MARKETPLACE_ICEHOOK_SYSTEMS_SCOUT("marketplace-icehook-systems-scout"), + MARKETPLACE_INFOGROUP_DATAAXLE_BIZINFO( + "marketplace-infogroup-dataaxle-bizinfo" + ), + MARKETPLACE_KEEN_IO_CONTACT_CENTER_ANALYTICS( + "marketplace-keen-io-contact-center-analytics" + ), + MARKETPLACE_MARCHEX_CLEANCALL("marketplace-marchex-cleancall"), + MARKETPLACE_MARCHEX_RECORDING_ANALYSIS( + "marketplace-marchex-recording-analysis" + ), + MARKETPLACE_MARCHEX_SENTIMENT_ANALYSIS_FOR_SMS( + "marketplace-marchex-sentiment-analysis-for-sms" + ), + MARKETPLACE_MARKETPLACE_NEXTCALLER_SOCIAL_ID( + "marketplace-marketplace-nextcaller-social-id" + ), + MARKETPLACE_MOBILE_COMMONS_OPT_OUT_CLASSIFIER( + "marketplace-mobile-commons-opt-out-classifier" + ), + MARKETPLACE_NEXIWAVE_VOICEMAIL_TO_TEXT( + "marketplace-nexiwave-voicemail-to-text" + ), + MARKETPLACE_NEXTCALLER_ADVANCED_CALLER_IDENTIFICATION( + "marketplace-nextcaller-advanced-caller-identification" + ), + MARKETPLACE_NOMOROBO_SPAM_SCORE("marketplace-nomorobo-spam-score"), + MARKETPLACE_PAY_ADDONS("marketplace-pay-addons"), + MARKETPLACE_PAY_ADDONS_BASECOMMERCE_PAY_CONNECTOR( + "marketplace-pay-addons-basecommerce-pay-connector" + ), + MARKETPLACE_PAY_ADDONS_BRAINTREE_PAY_CONNECTOR( + "marketplace-pay-addons-braintree-pay-connector" + ), + MARKETPLACE_PAY_ADDONS_CARDCONNECT_PAY_CONNECTOR( + "marketplace-pay-addons-cardconnect-pay-connector" + ), + MARKETPLACE_PAY_ADDONS_CHASE_PAY_CONNECTOR( + "marketplace-pay-addons-chase-pay-connector" + ), + MARKETPLACE_PAY_ADDONS_SHUTTLE_PAY_CONNECTOR( + "marketplace-pay-addons-shuttle-pay-connector" + ), + MARKETPLACE_PAY_ADDONS_STRIPE_PAY_CONNECTOR( + "marketplace-pay-addons-stripe-pay-connector" + ), + MARKETPLACE_PAYFONE_TCPA_COMPLIANCE( + "marketplace-payfone-tcpa-compliance" + ), + MARKETPLACE_POLY_AI_CONNECTOR("marketplace-poly-ai-connector"), + MARKETPLACE_REALPHONEVALIDATION("marketplace-realphonevalidation"), + MARKETPLACE_REMEETING_AUTOMATIC_SPEECH_RECOGNITION( + "marketplace-remeeting-automatic-speech-recognition" + ), + MARKETPLACE_SPOKE_PHONE_LICENSE_PRO( + "marketplace-spoke-phone-license-pro" + ), + MARKETPLACE_SPOKE_PHONE_LICENSE_STANDARD( + "marketplace-spoke-phone-license-standard" + ), + MARKETPLACE_TCPA_DEFENSE_SOLUTIONS_BLACKLIST_FEED( + "marketplace-tcpa-defense-solutions-blacklist-feed" + ), + MARKETPLACE_TELO_OPENCNAM("marketplace-telo-opencnam"), + MARKETPLACE_TRESTLE_SOLUTIONS_CALLER_IDENTIFICATION( + "marketplace-trestle-solutions-caller-identification" + ), + MARKETPLACE_TRUECNAM_TRUE_SPAM("marketplace-truecnam-true-spam"), + MARKETPLACE_TWILIO_CALLER_NAME_LOOKUP_US( + "marketplace-twilio-caller-name-lookup-us" + ), + MARKETPLACE_TWILIO_CARRIER_INFORMATION_LOOKUP( + "marketplace-twilio-carrier-information-lookup" + ), + MARKETPLACE_VOICEBASE_PCI("marketplace-voicebase-pci"), + MARKETPLACE_VOICEBASE_TRANSCRIPTION( + "marketplace-voicebase-transcription" + ), + MARKETPLACE_VOICEBASE_TRANSCRIPTION_CUSTOM_VOCABULARY( + "marketplace-voicebase-transcription-custom-vocabulary" + ), + MARKETPLACE_WEB_PURIFY_PROFANITY_FILTER( + "marketplace-web-purify-profanity-filter" + ), + MARKETPLACE_WHITEPAGES_PRO_CALLER_IDENTIFICATION( + "marketplace-whitepages-pro-caller-identification" + ), + MARKETPLACE_WHITEPAGES_PRO_PHONE_INTELLIGENCE( + "marketplace-whitepages-pro-phone-intelligence" + ), + MARKETPLACE_WHITEPAGES_PRO_PHONE_REPUTATION( + "marketplace-whitepages-pro-phone-reputation" + ), + MARKETPLACE_WOLFARM_SPOKEN_RESULTS( + "marketplace-wolfarm-spoken-results" + ), + MARKETPLACE_WOLFRAM_SHORT_ANSWER("marketplace-wolfram-short-answer"), + MARKETPLACE_YTICA_CONTACT_CENTER_REPORTING_ANALYTICS( + "marketplace-ytica-contact-center-reporting-analytics" + ), + MARKETPLAY_PAY_ADDONS_SHUTTLE_PAY_CONNECTOR( + "marketplay-pay-addons-shuttle-pay-connector" + ), + MEDIA_COMPOSER_MINUTES("media-composer-minutes"), + MEDIASTORAGE("mediastorage"), + MIN_SPEND_ADJUSTMENTS("min-spend-adjustments"), + MMS("mms"), + MMS_INBOUND("mms-inbound"), + MMS_INBOUND_LONGCODE("mms-inbound-longcode"), + MMS_INBOUND_SHORTCODE("mms-inbound-shortcode"), + MMS_INBOUND_TOLL_FREE("mms-inbound-toll-free"), + MMS_MESSAGES_CARRIERFEES("mms-messages-carrierfees"), + MMS_OUTBOUND("mms-outbound"), + MMS_OUTBOUND_LONGCODE("mms-outbound-longcode"), + MMS_OUTBOUND_SHORTCODE("mms-outbound-shortcode"), + MMS_OUTBOUND_TOLLFREE("mms-outbound-tollfree"), + MONITOR("monitor"), + MONITOR_READS("monitor-reads"), + MONITOR_STORAGE("monitor-storage"), + MONITOR_WRITES("monitor-writes"), + NOTIFY("notify"), + NOTIFY_ACTIONS_ATTEMPTS("notify-actions-attempts"), + NOTIFY_CHANNELS("notify-channels"), + NUMBER_FORMAT_LOOKUPS("number-format-lookups"), + PCHAT("pchat"), + PCHAT_ACTIONS("pchat-actions"), + PCHAT_APS("pchat-aps"), + PCHAT_CONV_MED_STORAGE("pchat-conv-med-storage"), + PCHAT_MESSAGES("pchat-messages"), + PCHAT_NOTIFICATIONS("pchat-notifications"), + PCHAT_READS("pchat-reads"), + PCHAT_USERS("pchat-users"), + PEER_TO_PEER_ROOMS_PARTICIPANT_MINUTES( + "peer-to-peer-rooms-participant-minutes" + ), + PFAX("pfax"), + PFAX_MINUTES("pfax-minutes"), + PFAX_MINUTES_INBOUND("pfax-minutes-inbound"), + PFAX_MINUTES_OUTBOUND("pfax-minutes-outbound"), + PFAX_PAGES("pfax-pages"), + PHONE_QUALITY_SCORE_LOOKUPS("phone-quality-score-lookups"), + PHONENUMBERS("phonenumbers"), + PHONENUMBERS_CPS("phonenumbers-cps"), + PHONENUMBERS_EMERGENCY("phonenumbers-emergency"), + PHONENUMBERS_LOCAL("phonenumbers-local"), + PHONENUMBERS_MOBILE("phonenumbers-mobile"), + PHONENUMBERS_PORTING("phonenumbers-porting"), + PHONENUMBERS_SETUPS("phonenumbers-setups"), + PHONENUMBERS_TOLLFREE("phonenumbers-tollfree"), + PREMIUMSUPPORT("premiumsupport"), + PREMIUMSUPPORT_PERCENTAGE_SPEND("premiumsupport-percentage-spend"), + PROGRAMMABLEVOICE_PLATFORM("programmablevoice-platform"), + PROGRAMMABLEVOICECONN_CLIENTSDK("programmablevoiceconn-clientsdk"), + PROGRAMMABLEVOICECONN_CLIENTSDK_INBOUND( + "programmablevoiceconn-clientsdk-inbound" + ), + PROGRAMMABLEVOICECONN_CLIENTSDK_OUTBOUND( + "programmablevoiceconn-clientsdk-outbound" + ), + PROGRAMMABLEVOICECONN_ONNET("programmablevoiceconn-onnet"), + PROGRAMMABLEVOICECONN_ONNET_INBOUND( + "programmablevoiceconn-onnet-inbound" + ), + PROGRAMMABLEVOICECONN_ONNET_OUTBOUND( + "programmablevoiceconn-onnet-outbound" + ), + PROGRAMMABLEVOICECONN_SIP("programmablevoiceconn-sip"), + PROGRAMMABLEVOICECONN_SIP_INBOUND("programmablevoiceconn-sip-inbound"), + PROGRAMMABLEVOICECONN_SIP_OUTBOUND( + "programmablevoiceconn-sip-outbound" + ), + PROGRAMMABLEVOICECONNECTIVITY("programmablevoiceconnectivity"), + PROXY("proxy"), + PROXY_ACTIVE_SESSIONS("proxy-active-sessions"), + PROXY_BUCKET_ADJUSTMENT("proxy-bucket-adjustment"), + PROXY_LICENSES("proxy-licenses"), + PSTNCONNECTIVITY("pstnconnectivity"), + PSTNCONNECTIVITY_INBOUND("pstnconnectivity-inbound"), + PSTNCONNECTIVITY_OUTBOUND("pstnconnectivity-outbound"), + PV("pv"), + PV_BASIC_ROOMS("pv-basic-rooms"), + PV_COMPOSITION_MEDIA_DOWNLOADED("pv-composition-media-downloaded"), + PV_COMPOSITION_MEDIA_ENCRYPTED("pv-composition-media-encrypted"), + PV_COMPOSITION_MEDIA_STORED("pv-composition-media-stored"), + PV_COMPOSITION_MINUTES("pv-composition-minutes"), + PV_RECORDING_COMPOSITIONS("pv-recording-compositions"), + PV_ROOM_PARTICIPANTS("pv-room-participants"), + PV_ROOM_PARTICIPANTS_AU1("pv-room-participants-au1"), + PV_ROOM_PARTICIPANTS_BR1("pv-room-participants-br1"), + PV_ROOM_PARTICIPANTS_IE1("pv-room-participants-ie1"), + PV_ROOM_PARTICIPANTS_JP1("pv-room-participants-jp1"), + PV_ROOM_PARTICIPANTS_SG1("pv-room-participants-sg1"), + PV_ROOM_PARTICIPANTS_US1("pv-room-participants-us1"), + PV_ROOM_PARTICIPANTS_US2("pv-room-participants-us2"), + PV_ROOMS("pv-rooms"), + PV_SIP_ENDPOINT_REGISTRATIONS("pv-sip-endpoint-registrations"), + RCS_MESSAGES("rcs-messages"), + REASSIGNED_NUMBER("reassigned-number"), + RECORDINGS("recordings"), + RECORDINGSTORAGE("recordingstorage"), + SHORTCODES("shortcodes"), + SHORTCODES_CUSTOMEROWNED("shortcodes-customerowned"), + SHORTCODES_MMS_ENABLEMENT("shortcodes-mms-enablement"), + SHORTCODES_MPS("shortcodes-mps"), + SHORTCODES_RANDOM("shortcodes-random"), + SHORTCODES_SETUP_FEES("shortcodes-setup-fees"), + SHORTCODES_UK("shortcodes-uk"), + SHORTCODES_VANITY("shortcodes-vanity"), + SIM_SWAP_LOOKUPS("sim-swap-lookups"), + SIP_SECURE_MEDIA("sip-secure-media"), + SMALL_GROUP_ROOMS("small-group-rooms"), + SMALL_GROUP_ROOMS_DATA_TRACK("small-group-rooms-data-track"), + SMALL_GROUP_ROOMS_PARTICIPANT_MINUTES( + "small-group-rooms-participant-minutes" + ), + SMS("sms"), + SMS_INBOUND("sms-inbound"), + SMS_INBOUND_LONGCODE("sms-inbound-longcode"), + SMS_INBOUND_SHORTCODE("sms-inbound-shortcode"), + SMS_INBOUND_TOLLFREE("sms-inbound-tollfree"), + SMS_MESSAGES_CARRIERFEES("sms-messages-carrierfees"), + SMS_MESSAGES_FEATURES("sms-messages-features"), + SMS_MESSAGES_FEATURES_ENGAGEMENT_SUITE( + "sms-messages-features-engagement-suite" + ), + SMS_MESSAGES_FEATURES_MESSAGE_REDACTION( + "sms-messages-features-message-redaction" + ), + SMS_MESSAGES_FEATURES_SENDERID("sms-messages-features-senderid"), + SMS_MPS("sms-mps"), + SMS_MPS_SHORTCODE("sms-mps-shortcode"), + SMS_MPS_TOLLFREE("sms-mps-tollfree"), + SMS_MPS_TOLLFREE_SETUP("sms-mps-tollfree-setup"), + SMS_NATIONAL_REGULATORY_PROTECTION( + "sms-national-regulatory-protection" + ), + SMS_OUTBOUND("sms-outbound"), + SMS_OUTBOUND_CONTENT_INSPECTION("sms-outbound-content-inspection"), + SMS_OUTBOUND_LONGCODE("sms-outbound-longcode"), + SMS_OUTBOUND_SHORTCODE("sms-outbound-shortcode"), + SMS_OUTBOUND_TOLLFREE("sms-outbound-tollfree"), + SMS_PUMPING_PROTECTION("sms-pumping-protection"), + SMS_PUMPING_RISK("sms-pumping-risk"), + SMSMESSAGES_BUCKET_ADJUSTMENTS("smsmessages-bucket-adjustments"), + SMSMESSAGES_OUTBOUND_DOMESTIC("smsmessages-outbound-domestic"), + SPEECH_RECOGNITION("speech-recognition"), + STUDIO_ENGAGEMENTS("studio-engagements"), + SYNC("sync"), + SYNC_ACTIONS("sync-actions"), + SYNC_ENDPOINT_HOURS("sync-endpoint-hours"), + SYNC_ENDPOINT_HOURS_ABOVE_DAILY_CAP( + "sync-endpoint-hours-above-daily-cap" + ), + TASKROUTER_TASKS("taskrouter-tasks"), + TOTALPRICE("totalprice"), + TRANSCRIPTIONS("transcriptions"), + TRUNKING_CPS("trunking-cps"), + TRUNKING_EMERGENCY_CALLS("trunking-emergency-calls"), + TRUNKING_ORIGINATION("trunking-origination"), + TRUNKING_ORIGINATION_LOCAL("trunking-origination-local"), + TRUNKING_ORIGINATION_MOBILE("trunking-origination-mobile"), + TRUNKING_ORIGINATION_TOLLFREE("trunking-origination-tollfree"), + TRUNKING_RECORDINGS("trunking-recordings"), + TRUNKING_SECURE("trunking-secure"), + TRUNKING_TERMINATION("trunking-termination"), + TTS_GOOGLE("tts-google"), + TURNMEGABYTES("turnmegabytes"), + TURNMEGABYTES_AUSTRALIA("turnmegabytes-australia"), + TURNMEGABYTES_BRASIL("turnmegabytes-brasil"), + TURNMEGABYTES_GERMANY("turnmegabytes-germany"), + TURNMEGABYTES_INDIA("turnmegabytes-india"), + TURNMEGABYTES_IRELAND("turnmegabytes-ireland"), + TURNMEGABYTES_JAPAN("turnmegabytes-japan"), + TURNMEGABYTES_SINGAPORE("turnmegabytes-singapore"), + TURNMEGABYTES_USEAST("turnmegabytes-useast"), + TURNMEGABYTES_USWEST("turnmegabytes-uswest"), + TWILIO_FOR_SALESFORCE("twilio-for-salesforce"), + TWILIO_FOR_SALESFORCE_LICENSES("twilio-for-salesforce-licenses"), + TWILIO_INTERCONNECT("twilio-interconnect"), + TWIML("twiml"), + USAGE_FLEX_VIDEO("usage-flex-video"), + USAGE_FUNCTIONS("usage-functions"), + USAGE_RCS_BASIC_MESSAGES_OUTBOUND("usage-rcs-basic-messages-outbound"), + USAGE_RCS_MESSAGES("usage-rcs-messages"), + USAGE_RCS_MESSAGES_INBOUND("usage-rcs-messages-inbound"), + USAGE_RCS_MESSAGING_CARRIER_FEES("usage-rcs-messaging-carrier-fees"), + USAGE_RCS_SINGLE_MESSAGES_OUTBOUND( + "usage-rcs-single-messages-outbound" + ), + VERIFY_PACKAGE_PLANS("verify-package-plans"), + VERIFY_PUSH("verify-push"), + VERIFY_SNA("verify-sna"), + VERIFY_TOTP("verify-totp"), + VERIFY_VOICE_SMS("verify-voice-sms"), + VERIFY_WHATSAPP_CONVERSATIONS_BUSINESS_INITIATED( + "verify-whatsapp-conversations-business-initiated" + ), + VIDEO_RECORDINGS("video-recordings"), + VIDEO_ROOMS_TURN_MEGABYTES("video-rooms-turn-megabytes"), + VIRTUAL_AGENT("virtual-agent"), + VOICE_INSIGHTS("voice-insights"), + VOICE_INSIGHTS_CLIENT_INSIGHTS_ON_DEMAND_MINUTE( + "voice-insights-client-insights-on-demand-minute" + ), + VOICE_INSIGHTS_PTSN_INSIGHTS_ON_DEMAND_MINUTE( + "voice-insights-ptsn-insights-on-demand-minute" + ), + VOICE_INSIGHTS_SIP_INTERFACE_INSIGHTS_ON_DEMAND_MINUTE( + "voice-insights-sip-interface-insights-on-demand-minute" + ), + VOICE_INSIGHTS_SIP_TRUNKING_INSIGHTS_ON_DEMAND_MINUTE( + "voice-insights-sip-trunking-insights-on-demand-minute" + ), + VOICE_INTELLIGENCE("voice-intelligence"), + VOICE_INTELLIGENCE_EIP_OPERATORS("voice-intelligence-eip-operators"), + VOICE_INTELLIGENCE_OPERATORS("voice-intelligence-operators"), + VOICE_INTELLIGENCE_TRANSCRIPTION("voice-intelligence-transcription"), + WDS("wds"), + WIRELESS("wireless"), + WIRELESS_DATA("wireless-data"), + WIRELESS_DATA_PAYG("wireless-data-payg"), + WIRELESS_DATA_PAYG_AFRICA("wireless-data-payg-africa"), + WIRELESS_DATA_PAYG_ASIA("wireless-data-payg-asia"), + WIRELESS_DATA_PAYG_CENTRALANDSOUTHAMERICA( + "wireless-data-payg-centralandsouthamerica" + ), + WIRELESS_DATA_PAYG_EUROPE("wireless-data-payg-europe"), + WIRELESS_DATA_PAYG_NORTHAMERICA("wireless-data-payg-northamerica"), + WIRELESS_DATA_PAYG_OCEANIA("wireless-data-payg-oceania"), + WIRELESS_DATA_QUOTA1("wireless-data-quota1"), + WIRELESS_DATA_QUOTA1_AFRICA("wireless-data-quota1-africa"), + WIRELESS_DATA_QUOTA1_ASIA("wireless-data-quota1-asia"), + WIRELESS_DATA_QUOTA1_CENTRALANDSOUTHAMERICA( + "wireless-data-quota1-centralandsouthamerica" + ), + WIRELESS_DATA_QUOTA1_EUROPE("wireless-data-quota1-europe"), + WIRELESS_DATA_QUOTA1_NORTHAMERICA("wireless-data-quota1-northamerica"), + WIRELESS_DATA_QUOTA1_OCEANIA("wireless-data-quota1-oceania"), + WIRELESS_DATA_QUOTA10("wireless-data-quota10"), + WIRELESS_DATA_QUOTA10_AFRICA("wireless-data-quota10-africa"), + WIRELESS_DATA_QUOTA10_ASIA("wireless-data-quota10-asia"), + WIRELESS_DATA_QUOTA10_CENTRALANDSOUTHAMERICA( + "wireless-data-quota10-centralandsouthamerica" + ), + WIRELESS_DATA_QUOTA10_EUROPE("wireless-data-quota10-europe"), + WIRELESS_DATA_QUOTA10_NORTHAMERICA( + "wireless-data-quota10-northamerica" + ), + WIRELESS_DATA_QUOTA10_OCEANIA("wireless-data-quota10-oceania"), + WIRELESS_DATA_QUOTA50("wireless-data-quota50"), + WIRELESS_DATA_QUOTA50_AFRICA("wireless-data-quota50-africa"), + WIRELESS_DATA_QUOTA50_ASIA("wireless-data-quota50-asia"), + WIRELESS_DATA_QUOTA50_CENTRALANDSOUTHAMERICA( + "wireless-data-quota50-centralandsouthamerica" + ), + WIRELESS_DATA_QUOTA50_EUROPE("wireless-data-quota50-europe"), + WIRELESS_DATA_QUOTA50_NORTHAMERICA( + "wireless-data-quota50-northamerica" + ), + WIRELESS_DATA_QUOTA50_OCEANIA("wireless-data-quota50-oceania"), + WIRELESS_DATA_QUOTACUSTOM("wireless-data-quotacustom"), + WIRELESS_DATA_QUOTACUSTOM_AFRICA("wireless-data-quotacustom-africa"), + WIRELESS_DATA_QUOTACUSTOM_ASIA("wireless-data-quotacustom-asia"), + WIRELESS_DATA_QUOTACUSTOM_CENTRALANDSOUTHAMERICA( + "wireless-data-quotacustom-centralandsouthamerica" + ), + WIRELESS_DATA_QUOTACUSTOM_EUROPE("wireless-data-quotacustom-europe"), + WIRELESS_DATA_QUOTACUSTOM_NORTHAMERICA( + "wireless-data-quotacustom-northamerica" + ), + WIRELESS_DATA_QUOTACUSTOM_OCEANIA("wireless-data-quotacustom-oceania"), + WIRELESS_MRC_PAYG("wireless-mrc-payg"), + WIRELESS_MRC_QUOTA1("wireless-mrc-quota1"), + WIRELESS_MRC_QUOTA10("wireless-mrc-quota10"), + WIRELESS_MRC_QUOTA50("wireless-mrc-quota50"), + WIRELESS_MRC_QUOTACUSTOM("wireless-mrc-quotacustom"), + WIRELESS_ORDERS("wireless-orders"), + WIRELESS_ORDERS_ARTWORK("wireless-orders-artwork"), + WIRELESS_ORDERS_BULK("wireless-orders-bulk"), + WIRELESS_ORDERS_ESIM("wireless-orders-esim"), + WIRELESS_ORDERS_STARTER("wireless-orders-starter"), + WIRELESS_QUOTAS("wireless-quotas"), + WIRELESS_SMS_AFRICA("wireless-sms-africa"), + WIRELESS_SMS_ASIA("wireless-sms-asia"), + WIRELESS_SMS_CENTRALANDSOUTHAMERICA( + "wireless-sms-centralandsouthamerica" + ), + WIRELESS_SMS_EUROPE("wireless-sms-europe"), + WIRELESS_SMS_NORTHAMERICA("wireless-sms-northamerica"), + WIRELESS_SMS_OCEANIA("wireless-sms-oceania"), + WIRELESS_SUPER_SIM("wireless-super-sim"), + WIRELESS_SUPER_SIM_DATA("wireless-super-sim-data"), + WIRELESS_SUPER_SIM_DATA_NORTH_AMERICA_USA( + "wireless-super-sim-data-north-america-usa" + ), + WIRELESS_SUPER_SIM_DATA_PAYG("wireless-super-sim-data-payg"), + WIRELESS_SUPER_SIM_DATA_PAYG_EUROPE( + "wireless-super-sim-data-payg-europe" + ), + WIRELESS_SUPER_SIM_DATA_PAYG_NORTH_AMERICA( + "wireless-super-sim-data-payg-north-america" + ), + WIRELESS_SUPER_SIM_HARDWARE("wireless-super-sim-hardware"), + WIRELESS_SUPER_SIM_HARDWARE_BULK("wireless-super-sim-hardware-bulk"), + WIRELESS_SUPER_SIM_SMSCOMMANDS("wireless-super-sim-smscommands"), + WIRELESS_SUPER_SIM_SMSCOMMANDS_AFRICA( + "wireless-super-sim-smscommands-africa" + ), + WIRELESS_SUPER_SIM_SMSCOMMANDS_ASIA( + "wireless-super-sim-smscommands-asia" + ), + WIRELESS_SUPER_SIM_SMSCOMMANDS_CENT_AND_SOUTH_AMERICA( + "wireless-super-sim-smscommands-cent-and-south-america" + ), + WIRELESS_SUPER_SIM_SMSCOMMANDS_EUROPE( + "wireless-super-sim-smscommands-europe" + ), + WIRELESS_SUPER_SIM_SMSCOMMANDS_NORTH_AMERICA( + "wireless-super-sim-smscommands-north-america" + ), + WIRELESS_SUPER_SIM_SMSCOMMANDS_OCEANIA( + "wireless-super-sim-smscommands-oceania" + ), + WIRELESS_SUPER_SIM_SUBSCRIPTION("wireless-super-sim-subscription"), + WIRELESS_SUPER_SIM_SUBSCRIPTION_PAYG( + "wireless-super-sim-subscription-payg" + ), + WIRELESS_USAGE("wireless-usage"), + WIRELESS_USAGE_COMMANDS("wireless-usage-commands"), + WIRELESS_USAGE_COMMANDS_AFRICA("wireless-usage-commands-africa"), + WIRELESS_USAGE_COMMANDS_ASIA("wireless-usage-commands-asia"), + WIRELESS_USAGE_COMMANDS_CENTRALANDSOUTHAMERICA( + "wireless-usage-commands-centralandsouthamerica" + ), + WIRELESS_USAGE_COMMANDS_EUROPE("wireless-usage-commands-europe"), + WIRELESS_USAGE_COMMANDS_HOME("wireless-usage-commands-home"), + WIRELESS_USAGE_COMMANDS_NORTHAMERICA( + "wireless-usage-commands-northamerica" + ), + WIRELESS_USAGE_COMMANDS_OCEANIA("wireless-usage-commands-oceania"), + WIRELESS_USAGE_COMMANDS_ROAMING("wireless-usage-commands-roaming"), + WIRELESS_USAGE_DATA("wireless-usage-data"), + WIRELESS_USAGE_DATA_AFRICA("wireless-usage-data-africa"), + WIRELESS_USAGE_DATA_ASIA("wireless-usage-data-asia"), + WIRELESS_USAGE_DATA_CENTRALANDSOUTHAMERICA( + "wireless-usage-data-centralandsouthamerica" + ), + WIRELESS_USAGE_DATA_CUSTOM_ADDITIONALMB( + "wireless-usage-data-custom-additionalmb" + ), + WIRELESS_USAGE_DATA_CUSTOM_FIRST5MB( + "wireless-usage-data-custom-first5mb" + ), + WIRELESS_USAGE_DATA_DOMESTIC_ROAMING( + "wireless-usage-data-domestic-roaming" + ), + WIRELESS_USAGE_DATA_EUROPE("wireless-usage-data-europe"), + WIRELESS_USAGE_DATA_INDIVIDUAL_ADDITIONALGB( + "wireless-usage-data-individual-additionalgb" + ), + WIRELESS_USAGE_DATA_INDIVIDUAL_FIRSTGB( + "wireless-usage-data-individual-firstgb" + ), + WIRELESS_USAGE_DATA_INTERNATIONAL_ROAMING_CANADA( + "wireless-usage-data-international-roaming-canada" + ), + WIRELESS_USAGE_DATA_INTERNATIONAL_ROAMING_INDIA( + "wireless-usage-data-international-roaming-india" + ), + WIRELESS_USAGE_DATA_INTERNATIONAL_ROAMING_MEXICO( + "wireless-usage-data-international-roaming-mexico" + ), + WIRELESS_USAGE_DATA_NORTHAMERICA("wireless-usage-data-northamerica"), + WIRELESS_USAGE_DATA_OCEANIA("wireless-usage-data-oceania"), + WIRELESS_USAGE_DATA_POOLED("wireless-usage-data-pooled"), + WIRELESS_USAGE_DATA_POOLED_DOWNLINK( + "wireless-usage-data-pooled-downlink" + ), + WIRELESS_USAGE_DATA_POOLED_UPLINK("wireless-usage-data-pooled-uplink"), + WIRELESS_USAGE_MRC("wireless-usage-mrc"), + WIRELESS_USAGE_MRC_CUSTOM("wireless-usage-mrc-custom"), + WIRELESS_USAGE_MRC_INDIVIDUAL("wireless-usage-mrc-individual"), + WIRELESS_USAGE_MRC_POOLED("wireless-usage-mrc-pooled"), + WIRELESS_USAGE_MRC_SUSPENDED("wireless-usage-mrc-suspended"), + WIRELESS_USAGE_SMS("wireless-usage-sms"), + WIRELESS_USAGE_VOICE("wireless-usage-voice"), + A2P_FAST_TRACK_ONBOARDING("a2p-fast-track-onboarding"), + ADVISORY_SERVICES("advisory-services"), + ADVISORY_SERVICES_BILLED("advisory-services-billed"), + ADVISORY_SERVICES_CALL_TRACKING("advisory-services-call-tracking"), + ADVISORY_SERVICES_DATA_SERVICES("advisory-services-data-services"), + ADVISORY_SERVICES_EXPENSES("advisory-services-expenses"), + ADVISORY_SERVICES_SIP_TRUNKING("advisory-services-sip-trunking"), + ASSETS_REQUESTS("assets-requests"), + AUDIENCE_MINUTES_VIDEO("audience-minutes-video"), + AUTHY_BUCKET_ADJUSTMENT("authy-bucket-adjustment"), + AUTHY_SOFTWARE("authy-software"), + CALLERIDLOOKUPS_API("calleridlookups-api"), + CALLERIDLOOKUPS_PROGRAMMABLEVOICE("calleridlookups-programmablevoice"), + CALLERIDLOOKUPS_TRUNKING("calleridlookups-trunking"), + CALLS_TRUNKING_INBOUND_TOLLFREE_LOCAL( + "calls-trunking-inbound-tollfree-local" + ), + CALLS_TRUNKING_INBOUND_TOLLFREE_MOBILE( + "calls-trunking-inbound-tollfree-mobile" + ), + CHANNELS_WHATSAPP_CONVERSATION_FREE_1( + "channels-whatsapp-conversation-free-1" + ), + CONFERENCE("conference"), + CONVERSATIONAL_INSIGHTS("conversational-insights"), + CONVERSATIONAL_INSIGHTS_MESSAGES("conversational-insights-messages"), + CONVERSATIONAL_INSIGHTS_VOICE_MINUTES( + "conversational-insights-voice-minutes" + ), + DEMO("demo"), + DEMO_UC_SCRIPT_TEST("demo-uc-script-test"), + ELASTIC_SIP_TRUNKING("elastic-sip-trunking"), + ELASTIC_SIP_TRUNKING_CALL_TRANSFERS( + "elastic-sip-trunking-call-transfers" + ), + ENTERPRISE_HIPPA("enterprise-hippa"), + FLEX_NAMED_USERS("flex-named-users"), + FLEX_SPINSCI("flex-spinsci"), + FLEX_USERS_1("flex-users-1"), + FLEX_WFO_PREMIUM_SPEECH_ANALYTICS("flex-wfo-premium-speech-analytics"), + FLEX_XCELERATE("flex-xcelerate"), + FUNCTIONS_ROLLUP("functions-rollup"), + IMP_V1_USAGE("imp-v1-usage"), + IP_MESSAGING_ADDONS("ip-messaging-addons"), + IVR("ivr"), + IVR_CONVERSATIONAL("ivr-conversational"), + IVR_DTMF("ivr-dtmf"), + IVR_VIRTUALAGENT("ivr-virtualagent"), + LIVE("live"), + LIVE_MEDIA_RECORDING_MINUTES("live-media-recording-minutes"), + LONGCODE_MPS("longcode-mps"), + MARKETPLACE_ANALYTICS_ADDONS("marketplace-analytics-addons"), + MARKETPLACE_ISV_ADDONS("marketplace-isv-addons"), + MARKETPLACE_MESSAGING_ADDONS("marketplace-messaging-addons"), + MARKETPLACE_PHONENUMBERS_ADDONS("marketplace-phonenumbers-addons"), + MARKETPLACE_RECORDING_ADDONS("marketplace-recording-addons"), + MARKETPLACE_VIRTUALAGENT_ADDONS("marketplace-virtualagent-addons"), + MARKETPLAY_PAY_ADDONS_SHUTTLE_PAY_CONNECTOR_1( + "marketplay-pay-addons-shuttle-pay-connector-1" + ), + MARKETPLAY_PAY_ADDONS_STRIPE_PAY_CONNECTOR( + "marketplay-pay-addons-stripe-pay-connector" + ), + MMS_INBOUND_LONGCODE_CANADA("mms-inbound-longcode-canada"), + MMS_INBOUND_LONGCODE_UNITEDSTATES("mms-inbound-longcode-unitedstates"), + MMS_OUTBOUND_LONGCODE_CANADA("mms-outbound-longcode-canada"), + MMS_OUTBOUND_LONGCODE_UNITEDSTATES( + "mms-outbound-longcode-unitedstates" + ), + MMS_OUTBOUND_TOLL_FREE("mms-outbound-toll-free"), + NOTIFY_CHATAPPSANDOTHERCHANNELS("notify-chatappsandotherchannels"), + NOTIFY_NOTIFYSERVICES("notify-notifyservices"), + NOTIFY_PUSHNOTIFICATIONS("notify-pushnotifications"), + PAYMENT_GATEWAY_CONNECTORS("payment-gateway-connectors"), + PAYMENT_SOLUTIONS("payment-solutions"), + PCHAT_BUCKET_ADJUSTMENT("pchat-bucket-adjustment"), + PHONENUMBERS_NUMBERS("phonenumbers-numbers"), + PROG_VOICE_CLIENT_ANDROID("prog-voice-client-android"), + PROG_VOICE_CLIENT_ANDROID_INBOUND("prog-voice-client-android-inbound"), + PROG_VOICE_CLIENT_ANDROID_OUTBOUND( + "prog-voice-client-android-outbound" + ), + PROG_VOICE_CLIENT_IOS("prog-voice-client-ios"), + PROG_VOICE_CLIENT_IOS_INBOUND("prog-voice-client-ios-inbound"), + PROG_VOICE_CLIENT_IOS_OUTBOUND("prog-voice-client-ios-outbound"), + PROG_VOICE_CLIENT_SDK("prog-voice-client-sdk"), + PROG_VOICE_CLIENT_WEB("prog-voice-client-web"), + PROG_VOICE_CLIENT_WEB_INBOUND("prog-voice-client-web-inbound"), + PROG_VOICE_CLIENT_WEB_OUTBOUND("prog-voice-client-web-outbound"), + PROGRAMMABLEVOICECONNECTIVITY_MEDIA_STREAMS( + "programmablevoiceconnectivity-media-streams" + ), + PSTNCONNECTIVITY_BYOC("pstnconnectivity-byoc"), + PSTNCONNECTIVITY_EMERGENCY("pstnconnectivity-emergency"), + PSTNCONNECTIVITY_MINUTES("pstnconnectivity-minutes"), + PSTNCONNECTIVITY_MINUTES_1("pstnconnectivity-minutes-1"), + PSTNCONNECTIVITY_MINUTESINBOUNDLOCAL( + "pstnconnectivity-minutesinboundlocal" + ), + PSTNCONNECTIVITY_MINUTESINBOUNDMOBILE( + "pstnconnectivity-minutesinboundmobile" + ), + PSTNCONNECTIVITY_MINUTESINBOUNDTOLLFREE( + "pstnconnectivity-minutesinboundtollfree" + ), + PSTNCONNECTIVITY_MINUTESINBOUNDTOLLFREELOCAL( + "pstnconnectivity-minutesinboundtollfreelocal" + ), + PSTNCONNECTIVITY_MINUTESINBOUNDTOLLFREEMOBILE( + "pstnconnectivity-minutesinboundtollfreemobile" + ), + PV_ROOM_HOURS("pv-room-hours"), + PV_ROOM_SIMULTANEOUS_PARTICIPANT_CONNECTIONS( + "pv-room-simultaneous-participant-connections" + ), + PVIDEO_ROOM_HOURS_AU1("pvideo-room-hours-au1"), + PVIDEO_ROOM_HOURS_BR1("pvideo-room-hours-br1"), + PVIDEO_ROOM_HOURS_IE1("pvideo-room-hours-ie1"), + PVIDEO_ROOM_HOURS_JP1("pvideo-room-hours-jp1"), + PVIDEO_ROOM_HOURS_SG1("pvideo-room-hours-sg1"), + PVIDEO_ROOM_HOURS_US1("pvideo-room-hours-us1"), + PVIDEO_ROOM_HOURS_US2("pvideo-room-hours-us2"), + RECORDINGS_ENCRYPTED("recordings-encrypted"), + SHORT_CODE_SETUP_FEES("short-code-setup-fees"), + SHORTCODES_MESSAGES_INBOUND("shortcodes-messages-inbound"), + SHORTCODES_MESSAGES_OUTBOUND("shortcodes-messages-outbound"), + SMS_MESSAGES_REGISTRATIONFEES("sms-messages-registrationfees"), + SMS_MMS_PENALTY_FEES("sms-mms-penalty-fees"), + SMS_MMS_PENALTY_FEES_1("sms-mms-penalty-fees-1"), + SMS_PUMPING_PROTECTION_NON_USCA("sms-pumping-protection-non-usca"), + SMS_PUMPING_PROTECTION_USCA("sms-pumping-protection-usca"), + STUDIO("studio"), + STUDIO_MONTHLY_FEES("studio-monthly-fees"), + SUPERSIM("supersim"), + TASK_ROUTER("task-router"), + TASK_ROUTER_WORKERS("task-router-workers"), + TEST_QUOTA_BUCKETS("test-quota-buckets"), + TEST_UC_SCRIPT_1("test-uc-script-1"), + TEST_UC_SCRIPT_DEMO_2("test-uc-script-demo-2"), + TEXT_TO_SPEECH("text-to-speech"), + TME("tme"), + TTS_BASIC("tts-basic"), + TWILIO_EDITIONS("twilio-editions"), + TWILIO_INTERCONNECT_CALIFORNIA("twilio-interconnect-california"), + TWILIO_INTERCONNECT_CALIFORNIA_MONTHLY( + "twilio-interconnect-california-monthly" + ), + TWILIO_INTERCONNECT_CALIFORNIA_SETUP( + "twilio-interconnect-california-setup" + ), + TWILIO_INTERCONNECT_FRANKFURT("twilio-interconnect-frankfurt"), + TWILIO_INTERCONNECT_FRANKFURT_MO("twilio-interconnect-frankfurt-mo"), + TWILIO_INTERCONNECT_FRANKFURT_SETUP( + "twilio-interconnect-frankfurt-setup" + ), + TWILIO_INTERCONNECT_LONDON("twilio-interconnect-london"), + TWILIO_INTERCONNECT_LONDON_MO("twilio-interconnect-london-mo"), + TWILIO_INTERCONNECT_LONDON_SETUP("twilio-interconnect-london-setup"), + TWILIO_INTERCONNECT_SAO_PAULO("twilio-interconnect-sao-paulo"), + TWILIO_INTERCONNECT_SAO_PAULO_MONTHLY( + "twilio-interconnect-sao-paulo-monthly" + ), + TWILIO_INTERCONNECT_SAO_PAULO_SETUP( + "twilio-interconnect-sao-paulo-setup" + ), + TWILIO_INTERCONNECT_SINGAPORE("twilio-interconnect-singapore"), + TWILIO_INTERCONNECT_SINGAPORE_MO("twilio-interconnect-singapore-mo"), + TWILIO_INTERCONNECT_SINGAPORE_SETUP( + "twilio-interconnect-singapore-setup" + ), + TWILIO_INTERCONNECT_SYDNEY("twilio-interconnect-sydney"), + TWILIO_INTERCONNECT_SYDNEY_MO("twilio-interconnect-sydney-mo"), + TWILIO_INTERCONNECT_SYDNEY_SETUP("twilio-interconnect-sydney-setup"), + TWILIO_INTERCONNECT_TOKYO("twilio-interconnect-tokyo"), + TWILIO_INTERCONNECT_TOKYO_MO("twilio-interconnect-tokyo-mo"), + TWILIO_INTERCONNECT_TOKYO_SETUP("twilio-interconnect-tokyo-setup"), + TWILIO_INTERCONNECT_VA("twilio-interconnect-va"), + TWILIO_INTERCONNECT_VA_MO("twilio-interconnect-va-mo"), + TWILIO_INTERCONNECT_VA_SETUP("twilio-interconnect-va-setup"), + TWIML_VERBS("twiml-verbs"), + TWIML_VERBS_SAY("twiml-verbs-say"), + USAGE_PROGRAMMABLE_MESSAGING_ENGAGEMENT_SUITE( + "usage-programmable-messaging-engagement-suite" + ), + USAGE_PROGRAMMABLE_MESSAGING_FEES_SERVICES( + "usage-programmable-messaging-fees-services" + ), + VERIFY_OUTBOUND_EMAIL("verify-outbound-email"), + VERIFY_PACKAGED_PLANS("verify-packaged-plans"), + VERIFY_SILENT_NETWORK_AUTH("verify-silent-network-auth"), + VERIFY_VOICE_AND_SMS("verify-voice-and-sms"), + VOICE_INSIGHTS_CLIENT_INSIGHTS_MONTHY_COMMIT( + "voice-insights-client-insights-monthy-commit" + ), + WIRELESS_DATA_PAYG_ASIA_AFG("wireless-data-payg-asia-afg"), + WIRELESS_MULTI_IMSI_SIM_COMMANDS("wireless-multi-imsi-sim-commands"), + WIRELESS_MULTI_IMSI_SIM_COMMANDS_USA( + "wireless-multi-imsi-sim-commands-usa" + ), + WIRELESS_MULTI_IMSI_SIM_DATA("wireless-multi-imsi-sim-data"), + WIRELESS_MULTI_IMSI_SIM_DATA_EU28("wireless-multi-imsi-sim-data-eu28"), + WIRELESS_MULTI_IMSI_SIM_DATA_USA("wireless-multi-imsi-sim-data-usa"), + WIRELESS_MULTI_IMSI_SIM_MONTHLY_FEES( + "wireless-multi-imsi-sim-monthly-fees" + ), + WIRELESS_MULTI_IMSI_SIM_USAGE("wireless-multi-imsi-sim-usage"), + WIRELESS_SUPER_SIM_DATA_NORTH_AMERICA( + "wireless-super-sim-data-north-america" + ), + WIRELESS_SUPER_SIM_USAGE("wireless-super-sim-usage"); + + private final String value; + + private Category(final String value) { + this.value = value; + } + + public String toString() { + return value; + } + + @JsonCreator + public static Category forValue(final String value) { + return Promoter.enumFromString(value, Category.values()); + } + } + /** * Converts a JSON String into a AllTime object using the provided ObjectMapper. * @@ -116,7 +1042,7 @@ public static String toJson(Object object, ObjectMapper mapper) { private final String asOf; @Getter - private final String category; + private final AllTime.Category category; @Getter private final String count; @@ -156,7 +1082,7 @@ private AllTime( @JsonProperty("account_sid") final String accountSid, @JsonProperty("api_version") final String apiVersion, @JsonProperty("as_of") final String asOf, - @JsonProperty("category") final String category, + @JsonProperty("category") final AllTime.Category category, @JsonProperty("count") final String count, @JsonProperty("count_unit") final String countUnit, @JsonProperty("description") final String description, diff --git a/src/main/java/com/twilio/rest/api/v2010/account/usage/record/AllTimeReader.java b/src/main/java/com/twilio/rest/api/v2010/account/usage/record/AllTimeReader.java index 4b8d75f1d3..c9691cea1e 100644 --- a/src/main/java/com/twilio/rest/api/v2010/account/usage/record/AllTimeReader.java +++ b/src/main/java/com/twilio/rest/api/v2010/account/usage/record/AllTimeReader.java @@ -33,7 +33,7 @@ public class AllTimeReader extends Reader { private String pathAccountSid; - private String category; + private AllTime.Category category; private LocalDate startDate; private LocalDate endDate; private Boolean includeSubaccounts; @@ -45,7 +45,7 @@ public AllTimeReader(final String pathAccountSid) { this.pathAccountSid = pathAccountSid; } - public AllTimeReader setCategory(final String category) { + public AllTimeReader setCategory(final AllTime.Category category) { this.category = category; return this; } diff --git a/src/main/java/com/twilio/rest/api/v2010/account/usage/record/Daily.java b/src/main/java/com/twilio/rest/api/v2010/account/usage/record/Daily.java index d14ddeaec8..ec1a979a1c 100644 --- a/src/main/java/com/twilio/rest/api/v2010/account/usage/record/Daily.java +++ b/src/main/java/com/twilio/rest/api/v2010/account/usage/record/Daily.java @@ -25,6 +25,7 @@ import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.twilio.base.Resource; import com.twilio.base.Resource; +import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; import com.twilio.type.*; @@ -51,6 +52,931 @@ public static DailyReader reader(final String pathAccountSid) { return new DailyReader(pathAccountSid); } + public enum Category { + A2P_10DLC_REGISTRATIONFEES_BRANDREGISTRATION( + "a2p-10dlc-registrationfees-brandregistration" + ), + A2P_10DLC_REGISTRATIONFEES_BV("a2p-10dlc-registrationfees-bv"), + A2P_10DLC_REGISTRATIONFEES_CAMPAIGNCHARGES( + "a2p-10dlc-registrationfees-campaigncharges" + ), + A2P_10DLC_REGISTRATIONFEES_CAMPAIGNREGISTRATION( + "a2p-10dlc-registrationfees-campaignregistration" + ), + A2P_10DLC_REGISTRATIONFEES_CAMPAIGNVETTING( + "a2p-10dlc-registrationfees-campaignvetting" + ), + A2P_10DLC_REGISTRATIONFEES_MONTHLY( + "a2p-10dlc-registrationfees-monthly" + ), + A2P_10DLC_REGISTRATIONFEES_ONETIME( + "a2p-10dlc-registrationfees-onetime" + ), + A2P_REGISTRATION_FEES("a2p-registration-fees"), + ACCOUNT_SECURITY("account-security"), + AGENT_CONFERENCE("agent-conference"), + AGENT_COPILOT("agent-copilot"), + AGENT_COPILOT_MESSAGES("agent-copilot-messages"), + AGENT_COPILOT_PARTICIPANT_MINUTES("agent-copilot-participant-minutes"), + AI_ASSISTANTS("ai-assistants"), + AI_ASSISTANTS_VOICE("ai-assistants-voice"), + AMAZON_POLLY("amazon-polly"), + ANSWERING_MACHINE_DETECTION("answering-machine-detection"), + ASSETS("assets"), + AUDIENCE_MINUTES("audience-minutes"), + AUDIENCE_MINUTES_AUDIO("audience-minutes-audio"), + AUTHY_AUTHENTICATIONS("authy-authentications"), + AUTHY_CALLS_OUTBOUND("authy-calls-outbound"), + AUTHY_EMAIL_AUTHENTICATIONS("authy-email-authentications"), + AUTHY_MONTHLY_FEES("authy-monthly-fees"), + AUTHY_OUTBOUND_EMAIL("authy-outbound-email"), + AUTHY_PHONE_INTELLIGENCE("authy-phone-intelligence"), + AUTHY_PHONE_VERIFICATIONS("authy-phone-verifications"), + AUTHY_SMS_OUTBOUND("authy-sms-outbound"), + AUTHY_VERIFY_EMAIL_VERIFICATIONS("authy-verify-email-verifications"), + AUTHY_VERIFY_OUTBOUND_EMAIL("authy-verify-outbound-email"), + AUTOPILOT("autopilot"), + AUTOPILOT_HOME_ASSISTANTS("autopilot-home-assistants"), + AUTOPILOT_MESSAGING("autopilot-messaging"), + AUTOPILOT_OTHER("autopilot-other"), + AUTOPILOT_VOICE("autopilot-voice"), + BASIC_PEER_TO_PEER_ROOMS_PARTICIPANT_MINUTES( + "basic-peer-to-peer-rooms-participant-minutes" + ), + BRANDED_CALLING("branded-calling"), + BUNDLE_SMS_BUCKET("bundle-sms-bucket"), + BUNDLE_SUBSCRIPTION_FEES("bundle-subscription-fees"), + CALL_FORWARDING_LOOKUPS("call-forwarding-lookups"), + CALL_PROGESS_EVENTS("call-progess-events"), + CALLERIDLOOKUPS("calleridlookups"), + CALLS("calls"), + CALLS_CLIENT("calls-client"), + CALLS_EMERGENCY("calls-emergency"), + CALLS_GLOBALCONFERENCE("calls-globalconference"), + CALLS_INBOUND("calls-inbound"), + CALLS_INBOUND_LOCAL("calls-inbound-local"), + CALLS_INBOUND_MOBILE("calls-inbound-mobile"), + CALLS_INBOUND_TOLLFREE("calls-inbound-tollfree"), + CALLS_INBOUND_TOLLFREE_LOCAL("calls-inbound-tollfree-local"), + CALLS_INBOUND_TOLLFREE_MOBILE("calls-inbound-tollfree-mobile"), + CALLS_MEDIA_STREAM_MINUTES("calls-media-stream-minutes"), + CALLS_OUTBOUND("calls-outbound"), + CALLS_PAY_VERB_TRANSACTIONS("calls-pay-verb-transactions"), + CALLS_RECORDINGS("calls-recordings"), + CALLS_SIP("calls-sip"), + CALLS_SIP_INBOUND("calls-sip-inbound"), + CALLS_SIP_OUTBOUND("calls-sip-outbound"), + CALLS_TEXT_TO_SPEECH("calls-text-to-speech"), + CALLS_TRANSFERS("calls-transfers"), + CARRIER_LOOKUPS("carrier-lookups"), + CATEGORY("category"), + CHANNELS("channels"), + CHANNELS_MESSAGING("channels-messaging"), + CHANNELS_MESSAGING_INBOUND("channels-messaging-inbound"), + CHANNELS_MESSAGING_OUTBOUND("channels-messaging-outbound"), + CHANNELS_WHATSAPP("channels-whatsapp"), + CHANNELS_WHATSAPP_CONVERSATION_AUTHENTICATION( + "channels-whatsapp-conversation-authentication" + ), + CHANNELS_WHATSAPP_CONVERSATION_FREE( + "channels-whatsapp-conversation-free" + ), + CHANNELS_WHATSAPP_CONVERSATION_MARKETING( + "channels-whatsapp-conversation-marketing" + ), + CHANNELS_WHATSAPP_CONVERSATION_SERVICE( + "channels-whatsapp-conversation-service" + ), + CHANNELS_WHATSAPP_CONVERSATION_UTILITY( + "channels-whatsapp-conversation-utility" + ), + CHANNELS_WHATSAPP_INBOUND("channels-whatsapp-inbound"), + CHANNELS_WHATSAPP_OUTBOUND("channels-whatsapp-outbound"), + CHAT_VIRTUAL_AGENT("chat-virtual-agent"), + CONVERSATION_RELAY("conversation-relay"), + CONVERSATIONS("conversations"), + CONVERSATIONS_API_REQUESTS("conversations-api-requests"), + CONVERSATIONS_CONVERSATION_EVENTS("conversations-conversation-events"), + CONVERSATIONS_ENDPOINT_CONNECTIVITY( + "conversations-endpoint-connectivity" + ), + CONVERSATIONS_EVENTS("conversations-events"), + CONVERSATIONS_PARTICIPANT_EVENTS("conversations-participant-events"), + CONVERSATIONS_PARTICIPANTS("conversations-participants"), + CPS("cps"), + CREDIT_TRANSFER("credit-transfer"), + EMAIL("email"), + EMERGING_TECH("emerging-tech"), + ENGAGEMENT_SUITE_PACKAGED_PLANS("engagement-suite-packaged-plans"), + ENHANCED_LINE_TYPE_LOOKUPS("enhanced-line-type-lookups"), + ENTERPRISE("enterprise"), + EVENTS("events"), + EXPERIMENT_FRANCE_SMS("experiment-france-sms"), + EXPERIMENT_INDIA_SMS("experiment-india-sms"), + EXPERIMENT_UK_SMS("experiment-uk-sms"), + FAILED_MESSAGE_PROCESSING_FEE("failed-message-processing-fee"), + FLEX("flex"), + FLEX_ACTIVE_USER_HOURS("flex-active-user-hours"), + FLEX_CONCURRENT_USERS("flex-concurrent-users"), + FLEX_CONVERSATIONAL_INSIGHTS("flex-conversational-insights"), + FLEX_CONVERSATIONAL_INSIGHTS_MESSAGES( + "flex-conversational-insights-messages" + ), + FLEX_CONVERSATIONAL_INSIGHTS_VOICE_MINUTES( + "flex-conversational-insights-voice-minutes" + ), + FLEX_EMAIL_USAGE("flex-email-usage"), + FLEX_MESSAGING_USAGE("flex-messaging-usage"), + FLEX_PARTNER_SPINSCI("flex-partner-spinsci"), + FLEX_PARTNER_XCELERATE("flex-partner-xcelerate"), + FLEX_RESELLER_ECOSYSTEM("flex-reseller-ecosystem"), + FLEX_UNIQUE_USER("flex-unique-user"), + FLEX_USAGE("flex-usage"), + FLEX_USERS("flex-users"), + FLEX_VOICE_MINUTE("flex-voice-minute"), + FLEX_YTICA("flex-ytica"), + FRAUD_LOOKUPS("fraud-lookups"), + FRONTLINE("frontline"), + FRONTLINE_USERS("frontline-users"), + FUNCTIONS("functions"), + GENERIC_PAY_TRANSACTIONS("generic-pay-transactions"), + GROUP_ROOMS("group-rooms"), + GROUP_ROOMS_DATA_TRACK("group-rooms-data-track"), + GROUP_ROOMS_ENCRYPTED_MEDIA_RECORDED( + "group-rooms-encrypted-media-recorded" + ), + GROUP_ROOMS_MEDIA_DOWNLOADED("group-rooms-media-downloaded"), + GROUP_ROOMS_MEDIA_RECORDED("group-rooms-media-recorded"), + GROUP_ROOMS_MEDIA_ROUTED("group-rooms-media-routed"), + GROUP_ROOMS_MEDIA_STORED("group-rooms-media-stored"), + GROUP_ROOMS_PARTICIPANT_MINUTES("group-rooms-participant-minutes"), + GROUP_ROOMS_RECORDED_MINUTES("group-rooms-recorded-minutes"), + IP_MESSAGING("ip-messaging"), + IP_MESSAGING_COMMANDS("ip-messaging-commands"), + IP_MESSAGING_DATA_STORAGE("ip-messaging-data-storage"), + IP_MESSAGING_DATA_TRANSFER("ip-messaging-data-transfer"), + IP_MESSAGING_ENDPOINT_CONNECTIVITY( + "ip-messaging-endpoint-connectivity" + ), + IVR_VIRTUAL_AGENT_CUSTOM_VOICES("ivr-virtual-agent-custom-voices"), + IVR_VIRTUAL_AGENT_GENAI("ivr-virtual-agent-genai"), + LINE_STATUS_LOOKUPS("line-status-lookups"), + LIVE_ACTIVITY_LOOKUPS("live-activity-lookups"), + LOOKUP_BUCKET_ADJUSTMENT("lookup-bucket-adjustment"), + LOOKUP_IDENTITY_MATCH("lookup-identity-match"), + LOOKUPS("lookups"), + MARKETPLACE("marketplace"), + MARKETPLACE_ALGORITHMIA_NAMED_ENTITY_RECOGNITION( + "marketplace-algorithmia-named-entity-recognition" + ), + MARKETPLACE_CADENCE_TRANSCRIPTION("marketplace-cadence-transcription"), + MARKETPLACE_CADENCE_TRANSLATION("marketplace-cadence-translation"), + MARKETPLACE_CAPIO_SPEECH_TO_TEXT("marketplace-capio-speech-to-text"), + MARKETPLACE_CONVRIZA_ABABA("marketplace-convriza-ababa"), + MARKETPLACE_DEEPGRAM_PHRASE_DETECTOR( + "marketplace-deepgram-phrase-detector" + ), + MARKETPLACE_DEEPGRAM_TRANSCRIPTION( + "marketplace-deepgram-transcription" + ), + MARKETPLACE_DEEPGRAM_TRANSCRIPTION_BASE( + "marketplace-deepgram-transcription-base" + ), + MARKETPLACE_DEEPGRAM_TRANSSCRIPTION_ENHANCED( + "marketplace-deepgram-transscription-enhanced" + ), + MARKETPLACE_DIGITAL_SEGMENT_BUSINESS_INFO( + "marketplace-digital-segment-business-info" + ), + MARKETPLACE_FACEBOOK_OFFLINE_CONVERSIONS( + "marketplace-facebook-offline-conversions" + ), + MARKETPLACE_GOOGLE_SPEECH_TO_TEXT("marketplace-google-speech-to-text"), + MARKETPLACE_IBM_WATSON_MESSAGE_INSIGHTS( + "marketplace-ibm-watson-message-insights" + ), + MARKETPLACE_IBM_WATSON_MESSAGE_SENTIMENT( + "marketplace-ibm-watson-message-sentiment" + ), + MARKETPLACE_IBM_WATSON_RECORDING_ANALYSIS( + "marketplace-ibm-watson-recording-analysis" + ), + MARKETPLACE_IBM_WATSON_TONE_ANALYZER( + "marketplace-ibm-watson-tone-analyzer" + ), + MARKETPLACE_ICEHOOK_SYSTEMS_SCOUT("marketplace-icehook-systems-scout"), + MARKETPLACE_INFOGROUP_DATAAXLE_BIZINFO( + "marketplace-infogroup-dataaxle-bizinfo" + ), + MARKETPLACE_KEEN_IO_CONTACT_CENTER_ANALYTICS( + "marketplace-keen-io-contact-center-analytics" + ), + MARKETPLACE_MARCHEX_CLEANCALL("marketplace-marchex-cleancall"), + MARKETPLACE_MARCHEX_RECORDING_ANALYSIS( + "marketplace-marchex-recording-analysis" + ), + MARKETPLACE_MARCHEX_SENTIMENT_ANALYSIS_FOR_SMS( + "marketplace-marchex-sentiment-analysis-for-sms" + ), + MARKETPLACE_MARKETPLACE_NEXTCALLER_SOCIAL_ID( + "marketplace-marketplace-nextcaller-social-id" + ), + MARKETPLACE_MOBILE_COMMONS_OPT_OUT_CLASSIFIER( + "marketplace-mobile-commons-opt-out-classifier" + ), + MARKETPLACE_NEXIWAVE_VOICEMAIL_TO_TEXT( + "marketplace-nexiwave-voicemail-to-text" + ), + MARKETPLACE_NEXTCALLER_ADVANCED_CALLER_IDENTIFICATION( + "marketplace-nextcaller-advanced-caller-identification" + ), + MARKETPLACE_NOMOROBO_SPAM_SCORE("marketplace-nomorobo-spam-score"), + MARKETPLACE_PAY_ADDONS("marketplace-pay-addons"), + MARKETPLACE_PAY_ADDONS_BASECOMMERCE_PAY_CONNECTOR( + "marketplace-pay-addons-basecommerce-pay-connector" + ), + MARKETPLACE_PAY_ADDONS_BRAINTREE_PAY_CONNECTOR( + "marketplace-pay-addons-braintree-pay-connector" + ), + MARKETPLACE_PAY_ADDONS_CARDCONNECT_PAY_CONNECTOR( + "marketplace-pay-addons-cardconnect-pay-connector" + ), + MARKETPLACE_PAY_ADDONS_CHASE_PAY_CONNECTOR( + "marketplace-pay-addons-chase-pay-connector" + ), + MARKETPLACE_PAY_ADDONS_SHUTTLE_PAY_CONNECTOR( + "marketplace-pay-addons-shuttle-pay-connector" + ), + MARKETPLACE_PAY_ADDONS_STRIPE_PAY_CONNECTOR( + "marketplace-pay-addons-stripe-pay-connector" + ), + MARKETPLACE_PAYFONE_TCPA_COMPLIANCE( + "marketplace-payfone-tcpa-compliance" + ), + MARKETPLACE_POLY_AI_CONNECTOR("marketplace-poly-ai-connector"), + MARKETPLACE_REALPHONEVALIDATION("marketplace-realphonevalidation"), + MARKETPLACE_REMEETING_AUTOMATIC_SPEECH_RECOGNITION( + "marketplace-remeeting-automatic-speech-recognition" + ), + MARKETPLACE_SPOKE_PHONE_LICENSE_PRO( + "marketplace-spoke-phone-license-pro" + ), + MARKETPLACE_SPOKE_PHONE_LICENSE_STANDARD( + "marketplace-spoke-phone-license-standard" + ), + MARKETPLACE_TCPA_DEFENSE_SOLUTIONS_BLACKLIST_FEED( + "marketplace-tcpa-defense-solutions-blacklist-feed" + ), + MARKETPLACE_TELO_OPENCNAM("marketplace-telo-opencnam"), + MARKETPLACE_TRESTLE_SOLUTIONS_CALLER_IDENTIFICATION( + "marketplace-trestle-solutions-caller-identification" + ), + MARKETPLACE_TRUECNAM_TRUE_SPAM("marketplace-truecnam-true-spam"), + MARKETPLACE_TWILIO_CALLER_NAME_LOOKUP_US( + "marketplace-twilio-caller-name-lookup-us" + ), + MARKETPLACE_TWILIO_CARRIER_INFORMATION_LOOKUP( + "marketplace-twilio-carrier-information-lookup" + ), + MARKETPLACE_VOICEBASE_PCI("marketplace-voicebase-pci"), + MARKETPLACE_VOICEBASE_TRANSCRIPTION( + "marketplace-voicebase-transcription" + ), + MARKETPLACE_VOICEBASE_TRANSCRIPTION_CUSTOM_VOCABULARY( + "marketplace-voicebase-transcription-custom-vocabulary" + ), + MARKETPLACE_WEB_PURIFY_PROFANITY_FILTER( + "marketplace-web-purify-profanity-filter" + ), + MARKETPLACE_WHITEPAGES_PRO_CALLER_IDENTIFICATION( + "marketplace-whitepages-pro-caller-identification" + ), + MARKETPLACE_WHITEPAGES_PRO_PHONE_INTELLIGENCE( + "marketplace-whitepages-pro-phone-intelligence" + ), + MARKETPLACE_WHITEPAGES_PRO_PHONE_REPUTATION( + "marketplace-whitepages-pro-phone-reputation" + ), + MARKETPLACE_WOLFARM_SPOKEN_RESULTS( + "marketplace-wolfarm-spoken-results" + ), + MARKETPLACE_WOLFRAM_SHORT_ANSWER("marketplace-wolfram-short-answer"), + MARKETPLACE_YTICA_CONTACT_CENTER_REPORTING_ANALYTICS( + "marketplace-ytica-contact-center-reporting-analytics" + ), + MARKETPLAY_PAY_ADDONS_SHUTTLE_PAY_CONNECTOR( + "marketplay-pay-addons-shuttle-pay-connector" + ), + MEDIA_COMPOSER_MINUTES("media-composer-minutes"), + MEDIASTORAGE("mediastorage"), + MIN_SPEND_ADJUSTMENTS("min-spend-adjustments"), + MMS("mms"), + MMS_INBOUND("mms-inbound"), + MMS_INBOUND_LONGCODE("mms-inbound-longcode"), + MMS_INBOUND_SHORTCODE("mms-inbound-shortcode"), + MMS_INBOUND_TOLL_FREE("mms-inbound-toll-free"), + MMS_MESSAGES_CARRIERFEES("mms-messages-carrierfees"), + MMS_OUTBOUND("mms-outbound"), + MMS_OUTBOUND_LONGCODE("mms-outbound-longcode"), + MMS_OUTBOUND_SHORTCODE("mms-outbound-shortcode"), + MMS_OUTBOUND_TOLLFREE("mms-outbound-tollfree"), + MONITOR("monitor"), + MONITOR_READS("monitor-reads"), + MONITOR_STORAGE("monitor-storage"), + MONITOR_WRITES("monitor-writes"), + NOTIFY("notify"), + NOTIFY_ACTIONS_ATTEMPTS("notify-actions-attempts"), + NOTIFY_CHANNELS("notify-channels"), + NUMBER_FORMAT_LOOKUPS("number-format-lookups"), + PCHAT("pchat"), + PCHAT_ACTIONS("pchat-actions"), + PCHAT_APS("pchat-aps"), + PCHAT_CONV_MED_STORAGE("pchat-conv-med-storage"), + PCHAT_MESSAGES("pchat-messages"), + PCHAT_NOTIFICATIONS("pchat-notifications"), + PCHAT_READS("pchat-reads"), + PCHAT_USERS("pchat-users"), + PEER_TO_PEER_ROOMS_PARTICIPANT_MINUTES( + "peer-to-peer-rooms-participant-minutes" + ), + PFAX("pfax"), + PFAX_MINUTES("pfax-minutes"), + PFAX_MINUTES_INBOUND("pfax-minutes-inbound"), + PFAX_MINUTES_OUTBOUND("pfax-minutes-outbound"), + PFAX_PAGES("pfax-pages"), + PHONE_QUALITY_SCORE_LOOKUPS("phone-quality-score-lookups"), + PHONENUMBERS("phonenumbers"), + PHONENUMBERS_CPS("phonenumbers-cps"), + PHONENUMBERS_EMERGENCY("phonenumbers-emergency"), + PHONENUMBERS_LOCAL("phonenumbers-local"), + PHONENUMBERS_MOBILE("phonenumbers-mobile"), + PHONENUMBERS_PORTING("phonenumbers-porting"), + PHONENUMBERS_SETUPS("phonenumbers-setups"), + PHONENUMBERS_TOLLFREE("phonenumbers-tollfree"), + PREMIUMSUPPORT("premiumsupport"), + PREMIUMSUPPORT_PERCENTAGE_SPEND("premiumsupport-percentage-spend"), + PROGRAMMABLEVOICE_PLATFORM("programmablevoice-platform"), + PROGRAMMABLEVOICECONN_CLIENTSDK("programmablevoiceconn-clientsdk"), + PROGRAMMABLEVOICECONN_CLIENTSDK_INBOUND( + "programmablevoiceconn-clientsdk-inbound" + ), + PROGRAMMABLEVOICECONN_CLIENTSDK_OUTBOUND( + "programmablevoiceconn-clientsdk-outbound" + ), + PROGRAMMABLEVOICECONN_ONNET("programmablevoiceconn-onnet"), + PROGRAMMABLEVOICECONN_ONNET_INBOUND( + "programmablevoiceconn-onnet-inbound" + ), + PROGRAMMABLEVOICECONN_ONNET_OUTBOUND( + "programmablevoiceconn-onnet-outbound" + ), + PROGRAMMABLEVOICECONN_SIP("programmablevoiceconn-sip"), + PROGRAMMABLEVOICECONN_SIP_INBOUND("programmablevoiceconn-sip-inbound"), + PROGRAMMABLEVOICECONN_SIP_OUTBOUND( + "programmablevoiceconn-sip-outbound" + ), + PROGRAMMABLEVOICECONNECTIVITY("programmablevoiceconnectivity"), + PROXY("proxy"), + PROXY_ACTIVE_SESSIONS("proxy-active-sessions"), + PROXY_BUCKET_ADJUSTMENT("proxy-bucket-adjustment"), + PROXY_LICENSES("proxy-licenses"), + PSTNCONNECTIVITY("pstnconnectivity"), + PSTNCONNECTIVITY_INBOUND("pstnconnectivity-inbound"), + PSTNCONNECTIVITY_OUTBOUND("pstnconnectivity-outbound"), + PV("pv"), + PV_BASIC_ROOMS("pv-basic-rooms"), + PV_COMPOSITION_MEDIA_DOWNLOADED("pv-composition-media-downloaded"), + PV_COMPOSITION_MEDIA_ENCRYPTED("pv-composition-media-encrypted"), + PV_COMPOSITION_MEDIA_STORED("pv-composition-media-stored"), + PV_COMPOSITION_MINUTES("pv-composition-minutes"), + PV_RECORDING_COMPOSITIONS("pv-recording-compositions"), + PV_ROOM_PARTICIPANTS("pv-room-participants"), + PV_ROOM_PARTICIPANTS_AU1("pv-room-participants-au1"), + PV_ROOM_PARTICIPANTS_BR1("pv-room-participants-br1"), + PV_ROOM_PARTICIPANTS_IE1("pv-room-participants-ie1"), + PV_ROOM_PARTICIPANTS_JP1("pv-room-participants-jp1"), + PV_ROOM_PARTICIPANTS_SG1("pv-room-participants-sg1"), + PV_ROOM_PARTICIPANTS_US1("pv-room-participants-us1"), + PV_ROOM_PARTICIPANTS_US2("pv-room-participants-us2"), + PV_ROOMS("pv-rooms"), + PV_SIP_ENDPOINT_REGISTRATIONS("pv-sip-endpoint-registrations"), + RCS_MESSAGES("rcs-messages"), + REASSIGNED_NUMBER("reassigned-number"), + RECORDINGS("recordings"), + RECORDINGSTORAGE("recordingstorage"), + SHORTCODES("shortcodes"), + SHORTCODES_CUSTOMEROWNED("shortcodes-customerowned"), + SHORTCODES_MMS_ENABLEMENT("shortcodes-mms-enablement"), + SHORTCODES_MPS("shortcodes-mps"), + SHORTCODES_RANDOM("shortcodes-random"), + SHORTCODES_SETUP_FEES("shortcodes-setup-fees"), + SHORTCODES_UK("shortcodes-uk"), + SHORTCODES_VANITY("shortcodes-vanity"), + SIM_SWAP_LOOKUPS("sim-swap-lookups"), + SIP_SECURE_MEDIA("sip-secure-media"), + SMALL_GROUP_ROOMS("small-group-rooms"), + SMALL_GROUP_ROOMS_DATA_TRACK("small-group-rooms-data-track"), + SMALL_GROUP_ROOMS_PARTICIPANT_MINUTES( + "small-group-rooms-participant-minutes" + ), + SMS("sms"), + SMS_INBOUND("sms-inbound"), + SMS_INBOUND_LONGCODE("sms-inbound-longcode"), + SMS_INBOUND_SHORTCODE("sms-inbound-shortcode"), + SMS_INBOUND_TOLLFREE("sms-inbound-tollfree"), + SMS_MESSAGES_CARRIERFEES("sms-messages-carrierfees"), + SMS_MESSAGES_FEATURES("sms-messages-features"), + SMS_MESSAGES_FEATURES_ENGAGEMENT_SUITE( + "sms-messages-features-engagement-suite" + ), + SMS_MESSAGES_FEATURES_MESSAGE_REDACTION( + "sms-messages-features-message-redaction" + ), + SMS_MESSAGES_FEATURES_SENDERID("sms-messages-features-senderid"), + SMS_MPS("sms-mps"), + SMS_MPS_SHORTCODE("sms-mps-shortcode"), + SMS_MPS_TOLLFREE("sms-mps-tollfree"), + SMS_MPS_TOLLFREE_SETUP("sms-mps-tollfree-setup"), + SMS_NATIONAL_REGULATORY_PROTECTION( + "sms-national-regulatory-protection" + ), + SMS_OUTBOUND("sms-outbound"), + SMS_OUTBOUND_CONTENT_INSPECTION("sms-outbound-content-inspection"), + SMS_OUTBOUND_LONGCODE("sms-outbound-longcode"), + SMS_OUTBOUND_SHORTCODE("sms-outbound-shortcode"), + SMS_OUTBOUND_TOLLFREE("sms-outbound-tollfree"), + SMS_PUMPING_PROTECTION("sms-pumping-protection"), + SMS_PUMPING_RISK("sms-pumping-risk"), + SMSMESSAGES_BUCKET_ADJUSTMENTS("smsmessages-bucket-adjustments"), + SMSMESSAGES_OUTBOUND_DOMESTIC("smsmessages-outbound-domestic"), + SPEECH_RECOGNITION("speech-recognition"), + STUDIO_ENGAGEMENTS("studio-engagements"), + SYNC("sync"), + SYNC_ACTIONS("sync-actions"), + SYNC_ENDPOINT_HOURS("sync-endpoint-hours"), + SYNC_ENDPOINT_HOURS_ABOVE_DAILY_CAP( + "sync-endpoint-hours-above-daily-cap" + ), + TASKROUTER_TASKS("taskrouter-tasks"), + TOTALPRICE("totalprice"), + TRANSCRIPTIONS("transcriptions"), + TRUNKING_CPS("trunking-cps"), + TRUNKING_EMERGENCY_CALLS("trunking-emergency-calls"), + TRUNKING_ORIGINATION("trunking-origination"), + TRUNKING_ORIGINATION_LOCAL("trunking-origination-local"), + TRUNKING_ORIGINATION_MOBILE("trunking-origination-mobile"), + TRUNKING_ORIGINATION_TOLLFREE("trunking-origination-tollfree"), + TRUNKING_RECORDINGS("trunking-recordings"), + TRUNKING_SECURE("trunking-secure"), + TRUNKING_TERMINATION("trunking-termination"), + TTS_GOOGLE("tts-google"), + TURNMEGABYTES("turnmegabytes"), + TURNMEGABYTES_AUSTRALIA("turnmegabytes-australia"), + TURNMEGABYTES_BRASIL("turnmegabytes-brasil"), + TURNMEGABYTES_GERMANY("turnmegabytes-germany"), + TURNMEGABYTES_INDIA("turnmegabytes-india"), + TURNMEGABYTES_IRELAND("turnmegabytes-ireland"), + TURNMEGABYTES_JAPAN("turnmegabytes-japan"), + TURNMEGABYTES_SINGAPORE("turnmegabytes-singapore"), + TURNMEGABYTES_USEAST("turnmegabytes-useast"), + TURNMEGABYTES_USWEST("turnmegabytes-uswest"), + TWILIO_FOR_SALESFORCE("twilio-for-salesforce"), + TWILIO_FOR_SALESFORCE_LICENSES("twilio-for-salesforce-licenses"), + TWILIO_INTERCONNECT("twilio-interconnect"), + TWIML("twiml"), + USAGE_FLEX_VIDEO("usage-flex-video"), + USAGE_FUNCTIONS("usage-functions"), + USAGE_RCS_BASIC_MESSAGES_OUTBOUND("usage-rcs-basic-messages-outbound"), + USAGE_RCS_MESSAGES("usage-rcs-messages"), + USAGE_RCS_MESSAGES_INBOUND("usage-rcs-messages-inbound"), + USAGE_RCS_MESSAGING_CARRIER_FEES("usage-rcs-messaging-carrier-fees"), + USAGE_RCS_SINGLE_MESSAGES_OUTBOUND( + "usage-rcs-single-messages-outbound" + ), + VERIFY_PACKAGE_PLANS("verify-package-plans"), + VERIFY_PUSH("verify-push"), + VERIFY_SNA("verify-sna"), + VERIFY_TOTP("verify-totp"), + VERIFY_VOICE_SMS("verify-voice-sms"), + VERIFY_WHATSAPP_CONVERSATIONS_BUSINESS_INITIATED( + "verify-whatsapp-conversations-business-initiated" + ), + VIDEO_RECORDINGS("video-recordings"), + VIDEO_ROOMS_TURN_MEGABYTES("video-rooms-turn-megabytes"), + VIRTUAL_AGENT("virtual-agent"), + VOICE_INSIGHTS("voice-insights"), + VOICE_INSIGHTS_CLIENT_INSIGHTS_ON_DEMAND_MINUTE( + "voice-insights-client-insights-on-demand-minute" + ), + VOICE_INSIGHTS_PTSN_INSIGHTS_ON_DEMAND_MINUTE( + "voice-insights-ptsn-insights-on-demand-minute" + ), + VOICE_INSIGHTS_SIP_INTERFACE_INSIGHTS_ON_DEMAND_MINUTE( + "voice-insights-sip-interface-insights-on-demand-minute" + ), + VOICE_INSIGHTS_SIP_TRUNKING_INSIGHTS_ON_DEMAND_MINUTE( + "voice-insights-sip-trunking-insights-on-demand-minute" + ), + VOICE_INTELLIGENCE("voice-intelligence"), + VOICE_INTELLIGENCE_EIP_OPERATORS("voice-intelligence-eip-operators"), + VOICE_INTELLIGENCE_OPERATORS("voice-intelligence-operators"), + VOICE_INTELLIGENCE_TRANSCRIPTION("voice-intelligence-transcription"), + WDS("wds"), + WIRELESS("wireless"), + WIRELESS_DATA("wireless-data"), + WIRELESS_DATA_PAYG("wireless-data-payg"), + WIRELESS_DATA_PAYG_AFRICA("wireless-data-payg-africa"), + WIRELESS_DATA_PAYG_ASIA("wireless-data-payg-asia"), + WIRELESS_DATA_PAYG_CENTRALANDSOUTHAMERICA( + "wireless-data-payg-centralandsouthamerica" + ), + WIRELESS_DATA_PAYG_EUROPE("wireless-data-payg-europe"), + WIRELESS_DATA_PAYG_NORTHAMERICA("wireless-data-payg-northamerica"), + WIRELESS_DATA_PAYG_OCEANIA("wireless-data-payg-oceania"), + WIRELESS_DATA_QUOTA1("wireless-data-quota1"), + WIRELESS_DATA_QUOTA1_AFRICA("wireless-data-quota1-africa"), + WIRELESS_DATA_QUOTA1_ASIA("wireless-data-quota1-asia"), + WIRELESS_DATA_QUOTA1_CENTRALANDSOUTHAMERICA( + "wireless-data-quota1-centralandsouthamerica" + ), + WIRELESS_DATA_QUOTA1_EUROPE("wireless-data-quota1-europe"), + WIRELESS_DATA_QUOTA1_NORTHAMERICA("wireless-data-quota1-northamerica"), + WIRELESS_DATA_QUOTA1_OCEANIA("wireless-data-quota1-oceania"), + WIRELESS_DATA_QUOTA10("wireless-data-quota10"), + WIRELESS_DATA_QUOTA10_AFRICA("wireless-data-quota10-africa"), + WIRELESS_DATA_QUOTA10_ASIA("wireless-data-quota10-asia"), + WIRELESS_DATA_QUOTA10_CENTRALANDSOUTHAMERICA( + "wireless-data-quota10-centralandsouthamerica" + ), + WIRELESS_DATA_QUOTA10_EUROPE("wireless-data-quota10-europe"), + WIRELESS_DATA_QUOTA10_NORTHAMERICA( + "wireless-data-quota10-northamerica" + ), + WIRELESS_DATA_QUOTA10_OCEANIA("wireless-data-quota10-oceania"), + WIRELESS_DATA_QUOTA50("wireless-data-quota50"), + WIRELESS_DATA_QUOTA50_AFRICA("wireless-data-quota50-africa"), + WIRELESS_DATA_QUOTA50_ASIA("wireless-data-quota50-asia"), + WIRELESS_DATA_QUOTA50_CENTRALANDSOUTHAMERICA( + "wireless-data-quota50-centralandsouthamerica" + ), + WIRELESS_DATA_QUOTA50_EUROPE("wireless-data-quota50-europe"), + WIRELESS_DATA_QUOTA50_NORTHAMERICA( + "wireless-data-quota50-northamerica" + ), + WIRELESS_DATA_QUOTA50_OCEANIA("wireless-data-quota50-oceania"), + WIRELESS_DATA_QUOTACUSTOM("wireless-data-quotacustom"), + WIRELESS_DATA_QUOTACUSTOM_AFRICA("wireless-data-quotacustom-africa"), + WIRELESS_DATA_QUOTACUSTOM_ASIA("wireless-data-quotacustom-asia"), + WIRELESS_DATA_QUOTACUSTOM_CENTRALANDSOUTHAMERICA( + "wireless-data-quotacustom-centralandsouthamerica" + ), + WIRELESS_DATA_QUOTACUSTOM_EUROPE("wireless-data-quotacustom-europe"), + WIRELESS_DATA_QUOTACUSTOM_NORTHAMERICA( + "wireless-data-quotacustom-northamerica" + ), + WIRELESS_DATA_QUOTACUSTOM_OCEANIA("wireless-data-quotacustom-oceania"), + WIRELESS_MRC_PAYG("wireless-mrc-payg"), + WIRELESS_MRC_QUOTA1("wireless-mrc-quota1"), + WIRELESS_MRC_QUOTA10("wireless-mrc-quota10"), + WIRELESS_MRC_QUOTA50("wireless-mrc-quota50"), + WIRELESS_MRC_QUOTACUSTOM("wireless-mrc-quotacustom"), + WIRELESS_ORDERS("wireless-orders"), + WIRELESS_ORDERS_ARTWORK("wireless-orders-artwork"), + WIRELESS_ORDERS_BULK("wireless-orders-bulk"), + WIRELESS_ORDERS_ESIM("wireless-orders-esim"), + WIRELESS_ORDERS_STARTER("wireless-orders-starter"), + WIRELESS_QUOTAS("wireless-quotas"), + WIRELESS_SMS_AFRICA("wireless-sms-africa"), + WIRELESS_SMS_ASIA("wireless-sms-asia"), + WIRELESS_SMS_CENTRALANDSOUTHAMERICA( + "wireless-sms-centralandsouthamerica" + ), + WIRELESS_SMS_EUROPE("wireless-sms-europe"), + WIRELESS_SMS_NORTHAMERICA("wireless-sms-northamerica"), + WIRELESS_SMS_OCEANIA("wireless-sms-oceania"), + WIRELESS_SUPER_SIM("wireless-super-sim"), + WIRELESS_SUPER_SIM_DATA("wireless-super-sim-data"), + WIRELESS_SUPER_SIM_DATA_NORTH_AMERICA_USA( + "wireless-super-sim-data-north-america-usa" + ), + WIRELESS_SUPER_SIM_DATA_PAYG("wireless-super-sim-data-payg"), + WIRELESS_SUPER_SIM_DATA_PAYG_EUROPE( + "wireless-super-sim-data-payg-europe" + ), + WIRELESS_SUPER_SIM_DATA_PAYG_NORTH_AMERICA( + "wireless-super-sim-data-payg-north-america" + ), + WIRELESS_SUPER_SIM_HARDWARE("wireless-super-sim-hardware"), + WIRELESS_SUPER_SIM_HARDWARE_BULK("wireless-super-sim-hardware-bulk"), + WIRELESS_SUPER_SIM_SMSCOMMANDS("wireless-super-sim-smscommands"), + WIRELESS_SUPER_SIM_SMSCOMMANDS_AFRICA( + "wireless-super-sim-smscommands-africa" + ), + WIRELESS_SUPER_SIM_SMSCOMMANDS_ASIA( + "wireless-super-sim-smscommands-asia" + ), + WIRELESS_SUPER_SIM_SMSCOMMANDS_CENT_AND_SOUTH_AMERICA( + "wireless-super-sim-smscommands-cent-and-south-america" + ), + WIRELESS_SUPER_SIM_SMSCOMMANDS_EUROPE( + "wireless-super-sim-smscommands-europe" + ), + WIRELESS_SUPER_SIM_SMSCOMMANDS_NORTH_AMERICA( + "wireless-super-sim-smscommands-north-america" + ), + WIRELESS_SUPER_SIM_SMSCOMMANDS_OCEANIA( + "wireless-super-sim-smscommands-oceania" + ), + WIRELESS_SUPER_SIM_SUBSCRIPTION("wireless-super-sim-subscription"), + WIRELESS_SUPER_SIM_SUBSCRIPTION_PAYG( + "wireless-super-sim-subscription-payg" + ), + WIRELESS_USAGE("wireless-usage"), + WIRELESS_USAGE_COMMANDS("wireless-usage-commands"), + WIRELESS_USAGE_COMMANDS_AFRICA("wireless-usage-commands-africa"), + WIRELESS_USAGE_COMMANDS_ASIA("wireless-usage-commands-asia"), + WIRELESS_USAGE_COMMANDS_CENTRALANDSOUTHAMERICA( + "wireless-usage-commands-centralandsouthamerica" + ), + WIRELESS_USAGE_COMMANDS_EUROPE("wireless-usage-commands-europe"), + WIRELESS_USAGE_COMMANDS_HOME("wireless-usage-commands-home"), + WIRELESS_USAGE_COMMANDS_NORTHAMERICA( + "wireless-usage-commands-northamerica" + ), + WIRELESS_USAGE_COMMANDS_OCEANIA("wireless-usage-commands-oceania"), + WIRELESS_USAGE_COMMANDS_ROAMING("wireless-usage-commands-roaming"), + WIRELESS_USAGE_DATA("wireless-usage-data"), + WIRELESS_USAGE_DATA_AFRICA("wireless-usage-data-africa"), + WIRELESS_USAGE_DATA_ASIA("wireless-usage-data-asia"), + WIRELESS_USAGE_DATA_CENTRALANDSOUTHAMERICA( + "wireless-usage-data-centralandsouthamerica" + ), + WIRELESS_USAGE_DATA_CUSTOM_ADDITIONALMB( + "wireless-usage-data-custom-additionalmb" + ), + WIRELESS_USAGE_DATA_CUSTOM_FIRST5MB( + "wireless-usage-data-custom-first5mb" + ), + WIRELESS_USAGE_DATA_DOMESTIC_ROAMING( + "wireless-usage-data-domestic-roaming" + ), + WIRELESS_USAGE_DATA_EUROPE("wireless-usage-data-europe"), + WIRELESS_USAGE_DATA_INDIVIDUAL_ADDITIONALGB( + "wireless-usage-data-individual-additionalgb" + ), + WIRELESS_USAGE_DATA_INDIVIDUAL_FIRSTGB( + "wireless-usage-data-individual-firstgb" + ), + WIRELESS_USAGE_DATA_INTERNATIONAL_ROAMING_CANADA( + "wireless-usage-data-international-roaming-canada" + ), + WIRELESS_USAGE_DATA_INTERNATIONAL_ROAMING_INDIA( + "wireless-usage-data-international-roaming-india" + ), + WIRELESS_USAGE_DATA_INTERNATIONAL_ROAMING_MEXICO( + "wireless-usage-data-international-roaming-mexico" + ), + WIRELESS_USAGE_DATA_NORTHAMERICA("wireless-usage-data-northamerica"), + WIRELESS_USAGE_DATA_OCEANIA("wireless-usage-data-oceania"), + WIRELESS_USAGE_DATA_POOLED("wireless-usage-data-pooled"), + WIRELESS_USAGE_DATA_POOLED_DOWNLINK( + "wireless-usage-data-pooled-downlink" + ), + WIRELESS_USAGE_DATA_POOLED_UPLINK("wireless-usage-data-pooled-uplink"), + WIRELESS_USAGE_MRC("wireless-usage-mrc"), + WIRELESS_USAGE_MRC_CUSTOM("wireless-usage-mrc-custom"), + WIRELESS_USAGE_MRC_INDIVIDUAL("wireless-usage-mrc-individual"), + WIRELESS_USAGE_MRC_POOLED("wireless-usage-mrc-pooled"), + WIRELESS_USAGE_MRC_SUSPENDED("wireless-usage-mrc-suspended"), + WIRELESS_USAGE_SMS("wireless-usage-sms"), + WIRELESS_USAGE_VOICE("wireless-usage-voice"), + A2P_FAST_TRACK_ONBOARDING("a2p-fast-track-onboarding"), + ADVISORY_SERVICES("advisory-services"), + ADVISORY_SERVICES_BILLED("advisory-services-billed"), + ADVISORY_SERVICES_CALL_TRACKING("advisory-services-call-tracking"), + ADVISORY_SERVICES_DATA_SERVICES("advisory-services-data-services"), + ADVISORY_SERVICES_EXPENSES("advisory-services-expenses"), + ADVISORY_SERVICES_SIP_TRUNKING("advisory-services-sip-trunking"), + ASSETS_REQUESTS("assets-requests"), + AUDIENCE_MINUTES_VIDEO("audience-minutes-video"), + AUTHY_BUCKET_ADJUSTMENT("authy-bucket-adjustment"), + AUTHY_SOFTWARE("authy-software"), + CALLERIDLOOKUPS_API("calleridlookups-api"), + CALLERIDLOOKUPS_PROGRAMMABLEVOICE("calleridlookups-programmablevoice"), + CALLERIDLOOKUPS_TRUNKING("calleridlookups-trunking"), + CALLS_TRUNKING_INBOUND_TOLLFREE_LOCAL( + "calls-trunking-inbound-tollfree-local" + ), + CALLS_TRUNKING_INBOUND_TOLLFREE_MOBILE( + "calls-trunking-inbound-tollfree-mobile" + ), + CHANNELS_WHATSAPP_CONVERSATION_FREE_1( + "channels-whatsapp-conversation-free-1" + ), + CONFERENCE("conference"), + CONVERSATIONAL_INSIGHTS("conversational-insights"), + CONVERSATIONAL_INSIGHTS_MESSAGES("conversational-insights-messages"), + CONVERSATIONAL_INSIGHTS_VOICE_MINUTES( + "conversational-insights-voice-minutes" + ), + DEMO("demo"), + DEMO_UC_SCRIPT_TEST("demo-uc-script-test"), + ELASTIC_SIP_TRUNKING("elastic-sip-trunking"), + ELASTIC_SIP_TRUNKING_CALL_TRANSFERS( + "elastic-sip-trunking-call-transfers" + ), + ENTERPRISE_HIPPA("enterprise-hippa"), + FLEX_NAMED_USERS("flex-named-users"), + FLEX_SPINSCI("flex-spinsci"), + FLEX_USERS_1("flex-users-1"), + FLEX_WFO_PREMIUM_SPEECH_ANALYTICS("flex-wfo-premium-speech-analytics"), + FLEX_XCELERATE("flex-xcelerate"), + FUNCTIONS_ROLLUP("functions-rollup"), + IMP_V1_USAGE("imp-v1-usage"), + IP_MESSAGING_ADDONS("ip-messaging-addons"), + IVR("ivr"), + IVR_CONVERSATIONAL("ivr-conversational"), + IVR_DTMF("ivr-dtmf"), + IVR_VIRTUALAGENT("ivr-virtualagent"), + LIVE("live"), + LIVE_MEDIA_RECORDING_MINUTES("live-media-recording-minutes"), + LONGCODE_MPS("longcode-mps"), + MARKETPLACE_ANALYTICS_ADDONS("marketplace-analytics-addons"), + MARKETPLACE_ISV_ADDONS("marketplace-isv-addons"), + MARKETPLACE_MESSAGING_ADDONS("marketplace-messaging-addons"), + MARKETPLACE_PHONENUMBERS_ADDONS("marketplace-phonenumbers-addons"), + MARKETPLACE_RECORDING_ADDONS("marketplace-recording-addons"), + MARKETPLACE_VIRTUALAGENT_ADDONS("marketplace-virtualagent-addons"), + MARKETPLAY_PAY_ADDONS_SHUTTLE_PAY_CONNECTOR_1( + "marketplay-pay-addons-shuttle-pay-connector-1" + ), + MARKETPLAY_PAY_ADDONS_STRIPE_PAY_CONNECTOR( + "marketplay-pay-addons-stripe-pay-connector" + ), + MMS_INBOUND_LONGCODE_CANADA("mms-inbound-longcode-canada"), + MMS_INBOUND_LONGCODE_UNITEDSTATES("mms-inbound-longcode-unitedstates"), + MMS_OUTBOUND_LONGCODE_CANADA("mms-outbound-longcode-canada"), + MMS_OUTBOUND_LONGCODE_UNITEDSTATES( + "mms-outbound-longcode-unitedstates" + ), + MMS_OUTBOUND_TOLL_FREE("mms-outbound-toll-free"), + NOTIFY_CHATAPPSANDOTHERCHANNELS("notify-chatappsandotherchannels"), + NOTIFY_NOTIFYSERVICES("notify-notifyservices"), + NOTIFY_PUSHNOTIFICATIONS("notify-pushnotifications"), + PAYMENT_GATEWAY_CONNECTORS("payment-gateway-connectors"), + PAYMENT_SOLUTIONS("payment-solutions"), + PCHAT_BUCKET_ADJUSTMENT("pchat-bucket-adjustment"), + PHONENUMBERS_NUMBERS("phonenumbers-numbers"), + PROG_VOICE_CLIENT_ANDROID("prog-voice-client-android"), + PROG_VOICE_CLIENT_ANDROID_INBOUND("prog-voice-client-android-inbound"), + PROG_VOICE_CLIENT_ANDROID_OUTBOUND( + "prog-voice-client-android-outbound" + ), + PROG_VOICE_CLIENT_IOS("prog-voice-client-ios"), + PROG_VOICE_CLIENT_IOS_INBOUND("prog-voice-client-ios-inbound"), + PROG_VOICE_CLIENT_IOS_OUTBOUND("prog-voice-client-ios-outbound"), + PROG_VOICE_CLIENT_SDK("prog-voice-client-sdk"), + PROG_VOICE_CLIENT_WEB("prog-voice-client-web"), + PROG_VOICE_CLIENT_WEB_INBOUND("prog-voice-client-web-inbound"), + PROG_VOICE_CLIENT_WEB_OUTBOUND("prog-voice-client-web-outbound"), + PROGRAMMABLEVOICECONNECTIVITY_MEDIA_STREAMS( + "programmablevoiceconnectivity-media-streams" + ), + PSTNCONNECTIVITY_BYOC("pstnconnectivity-byoc"), + PSTNCONNECTIVITY_EMERGENCY("pstnconnectivity-emergency"), + PSTNCONNECTIVITY_MINUTES("pstnconnectivity-minutes"), + PSTNCONNECTIVITY_MINUTES_1("pstnconnectivity-minutes-1"), + PSTNCONNECTIVITY_MINUTESINBOUNDLOCAL( + "pstnconnectivity-minutesinboundlocal" + ), + PSTNCONNECTIVITY_MINUTESINBOUNDMOBILE( + "pstnconnectivity-minutesinboundmobile" + ), + PSTNCONNECTIVITY_MINUTESINBOUNDTOLLFREE( + "pstnconnectivity-minutesinboundtollfree" + ), + PSTNCONNECTIVITY_MINUTESINBOUNDTOLLFREELOCAL( + "pstnconnectivity-minutesinboundtollfreelocal" + ), + PSTNCONNECTIVITY_MINUTESINBOUNDTOLLFREEMOBILE( + "pstnconnectivity-minutesinboundtollfreemobile" + ), + PV_ROOM_HOURS("pv-room-hours"), + PV_ROOM_SIMULTANEOUS_PARTICIPANT_CONNECTIONS( + "pv-room-simultaneous-participant-connections" + ), + PVIDEO_ROOM_HOURS_AU1("pvideo-room-hours-au1"), + PVIDEO_ROOM_HOURS_BR1("pvideo-room-hours-br1"), + PVIDEO_ROOM_HOURS_IE1("pvideo-room-hours-ie1"), + PVIDEO_ROOM_HOURS_JP1("pvideo-room-hours-jp1"), + PVIDEO_ROOM_HOURS_SG1("pvideo-room-hours-sg1"), + PVIDEO_ROOM_HOURS_US1("pvideo-room-hours-us1"), + PVIDEO_ROOM_HOURS_US2("pvideo-room-hours-us2"), + RECORDINGS_ENCRYPTED("recordings-encrypted"), + SHORT_CODE_SETUP_FEES("short-code-setup-fees"), + SHORTCODES_MESSAGES_INBOUND("shortcodes-messages-inbound"), + SHORTCODES_MESSAGES_OUTBOUND("shortcodes-messages-outbound"), + SMS_MESSAGES_REGISTRATIONFEES("sms-messages-registrationfees"), + SMS_MMS_PENALTY_FEES("sms-mms-penalty-fees"), + SMS_MMS_PENALTY_FEES_1("sms-mms-penalty-fees-1"), + SMS_PUMPING_PROTECTION_NON_USCA("sms-pumping-protection-non-usca"), + SMS_PUMPING_PROTECTION_USCA("sms-pumping-protection-usca"), + STUDIO("studio"), + STUDIO_MONTHLY_FEES("studio-monthly-fees"), + SUPERSIM("supersim"), + TASK_ROUTER("task-router"), + TASK_ROUTER_WORKERS("task-router-workers"), + TEST_QUOTA_BUCKETS("test-quota-buckets"), + TEST_UC_SCRIPT_1("test-uc-script-1"), + TEST_UC_SCRIPT_DEMO_2("test-uc-script-demo-2"), + TEXT_TO_SPEECH("text-to-speech"), + TME("tme"), + TTS_BASIC("tts-basic"), + TWILIO_EDITIONS("twilio-editions"), + TWILIO_INTERCONNECT_CALIFORNIA("twilio-interconnect-california"), + TWILIO_INTERCONNECT_CALIFORNIA_MONTHLY( + "twilio-interconnect-california-monthly" + ), + TWILIO_INTERCONNECT_CALIFORNIA_SETUP( + "twilio-interconnect-california-setup" + ), + TWILIO_INTERCONNECT_FRANKFURT("twilio-interconnect-frankfurt"), + TWILIO_INTERCONNECT_FRANKFURT_MO("twilio-interconnect-frankfurt-mo"), + TWILIO_INTERCONNECT_FRANKFURT_SETUP( + "twilio-interconnect-frankfurt-setup" + ), + TWILIO_INTERCONNECT_LONDON("twilio-interconnect-london"), + TWILIO_INTERCONNECT_LONDON_MO("twilio-interconnect-london-mo"), + TWILIO_INTERCONNECT_LONDON_SETUP("twilio-interconnect-london-setup"), + TWILIO_INTERCONNECT_SAO_PAULO("twilio-interconnect-sao-paulo"), + TWILIO_INTERCONNECT_SAO_PAULO_MONTHLY( + "twilio-interconnect-sao-paulo-monthly" + ), + TWILIO_INTERCONNECT_SAO_PAULO_SETUP( + "twilio-interconnect-sao-paulo-setup" + ), + TWILIO_INTERCONNECT_SINGAPORE("twilio-interconnect-singapore"), + TWILIO_INTERCONNECT_SINGAPORE_MO("twilio-interconnect-singapore-mo"), + TWILIO_INTERCONNECT_SINGAPORE_SETUP( + "twilio-interconnect-singapore-setup" + ), + TWILIO_INTERCONNECT_SYDNEY("twilio-interconnect-sydney"), + TWILIO_INTERCONNECT_SYDNEY_MO("twilio-interconnect-sydney-mo"), + TWILIO_INTERCONNECT_SYDNEY_SETUP("twilio-interconnect-sydney-setup"), + TWILIO_INTERCONNECT_TOKYO("twilio-interconnect-tokyo"), + TWILIO_INTERCONNECT_TOKYO_MO("twilio-interconnect-tokyo-mo"), + TWILIO_INTERCONNECT_TOKYO_SETUP("twilio-interconnect-tokyo-setup"), + TWILIO_INTERCONNECT_VA("twilio-interconnect-va"), + TWILIO_INTERCONNECT_VA_MO("twilio-interconnect-va-mo"), + TWILIO_INTERCONNECT_VA_SETUP("twilio-interconnect-va-setup"), + TWIML_VERBS("twiml-verbs"), + TWIML_VERBS_SAY("twiml-verbs-say"), + USAGE_PROGRAMMABLE_MESSAGING_ENGAGEMENT_SUITE( + "usage-programmable-messaging-engagement-suite" + ), + USAGE_PROGRAMMABLE_MESSAGING_FEES_SERVICES( + "usage-programmable-messaging-fees-services" + ), + VERIFY_OUTBOUND_EMAIL("verify-outbound-email"), + VERIFY_PACKAGED_PLANS("verify-packaged-plans"), + VERIFY_SILENT_NETWORK_AUTH("verify-silent-network-auth"), + VERIFY_VOICE_AND_SMS("verify-voice-and-sms"), + VOICE_INSIGHTS_CLIENT_INSIGHTS_MONTHY_COMMIT( + "voice-insights-client-insights-monthy-commit" + ), + WIRELESS_DATA_PAYG_ASIA_AFG("wireless-data-payg-asia-afg"), + WIRELESS_MULTI_IMSI_SIM_COMMANDS("wireless-multi-imsi-sim-commands"), + WIRELESS_MULTI_IMSI_SIM_COMMANDS_USA( + "wireless-multi-imsi-sim-commands-usa" + ), + WIRELESS_MULTI_IMSI_SIM_DATA("wireless-multi-imsi-sim-data"), + WIRELESS_MULTI_IMSI_SIM_DATA_EU28("wireless-multi-imsi-sim-data-eu28"), + WIRELESS_MULTI_IMSI_SIM_DATA_USA("wireless-multi-imsi-sim-data-usa"), + WIRELESS_MULTI_IMSI_SIM_MONTHLY_FEES( + "wireless-multi-imsi-sim-monthly-fees" + ), + WIRELESS_MULTI_IMSI_SIM_USAGE("wireless-multi-imsi-sim-usage"), + WIRELESS_SUPER_SIM_DATA_NORTH_AMERICA( + "wireless-super-sim-data-north-america" + ), + WIRELESS_SUPER_SIM_USAGE("wireless-super-sim-usage"); + + private final String value; + + private Category(final String value) { + this.value = value; + } + + public String toString() { + return value; + } + + @JsonCreator + public static Category forValue(final String value) { + return Promoter.enumFromString(value, Category.values()); + } + } + /** * Converts a JSON String into a Daily object using the provided ObjectMapper. * @@ -116,7 +1042,7 @@ public static String toJson(Object object, ObjectMapper mapper) { private final String asOf; @Getter - private final String category; + private final Daily.Category category; @Getter private final String count; @@ -156,7 +1082,7 @@ private Daily( @JsonProperty("account_sid") final String accountSid, @JsonProperty("api_version") final String apiVersion, @JsonProperty("as_of") final String asOf, - @JsonProperty("category") final String category, + @JsonProperty("category") final Daily.Category category, @JsonProperty("count") final String count, @JsonProperty("count_unit") final String countUnit, @JsonProperty("description") final String description, diff --git a/src/main/java/com/twilio/rest/api/v2010/account/usage/record/DailyReader.java b/src/main/java/com/twilio/rest/api/v2010/account/usage/record/DailyReader.java index 4b1dfa970e..4eaf3f74ef 100644 --- a/src/main/java/com/twilio/rest/api/v2010/account/usage/record/DailyReader.java +++ b/src/main/java/com/twilio/rest/api/v2010/account/usage/record/DailyReader.java @@ -33,7 +33,7 @@ public class DailyReader extends Reader { private String pathAccountSid; - private String category; + private Daily.Category category; private LocalDate startDate; private LocalDate endDate; private Boolean includeSubaccounts; @@ -45,7 +45,7 @@ public DailyReader(final String pathAccountSid) { this.pathAccountSid = pathAccountSid; } - public DailyReader setCategory(final String category) { + public DailyReader setCategory(final Daily.Category category) { this.category = category; return this; } diff --git a/src/main/java/com/twilio/rest/api/v2010/account/usage/record/LastMonth.java b/src/main/java/com/twilio/rest/api/v2010/account/usage/record/LastMonth.java index a3a2de2bf3..3c5dabeef5 100644 --- a/src/main/java/com/twilio/rest/api/v2010/account/usage/record/LastMonth.java +++ b/src/main/java/com/twilio/rest/api/v2010/account/usage/record/LastMonth.java @@ -25,6 +25,7 @@ import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.twilio.base.Resource; import com.twilio.base.Resource; +import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; import com.twilio.type.*; @@ -51,6 +52,931 @@ public static LastMonthReader reader(final String pathAccountSid) { return new LastMonthReader(pathAccountSid); } + public enum Category { + A2P_10DLC_REGISTRATIONFEES_BRANDREGISTRATION( + "a2p-10dlc-registrationfees-brandregistration" + ), + A2P_10DLC_REGISTRATIONFEES_BV("a2p-10dlc-registrationfees-bv"), + A2P_10DLC_REGISTRATIONFEES_CAMPAIGNCHARGES( + "a2p-10dlc-registrationfees-campaigncharges" + ), + A2P_10DLC_REGISTRATIONFEES_CAMPAIGNREGISTRATION( + "a2p-10dlc-registrationfees-campaignregistration" + ), + A2P_10DLC_REGISTRATIONFEES_CAMPAIGNVETTING( + "a2p-10dlc-registrationfees-campaignvetting" + ), + A2P_10DLC_REGISTRATIONFEES_MONTHLY( + "a2p-10dlc-registrationfees-monthly" + ), + A2P_10DLC_REGISTRATIONFEES_ONETIME( + "a2p-10dlc-registrationfees-onetime" + ), + A2P_REGISTRATION_FEES("a2p-registration-fees"), + ACCOUNT_SECURITY("account-security"), + AGENT_CONFERENCE("agent-conference"), + AGENT_COPILOT("agent-copilot"), + AGENT_COPILOT_MESSAGES("agent-copilot-messages"), + AGENT_COPILOT_PARTICIPANT_MINUTES("agent-copilot-participant-minutes"), + AI_ASSISTANTS("ai-assistants"), + AI_ASSISTANTS_VOICE("ai-assistants-voice"), + AMAZON_POLLY("amazon-polly"), + ANSWERING_MACHINE_DETECTION("answering-machine-detection"), + ASSETS("assets"), + AUDIENCE_MINUTES("audience-minutes"), + AUDIENCE_MINUTES_AUDIO("audience-minutes-audio"), + AUTHY_AUTHENTICATIONS("authy-authentications"), + AUTHY_CALLS_OUTBOUND("authy-calls-outbound"), + AUTHY_EMAIL_AUTHENTICATIONS("authy-email-authentications"), + AUTHY_MONTHLY_FEES("authy-monthly-fees"), + AUTHY_OUTBOUND_EMAIL("authy-outbound-email"), + AUTHY_PHONE_INTELLIGENCE("authy-phone-intelligence"), + AUTHY_PHONE_VERIFICATIONS("authy-phone-verifications"), + AUTHY_SMS_OUTBOUND("authy-sms-outbound"), + AUTHY_VERIFY_EMAIL_VERIFICATIONS("authy-verify-email-verifications"), + AUTHY_VERIFY_OUTBOUND_EMAIL("authy-verify-outbound-email"), + AUTOPILOT("autopilot"), + AUTOPILOT_HOME_ASSISTANTS("autopilot-home-assistants"), + AUTOPILOT_MESSAGING("autopilot-messaging"), + AUTOPILOT_OTHER("autopilot-other"), + AUTOPILOT_VOICE("autopilot-voice"), + BASIC_PEER_TO_PEER_ROOMS_PARTICIPANT_MINUTES( + "basic-peer-to-peer-rooms-participant-minutes" + ), + BRANDED_CALLING("branded-calling"), + BUNDLE_SMS_BUCKET("bundle-sms-bucket"), + BUNDLE_SUBSCRIPTION_FEES("bundle-subscription-fees"), + CALL_FORWARDING_LOOKUPS("call-forwarding-lookups"), + CALL_PROGESS_EVENTS("call-progess-events"), + CALLERIDLOOKUPS("calleridlookups"), + CALLS("calls"), + CALLS_CLIENT("calls-client"), + CALLS_EMERGENCY("calls-emergency"), + CALLS_GLOBALCONFERENCE("calls-globalconference"), + CALLS_INBOUND("calls-inbound"), + CALLS_INBOUND_LOCAL("calls-inbound-local"), + CALLS_INBOUND_MOBILE("calls-inbound-mobile"), + CALLS_INBOUND_TOLLFREE("calls-inbound-tollfree"), + CALLS_INBOUND_TOLLFREE_LOCAL("calls-inbound-tollfree-local"), + CALLS_INBOUND_TOLLFREE_MOBILE("calls-inbound-tollfree-mobile"), + CALLS_MEDIA_STREAM_MINUTES("calls-media-stream-minutes"), + CALLS_OUTBOUND("calls-outbound"), + CALLS_PAY_VERB_TRANSACTIONS("calls-pay-verb-transactions"), + CALLS_RECORDINGS("calls-recordings"), + CALLS_SIP("calls-sip"), + CALLS_SIP_INBOUND("calls-sip-inbound"), + CALLS_SIP_OUTBOUND("calls-sip-outbound"), + CALLS_TEXT_TO_SPEECH("calls-text-to-speech"), + CALLS_TRANSFERS("calls-transfers"), + CARRIER_LOOKUPS("carrier-lookups"), + CATEGORY("category"), + CHANNELS("channels"), + CHANNELS_MESSAGING("channels-messaging"), + CHANNELS_MESSAGING_INBOUND("channels-messaging-inbound"), + CHANNELS_MESSAGING_OUTBOUND("channels-messaging-outbound"), + CHANNELS_WHATSAPP("channels-whatsapp"), + CHANNELS_WHATSAPP_CONVERSATION_AUTHENTICATION( + "channels-whatsapp-conversation-authentication" + ), + CHANNELS_WHATSAPP_CONVERSATION_FREE( + "channels-whatsapp-conversation-free" + ), + CHANNELS_WHATSAPP_CONVERSATION_MARKETING( + "channels-whatsapp-conversation-marketing" + ), + CHANNELS_WHATSAPP_CONVERSATION_SERVICE( + "channels-whatsapp-conversation-service" + ), + CHANNELS_WHATSAPP_CONVERSATION_UTILITY( + "channels-whatsapp-conversation-utility" + ), + CHANNELS_WHATSAPP_INBOUND("channels-whatsapp-inbound"), + CHANNELS_WHATSAPP_OUTBOUND("channels-whatsapp-outbound"), + CHAT_VIRTUAL_AGENT("chat-virtual-agent"), + CONVERSATION_RELAY("conversation-relay"), + CONVERSATIONS("conversations"), + CONVERSATIONS_API_REQUESTS("conversations-api-requests"), + CONVERSATIONS_CONVERSATION_EVENTS("conversations-conversation-events"), + CONVERSATIONS_ENDPOINT_CONNECTIVITY( + "conversations-endpoint-connectivity" + ), + CONVERSATIONS_EVENTS("conversations-events"), + CONVERSATIONS_PARTICIPANT_EVENTS("conversations-participant-events"), + CONVERSATIONS_PARTICIPANTS("conversations-participants"), + CPS("cps"), + CREDIT_TRANSFER("credit-transfer"), + EMAIL("email"), + EMERGING_TECH("emerging-tech"), + ENGAGEMENT_SUITE_PACKAGED_PLANS("engagement-suite-packaged-plans"), + ENHANCED_LINE_TYPE_LOOKUPS("enhanced-line-type-lookups"), + ENTERPRISE("enterprise"), + EVENTS("events"), + EXPERIMENT_FRANCE_SMS("experiment-france-sms"), + EXPERIMENT_INDIA_SMS("experiment-india-sms"), + EXPERIMENT_UK_SMS("experiment-uk-sms"), + FAILED_MESSAGE_PROCESSING_FEE("failed-message-processing-fee"), + FLEX("flex"), + FLEX_ACTIVE_USER_HOURS("flex-active-user-hours"), + FLEX_CONCURRENT_USERS("flex-concurrent-users"), + FLEX_CONVERSATIONAL_INSIGHTS("flex-conversational-insights"), + FLEX_CONVERSATIONAL_INSIGHTS_MESSAGES( + "flex-conversational-insights-messages" + ), + FLEX_CONVERSATIONAL_INSIGHTS_VOICE_MINUTES( + "flex-conversational-insights-voice-minutes" + ), + FLEX_EMAIL_USAGE("flex-email-usage"), + FLEX_MESSAGING_USAGE("flex-messaging-usage"), + FLEX_PARTNER_SPINSCI("flex-partner-spinsci"), + FLEX_PARTNER_XCELERATE("flex-partner-xcelerate"), + FLEX_RESELLER_ECOSYSTEM("flex-reseller-ecosystem"), + FLEX_UNIQUE_USER("flex-unique-user"), + FLEX_USAGE("flex-usage"), + FLEX_USERS("flex-users"), + FLEX_VOICE_MINUTE("flex-voice-minute"), + FLEX_YTICA("flex-ytica"), + FRAUD_LOOKUPS("fraud-lookups"), + FRONTLINE("frontline"), + FRONTLINE_USERS("frontline-users"), + FUNCTIONS("functions"), + GENERIC_PAY_TRANSACTIONS("generic-pay-transactions"), + GROUP_ROOMS("group-rooms"), + GROUP_ROOMS_DATA_TRACK("group-rooms-data-track"), + GROUP_ROOMS_ENCRYPTED_MEDIA_RECORDED( + "group-rooms-encrypted-media-recorded" + ), + GROUP_ROOMS_MEDIA_DOWNLOADED("group-rooms-media-downloaded"), + GROUP_ROOMS_MEDIA_RECORDED("group-rooms-media-recorded"), + GROUP_ROOMS_MEDIA_ROUTED("group-rooms-media-routed"), + GROUP_ROOMS_MEDIA_STORED("group-rooms-media-stored"), + GROUP_ROOMS_PARTICIPANT_MINUTES("group-rooms-participant-minutes"), + GROUP_ROOMS_RECORDED_MINUTES("group-rooms-recorded-minutes"), + IP_MESSAGING("ip-messaging"), + IP_MESSAGING_COMMANDS("ip-messaging-commands"), + IP_MESSAGING_DATA_STORAGE("ip-messaging-data-storage"), + IP_MESSAGING_DATA_TRANSFER("ip-messaging-data-transfer"), + IP_MESSAGING_ENDPOINT_CONNECTIVITY( + "ip-messaging-endpoint-connectivity" + ), + IVR_VIRTUAL_AGENT_CUSTOM_VOICES("ivr-virtual-agent-custom-voices"), + IVR_VIRTUAL_AGENT_GENAI("ivr-virtual-agent-genai"), + LINE_STATUS_LOOKUPS("line-status-lookups"), + LIVE_ACTIVITY_LOOKUPS("live-activity-lookups"), + LOOKUP_BUCKET_ADJUSTMENT("lookup-bucket-adjustment"), + LOOKUP_IDENTITY_MATCH("lookup-identity-match"), + LOOKUPS("lookups"), + MARKETPLACE("marketplace"), + MARKETPLACE_ALGORITHMIA_NAMED_ENTITY_RECOGNITION( + "marketplace-algorithmia-named-entity-recognition" + ), + MARKETPLACE_CADENCE_TRANSCRIPTION("marketplace-cadence-transcription"), + MARKETPLACE_CADENCE_TRANSLATION("marketplace-cadence-translation"), + MARKETPLACE_CAPIO_SPEECH_TO_TEXT("marketplace-capio-speech-to-text"), + MARKETPLACE_CONVRIZA_ABABA("marketplace-convriza-ababa"), + MARKETPLACE_DEEPGRAM_PHRASE_DETECTOR( + "marketplace-deepgram-phrase-detector" + ), + MARKETPLACE_DEEPGRAM_TRANSCRIPTION( + "marketplace-deepgram-transcription" + ), + MARKETPLACE_DEEPGRAM_TRANSCRIPTION_BASE( + "marketplace-deepgram-transcription-base" + ), + MARKETPLACE_DEEPGRAM_TRANSSCRIPTION_ENHANCED( + "marketplace-deepgram-transscription-enhanced" + ), + MARKETPLACE_DIGITAL_SEGMENT_BUSINESS_INFO( + "marketplace-digital-segment-business-info" + ), + MARKETPLACE_FACEBOOK_OFFLINE_CONVERSIONS( + "marketplace-facebook-offline-conversions" + ), + MARKETPLACE_GOOGLE_SPEECH_TO_TEXT("marketplace-google-speech-to-text"), + MARKETPLACE_IBM_WATSON_MESSAGE_INSIGHTS( + "marketplace-ibm-watson-message-insights" + ), + MARKETPLACE_IBM_WATSON_MESSAGE_SENTIMENT( + "marketplace-ibm-watson-message-sentiment" + ), + MARKETPLACE_IBM_WATSON_RECORDING_ANALYSIS( + "marketplace-ibm-watson-recording-analysis" + ), + MARKETPLACE_IBM_WATSON_TONE_ANALYZER( + "marketplace-ibm-watson-tone-analyzer" + ), + MARKETPLACE_ICEHOOK_SYSTEMS_SCOUT("marketplace-icehook-systems-scout"), + MARKETPLACE_INFOGROUP_DATAAXLE_BIZINFO( + "marketplace-infogroup-dataaxle-bizinfo" + ), + MARKETPLACE_KEEN_IO_CONTACT_CENTER_ANALYTICS( + "marketplace-keen-io-contact-center-analytics" + ), + MARKETPLACE_MARCHEX_CLEANCALL("marketplace-marchex-cleancall"), + MARKETPLACE_MARCHEX_RECORDING_ANALYSIS( + "marketplace-marchex-recording-analysis" + ), + MARKETPLACE_MARCHEX_SENTIMENT_ANALYSIS_FOR_SMS( + "marketplace-marchex-sentiment-analysis-for-sms" + ), + MARKETPLACE_MARKETPLACE_NEXTCALLER_SOCIAL_ID( + "marketplace-marketplace-nextcaller-social-id" + ), + MARKETPLACE_MOBILE_COMMONS_OPT_OUT_CLASSIFIER( + "marketplace-mobile-commons-opt-out-classifier" + ), + MARKETPLACE_NEXIWAVE_VOICEMAIL_TO_TEXT( + "marketplace-nexiwave-voicemail-to-text" + ), + MARKETPLACE_NEXTCALLER_ADVANCED_CALLER_IDENTIFICATION( + "marketplace-nextcaller-advanced-caller-identification" + ), + MARKETPLACE_NOMOROBO_SPAM_SCORE("marketplace-nomorobo-spam-score"), + MARKETPLACE_PAY_ADDONS("marketplace-pay-addons"), + MARKETPLACE_PAY_ADDONS_BASECOMMERCE_PAY_CONNECTOR( + "marketplace-pay-addons-basecommerce-pay-connector" + ), + MARKETPLACE_PAY_ADDONS_BRAINTREE_PAY_CONNECTOR( + "marketplace-pay-addons-braintree-pay-connector" + ), + MARKETPLACE_PAY_ADDONS_CARDCONNECT_PAY_CONNECTOR( + "marketplace-pay-addons-cardconnect-pay-connector" + ), + MARKETPLACE_PAY_ADDONS_CHASE_PAY_CONNECTOR( + "marketplace-pay-addons-chase-pay-connector" + ), + MARKETPLACE_PAY_ADDONS_SHUTTLE_PAY_CONNECTOR( + "marketplace-pay-addons-shuttle-pay-connector" + ), + MARKETPLACE_PAY_ADDONS_STRIPE_PAY_CONNECTOR( + "marketplace-pay-addons-stripe-pay-connector" + ), + MARKETPLACE_PAYFONE_TCPA_COMPLIANCE( + "marketplace-payfone-tcpa-compliance" + ), + MARKETPLACE_POLY_AI_CONNECTOR("marketplace-poly-ai-connector"), + MARKETPLACE_REALPHONEVALIDATION("marketplace-realphonevalidation"), + MARKETPLACE_REMEETING_AUTOMATIC_SPEECH_RECOGNITION( + "marketplace-remeeting-automatic-speech-recognition" + ), + MARKETPLACE_SPOKE_PHONE_LICENSE_PRO( + "marketplace-spoke-phone-license-pro" + ), + MARKETPLACE_SPOKE_PHONE_LICENSE_STANDARD( + "marketplace-spoke-phone-license-standard" + ), + MARKETPLACE_TCPA_DEFENSE_SOLUTIONS_BLACKLIST_FEED( + "marketplace-tcpa-defense-solutions-blacklist-feed" + ), + MARKETPLACE_TELO_OPENCNAM("marketplace-telo-opencnam"), + MARKETPLACE_TRESTLE_SOLUTIONS_CALLER_IDENTIFICATION( + "marketplace-trestle-solutions-caller-identification" + ), + MARKETPLACE_TRUECNAM_TRUE_SPAM("marketplace-truecnam-true-spam"), + MARKETPLACE_TWILIO_CALLER_NAME_LOOKUP_US( + "marketplace-twilio-caller-name-lookup-us" + ), + MARKETPLACE_TWILIO_CARRIER_INFORMATION_LOOKUP( + "marketplace-twilio-carrier-information-lookup" + ), + MARKETPLACE_VOICEBASE_PCI("marketplace-voicebase-pci"), + MARKETPLACE_VOICEBASE_TRANSCRIPTION( + "marketplace-voicebase-transcription" + ), + MARKETPLACE_VOICEBASE_TRANSCRIPTION_CUSTOM_VOCABULARY( + "marketplace-voicebase-transcription-custom-vocabulary" + ), + MARKETPLACE_WEB_PURIFY_PROFANITY_FILTER( + "marketplace-web-purify-profanity-filter" + ), + MARKETPLACE_WHITEPAGES_PRO_CALLER_IDENTIFICATION( + "marketplace-whitepages-pro-caller-identification" + ), + MARKETPLACE_WHITEPAGES_PRO_PHONE_INTELLIGENCE( + "marketplace-whitepages-pro-phone-intelligence" + ), + MARKETPLACE_WHITEPAGES_PRO_PHONE_REPUTATION( + "marketplace-whitepages-pro-phone-reputation" + ), + MARKETPLACE_WOLFARM_SPOKEN_RESULTS( + "marketplace-wolfarm-spoken-results" + ), + MARKETPLACE_WOLFRAM_SHORT_ANSWER("marketplace-wolfram-short-answer"), + MARKETPLACE_YTICA_CONTACT_CENTER_REPORTING_ANALYTICS( + "marketplace-ytica-contact-center-reporting-analytics" + ), + MARKETPLAY_PAY_ADDONS_SHUTTLE_PAY_CONNECTOR( + "marketplay-pay-addons-shuttle-pay-connector" + ), + MEDIA_COMPOSER_MINUTES("media-composer-minutes"), + MEDIASTORAGE("mediastorage"), + MIN_SPEND_ADJUSTMENTS("min-spend-adjustments"), + MMS("mms"), + MMS_INBOUND("mms-inbound"), + MMS_INBOUND_LONGCODE("mms-inbound-longcode"), + MMS_INBOUND_SHORTCODE("mms-inbound-shortcode"), + MMS_INBOUND_TOLL_FREE("mms-inbound-toll-free"), + MMS_MESSAGES_CARRIERFEES("mms-messages-carrierfees"), + MMS_OUTBOUND("mms-outbound"), + MMS_OUTBOUND_LONGCODE("mms-outbound-longcode"), + MMS_OUTBOUND_SHORTCODE("mms-outbound-shortcode"), + MMS_OUTBOUND_TOLLFREE("mms-outbound-tollfree"), + MONITOR("monitor"), + MONITOR_READS("monitor-reads"), + MONITOR_STORAGE("monitor-storage"), + MONITOR_WRITES("monitor-writes"), + NOTIFY("notify"), + NOTIFY_ACTIONS_ATTEMPTS("notify-actions-attempts"), + NOTIFY_CHANNELS("notify-channels"), + NUMBER_FORMAT_LOOKUPS("number-format-lookups"), + PCHAT("pchat"), + PCHAT_ACTIONS("pchat-actions"), + PCHAT_APS("pchat-aps"), + PCHAT_CONV_MED_STORAGE("pchat-conv-med-storage"), + PCHAT_MESSAGES("pchat-messages"), + PCHAT_NOTIFICATIONS("pchat-notifications"), + PCHAT_READS("pchat-reads"), + PCHAT_USERS("pchat-users"), + PEER_TO_PEER_ROOMS_PARTICIPANT_MINUTES( + "peer-to-peer-rooms-participant-minutes" + ), + PFAX("pfax"), + PFAX_MINUTES("pfax-minutes"), + PFAX_MINUTES_INBOUND("pfax-minutes-inbound"), + PFAX_MINUTES_OUTBOUND("pfax-minutes-outbound"), + PFAX_PAGES("pfax-pages"), + PHONE_QUALITY_SCORE_LOOKUPS("phone-quality-score-lookups"), + PHONENUMBERS("phonenumbers"), + PHONENUMBERS_CPS("phonenumbers-cps"), + PHONENUMBERS_EMERGENCY("phonenumbers-emergency"), + PHONENUMBERS_LOCAL("phonenumbers-local"), + PHONENUMBERS_MOBILE("phonenumbers-mobile"), + PHONENUMBERS_PORTING("phonenumbers-porting"), + PHONENUMBERS_SETUPS("phonenumbers-setups"), + PHONENUMBERS_TOLLFREE("phonenumbers-tollfree"), + PREMIUMSUPPORT("premiumsupport"), + PREMIUMSUPPORT_PERCENTAGE_SPEND("premiumsupport-percentage-spend"), + PROGRAMMABLEVOICE_PLATFORM("programmablevoice-platform"), + PROGRAMMABLEVOICECONN_CLIENTSDK("programmablevoiceconn-clientsdk"), + PROGRAMMABLEVOICECONN_CLIENTSDK_INBOUND( + "programmablevoiceconn-clientsdk-inbound" + ), + PROGRAMMABLEVOICECONN_CLIENTSDK_OUTBOUND( + "programmablevoiceconn-clientsdk-outbound" + ), + PROGRAMMABLEVOICECONN_ONNET("programmablevoiceconn-onnet"), + PROGRAMMABLEVOICECONN_ONNET_INBOUND( + "programmablevoiceconn-onnet-inbound" + ), + PROGRAMMABLEVOICECONN_ONNET_OUTBOUND( + "programmablevoiceconn-onnet-outbound" + ), + PROGRAMMABLEVOICECONN_SIP("programmablevoiceconn-sip"), + PROGRAMMABLEVOICECONN_SIP_INBOUND("programmablevoiceconn-sip-inbound"), + PROGRAMMABLEVOICECONN_SIP_OUTBOUND( + "programmablevoiceconn-sip-outbound" + ), + PROGRAMMABLEVOICECONNECTIVITY("programmablevoiceconnectivity"), + PROXY("proxy"), + PROXY_ACTIVE_SESSIONS("proxy-active-sessions"), + PROXY_BUCKET_ADJUSTMENT("proxy-bucket-adjustment"), + PROXY_LICENSES("proxy-licenses"), + PSTNCONNECTIVITY("pstnconnectivity"), + PSTNCONNECTIVITY_INBOUND("pstnconnectivity-inbound"), + PSTNCONNECTIVITY_OUTBOUND("pstnconnectivity-outbound"), + PV("pv"), + PV_BASIC_ROOMS("pv-basic-rooms"), + PV_COMPOSITION_MEDIA_DOWNLOADED("pv-composition-media-downloaded"), + PV_COMPOSITION_MEDIA_ENCRYPTED("pv-composition-media-encrypted"), + PV_COMPOSITION_MEDIA_STORED("pv-composition-media-stored"), + PV_COMPOSITION_MINUTES("pv-composition-minutes"), + PV_RECORDING_COMPOSITIONS("pv-recording-compositions"), + PV_ROOM_PARTICIPANTS("pv-room-participants"), + PV_ROOM_PARTICIPANTS_AU1("pv-room-participants-au1"), + PV_ROOM_PARTICIPANTS_BR1("pv-room-participants-br1"), + PV_ROOM_PARTICIPANTS_IE1("pv-room-participants-ie1"), + PV_ROOM_PARTICIPANTS_JP1("pv-room-participants-jp1"), + PV_ROOM_PARTICIPANTS_SG1("pv-room-participants-sg1"), + PV_ROOM_PARTICIPANTS_US1("pv-room-participants-us1"), + PV_ROOM_PARTICIPANTS_US2("pv-room-participants-us2"), + PV_ROOMS("pv-rooms"), + PV_SIP_ENDPOINT_REGISTRATIONS("pv-sip-endpoint-registrations"), + RCS_MESSAGES("rcs-messages"), + REASSIGNED_NUMBER("reassigned-number"), + RECORDINGS("recordings"), + RECORDINGSTORAGE("recordingstorage"), + SHORTCODES("shortcodes"), + SHORTCODES_CUSTOMEROWNED("shortcodes-customerowned"), + SHORTCODES_MMS_ENABLEMENT("shortcodes-mms-enablement"), + SHORTCODES_MPS("shortcodes-mps"), + SHORTCODES_RANDOM("shortcodes-random"), + SHORTCODES_SETUP_FEES("shortcodes-setup-fees"), + SHORTCODES_UK("shortcodes-uk"), + SHORTCODES_VANITY("shortcodes-vanity"), + SIM_SWAP_LOOKUPS("sim-swap-lookups"), + SIP_SECURE_MEDIA("sip-secure-media"), + SMALL_GROUP_ROOMS("small-group-rooms"), + SMALL_GROUP_ROOMS_DATA_TRACK("small-group-rooms-data-track"), + SMALL_GROUP_ROOMS_PARTICIPANT_MINUTES( + "small-group-rooms-participant-minutes" + ), + SMS("sms"), + SMS_INBOUND("sms-inbound"), + SMS_INBOUND_LONGCODE("sms-inbound-longcode"), + SMS_INBOUND_SHORTCODE("sms-inbound-shortcode"), + SMS_INBOUND_TOLLFREE("sms-inbound-tollfree"), + SMS_MESSAGES_CARRIERFEES("sms-messages-carrierfees"), + SMS_MESSAGES_FEATURES("sms-messages-features"), + SMS_MESSAGES_FEATURES_ENGAGEMENT_SUITE( + "sms-messages-features-engagement-suite" + ), + SMS_MESSAGES_FEATURES_MESSAGE_REDACTION( + "sms-messages-features-message-redaction" + ), + SMS_MESSAGES_FEATURES_SENDERID("sms-messages-features-senderid"), + SMS_MPS("sms-mps"), + SMS_MPS_SHORTCODE("sms-mps-shortcode"), + SMS_MPS_TOLLFREE("sms-mps-tollfree"), + SMS_MPS_TOLLFREE_SETUP("sms-mps-tollfree-setup"), + SMS_NATIONAL_REGULATORY_PROTECTION( + "sms-national-regulatory-protection" + ), + SMS_OUTBOUND("sms-outbound"), + SMS_OUTBOUND_CONTENT_INSPECTION("sms-outbound-content-inspection"), + SMS_OUTBOUND_LONGCODE("sms-outbound-longcode"), + SMS_OUTBOUND_SHORTCODE("sms-outbound-shortcode"), + SMS_OUTBOUND_TOLLFREE("sms-outbound-tollfree"), + SMS_PUMPING_PROTECTION("sms-pumping-protection"), + SMS_PUMPING_RISK("sms-pumping-risk"), + SMSMESSAGES_BUCKET_ADJUSTMENTS("smsmessages-bucket-adjustments"), + SMSMESSAGES_OUTBOUND_DOMESTIC("smsmessages-outbound-domestic"), + SPEECH_RECOGNITION("speech-recognition"), + STUDIO_ENGAGEMENTS("studio-engagements"), + SYNC("sync"), + SYNC_ACTIONS("sync-actions"), + SYNC_ENDPOINT_HOURS("sync-endpoint-hours"), + SYNC_ENDPOINT_HOURS_ABOVE_DAILY_CAP( + "sync-endpoint-hours-above-daily-cap" + ), + TASKROUTER_TASKS("taskrouter-tasks"), + TOTALPRICE("totalprice"), + TRANSCRIPTIONS("transcriptions"), + TRUNKING_CPS("trunking-cps"), + TRUNKING_EMERGENCY_CALLS("trunking-emergency-calls"), + TRUNKING_ORIGINATION("trunking-origination"), + TRUNKING_ORIGINATION_LOCAL("trunking-origination-local"), + TRUNKING_ORIGINATION_MOBILE("trunking-origination-mobile"), + TRUNKING_ORIGINATION_TOLLFREE("trunking-origination-tollfree"), + TRUNKING_RECORDINGS("trunking-recordings"), + TRUNKING_SECURE("trunking-secure"), + TRUNKING_TERMINATION("trunking-termination"), + TTS_GOOGLE("tts-google"), + TURNMEGABYTES("turnmegabytes"), + TURNMEGABYTES_AUSTRALIA("turnmegabytes-australia"), + TURNMEGABYTES_BRASIL("turnmegabytes-brasil"), + TURNMEGABYTES_GERMANY("turnmegabytes-germany"), + TURNMEGABYTES_INDIA("turnmegabytes-india"), + TURNMEGABYTES_IRELAND("turnmegabytes-ireland"), + TURNMEGABYTES_JAPAN("turnmegabytes-japan"), + TURNMEGABYTES_SINGAPORE("turnmegabytes-singapore"), + TURNMEGABYTES_USEAST("turnmegabytes-useast"), + TURNMEGABYTES_USWEST("turnmegabytes-uswest"), + TWILIO_FOR_SALESFORCE("twilio-for-salesforce"), + TWILIO_FOR_SALESFORCE_LICENSES("twilio-for-salesforce-licenses"), + TWILIO_INTERCONNECT("twilio-interconnect"), + TWIML("twiml"), + USAGE_FLEX_VIDEO("usage-flex-video"), + USAGE_FUNCTIONS("usage-functions"), + USAGE_RCS_BASIC_MESSAGES_OUTBOUND("usage-rcs-basic-messages-outbound"), + USAGE_RCS_MESSAGES("usage-rcs-messages"), + USAGE_RCS_MESSAGES_INBOUND("usage-rcs-messages-inbound"), + USAGE_RCS_MESSAGING_CARRIER_FEES("usage-rcs-messaging-carrier-fees"), + USAGE_RCS_SINGLE_MESSAGES_OUTBOUND( + "usage-rcs-single-messages-outbound" + ), + VERIFY_PACKAGE_PLANS("verify-package-plans"), + VERIFY_PUSH("verify-push"), + VERIFY_SNA("verify-sna"), + VERIFY_TOTP("verify-totp"), + VERIFY_VOICE_SMS("verify-voice-sms"), + VERIFY_WHATSAPP_CONVERSATIONS_BUSINESS_INITIATED( + "verify-whatsapp-conversations-business-initiated" + ), + VIDEO_RECORDINGS("video-recordings"), + VIDEO_ROOMS_TURN_MEGABYTES("video-rooms-turn-megabytes"), + VIRTUAL_AGENT("virtual-agent"), + VOICE_INSIGHTS("voice-insights"), + VOICE_INSIGHTS_CLIENT_INSIGHTS_ON_DEMAND_MINUTE( + "voice-insights-client-insights-on-demand-minute" + ), + VOICE_INSIGHTS_PTSN_INSIGHTS_ON_DEMAND_MINUTE( + "voice-insights-ptsn-insights-on-demand-minute" + ), + VOICE_INSIGHTS_SIP_INTERFACE_INSIGHTS_ON_DEMAND_MINUTE( + "voice-insights-sip-interface-insights-on-demand-minute" + ), + VOICE_INSIGHTS_SIP_TRUNKING_INSIGHTS_ON_DEMAND_MINUTE( + "voice-insights-sip-trunking-insights-on-demand-minute" + ), + VOICE_INTELLIGENCE("voice-intelligence"), + VOICE_INTELLIGENCE_EIP_OPERATORS("voice-intelligence-eip-operators"), + VOICE_INTELLIGENCE_OPERATORS("voice-intelligence-operators"), + VOICE_INTELLIGENCE_TRANSCRIPTION("voice-intelligence-transcription"), + WDS("wds"), + WIRELESS("wireless"), + WIRELESS_DATA("wireless-data"), + WIRELESS_DATA_PAYG("wireless-data-payg"), + WIRELESS_DATA_PAYG_AFRICA("wireless-data-payg-africa"), + WIRELESS_DATA_PAYG_ASIA("wireless-data-payg-asia"), + WIRELESS_DATA_PAYG_CENTRALANDSOUTHAMERICA( + "wireless-data-payg-centralandsouthamerica" + ), + WIRELESS_DATA_PAYG_EUROPE("wireless-data-payg-europe"), + WIRELESS_DATA_PAYG_NORTHAMERICA("wireless-data-payg-northamerica"), + WIRELESS_DATA_PAYG_OCEANIA("wireless-data-payg-oceania"), + WIRELESS_DATA_QUOTA1("wireless-data-quota1"), + WIRELESS_DATA_QUOTA1_AFRICA("wireless-data-quota1-africa"), + WIRELESS_DATA_QUOTA1_ASIA("wireless-data-quota1-asia"), + WIRELESS_DATA_QUOTA1_CENTRALANDSOUTHAMERICA( + "wireless-data-quota1-centralandsouthamerica" + ), + WIRELESS_DATA_QUOTA1_EUROPE("wireless-data-quota1-europe"), + WIRELESS_DATA_QUOTA1_NORTHAMERICA("wireless-data-quota1-northamerica"), + WIRELESS_DATA_QUOTA1_OCEANIA("wireless-data-quota1-oceania"), + WIRELESS_DATA_QUOTA10("wireless-data-quota10"), + WIRELESS_DATA_QUOTA10_AFRICA("wireless-data-quota10-africa"), + WIRELESS_DATA_QUOTA10_ASIA("wireless-data-quota10-asia"), + WIRELESS_DATA_QUOTA10_CENTRALANDSOUTHAMERICA( + "wireless-data-quota10-centralandsouthamerica" + ), + WIRELESS_DATA_QUOTA10_EUROPE("wireless-data-quota10-europe"), + WIRELESS_DATA_QUOTA10_NORTHAMERICA( + "wireless-data-quota10-northamerica" + ), + WIRELESS_DATA_QUOTA10_OCEANIA("wireless-data-quota10-oceania"), + WIRELESS_DATA_QUOTA50("wireless-data-quota50"), + WIRELESS_DATA_QUOTA50_AFRICA("wireless-data-quota50-africa"), + WIRELESS_DATA_QUOTA50_ASIA("wireless-data-quota50-asia"), + WIRELESS_DATA_QUOTA50_CENTRALANDSOUTHAMERICA( + "wireless-data-quota50-centralandsouthamerica" + ), + WIRELESS_DATA_QUOTA50_EUROPE("wireless-data-quota50-europe"), + WIRELESS_DATA_QUOTA50_NORTHAMERICA( + "wireless-data-quota50-northamerica" + ), + WIRELESS_DATA_QUOTA50_OCEANIA("wireless-data-quota50-oceania"), + WIRELESS_DATA_QUOTACUSTOM("wireless-data-quotacustom"), + WIRELESS_DATA_QUOTACUSTOM_AFRICA("wireless-data-quotacustom-africa"), + WIRELESS_DATA_QUOTACUSTOM_ASIA("wireless-data-quotacustom-asia"), + WIRELESS_DATA_QUOTACUSTOM_CENTRALANDSOUTHAMERICA( + "wireless-data-quotacustom-centralandsouthamerica" + ), + WIRELESS_DATA_QUOTACUSTOM_EUROPE("wireless-data-quotacustom-europe"), + WIRELESS_DATA_QUOTACUSTOM_NORTHAMERICA( + "wireless-data-quotacustom-northamerica" + ), + WIRELESS_DATA_QUOTACUSTOM_OCEANIA("wireless-data-quotacustom-oceania"), + WIRELESS_MRC_PAYG("wireless-mrc-payg"), + WIRELESS_MRC_QUOTA1("wireless-mrc-quota1"), + WIRELESS_MRC_QUOTA10("wireless-mrc-quota10"), + WIRELESS_MRC_QUOTA50("wireless-mrc-quota50"), + WIRELESS_MRC_QUOTACUSTOM("wireless-mrc-quotacustom"), + WIRELESS_ORDERS("wireless-orders"), + WIRELESS_ORDERS_ARTWORK("wireless-orders-artwork"), + WIRELESS_ORDERS_BULK("wireless-orders-bulk"), + WIRELESS_ORDERS_ESIM("wireless-orders-esim"), + WIRELESS_ORDERS_STARTER("wireless-orders-starter"), + WIRELESS_QUOTAS("wireless-quotas"), + WIRELESS_SMS_AFRICA("wireless-sms-africa"), + WIRELESS_SMS_ASIA("wireless-sms-asia"), + WIRELESS_SMS_CENTRALANDSOUTHAMERICA( + "wireless-sms-centralandsouthamerica" + ), + WIRELESS_SMS_EUROPE("wireless-sms-europe"), + WIRELESS_SMS_NORTHAMERICA("wireless-sms-northamerica"), + WIRELESS_SMS_OCEANIA("wireless-sms-oceania"), + WIRELESS_SUPER_SIM("wireless-super-sim"), + WIRELESS_SUPER_SIM_DATA("wireless-super-sim-data"), + WIRELESS_SUPER_SIM_DATA_NORTH_AMERICA_USA( + "wireless-super-sim-data-north-america-usa" + ), + WIRELESS_SUPER_SIM_DATA_PAYG("wireless-super-sim-data-payg"), + WIRELESS_SUPER_SIM_DATA_PAYG_EUROPE( + "wireless-super-sim-data-payg-europe" + ), + WIRELESS_SUPER_SIM_DATA_PAYG_NORTH_AMERICA( + "wireless-super-sim-data-payg-north-america" + ), + WIRELESS_SUPER_SIM_HARDWARE("wireless-super-sim-hardware"), + WIRELESS_SUPER_SIM_HARDWARE_BULK("wireless-super-sim-hardware-bulk"), + WIRELESS_SUPER_SIM_SMSCOMMANDS("wireless-super-sim-smscommands"), + WIRELESS_SUPER_SIM_SMSCOMMANDS_AFRICA( + "wireless-super-sim-smscommands-africa" + ), + WIRELESS_SUPER_SIM_SMSCOMMANDS_ASIA( + "wireless-super-sim-smscommands-asia" + ), + WIRELESS_SUPER_SIM_SMSCOMMANDS_CENT_AND_SOUTH_AMERICA( + "wireless-super-sim-smscommands-cent-and-south-america" + ), + WIRELESS_SUPER_SIM_SMSCOMMANDS_EUROPE( + "wireless-super-sim-smscommands-europe" + ), + WIRELESS_SUPER_SIM_SMSCOMMANDS_NORTH_AMERICA( + "wireless-super-sim-smscommands-north-america" + ), + WIRELESS_SUPER_SIM_SMSCOMMANDS_OCEANIA( + "wireless-super-sim-smscommands-oceania" + ), + WIRELESS_SUPER_SIM_SUBSCRIPTION("wireless-super-sim-subscription"), + WIRELESS_SUPER_SIM_SUBSCRIPTION_PAYG( + "wireless-super-sim-subscription-payg" + ), + WIRELESS_USAGE("wireless-usage"), + WIRELESS_USAGE_COMMANDS("wireless-usage-commands"), + WIRELESS_USAGE_COMMANDS_AFRICA("wireless-usage-commands-africa"), + WIRELESS_USAGE_COMMANDS_ASIA("wireless-usage-commands-asia"), + WIRELESS_USAGE_COMMANDS_CENTRALANDSOUTHAMERICA( + "wireless-usage-commands-centralandsouthamerica" + ), + WIRELESS_USAGE_COMMANDS_EUROPE("wireless-usage-commands-europe"), + WIRELESS_USAGE_COMMANDS_HOME("wireless-usage-commands-home"), + WIRELESS_USAGE_COMMANDS_NORTHAMERICA( + "wireless-usage-commands-northamerica" + ), + WIRELESS_USAGE_COMMANDS_OCEANIA("wireless-usage-commands-oceania"), + WIRELESS_USAGE_COMMANDS_ROAMING("wireless-usage-commands-roaming"), + WIRELESS_USAGE_DATA("wireless-usage-data"), + WIRELESS_USAGE_DATA_AFRICA("wireless-usage-data-africa"), + WIRELESS_USAGE_DATA_ASIA("wireless-usage-data-asia"), + WIRELESS_USAGE_DATA_CENTRALANDSOUTHAMERICA( + "wireless-usage-data-centralandsouthamerica" + ), + WIRELESS_USAGE_DATA_CUSTOM_ADDITIONALMB( + "wireless-usage-data-custom-additionalmb" + ), + WIRELESS_USAGE_DATA_CUSTOM_FIRST5MB( + "wireless-usage-data-custom-first5mb" + ), + WIRELESS_USAGE_DATA_DOMESTIC_ROAMING( + "wireless-usage-data-domestic-roaming" + ), + WIRELESS_USAGE_DATA_EUROPE("wireless-usage-data-europe"), + WIRELESS_USAGE_DATA_INDIVIDUAL_ADDITIONALGB( + "wireless-usage-data-individual-additionalgb" + ), + WIRELESS_USAGE_DATA_INDIVIDUAL_FIRSTGB( + "wireless-usage-data-individual-firstgb" + ), + WIRELESS_USAGE_DATA_INTERNATIONAL_ROAMING_CANADA( + "wireless-usage-data-international-roaming-canada" + ), + WIRELESS_USAGE_DATA_INTERNATIONAL_ROAMING_INDIA( + "wireless-usage-data-international-roaming-india" + ), + WIRELESS_USAGE_DATA_INTERNATIONAL_ROAMING_MEXICO( + "wireless-usage-data-international-roaming-mexico" + ), + WIRELESS_USAGE_DATA_NORTHAMERICA("wireless-usage-data-northamerica"), + WIRELESS_USAGE_DATA_OCEANIA("wireless-usage-data-oceania"), + WIRELESS_USAGE_DATA_POOLED("wireless-usage-data-pooled"), + WIRELESS_USAGE_DATA_POOLED_DOWNLINK( + "wireless-usage-data-pooled-downlink" + ), + WIRELESS_USAGE_DATA_POOLED_UPLINK("wireless-usage-data-pooled-uplink"), + WIRELESS_USAGE_MRC("wireless-usage-mrc"), + WIRELESS_USAGE_MRC_CUSTOM("wireless-usage-mrc-custom"), + WIRELESS_USAGE_MRC_INDIVIDUAL("wireless-usage-mrc-individual"), + WIRELESS_USAGE_MRC_POOLED("wireless-usage-mrc-pooled"), + WIRELESS_USAGE_MRC_SUSPENDED("wireless-usage-mrc-suspended"), + WIRELESS_USAGE_SMS("wireless-usage-sms"), + WIRELESS_USAGE_VOICE("wireless-usage-voice"), + A2P_FAST_TRACK_ONBOARDING("a2p-fast-track-onboarding"), + ADVISORY_SERVICES("advisory-services"), + ADVISORY_SERVICES_BILLED("advisory-services-billed"), + ADVISORY_SERVICES_CALL_TRACKING("advisory-services-call-tracking"), + ADVISORY_SERVICES_DATA_SERVICES("advisory-services-data-services"), + ADVISORY_SERVICES_EXPENSES("advisory-services-expenses"), + ADVISORY_SERVICES_SIP_TRUNKING("advisory-services-sip-trunking"), + ASSETS_REQUESTS("assets-requests"), + AUDIENCE_MINUTES_VIDEO("audience-minutes-video"), + AUTHY_BUCKET_ADJUSTMENT("authy-bucket-adjustment"), + AUTHY_SOFTWARE("authy-software"), + CALLERIDLOOKUPS_API("calleridlookups-api"), + CALLERIDLOOKUPS_PROGRAMMABLEVOICE("calleridlookups-programmablevoice"), + CALLERIDLOOKUPS_TRUNKING("calleridlookups-trunking"), + CALLS_TRUNKING_INBOUND_TOLLFREE_LOCAL( + "calls-trunking-inbound-tollfree-local" + ), + CALLS_TRUNKING_INBOUND_TOLLFREE_MOBILE( + "calls-trunking-inbound-tollfree-mobile" + ), + CHANNELS_WHATSAPP_CONVERSATION_FREE_1( + "channels-whatsapp-conversation-free-1" + ), + CONFERENCE("conference"), + CONVERSATIONAL_INSIGHTS("conversational-insights"), + CONVERSATIONAL_INSIGHTS_MESSAGES("conversational-insights-messages"), + CONVERSATIONAL_INSIGHTS_VOICE_MINUTES( + "conversational-insights-voice-minutes" + ), + DEMO("demo"), + DEMO_UC_SCRIPT_TEST("demo-uc-script-test"), + ELASTIC_SIP_TRUNKING("elastic-sip-trunking"), + ELASTIC_SIP_TRUNKING_CALL_TRANSFERS( + "elastic-sip-trunking-call-transfers" + ), + ENTERPRISE_HIPPA("enterprise-hippa"), + FLEX_NAMED_USERS("flex-named-users"), + FLEX_SPINSCI("flex-spinsci"), + FLEX_USERS_1("flex-users-1"), + FLEX_WFO_PREMIUM_SPEECH_ANALYTICS("flex-wfo-premium-speech-analytics"), + FLEX_XCELERATE("flex-xcelerate"), + FUNCTIONS_ROLLUP("functions-rollup"), + IMP_V1_USAGE("imp-v1-usage"), + IP_MESSAGING_ADDONS("ip-messaging-addons"), + IVR("ivr"), + IVR_CONVERSATIONAL("ivr-conversational"), + IVR_DTMF("ivr-dtmf"), + IVR_VIRTUALAGENT("ivr-virtualagent"), + LIVE("live"), + LIVE_MEDIA_RECORDING_MINUTES("live-media-recording-minutes"), + LONGCODE_MPS("longcode-mps"), + MARKETPLACE_ANALYTICS_ADDONS("marketplace-analytics-addons"), + MARKETPLACE_ISV_ADDONS("marketplace-isv-addons"), + MARKETPLACE_MESSAGING_ADDONS("marketplace-messaging-addons"), + MARKETPLACE_PHONENUMBERS_ADDONS("marketplace-phonenumbers-addons"), + MARKETPLACE_RECORDING_ADDONS("marketplace-recording-addons"), + MARKETPLACE_VIRTUALAGENT_ADDONS("marketplace-virtualagent-addons"), + MARKETPLAY_PAY_ADDONS_SHUTTLE_PAY_CONNECTOR_1( + "marketplay-pay-addons-shuttle-pay-connector-1" + ), + MARKETPLAY_PAY_ADDONS_STRIPE_PAY_CONNECTOR( + "marketplay-pay-addons-stripe-pay-connector" + ), + MMS_INBOUND_LONGCODE_CANADA("mms-inbound-longcode-canada"), + MMS_INBOUND_LONGCODE_UNITEDSTATES("mms-inbound-longcode-unitedstates"), + MMS_OUTBOUND_LONGCODE_CANADA("mms-outbound-longcode-canada"), + MMS_OUTBOUND_LONGCODE_UNITEDSTATES( + "mms-outbound-longcode-unitedstates" + ), + MMS_OUTBOUND_TOLL_FREE("mms-outbound-toll-free"), + NOTIFY_CHATAPPSANDOTHERCHANNELS("notify-chatappsandotherchannels"), + NOTIFY_NOTIFYSERVICES("notify-notifyservices"), + NOTIFY_PUSHNOTIFICATIONS("notify-pushnotifications"), + PAYMENT_GATEWAY_CONNECTORS("payment-gateway-connectors"), + PAYMENT_SOLUTIONS("payment-solutions"), + PCHAT_BUCKET_ADJUSTMENT("pchat-bucket-adjustment"), + PHONENUMBERS_NUMBERS("phonenumbers-numbers"), + PROG_VOICE_CLIENT_ANDROID("prog-voice-client-android"), + PROG_VOICE_CLIENT_ANDROID_INBOUND("prog-voice-client-android-inbound"), + PROG_VOICE_CLIENT_ANDROID_OUTBOUND( + "prog-voice-client-android-outbound" + ), + PROG_VOICE_CLIENT_IOS("prog-voice-client-ios"), + PROG_VOICE_CLIENT_IOS_INBOUND("prog-voice-client-ios-inbound"), + PROG_VOICE_CLIENT_IOS_OUTBOUND("prog-voice-client-ios-outbound"), + PROG_VOICE_CLIENT_SDK("prog-voice-client-sdk"), + PROG_VOICE_CLIENT_WEB("prog-voice-client-web"), + PROG_VOICE_CLIENT_WEB_INBOUND("prog-voice-client-web-inbound"), + PROG_VOICE_CLIENT_WEB_OUTBOUND("prog-voice-client-web-outbound"), + PROGRAMMABLEVOICECONNECTIVITY_MEDIA_STREAMS( + "programmablevoiceconnectivity-media-streams" + ), + PSTNCONNECTIVITY_BYOC("pstnconnectivity-byoc"), + PSTNCONNECTIVITY_EMERGENCY("pstnconnectivity-emergency"), + PSTNCONNECTIVITY_MINUTES("pstnconnectivity-minutes"), + PSTNCONNECTIVITY_MINUTES_1("pstnconnectivity-minutes-1"), + PSTNCONNECTIVITY_MINUTESINBOUNDLOCAL( + "pstnconnectivity-minutesinboundlocal" + ), + PSTNCONNECTIVITY_MINUTESINBOUNDMOBILE( + "pstnconnectivity-minutesinboundmobile" + ), + PSTNCONNECTIVITY_MINUTESINBOUNDTOLLFREE( + "pstnconnectivity-minutesinboundtollfree" + ), + PSTNCONNECTIVITY_MINUTESINBOUNDTOLLFREELOCAL( + "pstnconnectivity-minutesinboundtollfreelocal" + ), + PSTNCONNECTIVITY_MINUTESINBOUNDTOLLFREEMOBILE( + "pstnconnectivity-minutesinboundtollfreemobile" + ), + PV_ROOM_HOURS("pv-room-hours"), + PV_ROOM_SIMULTANEOUS_PARTICIPANT_CONNECTIONS( + "pv-room-simultaneous-participant-connections" + ), + PVIDEO_ROOM_HOURS_AU1("pvideo-room-hours-au1"), + PVIDEO_ROOM_HOURS_BR1("pvideo-room-hours-br1"), + PVIDEO_ROOM_HOURS_IE1("pvideo-room-hours-ie1"), + PVIDEO_ROOM_HOURS_JP1("pvideo-room-hours-jp1"), + PVIDEO_ROOM_HOURS_SG1("pvideo-room-hours-sg1"), + PVIDEO_ROOM_HOURS_US1("pvideo-room-hours-us1"), + PVIDEO_ROOM_HOURS_US2("pvideo-room-hours-us2"), + RECORDINGS_ENCRYPTED("recordings-encrypted"), + SHORT_CODE_SETUP_FEES("short-code-setup-fees"), + SHORTCODES_MESSAGES_INBOUND("shortcodes-messages-inbound"), + SHORTCODES_MESSAGES_OUTBOUND("shortcodes-messages-outbound"), + SMS_MESSAGES_REGISTRATIONFEES("sms-messages-registrationfees"), + SMS_MMS_PENALTY_FEES("sms-mms-penalty-fees"), + SMS_MMS_PENALTY_FEES_1("sms-mms-penalty-fees-1"), + SMS_PUMPING_PROTECTION_NON_USCA("sms-pumping-protection-non-usca"), + SMS_PUMPING_PROTECTION_USCA("sms-pumping-protection-usca"), + STUDIO("studio"), + STUDIO_MONTHLY_FEES("studio-monthly-fees"), + SUPERSIM("supersim"), + TASK_ROUTER("task-router"), + TASK_ROUTER_WORKERS("task-router-workers"), + TEST_QUOTA_BUCKETS("test-quota-buckets"), + TEST_UC_SCRIPT_1("test-uc-script-1"), + TEST_UC_SCRIPT_DEMO_2("test-uc-script-demo-2"), + TEXT_TO_SPEECH("text-to-speech"), + TME("tme"), + TTS_BASIC("tts-basic"), + TWILIO_EDITIONS("twilio-editions"), + TWILIO_INTERCONNECT_CALIFORNIA("twilio-interconnect-california"), + TWILIO_INTERCONNECT_CALIFORNIA_MONTHLY( + "twilio-interconnect-california-monthly" + ), + TWILIO_INTERCONNECT_CALIFORNIA_SETUP( + "twilio-interconnect-california-setup" + ), + TWILIO_INTERCONNECT_FRANKFURT("twilio-interconnect-frankfurt"), + TWILIO_INTERCONNECT_FRANKFURT_MO("twilio-interconnect-frankfurt-mo"), + TWILIO_INTERCONNECT_FRANKFURT_SETUP( + "twilio-interconnect-frankfurt-setup" + ), + TWILIO_INTERCONNECT_LONDON("twilio-interconnect-london"), + TWILIO_INTERCONNECT_LONDON_MO("twilio-interconnect-london-mo"), + TWILIO_INTERCONNECT_LONDON_SETUP("twilio-interconnect-london-setup"), + TWILIO_INTERCONNECT_SAO_PAULO("twilio-interconnect-sao-paulo"), + TWILIO_INTERCONNECT_SAO_PAULO_MONTHLY( + "twilio-interconnect-sao-paulo-monthly" + ), + TWILIO_INTERCONNECT_SAO_PAULO_SETUP( + "twilio-interconnect-sao-paulo-setup" + ), + TWILIO_INTERCONNECT_SINGAPORE("twilio-interconnect-singapore"), + TWILIO_INTERCONNECT_SINGAPORE_MO("twilio-interconnect-singapore-mo"), + TWILIO_INTERCONNECT_SINGAPORE_SETUP( + "twilio-interconnect-singapore-setup" + ), + TWILIO_INTERCONNECT_SYDNEY("twilio-interconnect-sydney"), + TWILIO_INTERCONNECT_SYDNEY_MO("twilio-interconnect-sydney-mo"), + TWILIO_INTERCONNECT_SYDNEY_SETUP("twilio-interconnect-sydney-setup"), + TWILIO_INTERCONNECT_TOKYO("twilio-interconnect-tokyo"), + TWILIO_INTERCONNECT_TOKYO_MO("twilio-interconnect-tokyo-mo"), + TWILIO_INTERCONNECT_TOKYO_SETUP("twilio-interconnect-tokyo-setup"), + TWILIO_INTERCONNECT_VA("twilio-interconnect-va"), + TWILIO_INTERCONNECT_VA_MO("twilio-interconnect-va-mo"), + TWILIO_INTERCONNECT_VA_SETUP("twilio-interconnect-va-setup"), + TWIML_VERBS("twiml-verbs"), + TWIML_VERBS_SAY("twiml-verbs-say"), + USAGE_PROGRAMMABLE_MESSAGING_ENGAGEMENT_SUITE( + "usage-programmable-messaging-engagement-suite" + ), + USAGE_PROGRAMMABLE_MESSAGING_FEES_SERVICES( + "usage-programmable-messaging-fees-services" + ), + VERIFY_OUTBOUND_EMAIL("verify-outbound-email"), + VERIFY_PACKAGED_PLANS("verify-packaged-plans"), + VERIFY_SILENT_NETWORK_AUTH("verify-silent-network-auth"), + VERIFY_VOICE_AND_SMS("verify-voice-and-sms"), + VOICE_INSIGHTS_CLIENT_INSIGHTS_MONTHY_COMMIT( + "voice-insights-client-insights-monthy-commit" + ), + WIRELESS_DATA_PAYG_ASIA_AFG("wireless-data-payg-asia-afg"), + WIRELESS_MULTI_IMSI_SIM_COMMANDS("wireless-multi-imsi-sim-commands"), + WIRELESS_MULTI_IMSI_SIM_COMMANDS_USA( + "wireless-multi-imsi-sim-commands-usa" + ), + WIRELESS_MULTI_IMSI_SIM_DATA("wireless-multi-imsi-sim-data"), + WIRELESS_MULTI_IMSI_SIM_DATA_EU28("wireless-multi-imsi-sim-data-eu28"), + WIRELESS_MULTI_IMSI_SIM_DATA_USA("wireless-multi-imsi-sim-data-usa"), + WIRELESS_MULTI_IMSI_SIM_MONTHLY_FEES( + "wireless-multi-imsi-sim-monthly-fees" + ), + WIRELESS_MULTI_IMSI_SIM_USAGE("wireless-multi-imsi-sim-usage"), + WIRELESS_SUPER_SIM_DATA_NORTH_AMERICA( + "wireless-super-sim-data-north-america" + ), + WIRELESS_SUPER_SIM_USAGE("wireless-super-sim-usage"); + + private final String value; + + private Category(final String value) { + this.value = value; + } + + public String toString() { + return value; + } + + @JsonCreator + public static Category forValue(final String value) { + return Promoter.enumFromString(value, Category.values()); + } + } + /** * Converts a JSON String into a LastMonth object using the provided ObjectMapper. * @@ -116,7 +1042,7 @@ public static String toJson(Object object, ObjectMapper mapper) { private final String asOf; @Getter - private final String category; + private final LastMonth.Category category; @Getter private final String count; @@ -156,7 +1082,7 @@ private LastMonth( @JsonProperty("account_sid") final String accountSid, @JsonProperty("api_version") final String apiVersion, @JsonProperty("as_of") final String asOf, - @JsonProperty("category") final String category, + @JsonProperty("category") final LastMonth.Category category, @JsonProperty("count") final String count, @JsonProperty("count_unit") final String countUnit, @JsonProperty("description") final String description, diff --git a/src/main/java/com/twilio/rest/api/v2010/account/usage/record/LastMonthReader.java b/src/main/java/com/twilio/rest/api/v2010/account/usage/record/LastMonthReader.java index dd90cd163a..c23959db99 100644 --- a/src/main/java/com/twilio/rest/api/v2010/account/usage/record/LastMonthReader.java +++ b/src/main/java/com/twilio/rest/api/v2010/account/usage/record/LastMonthReader.java @@ -33,7 +33,7 @@ public class LastMonthReader extends Reader { private String pathAccountSid; - private String category; + private LastMonth.Category category; private LocalDate startDate; private LocalDate endDate; private Boolean includeSubaccounts; @@ -45,7 +45,7 @@ public LastMonthReader(final String pathAccountSid) { this.pathAccountSid = pathAccountSid; } - public LastMonthReader setCategory(final String category) { + public LastMonthReader setCategory(final LastMonth.Category category) { this.category = category; return this; } diff --git a/src/main/java/com/twilio/rest/api/v2010/account/usage/record/Monthly.java b/src/main/java/com/twilio/rest/api/v2010/account/usage/record/Monthly.java index 7544657776..b6b8c027c2 100644 --- a/src/main/java/com/twilio/rest/api/v2010/account/usage/record/Monthly.java +++ b/src/main/java/com/twilio/rest/api/v2010/account/usage/record/Monthly.java @@ -25,6 +25,7 @@ import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.twilio.base.Resource; import com.twilio.base.Resource; +import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; import com.twilio.type.*; @@ -51,6 +52,931 @@ public static MonthlyReader reader(final String pathAccountSid) { return new MonthlyReader(pathAccountSid); } + public enum Category { + A2P_10DLC_REGISTRATIONFEES_BRANDREGISTRATION( + "a2p-10dlc-registrationfees-brandregistration" + ), + A2P_10DLC_REGISTRATIONFEES_BV("a2p-10dlc-registrationfees-bv"), + A2P_10DLC_REGISTRATIONFEES_CAMPAIGNCHARGES( + "a2p-10dlc-registrationfees-campaigncharges" + ), + A2P_10DLC_REGISTRATIONFEES_CAMPAIGNREGISTRATION( + "a2p-10dlc-registrationfees-campaignregistration" + ), + A2P_10DLC_REGISTRATIONFEES_CAMPAIGNVETTING( + "a2p-10dlc-registrationfees-campaignvetting" + ), + A2P_10DLC_REGISTRATIONFEES_MONTHLY( + "a2p-10dlc-registrationfees-monthly" + ), + A2P_10DLC_REGISTRATIONFEES_ONETIME( + "a2p-10dlc-registrationfees-onetime" + ), + A2P_REGISTRATION_FEES("a2p-registration-fees"), + ACCOUNT_SECURITY("account-security"), + AGENT_CONFERENCE("agent-conference"), + AGENT_COPILOT("agent-copilot"), + AGENT_COPILOT_MESSAGES("agent-copilot-messages"), + AGENT_COPILOT_PARTICIPANT_MINUTES("agent-copilot-participant-minutes"), + AI_ASSISTANTS("ai-assistants"), + AI_ASSISTANTS_VOICE("ai-assistants-voice"), + AMAZON_POLLY("amazon-polly"), + ANSWERING_MACHINE_DETECTION("answering-machine-detection"), + ASSETS("assets"), + AUDIENCE_MINUTES("audience-minutes"), + AUDIENCE_MINUTES_AUDIO("audience-minutes-audio"), + AUTHY_AUTHENTICATIONS("authy-authentications"), + AUTHY_CALLS_OUTBOUND("authy-calls-outbound"), + AUTHY_EMAIL_AUTHENTICATIONS("authy-email-authentications"), + AUTHY_MONTHLY_FEES("authy-monthly-fees"), + AUTHY_OUTBOUND_EMAIL("authy-outbound-email"), + AUTHY_PHONE_INTELLIGENCE("authy-phone-intelligence"), + AUTHY_PHONE_VERIFICATIONS("authy-phone-verifications"), + AUTHY_SMS_OUTBOUND("authy-sms-outbound"), + AUTHY_VERIFY_EMAIL_VERIFICATIONS("authy-verify-email-verifications"), + AUTHY_VERIFY_OUTBOUND_EMAIL("authy-verify-outbound-email"), + AUTOPILOT("autopilot"), + AUTOPILOT_HOME_ASSISTANTS("autopilot-home-assistants"), + AUTOPILOT_MESSAGING("autopilot-messaging"), + AUTOPILOT_OTHER("autopilot-other"), + AUTOPILOT_VOICE("autopilot-voice"), + BASIC_PEER_TO_PEER_ROOMS_PARTICIPANT_MINUTES( + "basic-peer-to-peer-rooms-participant-minutes" + ), + BRANDED_CALLING("branded-calling"), + BUNDLE_SMS_BUCKET("bundle-sms-bucket"), + BUNDLE_SUBSCRIPTION_FEES("bundle-subscription-fees"), + CALL_FORWARDING_LOOKUPS("call-forwarding-lookups"), + CALL_PROGESS_EVENTS("call-progess-events"), + CALLERIDLOOKUPS("calleridlookups"), + CALLS("calls"), + CALLS_CLIENT("calls-client"), + CALLS_EMERGENCY("calls-emergency"), + CALLS_GLOBALCONFERENCE("calls-globalconference"), + CALLS_INBOUND("calls-inbound"), + CALLS_INBOUND_LOCAL("calls-inbound-local"), + CALLS_INBOUND_MOBILE("calls-inbound-mobile"), + CALLS_INBOUND_TOLLFREE("calls-inbound-tollfree"), + CALLS_INBOUND_TOLLFREE_LOCAL("calls-inbound-tollfree-local"), + CALLS_INBOUND_TOLLFREE_MOBILE("calls-inbound-tollfree-mobile"), + CALLS_MEDIA_STREAM_MINUTES("calls-media-stream-minutes"), + CALLS_OUTBOUND("calls-outbound"), + CALLS_PAY_VERB_TRANSACTIONS("calls-pay-verb-transactions"), + CALLS_RECORDINGS("calls-recordings"), + CALLS_SIP("calls-sip"), + CALLS_SIP_INBOUND("calls-sip-inbound"), + CALLS_SIP_OUTBOUND("calls-sip-outbound"), + CALLS_TEXT_TO_SPEECH("calls-text-to-speech"), + CALLS_TRANSFERS("calls-transfers"), + CARRIER_LOOKUPS("carrier-lookups"), + CATEGORY("category"), + CHANNELS("channels"), + CHANNELS_MESSAGING("channels-messaging"), + CHANNELS_MESSAGING_INBOUND("channels-messaging-inbound"), + CHANNELS_MESSAGING_OUTBOUND("channels-messaging-outbound"), + CHANNELS_WHATSAPP("channels-whatsapp"), + CHANNELS_WHATSAPP_CONVERSATION_AUTHENTICATION( + "channels-whatsapp-conversation-authentication" + ), + CHANNELS_WHATSAPP_CONVERSATION_FREE( + "channels-whatsapp-conversation-free" + ), + CHANNELS_WHATSAPP_CONVERSATION_MARKETING( + "channels-whatsapp-conversation-marketing" + ), + CHANNELS_WHATSAPP_CONVERSATION_SERVICE( + "channels-whatsapp-conversation-service" + ), + CHANNELS_WHATSAPP_CONVERSATION_UTILITY( + "channels-whatsapp-conversation-utility" + ), + CHANNELS_WHATSAPP_INBOUND("channels-whatsapp-inbound"), + CHANNELS_WHATSAPP_OUTBOUND("channels-whatsapp-outbound"), + CHAT_VIRTUAL_AGENT("chat-virtual-agent"), + CONVERSATION_RELAY("conversation-relay"), + CONVERSATIONS("conversations"), + CONVERSATIONS_API_REQUESTS("conversations-api-requests"), + CONVERSATIONS_CONVERSATION_EVENTS("conversations-conversation-events"), + CONVERSATIONS_ENDPOINT_CONNECTIVITY( + "conversations-endpoint-connectivity" + ), + CONVERSATIONS_EVENTS("conversations-events"), + CONVERSATIONS_PARTICIPANT_EVENTS("conversations-participant-events"), + CONVERSATIONS_PARTICIPANTS("conversations-participants"), + CPS("cps"), + CREDIT_TRANSFER("credit-transfer"), + EMAIL("email"), + EMERGING_TECH("emerging-tech"), + ENGAGEMENT_SUITE_PACKAGED_PLANS("engagement-suite-packaged-plans"), + ENHANCED_LINE_TYPE_LOOKUPS("enhanced-line-type-lookups"), + ENTERPRISE("enterprise"), + EVENTS("events"), + EXPERIMENT_FRANCE_SMS("experiment-france-sms"), + EXPERIMENT_INDIA_SMS("experiment-india-sms"), + EXPERIMENT_UK_SMS("experiment-uk-sms"), + FAILED_MESSAGE_PROCESSING_FEE("failed-message-processing-fee"), + FLEX("flex"), + FLEX_ACTIVE_USER_HOURS("flex-active-user-hours"), + FLEX_CONCURRENT_USERS("flex-concurrent-users"), + FLEX_CONVERSATIONAL_INSIGHTS("flex-conversational-insights"), + FLEX_CONVERSATIONAL_INSIGHTS_MESSAGES( + "flex-conversational-insights-messages" + ), + FLEX_CONVERSATIONAL_INSIGHTS_VOICE_MINUTES( + "flex-conversational-insights-voice-minutes" + ), + FLEX_EMAIL_USAGE("flex-email-usage"), + FLEX_MESSAGING_USAGE("flex-messaging-usage"), + FLEX_PARTNER_SPINSCI("flex-partner-spinsci"), + FLEX_PARTNER_XCELERATE("flex-partner-xcelerate"), + FLEX_RESELLER_ECOSYSTEM("flex-reseller-ecosystem"), + FLEX_UNIQUE_USER("flex-unique-user"), + FLEX_USAGE("flex-usage"), + FLEX_USERS("flex-users"), + FLEX_VOICE_MINUTE("flex-voice-minute"), + FLEX_YTICA("flex-ytica"), + FRAUD_LOOKUPS("fraud-lookups"), + FRONTLINE("frontline"), + FRONTLINE_USERS("frontline-users"), + FUNCTIONS("functions"), + GENERIC_PAY_TRANSACTIONS("generic-pay-transactions"), + GROUP_ROOMS("group-rooms"), + GROUP_ROOMS_DATA_TRACK("group-rooms-data-track"), + GROUP_ROOMS_ENCRYPTED_MEDIA_RECORDED( + "group-rooms-encrypted-media-recorded" + ), + GROUP_ROOMS_MEDIA_DOWNLOADED("group-rooms-media-downloaded"), + GROUP_ROOMS_MEDIA_RECORDED("group-rooms-media-recorded"), + GROUP_ROOMS_MEDIA_ROUTED("group-rooms-media-routed"), + GROUP_ROOMS_MEDIA_STORED("group-rooms-media-stored"), + GROUP_ROOMS_PARTICIPANT_MINUTES("group-rooms-participant-minutes"), + GROUP_ROOMS_RECORDED_MINUTES("group-rooms-recorded-minutes"), + IP_MESSAGING("ip-messaging"), + IP_MESSAGING_COMMANDS("ip-messaging-commands"), + IP_MESSAGING_DATA_STORAGE("ip-messaging-data-storage"), + IP_MESSAGING_DATA_TRANSFER("ip-messaging-data-transfer"), + IP_MESSAGING_ENDPOINT_CONNECTIVITY( + "ip-messaging-endpoint-connectivity" + ), + IVR_VIRTUAL_AGENT_CUSTOM_VOICES("ivr-virtual-agent-custom-voices"), + IVR_VIRTUAL_AGENT_GENAI("ivr-virtual-agent-genai"), + LINE_STATUS_LOOKUPS("line-status-lookups"), + LIVE_ACTIVITY_LOOKUPS("live-activity-lookups"), + LOOKUP_BUCKET_ADJUSTMENT("lookup-bucket-adjustment"), + LOOKUP_IDENTITY_MATCH("lookup-identity-match"), + LOOKUPS("lookups"), + MARKETPLACE("marketplace"), + MARKETPLACE_ALGORITHMIA_NAMED_ENTITY_RECOGNITION( + "marketplace-algorithmia-named-entity-recognition" + ), + MARKETPLACE_CADENCE_TRANSCRIPTION("marketplace-cadence-transcription"), + MARKETPLACE_CADENCE_TRANSLATION("marketplace-cadence-translation"), + MARKETPLACE_CAPIO_SPEECH_TO_TEXT("marketplace-capio-speech-to-text"), + MARKETPLACE_CONVRIZA_ABABA("marketplace-convriza-ababa"), + MARKETPLACE_DEEPGRAM_PHRASE_DETECTOR( + "marketplace-deepgram-phrase-detector" + ), + MARKETPLACE_DEEPGRAM_TRANSCRIPTION( + "marketplace-deepgram-transcription" + ), + MARKETPLACE_DEEPGRAM_TRANSCRIPTION_BASE( + "marketplace-deepgram-transcription-base" + ), + MARKETPLACE_DEEPGRAM_TRANSSCRIPTION_ENHANCED( + "marketplace-deepgram-transscription-enhanced" + ), + MARKETPLACE_DIGITAL_SEGMENT_BUSINESS_INFO( + "marketplace-digital-segment-business-info" + ), + MARKETPLACE_FACEBOOK_OFFLINE_CONVERSIONS( + "marketplace-facebook-offline-conversions" + ), + MARKETPLACE_GOOGLE_SPEECH_TO_TEXT("marketplace-google-speech-to-text"), + MARKETPLACE_IBM_WATSON_MESSAGE_INSIGHTS( + "marketplace-ibm-watson-message-insights" + ), + MARKETPLACE_IBM_WATSON_MESSAGE_SENTIMENT( + "marketplace-ibm-watson-message-sentiment" + ), + MARKETPLACE_IBM_WATSON_RECORDING_ANALYSIS( + "marketplace-ibm-watson-recording-analysis" + ), + MARKETPLACE_IBM_WATSON_TONE_ANALYZER( + "marketplace-ibm-watson-tone-analyzer" + ), + MARKETPLACE_ICEHOOK_SYSTEMS_SCOUT("marketplace-icehook-systems-scout"), + MARKETPLACE_INFOGROUP_DATAAXLE_BIZINFO( + "marketplace-infogroup-dataaxle-bizinfo" + ), + MARKETPLACE_KEEN_IO_CONTACT_CENTER_ANALYTICS( + "marketplace-keen-io-contact-center-analytics" + ), + MARKETPLACE_MARCHEX_CLEANCALL("marketplace-marchex-cleancall"), + MARKETPLACE_MARCHEX_RECORDING_ANALYSIS( + "marketplace-marchex-recording-analysis" + ), + MARKETPLACE_MARCHEX_SENTIMENT_ANALYSIS_FOR_SMS( + "marketplace-marchex-sentiment-analysis-for-sms" + ), + MARKETPLACE_MARKETPLACE_NEXTCALLER_SOCIAL_ID( + "marketplace-marketplace-nextcaller-social-id" + ), + MARKETPLACE_MOBILE_COMMONS_OPT_OUT_CLASSIFIER( + "marketplace-mobile-commons-opt-out-classifier" + ), + MARKETPLACE_NEXIWAVE_VOICEMAIL_TO_TEXT( + "marketplace-nexiwave-voicemail-to-text" + ), + MARKETPLACE_NEXTCALLER_ADVANCED_CALLER_IDENTIFICATION( + "marketplace-nextcaller-advanced-caller-identification" + ), + MARKETPLACE_NOMOROBO_SPAM_SCORE("marketplace-nomorobo-spam-score"), + MARKETPLACE_PAY_ADDONS("marketplace-pay-addons"), + MARKETPLACE_PAY_ADDONS_BASECOMMERCE_PAY_CONNECTOR( + "marketplace-pay-addons-basecommerce-pay-connector" + ), + MARKETPLACE_PAY_ADDONS_BRAINTREE_PAY_CONNECTOR( + "marketplace-pay-addons-braintree-pay-connector" + ), + MARKETPLACE_PAY_ADDONS_CARDCONNECT_PAY_CONNECTOR( + "marketplace-pay-addons-cardconnect-pay-connector" + ), + MARKETPLACE_PAY_ADDONS_CHASE_PAY_CONNECTOR( + "marketplace-pay-addons-chase-pay-connector" + ), + MARKETPLACE_PAY_ADDONS_SHUTTLE_PAY_CONNECTOR( + "marketplace-pay-addons-shuttle-pay-connector" + ), + MARKETPLACE_PAY_ADDONS_STRIPE_PAY_CONNECTOR( + "marketplace-pay-addons-stripe-pay-connector" + ), + MARKETPLACE_PAYFONE_TCPA_COMPLIANCE( + "marketplace-payfone-tcpa-compliance" + ), + MARKETPLACE_POLY_AI_CONNECTOR("marketplace-poly-ai-connector"), + MARKETPLACE_REALPHONEVALIDATION("marketplace-realphonevalidation"), + MARKETPLACE_REMEETING_AUTOMATIC_SPEECH_RECOGNITION( + "marketplace-remeeting-automatic-speech-recognition" + ), + MARKETPLACE_SPOKE_PHONE_LICENSE_PRO( + "marketplace-spoke-phone-license-pro" + ), + MARKETPLACE_SPOKE_PHONE_LICENSE_STANDARD( + "marketplace-spoke-phone-license-standard" + ), + MARKETPLACE_TCPA_DEFENSE_SOLUTIONS_BLACKLIST_FEED( + "marketplace-tcpa-defense-solutions-blacklist-feed" + ), + MARKETPLACE_TELO_OPENCNAM("marketplace-telo-opencnam"), + MARKETPLACE_TRESTLE_SOLUTIONS_CALLER_IDENTIFICATION( + "marketplace-trestle-solutions-caller-identification" + ), + MARKETPLACE_TRUECNAM_TRUE_SPAM("marketplace-truecnam-true-spam"), + MARKETPLACE_TWILIO_CALLER_NAME_LOOKUP_US( + "marketplace-twilio-caller-name-lookup-us" + ), + MARKETPLACE_TWILIO_CARRIER_INFORMATION_LOOKUP( + "marketplace-twilio-carrier-information-lookup" + ), + MARKETPLACE_VOICEBASE_PCI("marketplace-voicebase-pci"), + MARKETPLACE_VOICEBASE_TRANSCRIPTION( + "marketplace-voicebase-transcription" + ), + MARKETPLACE_VOICEBASE_TRANSCRIPTION_CUSTOM_VOCABULARY( + "marketplace-voicebase-transcription-custom-vocabulary" + ), + MARKETPLACE_WEB_PURIFY_PROFANITY_FILTER( + "marketplace-web-purify-profanity-filter" + ), + MARKETPLACE_WHITEPAGES_PRO_CALLER_IDENTIFICATION( + "marketplace-whitepages-pro-caller-identification" + ), + MARKETPLACE_WHITEPAGES_PRO_PHONE_INTELLIGENCE( + "marketplace-whitepages-pro-phone-intelligence" + ), + MARKETPLACE_WHITEPAGES_PRO_PHONE_REPUTATION( + "marketplace-whitepages-pro-phone-reputation" + ), + MARKETPLACE_WOLFARM_SPOKEN_RESULTS( + "marketplace-wolfarm-spoken-results" + ), + MARKETPLACE_WOLFRAM_SHORT_ANSWER("marketplace-wolfram-short-answer"), + MARKETPLACE_YTICA_CONTACT_CENTER_REPORTING_ANALYTICS( + "marketplace-ytica-contact-center-reporting-analytics" + ), + MARKETPLAY_PAY_ADDONS_SHUTTLE_PAY_CONNECTOR( + "marketplay-pay-addons-shuttle-pay-connector" + ), + MEDIA_COMPOSER_MINUTES("media-composer-minutes"), + MEDIASTORAGE("mediastorage"), + MIN_SPEND_ADJUSTMENTS("min-spend-adjustments"), + MMS("mms"), + MMS_INBOUND("mms-inbound"), + MMS_INBOUND_LONGCODE("mms-inbound-longcode"), + MMS_INBOUND_SHORTCODE("mms-inbound-shortcode"), + MMS_INBOUND_TOLL_FREE("mms-inbound-toll-free"), + MMS_MESSAGES_CARRIERFEES("mms-messages-carrierfees"), + MMS_OUTBOUND("mms-outbound"), + MMS_OUTBOUND_LONGCODE("mms-outbound-longcode"), + MMS_OUTBOUND_SHORTCODE("mms-outbound-shortcode"), + MMS_OUTBOUND_TOLLFREE("mms-outbound-tollfree"), + MONITOR("monitor"), + MONITOR_READS("monitor-reads"), + MONITOR_STORAGE("monitor-storage"), + MONITOR_WRITES("monitor-writes"), + NOTIFY("notify"), + NOTIFY_ACTIONS_ATTEMPTS("notify-actions-attempts"), + NOTIFY_CHANNELS("notify-channels"), + NUMBER_FORMAT_LOOKUPS("number-format-lookups"), + PCHAT("pchat"), + PCHAT_ACTIONS("pchat-actions"), + PCHAT_APS("pchat-aps"), + PCHAT_CONV_MED_STORAGE("pchat-conv-med-storage"), + PCHAT_MESSAGES("pchat-messages"), + PCHAT_NOTIFICATIONS("pchat-notifications"), + PCHAT_READS("pchat-reads"), + PCHAT_USERS("pchat-users"), + PEER_TO_PEER_ROOMS_PARTICIPANT_MINUTES( + "peer-to-peer-rooms-participant-minutes" + ), + PFAX("pfax"), + PFAX_MINUTES("pfax-minutes"), + PFAX_MINUTES_INBOUND("pfax-minutes-inbound"), + PFAX_MINUTES_OUTBOUND("pfax-minutes-outbound"), + PFAX_PAGES("pfax-pages"), + PHONE_QUALITY_SCORE_LOOKUPS("phone-quality-score-lookups"), + PHONENUMBERS("phonenumbers"), + PHONENUMBERS_CPS("phonenumbers-cps"), + PHONENUMBERS_EMERGENCY("phonenumbers-emergency"), + PHONENUMBERS_LOCAL("phonenumbers-local"), + PHONENUMBERS_MOBILE("phonenumbers-mobile"), + PHONENUMBERS_PORTING("phonenumbers-porting"), + PHONENUMBERS_SETUPS("phonenumbers-setups"), + PHONENUMBERS_TOLLFREE("phonenumbers-tollfree"), + PREMIUMSUPPORT("premiumsupport"), + PREMIUMSUPPORT_PERCENTAGE_SPEND("premiumsupport-percentage-spend"), + PROGRAMMABLEVOICE_PLATFORM("programmablevoice-platform"), + PROGRAMMABLEVOICECONN_CLIENTSDK("programmablevoiceconn-clientsdk"), + PROGRAMMABLEVOICECONN_CLIENTSDK_INBOUND( + "programmablevoiceconn-clientsdk-inbound" + ), + PROGRAMMABLEVOICECONN_CLIENTSDK_OUTBOUND( + "programmablevoiceconn-clientsdk-outbound" + ), + PROGRAMMABLEVOICECONN_ONNET("programmablevoiceconn-onnet"), + PROGRAMMABLEVOICECONN_ONNET_INBOUND( + "programmablevoiceconn-onnet-inbound" + ), + PROGRAMMABLEVOICECONN_ONNET_OUTBOUND( + "programmablevoiceconn-onnet-outbound" + ), + PROGRAMMABLEVOICECONN_SIP("programmablevoiceconn-sip"), + PROGRAMMABLEVOICECONN_SIP_INBOUND("programmablevoiceconn-sip-inbound"), + PROGRAMMABLEVOICECONN_SIP_OUTBOUND( + "programmablevoiceconn-sip-outbound" + ), + PROGRAMMABLEVOICECONNECTIVITY("programmablevoiceconnectivity"), + PROXY("proxy"), + PROXY_ACTIVE_SESSIONS("proxy-active-sessions"), + PROXY_BUCKET_ADJUSTMENT("proxy-bucket-adjustment"), + PROXY_LICENSES("proxy-licenses"), + PSTNCONNECTIVITY("pstnconnectivity"), + PSTNCONNECTIVITY_INBOUND("pstnconnectivity-inbound"), + PSTNCONNECTIVITY_OUTBOUND("pstnconnectivity-outbound"), + PV("pv"), + PV_BASIC_ROOMS("pv-basic-rooms"), + PV_COMPOSITION_MEDIA_DOWNLOADED("pv-composition-media-downloaded"), + PV_COMPOSITION_MEDIA_ENCRYPTED("pv-composition-media-encrypted"), + PV_COMPOSITION_MEDIA_STORED("pv-composition-media-stored"), + PV_COMPOSITION_MINUTES("pv-composition-minutes"), + PV_RECORDING_COMPOSITIONS("pv-recording-compositions"), + PV_ROOM_PARTICIPANTS("pv-room-participants"), + PV_ROOM_PARTICIPANTS_AU1("pv-room-participants-au1"), + PV_ROOM_PARTICIPANTS_BR1("pv-room-participants-br1"), + PV_ROOM_PARTICIPANTS_IE1("pv-room-participants-ie1"), + PV_ROOM_PARTICIPANTS_JP1("pv-room-participants-jp1"), + PV_ROOM_PARTICIPANTS_SG1("pv-room-participants-sg1"), + PV_ROOM_PARTICIPANTS_US1("pv-room-participants-us1"), + PV_ROOM_PARTICIPANTS_US2("pv-room-participants-us2"), + PV_ROOMS("pv-rooms"), + PV_SIP_ENDPOINT_REGISTRATIONS("pv-sip-endpoint-registrations"), + RCS_MESSAGES("rcs-messages"), + REASSIGNED_NUMBER("reassigned-number"), + RECORDINGS("recordings"), + RECORDINGSTORAGE("recordingstorage"), + SHORTCODES("shortcodes"), + SHORTCODES_CUSTOMEROWNED("shortcodes-customerowned"), + SHORTCODES_MMS_ENABLEMENT("shortcodes-mms-enablement"), + SHORTCODES_MPS("shortcodes-mps"), + SHORTCODES_RANDOM("shortcodes-random"), + SHORTCODES_SETUP_FEES("shortcodes-setup-fees"), + SHORTCODES_UK("shortcodes-uk"), + SHORTCODES_VANITY("shortcodes-vanity"), + SIM_SWAP_LOOKUPS("sim-swap-lookups"), + SIP_SECURE_MEDIA("sip-secure-media"), + SMALL_GROUP_ROOMS("small-group-rooms"), + SMALL_GROUP_ROOMS_DATA_TRACK("small-group-rooms-data-track"), + SMALL_GROUP_ROOMS_PARTICIPANT_MINUTES( + "small-group-rooms-participant-minutes" + ), + SMS("sms"), + SMS_INBOUND("sms-inbound"), + SMS_INBOUND_LONGCODE("sms-inbound-longcode"), + SMS_INBOUND_SHORTCODE("sms-inbound-shortcode"), + SMS_INBOUND_TOLLFREE("sms-inbound-tollfree"), + SMS_MESSAGES_CARRIERFEES("sms-messages-carrierfees"), + SMS_MESSAGES_FEATURES("sms-messages-features"), + SMS_MESSAGES_FEATURES_ENGAGEMENT_SUITE( + "sms-messages-features-engagement-suite" + ), + SMS_MESSAGES_FEATURES_MESSAGE_REDACTION( + "sms-messages-features-message-redaction" + ), + SMS_MESSAGES_FEATURES_SENDERID("sms-messages-features-senderid"), + SMS_MPS("sms-mps"), + SMS_MPS_SHORTCODE("sms-mps-shortcode"), + SMS_MPS_TOLLFREE("sms-mps-tollfree"), + SMS_MPS_TOLLFREE_SETUP("sms-mps-tollfree-setup"), + SMS_NATIONAL_REGULATORY_PROTECTION( + "sms-national-regulatory-protection" + ), + SMS_OUTBOUND("sms-outbound"), + SMS_OUTBOUND_CONTENT_INSPECTION("sms-outbound-content-inspection"), + SMS_OUTBOUND_LONGCODE("sms-outbound-longcode"), + SMS_OUTBOUND_SHORTCODE("sms-outbound-shortcode"), + SMS_OUTBOUND_TOLLFREE("sms-outbound-tollfree"), + SMS_PUMPING_PROTECTION("sms-pumping-protection"), + SMS_PUMPING_RISK("sms-pumping-risk"), + SMSMESSAGES_BUCKET_ADJUSTMENTS("smsmessages-bucket-adjustments"), + SMSMESSAGES_OUTBOUND_DOMESTIC("smsmessages-outbound-domestic"), + SPEECH_RECOGNITION("speech-recognition"), + STUDIO_ENGAGEMENTS("studio-engagements"), + SYNC("sync"), + SYNC_ACTIONS("sync-actions"), + SYNC_ENDPOINT_HOURS("sync-endpoint-hours"), + SYNC_ENDPOINT_HOURS_ABOVE_DAILY_CAP( + "sync-endpoint-hours-above-daily-cap" + ), + TASKROUTER_TASKS("taskrouter-tasks"), + TOTALPRICE("totalprice"), + TRANSCRIPTIONS("transcriptions"), + TRUNKING_CPS("trunking-cps"), + TRUNKING_EMERGENCY_CALLS("trunking-emergency-calls"), + TRUNKING_ORIGINATION("trunking-origination"), + TRUNKING_ORIGINATION_LOCAL("trunking-origination-local"), + TRUNKING_ORIGINATION_MOBILE("trunking-origination-mobile"), + TRUNKING_ORIGINATION_TOLLFREE("trunking-origination-tollfree"), + TRUNKING_RECORDINGS("trunking-recordings"), + TRUNKING_SECURE("trunking-secure"), + TRUNKING_TERMINATION("trunking-termination"), + TTS_GOOGLE("tts-google"), + TURNMEGABYTES("turnmegabytes"), + TURNMEGABYTES_AUSTRALIA("turnmegabytes-australia"), + TURNMEGABYTES_BRASIL("turnmegabytes-brasil"), + TURNMEGABYTES_GERMANY("turnmegabytes-germany"), + TURNMEGABYTES_INDIA("turnmegabytes-india"), + TURNMEGABYTES_IRELAND("turnmegabytes-ireland"), + TURNMEGABYTES_JAPAN("turnmegabytes-japan"), + TURNMEGABYTES_SINGAPORE("turnmegabytes-singapore"), + TURNMEGABYTES_USEAST("turnmegabytes-useast"), + TURNMEGABYTES_USWEST("turnmegabytes-uswest"), + TWILIO_FOR_SALESFORCE("twilio-for-salesforce"), + TWILIO_FOR_SALESFORCE_LICENSES("twilio-for-salesforce-licenses"), + TWILIO_INTERCONNECT("twilio-interconnect"), + TWIML("twiml"), + USAGE_FLEX_VIDEO("usage-flex-video"), + USAGE_FUNCTIONS("usage-functions"), + USAGE_RCS_BASIC_MESSAGES_OUTBOUND("usage-rcs-basic-messages-outbound"), + USAGE_RCS_MESSAGES("usage-rcs-messages"), + USAGE_RCS_MESSAGES_INBOUND("usage-rcs-messages-inbound"), + USAGE_RCS_MESSAGING_CARRIER_FEES("usage-rcs-messaging-carrier-fees"), + USAGE_RCS_SINGLE_MESSAGES_OUTBOUND( + "usage-rcs-single-messages-outbound" + ), + VERIFY_PACKAGE_PLANS("verify-package-plans"), + VERIFY_PUSH("verify-push"), + VERIFY_SNA("verify-sna"), + VERIFY_TOTP("verify-totp"), + VERIFY_VOICE_SMS("verify-voice-sms"), + VERIFY_WHATSAPP_CONVERSATIONS_BUSINESS_INITIATED( + "verify-whatsapp-conversations-business-initiated" + ), + VIDEO_RECORDINGS("video-recordings"), + VIDEO_ROOMS_TURN_MEGABYTES("video-rooms-turn-megabytes"), + VIRTUAL_AGENT("virtual-agent"), + VOICE_INSIGHTS("voice-insights"), + VOICE_INSIGHTS_CLIENT_INSIGHTS_ON_DEMAND_MINUTE( + "voice-insights-client-insights-on-demand-minute" + ), + VOICE_INSIGHTS_PTSN_INSIGHTS_ON_DEMAND_MINUTE( + "voice-insights-ptsn-insights-on-demand-minute" + ), + VOICE_INSIGHTS_SIP_INTERFACE_INSIGHTS_ON_DEMAND_MINUTE( + "voice-insights-sip-interface-insights-on-demand-minute" + ), + VOICE_INSIGHTS_SIP_TRUNKING_INSIGHTS_ON_DEMAND_MINUTE( + "voice-insights-sip-trunking-insights-on-demand-minute" + ), + VOICE_INTELLIGENCE("voice-intelligence"), + VOICE_INTELLIGENCE_EIP_OPERATORS("voice-intelligence-eip-operators"), + VOICE_INTELLIGENCE_OPERATORS("voice-intelligence-operators"), + VOICE_INTELLIGENCE_TRANSCRIPTION("voice-intelligence-transcription"), + WDS("wds"), + WIRELESS("wireless"), + WIRELESS_DATA("wireless-data"), + WIRELESS_DATA_PAYG("wireless-data-payg"), + WIRELESS_DATA_PAYG_AFRICA("wireless-data-payg-africa"), + WIRELESS_DATA_PAYG_ASIA("wireless-data-payg-asia"), + WIRELESS_DATA_PAYG_CENTRALANDSOUTHAMERICA( + "wireless-data-payg-centralandsouthamerica" + ), + WIRELESS_DATA_PAYG_EUROPE("wireless-data-payg-europe"), + WIRELESS_DATA_PAYG_NORTHAMERICA("wireless-data-payg-northamerica"), + WIRELESS_DATA_PAYG_OCEANIA("wireless-data-payg-oceania"), + WIRELESS_DATA_QUOTA1("wireless-data-quota1"), + WIRELESS_DATA_QUOTA1_AFRICA("wireless-data-quota1-africa"), + WIRELESS_DATA_QUOTA1_ASIA("wireless-data-quota1-asia"), + WIRELESS_DATA_QUOTA1_CENTRALANDSOUTHAMERICA( + "wireless-data-quota1-centralandsouthamerica" + ), + WIRELESS_DATA_QUOTA1_EUROPE("wireless-data-quota1-europe"), + WIRELESS_DATA_QUOTA1_NORTHAMERICA("wireless-data-quota1-northamerica"), + WIRELESS_DATA_QUOTA1_OCEANIA("wireless-data-quota1-oceania"), + WIRELESS_DATA_QUOTA10("wireless-data-quota10"), + WIRELESS_DATA_QUOTA10_AFRICA("wireless-data-quota10-africa"), + WIRELESS_DATA_QUOTA10_ASIA("wireless-data-quota10-asia"), + WIRELESS_DATA_QUOTA10_CENTRALANDSOUTHAMERICA( + "wireless-data-quota10-centralandsouthamerica" + ), + WIRELESS_DATA_QUOTA10_EUROPE("wireless-data-quota10-europe"), + WIRELESS_DATA_QUOTA10_NORTHAMERICA( + "wireless-data-quota10-northamerica" + ), + WIRELESS_DATA_QUOTA10_OCEANIA("wireless-data-quota10-oceania"), + WIRELESS_DATA_QUOTA50("wireless-data-quota50"), + WIRELESS_DATA_QUOTA50_AFRICA("wireless-data-quota50-africa"), + WIRELESS_DATA_QUOTA50_ASIA("wireless-data-quota50-asia"), + WIRELESS_DATA_QUOTA50_CENTRALANDSOUTHAMERICA( + "wireless-data-quota50-centralandsouthamerica" + ), + WIRELESS_DATA_QUOTA50_EUROPE("wireless-data-quota50-europe"), + WIRELESS_DATA_QUOTA50_NORTHAMERICA( + "wireless-data-quota50-northamerica" + ), + WIRELESS_DATA_QUOTA50_OCEANIA("wireless-data-quota50-oceania"), + WIRELESS_DATA_QUOTACUSTOM("wireless-data-quotacustom"), + WIRELESS_DATA_QUOTACUSTOM_AFRICA("wireless-data-quotacustom-africa"), + WIRELESS_DATA_QUOTACUSTOM_ASIA("wireless-data-quotacustom-asia"), + WIRELESS_DATA_QUOTACUSTOM_CENTRALANDSOUTHAMERICA( + "wireless-data-quotacustom-centralandsouthamerica" + ), + WIRELESS_DATA_QUOTACUSTOM_EUROPE("wireless-data-quotacustom-europe"), + WIRELESS_DATA_QUOTACUSTOM_NORTHAMERICA( + "wireless-data-quotacustom-northamerica" + ), + WIRELESS_DATA_QUOTACUSTOM_OCEANIA("wireless-data-quotacustom-oceania"), + WIRELESS_MRC_PAYG("wireless-mrc-payg"), + WIRELESS_MRC_QUOTA1("wireless-mrc-quota1"), + WIRELESS_MRC_QUOTA10("wireless-mrc-quota10"), + WIRELESS_MRC_QUOTA50("wireless-mrc-quota50"), + WIRELESS_MRC_QUOTACUSTOM("wireless-mrc-quotacustom"), + WIRELESS_ORDERS("wireless-orders"), + WIRELESS_ORDERS_ARTWORK("wireless-orders-artwork"), + WIRELESS_ORDERS_BULK("wireless-orders-bulk"), + WIRELESS_ORDERS_ESIM("wireless-orders-esim"), + WIRELESS_ORDERS_STARTER("wireless-orders-starter"), + WIRELESS_QUOTAS("wireless-quotas"), + WIRELESS_SMS_AFRICA("wireless-sms-africa"), + WIRELESS_SMS_ASIA("wireless-sms-asia"), + WIRELESS_SMS_CENTRALANDSOUTHAMERICA( + "wireless-sms-centralandsouthamerica" + ), + WIRELESS_SMS_EUROPE("wireless-sms-europe"), + WIRELESS_SMS_NORTHAMERICA("wireless-sms-northamerica"), + WIRELESS_SMS_OCEANIA("wireless-sms-oceania"), + WIRELESS_SUPER_SIM("wireless-super-sim"), + WIRELESS_SUPER_SIM_DATA("wireless-super-sim-data"), + WIRELESS_SUPER_SIM_DATA_NORTH_AMERICA_USA( + "wireless-super-sim-data-north-america-usa" + ), + WIRELESS_SUPER_SIM_DATA_PAYG("wireless-super-sim-data-payg"), + WIRELESS_SUPER_SIM_DATA_PAYG_EUROPE( + "wireless-super-sim-data-payg-europe" + ), + WIRELESS_SUPER_SIM_DATA_PAYG_NORTH_AMERICA( + "wireless-super-sim-data-payg-north-america" + ), + WIRELESS_SUPER_SIM_HARDWARE("wireless-super-sim-hardware"), + WIRELESS_SUPER_SIM_HARDWARE_BULK("wireless-super-sim-hardware-bulk"), + WIRELESS_SUPER_SIM_SMSCOMMANDS("wireless-super-sim-smscommands"), + WIRELESS_SUPER_SIM_SMSCOMMANDS_AFRICA( + "wireless-super-sim-smscommands-africa" + ), + WIRELESS_SUPER_SIM_SMSCOMMANDS_ASIA( + "wireless-super-sim-smscommands-asia" + ), + WIRELESS_SUPER_SIM_SMSCOMMANDS_CENT_AND_SOUTH_AMERICA( + "wireless-super-sim-smscommands-cent-and-south-america" + ), + WIRELESS_SUPER_SIM_SMSCOMMANDS_EUROPE( + "wireless-super-sim-smscommands-europe" + ), + WIRELESS_SUPER_SIM_SMSCOMMANDS_NORTH_AMERICA( + "wireless-super-sim-smscommands-north-america" + ), + WIRELESS_SUPER_SIM_SMSCOMMANDS_OCEANIA( + "wireless-super-sim-smscommands-oceania" + ), + WIRELESS_SUPER_SIM_SUBSCRIPTION("wireless-super-sim-subscription"), + WIRELESS_SUPER_SIM_SUBSCRIPTION_PAYG( + "wireless-super-sim-subscription-payg" + ), + WIRELESS_USAGE("wireless-usage"), + WIRELESS_USAGE_COMMANDS("wireless-usage-commands"), + WIRELESS_USAGE_COMMANDS_AFRICA("wireless-usage-commands-africa"), + WIRELESS_USAGE_COMMANDS_ASIA("wireless-usage-commands-asia"), + WIRELESS_USAGE_COMMANDS_CENTRALANDSOUTHAMERICA( + "wireless-usage-commands-centralandsouthamerica" + ), + WIRELESS_USAGE_COMMANDS_EUROPE("wireless-usage-commands-europe"), + WIRELESS_USAGE_COMMANDS_HOME("wireless-usage-commands-home"), + WIRELESS_USAGE_COMMANDS_NORTHAMERICA( + "wireless-usage-commands-northamerica" + ), + WIRELESS_USAGE_COMMANDS_OCEANIA("wireless-usage-commands-oceania"), + WIRELESS_USAGE_COMMANDS_ROAMING("wireless-usage-commands-roaming"), + WIRELESS_USAGE_DATA("wireless-usage-data"), + WIRELESS_USAGE_DATA_AFRICA("wireless-usage-data-africa"), + WIRELESS_USAGE_DATA_ASIA("wireless-usage-data-asia"), + WIRELESS_USAGE_DATA_CENTRALANDSOUTHAMERICA( + "wireless-usage-data-centralandsouthamerica" + ), + WIRELESS_USAGE_DATA_CUSTOM_ADDITIONALMB( + "wireless-usage-data-custom-additionalmb" + ), + WIRELESS_USAGE_DATA_CUSTOM_FIRST5MB( + "wireless-usage-data-custom-first5mb" + ), + WIRELESS_USAGE_DATA_DOMESTIC_ROAMING( + "wireless-usage-data-domestic-roaming" + ), + WIRELESS_USAGE_DATA_EUROPE("wireless-usage-data-europe"), + WIRELESS_USAGE_DATA_INDIVIDUAL_ADDITIONALGB( + "wireless-usage-data-individual-additionalgb" + ), + WIRELESS_USAGE_DATA_INDIVIDUAL_FIRSTGB( + "wireless-usage-data-individual-firstgb" + ), + WIRELESS_USAGE_DATA_INTERNATIONAL_ROAMING_CANADA( + "wireless-usage-data-international-roaming-canada" + ), + WIRELESS_USAGE_DATA_INTERNATIONAL_ROAMING_INDIA( + "wireless-usage-data-international-roaming-india" + ), + WIRELESS_USAGE_DATA_INTERNATIONAL_ROAMING_MEXICO( + "wireless-usage-data-international-roaming-mexico" + ), + WIRELESS_USAGE_DATA_NORTHAMERICA("wireless-usage-data-northamerica"), + WIRELESS_USAGE_DATA_OCEANIA("wireless-usage-data-oceania"), + WIRELESS_USAGE_DATA_POOLED("wireless-usage-data-pooled"), + WIRELESS_USAGE_DATA_POOLED_DOWNLINK( + "wireless-usage-data-pooled-downlink" + ), + WIRELESS_USAGE_DATA_POOLED_UPLINK("wireless-usage-data-pooled-uplink"), + WIRELESS_USAGE_MRC("wireless-usage-mrc"), + WIRELESS_USAGE_MRC_CUSTOM("wireless-usage-mrc-custom"), + WIRELESS_USAGE_MRC_INDIVIDUAL("wireless-usage-mrc-individual"), + WIRELESS_USAGE_MRC_POOLED("wireless-usage-mrc-pooled"), + WIRELESS_USAGE_MRC_SUSPENDED("wireless-usage-mrc-suspended"), + WIRELESS_USAGE_SMS("wireless-usage-sms"), + WIRELESS_USAGE_VOICE("wireless-usage-voice"), + A2P_FAST_TRACK_ONBOARDING("a2p-fast-track-onboarding"), + ADVISORY_SERVICES("advisory-services"), + ADVISORY_SERVICES_BILLED("advisory-services-billed"), + ADVISORY_SERVICES_CALL_TRACKING("advisory-services-call-tracking"), + ADVISORY_SERVICES_DATA_SERVICES("advisory-services-data-services"), + ADVISORY_SERVICES_EXPENSES("advisory-services-expenses"), + ADVISORY_SERVICES_SIP_TRUNKING("advisory-services-sip-trunking"), + ASSETS_REQUESTS("assets-requests"), + AUDIENCE_MINUTES_VIDEO("audience-minutes-video"), + AUTHY_BUCKET_ADJUSTMENT("authy-bucket-adjustment"), + AUTHY_SOFTWARE("authy-software"), + CALLERIDLOOKUPS_API("calleridlookups-api"), + CALLERIDLOOKUPS_PROGRAMMABLEVOICE("calleridlookups-programmablevoice"), + CALLERIDLOOKUPS_TRUNKING("calleridlookups-trunking"), + CALLS_TRUNKING_INBOUND_TOLLFREE_LOCAL( + "calls-trunking-inbound-tollfree-local" + ), + CALLS_TRUNKING_INBOUND_TOLLFREE_MOBILE( + "calls-trunking-inbound-tollfree-mobile" + ), + CHANNELS_WHATSAPP_CONVERSATION_FREE_1( + "channels-whatsapp-conversation-free-1" + ), + CONFERENCE("conference"), + CONVERSATIONAL_INSIGHTS("conversational-insights"), + CONVERSATIONAL_INSIGHTS_MESSAGES("conversational-insights-messages"), + CONVERSATIONAL_INSIGHTS_VOICE_MINUTES( + "conversational-insights-voice-minutes" + ), + DEMO("demo"), + DEMO_UC_SCRIPT_TEST("demo-uc-script-test"), + ELASTIC_SIP_TRUNKING("elastic-sip-trunking"), + ELASTIC_SIP_TRUNKING_CALL_TRANSFERS( + "elastic-sip-trunking-call-transfers" + ), + ENTERPRISE_HIPPA("enterprise-hippa"), + FLEX_NAMED_USERS("flex-named-users"), + FLEX_SPINSCI("flex-spinsci"), + FLEX_USERS_1("flex-users-1"), + FLEX_WFO_PREMIUM_SPEECH_ANALYTICS("flex-wfo-premium-speech-analytics"), + FLEX_XCELERATE("flex-xcelerate"), + FUNCTIONS_ROLLUP("functions-rollup"), + IMP_V1_USAGE("imp-v1-usage"), + IP_MESSAGING_ADDONS("ip-messaging-addons"), + IVR("ivr"), + IVR_CONVERSATIONAL("ivr-conversational"), + IVR_DTMF("ivr-dtmf"), + IVR_VIRTUALAGENT("ivr-virtualagent"), + LIVE("live"), + LIVE_MEDIA_RECORDING_MINUTES("live-media-recording-minutes"), + LONGCODE_MPS("longcode-mps"), + MARKETPLACE_ANALYTICS_ADDONS("marketplace-analytics-addons"), + MARKETPLACE_ISV_ADDONS("marketplace-isv-addons"), + MARKETPLACE_MESSAGING_ADDONS("marketplace-messaging-addons"), + MARKETPLACE_PHONENUMBERS_ADDONS("marketplace-phonenumbers-addons"), + MARKETPLACE_RECORDING_ADDONS("marketplace-recording-addons"), + MARKETPLACE_VIRTUALAGENT_ADDONS("marketplace-virtualagent-addons"), + MARKETPLAY_PAY_ADDONS_SHUTTLE_PAY_CONNECTOR_1( + "marketplay-pay-addons-shuttle-pay-connector-1" + ), + MARKETPLAY_PAY_ADDONS_STRIPE_PAY_CONNECTOR( + "marketplay-pay-addons-stripe-pay-connector" + ), + MMS_INBOUND_LONGCODE_CANADA("mms-inbound-longcode-canada"), + MMS_INBOUND_LONGCODE_UNITEDSTATES("mms-inbound-longcode-unitedstates"), + MMS_OUTBOUND_LONGCODE_CANADA("mms-outbound-longcode-canada"), + MMS_OUTBOUND_LONGCODE_UNITEDSTATES( + "mms-outbound-longcode-unitedstates" + ), + MMS_OUTBOUND_TOLL_FREE("mms-outbound-toll-free"), + NOTIFY_CHATAPPSANDOTHERCHANNELS("notify-chatappsandotherchannels"), + NOTIFY_NOTIFYSERVICES("notify-notifyservices"), + NOTIFY_PUSHNOTIFICATIONS("notify-pushnotifications"), + PAYMENT_GATEWAY_CONNECTORS("payment-gateway-connectors"), + PAYMENT_SOLUTIONS("payment-solutions"), + PCHAT_BUCKET_ADJUSTMENT("pchat-bucket-adjustment"), + PHONENUMBERS_NUMBERS("phonenumbers-numbers"), + PROG_VOICE_CLIENT_ANDROID("prog-voice-client-android"), + PROG_VOICE_CLIENT_ANDROID_INBOUND("prog-voice-client-android-inbound"), + PROG_VOICE_CLIENT_ANDROID_OUTBOUND( + "prog-voice-client-android-outbound" + ), + PROG_VOICE_CLIENT_IOS("prog-voice-client-ios"), + PROG_VOICE_CLIENT_IOS_INBOUND("prog-voice-client-ios-inbound"), + PROG_VOICE_CLIENT_IOS_OUTBOUND("prog-voice-client-ios-outbound"), + PROG_VOICE_CLIENT_SDK("prog-voice-client-sdk"), + PROG_VOICE_CLIENT_WEB("prog-voice-client-web"), + PROG_VOICE_CLIENT_WEB_INBOUND("prog-voice-client-web-inbound"), + PROG_VOICE_CLIENT_WEB_OUTBOUND("prog-voice-client-web-outbound"), + PROGRAMMABLEVOICECONNECTIVITY_MEDIA_STREAMS( + "programmablevoiceconnectivity-media-streams" + ), + PSTNCONNECTIVITY_BYOC("pstnconnectivity-byoc"), + PSTNCONNECTIVITY_EMERGENCY("pstnconnectivity-emergency"), + PSTNCONNECTIVITY_MINUTES("pstnconnectivity-minutes"), + PSTNCONNECTIVITY_MINUTES_1("pstnconnectivity-minutes-1"), + PSTNCONNECTIVITY_MINUTESINBOUNDLOCAL( + "pstnconnectivity-minutesinboundlocal" + ), + PSTNCONNECTIVITY_MINUTESINBOUNDMOBILE( + "pstnconnectivity-minutesinboundmobile" + ), + PSTNCONNECTIVITY_MINUTESINBOUNDTOLLFREE( + "pstnconnectivity-minutesinboundtollfree" + ), + PSTNCONNECTIVITY_MINUTESINBOUNDTOLLFREELOCAL( + "pstnconnectivity-minutesinboundtollfreelocal" + ), + PSTNCONNECTIVITY_MINUTESINBOUNDTOLLFREEMOBILE( + "pstnconnectivity-minutesinboundtollfreemobile" + ), + PV_ROOM_HOURS("pv-room-hours"), + PV_ROOM_SIMULTANEOUS_PARTICIPANT_CONNECTIONS( + "pv-room-simultaneous-participant-connections" + ), + PVIDEO_ROOM_HOURS_AU1("pvideo-room-hours-au1"), + PVIDEO_ROOM_HOURS_BR1("pvideo-room-hours-br1"), + PVIDEO_ROOM_HOURS_IE1("pvideo-room-hours-ie1"), + PVIDEO_ROOM_HOURS_JP1("pvideo-room-hours-jp1"), + PVIDEO_ROOM_HOURS_SG1("pvideo-room-hours-sg1"), + PVIDEO_ROOM_HOURS_US1("pvideo-room-hours-us1"), + PVIDEO_ROOM_HOURS_US2("pvideo-room-hours-us2"), + RECORDINGS_ENCRYPTED("recordings-encrypted"), + SHORT_CODE_SETUP_FEES("short-code-setup-fees"), + SHORTCODES_MESSAGES_INBOUND("shortcodes-messages-inbound"), + SHORTCODES_MESSAGES_OUTBOUND("shortcodes-messages-outbound"), + SMS_MESSAGES_REGISTRATIONFEES("sms-messages-registrationfees"), + SMS_MMS_PENALTY_FEES("sms-mms-penalty-fees"), + SMS_MMS_PENALTY_FEES_1("sms-mms-penalty-fees-1"), + SMS_PUMPING_PROTECTION_NON_USCA("sms-pumping-protection-non-usca"), + SMS_PUMPING_PROTECTION_USCA("sms-pumping-protection-usca"), + STUDIO("studio"), + STUDIO_MONTHLY_FEES("studio-monthly-fees"), + SUPERSIM("supersim"), + TASK_ROUTER("task-router"), + TASK_ROUTER_WORKERS("task-router-workers"), + TEST_QUOTA_BUCKETS("test-quota-buckets"), + TEST_UC_SCRIPT_1("test-uc-script-1"), + TEST_UC_SCRIPT_DEMO_2("test-uc-script-demo-2"), + TEXT_TO_SPEECH("text-to-speech"), + TME("tme"), + TTS_BASIC("tts-basic"), + TWILIO_EDITIONS("twilio-editions"), + TWILIO_INTERCONNECT_CALIFORNIA("twilio-interconnect-california"), + TWILIO_INTERCONNECT_CALIFORNIA_MONTHLY( + "twilio-interconnect-california-monthly" + ), + TWILIO_INTERCONNECT_CALIFORNIA_SETUP( + "twilio-interconnect-california-setup" + ), + TWILIO_INTERCONNECT_FRANKFURT("twilio-interconnect-frankfurt"), + TWILIO_INTERCONNECT_FRANKFURT_MO("twilio-interconnect-frankfurt-mo"), + TWILIO_INTERCONNECT_FRANKFURT_SETUP( + "twilio-interconnect-frankfurt-setup" + ), + TWILIO_INTERCONNECT_LONDON("twilio-interconnect-london"), + TWILIO_INTERCONNECT_LONDON_MO("twilio-interconnect-london-mo"), + TWILIO_INTERCONNECT_LONDON_SETUP("twilio-interconnect-london-setup"), + TWILIO_INTERCONNECT_SAO_PAULO("twilio-interconnect-sao-paulo"), + TWILIO_INTERCONNECT_SAO_PAULO_MONTHLY( + "twilio-interconnect-sao-paulo-monthly" + ), + TWILIO_INTERCONNECT_SAO_PAULO_SETUP( + "twilio-interconnect-sao-paulo-setup" + ), + TWILIO_INTERCONNECT_SINGAPORE("twilio-interconnect-singapore"), + TWILIO_INTERCONNECT_SINGAPORE_MO("twilio-interconnect-singapore-mo"), + TWILIO_INTERCONNECT_SINGAPORE_SETUP( + "twilio-interconnect-singapore-setup" + ), + TWILIO_INTERCONNECT_SYDNEY("twilio-interconnect-sydney"), + TWILIO_INTERCONNECT_SYDNEY_MO("twilio-interconnect-sydney-mo"), + TWILIO_INTERCONNECT_SYDNEY_SETUP("twilio-interconnect-sydney-setup"), + TWILIO_INTERCONNECT_TOKYO("twilio-interconnect-tokyo"), + TWILIO_INTERCONNECT_TOKYO_MO("twilio-interconnect-tokyo-mo"), + TWILIO_INTERCONNECT_TOKYO_SETUP("twilio-interconnect-tokyo-setup"), + TWILIO_INTERCONNECT_VA("twilio-interconnect-va"), + TWILIO_INTERCONNECT_VA_MO("twilio-interconnect-va-mo"), + TWILIO_INTERCONNECT_VA_SETUP("twilio-interconnect-va-setup"), + TWIML_VERBS("twiml-verbs"), + TWIML_VERBS_SAY("twiml-verbs-say"), + USAGE_PROGRAMMABLE_MESSAGING_ENGAGEMENT_SUITE( + "usage-programmable-messaging-engagement-suite" + ), + USAGE_PROGRAMMABLE_MESSAGING_FEES_SERVICES( + "usage-programmable-messaging-fees-services" + ), + VERIFY_OUTBOUND_EMAIL("verify-outbound-email"), + VERIFY_PACKAGED_PLANS("verify-packaged-plans"), + VERIFY_SILENT_NETWORK_AUTH("verify-silent-network-auth"), + VERIFY_VOICE_AND_SMS("verify-voice-and-sms"), + VOICE_INSIGHTS_CLIENT_INSIGHTS_MONTHY_COMMIT( + "voice-insights-client-insights-monthy-commit" + ), + WIRELESS_DATA_PAYG_ASIA_AFG("wireless-data-payg-asia-afg"), + WIRELESS_MULTI_IMSI_SIM_COMMANDS("wireless-multi-imsi-sim-commands"), + WIRELESS_MULTI_IMSI_SIM_COMMANDS_USA( + "wireless-multi-imsi-sim-commands-usa" + ), + WIRELESS_MULTI_IMSI_SIM_DATA("wireless-multi-imsi-sim-data"), + WIRELESS_MULTI_IMSI_SIM_DATA_EU28("wireless-multi-imsi-sim-data-eu28"), + WIRELESS_MULTI_IMSI_SIM_DATA_USA("wireless-multi-imsi-sim-data-usa"), + WIRELESS_MULTI_IMSI_SIM_MONTHLY_FEES( + "wireless-multi-imsi-sim-monthly-fees" + ), + WIRELESS_MULTI_IMSI_SIM_USAGE("wireless-multi-imsi-sim-usage"), + WIRELESS_SUPER_SIM_DATA_NORTH_AMERICA( + "wireless-super-sim-data-north-america" + ), + WIRELESS_SUPER_SIM_USAGE("wireless-super-sim-usage"); + + private final String value; + + private Category(final String value) { + this.value = value; + } + + public String toString() { + return value; + } + + @JsonCreator + public static Category forValue(final String value) { + return Promoter.enumFromString(value, Category.values()); + } + } + /** * Converts a JSON String into a Monthly object using the provided ObjectMapper. * @@ -116,7 +1042,7 @@ public static String toJson(Object object, ObjectMapper mapper) { private final String asOf; @Getter - private final String category; + private final Monthly.Category category; @Getter private final String count; @@ -156,7 +1082,7 @@ private Monthly( @JsonProperty("account_sid") final String accountSid, @JsonProperty("api_version") final String apiVersion, @JsonProperty("as_of") final String asOf, - @JsonProperty("category") final String category, + @JsonProperty("category") final Monthly.Category category, @JsonProperty("count") final String count, @JsonProperty("count_unit") final String countUnit, @JsonProperty("description") final String description, diff --git a/src/main/java/com/twilio/rest/api/v2010/account/usage/record/MonthlyReader.java b/src/main/java/com/twilio/rest/api/v2010/account/usage/record/MonthlyReader.java index d21d122e35..56147d3a92 100644 --- a/src/main/java/com/twilio/rest/api/v2010/account/usage/record/MonthlyReader.java +++ b/src/main/java/com/twilio/rest/api/v2010/account/usage/record/MonthlyReader.java @@ -33,7 +33,7 @@ public class MonthlyReader extends Reader { private String pathAccountSid; - private String category; + private Monthly.Category category; private LocalDate startDate; private LocalDate endDate; private Boolean includeSubaccounts; @@ -45,7 +45,7 @@ public MonthlyReader(final String pathAccountSid) { this.pathAccountSid = pathAccountSid; } - public MonthlyReader setCategory(final String category) { + public MonthlyReader setCategory(final Monthly.Category category) { this.category = category; return this; } diff --git a/src/main/java/com/twilio/rest/api/v2010/account/usage/record/ThisMonth.java b/src/main/java/com/twilio/rest/api/v2010/account/usage/record/ThisMonth.java index e2c5102e94..15a6ccae82 100644 --- a/src/main/java/com/twilio/rest/api/v2010/account/usage/record/ThisMonth.java +++ b/src/main/java/com/twilio/rest/api/v2010/account/usage/record/ThisMonth.java @@ -25,6 +25,7 @@ import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.twilio.base.Resource; import com.twilio.base.Resource; +import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; import com.twilio.type.*; @@ -51,6 +52,931 @@ public static ThisMonthReader reader(final String pathAccountSid) { return new ThisMonthReader(pathAccountSid); } + public enum Category { + A2P_10DLC_REGISTRATIONFEES_BRANDREGISTRATION( + "a2p-10dlc-registrationfees-brandregistration" + ), + A2P_10DLC_REGISTRATIONFEES_BV("a2p-10dlc-registrationfees-bv"), + A2P_10DLC_REGISTRATIONFEES_CAMPAIGNCHARGES( + "a2p-10dlc-registrationfees-campaigncharges" + ), + A2P_10DLC_REGISTRATIONFEES_CAMPAIGNREGISTRATION( + "a2p-10dlc-registrationfees-campaignregistration" + ), + A2P_10DLC_REGISTRATIONFEES_CAMPAIGNVETTING( + "a2p-10dlc-registrationfees-campaignvetting" + ), + A2P_10DLC_REGISTRATIONFEES_MONTHLY( + "a2p-10dlc-registrationfees-monthly" + ), + A2P_10DLC_REGISTRATIONFEES_ONETIME( + "a2p-10dlc-registrationfees-onetime" + ), + A2P_REGISTRATION_FEES("a2p-registration-fees"), + ACCOUNT_SECURITY("account-security"), + AGENT_CONFERENCE("agent-conference"), + AGENT_COPILOT("agent-copilot"), + AGENT_COPILOT_MESSAGES("agent-copilot-messages"), + AGENT_COPILOT_PARTICIPANT_MINUTES("agent-copilot-participant-minutes"), + AI_ASSISTANTS("ai-assistants"), + AI_ASSISTANTS_VOICE("ai-assistants-voice"), + AMAZON_POLLY("amazon-polly"), + ANSWERING_MACHINE_DETECTION("answering-machine-detection"), + ASSETS("assets"), + AUDIENCE_MINUTES("audience-minutes"), + AUDIENCE_MINUTES_AUDIO("audience-minutes-audio"), + AUTHY_AUTHENTICATIONS("authy-authentications"), + AUTHY_CALLS_OUTBOUND("authy-calls-outbound"), + AUTHY_EMAIL_AUTHENTICATIONS("authy-email-authentications"), + AUTHY_MONTHLY_FEES("authy-monthly-fees"), + AUTHY_OUTBOUND_EMAIL("authy-outbound-email"), + AUTHY_PHONE_INTELLIGENCE("authy-phone-intelligence"), + AUTHY_PHONE_VERIFICATIONS("authy-phone-verifications"), + AUTHY_SMS_OUTBOUND("authy-sms-outbound"), + AUTHY_VERIFY_EMAIL_VERIFICATIONS("authy-verify-email-verifications"), + AUTHY_VERIFY_OUTBOUND_EMAIL("authy-verify-outbound-email"), + AUTOPILOT("autopilot"), + AUTOPILOT_HOME_ASSISTANTS("autopilot-home-assistants"), + AUTOPILOT_MESSAGING("autopilot-messaging"), + AUTOPILOT_OTHER("autopilot-other"), + AUTOPILOT_VOICE("autopilot-voice"), + BASIC_PEER_TO_PEER_ROOMS_PARTICIPANT_MINUTES( + "basic-peer-to-peer-rooms-participant-minutes" + ), + BRANDED_CALLING("branded-calling"), + BUNDLE_SMS_BUCKET("bundle-sms-bucket"), + BUNDLE_SUBSCRIPTION_FEES("bundle-subscription-fees"), + CALL_FORWARDING_LOOKUPS("call-forwarding-lookups"), + CALL_PROGESS_EVENTS("call-progess-events"), + CALLERIDLOOKUPS("calleridlookups"), + CALLS("calls"), + CALLS_CLIENT("calls-client"), + CALLS_EMERGENCY("calls-emergency"), + CALLS_GLOBALCONFERENCE("calls-globalconference"), + CALLS_INBOUND("calls-inbound"), + CALLS_INBOUND_LOCAL("calls-inbound-local"), + CALLS_INBOUND_MOBILE("calls-inbound-mobile"), + CALLS_INBOUND_TOLLFREE("calls-inbound-tollfree"), + CALLS_INBOUND_TOLLFREE_LOCAL("calls-inbound-tollfree-local"), + CALLS_INBOUND_TOLLFREE_MOBILE("calls-inbound-tollfree-mobile"), + CALLS_MEDIA_STREAM_MINUTES("calls-media-stream-minutes"), + CALLS_OUTBOUND("calls-outbound"), + CALLS_PAY_VERB_TRANSACTIONS("calls-pay-verb-transactions"), + CALLS_RECORDINGS("calls-recordings"), + CALLS_SIP("calls-sip"), + CALLS_SIP_INBOUND("calls-sip-inbound"), + CALLS_SIP_OUTBOUND("calls-sip-outbound"), + CALLS_TEXT_TO_SPEECH("calls-text-to-speech"), + CALLS_TRANSFERS("calls-transfers"), + CARRIER_LOOKUPS("carrier-lookups"), + CATEGORY("category"), + CHANNELS("channels"), + CHANNELS_MESSAGING("channels-messaging"), + CHANNELS_MESSAGING_INBOUND("channels-messaging-inbound"), + CHANNELS_MESSAGING_OUTBOUND("channels-messaging-outbound"), + CHANNELS_WHATSAPP("channels-whatsapp"), + CHANNELS_WHATSAPP_CONVERSATION_AUTHENTICATION( + "channels-whatsapp-conversation-authentication" + ), + CHANNELS_WHATSAPP_CONVERSATION_FREE( + "channels-whatsapp-conversation-free" + ), + CHANNELS_WHATSAPP_CONVERSATION_MARKETING( + "channels-whatsapp-conversation-marketing" + ), + CHANNELS_WHATSAPP_CONVERSATION_SERVICE( + "channels-whatsapp-conversation-service" + ), + CHANNELS_WHATSAPP_CONVERSATION_UTILITY( + "channels-whatsapp-conversation-utility" + ), + CHANNELS_WHATSAPP_INBOUND("channels-whatsapp-inbound"), + CHANNELS_WHATSAPP_OUTBOUND("channels-whatsapp-outbound"), + CHAT_VIRTUAL_AGENT("chat-virtual-agent"), + CONVERSATION_RELAY("conversation-relay"), + CONVERSATIONS("conversations"), + CONVERSATIONS_API_REQUESTS("conversations-api-requests"), + CONVERSATIONS_CONVERSATION_EVENTS("conversations-conversation-events"), + CONVERSATIONS_ENDPOINT_CONNECTIVITY( + "conversations-endpoint-connectivity" + ), + CONVERSATIONS_EVENTS("conversations-events"), + CONVERSATIONS_PARTICIPANT_EVENTS("conversations-participant-events"), + CONVERSATIONS_PARTICIPANTS("conversations-participants"), + CPS("cps"), + CREDIT_TRANSFER("credit-transfer"), + EMAIL("email"), + EMERGING_TECH("emerging-tech"), + ENGAGEMENT_SUITE_PACKAGED_PLANS("engagement-suite-packaged-plans"), + ENHANCED_LINE_TYPE_LOOKUPS("enhanced-line-type-lookups"), + ENTERPRISE("enterprise"), + EVENTS("events"), + EXPERIMENT_FRANCE_SMS("experiment-france-sms"), + EXPERIMENT_INDIA_SMS("experiment-india-sms"), + EXPERIMENT_UK_SMS("experiment-uk-sms"), + FAILED_MESSAGE_PROCESSING_FEE("failed-message-processing-fee"), + FLEX("flex"), + FLEX_ACTIVE_USER_HOURS("flex-active-user-hours"), + FLEX_CONCURRENT_USERS("flex-concurrent-users"), + FLEX_CONVERSATIONAL_INSIGHTS("flex-conversational-insights"), + FLEX_CONVERSATIONAL_INSIGHTS_MESSAGES( + "flex-conversational-insights-messages" + ), + FLEX_CONVERSATIONAL_INSIGHTS_VOICE_MINUTES( + "flex-conversational-insights-voice-minutes" + ), + FLEX_EMAIL_USAGE("flex-email-usage"), + FLEX_MESSAGING_USAGE("flex-messaging-usage"), + FLEX_PARTNER_SPINSCI("flex-partner-spinsci"), + FLEX_PARTNER_XCELERATE("flex-partner-xcelerate"), + FLEX_RESELLER_ECOSYSTEM("flex-reseller-ecosystem"), + FLEX_UNIQUE_USER("flex-unique-user"), + FLEX_USAGE("flex-usage"), + FLEX_USERS("flex-users"), + FLEX_VOICE_MINUTE("flex-voice-minute"), + FLEX_YTICA("flex-ytica"), + FRAUD_LOOKUPS("fraud-lookups"), + FRONTLINE("frontline"), + FRONTLINE_USERS("frontline-users"), + FUNCTIONS("functions"), + GENERIC_PAY_TRANSACTIONS("generic-pay-transactions"), + GROUP_ROOMS("group-rooms"), + GROUP_ROOMS_DATA_TRACK("group-rooms-data-track"), + GROUP_ROOMS_ENCRYPTED_MEDIA_RECORDED( + "group-rooms-encrypted-media-recorded" + ), + GROUP_ROOMS_MEDIA_DOWNLOADED("group-rooms-media-downloaded"), + GROUP_ROOMS_MEDIA_RECORDED("group-rooms-media-recorded"), + GROUP_ROOMS_MEDIA_ROUTED("group-rooms-media-routed"), + GROUP_ROOMS_MEDIA_STORED("group-rooms-media-stored"), + GROUP_ROOMS_PARTICIPANT_MINUTES("group-rooms-participant-minutes"), + GROUP_ROOMS_RECORDED_MINUTES("group-rooms-recorded-minutes"), + IP_MESSAGING("ip-messaging"), + IP_MESSAGING_COMMANDS("ip-messaging-commands"), + IP_MESSAGING_DATA_STORAGE("ip-messaging-data-storage"), + IP_MESSAGING_DATA_TRANSFER("ip-messaging-data-transfer"), + IP_MESSAGING_ENDPOINT_CONNECTIVITY( + "ip-messaging-endpoint-connectivity" + ), + IVR_VIRTUAL_AGENT_CUSTOM_VOICES("ivr-virtual-agent-custom-voices"), + IVR_VIRTUAL_AGENT_GENAI("ivr-virtual-agent-genai"), + LINE_STATUS_LOOKUPS("line-status-lookups"), + LIVE_ACTIVITY_LOOKUPS("live-activity-lookups"), + LOOKUP_BUCKET_ADJUSTMENT("lookup-bucket-adjustment"), + LOOKUP_IDENTITY_MATCH("lookup-identity-match"), + LOOKUPS("lookups"), + MARKETPLACE("marketplace"), + MARKETPLACE_ALGORITHMIA_NAMED_ENTITY_RECOGNITION( + "marketplace-algorithmia-named-entity-recognition" + ), + MARKETPLACE_CADENCE_TRANSCRIPTION("marketplace-cadence-transcription"), + MARKETPLACE_CADENCE_TRANSLATION("marketplace-cadence-translation"), + MARKETPLACE_CAPIO_SPEECH_TO_TEXT("marketplace-capio-speech-to-text"), + MARKETPLACE_CONVRIZA_ABABA("marketplace-convriza-ababa"), + MARKETPLACE_DEEPGRAM_PHRASE_DETECTOR( + "marketplace-deepgram-phrase-detector" + ), + MARKETPLACE_DEEPGRAM_TRANSCRIPTION( + "marketplace-deepgram-transcription" + ), + MARKETPLACE_DEEPGRAM_TRANSCRIPTION_BASE( + "marketplace-deepgram-transcription-base" + ), + MARKETPLACE_DEEPGRAM_TRANSSCRIPTION_ENHANCED( + "marketplace-deepgram-transscription-enhanced" + ), + MARKETPLACE_DIGITAL_SEGMENT_BUSINESS_INFO( + "marketplace-digital-segment-business-info" + ), + MARKETPLACE_FACEBOOK_OFFLINE_CONVERSIONS( + "marketplace-facebook-offline-conversions" + ), + MARKETPLACE_GOOGLE_SPEECH_TO_TEXT("marketplace-google-speech-to-text"), + MARKETPLACE_IBM_WATSON_MESSAGE_INSIGHTS( + "marketplace-ibm-watson-message-insights" + ), + MARKETPLACE_IBM_WATSON_MESSAGE_SENTIMENT( + "marketplace-ibm-watson-message-sentiment" + ), + MARKETPLACE_IBM_WATSON_RECORDING_ANALYSIS( + "marketplace-ibm-watson-recording-analysis" + ), + MARKETPLACE_IBM_WATSON_TONE_ANALYZER( + "marketplace-ibm-watson-tone-analyzer" + ), + MARKETPLACE_ICEHOOK_SYSTEMS_SCOUT("marketplace-icehook-systems-scout"), + MARKETPLACE_INFOGROUP_DATAAXLE_BIZINFO( + "marketplace-infogroup-dataaxle-bizinfo" + ), + MARKETPLACE_KEEN_IO_CONTACT_CENTER_ANALYTICS( + "marketplace-keen-io-contact-center-analytics" + ), + MARKETPLACE_MARCHEX_CLEANCALL("marketplace-marchex-cleancall"), + MARKETPLACE_MARCHEX_RECORDING_ANALYSIS( + "marketplace-marchex-recording-analysis" + ), + MARKETPLACE_MARCHEX_SENTIMENT_ANALYSIS_FOR_SMS( + "marketplace-marchex-sentiment-analysis-for-sms" + ), + MARKETPLACE_MARKETPLACE_NEXTCALLER_SOCIAL_ID( + "marketplace-marketplace-nextcaller-social-id" + ), + MARKETPLACE_MOBILE_COMMONS_OPT_OUT_CLASSIFIER( + "marketplace-mobile-commons-opt-out-classifier" + ), + MARKETPLACE_NEXIWAVE_VOICEMAIL_TO_TEXT( + "marketplace-nexiwave-voicemail-to-text" + ), + MARKETPLACE_NEXTCALLER_ADVANCED_CALLER_IDENTIFICATION( + "marketplace-nextcaller-advanced-caller-identification" + ), + MARKETPLACE_NOMOROBO_SPAM_SCORE("marketplace-nomorobo-spam-score"), + MARKETPLACE_PAY_ADDONS("marketplace-pay-addons"), + MARKETPLACE_PAY_ADDONS_BASECOMMERCE_PAY_CONNECTOR( + "marketplace-pay-addons-basecommerce-pay-connector" + ), + MARKETPLACE_PAY_ADDONS_BRAINTREE_PAY_CONNECTOR( + "marketplace-pay-addons-braintree-pay-connector" + ), + MARKETPLACE_PAY_ADDONS_CARDCONNECT_PAY_CONNECTOR( + "marketplace-pay-addons-cardconnect-pay-connector" + ), + MARKETPLACE_PAY_ADDONS_CHASE_PAY_CONNECTOR( + "marketplace-pay-addons-chase-pay-connector" + ), + MARKETPLACE_PAY_ADDONS_SHUTTLE_PAY_CONNECTOR( + "marketplace-pay-addons-shuttle-pay-connector" + ), + MARKETPLACE_PAY_ADDONS_STRIPE_PAY_CONNECTOR( + "marketplace-pay-addons-stripe-pay-connector" + ), + MARKETPLACE_PAYFONE_TCPA_COMPLIANCE( + "marketplace-payfone-tcpa-compliance" + ), + MARKETPLACE_POLY_AI_CONNECTOR("marketplace-poly-ai-connector"), + MARKETPLACE_REALPHONEVALIDATION("marketplace-realphonevalidation"), + MARKETPLACE_REMEETING_AUTOMATIC_SPEECH_RECOGNITION( + "marketplace-remeeting-automatic-speech-recognition" + ), + MARKETPLACE_SPOKE_PHONE_LICENSE_PRO( + "marketplace-spoke-phone-license-pro" + ), + MARKETPLACE_SPOKE_PHONE_LICENSE_STANDARD( + "marketplace-spoke-phone-license-standard" + ), + MARKETPLACE_TCPA_DEFENSE_SOLUTIONS_BLACKLIST_FEED( + "marketplace-tcpa-defense-solutions-blacklist-feed" + ), + MARKETPLACE_TELO_OPENCNAM("marketplace-telo-opencnam"), + MARKETPLACE_TRESTLE_SOLUTIONS_CALLER_IDENTIFICATION( + "marketplace-trestle-solutions-caller-identification" + ), + MARKETPLACE_TRUECNAM_TRUE_SPAM("marketplace-truecnam-true-spam"), + MARKETPLACE_TWILIO_CALLER_NAME_LOOKUP_US( + "marketplace-twilio-caller-name-lookup-us" + ), + MARKETPLACE_TWILIO_CARRIER_INFORMATION_LOOKUP( + "marketplace-twilio-carrier-information-lookup" + ), + MARKETPLACE_VOICEBASE_PCI("marketplace-voicebase-pci"), + MARKETPLACE_VOICEBASE_TRANSCRIPTION( + "marketplace-voicebase-transcription" + ), + MARKETPLACE_VOICEBASE_TRANSCRIPTION_CUSTOM_VOCABULARY( + "marketplace-voicebase-transcription-custom-vocabulary" + ), + MARKETPLACE_WEB_PURIFY_PROFANITY_FILTER( + "marketplace-web-purify-profanity-filter" + ), + MARKETPLACE_WHITEPAGES_PRO_CALLER_IDENTIFICATION( + "marketplace-whitepages-pro-caller-identification" + ), + MARKETPLACE_WHITEPAGES_PRO_PHONE_INTELLIGENCE( + "marketplace-whitepages-pro-phone-intelligence" + ), + MARKETPLACE_WHITEPAGES_PRO_PHONE_REPUTATION( + "marketplace-whitepages-pro-phone-reputation" + ), + MARKETPLACE_WOLFARM_SPOKEN_RESULTS( + "marketplace-wolfarm-spoken-results" + ), + MARKETPLACE_WOLFRAM_SHORT_ANSWER("marketplace-wolfram-short-answer"), + MARKETPLACE_YTICA_CONTACT_CENTER_REPORTING_ANALYTICS( + "marketplace-ytica-contact-center-reporting-analytics" + ), + MARKETPLAY_PAY_ADDONS_SHUTTLE_PAY_CONNECTOR( + "marketplay-pay-addons-shuttle-pay-connector" + ), + MEDIA_COMPOSER_MINUTES("media-composer-minutes"), + MEDIASTORAGE("mediastorage"), + MIN_SPEND_ADJUSTMENTS("min-spend-adjustments"), + MMS("mms"), + MMS_INBOUND("mms-inbound"), + MMS_INBOUND_LONGCODE("mms-inbound-longcode"), + MMS_INBOUND_SHORTCODE("mms-inbound-shortcode"), + MMS_INBOUND_TOLL_FREE("mms-inbound-toll-free"), + MMS_MESSAGES_CARRIERFEES("mms-messages-carrierfees"), + MMS_OUTBOUND("mms-outbound"), + MMS_OUTBOUND_LONGCODE("mms-outbound-longcode"), + MMS_OUTBOUND_SHORTCODE("mms-outbound-shortcode"), + MMS_OUTBOUND_TOLLFREE("mms-outbound-tollfree"), + MONITOR("monitor"), + MONITOR_READS("monitor-reads"), + MONITOR_STORAGE("monitor-storage"), + MONITOR_WRITES("monitor-writes"), + NOTIFY("notify"), + NOTIFY_ACTIONS_ATTEMPTS("notify-actions-attempts"), + NOTIFY_CHANNELS("notify-channels"), + NUMBER_FORMAT_LOOKUPS("number-format-lookups"), + PCHAT("pchat"), + PCHAT_ACTIONS("pchat-actions"), + PCHAT_APS("pchat-aps"), + PCHAT_CONV_MED_STORAGE("pchat-conv-med-storage"), + PCHAT_MESSAGES("pchat-messages"), + PCHAT_NOTIFICATIONS("pchat-notifications"), + PCHAT_READS("pchat-reads"), + PCHAT_USERS("pchat-users"), + PEER_TO_PEER_ROOMS_PARTICIPANT_MINUTES( + "peer-to-peer-rooms-participant-minutes" + ), + PFAX("pfax"), + PFAX_MINUTES("pfax-minutes"), + PFAX_MINUTES_INBOUND("pfax-minutes-inbound"), + PFAX_MINUTES_OUTBOUND("pfax-minutes-outbound"), + PFAX_PAGES("pfax-pages"), + PHONE_QUALITY_SCORE_LOOKUPS("phone-quality-score-lookups"), + PHONENUMBERS("phonenumbers"), + PHONENUMBERS_CPS("phonenumbers-cps"), + PHONENUMBERS_EMERGENCY("phonenumbers-emergency"), + PHONENUMBERS_LOCAL("phonenumbers-local"), + PHONENUMBERS_MOBILE("phonenumbers-mobile"), + PHONENUMBERS_PORTING("phonenumbers-porting"), + PHONENUMBERS_SETUPS("phonenumbers-setups"), + PHONENUMBERS_TOLLFREE("phonenumbers-tollfree"), + PREMIUMSUPPORT("premiumsupport"), + PREMIUMSUPPORT_PERCENTAGE_SPEND("premiumsupport-percentage-spend"), + PROGRAMMABLEVOICE_PLATFORM("programmablevoice-platform"), + PROGRAMMABLEVOICECONN_CLIENTSDK("programmablevoiceconn-clientsdk"), + PROGRAMMABLEVOICECONN_CLIENTSDK_INBOUND( + "programmablevoiceconn-clientsdk-inbound" + ), + PROGRAMMABLEVOICECONN_CLIENTSDK_OUTBOUND( + "programmablevoiceconn-clientsdk-outbound" + ), + PROGRAMMABLEVOICECONN_ONNET("programmablevoiceconn-onnet"), + PROGRAMMABLEVOICECONN_ONNET_INBOUND( + "programmablevoiceconn-onnet-inbound" + ), + PROGRAMMABLEVOICECONN_ONNET_OUTBOUND( + "programmablevoiceconn-onnet-outbound" + ), + PROGRAMMABLEVOICECONN_SIP("programmablevoiceconn-sip"), + PROGRAMMABLEVOICECONN_SIP_INBOUND("programmablevoiceconn-sip-inbound"), + PROGRAMMABLEVOICECONN_SIP_OUTBOUND( + "programmablevoiceconn-sip-outbound" + ), + PROGRAMMABLEVOICECONNECTIVITY("programmablevoiceconnectivity"), + PROXY("proxy"), + PROXY_ACTIVE_SESSIONS("proxy-active-sessions"), + PROXY_BUCKET_ADJUSTMENT("proxy-bucket-adjustment"), + PROXY_LICENSES("proxy-licenses"), + PSTNCONNECTIVITY("pstnconnectivity"), + PSTNCONNECTIVITY_INBOUND("pstnconnectivity-inbound"), + PSTNCONNECTIVITY_OUTBOUND("pstnconnectivity-outbound"), + PV("pv"), + PV_BASIC_ROOMS("pv-basic-rooms"), + PV_COMPOSITION_MEDIA_DOWNLOADED("pv-composition-media-downloaded"), + PV_COMPOSITION_MEDIA_ENCRYPTED("pv-composition-media-encrypted"), + PV_COMPOSITION_MEDIA_STORED("pv-composition-media-stored"), + PV_COMPOSITION_MINUTES("pv-composition-minutes"), + PV_RECORDING_COMPOSITIONS("pv-recording-compositions"), + PV_ROOM_PARTICIPANTS("pv-room-participants"), + PV_ROOM_PARTICIPANTS_AU1("pv-room-participants-au1"), + PV_ROOM_PARTICIPANTS_BR1("pv-room-participants-br1"), + PV_ROOM_PARTICIPANTS_IE1("pv-room-participants-ie1"), + PV_ROOM_PARTICIPANTS_JP1("pv-room-participants-jp1"), + PV_ROOM_PARTICIPANTS_SG1("pv-room-participants-sg1"), + PV_ROOM_PARTICIPANTS_US1("pv-room-participants-us1"), + PV_ROOM_PARTICIPANTS_US2("pv-room-participants-us2"), + PV_ROOMS("pv-rooms"), + PV_SIP_ENDPOINT_REGISTRATIONS("pv-sip-endpoint-registrations"), + RCS_MESSAGES("rcs-messages"), + REASSIGNED_NUMBER("reassigned-number"), + RECORDINGS("recordings"), + RECORDINGSTORAGE("recordingstorage"), + SHORTCODES("shortcodes"), + SHORTCODES_CUSTOMEROWNED("shortcodes-customerowned"), + SHORTCODES_MMS_ENABLEMENT("shortcodes-mms-enablement"), + SHORTCODES_MPS("shortcodes-mps"), + SHORTCODES_RANDOM("shortcodes-random"), + SHORTCODES_SETUP_FEES("shortcodes-setup-fees"), + SHORTCODES_UK("shortcodes-uk"), + SHORTCODES_VANITY("shortcodes-vanity"), + SIM_SWAP_LOOKUPS("sim-swap-lookups"), + SIP_SECURE_MEDIA("sip-secure-media"), + SMALL_GROUP_ROOMS("small-group-rooms"), + SMALL_GROUP_ROOMS_DATA_TRACK("small-group-rooms-data-track"), + SMALL_GROUP_ROOMS_PARTICIPANT_MINUTES( + "small-group-rooms-participant-minutes" + ), + SMS("sms"), + SMS_INBOUND("sms-inbound"), + SMS_INBOUND_LONGCODE("sms-inbound-longcode"), + SMS_INBOUND_SHORTCODE("sms-inbound-shortcode"), + SMS_INBOUND_TOLLFREE("sms-inbound-tollfree"), + SMS_MESSAGES_CARRIERFEES("sms-messages-carrierfees"), + SMS_MESSAGES_FEATURES("sms-messages-features"), + SMS_MESSAGES_FEATURES_ENGAGEMENT_SUITE( + "sms-messages-features-engagement-suite" + ), + SMS_MESSAGES_FEATURES_MESSAGE_REDACTION( + "sms-messages-features-message-redaction" + ), + SMS_MESSAGES_FEATURES_SENDERID("sms-messages-features-senderid"), + SMS_MPS("sms-mps"), + SMS_MPS_SHORTCODE("sms-mps-shortcode"), + SMS_MPS_TOLLFREE("sms-mps-tollfree"), + SMS_MPS_TOLLFREE_SETUP("sms-mps-tollfree-setup"), + SMS_NATIONAL_REGULATORY_PROTECTION( + "sms-national-regulatory-protection" + ), + SMS_OUTBOUND("sms-outbound"), + SMS_OUTBOUND_CONTENT_INSPECTION("sms-outbound-content-inspection"), + SMS_OUTBOUND_LONGCODE("sms-outbound-longcode"), + SMS_OUTBOUND_SHORTCODE("sms-outbound-shortcode"), + SMS_OUTBOUND_TOLLFREE("sms-outbound-tollfree"), + SMS_PUMPING_PROTECTION("sms-pumping-protection"), + SMS_PUMPING_RISK("sms-pumping-risk"), + SMSMESSAGES_BUCKET_ADJUSTMENTS("smsmessages-bucket-adjustments"), + SMSMESSAGES_OUTBOUND_DOMESTIC("smsmessages-outbound-domestic"), + SPEECH_RECOGNITION("speech-recognition"), + STUDIO_ENGAGEMENTS("studio-engagements"), + SYNC("sync"), + SYNC_ACTIONS("sync-actions"), + SYNC_ENDPOINT_HOURS("sync-endpoint-hours"), + SYNC_ENDPOINT_HOURS_ABOVE_DAILY_CAP( + "sync-endpoint-hours-above-daily-cap" + ), + TASKROUTER_TASKS("taskrouter-tasks"), + TOTALPRICE("totalprice"), + TRANSCRIPTIONS("transcriptions"), + TRUNKING_CPS("trunking-cps"), + TRUNKING_EMERGENCY_CALLS("trunking-emergency-calls"), + TRUNKING_ORIGINATION("trunking-origination"), + TRUNKING_ORIGINATION_LOCAL("trunking-origination-local"), + TRUNKING_ORIGINATION_MOBILE("trunking-origination-mobile"), + TRUNKING_ORIGINATION_TOLLFREE("trunking-origination-tollfree"), + TRUNKING_RECORDINGS("trunking-recordings"), + TRUNKING_SECURE("trunking-secure"), + TRUNKING_TERMINATION("trunking-termination"), + TTS_GOOGLE("tts-google"), + TURNMEGABYTES("turnmegabytes"), + TURNMEGABYTES_AUSTRALIA("turnmegabytes-australia"), + TURNMEGABYTES_BRASIL("turnmegabytes-brasil"), + TURNMEGABYTES_GERMANY("turnmegabytes-germany"), + TURNMEGABYTES_INDIA("turnmegabytes-india"), + TURNMEGABYTES_IRELAND("turnmegabytes-ireland"), + TURNMEGABYTES_JAPAN("turnmegabytes-japan"), + TURNMEGABYTES_SINGAPORE("turnmegabytes-singapore"), + TURNMEGABYTES_USEAST("turnmegabytes-useast"), + TURNMEGABYTES_USWEST("turnmegabytes-uswest"), + TWILIO_FOR_SALESFORCE("twilio-for-salesforce"), + TWILIO_FOR_SALESFORCE_LICENSES("twilio-for-salesforce-licenses"), + TWILIO_INTERCONNECT("twilio-interconnect"), + TWIML("twiml"), + USAGE_FLEX_VIDEO("usage-flex-video"), + USAGE_FUNCTIONS("usage-functions"), + USAGE_RCS_BASIC_MESSAGES_OUTBOUND("usage-rcs-basic-messages-outbound"), + USAGE_RCS_MESSAGES("usage-rcs-messages"), + USAGE_RCS_MESSAGES_INBOUND("usage-rcs-messages-inbound"), + USAGE_RCS_MESSAGING_CARRIER_FEES("usage-rcs-messaging-carrier-fees"), + USAGE_RCS_SINGLE_MESSAGES_OUTBOUND( + "usage-rcs-single-messages-outbound" + ), + VERIFY_PACKAGE_PLANS("verify-package-plans"), + VERIFY_PUSH("verify-push"), + VERIFY_SNA("verify-sna"), + VERIFY_TOTP("verify-totp"), + VERIFY_VOICE_SMS("verify-voice-sms"), + VERIFY_WHATSAPP_CONVERSATIONS_BUSINESS_INITIATED( + "verify-whatsapp-conversations-business-initiated" + ), + VIDEO_RECORDINGS("video-recordings"), + VIDEO_ROOMS_TURN_MEGABYTES("video-rooms-turn-megabytes"), + VIRTUAL_AGENT("virtual-agent"), + VOICE_INSIGHTS("voice-insights"), + VOICE_INSIGHTS_CLIENT_INSIGHTS_ON_DEMAND_MINUTE( + "voice-insights-client-insights-on-demand-minute" + ), + VOICE_INSIGHTS_PTSN_INSIGHTS_ON_DEMAND_MINUTE( + "voice-insights-ptsn-insights-on-demand-minute" + ), + VOICE_INSIGHTS_SIP_INTERFACE_INSIGHTS_ON_DEMAND_MINUTE( + "voice-insights-sip-interface-insights-on-demand-minute" + ), + VOICE_INSIGHTS_SIP_TRUNKING_INSIGHTS_ON_DEMAND_MINUTE( + "voice-insights-sip-trunking-insights-on-demand-minute" + ), + VOICE_INTELLIGENCE("voice-intelligence"), + VOICE_INTELLIGENCE_EIP_OPERATORS("voice-intelligence-eip-operators"), + VOICE_INTELLIGENCE_OPERATORS("voice-intelligence-operators"), + VOICE_INTELLIGENCE_TRANSCRIPTION("voice-intelligence-transcription"), + WDS("wds"), + WIRELESS("wireless"), + WIRELESS_DATA("wireless-data"), + WIRELESS_DATA_PAYG("wireless-data-payg"), + WIRELESS_DATA_PAYG_AFRICA("wireless-data-payg-africa"), + WIRELESS_DATA_PAYG_ASIA("wireless-data-payg-asia"), + WIRELESS_DATA_PAYG_CENTRALANDSOUTHAMERICA( + "wireless-data-payg-centralandsouthamerica" + ), + WIRELESS_DATA_PAYG_EUROPE("wireless-data-payg-europe"), + WIRELESS_DATA_PAYG_NORTHAMERICA("wireless-data-payg-northamerica"), + WIRELESS_DATA_PAYG_OCEANIA("wireless-data-payg-oceania"), + WIRELESS_DATA_QUOTA1("wireless-data-quota1"), + WIRELESS_DATA_QUOTA1_AFRICA("wireless-data-quota1-africa"), + WIRELESS_DATA_QUOTA1_ASIA("wireless-data-quota1-asia"), + WIRELESS_DATA_QUOTA1_CENTRALANDSOUTHAMERICA( + "wireless-data-quota1-centralandsouthamerica" + ), + WIRELESS_DATA_QUOTA1_EUROPE("wireless-data-quota1-europe"), + WIRELESS_DATA_QUOTA1_NORTHAMERICA("wireless-data-quota1-northamerica"), + WIRELESS_DATA_QUOTA1_OCEANIA("wireless-data-quota1-oceania"), + WIRELESS_DATA_QUOTA10("wireless-data-quota10"), + WIRELESS_DATA_QUOTA10_AFRICA("wireless-data-quota10-africa"), + WIRELESS_DATA_QUOTA10_ASIA("wireless-data-quota10-asia"), + WIRELESS_DATA_QUOTA10_CENTRALANDSOUTHAMERICA( + "wireless-data-quota10-centralandsouthamerica" + ), + WIRELESS_DATA_QUOTA10_EUROPE("wireless-data-quota10-europe"), + WIRELESS_DATA_QUOTA10_NORTHAMERICA( + "wireless-data-quota10-northamerica" + ), + WIRELESS_DATA_QUOTA10_OCEANIA("wireless-data-quota10-oceania"), + WIRELESS_DATA_QUOTA50("wireless-data-quota50"), + WIRELESS_DATA_QUOTA50_AFRICA("wireless-data-quota50-africa"), + WIRELESS_DATA_QUOTA50_ASIA("wireless-data-quota50-asia"), + WIRELESS_DATA_QUOTA50_CENTRALANDSOUTHAMERICA( + "wireless-data-quota50-centralandsouthamerica" + ), + WIRELESS_DATA_QUOTA50_EUROPE("wireless-data-quota50-europe"), + WIRELESS_DATA_QUOTA50_NORTHAMERICA( + "wireless-data-quota50-northamerica" + ), + WIRELESS_DATA_QUOTA50_OCEANIA("wireless-data-quota50-oceania"), + WIRELESS_DATA_QUOTACUSTOM("wireless-data-quotacustom"), + WIRELESS_DATA_QUOTACUSTOM_AFRICA("wireless-data-quotacustom-africa"), + WIRELESS_DATA_QUOTACUSTOM_ASIA("wireless-data-quotacustom-asia"), + WIRELESS_DATA_QUOTACUSTOM_CENTRALANDSOUTHAMERICA( + "wireless-data-quotacustom-centralandsouthamerica" + ), + WIRELESS_DATA_QUOTACUSTOM_EUROPE("wireless-data-quotacustom-europe"), + WIRELESS_DATA_QUOTACUSTOM_NORTHAMERICA( + "wireless-data-quotacustom-northamerica" + ), + WIRELESS_DATA_QUOTACUSTOM_OCEANIA("wireless-data-quotacustom-oceania"), + WIRELESS_MRC_PAYG("wireless-mrc-payg"), + WIRELESS_MRC_QUOTA1("wireless-mrc-quota1"), + WIRELESS_MRC_QUOTA10("wireless-mrc-quota10"), + WIRELESS_MRC_QUOTA50("wireless-mrc-quota50"), + WIRELESS_MRC_QUOTACUSTOM("wireless-mrc-quotacustom"), + WIRELESS_ORDERS("wireless-orders"), + WIRELESS_ORDERS_ARTWORK("wireless-orders-artwork"), + WIRELESS_ORDERS_BULK("wireless-orders-bulk"), + WIRELESS_ORDERS_ESIM("wireless-orders-esim"), + WIRELESS_ORDERS_STARTER("wireless-orders-starter"), + WIRELESS_QUOTAS("wireless-quotas"), + WIRELESS_SMS_AFRICA("wireless-sms-africa"), + WIRELESS_SMS_ASIA("wireless-sms-asia"), + WIRELESS_SMS_CENTRALANDSOUTHAMERICA( + "wireless-sms-centralandsouthamerica" + ), + WIRELESS_SMS_EUROPE("wireless-sms-europe"), + WIRELESS_SMS_NORTHAMERICA("wireless-sms-northamerica"), + WIRELESS_SMS_OCEANIA("wireless-sms-oceania"), + WIRELESS_SUPER_SIM("wireless-super-sim"), + WIRELESS_SUPER_SIM_DATA("wireless-super-sim-data"), + WIRELESS_SUPER_SIM_DATA_NORTH_AMERICA_USA( + "wireless-super-sim-data-north-america-usa" + ), + WIRELESS_SUPER_SIM_DATA_PAYG("wireless-super-sim-data-payg"), + WIRELESS_SUPER_SIM_DATA_PAYG_EUROPE( + "wireless-super-sim-data-payg-europe" + ), + WIRELESS_SUPER_SIM_DATA_PAYG_NORTH_AMERICA( + "wireless-super-sim-data-payg-north-america" + ), + WIRELESS_SUPER_SIM_HARDWARE("wireless-super-sim-hardware"), + WIRELESS_SUPER_SIM_HARDWARE_BULK("wireless-super-sim-hardware-bulk"), + WIRELESS_SUPER_SIM_SMSCOMMANDS("wireless-super-sim-smscommands"), + WIRELESS_SUPER_SIM_SMSCOMMANDS_AFRICA( + "wireless-super-sim-smscommands-africa" + ), + WIRELESS_SUPER_SIM_SMSCOMMANDS_ASIA( + "wireless-super-sim-smscommands-asia" + ), + WIRELESS_SUPER_SIM_SMSCOMMANDS_CENT_AND_SOUTH_AMERICA( + "wireless-super-sim-smscommands-cent-and-south-america" + ), + WIRELESS_SUPER_SIM_SMSCOMMANDS_EUROPE( + "wireless-super-sim-smscommands-europe" + ), + WIRELESS_SUPER_SIM_SMSCOMMANDS_NORTH_AMERICA( + "wireless-super-sim-smscommands-north-america" + ), + WIRELESS_SUPER_SIM_SMSCOMMANDS_OCEANIA( + "wireless-super-sim-smscommands-oceania" + ), + WIRELESS_SUPER_SIM_SUBSCRIPTION("wireless-super-sim-subscription"), + WIRELESS_SUPER_SIM_SUBSCRIPTION_PAYG( + "wireless-super-sim-subscription-payg" + ), + WIRELESS_USAGE("wireless-usage"), + WIRELESS_USAGE_COMMANDS("wireless-usage-commands"), + WIRELESS_USAGE_COMMANDS_AFRICA("wireless-usage-commands-africa"), + WIRELESS_USAGE_COMMANDS_ASIA("wireless-usage-commands-asia"), + WIRELESS_USAGE_COMMANDS_CENTRALANDSOUTHAMERICA( + "wireless-usage-commands-centralandsouthamerica" + ), + WIRELESS_USAGE_COMMANDS_EUROPE("wireless-usage-commands-europe"), + WIRELESS_USAGE_COMMANDS_HOME("wireless-usage-commands-home"), + WIRELESS_USAGE_COMMANDS_NORTHAMERICA( + "wireless-usage-commands-northamerica" + ), + WIRELESS_USAGE_COMMANDS_OCEANIA("wireless-usage-commands-oceania"), + WIRELESS_USAGE_COMMANDS_ROAMING("wireless-usage-commands-roaming"), + WIRELESS_USAGE_DATA("wireless-usage-data"), + WIRELESS_USAGE_DATA_AFRICA("wireless-usage-data-africa"), + WIRELESS_USAGE_DATA_ASIA("wireless-usage-data-asia"), + WIRELESS_USAGE_DATA_CENTRALANDSOUTHAMERICA( + "wireless-usage-data-centralandsouthamerica" + ), + WIRELESS_USAGE_DATA_CUSTOM_ADDITIONALMB( + "wireless-usage-data-custom-additionalmb" + ), + WIRELESS_USAGE_DATA_CUSTOM_FIRST5MB( + "wireless-usage-data-custom-first5mb" + ), + WIRELESS_USAGE_DATA_DOMESTIC_ROAMING( + "wireless-usage-data-domestic-roaming" + ), + WIRELESS_USAGE_DATA_EUROPE("wireless-usage-data-europe"), + WIRELESS_USAGE_DATA_INDIVIDUAL_ADDITIONALGB( + "wireless-usage-data-individual-additionalgb" + ), + WIRELESS_USAGE_DATA_INDIVIDUAL_FIRSTGB( + "wireless-usage-data-individual-firstgb" + ), + WIRELESS_USAGE_DATA_INTERNATIONAL_ROAMING_CANADA( + "wireless-usage-data-international-roaming-canada" + ), + WIRELESS_USAGE_DATA_INTERNATIONAL_ROAMING_INDIA( + "wireless-usage-data-international-roaming-india" + ), + WIRELESS_USAGE_DATA_INTERNATIONAL_ROAMING_MEXICO( + "wireless-usage-data-international-roaming-mexico" + ), + WIRELESS_USAGE_DATA_NORTHAMERICA("wireless-usage-data-northamerica"), + WIRELESS_USAGE_DATA_OCEANIA("wireless-usage-data-oceania"), + WIRELESS_USAGE_DATA_POOLED("wireless-usage-data-pooled"), + WIRELESS_USAGE_DATA_POOLED_DOWNLINK( + "wireless-usage-data-pooled-downlink" + ), + WIRELESS_USAGE_DATA_POOLED_UPLINK("wireless-usage-data-pooled-uplink"), + WIRELESS_USAGE_MRC("wireless-usage-mrc"), + WIRELESS_USAGE_MRC_CUSTOM("wireless-usage-mrc-custom"), + WIRELESS_USAGE_MRC_INDIVIDUAL("wireless-usage-mrc-individual"), + WIRELESS_USAGE_MRC_POOLED("wireless-usage-mrc-pooled"), + WIRELESS_USAGE_MRC_SUSPENDED("wireless-usage-mrc-suspended"), + WIRELESS_USAGE_SMS("wireless-usage-sms"), + WIRELESS_USAGE_VOICE("wireless-usage-voice"), + A2P_FAST_TRACK_ONBOARDING("a2p-fast-track-onboarding"), + ADVISORY_SERVICES("advisory-services"), + ADVISORY_SERVICES_BILLED("advisory-services-billed"), + ADVISORY_SERVICES_CALL_TRACKING("advisory-services-call-tracking"), + ADVISORY_SERVICES_DATA_SERVICES("advisory-services-data-services"), + ADVISORY_SERVICES_EXPENSES("advisory-services-expenses"), + ADVISORY_SERVICES_SIP_TRUNKING("advisory-services-sip-trunking"), + ASSETS_REQUESTS("assets-requests"), + AUDIENCE_MINUTES_VIDEO("audience-minutes-video"), + AUTHY_BUCKET_ADJUSTMENT("authy-bucket-adjustment"), + AUTHY_SOFTWARE("authy-software"), + CALLERIDLOOKUPS_API("calleridlookups-api"), + CALLERIDLOOKUPS_PROGRAMMABLEVOICE("calleridlookups-programmablevoice"), + CALLERIDLOOKUPS_TRUNKING("calleridlookups-trunking"), + CALLS_TRUNKING_INBOUND_TOLLFREE_LOCAL( + "calls-trunking-inbound-tollfree-local" + ), + CALLS_TRUNKING_INBOUND_TOLLFREE_MOBILE( + "calls-trunking-inbound-tollfree-mobile" + ), + CHANNELS_WHATSAPP_CONVERSATION_FREE_1( + "channels-whatsapp-conversation-free-1" + ), + CONFERENCE("conference"), + CONVERSATIONAL_INSIGHTS("conversational-insights"), + CONVERSATIONAL_INSIGHTS_MESSAGES("conversational-insights-messages"), + CONVERSATIONAL_INSIGHTS_VOICE_MINUTES( + "conversational-insights-voice-minutes" + ), + DEMO("demo"), + DEMO_UC_SCRIPT_TEST("demo-uc-script-test"), + ELASTIC_SIP_TRUNKING("elastic-sip-trunking"), + ELASTIC_SIP_TRUNKING_CALL_TRANSFERS( + "elastic-sip-trunking-call-transfers" + ), + ENTERPRISE_HIPPA("enterprise-hippa"), + FLEX_NAMED_USERS("flex-named-users"), + FLEX_SPINSCI("flex-spinsci"), + FLEX_USERS_1("flex-users-1"), + FLEX_WFO_PREMIUM_SPEECH_ANALYTICS("flex-wfo-premium-speech-analytics"), + FLEX_XCELERATE("flex-xcelerate"), + FUNCTIONS_ROLLUP("functions-rollup"), + IMP_V1_USAGE("imp-v1-usage"), + IP_MESSAGING_ADDONS("ip-messaging-addons"), + IVR("ivr"), + IVR_CONVERSATIONAL("ivr-conversational"), + IVR_DTMF("ivr-dtmf"), + IVR_VIRTUALAGENT("ivr-virtualagent"), + LIVE("live"), + LIVE_MEDIA_RECORDING_MINUTES("live-media-recording-minutes"), + LONGCODE_MPS("longcode-mps"), + MARKETPLACE_ANALYTICS_ADDONS("marketplace-analytics-addons"), + MARKETPLACE_ISV_ADDONS("marketplace-isv-addons"), + MARKETPLACE_MESSAGING_ADDONS("marketplace-messaging-addons"), + MARKETPLACE_PHONENUMBERS_ADDONS("marketplace-phonenumbers-addons"), + MARKETPLACE_RECORDING_ADDONS("marketplace-recording-addons"), + MARKETPLACE_VIRTUALAGENT_ADDONS("marketplace-virtualagent-addons"), + MARKETPLAY_PAY_ADDONS_SHUTTLE_PAY_CONNECTOR_1( + "marketplay-pay-addons-shuttle-pay-connector-1" + ), + MARKETPLAY_PAY_ADDONS_STRIPE_PAY_CONNECTOR( + "marketplay-pay-addons-stripe-pay-connector" + ), + MMS_INBOUND_LONGCODE_CANADA("mms-inbound-longcode-canada"), + MMS_INBOUND_LONGCODE_UNITEDSTATES("mms-inbound-longcode-unitedstates"), + MMS_OUTBOUND_LONGCODE_CANADA("mms-outbound-longcode-canada"), + MMS_OUTBOUND_LONGCODE_UNITEDSTATES( + "mms-outbound-longcode-unitedstates" + ), + MMS_OUTBOUND_TOLL_FREE("mms-outbound-toll-free"), + NOTIFY_CHATAPPSANDOTHERCHANNELS("notify-chatappsandotherchannels"), + NOTIFY_NOTIFYSERVICES("notify-notifyservices"), + NOTIFY_PUSHNOTIFICATIONS("notify-pushnotifications"), + PAYMENT_GATEWAY_CONNECTORS("payment-gateway-connectors"), + PAYMENT_SOLUTIONS("payment-solutions"), + PCHAT_BUCKET_ADJUSTMENT("pchat-bucket-adjustment"), + PHONENUMBERS_NUMBERS("phonenumbers-numbers"), + PROG_VOICE_CLIENT_ANDROID("prog-voice-client-android"), + PROG_VOICE_CLIENT_ANDROID_INBOUND("prog-voice-client-android-inbound"), + PROG_VOICE_CLIENT_ANDROID_OUTBOUND( + "prog-voice-client-android-outbound" + ), + PROG_VOICE_CLIENT_IOS("prog-voice-client-ios"), + PROG_VOICE_CLIENT_IOS_INBOUND("prog-voice-client-ios-inbound"), + PROG_VOICE_CLIENT_IOS_OUTBOUND("prog-voice-client-ios-outbound"), + PROG_VOICE_CLIENT_SDK("prog-voice-client-sdk"), + PROG_VOICE_CLIENT_WEB("prog-voice-client-web"), + PROG_VOICE_CLIENT_WEB_INBOUND("prog-voice-client-web-inbound"), + PROG_VOICE_CLIENT_WEB_OUTBOUND("prog-voice-client-web-outbound"), + PROGRAMMABLEVOICECONNECTIVITY_MEDIA_STREAMS( + "programmablevoiceconnectivity-media-streams" + ), + PSTNCONNECTIVITY_BYOC("pstnconnectivity-byoc"), + PSTNCONNECTIVITY_EMERGENCY("pstnconnectivity-emergency"), + PSTNCONNECTIVITY_MINUTES("pstnconnectivity-minutes"), + PSTNCONNECTIVITY_MINUTES_1("pstnconnectivity-minutes-1"), + PSTNCONNECTIVITY_MINUTESINBOUNDLOCAL( + "pstnconnectivity-minutesinboundlocal" + ), + PSTNCONNECTIVITY_MINUTESINBOUNDMOBILE( + "pstnconnectivity-minutesinboundmobile" + ), + PSTNCONNECTIVITY_MINUTESINBOUNDTOLLFREE( + "pstnconnectivity-minutesinboundtollfree" + ), + PSTNCONNECTIVITY_MINUTESINBOUNDTOLLFREELOCAL( + "pstnconnectivity-minutesinboundtollfreelocal" + ), + PSTNCONNECTIVITY_MINUTESINBOUNDTOLLFREEMOBILE( + "pstnconnectivity-minutesinboundtollfreemobile" + ), + PV_ROOM_HOURS("pv-room-hours"), + PV_ROOM_SIMULTANEOUS_PARTICIPANT_CONNECTIONS( + "pv-room-simultaneous-participant-connections" + ), + PVIDEO_ROOM_HOURS_AU1("pvideo-room-hours-au1"), + PVIDEO_ROOM_HOURS_BR1("pvideo-room-hours-br1"), + PVIDEO_ROOM_HOURS_IE1("pvideo-room-hours-ie1"), + PVIDEO_ROOM_HOURS_JP1("pvideo-room-hours-jp1"), + PVIDEO_ROOM_HOURS_SG1("pvideo-room-hours-sg1"), + PVIDEO_ROOM_HOURS_US1("pvideo-room-hours-us1"), + PVIDEO_ROOM_HOURS_US2("pvideo-room-hours-us2"), + RECORDINGS_ENCRYPTED("recordings-encrypted"), + SHORT_CODE_SETUP_FEES("short-code-setup-fees"), + SHORTCODES_MESSAGES_INBOUND("shortcodes-messages-inbound"), + SHORTCODES_MESSAGES_OUTBOUND("shortcodes-messages-outbound"), + SMS_MESSAGES_REGISTRATIONFEES("sms-messages-registrationfees"), + SMS_MMS_PENALTY_FEES("sms-mms-penalty-fees"), + SMS_MMS_PENALTY_FEES_1("sms-mms-penalty-fees-1"), + SMS_PUMPING_PROTECTION_NON_USCA("sms-pumping-protection-non-usca"), + SMS_PUMPING_PROTECTION_USCA("sms-pumping-protection-usca"), + STUDIO("studio"), + STUDIO_MONTHLY_FEES("studio-monthly-fees"), + SUPERSIM("supersim"), + TASK_ROUTER("task-router"), + TASK_ROUTER_WORKERS("task-router-workers"), + TEST_QUOTA_BUCKETS("test-quota-buckets"), + TEST_UC_SCRIPT_1("test-uc-script-1"), + TEST_UC_SCRIPT_DEMO_2("test-uc-script-demo-2"), + TEXT_TO_SPEECH("text-to-speech"), + TME("tme"), + TTS_BASIC("tts-basic"), + TWILIO_EDITIONS("twilio-editions"), + TWILIO_INTERCONNECT_CALIFORNIA("twilio-interconnect-california"), + TWILIO_INTERCONNECT_CALIFORNIA_MONTHLY( + "twilio-interconnect-california-monthly" + ), + TWILIO_INTERCONNECT_CALIFORNIA_SETUP( + "twilio-interconnect-california-setup" + ), + TWILIO_INTERCONNECT_FRANKFURT("twilio-interconnect-frankfurt"), + TWILIO_INTERCONNECT_FRANKFURT_MO("twilio-interconnect-frankfurt-mo"), + TWILIO_INTERCONNECT_FRANKFURT_SETUP( + "twilio-interconnect-frankfurt-setup" + ), + TWILIO_INTERCONNECT_LONDON("twilio-interconnect-london"), + TWILIO_INTERCONNECT_LONDON_MO("twilio-interconnect-london-mo"), + TWILIO_INTERCONNECT_LONDON_SETUP("twilio-interconnect-london-setup"), + TWILIO_INTERCONNECT_SAO_PAULO("twilio-interconnect-sao-paulo"), + TWILIO_INTERCONNECT_SAO_PAULO_MONTHLY( + "twilio-interconnect-sao-paulo-monthly" + ), + TWILIO_INTERCONNECT_SAO_PAULO_SETUP( + "twilio-interconnect-sao-paulo-setup" + ), + TWILIO_INTERCONNECT_SINGAPORE("twilio-interconnect-singapore"), + TWILIO_INTERCONNECT_SINGAPORE_MO("twilio-interconnect-singapore-mo"), + TWILIO_INTERCONNECT_SINGAPORE_SETUP( + "twilio-interconnect-singapore-setup" + ), + TWILIO_INTERCONNECT_SYDNEY("twilio-interconnect-sydney"), + TWILIO_INTERCONNECT_SYDNEY_MO("twilio-interconnect-sydney-mo"), + TWILIO_INTERCONNECT_SYDNEY_SETUP("twilio-interconnect-sydney-setup"), + TWILIO_INTERCONNECT_TOKYO("twilio-interconnect-tokyo"), + TWILIO_INTERCONNECT_TOKYO_MO("twilio-interconnect-tokyo-mo"), + TWILIO_INTERCONNECT_TOKYO_SETUP("twilio-interconnect-tokyo-setup"), + TWILIO_INTERCONNECT_VA("twilio-interconnect-va"), + TWILIO_INTERCONNECT_VA_MO("twilio-interconnect-va-mo"), + TWILIO_INTERCONNECT_VA_SETUP("twilio-interconnect-va-setup"), + TWIML_VERBS("twiml-verbs"), + TWIML_VERBS_SAY("twiml-verbs-say"), + USAGE_PROGRAMMABLE_MESSAGING_ENGAGEMENT_SUITE( + "usage-programmable-messaging-engagement-suite" + ), + USAGE_PROGRAMMABLE_MESSAGING_FEES_SERVICES( + "usage-programmable-messaging-fees-services" + ), + VERIFY_OUTBOUND_EMAIL("verify-outbound-email"), + VERIFY_PACKAGED_PLANS("verify-packaged-plans"), + VERIFY_SILENT_NETWORK_AUTH("verify-silent-network-auth"), + VERIFY_VOICE_AND_SMS("verify-voice-and-sms"), + VOICE_INSIGHTS_CLIENT_INSIGHTS_MONTHY_COMMIT( + "voice-insights-client-insights-monthy-commit" + ), + WIRELESS_DATA_PAYG_ASIA_AFG("wireless-data-payg-asia-afg"), + WIRELESS_MULTI_IMSI_SIM_COMMANDS("wireless-multi-imsi-sim-commands"), + WIRELESS_MULTI_IMSI_SIM_COMMANDS_USA( + "wireless-multi-imsi-sim-commands-usa" + ), + WIRELESS_MULTI_IMSI_SIM_DATA("wireless-multi-imsi-sim-data"), + WIRELESS_MULTI_IMSI_SIM_DATA_EU28("wireless-multi-imsi-sim-data-eu28"), + WIRELESS_MULTI_IMSI_SIM_DATA_USA("wireless-multi-imsi-sim-data-usa"), + WIRELESS_MULTI_IMSI_SIM_MONTHLY_FEES( + "wireless-multi-imsi-sim-monthly-fees" + ), + WIRELESS_MULTI_IMSI_SIM_USAGE("wireless-multi-imsi-sim-usage"), + WIRELESS_SUPER_SIM_DATA_NORTH_AMERICA( + "wireless-super-sim-data-north-america" + ), + WIRELESS_SUPER_SIM_USAGE("wireless-super-sim-usage"); + + private final String value; + + private Category(final String value) { + this.value = value; + } + + public String toString() { + return value; + } + + @JsonCreator + public static Category forValue(final String value) { + return Promoter.enumFromString(value, Category.values()); + } + } + /** * Converts a JSON String into a ThisMonth object using the provided ObjectMapper. * @@ -116,7 +1042,7 @@ public static String toJson(Object object, ObjectMapper mapper) { private final String asOf; @Getter - private final String category; + private final ThisMonth.Category category; @Getter private final String count; @@ -156,7 +1082,7 @@ private ThisMonth( @JsonProperty("account_sid") final String accountSid, @JsonProperty("api_version") final String apiVersion, @JsonProperty("as_of") final String asOf, - @JsonProperty("category") final String category, + @JsonProperty("category") final ThisMonth.Category category, @JsonProperty("count") final String count, @JsonProperty("count_unit") final String countUnit, @JsonProperty("description") final String description, diff --git a/src/main/java/com/twilio/rest/api/v2010/account/usage/record/ThisMonthReader.java b/src/main/java/com/twilio/rest/api/v2010/account/usage/record/ThisMonthReader.java index 89024a73d2..3037c5e8a8 100644 --- a/src/main/java/com/twilio/rest/api/v2010/account/usage/record/ThisMonthReader.java +++ b/src/main/java/com/twilio/rest/api/v2010/account/usage/record/ThisMonthReader.java @@ -33,7 +33,7 @@ public class ThisMonthReader extends Reader { private String pathAccountSid; - private String category; + private ThisMonth.Category category; private LocalDate startDate; private LocalDate endDate; private Boolean includeSubaccounts; @@ -45,7 +45,7 @@ public ThisMonthReader(final String pathAccountSid) { this.pathAccountSid = pathAccountSid; } - public ThisMonthReader setCategory(final String category) { + public ThisMonthReader setCategory(final ThisMonth.Category category) { this.category = category; return this; } diff --git a/src/main/java/com/twilio/rest/api/v2010/account/usage/record/Today.java b/src/main/java/com/twilio/rest/api/v2010/account/usage/record/Today.java index f2220a1c22..a0767ff2d9 100644 --- a/src/main/java/com/twilio/rest/api/v2010/account/usage/record/Today.java +++ b/src/main/java/com/twilio/rest/api/v2010/account/usage/record/Today.java @@ -25,6 +25,7 @@ import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.twilio.base.Resource; import com.twilio.base.Resource; +import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; import com.twilio.type.*; @@ -51,6 +52,931 @@ public static TodayReader reader(final String pathAccountSid) { return new TodayReader(pathAccountSid); } + public enum Category { + A2P_10DLC_REGISTRATIONFEES_BRANDREGISTRATION( + "a2p-10dlc-registrationfees-brandregistration" + ), + A2P_10DLC_REGISTRATIONFEES_BV("a2p-10dlc-registrationfees-bv"), + A2P_10DLC_REGISTRATIONFEES_CAMPAIGNCHARGES( + "a2p-10dlc-registrationfees-campaigncharges" + ), + A2P_10DLC_REGISTRATIONFEES_CAMPAIGNREGISTRATION( + "a2p-10dlc-registrationfees-campaignregistration" + ), + A2P_10DLC_REGISTRATIONFEES_CAMPAIGNVETTING( + "a2p-10dlc-registrationfees-campaignvetting" + ), + A2P_10DLC_REGISTRATIONFEES_MONTHLY( + "a2p-10dlc-registrationfees-monthly" + ), + A2P_10DLC_REGISTRATIONFEES_ONETIME( + "a2p-10dlc-registrationfees-onetime" + ), + A2P_REGISTRATION_FEES("a2p-registration-fees"), + ACCOUNT_SECURITY("account-security"), + AGENT_CONFERENCE("agent-conference"), + AGENT_COPILOT("agent-copilot"), + AGENT_COPILOT_MESSAGES("agent-copilot-messages"), + AGENT_COPILOT_PARTICIPANT_MINUTES("agent-copilot-participant-minutes"), + AI_ASSISTANTS("ai-assistants"), + AI_ASSISTANTS_VOICE("ai-assistants-voice"), + AMAZON_POLLY("amazon-polly"), + ANSWERING_MACHINE_DETECTION("answering-machine-detection"), + ASSETS("assets"), + AUDIENCE_MINUTES("audience-minutes"), + AUDIENCE_MINUTES_AUDIO("audience-minutes-audio"), + AUTHY_AUTHENTICATIONS("authy-authentications"), + AUTHY_CALLS_OUTBOUND("authy-calls-outbound"), + AUTHY_EMAIL_AUTHENTICATIONS("authy-email-authentications"), + AUTHY_MONTHLY_FEES("authy-monthly-fees"), + AUTHY_OUTBOUND_EMAIL("authy-outbound-email"), + AUTHY_PHONE_INTELLIGENCE("authy-phone-intelligence"), + AUTHY_PHONE_VERIFICATIONS("authy-phone-verifications"), + AUTHY_SMS_OUTBOUND("authy-sms-outbound"), + AUTHY_VERIFY_EMAIL_VERIFICATIONS("authy-verify-email-verifications"), + AUTHY_VERIFY_OUTBOUND_EMAIL("authy-verify-outbound-email"), + AUTOPILOT("autopilot"), + AUTOPILOT_HOME_ASSISTANTS("autopilot-home-assistants"), + AUTOPILOT_MESSAGING("autopilot-messaging"), + AUTOPILOT_OTHER("autopilot-other"), + AUTOPILOT_VOICE("autopilot-voice"), + BASIC_PEER_TO_PEER_ROOMS_PARTICIPANT_MINUTES( + "basic-peer-to-peer-rooms-participant-minutes" + ), + BRANDED_CALLING("branded-calling"), + BUNDLE_SMS_BUCKET("bundle-sms-bucket"), + BUNDLE_SUBSCRIPTION_FEES("bundle-subscription-fees"), + CALL_FORWARDING_LOOKUPS("call-forwarding-lookups"), + CALL_PROGESS_EVENTS("call-progess-events"), + CALLERIDLOOKUPS("calleridlookups"), + CALLS("calls"), + CALLS_CLIENT("calls-client"), + CALLS_EMERGENCY("calls-emergency"), + CALLS_GLOBALCONFERENCE("calls-globalconference"), + CALLS_INBOUND("calls-inbound"), + CALLS_INBOUND_LOCAL("calls-inbound-local"), + CALLS_INBOUND_MOBILE("calls-inbound-mobile"), + CALLS_INBOUND_TOLLFREE("calls-inbound-tollfree"), + CALLS_INBOUND_TOLLFREE_LOCAL("calls-inbound-tollfree-local"), + CALLS_INBOUND_TOLLFREE_MOBILE("calls-inbound-tollfree-mobile"), + CALLS_MEDIA_STREAM_MINUTES("calls-media-stream-minutes"), + CALLS_OUTBOUND("calls-outbound"), + CALLS_PAY_VERB_TRANSACTIONS("calls-pay-verb-transactions"), + CALLS_RECORDINGS("calls-recordings"), + CALLS_SIP("calls-sip"), + CALLS_SIP_INBOUND("calls-sip-inbound"), + CALLS_SIP_OUTBOUND("calls-sip-outbound"), + CALLS_TEXT_TO_SPEECH("calls-text-to-speech"), + CALLS_TRANSFERS("calls-transfers"), + CARRIER_LOOKUPS("carrier-lookups"), + CATEGORY("category"), + CHANNELS("channels"), + CHANNELS_MESSAGING("channels-messaging"), + CHANNELS_MESSAGING_INBOUND("channels-messaging-inbound"), + CHANNELS_MESSAGING_OUTBOUND("channels-messaging-outbound"), + CHANNELS_WHATSAPP("channels-whatsapp"), + CHANNELS_WHATSAPP_CONVERSATION_AUTHENTICATION( + "channels-whatsapp-conversation-authentication" + ), + CHANNELS_WHATSAPP_CONVERSATION_FREE( + "channels-whatsapp-conversation-free" + ), + CHANNELS_WHATSAPP_CONVERSATION_MARKETING( + "channels-whatsapp-conversation-marketing" + ), + CHANNELS_WHATSAPP_CONVERSATION_SERVICE( + "channels-whatsapp-conversation-service" + ), + CHANNELS_WHATSAPP_CONVERSATION_UTILITY( + "channels-whatsapp-conversation-utility" + ), + CHANNELS_WHATSAPP_INBOUND("channels-whatsapp-inbound"), + CHANNELS_WHATSAPP_OUTBOUND("channels-whatsapp-outbound"), + CHAT_VIRTUAL_AGENT("chat-virtual-agent"), + CONVERSATION_RELAY("conversation-relay"), + CONVERSATIONS("conversations"), + CONVERSATIONS_API_REQUESTS("conversations-api-requests"), + CONVERSATIONS_CONVERSATION_EVENTS("conversations-conversation-events"), + CONVERSATIONS_ENDPOINT_CONNECTIVITY( + "conversations-endpoint-connectivity" + ), + CONVERSATIONS_EVENTS("conversations-events"), + CONVERSATIONS_PARTICIPANT_EVENTS("conversations-participant-events"), + CONVERSATIONS_PARTICIPANTS("conversations-participants"), + CPS("cps"), + CREDIT_TRANSFER("credit-transfer"), + EMAIL("email"), + EMERGING_TECH("emerging-tech"), + ENGAGEMENT_SUITE_PACKAGED_PLANS("engagement-suite-packaged-plans"), + ENHANCED_LINE_TYPE_LOOKUPS("enhanced-line-type-lookups"), + ENTERPRISE("enterprise"), + EVENTS("events"), + EXPERIMENT_FRANCE_SMS("experiment-france-sms"), + EXPERIMENT_INDIA_SMS("experiment-india-sms"), + EXPERIMENT_UK_SMS("experiment-uk-sms"), + FAILED_MESSAGE_PROCESSING_FEE("failed-message-processing-fee"), + FLEX("flex"), + FLEX_ACTIVE_USER_HOURS("flex-active-user-hours"), + FLEX_CONCURRENT_USERS("flex-concurrent-users"), + FLEX_CONVERSATIONAL_INSIGHTS("flex-conversational-insights"), + FLEX_CONVERSATIONAL_INSIGHTS_MESSAGES( + "flex-conversational-insights-messages" + ), + FLEX_CONVERSATIONAL_INSIGHTS_VOICE_MINUTES( + "flex-conversational-insights-voice-minutes" + ), + FLEX_EMAIL_USAGE("flex-email-usage"), + FLEX_MESSAGING_USAGE("flex-messaging-usage"), + FLEX_PARTNER_SPINSCI("flex-partner-spinsci"), + FLEX_PARTNER_XCELERATE("flex-partner-xcelerate"), + FLEX_RESELLER_ECOSYSTEM("flex-reseller-ecosystem"), + FLEX_UNIQUE_USER("flex-unique-user"), + FLEX_USAGE("flex-usage"), + FLEX_USERS("flex-users"), + FLEX_VOICE_MINUTE("flex-voice-minute"), + FLEX_YTICA("flex-ytica"), + FRAUD_LOOKUPS("fraud-lookups"), + FRONTLINE("frontline"), + FRONTLINE_USERS("frontline-users"), + FUNCTIONS("functions"), + GENERIC_PAY_TRANSACTIONS("generic-pay-transactions"), + GROUP_ROOMS("group-rooms"), + GROUP_ROOMS_DATA_TRACK("group-rooms-data-track"), + GROUP_ROOMS_ENCRYPTED_MEDIA_RECORDED( + "group-rooms-encrypted-media-recorded" + ), + GROUP_ROOMS_MEDIA_DOWNLOADED("group-rooms-media-downloaded"), + GROUP_ROOMS_MEDIA_RECORDED("group-rooms-media-recorded"), + GROUP_ROOMS_MEDIA_ROUTED("group-rooms-media-routed"), + GROUP_ROOMS_MEDIA_STORED("group-rooms-media-stored"), + GROUP_ROOMS_PARTICIPANT_MINUTES("group-rooms-participant-minutes"), + GROUP_ROOMS_RECORDED_MINUTES("group-rooms-recorded-minutes"), + IP_MESSAGING("ip-messaging"), + IP_MESSAGING_COMMANDS("ip-messaging-commands"), + IP_MESSAGING_DATA_STORAGE("ip-messaging-data-storage"), + IP_MESSAGING_DATA_TRANSFER("ip-messaging-data-transfer"), + IP_MESSAGING_ENDPOINT_CONNECTIVITY( + "ip-messaging-endpoint-connectivity" + ), + IVR_VIRTUAL_AGENT_CUSTOM_VOICES("ivr-virtual-agent-custom-voices"), + IVR_VIRTUAL_AGENT_GENAI("ivr-virtual-agent-genai"), + LINE_STATUS_LOOKUPS("line-status-lookups"), + LIVE_ACTIVITY_LOOKUPS("live-activity-lookups"), + LOOKUP_BUCKET_ADJUSTMENT("lookup-bucket-adjustment"), + LOOKUP_IDENTITY_MATCH("lookup-identity-match"), + LOOKUPS("lookups"), + MARKETPLACE("marketplace"), + MARKETPLACE_ALGORITHMIA_NAMED_ENTITY_RECOGNITION( + "marketplace-algorithmia-named-entity-recognition" + ), + MARKETPLACE_CADENCE_TRANSCRIPTION("marketplace-cadence-transcription"), + MARKETPLACE_CADENCE_TRANSLATION("marketplace-cadence-translation"), + MARKETPLACE_CAPIO_SPEECH_TO_TEXT("marketplace-capio-speech-to-text"), + MARKETPLACE_CONVRIZA_ABABA("marketplace-convriza-ababa"), + MARKETPLACE_DEEPGRAM_PHRASE_DETECTOR( + "marketplace-deepgram-phrase-detector" + ), + MARKETPLACE_DEEPGRAM_TRANSCRIPTION( + "marketplace-deepgram-transcription" + ), + MARKETPLACE_DEEPGRAM_TRANSCRIPTION_BASE( + "marketplace-deepgram-transcription-base" + ), + MARKETPLACE_DEEPGRAM_TRANSSCRIPTION_ENHANCED( + "marketplace-deepgram-transscription-enhanced" + ), + MARKETPLACE_DIGITAL_SEGMENT_BUSINESS_INFO( + "marketplace-digital-segment-business-info" + ), + MARKETPLACE_FACEBOOK_OFFLINE_CONVERSIONS( + "marketplace-facebook-offline-conversions" + ), + MARKETPLACE_GOOGLE_SPEECH_TO_TEXT("marketplace-google-speech-to-text"), + MARKETPLACE_IBM_WATSON_MESSAGE_INSIGHTS( + "marketplace-ibm-watson-message-insights" + ), + MARKETPLACE_IBM_WATSON_MESSAGE_SENTIMENT( + "marketplace-ibm-watson-message-sentiment" + ), + MARKETPLACE_IBM_WATSON_RECORDING_ANALYSIS( + "marketplace-ibm-watson-recording-analysis" + ), + MARKETPLACE_IBM_WATSON_TONE_ANALYZER( + "marketplace-ibm-watson-tone-analyzer" + ), + MARKETPLACE_ICEHOOK_SYSTEMS_SCOUT("marketplace-icehook-systems-scout"), + MARKETPLACE_INFOGROUP_DATAAXLE_BIZINFO( + "marketplace-infogroup-dataaxle-bizinfo" + ), + MARKETPLACE_KEEN_IO_CONTACT_CENTER_ANALYTICS( + "marketplace-keen-io-contact-center-analytics" + ), + MARKETPLACE_MARCHEX_CLEANCALL("marketplace-marchex-cleancall"), + MARKETPLACE_MARCHEX_RECORDING_ANALYSIS( + "marketplace-marchex-recording-analysis" + ), + MARKETPLACE_MARCHEX_SENTIMENT_ANALYSIS_FOR_SMS( + "marketplace-marchex-sentiment-analysis-for-sms" + ), + MARKETPLACE_MARKETPLACE_NEXTCALLER_SOCIAL_ID( + "marketplace-marketplace-nextcaller-social-id" + ), + MARKETPLACE_MOBILE_COMMONS_OPT_OUT_CLASSIFIER( + "marketplace-mobile-commons-opt-out-classifier" + ), + MARKETPLACE_NEXIWAVE_VOICEMAIL_TO_TEXT( + "marketplace-nexiwave-voicemail-to-text" + ), + MARKETPLACE_NEXTCALLER_ADVANCED_CALLER_IDENTIFICATION( + "marketplace-nextcaller-advanced-caller-identification" + ), + MARKETPLACE_NOMOROBO_SPAM_SCORE("marketplace-nomorobo-spam-score"), + MARKETPLACE_PAY_ADDONS("marketplace-pay-addons"), + MARKETPLACE_PAY_ADDONS_BASECOMMERCE_PAY_CONNECTOR( + "marketplace-pay-addons-basecommerce-pay-connector" + ), + MARKETPLACE_PAY_ADDONS_BRAINTREE_PAY_CONNECTOR( + "marketplace-pay-addons-braintree-pay-connector" + ), + MARKETPLACE_PAY_ADDONS_CARDCONNECT_PAY_CONNECTOR( + "marketplace-pay-addons-cardconnect-pay-connector" + ), + MARKETPLACE_PAY_ADDONS_CHASE_PAY_CONNECTOR( + "marketplace-pay-addons-chase-pay-connector" + ), + MARKETPLACE_PAY_ADDONS_SHUTTLE_PAY_CONNECTOR( + "marketplace-pay-addons-shuttle-pay-connector" + ), + MARKETPLACE_PAY_ADDONS_STRIPE_PAY_CONNECTOR( + "marketplace-pay-addons-stripe-pay-connector" + ), + MARKETPLACE_PAYFONE_TCPA_COMPLIANCE( + "marketplace-payfone-tcpa-compliance" + ), + MARKETPLACE_POLY_AI_CONNECTOR("marketplace-poly-ai-connector"), + MARKETPLACE_REALPHONEVALIDATION("marketplace-realphonevalidation"), + MARKETPLACE_REMEETING_AUTOMATIC_SPEECH_RECOGNITION( + "marketplace-remeeting-automatic-speech-recognition" + ), + MARKETPLACE_SPOKE_PHONE_LICENSE_PRO( + "marketplace-spoke-phone-license-pro" + ), + MARKETPLACE_SPOKE_PHONE_LICENSE_STANDARD( + "marketplace-spoke-phone-license-standard" + ), + MARKETPLACE_TCPA_DEFENSE_SOLUTIONS_BLACKLIST_FEED( + "marketplace-tcpa-defense-solutions-blacklist-feed" + ), + MARKETPLACE_TELO_OPENCNAM("marketplace-telo-opencnam"), + MARKETPLACE_TRESTLE_SOLUTIONS_CALLER_IDENTIFICATION( + "marketplace-trestle-solutions-caller-identification" + ), + MARKETPLACE_TRUECNAM_TRUE_SPAM("marketplace-truecnam-true-spam"), + MARKETPLACE_TWILIO_CALLER_NAME_LOOKUP_US( + "marketplace-twilio-caller-name-lookup-us" + ), + MARKETPLACE_TWILIO_CARRIER_INFORMATION_LOOKUP( + "marketplace-twilio-carrier-information-lookup" + ), + MARKETPLACE_VOICEBASE_PCI("marketplace-voicebase-pci"), + MARKETPLACE_VOICEBASE_TRANSCRIPTION( + "marketplace-voicebase-transcription" + ), + MARKETPLACE_VOICEBASE_TRANSCRIPTION_CUSTOM_VOCABULARY( + "marketplace-voicebase-transcription-custom-vocabulary" + ), + MARKETPLACE_WEB_PURIFY_PROFANITY_FILTER( + "marketplace-web-purify-profanity-filter" + ), + MARKETPLACE_WHITEPAGES_PRO_CALLER_IDENTIFICATION( + "marketplace-whitepages-pro-caller-identification" + ), + MARKETPLACE_WHITEPAGES_PRO_PHONE_INTELLIGENCE( + "marketplace-whitepages-pro-phone-intelligence" + ), + MARKETPLACE_WHITEPAGES_PRO_PHONE_REPUTATION( + "marketplace-whitepages-pro-phone-reputation" + ), + MARKETPLACE_WOLFARM_SPOKEN_RESULTS( + "marketplace-wolfarm-spoken-results" + ), + MARKETPLACE_WOLFRAM_SHORT_ANSWER("marketplace-wolfram-short-answer"), + MARKETPLACE_YTICA_CONTACT_CENTER_REPORTING_ANALYTICS( + "marketplace-ytica-contact-center-reporting-analytics" + ), + MARKETPLAY_PAY_ADDONS_SHUTTLE_PAY_CONNECTOR( + "marketplay-pay-addons-shuttle-pay-connector" + ), + MEDIA_COMPOSER_MINUTES("media-composer-minutes"), + MEDIASTORAGE("mediastorage"), + MIN_SPEND_ADJUSTMENTS("min-spend-adjustments"), + MMS("mms"), + MMS_INBOUND("mms-inbound"), + MMS_INBOUND_LONGCODE("mms-inbound-longcode"), + MMS_INBOUND_SHORTCODE("mms-inbound-shortcode"), + MMS_INBOUND_TOLL_FREE("mms-inbound-toll-free"), + MMS_MESSAGES_CARRIERFEES("mms-messages-carrierfees"), + MMS_OUTBOUND("mms-outbound"), + MMS_OUTBOUND_LONGCODE("mms-outbound-longcode"), + MMS_OUTBOUND_SHORTCODE("mms-outbound-shortcode"), + MMS_OUTBOUND_TOLLFREE("mms-outbound-tollfree"), + MONITOR("monitor"), + MONITOR_READS("monitor-reads"), + MONITOR_STORAGE("monitor-storage"), + MONITOR_WRITES("monitor-writes"), + NOTIFY("notify"), + NOTIFY_ACTIONS_ATTEMPTS("notify-actions-attempts"), + NOTIFY_CHANNELS("notify-channels"), + NUMBER_FORMAT_LOOKUPS("number-format-lookups"), + PCHAT("pchat"), + PCHAT_ACTIONS("pchat-actions"), + PCHAT_APS("pchat-aps"), + PCHAT_CONV_MED_STORAGE("pchat-conv-med-storage"), + PCHAT_MESSAGES("pchat-messages"), + PCHAT_NOTIFICATIONS("pchat-notifications"), + PCHAT_READS("pchat-reads"), + PCHAT_USERS("pchat-users"), + PEER_TO_PEER_ROOMS_PARTICIPANT_MINUTES( + "peer-to-peer-rooms-participant-minutes" + ), + PFAX("pfax"), + PFAX_MINUTES("pfax-minutes"), + PFAX_MINUTES_INBOUND("pfax-minutes-inbound"), + PFAX_MINUTES_OUTBOUND("pfax-minutes-outbound"), + PFAX_PAGES("pfax-pages"), + PHONE_QUALITY_SCORE_LOOKUPS("phone-quality-score-lookups"), + PHONENUMBERS("phonenumbers"), + PHONENUMBERS_CPS("phonenumbers-cps"), + PHONENUMBERS_EMERGENCY("phonenumbers-emergency"), + PHONENUMBERS_LOCAL("phonenumbers-local"), + PHONENUMBERS_MOBILE("phonenumbers-mobile"), + PHONENUMBERS_PORTING("phonenumbers-porting"), + PHONENUMBERS_SETUPS("phonenumbers-setups"), + PHONENUMBERS_TOLLFREE("phonenumbers-tollfree"), + PREMIUMSUPPORT("premiumsupport"), + PREMIUMSUPPORT_PERCENTAGE_SPEND("premiumsupport-percentage-spend"), + PROGRAMMABLEVOICE_PLATFORM("programmablevoice-platform"), + PROGRAMMABLEVOICECONN_CLIENTSDK("programmablevoiceconn-clientsdk"), + PROGRAMMABLEVOICECONN_CLIENTSDK_INBOUND( + "programmablevoiceconn-clientsdk-inbound" + ), + PROGRAMMABLEVOICECONN_CLIENTSDK_OUTBOUND( + "programmablevoiceconn-clientsdk-outbound" + ), + PROGRAMMABLEVOICECONN_ONNET("programmablevoiceconn-onnet"), + PROGRAMMABLEVOICECONN_ONNET_INBOUND( + "programmablevoiceconn-onnet-inbound" + ), + PROGRAMMABLEVOICECONN_ONNET_OUTBOUND( + "programmablevoiceconn-onnet-outbound" + ), + PROGRAMMABLEVOICECONN_SIP("programmablevoiceconn-sip"), + PROGRAMMABLEVOICECONN_SIP_INBOUND("programmablevoiceconn-sip-inbound"), + PROGRAMMABLEVOICECONN_SIP_OUTBOUND( + "programmablevoiceconn-sip-outbound" + ), + PROGRAMMABLEVOICECONNECTIVITY("programmablevoiceconnectivity"), + PROXY("proxy"), + PROXY_ACTIVE_SESSIONS("proxy-active-sessions"), + PROXY_BUCKET_ADJUSTMENT("proxy-bucket-adjustment"), + PROXY_LICENSES("proxy-licenses"), + PSTNCONNECTIVITY("pstnconnectivity"), + PSTNCONNECTIVITY_INBOUND("pstnconnectivity-inbound"), + PSTNCONNECTIVITY_OUTBOUND("pstnconnectivity-outbound"), + PV("pv"), + PV_BASIC_ROOMS("pv-basic-rooms"), + PV_COMPOSITION_MEDIA_DOWNLOADED("pv-composition-media-downloaded"), + PV_COMPOSITION_MEDIA_ENCRYPTED("pv-composition-media-encrypted"), + PV_COMPOSITION_MEDIA_STORED("pv-composition-media-stored"), + PV_COMPOSITION_MINUTES("pv-composition-minutes"), + PV_RECORDING_COMPOSITIONS("pv-recording-compositions"), + PV_ROOM_PARTICIPANTS("pv-room-participants"), + PV_ROOM_PARTICIPANTS_AU1("pv-room-participants-au1"), + PV_ROOM_PARTICIPANTS_BR1("pv-room-participants-br1"), + PV_ROOM_PARTICIPANTS_IE1("pv-room-participants-ie1"), + PV_ROOM_PARTICIPANTS_JP1("pv-room-participants-jp1"), + PV_ROOM_PARTICIPANTS_SG1("pv-room-participants-sg1"), + PV_ROOM_PARTICIPANTS_US1("pv-room-participants-us1"), + PV_ROOM_PARTICIPANTS_US2("pv-room-participants-us2"), + PV_ROOMS("pv-rooms"), + PV_SIP_ENDPOINT_REGISTRATIONS("pv-sip-endpoint-registrations"), + RCS_MESSAGES("rcs-messages"), + REASSIGNED_NUMBER("reassigned-number"), + RECORDINGS("recordings"), + RECORDINGSTORAGE("recordingstorage"), + SHORTCODES("shortcodes"), + SHORTCODES_CUSTOMEROWNED("shortcodes-customerowned"), + SHORTCODES_MMS_ENABLEMENT("shortcodes-mms-enablement"), + SHORTCODES_MPS("shortcodes-mps"), + SHORTCODES_RANDOM("shortcodes-random"), + SHORTCODES_SETUP_FEES("shortcodes-setup-fees"), + SHORTCODES_UK("shortcodes-uk"), + SHORTCODES_VANITY("shortcodes-vanity"), + SIM_SWAP_LOOKUPS("sim-swap-lookups"), + SIP_SECURE_MEDIA("sip-secure-media"), + SMALL_GROUP_ROOMS("small-group-rooms"), + SMALL_GROUP_ROOMS_DATA_TRACK("small-group-rooms-data-track"), + SMALL_GROUP_ROOMS_PARTICIPANT_MINUTES( + "small-group-rooms-participant-minutes" + ), + SMS("sms"), + SMS_INBOUND("sms-inbound"), + SMS_INBOUND_LONGCODE("sms-inbound-longcode"), + SMS_INBOUND_SHORTCODE("sms-inbound-shortcode"), + SMS_INBOUND_TOLLFREE("sms-inbound-tollfree"), + SMS_MESSAGES_CARRIERFEES("sms-messages-carrierfees"), + SMS_MESSAGES_FEATURES("sms-messages-features"), + SMS_MESSAGES_FEATURES_ENGAGEMENT_SUITE( + "sms-messages-features-engagement-suite" + ), + SMS_MESSAGES_FEATURES_MESSAGE_REDACTION( + "sms-messages-features-message-redaction" + ), + SMS_MESSAGES_FEATURES_SENDERID("sms-messages-features-senderid"), + SMS_MPS("sms-mps"), + SMS_MPS_SHORTCODE("sms-mps-shortcode"), + SMS_MPS_TOLLFREE("sms-mps-tollfree"), + SMS_MPS_TOLLFREE_SETUP("sms-mps-tollfree-setup"), + SMS_NATIONAL_REGULATORY_PROTECTION( + "sms-national-regulatory-protection" + ), + SMS_OUTBOUND("sms-outbound"), + SMS_OUTBOUND_CONTENT_INSPECTION("sms-outbound-content-inspection"), + SMS_OUTBOUND_LONGCODE("sms-outbound-longcode"), + SMS_OUTBOUND_SHORTCODE("sms-outbound-shortcode"), + SMS_OUTBOUND_TOLLFREE("sms-outbound-tollfree"), + SMS_PUMPING_PROTECTION("sms-pumping-protection"), + SMS_PUMPING_RISK("sms-pumping-risk"), + SMSMESSAGES_BUCKET_ADJUSTMENTS("smsmessages-bucket-adjustments"), + SMSMESSAGES_OUTBOUND_DOMESTIC("smsmessages-outbound-domestic"), + SPEECH_RECOGNITION("speech-recognition"), + STUDIO_ENGAGEMENTS("studio-engagements"), + SYNC("sync"), + SYNC_ACTIONS("sync-actions"), + SYNC_ENDPOINT_HOURS("sync-endpoint-hours"), + SYNC_ENDPOINT_HOURS_ABOVE_DAILY_CAP( + "sync-endpoint-hours-above-daily-cap" + ), + TASKROUTER_TASKS("taskrouter-tasks"), + TOTALPRICE("totalprice"), + TRANSCRIPTIONS("transcriptions"), + TRUNKING_CPS("trunking-cps"), + TRUNKING_EMERGENCY_CALLS("trunking-emergency-calls"), + TRUNKING_ORIGINATION("trunking-origination"), + TRUNKING_ORIGINATION_LOCAL("trunking-origination-local"), + TRUNKING_ORIGINATION_MOBILE("trunking-origination-mobile"), + TRUNKING_ORIGINATION_TOLLFREE("trunking-origination-tollfree"), + TRUNKING_RECORDINGS("trunking-recordings"), + TRUNKING_SECURE("trunking-secure"), + TRUNKING_TERMINATION("trunking-termination"), + TTS_GOOGLE("tts-google"), + TURNMEGABYTES("turnmegabytes"), + TURNMEGABYTES_AUSTRALIA("turnmegabytes-australia"), + TURNMEGABYTES_BRASIL("turnmegabytes-brasil"), + TURNMEGABYTES_GERMANY("turnmegabytes-germany"), + TURNMEGABYTES_INDIA("turnmegabytes-india"), + TURNMEGABYTES_IRELAND("turnmegabytes-ireland"), + TURNMEGABYTES_JAPAN("turnmegabytes-japan"), + TURNMEGABYTES_SINGAPORE("turnmegabytes-singapore"), + TURNMEGABYTES_USEAST("turnmegabytes-useast"), + TURNMEGABYTES_USWEST("turnmegabytes-uswest"), + TWILIO_FOR_SALESFORCE("twilio-for-salesforce"), + TWILIO_FOR_SALESFORCE_LICENSES("twilio-for-salesforce-licenses"), + TWILIO_INTERCONNECT("twilio-interconnect"), + TWIML("twiml"), + USAGE_FLEX_VIDEO("usage-flex-video"), + USAGE_FUNCTIONS("usage-functions"), + USAGE_RCS_BASIC_MESSAGES_OUTBOUND("usage-rcs-basic-messages-outbound"), + USAGE_RCS_MESSAGES("usage-rcs-messages"), + USAGE_RCS_MESSAGES_INBOUND("usage-rcs-messages-inbound"), + USAGE_RCS_MESSAGING_CARRIER_FEES("usage-rcs-messaging-carrier-fees"), + USAGE_RCS_SINGLE_MESSAGES_OUTBOUND( + "usage-rcs-single-messages-outbound" + ), + VERIFY_PACKAGE_PLANS("verify-package-plans"), + VERIFY_PUSH("verify-push"), + VERIFY_SNA("verify-sna"), + VERIFY_TOTP("verify-totp"), + VERIFY_VOICE_SMS("verify-voice-sms"), + VERIFY_WHATSAPP_CONVERSATIONS_BUSINESS_INITIATED( + "verify-whatsapp-conversations-business-initiated" + ), + VIDEO_RECORDINGS("video-recordings"), + VIDEO_ROOMS_TURN_MEGABYTES("video-rooms-turn-megabytes"), + VIRTUAL_AGENT("virtual-agent"), + VOICE_INSIGHTS("voice-insights"), + VOICE_INSIGHTS_CLIENT_INSIGHTS_ON_DEMAND_MINUTE( + "voice-insights-client-insights-on-demand-minute" + ), + VOICE_INSIGHTS_PTSN_INSIGHTS_ON_DEMAND_MINUTE( + "voice-insights-ptsn-insights-on-demand-minute" + ), + VOICE_INSIGHTS_SIP_INTERFACE_INSIGHTS_ON_DEMAND_MINUTE( + "voice-insights-sip-interface-insights-on-demand-minute" + ), + VOICE_INSIGHTS_SIP_TRUNKING_INSIGHTS_ON_DEMAND_MINUTE( + "voice-insights-sip-trunking-insights-on-demand-minute" + ), + VOICE_INTELLIGENCE("voice-intelligence"), + VOICE_INTELLIGENCE_EIP_OPERATORS("voice-intelligence-eip-operators"), + VOICE_INTELLIGENCE_OPERATORS("voice-intelligence-operators"), + VOICE_INTELLIGENCE_TRANSCRIPTION("voice-intelligence-transcription"), + WDS("wds"), + WIRELESS("wireless"), + WIRELESS_DATA("wireless-data"), + WIRELESS_DATA_PAYG("wireless-data-payg"), + WIRELESS_DATA_PAYG_AFRICA("wireless-data-payg-africa"), + WIRELESS_DATA_PAYG_ASIA("wireless-data-payg-asia"), + WIRELESS_DATA_PAYG_CENTRALANDSOUTHAMERICA( + "wireless-data-payg-centralandsouthamerica" + ), + WIRELESS_DATA_PAYG_EUROPE("wireless-data-payg-europe"), + WIRELESS_DATA_PAYG_NORTHAMERICA("wireless-data-payg-northamerica"), + WIRELESS_DATA_PAYG_OCEANIA("wireless-data-payg-oceania"), + WIRELESS_DATA_QUOTA1("wireless-data-quota1"), + WIRELESS_DATA_QUOTA1_AFRICA("wireless-data-quota1-africa"), + WIRELESS_DATA_QUOTA1_ASIA("wireless-data-quota1-asia"), + WIRELESS_DATA_QUOTA1_CENTRALANDSOUTHAMERICA( + "wireless-data-quota1-centralandsouthamerica" + ), + WIRELESS_DATA_QUOTA1_EUROPE("wireless-data-quota1-europe"), + WIRELESS_DATA_QUOTA1_NORTHAMERICA("wireless-data-quota1-northamerica"), + WIRELESS_DATA_QUOTA1_OCEANIA("wireless-data-quota1-oceania"), + WIRELESS_DATA_QUOTA10("wireless-data-quota10"), + WIRELESS_DATA_QUOTA10_AFRICA("wireless-data-quota10-africa"), + WIRELESS_DATA_QUOTA10_ASIA("wireless-data-quota10-asia"), + WIRELESS_DATA_QUOTA10_CENTRALANDSOUTHAMERICA( + "wireless-data-quota10-centralandsouthamerica" + ), + WIRELESS_DATA_QUOTA10_EUROPE("wireless-data-quota10-europe"), + WIRELESS_DATA_QUOTA10_NORTHAMERICA( + "wireless-data-quota10-northamerica" + ), + WIRELESS_DATA_QUOTA10_OCEANIA("wireless-data-quota10-oceania"), + WIRELESS_DATA_QUOTA50("wireless-data-quota50"), + WIRELESS_DATA_QUOTA50_AFRICA("wireless-data-quota50-africa"), + WIRELESS_DATA_QUOTA50_ASIA("wireless-data-quota50-asia"), + WIRELESS_DATA_QUOTA50_CENTRALANDSOUTHAMERICA( + "wireless-data-quota50-centralandsouthamerica" + ), + WIRELESS_DATA_QUOTA50_EUROPE("wireless-data-quota50-europe"), + WIRELESS_DATA_QUOTA50_NORTHAMERICA( + "wireless-data-quota50-northamerica" + ), + WIRELESS_DATA_QUOTA50_OCEANIA("wireless-data-quota50-oceania"), + WIRELESS_DATA_QUOTACUSTOM("wireless-data-quotacustom"), + WIRELESS_DATA_QUOTACUSTOM_AFRICA("wireless-data-quotacustom-africa"), + WIRELESS_DATA_QUOTACUSTOM_ASIA("wireless-data-quotacustom-asia"), + WIRELESS_DATA_QUOTACUSTOM_CENTRALANDSOUTHAMERICA( + "wireless-data-quotacustom-centralandsouthamerica" + ), + WIRELESS_DATA_QUOTACUSTOM_EUROPE("wireless-data-quotacustom-europe"), + WIRELESS_DATA_QUOTACUSTOM_NORTHAMERICA( + "wireless-data-quotacustom-northamerica" + ), + WIRELESS_DATA_QUOTACUSTOM_OCEANIA("wireless-data-quotacustom-oceania"), + WIRELESS_MRC_PAYG("wireless-mrc-payg"), + WIRELESS_MRC_QUOTA1("wireless-mrc-quota1"), + WIRELESS_MRC_QUOTA10("wireless-mrc-quota10"), + WIRELESS_MRC_QUOTA50("wireless-mrc-quota50"), + WIRELESS_MRC_QUOTACUSTOM("wireless-mrc-quotacustom"), + WIRELESS_ORDERS("wireless-orders"), + WIRELESS_ORDERS_ARTWORK("wireless-orders-artwork"), + WIRELESS_ORDERS_BULK("wireless-orders-bulk"), + WIRELESS_ORDERS_ESIM("wireless-orders-esim"), + WIRELESS_ORDERS_STARTER("wireless-orders-starter"), + WIRELESS_QUOTAS("wireless-quotas"), + WIRELESS_SMS_AFRICA("wireless-sms-africa"), + WIRELESS_SMS_ASIA("wireless-sms-asia"), + WIRELESS_SMS_CENTRALANDSOUTHAMERICA( + "wireless-sms-centralandsouthamerica" + ), + WIRELESS_SMS_EUROPE("wireless-sms-europe"), + WIRELESS_SMS_NORTHAMERICA("wireless-sms-northamerica"), + WIRELESS_SMS_OCEANIA("wireless-sms-oceania"), + WIRELESS_SUPER_SIM("wireless-super-sim"), + WIRELESS_SUPER_SIM_DATA("wireless-super-sim-data"), + WIRELESS_SUPER_SIM_DATA_NORTH_AMERICA_USA( + "wireless-super-sim-data-north-america-usa" + ), + WIRELESS_SUPER_SIM_DATA_PAYG("wireless-super-sim-data-payg"), + WIRELESS_SUPER_SIM_DATA_PAYG_EUROPE( + "wireless-super-sim-data-payg-europe" + ), + WIRELESS_SUPER_SIM_DATA_PAYG_NORTH_AMERICA( + "wireless-super-sim-data-payg-north-america" + ), + WIRELESS_SUPER_SIM_HARDWARE("wireless-super-sim-hardware"), + WIRELESS_SUPER_SIM_HARDWARE_BULK("wireless-super-sim-hardware-bulk"), + WIRELESS_SUPER_SIM_SMSCOMMANDS("wireless-super-sim-smscommands"), + WIRELESS_SUPER_SIM_SMSCOMMANDS_AFRICA( + "wireless-super-sim-smscommands-africa" + ), + WIRELESS_SUPER_SIM_SMSCOMMANDS_ASIA( + "wireless-super-sim-smscommands-asia" + ), + WIRELESS_SUPER_SIM_SMSCOMMANDS_CENT_AND_SOUTH_AMERICA( + "wireless-super-sim-smscommands-cent-and-south-america" + ), + WIRELESS_SUPER_SIM_SMSCOMMANDS_EUROPE( + "wireless-super-sim-smscommands-europe" + ), + WIRELESS_SUPER_SIM_SMSCOMMANDS_NORTH_AMERICA( + "wireless-super-sim-smscommands-north-america" + ), + WIRELESS_SUPER_SIM_SMSCOMMANDS_OCEANIA( + "wireless-super-sim-smscommands-oceania" + ), + WIRELESS_SUPER_SIM_SUBSCRIPTION("wireless-super-sim-subscription"), + WIRELESS_SUPER_SIM_SUBSCRIPTION_PAYG( + "wireless-super-sim-subscription-payg" + ), + WIRELESS_USAGE("wireless-usage"), + WIRELESS_USAGE_COMMANDS("wireless-usage-commands"), + WIRELESS_USAGE_COMMANDS_AFRICA("wireless-usage-commands-africa"), + WIRELESS_USAGE_COMMANDS_ASIA("wireless-usage-commands-asia"), + WIRELESS_USAGE_COMMANDS_CENTRALANDSOUTHAMERICA( + "wireless-usage-commands-centralandsouthamerica" + ), + WIRELESS_USAGE_COMMANDS_EUROPE("wireless-usage-commands-europe"), + WIRELESS_USAGE_COMMANDS_HOME("wireless-usage-commands-home"), + WIRELESS_USAGE_COMMANDS_NORTHAMERICA( + "wireless-usage-commands-northamerica" + ), + WIRELESS_USAGE_COMMANDS_OCEANIA("wireless-usage-commands-oceania"), + WIRELESS_USAGE_COMMANDS_ROAMING("wireless-usage-commands-roaming"), + WIRELESS_USAGE_DATA("wireless-usage-data"), + WIRELESS_USAGE_DATA_AFRICA("wireless-usage-data-africa"), + WIRELESS_USAGE_DATA_ASIA("wireless-usage-data-asia"), + WIRELESS_USAGE_DATA_CENTRALANDSOUTHAMERICA( + "wireless-usage-data-centralandsouthamerica" + ), + WIRELESS_USAGE_DATA_CUSTOM_ADDITIONALMB( + "wireless-usage-data-custom-additionalmb" + ), + WIRELESS_USAGE_DATA_CUSTOM_FIRST5MB( + "wireless-usage-data-custom-first5mb" + ), + WIRELESS_USAGE_DATA_DOMESTIC_ROAMING( + "wireless-usage-data-domestic-roaming" + ), + WIRELESS_USAGE_DATA_EUROPE("wireless-usage-data-europe"), + WIRELESS_USAGE_DATA_INDIVIDUAL_ADDITIONALGB( + "wireless-usage-data-individual-additionalgb" + ), + WIRELESS_USAGE_DATA_INDIVIDUAL_FIRSTGB( + "wireless-usage-data-individual-firstgb" + ), + WIRELESS_USAGE_DATA_INTERNATIONAL_ROAMING_CANADA( + "wireless-usage-data-international-roaming-canada" + ), + WIRELESS_USAGE_DATA_INTERNATIONAL_ROAMING_INDIA( + "wireless-usage-data-international-roaming-india" + ), + WIRELESS_USAGE_DATA_INTERNATIONAL_ROAMING_MEXICO( + "wireless-usage-data-international-roaming-mexico" + ), + WIRELESS_USAGE_DATA_NORTHAMERICA("wireless-usage-data-northamerica"), + WIRELESS_USAGE_DATA_OCEANIA("wireless-usage-data-oceania"), + WIRELESS_USAGE_DATA_POOLED("wireless-usage-data-pooled"), + WIRELESS_USAGE_DATA_POOLED_DOWNLINK( + "wireless-usage-data-pooled-downlink" + ), + WIRELESS_USAGE_DATA_POOLED_UPLINK("wireless-usage-data-pooled-uplink"), + WIRELESS_USAGE_MRC("wireless-usage-mrc"), + WIRELESS_USAGE_MRC_CUSTOM("wireless-usage-mrc-custom"), + WIRELESS_USAGE_MRC_INDIVIDUAL("wireless-usage-mrc-individual"), + WIRELESS_USAGE_MRC_POOLED("wireless-usage-mrc-pooled"), + WIRELESS_USAGE_MRC_SUSPENDED("wireless-usage-mrc-suspended"), + WIRELESS_USAGE_SMS("wireless-usage-sms"), + WIRELESS_USAGE_VOICE("wireless-usage-voice"), + A2P_FAST_TRACK_ONBOARDING("a2p-fast-track-onboarding"), + ADVISORY_SERVICES("advisory-services"), + ADVISORY_SERVICES_BILLED("advisory-services-billed"), + ADVISORY_SERVICES_CALL_TRACKING("advisory-services-call-tracking"), + ADVISORY_SERVICES_DATA_SERVICES("advisory-services-data-services"), + ADVISORY_SERVICES_EXPENSES("advisory-services-expenses"), + ADVISORY_SERVICES_SIP_TRUNKING("advisory-services-sip-trunking"), + ASSETS_REQUESTS("assets-requests"), + AUDIENCE_MINUTES_VIDEO("audience-minutes-video"), + AUTHY_BUCKET_ADJUSTMENT("authy-bucket-adjustment"), + AUTHY_SOFTWARE("authy-software"), + CALLERIDLOOKUPS_API("calleridlookups-api"), + CALLERIDLOOKUPS_PROGRAMMABLEVOICE("calleridlookups-programmablevoice"), + CALLERIDLOOKUPS_TRUNKING("calleridlookups-trunking"), + CALLS_TRUNKING_INBOUND_TOLLFREE_LOCAL( + "calls-trunking-inbound-tollfree-local" + ), + CALLS_TRUNKING_INBOUND_TOLLFREE_MOBILE( + "calls-trunking-inbound-tollfree-mobile" + ), + CHANNELS_WHATSAPP_CONVERSATION_FREE_1( + "channels-whatsapp-conversation-free-1" + ), + CONFERENCE("conference"), + CONVERSATIONAL_INSIGHTS("conversational-insights"), + CONVERSATIONAL_INSIGHTS_MESSAGES("conversational-insights-messages"), + CONVERSATIONAL_INSIGHTS_VOICE_MINUTES( + "conversational-insights-voice-minutes" + ), + DEMO("demo"), + DEMO_UC_SCRIPT_TEST("demo-uc-script-test"), + ELASTIC_SIP_TRUNKING("elastic-sip-trunking"), + ELASTIC_SIP_TRUNKING_CALL_TRANSFERS( + "elastic-sip-trunking-call-transfers" + ), + ENTERPRISE_HIPPA("enterprise-hippa"), + FLEX_NAMED_USERS("flex-named-users"), + FLEX_SPINSCI("flex-spinsci"), + FLEX_USERS_1("flex-users-1"), + FLEX_WFO_PREMIUM_SPEECH_ANALYTICS("flex-wfo-premium-speech-analytics"), + FLEX_XCELERATE("flex-xcelerate"), + FUNCTIONS_ROLLUP("functions-rollup"), + IMP_V1_USAGE("imp-v1-usage"), + IP_MESSAGING_ADDONS("ip-messaging-addons"), + IVR("ivr"), + IVR_CONVERSATIONAL("ivr-conversational"), + IVR_DTMF("ivr-dtmf"), + IVR_VIRTUALAGENT("ivr-virtualagent"), + LIVE("live"), + LIVE_MEDIA_RECORDING_MINUTES("live-media-recording-minutes"), + LONGCODE_MPS("longcode-mps"), + MARKETPLACE_ANALYTICS_ADDONS("marketplace-analytics-addons"), + MARKETPLACE_ISV_ADDONS("marketplace-isv-addons"), + MARKETPLACE_MESSAGING_ADDONS("marketplace-messaging-addons"), + MARKETPLACE_PHONENUMBERS_ADDONS("marketplace-phonenumbers-addons"), + MARKETPLACE_RECORDING_ADDONS("marketplace-recording-addons"), + MARKETPLACE_VIRTUALAGENT_ADDONS("marketplace-virtualagent-addons"), + MARKETPLAY_PAY_ADDONS_SHUTTLE_PAY_CONNECTOR_1( + "marketplay-pay-addons-shuttle-pay-connector-1" + ), + MARKETPLAY_PAY_ADDONS_STRIPE_PAY_CONNECTOR( + "marketplay-pay-addons-stripe-pay-connector" + ), + MMS_INBOUND_LONGCODE_CANADA("mms-inbound-longcode-canada"), + MMS_INBOUND_LONGCODE_UNITEDSTATES("mms-inbound-longcode-unitedstates"), + MMS_OUTBOUND_LONGCODE_CANADA("mms-outbound-longcode-canada"), + MMS_OUTBOUND_LONGCODE_UNITEDSTATES( + "mms-outbound-longcode-unitedstates" + ), + MMS_OUTBOUND_TOLL_FREE("mms-outbound-toll-free"), + NOTIFY_CHATAPPSANDOTHERCHANNELS("notify-chatappsandotherchannels"), + NOTIFY_NOTIFYSERVICES("notify-notifyservices"), + NOTIFY_PUSHNOTIFICATIONS("notify-pushnotifications"), + PAYMENT_GATEWAY_CONNECTORS("payment-gateway-connectors"), + PAYMENT_SOLUTIONS("payment-solutions"), + PCHAT_BUCKET_ADJUSTMENT("pchat-bucket-adjustment"), + PHONENUMBERS_NUMBERS("phonenumbers-numbers"), + PROG_VOICE_CLIENT_ANDROID("prog-voice-client-android"), + PROG_VOICE_CLIENT_ANDROID_INBOUND("prog-voice-client-android-inbound"), + PROG_VOICE_CLIENT_ANDROID_OUTBOUND( + "prog-voice-client-android-outbound" + ), + PROG_VOICE_CLIENT_IOS("prog-voice-client-ios"), + PROG_VOICE_CLIENT_IOS_INBOUND("prog-voice-client-ios-inbound"), + PROG_VOICE_CLIENT_IOS_OUTBOUND("prog-voice-client-ios-outbound"), + PROG_VOICE_CLIENT_SDK("prog-voice-client-sdk"), + PROG_VOICE_CLIENT_WEB("prog-voice-client-web"), + PROG_VOICE_CLIENT_WEB_INBOUND("prog-voice-client-web-inbound"), + PROG_VOICE_CLIENT_WEB_OUTBOUND("prog-voice-client-web-outbound"), + PROGRAMMABLEVOICECONNECTIVITY_MEDIA_STREAMS( + "programmablevoiceconnectivity-media-streams" + ), + PSTNCONNECTIVITY_BYOC("pstnconnectivity-byoc"), + PSTNCONNECTIVITY_EMERGENCY("pstnconnectivity-emergency"), + PSTNCONNECTIVITY_MINUTES("pstnconnectivity-minutes"), + PSTNCONNECTIVITY_MINUTES_1("pstnconnectivity-minutes-1"), + PSTNCONNECTIVITY_MINUTESINBOUNDLOCAL( + "pstnconnectivity-minutesinboundlocal" + ), + PSTNCONNECTIVITY_MINUTESINBOUNDMOBILE( + "pstnconnectivity-minutesinboundmobile" + ), + PSTNCONNECTIVITY_MINUTESINBOUNDTOLLFREE( + "pstnconnectivity-minutesinboundtollfree" + ), + PSTNCONNECTIVITY_MINUTESINBOUNDTOLLFREELOCAL( + "pstnconnectivity-minutesinboundtollfreelocal" + ), + PSTNCONNECTIVITY_MINUTESINBOUNDTOLLFREEMOBILE( + "pstnconnectivity-minutesinboundtollfreemobile" + ), + PV_ROOM_HOURS("pv-room-hours"), + PV_ROOM_SIMULTANEOUS_PARTICIPANT_CONNECTIONS( + "pv-room-simultaneous-participant-connections" + ), + PVIDEO_ROOM_HOURS_AU1("pvideo-room-hours-au1"), + PVIDEO_ROOM_HOURS_BR1("pvideo-room-hours-br1"), + PVIDEO_ROOM_HOURS_IE1("pvideo-room-hours-ie1"), + PVIDEO_ROOM_HOURS_JP1("pvideo-room-hours-jp1"), + PVIDEO_ROOM_HOURS_SG1("pvideo-room-hours-sg1"), + PVIDEO_ROOM_HOURS_US1("pvideo-room-hours-us1"), + PVIDEO_ROOM_HOURS_US2("pvideo-room-hours-us2"), + RECORDINGS_ENCRYPTED("recordings-encrypted"), + SHORT_CODE_SETUP_FEES("short-code-setup-fees"), + SHORTCODES_MESSAGES_INBOUND("shortcodes-messages-inbound"), + SHORTCODES_MESSAGES_OUTBOUND("shortcodes-messages-outbound"), + SMS_MESSAGES_REGISTRATIONFEES("sms-messages-registrationfees"), + SMS_MMS_PENALTY_FEES("sms-mms-penalty-fees"), + SMS_MMS_PENALTY_FEES_1("sms-mms-penalty-fees-1"), + SMS_PUMPING_PROTECTION_NON_USCA("sms-pumping-protection-non-usca"), + SMS_PUMPING_PROTECTION_USCA("sms-pumping-protection-usca"), + STUDIO("studio"), + STUDIO_MONTHLY_FEES("studio-monthly-fees"), + SUPERSIM("supersim"), + TASK_ROUTER("task-router"), + TASK_ROUTER_WORKERS("task-router-workers"), + TEST_QUOTA_BUCKETS("test-quota-buckets"), + TEST_UC_SCRIPT_1("test-uc-script-1"), + TEST_UC_SCRIPT_DEMO_2("test-uc-script-demo-2"), + TEXT_TO_SPEECH("text-to-speech"), + TME("tme"), + TTS_BASIC("tts-basic"), + TWILIO_EDITIONS("twilio-editions"), + TWILIO_INTERCONNECT_CALIFORNIA("twilio-interconnect-california"), + TWILIO_INTERCONNECT_CALIFORNIA_MONTHLY( + "twilio-interconnect-california-monthly" + ), + TWILIO_INTERCONNECT_CALIFORNIA_SETUP( + "twilio-interconnect-california-setup" + ), + TWILIO_INTERCONNECT_FRANKFURT("twilio-interconnect-frankfurt"), + TWILIO_INTERCONNECT_FRANKFURT_MO("twilio-interconnect-frankfurt-mo"), + TWILIO_INTERCONNECT_FRANKFURT_SETUP( + "twilio-interconnect-frankfurt-setup" + ), + TWILIO_INTERCONNECT_LONDON("twilio-interconnect-london"), + TWILIO_INTERCONNECT_LONDON_MO("twilio-interconnect-london-mo"), + TWILIO_INTERCONNECT_LONDON_SETUP("twilio-interconnect-london-setup"), + TWILIO_INTERCONNECT_SAO_PAULO("twilio-interconnect-sao-paulo"), + TWILIO_INTERCONNECT_SAO_PAULO_MONTHLY( + "twilio-interconnect-sao-paulo-monthly" + ), + TWILIO_INTERCONNECT_SAO_PAULO_SETUP( + "twilio-interconnect-sao-paulo-setup" + ), + TWILIO_INTERCONNECT_SINGAPORE("twilio-interconnect-singapore"), + TWILIO_INTERCONNECT_SINGAPORE_MO("twilio-interconnect-singapore-mo"), + TWILIO_INTERCONNECT_SINGAPORE_SETUP( + "twilio-interconnect-singapore-setup" + ), + TWILIO_INTERCONNECT_SYDNEY("twilio-interconnect-sydney"), + TWILIO_INTERCONNECT_SYDNEY_MO("twilio-interconnect-sydney-mo"), + TWILIO_INTERCONNECT_SYDNEY_SETUP("twilio-interconnect-sydney-setup"), + TWILIO_INTERCONNECT_TOKYO("twilio-interconnect-tokyo"), + TWILIO_INTERCONNECT_TOKYO_MO("twilio-interconnect-tokyo-mo"), + TWILIO_INTERCONNECT_TOKYO_SETUP("twilio-interconnect-tokyo-setup"), + TWILIO_INTERCONNECT_VA("twilio-interconnect-va"), + TWILIO_INTERCONNECT_VA_MO("twilio-interconnect-va-mo"), + TWILIO_INTERCONNECT_VA_SETUP("twilio-interconnect-va-setup"), + TWIML_VERBS("twiml-verbs"), + TWIML_VERBS_SAY("twiml-verbs-say"), + USAGE_PROGRAMMABLE_MESSAGING_ENGAGEMENT_SUITE( + "usage-programmable-messaging-engagement-suite" + ), + USAGE_PROGRAMMABLE_MESSAGING_FEES_SERVICES( + "usage-programmable-messaging-fees-services" + ), + VERIFY_OUTBOUND_EMAIL("verify-outbound-email"), + VERIFY_PACKAGED_PLANS("verify-packaged-plans"), + VERIFY_SILENT_NETWORK_AUTH("verify-silent-network-auth"), + VERIFY_VOICE_AND_SMS("verify-voice-and-sms"), + VOICE_INSIGHTS_CLIENT_INSIGHTS_MONTHY_COMMIT( + "voice-insights-client-insights-monthy-commit" + ), + WIRELESS_DATA_PAYG_ASIA_AFG("wireless-data-payg-asia-afg"), + WIRELESS_MULTI_IMSI_SIM_COMMANDS("wireless-multi-imsi-sim-commands"), + WIRELESS_MULTI_IMSI_SIM_COMMANDS_USA( + "wireless-multi-imsi-sim-commands-usa" + ), + WIRELESS_MULTI_IMSI_SIM_DATA("wireless-multi-imsi-sim-data"), + WIRELESS_MULTI_IMSI_SIM_DATA_EU28("wireless-multi-imsi-sim-data-eu28"), + WIRELESS_MULTI_IMSI_SIM_DATA_USA("wireless-multi-imsi-sim-data-usa"), + WIRELESS_MULTI_IMSI_SIM_MONTHLY_FEES( + "wireless-multi-imsi-sim-monthly-fees" + ), + WIRELESS_MULTI_IMSI_SIM_USAGE("wireless-multi-imsi-sim-usage"), + WIRELESS_SUPER_SIM_DATA_NORTH_AMERICA( + "wireless-super-sim-data-north-america" + ), + WIRELESS_SUPER_SIM_USAGE("wireless-super-sim-usage"); + + private final String value; + + private Category(final String value) { + this.value = value; + } + + public String toString() { + return value; + } + + @JsonCreator + public static Category forValue(final String value) { + return Promoter.enumFromString(value, Category.values()); + } + } + /** * Converts a JSON String into a Today object using the provided ObjectMapper. * @@ -116,7 +1042,7 @@ public static String toJson(Object object, ObjectMapper mapper) { private final String asOf; @Getter - private final String category; + private final Today.Category category; @Getter private final String count; @@ -156,7 +1082,7 @@ private Today( @JsonProperty("account_sid") final String accountSid, @JsonProperty("api_version") final String apiVersion, @JsonProperty("as_of") final String asOf, - @JsonProperty("category") final String category, + @JsonProperty("category") final Today.Category category, @JsonProperty("count") final String count, @JsonProperty("count_unit") final String countUnit, @JsonProperty("description") final String description, diff --git a/src/main/java/com/twilio/rest/api/v2010/account/usage/record/TodayReader.java b/src/main/java/com/twilio/rest/api/v2010/account/usage/record/TodayReader.java index af0fe54225..be0def043c 100644 --- a/src/main/java/com/twilio/rest/api/v2010/account/usage/record/TodayReader.java +++ b/src/main/java/com/twilio/rest/api/v2010/account/usage/record/TodayReader.java @@ -33,7 +33,7 @@ public class TodayReader extends Reader { private String pathAccountSid; - private String category; + private Today.Category category; private LocalDate startDate; private LocalDate endDate; private Boolean includeSubaccounts; @@ -45,7 +45,7 @@ public TodayReader(final String pathAccountSid) { this.pathAccountSid = pathAccountSid; } - public TodayReader setCategory(final String category) { + public TodayReader setCategory(final Today.Category category) { this.category = category; return this; } diff --git a/src/main/java/com/twilio/rest/api/v2010/account/usage/record/Yearly.java b/src/main/java/com/twilio/rest/api/v2010/account/usage/record/Yearly.java index 28c3741417..8be6aefba9 100644 --- a/src/main/java/com/twilio/rest/api/v2010/account/usage/record/Yearly.java +++ b/src/main/java/com/twilio/rest/api/v2010/account/usage/record/Yearly.java @@ -25,6 +25,7 @@ import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.twilio.base.Resource; import com.twilio.base.Resource; +import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; import com.twilio.type.*; @@ -51,6 +52,931 @@ public static YearlyReader reader(final String pathAccountSid) { return new YearlyReader(pathAccountSid); } + public enum Category { + A2P_10DLC_REGISTRATIONFEES_BRANDREGISTRATION( + "a2p-10dlc-registrationfees-brandregistration" + ), + A2P_10DLC_REGISTRATIONFEES_BV("a2p-10dlc-registrationfees-bv"), + A2P_10DLC_REGISTRATIONFEES_CAMPAIGNCHARGES( + "a2p-10dlc-registrationfees-campaigncharges" + ), + A2P_10DLC_REGISTRATIONFEES_CAMPAIGNREGISTRATION( + "a2p-10dlc-registrationfees-campaignregistration" + ), + A2P_10DLC_REGISTRATIONFEES_CAMPAIGNVETTING( + "a2p-10dlc-registrationfees-campaignvetting" + ), + A2P_10DLC_REGISTRATIONFEES_MONTHLY( + "a2p-10dlc-registrationfees-monthly" + ), + A2P_10DLC_REGISTRATIONFEES_ONETIME( + "a2p-10dlc-registrationfees-onetime" + ), + A2P_REGISTRATION_FEES("a2p-registration-fees"), + ACCOUNT_SECURITY("account-security"), + AGENT_CONFERENCE("agent-conference"), + AGENT_COPILOT("agent-copilot"), + AGENT_COPILOT_MESSAGES("agent-copilot-messages"), + AGENT_COPILOT_PARTICIPANT_MINUTES("agent-copilot-participant-minutes"), + AI_ASSISTANTS("ai-assistants"), + AI_ASSISTANTS_VOICE("ai-assistants-voice"), + AMAZON_POLLY("amazon-polly"), + ANSWERING_MACHINE_DETECTION("answering-machine-detection"), + ASSETS("assets"), + AUDIENCE_MINUTES("audience-minutes"), + AUDIENCE_MINUTES_AUDIO("audience-minutes-audio"), + AUTHY_AUTHENTICATIONS("authy-authentications"), + AUTHY_CALLS_OUTBOUND("authy-calls-outbound"), + AUTHY_EMAIL_AUTHENTICATIONS("authy-email-authentications"), + AUTHY_MONTHLY_FEES("authy-monthly-fees"), + AUTHY_OUTBOUND_EMAIL("authy-outbound-email"), + AUTHY_PHONE_INTELLIGENCE("authy-phone-intelligence"), + AUTHY_PHONE_VERIFICATIONS("authy-phone-verifications"), + AUTHY_SMS_OUTBOUND("authy-sms-outbound"), + AUTHY_VERIFY_EMAIL_VERIFICATIONS("authy-verify-email-verifications"), + AUTHY_VERIFY_OUTBOUND_EMAIL("authy-verify-outbound-email"), + AUTOPILOT("autopilot"), + AUTOPILOT_HOME_ASSISTANTS("autopilot-home-assistants"), + AUTOPILOT_MESSAGING("autopilot-messaging"), + AUTOPILOT_OTHER("autopilot-other"), + AUTOPILOT_VOICE("autopilot-voice"), + BASIC_PEER_TO_PEER_ROOMS_PARTICIPANT_MINUTES( + "basic-peer-to-peer-rooms-participant-minutes" + ), + BRANDED_CALLING("branded-calling"), + BUNDLE_SMS_BUCKET("bundle-sms-bucket"), + BUNDLE_SUBSCRIPTION_FEES("bundle-subscription-fees"), + CALL_FORWARDING_LOOKUPS("call-forwarding-lookups"), + CALL_PROGESS_EVENTS("call-progess-events"), + CALLERIDLOOKUPS("calleridlookups"), + CALLS("calls"), + CALLS_CLIENT("calls-client"), + CALLS_EMERGENCY("calls-emergency"), + CALLS_GLOBALCONFERENCE("calls-globalconference"), + CALLS_INBOUND("calls-inbound"), + CALLS_INBOUND_LOCAL("calls-inbound-local"), + CALLS_INBOUND_MOBILE("calls-inbound-mobile"), + CALLS_INBOUND_TOLLFREE("calls-inbound-tollfree"), + CALLS_INBOUND_TOLLFREE_LOCAL("calls-inbound-tollfree-local"), + CALLS_INBOUND_TOLLFREE_MOBILE("calls-inbound-tollfree-mobile"), + CALLS_MEDIA_STREAM_MINUTES("calls-media-stream-minutes"), + CALLS_OUTBOUND("calls-outbound"), + CALLS_PAY_VERB_TRANSACTIONS("calls-pay-verb-transactions"), + CALLS_RECORDINGS("calls-recordings"), + CALLS_SIP("calls-sip"), + CALLS_SIP_INBOUND("calls-sip-inbound"), + CALLS_SIP_OUTBOUND("calls-sip-outbound"), + CALLS_TEXT_TO_SPEECH("calls-text-to-speech"), + CALLS_TRANSFERS("calls-transfers"), + CARRIER_LOOKUPS("carrier-lookups"), + CATEGORY("category"), + CHANNELS("channels"), + CHANNELS_MESSAGING("channels-messaging"), + CHANNELS_MESSAGING_INBOUND("channels-messaging-inbound"), + CHANNELS_MESSAGING_OUTBOUND("channels-messaging-outbound"), + CHANNELS_WHATSAPP("channels-whatsapp"), + CHANNELS_WHATSAPP_CONVERSATION_AUTHENTICATION( + "channels-whatsapp-conversation-authentication" + ), + CHANNELS_WHATSAPP_CONVERSATION_FREE( + "channels-whatsapp-conversation-free" + ), + CHANNELS_WHATSAPP_CONVERSATION_MARKETING( + "channels-whatsapp-conversation-marketing" + ), + CHANNELS_WHATSAPP_CONVERSATION_SERVICE( + "channels-whatsapp-conversation-service" + ), + CHANNELS_WHATSAPP_CONVERSATION_UTILITY( + "channels-whatsapp-conversation-utility" + ), + CHANNELS_WHATSAPP_INBOUND("channels-whatsapp-inbound"), + CHANNELS_WHATSAPP_OUTBOUND("channels-whatsapp-outbound"), + CHAT_VIRTUAL_AGENT("chat-virtual-agent"), + CONVERSATION_RELAY("conversation-relay"), + CONVERSATIONS("conversations"), + CONVERSATIONS_API_REQUESTS("conversations-api-requests"), + CONVERSATIONS_CONVERSATION_EVENTS("conversations-conversation-events"), + CONVERSATIONS_ENDPOINT_CONNECTIVITY( + "conversations-endpoint-connectivity" + ), + CONVERSATIONS_EVENTS("conversations-events"), + CONVERSATIONS_PARTICIPANT_EVENTS("conversations-participant-events"), + CONVERSATIONS_PARTICIPANTS("conversations-participants"), + CPS("cps"), + CREDIT_TRANSFER("credit-transfer"), + EMAIL("email"), + EMERGING_TECH("emerging-tech"), + ENGAGEMENT_SUITE_PACKAGED_PLANS("engagement-suite-packaged-plans"), + ENHANCED_LINE_TYPE_LOOKUPS("enhanced-line-type-lookups"), + ENTERPRISE("enterprise"), + EVENTS("events"), + EXPERIMENT_FRANCE_SMS("experiment-france-sms"), + EXPERIMENT_INDIA_SMS("experiment-india-sms"), + EXPERIMENT_UK_SMS("experiment-uk-sms"), + FAILED_MESSAGE_PROCESSING_FEE("failed-message-processing-fee"), + FLEX("flex"), + FLEX_ACTIVE_USER_HOURS("flex-active-user-hours"), + FLEX_CONCURRENT_USERS("flex-concurrent-users"), + FLEX_CONVERSATIONAL_INSIGHTS("flex-conversational-insights"), + FLEX_CONVERSATIONAL_INSIGHTS_MESSAGES( + "flex-conversational-insights-messages" + ), + FLEX_CONVERSATIONAL_INSIGHTS_VOICE_MINUTES( + "flex-conversational-insights-voice-minutes" + ), + FLEX_EMAIL_USAGE("flex-email-usage"), + FLEX_MESSAGING_USAGE("flex-messaging-usage"), + FLEX_PARTNER_SPINSCI("flex-partner-spinsci"), + FLEX_PARTNER_XCELERATE("flex-partner-xcelerate"), + FLEX_RESELLER_ECOSYSTEM("flex-reseller-ecosystem"), + FLEX_UNIQUE_USER("flex-unique-user"), + FLEX_USAGE("flex-usage"), + FLEX_USERS("flex-users"), + FLEX_VOICE_MINUTE("flex-voice-minute"), + FLEX_YTICA("flex-ytica"), + FRAUD_LOOKUPS("fraud-lookups"), + FRONTLINE("frontline"), + FRONTLINE_USERS("frontline-users"), + FUNCTIONS("functions"), + GENERIC_PAY_TRANSACTIONS("generic-pay-transactions"), + GROUP_ROOMS("group-rooms"), + GROUP_ROOMS_DATA_TRACK("group-rooms-data-track"), + GROUP_ROOMS_ENCRYPTED_MEDIA_RECORDED( + "group-rooms-encrypted-media-recorded" + ), + GROUP_ROOMS_MEDIA_DOWNLOADED("group-rooms-media-downloaded"), + GROUP_ROOMS_MEDIA_RECORDED("group-rooms-media-recorded"), + GROUP_ROOMS_MEDIA_ROUTED("group-rooms-media-routed"), + GROUP_ROOMS_MEDIA_STORED("group-rooms-media-stored"), + GROUP_ROOMS_PARTICIPANT_MINUTES("group-rooms-participant-minutes"), + GROUP_ROOMS_RECORDED_MINUTES("group-rooms-recorded-minutes"), + IP_MESSAGING("ip-messaging"), + IP_MESSAGING_COMMANDS("ip-messaging-commands"), + IP_MESSAGING_DATA_STORAGE("ip-messaging-data-storage"), + IP_MESSAGING_DATA_TRANSFER("ip-messaging-data-transfer"), + IP_MESSAGING_ENDPOINT_CONNECTIVITY( + "ip-messaging-endpoint-connectivity" + ), + IVR_VIRTUAL_AGENT_CUSTOM_VOICES("ivr-virtual-agent-custom-voices"), + IVR_VIRTUAL_AGENT_GENAI("ivr-virtual-agent-genai"), + LINE_STATUS_LOOKUPS("line-status-lookups"), + LIVE_ACTIVITY_LOOKUPS("live-activity-lookups"), + LOOKUP_BUCKET_ADJUSTMENT("lookup-bucket-adjustment"), + LOOKUP_IDENTITY_MATCH("lookup-identity-match"), + LOOKUPS("lookups"), + MARKETPLACE("marketplace"), + MARKETPLACE_ALGORITHMIA_NAMED_ENTITY_RECOGNITION( + "marketplace-algorithmia-named-entity-recognition" + ), + MARKETPLACE_CADENCE_TRANSCRIPTION("marketplace-cadence-transcription"), + MARKETPLACE_CADENCE_TRANSLATION("marketplace-cadence-translation"), + MARKETPLACE_CAPIO_SPEECH_TO_TEXT("marketplace-capio-speech-to-text"), + MARKETPLACE_CONVRIZA_ABABA("marketplace-convriza-ababa"), + MARKETPLACE_DEEPGRAM_PHRASE_DETECTOR( + "marketplace-deepgram-phrase-detector" + ), + MARKETPLACE_DEEPGRAM_TRANSCRIPTION( + "marketplace-deepgram-transcription" + ), + MARKETPLACE_DEEPGRAM_TRANSCRIPTION_BASE( + "marketplace-deepgram-transcription-base" + ), + MARKETPLACE_DEEPGRAM_TRANSSCRIPTION_ENHANCED( + "marketplace-deepgram-transscription-enhanced" + ), + MARKETPLACE_DIGITAL_SEGMENT_BUSINESS_INFO( + "marketplace-digital-segment-business-info" + ), + MARKETPLACE_FACEBOOK_OFFLINE_CONVERSIONS( + "marketplace-facebook-offline-conversions" + ), + MARKETPLACE_GOOGLE_SPEECH_TO_TEXT("marketplace-google-speech-to-text"), + MARKETPLACE_IBM_WATSON_MESSAGE_INSIGHTS( + "marketplace-ibm-watson-message-insights" + ), + MARKETPLACE_IBM_WATSON_MESSAGE_SENTIMENT( + "marketplace-ibm-watson-message-sentiment" + ), + MARKETPLACE_IBM_WATSON_RECORDING_ANALYSIS( + "marketplace-ibm-watson-recording-analysis" + ), + MARKETPLACE_IBM_WATSON_TONE_ANALYZER( + "marketplace-ibm-watson-tone-analyzer" + ), + MARKETPLACE_ICEHOOK_SYSTEMS_SCOUT("marketplace-icehook-systems-scout"), + MARKETPLACE_INFOGROUP_DATAAXLE_BIZINFO( + "marketplace-infogroup-dataaxle-bizinfo" + ), + MARKETPLACE_KEEN_IO_CONTACT_CENTER_ANALYTICS( + "marketplace-keen-io-contact-center-analytics" + ), + MARKETPLACE_MARCHEX_CLEANCALL("marketplace-marchex-cleancall"), + MARKETPLACE_MARCHEX_RECORDING_ANALYSIS( + "marketplace-marchex-recording-analysis" + ), + MARKETPLACE_MARCHEX_SENTIMENT_ANALYSIS_FOR_SMS( + "marketplace-marchex-sentiment-analysis-for-sms" + ), + MARKETPLACE_MARKETPLACE_NEXTCALLER_SOCIAL_ID( + "marketplace-marketplace-nextcaller-social-id" + ), + MARKETPLACE_MOBILE_COMMONS_OPT_OUT_CLASSIFIER( + "marketplace-mobile-commons-opt-out-classifier" + ), + MARKETPLACE_NEXIWAVE_VOICEMAIL_TO_TEXT( + "marketplace-nexiwave-voicemail-to-text" + ), + MARKETPLACE_NEXTCALLER_ADVANCED_CALLER_IDENTIFICATION( + "marketplace-nextcaller-advanced-caller-identification" + ), + MARKETPLACE_NOMOROBO_SPAM_SCORE("marketplace-nomorobo-spam-score"), + MARKETPLACE_PAY_ADDONS("marketplace-pay-addons"), + MARKETPLACE_PAY_ADDONS_BASECOMMERCE_PAY_CONNECTOR( + "marketplace-pay-addons-basecommerce-pay-connector" + ), + MARKETPLACE_PAY_ADDONS_BRAINTREE_PAY_CONNECTOR( + "marketplace-pay-addons-braintree-pay-connector" + ), + MARKETPLACE_PAY_ADDONS_CARDCONNECT_PAY_CONNECTOR( + "marketplace-pay-addons-cardconnect-pay-connector" + ), + MARKETPLACE_PAY_ADDONS_CHASE_PAY_CONNECTOR( + "marketplace-pay-addons-chase-pay-connector" + ), + MARKETPLACE_PAY_ADDONS_SHUTTLE_PAY_CONNECTOR( + "marketplace-pay-addons-shuttle-pay-connector" + ), + MARKETPLACE_PAY_ADDONS_STRIPE_PAY_CONNECTOR( + "marketplace-pay-addons-stripe-pay-connector" + ), + MARKETPLACE_PAYFONE_TCPA_COMPLIANCE( + "marketplace-payfone-tcpa-compliance" + ), + MARKETPLACE_POLY_AI_CONNECTOR("marketplace-poly-ai-connector"), + MARKETPLACE_REALPHONEVALIDATION("marketplace-realphonevalidation"), + MARKETPLACE_REMEETING_AUTOMATIC_SPEECH_RECOGNITION( + "marketplace-remeeting-automatic-speech-recognition" + ), + MARKETPLACE_SPOKE_PHONE_LICENSE_PRO( + "marketplace-spoke-phone-license-pro" + ), + MARKETPLACE_SPOKE_PHONE_LICENSE_STANDARD( + "marketplace-spoke-phone-license-standard" + ), + MARKETPLACE_TCPA_DEFENSE_SOLUTIONS_BLACKLIST_FEED( + "marketplace-tcpa-defense-solutions-blacklist-feed" + ), + MARKETPLACE_TELO_OPENCNAM("marketplace-telo-opencnam"), + MARKETPLACE_TRESTLE_SOLUTIONS_CALLER_IDENTIFICATION( + "marketplace-trestle-solutions-caller-identification" + ), + MARKETPLACE_TRUECNAM_TRUE_SPAM("marketplace-truecnam-true-spam"), + MARKETPLACE_TWILIO_CALLER_NAME_LOOKUP_US( + "marketplace-twilio-caller-name-lookup-us" + ), + MARKETPLACE_TWILIO_CARRIER_INFORMATION_LOOKUP( + "marketplace-twilio-carrier-information-lookup" + ), + MARKETPLACE_VOICEBASE_PCI("marketplace-voicebase-pci"), + MARKETPLACE_VOICEBASE_TRANSCRIPTION( + "marketplace-voicebase-transcription" + ), + MARKETPLACE_VOICEBASE_TRANSCRIPTION_CUSTOM_VOCABULARY( + "marketplace-voicebase-transcription-custom-vocabulary" + ), + MARKETPLACE_WEB_PURIFY_PROFANITY_FILTER( + "marketplace-web-purify-profanity-filter" + ), + MARKETPLACE_WHITEPAGES_PRO_CALLER_IDENTIFICATION( + "marketplace-whitepages-pro-caller-identification" + ), + MARKETPLACE_WHITEPAGES_PRO_PHONE_INTELLIGENCE( + "marketplace-whitepages-pro-phone-intelligence" + ), + MARKETPLACE_WHITEPAGES_PRO_PHONE_REPUTATION( + "marketplace-whitepages-pro-phone-reputation" + ), + MARKETPLACE_WOLFARM_SPOKEN_RESULTS( + "marketplace-wolfarm-spoken-results" + ), + MARKETPLACE_WOLFRAM_SHORT_ANSWER("marketplace-wolfram-short-answer"), + MARKETPLACE_YTICA_CONTACT_CENTER_REPORTING_ANALYTICS( + "marketplace-ytica-contact-center-reporting-analytics" + ), + MARKETPLAY_PAY_ADDONS_SHUTTLE_PAY_CONNECTOR( + "marketplay-pay-addons-shuttle-pay-connector" + ), + MEDIA_COMPOSER_MINUTES("media-composer-minutes"), + MEDIASTORAGE("mediastorage"), + MIN_SPEND_ADJUSTMENTS("min-spend-adjustments"), + MMS("mms"), + MMS_INBOUND("mms-inbound"), + MMS_INBOUND_LONGCODE("mms-inbound-longcode"), + MMS_INBOUND_SHORTCODE("mms-inbound-shortcode"), + MMS_INBOUND_TOLL_FREE("mms-inbound-toll-free"), + MMS_MESSAGES_CARRIERFEES("mms-messages-carrierfees"), + MMS_OUTBOUND("mms-outbound"), + MMS_OUTBOUND_LONGCODE("mms-outbound-longcode"), + MMS_OUTBOUND_SHORTCODE("mms-outbound-shortcode"), + MMS_OUTBOUND_TOLLFREE("mms-outbound-tollfree"), + MONITOR("monitor"), + MONITOR_READS("monitor-reads"), + MONITOR_STORAGE("monitor-storage"), + MONITOR_WRITES("monitor-writes"), + NOTIFY("notify"), + NOTIFY_ACTIONS_ATTEMPTS("notify-actions-attempts"), + NOTIFY_CHANNELS("notify-channels"), + NUMBER_FORMAT_LOOKUPS("number-format-lookups"), + PCHAT("pchat"), + PCHAT_ACTIONS("pchat-actions"), + PCHAT_APS("pchat-aps"), + PCHAT_CONV_MED_STORAGE("pchat-conv-med-storage"), + PCHAT_MESSAGES("pchat-messages"), + PCHAT_NOTIFICATIONS("pchat-notifications"), + PCHAT_READS("pchat-reads"), + PCHAT_USERS("pchat-users"), + PEER_TO_PEER_ROOMS_PARTICIPANT_MINUTES( + "peer-to-peer-rooms-participant-minutes" + ), + PFAX("pfax"), + PFAX_MINUTES("pfax-minutes"), + PFAX_MINUTES_INBOUND("pfax-minutes-inbound"), + PFAX_MINUTES_OUTBOUND("pfax-minutes-outbound"), + PFAX_PAGES("pfax-pages"), + PHONE_QUALITY_SCORE_LOOKUPS("phone-quality-score-lookups"), + PHONENUMBERS("phonenumbers"), + PHONENUMBERS_CPS("phonenumbers-cps"), + PHONENUMBERS_EMERGENCY("phonenumbers-emergency"), + PHONENUMBERS_LOCAL("phonenumbers-local"), + PHONENUMBERS_MOBILE("phonenumbers-mobile"), + PHONENUMBERS_PORTING("phonenumbers-porting"), + PHONENUMBERS_SETUPS("phonenumbers-setups"), + PHONENUMBERS_TOLLFREE("phonenumbers-tollfree"), + PREMIUMSUPPORT("premiumsupport"), + PREMIUMSUPPORT_PERCENTAGE_SPEND("premiumsupport-percentage-spend"), + PROGRAMMABLEVOICE_PLATFORM("programmablevoice-platform"), + PROGRAMMABLEVOICECONN_CLIENTSDK("programmablevoiceconn-clientsdk"), + PROGRAMMABLEVOICECONN_CLIENTSDK_INBOUND( + "programmablevoiceconn-clientsdk-inbound" + ), + PROGRAMMABLEVOICECONN_CLIENTSDK_OUTBOUND( + "programmablevoiceconn-clientsdk-outbound" + ), + PROGRAMMABLEVOICECONN_ONNET("programmablevoiceconn-onnet"), + PROGRAMMABLEVOICECONN_ONNET_INBOUND( + "programmablevoiceconn-onnet-inbound" + ), + PROGRAMMABLEVOICECONN_ONNET_OUTBOUND( + "programmablevoiceconn-onnet-outbound" + ), + PROGRAMMABLEVOICECONN_SIP("programmablevoiceconn-sip"), + PROGRAMMABLEVOICECONN_SIP_INBOUND("programmablevoiceconn-sip-inbound"), + PROGRAMMABLEVOICECONN_SIP_OUTBOUND( + "programmablevoiceconn-sip-outbound" + ), + PROGRAMMABLEVOICECONNECTIVITY("programmablevoiceconnectivity"), + PROXY("proxy"), + PROXY_ACTIVE_SESSIONS("proxy-active-sessions"), + PROXY_BUCKET_ADJUSTMENT("proxy-bucket-adjustment"), + PROXY_LICENSES("proxy-licenses"), + PSTNCONNECTIVITY("pstnconnectivity"), + PSTNCONNECTIVITY_INBOUND("pstnconnectivity-inbound"), + PSTNCONNECTIVITY_OUTBOUND("pstnconnectivity-outbound"), + PV("pv"), + PV_BASIC_ROOMS("pv-basic-rooms"), + PV_COMPOSITION_MEDIA_DOWNLOADED("pv-composition-media-downloaded"), + PV_COMPOSITION_MEDIA_ENCRYPTED("pv-composition-media-encrypted"), + PV_COMPOSITION_MEDIA_STORED("pv-composition-media-stored"), + PV_COMPOSITION_MINUTES("pv-composition-minutes"), + PV_RECORDING_COMPOSITIONS("pv-recording-compositions"), + PV_ROOM_PARTICIPANTS("pv-room-participants"), + PV_ROOM_PARTICIPANTS_AU1("pv-room-participants-au1"), + PV_ROOM_PARTICIPANTS_BR1("pv-room-participants-br1"), + PV_ROOM_PARTICIPANTS_IE1("pv-room-participants-ie1"), + PV_ROOM_PARTICIPANTS_JP1("pv-room-participants-jp1"), + PV_ROOM_PARTICIPANTS_SG1("pv-room-participants-sg1"), + PV_ROOM_PARTICIPANTS_US1("pv-room-participants-us1"), + PV_ROOM_PARTICIPANTS_US2("pv-room-participants-us2"), + PV_ROOMS("pv-rooms"), + PV_SIP_ENDPOINT_REGISTRATIONS("pv-sip-endpoint-registrations"), + RCS_MESSAGES("rcs-messages"), + REASSIGNED_NUMBER("reassigned-number"), + RECORDINGS("recordings"), + RECORDINGSTORAGE("recordingstorage"), + SHORTCODES("shortcodes"), + SHORTCODES_CUSTOMEROWNED("shortcodes-customerowned"), + SHORTCODES_MMS_ENABLEMENT("shortcodes-mms-enablement"), + SHORTCODES_MPS("shortcodes-mps"), + SHORTCODES_RANDOM("shortcodes-random"), + SHORTCODES_SETUP_FEES("shortcodes-setup-fees"), + SHORTCODES_UK("shortcodes-uk"), + SHORTCODES_VANITY("shortcodes-vanity"), + SIM_SWAP_LOOKUPS("sim-swap-lookups"), + SIP_SECURE_MEDIA("sip-secure-media"), + SMALL_GROUP_ROOMS("small-group-rooms"), + SMALL_GROUP_ROOMS_DATA_TRACK("small-group-rooms-data-track"), + SMALL_GROUP_ROOMS_PARTICIPANT_MINUTES( + "small-group-rooms-participant-minutes" + ), + SMS("sms"), + SMS_INBOUND("sms-inbound"), + SMS_INBOUND_LONGCODE("sms-inbound-longcode"), + SMS_INBOUND_SHORTCODE("sms-inbound-shortcode"), + SMS_INBOUND_TOLLFREE("sms-inbound-tollfree"), + SMS_MESSAGES_CARRIERFEES("sms-messages-carrierfees"), + SMS_MESSAGES_FEATURES("sms-messages-features"), + SMS_MESSAGES_FEATURES_ENGAGEMENT_SUITE( + "sms-messages-features-engagement-suite" + ), + SMS_MESSAGES_FEATURES_MESSAGE_REDACTION( + "sms-messages-features-message-redaction" + ), + SMS_MESSAGES_FEATURES_SENDERID("sms-messages-features-senderid"), + SMS_MPS("sms-mps"), + SMS_MPS_SHORTCODE("sms-mps-shortcode"), + SMS_MPS_TOLLFREE("sms-mps-tollfree"), + SMS_MPS_TOLLFREE_SETUP("sms-mps-tollfree-setup"), + SMS_NATIONAL_REGULATORY_PROTECTION( + "sms-national-regulatory-protection" + ), + SMS_OUTBOUND("sms-outbound"), + SMS_OUTBOUND_CONTENT_INSPECTION("sms-outbound-content-inspection"), + SMS_OUTBOUND_LONGCODE("sms-outbound-longcode"), + SMS_OUTBOUND_SHORTCODE("sms-outbound-shortcode"), + SMS_OUTBOUND_TOLLFREE("sms-outbound-tollfree"), + SMS_PUMPING_PROTECTION("sms-pumping-protection"), + SMS_PUMPING_RISK("sms-pumping-risk"), + SMSMESSAGES_BUCKET_ADJUSTMENTS("smsmessages-bucket-adjustments"), + SMSMESSAGES_OUTBOUND_DOMESTIC("smsmessages-outbound-domestic"), + SPEECH_RECOGNITION("speech-recognition"), + STUDIO_ENGAGEMENTS("studio-engagements"), + SYNC("sync"), + SYNC_ACTIONS("sync-actions"), + SYNC_ENDPOINT_HOURS("sync-endpoint-hours"), + SYNC_ENDPOINT_HOURS_ABOVE_DAILY_CAP( + "sync-endpoint-hours-above-daily-cap" + ), + TASKROUTER_TASKS("taskrouter-tasks"), + TOTALPRICE("totalprice"), + TRANSCRIPTIONS("transcriptions"), + TRUNKING_CPS("trunking-cps"), + TRUNKING_EMERGENCY_CALLS("trunking-emergency-calls"), + TRUNKING_ORIGINATION("trunking-origination"), + TRUNKING_ORIGINATION_LOCAL("trunking-origination-local"), + TRUNKING_ORIGINATION_MOBILE("trunking-origination-mobile"), + TRUNKING_ORIGINATION_TOLLFREE("trunking-origination-tollfree"), + TRUNKING_RECORDINGS("trunking-recordings"), + TRUNKING_SECURE("trunking-secure"), + TRUNKING_TERMINATION("trunking-termination"), + TTS_GOOGLE("tts-google"), + TURNMEGABYTES("turnmegabytes"), + TURNMEGABYTES_AUSTRALIA("turnmegabytes-australia"), + TURNMEGABYTES_BRASIL("turnmegabytes-brasil"), + TURNMEGABYTES_GERMANY("turnmegabytes-germany"), + TURNMEGABYTES_INDIA("turnmegabytes-india"), + TURNMEGABYTES_IRELAND("turnmegabytes-ireland"), + TURNMEGABYTES_JAPAN("turnmegabytes-japan"), + TURNMEGABYTES_SINGAPORE("turnmegabytes-singapore"), + TURNMEGABYTES_USEAST("turnmegabytes-useast"), + TURNMEGABYTES_USWEST("turnmegabytes-uswest"), + TWILIO_FOR_SALESFORCE("twilio-for-salesforce"), + TWILIO_FOR_SALESFORCE_LICENSES("twilio-for-salesforce-licenses"), + TWILIO_INTERCONNECT("twilio-interconnect"), + TWIML("twiml"), + USAGE_FLEX_VIDEO("usage-flex-video"), + USAGE_FUNCTIONS("usage-functions"), + USAGE_RCS_BASIC_MESSAGES_OUTBOUND("usage-rcs-basic-messages-outbound"), + USAGE_RCS_MESSAGES("usage-rcs-messages"), + USAGE_RCS_MESSAGES_INBOUND("usage-rcs-messages-inbound"), + USAGE_RCS_MESSAGING_CARRIER_FEES("usage-rcs-messaging-carrier-fees"), + USAGE_RCS_SINGLE_MESSAGES_OUTBOUND( + "usage-rcs-single-messages-outbound" + ), + VERIFY_PACKAGE_PLANS("verify-package-plans"), + VERIFY_PUSH("verify-push"), + VERIFY_SNA("verify-sna"), + VERIFY_TOTP("verify-totp"), + VERIFY_VOICE_SMS("verify-voice-sms"), + VERIFY_WHATSAPP_CONVERSATIONS_BUSINESS_INITIATED( + "verify-whatsapp-conversations-business-initiated" + ), + VIDEO_RECORDINGS("video-recordings"), + VIDEO_ROOMS_TURN_MEGABYTES("video-rooms-turn-megabytes"), + VIRTUAL_AGENT("virtual-agent"), + VOICE_INSIGHTS("voice-insights"), + VOICE_INSIGHTS_CLIENT_INSIGHTS_ON_DEMAND_MINUTE( + "voice-insights-client-insights-on-demand-minute" + ), + VOICE_INSIGHTS_PTSN_INSIGHTS_ON_DEMAND_MINUTE( + "voice-insights-ptsn-insights-on-demand-minute" + ), + VOICE_INSIGHTS_SIP_INTERFACE_INSIGHTS_ON_DEMAND_MINUTE( + "voice-insights-sip-interface-insights-on-demand-minute" + ), + VOICE_INSIGHTS_SIP_TRUNKING_INSIGHTS_ON_DEMAND_MINUTE( + "voice-insights-sip-trunking-insights-on-demand-minute" + ), + VOICE_INTELLIGENCE("voice-intelligence"), + VOICE_INTELLIGENCE_EIP_OPERATORS("voice-intelligence-eip-operators"), + VOICE_INTELLIGENCE_OPERATORS("voice-intelligence-operators"), + VOICE_INTELLIGENCE_TRANSCRIPTION("voice-intelligence-transcription"), + WDS("wds"), + WIRELESS("wireless"), + WIRELESS_DATA("wireless-data"), + WIRELESS_DATA_PAYG("wireless-data-payg"), + WIRELESS_DATA_PAYG_AFRICA("wireless-data-payg-africa"), + WIRELESS_DATA_PAYG_ASIA("wireless-data-payg-asia"), + WIRELESS_DATA_PAYG_CENTRALANDSOUTHAMERICA( + "wireless-data-payg-centralandsouthamerica" + ), + WIRELESS_DATA_PAYG_EUROPE("wireless-data-payg-europe"), + WIRELESS_DATA_PAYG_NORTHAMERICA("wireless-data-payg-northamerica"), + WIRELESS_DATA_PAYG_OCEANIA("wireless-data-payg-oceania"), + WIRELESS_DATA_QUOTA1("wireless-data-quota1"), + WIRELESS_DATA_QUOTA1_AFRICA("wireless-data-quota1-africa"), + WIRELESS_DATA_QUOTA1_ASIA("wireless-data-quota1-asia"), + WIRELESS_DATA_QUOTA1_CENTRALANDSOUTHAMERICA( + "wireless-data-quota1-centralandsouthamerica" + ), + WIRELESS_DATA_QUOTA1_EUROPE("wireless-data-quota1-europe"), + WIRELESS_DATA_QUOTA1_NORTHAMERICA("wireless-data-quota1-northamerica"), + WIRELESS_DATA_QUOTA1_OCEANIA("wireless-data-quota1-oceania"), + WIRELESS_DATA_QUOTA10("wireless-data-quota10"), + WIRELESS_DATA_QUOTA10_AFRICA("wireless-data-quota10-africa"), + WIRELESS_DATA_QUOTA10_ASIA("wireless-data-quota10-asia"), + WIRELESS_DATA_QUOTA10_CENTRALANDSOUTHAMERICA( + "wireless-data-quota10-centralandsouthamerica" + ), + WIRELESS_DATA_QUOTA10_EUROPE("wireless-data-quota10-europe"), + WIRELESS_DATA_QUOTA10_NORTHAMERICA( + "wireless-data-quota10-northamerica" + ), + WIRELESS_DATA_QUOTA10_OCEANIA("wireless-data-quota10-oceania"), + WIRELESS_DATA_QUOTA50("wireless-data-quota50"), + WIRELESS_DATA_QUOTA50_AFRICA("wireless-data-quota50-africa"), + WIRELESS_DATA_QUOTA50_ASIA("wireless-data-quota50-asia"), + WIRELESS_DATA_QUOTA50_CENTRALANDSOUTHAMERICA( + "wireless-data-quota50-centralandsouthamerica" + ), + WIRELESS_DATA_QUOTA50_EUROPE("wireless-data-quota50-europe"), + WIRELESS_DATA_QUOTA50_NORTHAMERICA( + "wireless-data-quota50-northamerica" + ), + WIRELESS_DATA_QUOTA50_OCEANIA("wireless-data-quota50-oceania"), + WIRELESS_DATA_QUOTACUSTOM("wireless-data-quotacustom"), + WIRELESS_DATA_QUOTACUSTOM_AFRICA("wireless-data-quotacustom-africa"), + WIRELESS_DATA_QUOTACUSTOM_ASIA("wireless-data-quotacustom-asia"), + WIRELESS_DATA_QUOTACUSTOM_CENTRALANDSOUTHAMERICA( + "wireless-data-quotacustom-centralandsouthamerica" + ), + WIRELESS_DATA_QUOTACUSTOM_EUROPE("wireless-data-quotacustom-europe"), + WIRELESS_DATA_QUOTACUSTOM_NORTHAMERICA( + "wireless-data-quotacustom-northamerica" + ), + WIRELESS_DATA_QUOTACUSTOM_OCEANIA("wireless-data-quotacustom-oceania"), + WIRELESS_MRC_PAYG("wireless-mrc-payg"), + WIRELESS_MRC_QUOTA1("wireless-mrc-quota1"), + WIRELESS_MRC_QUOTA10("wireless-mrc-quota10"), + WIRELESS_MRC_QUOTA50("wireless-mrc-quota50"), + WIRELESS_MRC_QUOTACUSTOM("wireless-mrc-quotacustom"), + WIRELESS_ORDERS("wireless-orders"), + WIRELESS_ORDERS_ARTWORK("wireless-orders-artwork"), + WIRELESS_ORDERS_BULK("wireless-orders-bulk"), + WIRELESS_ORDERS_ESIM("wireless-orders-esim"), + WIRELESS_ORDERS_STARTER("wireless-orders-starter"), + WIRELESS_QUOTAS("wireless-quotas"), + WIRELESS_SMS_AFRICA("wireless-sms-africa"), + WIRELESS_SMS_ASIA("wireless-sms-asia"), + WIRELESS_SMS_CENTRALANDSOUTHAMERICA( + "wireless-sms-centralandsouthamerica" + ), + WIRELESS_SMS_EUROPE("wireless-sms-europe"), + WIRELESS_SMS_NORTHAMERICA("wireless-sms-northamerica"), + WIRELESS_SMS_OCEANIA("wireless-sms-oceania"), + WIRELESS_SUPER_SIM("wireless-super-sim"), + WIRELESS_SUPER_SIM_DATA("wireless-super-sim-data"), + WIRELESS_SUPER_SIM_DATA_NORTH_AMERICA_USA( + "wireless-super-sim-data-north-america-usa" + ), + WIRELESS_SUPER_SIM_DATA_PAYG("wireless-super-sim-data-payg"), + WIRELESS_SUPER_SIM_DATA_PAYG_EUROPE( + "wireless-super-sim-data-payg-europe" + ), + WIRELESS_SUPER_SIM_DATA_PAYG_NORTH_AMERICA( + "wireless-super-sim-data-payg-north-america" + ), + WIRELESS_SUPER_SIM_HARDWARE("wireless-super-sim-hardware"), + WIRELESS_SUPER_SIM_HARDWARE_BULK("wireless-super-sim-hardware-bulk"), + WIRELESS_SUPER_SIM_SMSCOMMANDS("wireless-super-sim-smscommands"), + WIRELESS_SUPER_SIM_SMSCOMMANDS_AFRICA( + "wireless-super-sim-smscommands-africa" + ), + WIRELESS_SUPER_SIM_SMSCOMMANDS_ASIA( + "wireless-super-sim-smscommands-asia" + ), + WIRELESS_SUPER_SIM_SMSCOMMANDS_CENT_AND_SOUTH_AMERICA( + "wireless-super-sim-smscommands-cent-and-south-america" + ), + WIRELESS_SUPER_SIM_SMSCOMMANDS_EUROPE( + "wireless-super-sim-smscommands-europe" + ), + WIRELESS_SUPER_SIM_SMSCOMMANDS_NORTH_AMERICA( + "wireless-super-sim-smscommands-north-america" + ), + WIRELESS_SUPER_SIM_SMSCOMMANDS_OCEANIA( + "wireless-super-sim-smscommands-oceania" + ), + WIRELESS_SUPER_SIM_SUBSCRIPTION("wireless-super-sim-subscription"), + WIRELESS_SUPER_SIM_SUBSCRIPTION_PAYG( + "wireless-super-sim-subscription-payg" + ), + WIRELESS_USAGE("wireless-usage"), + WIRELESS_USAGE_COMMANDS("wireless-usage-commands"), + WIRELESS_USAGE_COMMANDS_AFRICA("wireless-usage-commands-africa"), + WIRELESS_USAGE_COMMANDS_ASIA("wireless-usage-commands-asia"), + WIRELESS_USAGE_COMMANDS_CENTRALANDSOUTHAMERICA( + "wireless-usage-commands-centralandsouthamerica" + ), + WIRELESS_USAGE_COMMANDS_EUROPE("wireless-usage-commands-europe"), + WIRELESS_USAGE_COMMANDS_HOME("wireless-usage-commands-home"), + WIRELESS_USAGE_COMMANDS_NORTHAMERICA( + "wireless-usage-commands-northamerica" + ), + WIRELESS_USAGE_COMMANDS_OCEANIA("wireless-usage-commands-oceania"), + WIRELESS_USAGE_COMMANDS_ROAMING("wireless-usage-commands-roaming"), + WIRELESS_USAGE_DATA("wireless-usage-data"), + WIRELESS_USAGE_DATA_AFRICA("wireless-usage-data-africa"), + WIRELESS_USAGE_DATA_ASIA("wireless-usage-data-asia"), + WIRELESS_USAGE_DATA_CENTRALANDSOUTHAMERICA( + "wireless-usage-data-centralandsouthamerica" + ), + WIRELESS_USAGE_DATA_CUSTOM_ADDITIONALMB( + "wireless-usage-data-custom-additionalmb" + ), + WIRELESS_USAGE_DATA_CUSTOM_FIRST5MB( + "wireless-usage-data-custom-first5mb" + ), + WIRELESS_USAGE_DATA_DOMESTIC_ROAMING( + "wireless-usage-data-domestic-roaming" + ), + WIRELESS_USAGE_DATA_EUROPE("wireless-usage-data-europe"), + WIRELESS_USAGE_DATA_INDIVIDUAL_ADDITIONALGB( + "wireless-usage-data-individual-additionalgb" + ), + WIRELESS_USAGE_DATA_INDIVIDUAL_FIRSTGB( + "wireless-usage-data-individual-firstgb" + ), + WIRELESS_USAGE_DATA_INTERNATIONAL_ROAMING_CANADA( + "wireless-usage-data-international-roaming-canada" + ), + WIRELESS_USAGE_DATA_INTERNATIONAL_ROAMING_INDIA( + "wireless-usage-data-international-roaming-india" + ), + WIRELESS_USAGE_DATA_INTERNATIONAL_ROAMING_MEXICO( + "wireless-usage-data-international-roaming-mexico" + ), + WIRELESS_USAGE_DATA_NORTHAMERICA("wireless-usage-data-northamerica"), + WIRELESS_USAGE_DATA_OCEANIA("wireless-usage-data-oceania"), + WIRELESS_USAGE_DATA_POOLED("wireless-usage-data-pooled"), + WIRELESS_USAGE_DATA_POOLED_DOWNLINK( + "wireless-usage-data-pooled-downlink" + ), + WIRELESS_USAGE_DATA_POOLED_UPLINK("wireless-usage-data-pooled-uplink"), + WIRELESS_USAGE_MRC("wireless-usage-mrc"), + WIRELESS_USAGE_MRC_CUSTOM("wireless-usage-mrc-custom"), + WIRELESS_USAGE_MRC_INDIVIDUAL("wireless-usage-mrc-individual"), + WIRELESS_USAGE_MRC_POOLED("wireless-usage-mrc-pooled"), + WIRELESS_USAGE_MRC_SUSPENDED("wireless-usage-mrc-suspended"), + WIRELESS_USAGE_SMS("wireless-usage-sms"), + WIRELESS_USAGE_VOICE("wireless-usage-voice"), + A2P_FAST_TRACK_ONBOARDING("a2p-fast-track-onboarding"), + ADVISORY_SERVICES("advisory-services"), + ADVISORY_SERVICES_BILLED("advisory-services-billed"), + ADVISORY_SERVICES_CALL_TRACKING("advisory-services-call-tracking"), + ADVISORY_SERVICES_DATA_SERVICES("advisory-services-data-services"), + ADVISORY_SERVICES_EXPENSES("advisory-services-expenses"), + ADVISORY_SERVICES_SIP_TRUNKING("advisory-services-sip-trunking"), + ASSETS_REQUESTS("assets-requests"), + AUDIENCE_MINUTES_VIDEO("audience-minutes-video"), + AUTHY_BUCKET_ADJUSTMENT("authy-bucket-adjustment"), + AUTHY_SOFTWARE("authy-software"), + CALLERIDLOOKUPS_API("calleridlookups-api"), + CALLERIDLOOKUPS_PROGRAMMABLEVOICE("calleridlookups-programmablevoice"), + CALLERIDLOOKUPS_TRUNKING("calleridlookups-trunking"), + CALLS_TRUNKING_INBOUND_TOLLFREE_LOCAL( + "calls-trunking-inbound-tollfree-local" + ), + CALLS_TRUNKING_INBOUND_TOLLFREE_MOBILE( + "calls-trunking-inbound-tollfree-mobile" + ), + CHANNELS_WHATSAPP_CONVERSATION_FREE_1( + "channels-whatsapp-conversation-free-1" + ), + CONFERENCE("conference"), + CONVERSATIONAL_INSIGHTS("conversational-insights"), + CONVERSATIONAL_INSIGHTS_MESSAGES("conversational-insights-messages"), + CONVERSATIONAL_INSIGHTS_VOICE_MINUTES( + "conversational-insights-voice-minutes" + ), + DEMO("demo"), + DEMO_UC_SCRIPT_TEST("demo-uc-script-test"), + ELASTIC_SIP_TRUNKING("elastic-sip-trunking"), + ELASTIC_SIP_TRUNKING_CALL_TRANSFERS( + "elastic-sip-trunking-call-transfers" + ), + ENTERPRISE_HIPPA("enterprise-hippa"), + FLEX_NAMED_USERS("flex-named-users"), + FLEX_SPINSCI("flex-spinsci"), + FLEX_USERS_1("flex-users-1"), + FLEX_WFO_PREMIUM_SPEECH_ANALYTICS("flex-wfo-premium-speech-analytics"), + FLEX_XCELERATE("flex-xcelerate"), + FUNCTIONS_ROLLUP("functions-rollup"), + IMP_V1_USAGE("imp-v1-usage"), + IP_MESSAGING_ADDONS("ip-messaging-addons"), + IVR("ivr"), + IVR_CONVERSATIONAL("ivr-conversational"), + IVR_DTMF("ivr-dtmf"), + IVR_VIRTUALAGENT("ivr-virtualagent"), + LIVE("live"), + LIVE_MEDIA_RECORDING_MINUTES("live-media-recording-minutes"), + LONGCODE_MPS("longcode-mps"), + MARKETPLACE_ANALYTICS_ADDONS("marketplace-analytics-addons"), + MARKETPLACE_ISV_ADDONS("marketplace-isv-addons"), + MARKETPLACE_MESSAGING_ADDONS("marketplace-messaging-addons"), + MARKETPLACE_PHONENUMBERS_ADDONS("marketplace-phonenumbers-addons"), + MARKETPLACE_RECORDING_ADDONS("marketplace-recording-addons"), + MARKETPLACE_VIRTUALAGENT_ADDONS("marketplace-virtualagent-addons"), + MARKETPLAY_PAY_ADDONS_SHUTTLE_PAY_CONNECTOR_1( + "marketplay-pay-addons-shuttle-pay-connector-1" + ), + MARKETPLAY_PAY_ADDONS_STRIPE_PAY_CONNECTOR( + "marketplay-pay-addons-stripe-pay-connector" + ), + MMS_INBOUND_LONGCODE_CANADA("mms-inbound-longcode-canada"), + MMS_INBOUND_LONGCODE_UNITEDSTATES("mms-inbound-longcode-unitedstates"), + MMS_OUTBOUND_LONGCODE_CANADA("mms-outbound-longcode-canada"), + MMS_OUTBOUND_LONGCODE_UNITEDSTATES( + "mms-outbound-longcode-unitedstates" + ), + MMS_OUTBOUND_TOLL_FREE("mms-outbound-toll-free"), + NOTIFY_CHATAPPSANDOTHERCHANNELS("notify-chatappsandotherchannels"), + NOTIFY_NOTIFYSERVICES("notify-notifyservices"), + NOTIFY_PUSHNOTIFICATIONS("notify-pushnotifications"), + PAYMENT_GATEWAY_CONNECTORS("payment-gateway-connectors"), + PAYMENT_SOLUTIONS("payment-solutions"), + PCHAT_BUCKET_ADJUSTMENT("pchat-bucket-adjustment"), + PHONENUMBERS_NUMBERS("phonenumbers-numbers"), + PROG_VOICE_CLIENT_ANDROID("prog-voice-client-android"), + PROG_VOICE_CLIENT_ANDROID_INBOUND("prog-voice-client-android-inbound"), + PROG_VOICE_CLIENT_ANDROID_OUTBOUND( + "prog-voice-client-android-outbound" + ), + PROG_VOICE_CLIENT_IOS("prog-voice-client-ios"), + PROG_VOICE_CLIENT_IOS_INBOUND("prog-voice-client-ios-inbound"), + PROG_VOICE_CLIENT_IOS_OUTBOUND("prog-voice-client-ios-outbound"), + PROG_VOICE_CLIENT_SDK("prog-voice-client-sdk"), + PROG_VOICE_CLIENT_WEB("prog-voice-client-web"), + PROG_VOICE_CLIENT_WEB_INBOUND("prog-voice-client-web-inbound"), + PROG_VOICE_CLIENT_WEB_OUTBOUND("prog-voice-client-web-outbound"), + PROGRAMMABLEVOICECONNECTIVITY_MEDIA_STREAMS( + "programmablevoiceconnectivity-media-streams" + ), + PSTNCONNECTIVITY_BYOC("pstnconnectivity-byoc"), + PSTNCONNECTIVITY_EMERGENCY("pstnconnectivity-emergency"), + PSTNCONNECTIVITY_MINUTES("pstnconnectivity-minutes"), + PSTNCONNECTIVITY_MINUTES_1("pstnconnectivity-minutes-1"), + PSTNCONNECTIVITY_MINUTESINBOUNDLOCAL( + "pstnconnectivity-minutesinboundlocal" + ), + PSTNCONNECTIVITY_MINUTESINBOUNDMOBILE( + "pstnconnectivity-minutesinboundmobile" + ), + PSTNCONNECTIVITY_MINUTESINBOUNDTOLLFREE( + "pstnconnectivity-minutesinboundtollfree" + ), + PSTNCONNECTIVITY_MINUTESINBOUNDTOLLFREELOCAL( + "pstnconnectivity-minutesinboundtollfreelocal" + ), + PSTNCONNECTIVITY_MINUTESINBOUNDTOLLFREEMOBILE( + "pstnconnectivity-minutesinboundtollfreemobile" + ), + PV_ROOM_HOURS("pv-room-hours"), + PV_ROOM_SIMULTANEOUS_PARTICIPANT_CONNECTIONS( + "pv-room-simultaneous-participant-connections" + ), + PVIDEO_ROOM_HOURS_AU1("pvideo-room-hours-au1"), + PVIDEO_ROOM_HOURS_BR1("pvideo-room-hours-br1"), + PVIDEO_ROOM_HOURS_IE1("pvideo-room-hours-ie1"), + PVIDEO_ROOM_HOURS_JP1("pvideo-room-hours-jp1"), + PVIDEO_ROOM_HOURS_SG1("pvideo-room-hours-sg1"), + PVIDEO_ROOM_HOURS_US1("pvideo-room-hours-us1"), + PVIDEO_ROOM_HOURS_US2("pvideo-room-hours-us2"), + RECORDINGS_ENCRYPTED("recordings-encrypted"), + SHORT_CODE_SETUP_FEES("short-code-setup-fees"), + SHORTCODES_MESSAGES_INBOUND("shortcodes-messages-inbound"), + SHORTCODES_MESSAGES_OUTBOUND("shortcodes-messages-outbound"), + SMS_MESSAGES_REGISTRATIONFEES("sms-messages-registrationfees"), + SMS_MMS_PENALTY_FEES("sms-mms-penalty-fees"), + SMS_MMS_PENALTY_FEES_1("sms-mms-penalty-fees-1"), + SMS_PUMPING_PROTECTION_NON_USCA("sms-pumping-protection-non-usca"), + SMS_PUMPING_PROTECTION_USCA("sms-pumping-protection-usca"), + STUDIO("studio"), + STUDIO_MONTHLY_FEES("studio-monthly-fees"), + SUPERSIM("supersim"), + TASK_ROUTER("task-router"), + TASK_ROUTER_WORKERS("task-router-workers"), + TEST_QUOTA_BUCKETS("test-quota-buckets"), + TEST_UC_SCRIPT_1("test-uc-script-1"), + TEST_UC_SCRIPT_DEMO_2("test-uc-script-demo-2"), + TEXT_TO_SPEECH("text-to-speech"), + TME("tme"), + TTS_BASIC("tts-basic"), + TWILIO_EDITIONS("twilio-editions"), + TWILIO_INTERCONNECT_CALIFORNIA("twilio-interconnect-california"), + TWILIO_INTERCONNECT_CALIFORNIA_MONTHLY( + "twilio-interconnect-california-monthly" + ), + TWILIO_INTERCONNECT_CALIFORNIA_SETUP( + "twilio-interconnect-california-setup" + ), + TWILIO_INTERCONNECT_FRANKFURT("twilio-interconnect-frankfurt"), + TWILIO_INTERCONNECT_FRANKFURT_MO("twilio-interconnect-frankfurt-mo"), + TWILIO_INTERCONNECT_FRANKFURT_SETUP( + "twilio-interconnect-frankfurt-setup" + ), + TWILIO_INTERCONNECT_LONDON("twilio-interconnect-london"), + TWILIO_INTERCONNECT_LONDON_MO("twilio-interconnect-london-mo"), + TWILIO_INTERCONNECT_LONDON_SETUP("twilio-interconnect-london-setup"), + TWILIO_INTERCONNECT_SAO_PAULO("twilio-interconnect-sao-paulo"), + TWILIO_INTERCONNECT_SAO_PAULO_MONTHLY( + "twilio-interconnect-sao-paulo-monthly" + ), + TWILIO_INTERCONNECT_SAO_PAULO_SETUP( + "twilio-interconnect-sao-paulo-setup" + ), + TWILIO_INTERCONNECT_SINGAPORE("twilio-interconnect-singapore"), + TWILIO_INTERCONNECT_SINGAPORE_MO("twilio-interconnect-singapore-mo"), + TWILIO_INTERCONNECT_SINGAPORE_SETUP( + "twilio-interconnect-singapore-setup" + ), + TWILIO_INTERCONNECT_SYDNEY("twilio-interconnect-sydney"), + TWILIO_INTERCONNECT_SYDNEY_MO("twilio-interconnect-sydney-mo"), + TWILIO_INTERCONNECT_SYDNEY_SETUP("twilio-interconnect-sydney-setup"), + TWILIO_INTERCONNECT_TOKYO("twilio-interconnect-tokyo"), + TWILIO_INTERCONNECT_TOKYO_MO("twilio-interconnect-tokyo-mo"), + TWILIO_INTERCONNECT_TOKYO_SETUP("twilio-interconnect-tokyo-setup"), + TWILIO_INTERCONNECT_VA("twilio-interconnect-va"), + TWILIO_INTERCONNECT_VA_MO("twilio-interconnect-va-mo"), + TWILIO_INTERCONNECT_VA_SETUP("twilio-interconnect-va-setup"), + TWIML_VERBS("twiml-verbs"), + TWIML_VERBS_SAY("twiml-verbs-say"), + USAGE_PROGRAMMABLE_MESSAGING_ENGAGEMENT_SUITE( + "usage-programmable-messaging-engagement-suite" + ), + USAGE_PROGRAMMABLE_MESSAGING_FEES_SERVICES( + "usage-programmable-messaging-fees-services" + ), + VERIFY_OUTBOUND_EMAIL("verify-outbound-email"), + VERIFY_PACKAGED_PLANS("verify-packaged-plans"), + VERIFY_SILENT_NETWORK_AUTH("verify-silent-network-auth"), + VERIFY_VOICE_AND_SMS("verify-voice-and-sms"), + VOICE_INSIGHTS_CLIENT_INSIGHTS_MONTHY_COMMIT( + "voice-insights-client-insights-monthy-commit" + ), + WIRELESS_DATA_PAYG_ASIA_AFG("wireless-data-payg-asia-afg"), + WIRELESS_MULTI_IMSI_SIM_COMMANDS("wireless-multi-imsi-sim-commands"), + WIRELESS_MULTI_IMSI_SIM_COMMANDS_USA( + "wireless-multi-imsi-sim-commands-usa" + ), + WIRELESS_MULTI_IMSI_SIM_DATA("wireless-multi-imsi-sim-data"), + WIRELESS_MULTI_IMSI_SIM_DATA_EU28("wireless-multi-imsi-sim-data-eu28"), + WIRELESS_MULTI_IMSI_SIM_DATA_USA("wireless-multi-imsi-sim-data-usa"), + WIRELESS_MULTI_IMSI_SIM_MONTHLY_FEES( + "wireless-multi-imsi-sim-monthly-fees" + ), + WIRELESS_MULTI_IMSI_SIM_USAGE("wireless-multi-imsi-sim-usage"), + WIRELESS_SUPER_SIM_DATA_NORTH_AMERICA( + "wireless-super-sim-data-north-america" + ), + WIRELESS_SUPER_SIM_USAGE("wireless-super-sim-usage"); + + private final String value; + + private Category(final String value) { + this.value = value; + } + + public String toString() { + return value; + } + + @JsonCreator + public static Category forValue(final String value) { + return Promoter.enumFromString(value, Category.values()); + } + } + /** * Converts a JSON String into a Yearly object using the provided ObjectMapper. * @@ -116,7 +1042,7 @@ public static String toJson(Object object, ObjectMapper mapper) { private final String asOf; @Getter - private final String category; + private final Yearly.Category category; @Getter private final String count; @@ -156,7 +1082,7 @@ private Yearly( @JsonProperty("account_sid") final String accountSid, @JsonProperty("api_version") final String apiVersion, @JsonProperty("as_of") final String asOf, - @JsonProperty("category") final String category, + @JsonProperty("category") final Yearly.Category category, @JsonProperty("count") final String count, @JsonProperty("count_unit") final String countUnit, @JsonProperty("description") final String description, diff --git a/src/main/java/com/twilio/rest/api/v2010/account/usage/record/YearlyReader.java b/src/main/java/com/twilio/rest/api/v2010/account/usage/record/YearlyReader.java index bfe2396f14..98b2474245 100644 --- a/src/main/java/com/twilio/rest/api/v2010/account/usage/record/YearlyReader.java +++ b/src/main/java/com/twilio/rest/api/v2010/account/usage/record/YearlyReader.java @@ -33,7 +33,7 @@ public class YearlyReader extends Reader { private String pathAccountSid; - private String category; + private Yearly.Category category; private LocalDate startDate; private LocalDate endDate; private Boolean includeSubaccounts; @@ -45,7 +45,7 @@ public YearlyReader(final String pathAccountSid) { this.pathAccountSid = pathAccountSid; } - public YearlyReader setCategory(final String category) { + public YearlyReader setCategory(final Yearly.Category category) { this.category = category; return this; } diff --git a/src/main/java/com/twilio/rest/api/v2010/account/usage/record/Yesterday.java b/src/main/java/com/twilio/rest/api/v2010/account/usage/record/Yesterday.java index 412f3d8501..9b6349fef4 100644 --- a/src/main/java/com/twilio/rest/api/v2010/account/usage/record/Yesterday.java +++ b/src/main/java/com/twilio/rest/api/v2010/account/usage/record/Yesterday.java @@ -25,6 +25,7 @@ import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.twilio.base.Resource; import com.twilio.base.Resource; +import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; import com.twilio.type.*; @@ -51,6 +52,931 @@ public static YesterdayReader reader(final String pathAccountSid) { return new YesterdayReader(pathAccountSid); } + public enum Category { + A2P_10DLC_REGISTRATIONFEES_BRANDREGISTRATION( + "a2p-10dlc-registrationfees-brandregistration" + ), + A2P_10DLC_REGISTRATIONFEES_BV("a2p-10dlc-registrationfees-bv"), + A2P_10DLC_REGISTRATIONFEES_CAMPAIGNCHARGES( + "a2p-10dlc-registrationfees-campaigncharges" + ), + A2P_10DLC_REGISTRATIONFEES_CAMPAIGNREGISTRATION( + "a2p-10dlc-registrationfees-campaignregistration" + ), + A2P_10DLC_REGISTRATIONFEES_CAMPAIGNVETTING( + "a2p-10dlc-registrationfees-campaignvetting" + ), + A2P_10DLC_REGISTRATIONFEES_MONTHLY( + "a2p-10dlc-registrationfees-monthly" + ), + A2P_10DLC_REGISTRATIONFEES_ONETIME( + "a2p-10dlc-registrationfees-onetime" + ), + A2P_REGISTRATION_FEES("a2p-registration-fees"), + ACCOUNT_SECURITY("account-security"), + AGENT_CONFERENCE("agent-conference"), + AGENT_COPILOT("agent-copilot"), + AGENT_COPILOT_MESSAGES("agent-copilot-messages"), + AGENT_COPILOT_PARTICIPANT_MINUTES("agent-copilot-participant-minutes"), + AI_ASSISTANTS("ai-assistants"), + AI_ASSISTANTS_VOICE("ai-assistants-voice"), + AMAZON_POLLY("amazon-polly"), + ANSWERING_MACHINE_DETECTION("answering-machine-detection"), + ASSETS("assets"), + AUDIENCE_MINUTES("audience-minutes"), + AUDIENCE_MINUTES_AUDIO("audience-minutes-audio"), + AUTHY_AUTHENTICATIONS("authy-authentications"), + AUTHY_CALLS_OUTBOUND("authy-calls-outbound"), + AUTHY_EMAIL_AUTHENTICATIONS("authy-email-authentications"), + AUTHY_MONTHLY_FEES("authy-monthly-fees"), + AUTHY_OUTBOUND_EMAIL("authy-outbound-email"), + AUTHY_PHONE_INTELLIGENCE("authy-phone-intelligence"), + AUTHY_PHONE_VERIFICATIONS("authy-phone-verifications"), + AUTHY_SMS_OUTBOUND("authy-sms-outbound"), + AUTHY_VERIFY_EMAIL_VERIFICATIONS("authy-verify-email-verifications"), + AUTHY_VERIFY_OUTBOUND_EMAIL("authy-verify-outbound-email"), + AUTOPILOT("autopilot"), + AUTOPILOT_HOME_ASSISTANTS("autopilot-home-assistants"), + AUTOPILOT_MESSAGING("autopilot-messaging"), + AUTOPILOT_OTHER("autopilot-other"), + AUTOPILOT_VOICE("autopilot-voice"), + BASIC_PEER_TO_PEER_ROOMS_PARTICIPANT_MINUTES( + "basic-peer-to-peer-rooms-participant-minutes" + ), + BRANDED_CALLING("branded-calling"), + BUNDLE_SMS_BUCKET("bundle-sms-bucket"), + BUNDLE_SUBSCRIPTION_FEES("bundle-subscription-fees"), + CALL_FORWARDING_LOOKUPS("call-forwarding-lookups"), + CALL_PROGESS_EVENTS("call-progess-events"), + CALLERIDLOOKUPS("calleridlookups"), + CALLS("calls"), + CALLS_CLIENT("calls-client"), + CALLS_EMERGENCY("calls-emergency"), + CALLS_GLOBALCONFERENCE("calls-globalconference"), + CALLS_INBOUND("calls-inbound"), + CALLS_INBOUND_LOCAL("calls-inbound-local"), + CALLS_INBOUND_MOBILE("calls-inbound-mobile"), + CALLS_INBOUND_TOLLFREE("calls-inbound-tollfree"), + CALLS_INBOUND_TOLLFREE_LOCAL("calls-inbound-tollfree-local"), + CALLS_INBOUND_TOLLFREE_MOBILE("calls-inbound-tollfree-mobile"), + CALLS_MEDIA_STREAM_MINUTES("calls-media-stream-minutes"), + CALLS_OUTBOUND("calls-outbound"), + CALLS_PAY_VERB_TRANSACTIONS("calls-pay-verb-transactions"), + CALLS_RECORDINGS("calls-recordings"), + CALLS_SIP("calls-sip"), + CALLS_SIP_INBOUND("calls-sip-inbound"), + CALLS_SIP_OUTBOUND("calls-sip-outbound"), + CALLS_TEXT_TO_SPEECH("calls-text-to-speech"), + CALLS_TRANSFERS("calls-transfers"), + CARRIER_LOOKUPS("carrier-lookups"), + CATEGORY("category"), + CHANNELS("channels"), + CHANNELS_MESSAGING("channels-messaging"), + CHANNELS_MESSAGING_INBOUND("channels-messaging-inbound"), + CHANNELS_MESSAGING_OUTBOUND("channels-messaging-outbound"), + CHANNELS_WHATSAPP("channels-whatsapp"), + CHANNELS_WHATSAPP_CONVERSATION_AUTHENTICATION( + "channels-whatsapp-conversation-authentication" + ), + CHANNELS_WHATSAPP_CONVERSATION_FREE( + "channels-whatsapp-conversation-free" + ), + CHANNELS_WHATSAPP_CONVERSATION_MARKETING( + "channels-whatsapp-conversation-marketing" + ), + CHANNELS_WHATSAPP_CONVERSATION_SERVICE( + "channels-whatsapp-conversation-service" + ), + CHANNELS_WHATSAPP_CONVERSATION_UTILITY( + "channels-whatsapp-conversation-utility" + ), + CHANNELS_WHATSAPP_INBOUND("channels-whatsapp-inbound"), + CHANNELS_WHATSAPP_OUTBOUND("channels-whatsapp-outbound"), + CHAT_VIRTUAL_AGENT("chat-virtual-agent"), + CONVERSATION_RELAY("conversation-relay"), + CONVERSATIONS("conversations"), + CONVERSATIONS_API_REQUESTS("conversations-api-requests"), + CONVERSATIONS_CONVERSATION_EVENTS("conversations-conversation-events"), + CONVERSATIONS_ENDPOINT_CONNECTIVITY( + "conversations-endpoint-connectivity" + ), + CONVERSATIONS_EVENTS("conversations-events"), + CONVERSATIONS_PARTICIPANT_EVENTS("conversations-participant-events"), + CONVERSATIONS_PARTICIPANTS("conversations-participants"), + CPS("cps"), + CREDIT_TRANSFER("credit-transfer"), + EMAIL("email"), + EMERGING_TECH("emerging-tech"), + ENGAGEMENT_SUITE_PACKAGED_PLANS("engagement-suite-packaged-plans"), + ENHANCED_LINE_TYPE_LOOKUPS("enhanced-line-type-lookups"), + ENTERPRISE("enterprise"), + EVENTS("events"), + EXPERIMENT_FRANCE_SMS("experiment-france-sms"), + EXPERIMENT_INDIA_SMS("experiment-india-sms"), + EXPERIMENT_UK_SMS("experiment-uk-sms"), + FAILED_MESSAGE_PROCESSING_FEE("failed-message-processing-fee"), + FLEX("flex"), + FLEX_ACTIVE_USER_HOURS("flex-active-user-hours"), + FLEX_CONCURRENT_USERS("flex-concurrent-users"), + FLEX_CONVERSATIONAL_INSIGHTS("flex-conversational-insights"), + FLEX_CONVERSATIONAL_INSIGHTS_MESSAGES( + "flex-conversational-insights-messages" + ), + FLEX_CONVERSATIONAL_INSIGHTS_VOICE_MINUTES( + "flex-conversational-insights-voice-minutes" + ), + FLEX_EMAIL_USAGE("flex-email-usage"), + FLEX_MESSAGING_USAGE("flex-messaging-usage"), + FLEX_PARTNER_SPINSCI("flex-partner-spinsci"), + FLEX_PARTNER_XCELERATE("flex-partner-xcelerate"), + FLEX_RESELLER_ECOSYSTEM("flex-reseller-ecosystem"), + FLEX_UNIQUE_USER("flex-unique-user"), + FLEX_USAGE("flex-usage"), + FLEX_USERS("flex-users"), + FLEX_VOICE_MINUTE("flex-voice-minute"), + FLEX_YTICA("flex-ytica"), + FRAUD_LOOKUPS("fraud-lookups"), + FRONTLINE("frontline"), + FRONTLINE_USERS("frontline-users"), + FUNCTIONS("functions"), + GENERIC_PAY_TRANSACTIONS("generic-pay-transactions"), + GROUP_ROOMS("group-rooms"), + GROUP_ROOMS_DATA_TRACK("group-rooms-data-track"), + GROUP_ROOMS_ENCRYPTED_MEDIA_RECORDED( + "group-rooms-encrypted-media-recorded" + ), + GROUP_ROOMS_MEDIA_DOWNLOADED("group-rooms-media-downloaded"), + GROUP_ROOMS_MEDIA_RECORDED("group-rooms-media-recorded"), + GROUP_ROOMS_MEDIA_ROUTED("group-rooms-media-routed"), + GROUP_ROOMS_MEDIA_STORED("group-rooms-media-stored"), + GROUP_ROOMS_PARTICIPANT_MINUTES("group-rooms-participant-minutes"), + GROUP_ROOMS_RECORDED_MINUTES("group-rooms-recorded-minutes"), + IP_MESSAGING("ip-messaging"), + IP_MESSAGING_COMMANDS("ip-messaging-commands"), + IP_MESSAGING_DATA_STORAGE("ip-messaging-data-storage"), + IP_MESSAGING_DATA_TRANSFER("ip-messaging-data-transfer"), + IP_MESSAGING_ENDPOINT_CONNECTIVITY( + "ip-messaging-endpoint-connectivity" + ), + IVR_VIRTUAL_AGENT_CUSTOM_VOICES("ivr-virtual-agent-custom-voices"), + IVR_VIRTUAL_AGENT_GENAI("ivr-virtual-agent-genai"), + LINE_STATUS_LOOKUPS("line-status-lookups"), + LIVE_ACTIVITY_LOOKUPS("live-activity-lookups"), + LOOKUP_BUCKET_ADJUSTMENT("lookup-bucket-adjustment"), + LOOKUP_IDENTITY_MATCH("lookup-identity-match"), + LOOKUPS("lookups"), + MARKETPLACE("marketplace"), + MARKETPLACE_ALGORITHMIA_NAMED_ENTITY_RECOGNITION( + "marketplace-algorithmia-named-entity-recognition" + ), + MARKETPLACE_CADENCE_TRANSCRIPTION("marketplace-cadence-transcription"), + MARKETPLACE_CADENCE_TRANSLATION("marketplace-cadence-translation"), + MARKETPLACE_CAPIO_SPEECH_TO_TEXT("marketplace-capio-speech-to-text"), + MARKETPLACE_CONVRIZA_ABABA("marketplace-convriza-ababa"), + MARKETPLACE_DEEPGRAM_PHRASE_DETECTOR( + "marketplace-deepgram-phrase-detector" + ), + MARKETPLACE_DEEPGRAM_TRANSCRIPTION( + "marketplace-deepgram-transcription" + ), + MARKETPLACE_DEEPGRAM_TRANSCRIPTION_BASE( + "marketplace-deepgram-transcription-base" + ), + MARKETPLACE_DEEPGRAM_TRANSSCRIPTION_ENHANCED( + "marketplace-deepgram-transscription-enhanced" + ), + MARKETPLACE_DIGITAL_SEGMENT_BUSINESS_INFO( + "marketplace-digital-segment-business-info" + ), + MARKETPLACE_FACEBOOK_OFFLINE_CONVERSIONS( + "marketplace-facebook-offline-conversions" + ), + MARKETPLACE_GOOGLE_SPEECH_TO_TEXT("marketplace-google-speech-to-text"), + MARKETPLACE_IBM_WATSON_MESSAGE_INSIGHTS( + "marketplace-ibm-watson-message-insights" + ), + MARKETPLACE_IBM_WATSON_MESSAGE_SENTIMENT( + "marketplace-ibm-watson-message-sentiment" + ), + MARKETPLACE_IBM_WATSON_RECORDING_ANALYSIS( + "marketplace-ibm-watson-recording-analysis" + ), + MARKETPLACE_IBM_WATSON_TONE_ANALYZER( + "marketplace-ibm-watson-tone-analyzer" + ), + MARKETPLACE_ICEHOOK_SYSTEMS_SCOUT("marketplace-icehook-systems-scout"), + MARKETPLACE_INFOGROUP_DATAAXLE_BIZINFO( + "marketplace-infogroup-dataaxle-bizinfo" + ), + MARKETPLACE_KEEN_IO_CONTACT_CENTER_ANALYTICS( + "marketplace-keen-io-contact-center-analytics" + ), + MARKETPLACE_MARCHEX_CLEANCALL("marketplace-marchex-cleancall"), + MARKETPLACE_MARCHEX_RECORDING_ANALYSIS( + "marketplace-marchex-recording-analysis" + ), + MARKETPLACE_MARCHEX_SENTIMENT_ANALYSIS_FOR_SMS( + "marketplace-marchex-sentiment-analysis-for-sms" + ), + MARKETPLACE_MARKETPLACE_NEXTCALLER_SOCIAL_ID( + "marketplace-marketplace-nextcaller-social-id" + ), + MARKETPLACE_MOBILE_COMMONS_OPT_OUT_CLASSIFIER( + "marketplace-mobile-commons-opt-out-classifier" + ), + MARKETPLACE_NEXIWAVE_VOICEMAIL_TO_TEXT( + "marketplace-nexiwave-voicemail-to-text" + ), + MARKETPLACE_NEXTCALLER_ADVANCED_CALLER_IDENTIFICATION( + "marketplace-nextcaller-advanced-caller-identification" + ), + MARKETPLACE_NOMOROBO_SPAM_SCORE("marketplace-nomorobo-spam-score"), + MARKETPLACE_PAY_ADDONS("marketplace-pay-addons"), + MARKETPLACE_PAY_ADDONS_BASECOMMERCE_PAY_CONNECTOR( + "marketplace-pay-addons-basecommerce-pay-connector" + ), + MARKETPLACE_PAY_ADDONS_BRAINTREE_PAY_CONNECTOR( + "marketplace-pay-addons-braintree-pay-connector" + ), + MARKETPLACE_PAY_ADDONS_CARDCONNECT_PAY_CONNECTOR( + "marketplace-pay-addons-cardconnect-pay-connector" + ), + MARKETPLACE_PAY_ADDONS_CHASE_PAY_CONNECTOR( + "marketplace-pay-addons-chase-pay-connector" + ), + MARKETPLACE_PAY_ADDONS_SHUTTLE_PAY_CONNECTOR( + "marketplace-pay-addons-shuttle-pay-connector" + ), + MARKETPLACE_PAY_ADDONS_STRIPE_PAY_CONNECTOR( + "marketplace-pay-addons-stripe-pay-connector" + ), + MARKETPLACE_PAYFONE_TCPA_COMPLIANCE( + "marketplace-payfone-tcpa-compliance" + ), + MARKETPLACE_POLY_AI_CONNECTOR("marketplace-poly-ai-connector"), + MARKETPLACE_REALPHONEVALIDATION("marketplace-realphonevalidation"), + MARKETPLACE_REMEETING_AUTOMATIC_SPEECH_RECOGNITION( + "marketplace-remeeting-automatic-speech-recognition" + ), + MARKETPLACE_SPOKE_PHONE_LICENSE_PRO( + "marketplace-spoke-phone-license-pro" + ), + MARKETPLACE_SPOKE_PHONE_LICENSE_STANDARD( + "marketplace-spoke-phone-license-standard" + ), + MARKETPLACE_TCPA_DEFENSE_SOLUTIONS_BLACKLIST_FEED( + "marketplace-tcpa-defense-solutions-blacklist-feed" + ), + MARKETPLACE_TELO_OPENCNAM("marketplace-telo-opencnam"), + MARKETPLACE_TRESTLE_SOLUTIONS_CALLER_IDENTIFICATION( + "marketplace-trestle-solutions-caller-identification" + ), + MARKETPLACE_TRUECNAM_TRUE_SPAM("marketplace-truecnam-true-spam"), + MARKETPLACE_TWILIO_CALLER_NAME_LOOKUP_US( + "marketplace-twilio-caller-name-lookup-us" + ), + MARKETPLACE_TWILIO_CARRIER_INFORMATION_LOOKUP( + "marketplace-twilio-carrier-information-lookup" + ), + MARKETPLACE_VOICEBASE_PCI("marketplace-voicebase-pci"), + MARKETPLACE_VOICEBASE_TRANSCRIPTION( + "marketplace-voicebase-transcription" + ), + MARKETPLACE_VOICEBASE_TRANSCRIPTION_CUSTOM_VOCABULARY( + "marketplace-voicebase-transcription-custom-vocabulary" + ), + MARKETPLACE_WEB_PURIFY_PROFANITY_FILTER( + "marketplace-web-purify-profanity-filter" + ), + MARKETPLACE_WHITEPAGES_PRO_CALLER_IDENTIFICATION( + "marketplace-whitepages-pro-caller-identification" + ), + MARKETPLACE_WHITEPAGES_PRO_PHONE_INTELLIGENCE( + "marketplace-whitepages-pro-phone-intelligence" + ), + MARKETPLACE_WHITEPAGES_PRO_PHONE_REPUTATION( + "marketplace-whitepages-pro-phone-reputation" + ), + MARKETPLACE_WOLFARM_SPOKEN_RESULTS( + "marketplace-wolfarm-spoken-results" + ), + MARKETPLACE_WOLFRAM_SHORT_ANSWER("marketplace-wolfram-short-answer"), + MARKETPLACE_YTICA_CONTACT_CENTER_REPORTING_ANALYTICS( + "marketplace-ytica-contact-center-reporting-analytics" + ), + MARKETPLAY_PAY_ADDONS_SHUTTLE_PAY_CONNECTOR( + "marketplay-pay-addons-shuttle-pay-connector" + ), + MEDIA_COMPOSER_MINUTES("media-composer-minutes"), + MEDIASTORAGE("mediastorage"), + MIN_SPEND_ADJUSTMENTS("min-spend-adjustments"), + MMS("mms"), + MMS_INBOUND("mms-inbound"), + MMS_INBOUND_LONGCODE("mms-inbound-longcode"), + MMS_INBOUND_SHORTCODE("mms-inbound-shortcode"), + MMS_INBOUND_TOLL_FREE("mms-inbound-toll-free"), + MMS_MESSAGES_CARRIERFEES("mms-messages-carrierfees"), + MMS_OUTBOUND("mms-outbound"), + MMS_OUTBOUND_LONGCODE("mms-outbound-longcode"), + MMS_OUTBOUND_SHORTCODE("mms-outbound-shortcode"), + MMS_OUTBOUND_TOLLFREE("mms-outbound-tollfree"), + MONITOR("monitor"), + MONITOR_READS("monitor-reads"), + MONITOR_STORAGE("monitor-storage"), + MONITOR_WRITES("monitor-writes"), + NOTIFY("notify"), + NOTIFY_ACTIONS_ATTEMPTS("notify-actions-attempts"), + NOTIFY_CHANNELS("notify-channels"), + NUMBER_FORMAT_LOOKUPS("number-format-lookups"), + PCHAT("pchat"), + PCHAT_ACTIONS("pchat-actions"), + PCHAT_APS("pchat-aps"), + PCHAT_CONV_MED_STORAGE("pchat-conv-med-storage"), + PCHAT_MESSAGES("pchat-messages"), + PCHAT_NOTIFICATIONS("pchat-notifications"), + PCHAT_READS("pchat-reads"), + PCHAT_USERS("pchat-users"), + PEER_TO_PEER_ROOMS_PARTICIPANT_MINUTES( + "peer-to-peer-rooms-participant-minutes" + ), + PFAX("pfax"), + PFAX_MINUTES("pfax-minutes"), + PFAX_MINUTES_INBOUND("pfax-minutes-inbound"), + PFAX_MINUTES_OUTBOUND("pfax-minutes-outbound"), + PFAX_PAGES("pfax-pages"), + PHONE_QUALITY_SCORE_LOOKUPS("phone-quality-score-lookups"), + PHONENUMBERS("phonenumbers"), + PHONENUMBERS_CPS("phonenumbers-cps"), + PHONENUMBERS_EMERGENCY("phonenumbers-emergency"), + PHONENUMBERS_LOCAL("phonenumbers-local"), + PHONENUMBERS_MOBILE("phonenumbers-mobile"), + PHONENUMBERS_PORTING("phonenumbers-porting"), + PHONENUMBERS_SETUPS("phonenumbers-setups"), + PHONENUMBERS_TOLLFREE("phonenumbers-tollfree"), + PREMIUMSUPPORT("premiumsupport"), + PREMIUMSUPPORT_PERCENTAGE_SPEND("premiumsupport-percentage-spend"), + PROGRAMMABLEVOICE_PLATFORM("programmablevoice-platform"), + PROGRAMMABLEVOICECONN_CLIENTSDK("programmablevoiceconn-clientsdk"), + PROGRAMMABLEVOICECONN_CLIENTSDK_INBOUND( + "programmablevoiceconn-clientsdk-inbound" + ), + PROGRAMMABLEVOICECONN_CLIENTSDK_OUTBOUND( + "programmablevoiceconn-clientsdk-outbound" + ), + PROGRAMMABLEVOICECONN_ONNET("programmablevoiceconn-onnet"), + PROGRAMMABLEVOICECONN_ONNET_INBOUND( + "programmablevoiceconn-onnet-inbound" + ), + PROGRAMMABLEVOICECONN_ONNET_OUTBOUND( + "programmablevoiceconn-onnet-outbound" + ), + PROGRAMMABLEVOICECONN_SIP("programmablevoiceconn-sip"), + PROGRAMMABLEVOICECONN_SIP_INBOUND("programmablevoiceconn-sip-inbound"), + PROGRAMMABLEVOICECONN_SIP_OUTBOUND( + "programmablevoiceconn-sip-outbound" + ), + PROGRAMMABLEVOICECONNECTIVITY("programmablevoiceconnectivity"), + PROXY("proxy"), + PROXY_ACTIVE_SESSIONS("proxy-active-sessions"), + PROXY_BUCKET_ADJUSTMENT("proxy-bucket-adjustment"), + PROXY_LICENSES("proxy-licenses"), + PSTNCONNECTIVITY("pstnconnectivity"), + PSTNCONNECTIVITY_INBOUND("pstnconnectivity-inbound"), + PSTNCONNECTIVITY_OUTBOUND("pstnconnectivity-outbound"), + PV("pv"), + PV_BASIC_ROOMS("pv-basic-rooms"), + PV_COMPOSITION_MEDIA_DOWNLOADED("pv-composition-media-downloaded"), + PV_COMPOSITION_MEDIA_ENCRYPTED("pv-composition-media-encrypted"), + PV_COMPOSITION_MEDIA_STORED("pv-composition-media-stored"), + PV_COMPOSITION_MINUTES("pv-composition-minutes"), + PV_RECORDING_COMPOSITIONS("pv-recording-compositions"), + PV_ROOM_PARTICIPANTS("pv-room-participants"), + PV_ROOM_PARTICIPANTS_AU1("pv-room-participants-au1"), + PV_ROOM_PARTICIPANTS_BR1("pv-room-participants-br1"), + PV_ROOM_PARTICIPANTS_IE1("pv-room-participants-ie1"), + PV_ROOM_PARTICIPANTS_JP1("pv-room-participants-jp1"), + PV_ROOM_PARTICIPANTS_SG1("pv-room-participants-sg1"), + PV_ROOM_PARTICIPANTS_US1("pv-room-participants-us1"), + PV_ROOM_PARTICIPANTS_US2("pv-room-participants-us2"), + PV_ROOMS("pv-rooms"), + PV_SIP_ENDPOINT_REGISTRATIONS("pv-sip-endpoint-registrations"), + RCS_MESSAGES("rcs-messages"), + REASSIGNED_NUMBER("reassigned-number"), + RECORDINGS("recordings"), + RECORDINGSTORAGE("recordingstorage"), + SHORTCODES("shortcodes"), + SHORTCODES_CUSTOMEROWNED("shortcodes-customerowned"), + SHORTCODES_MMS_ENABLEMENT("shortcodes-mms-enablement"), + SHORTCODES_MPS("shortcodes-mps"), + SHORTCODES_RANDOM("shortcodes-random"), + SHORTCODES_SETUP_FEES("shortcodes-setup-fees"), + SHORTCODES_UK("shortcodes-uk"), + SHORTCODES_VANITY("shortcodes-vanity"), + SIM_SWAP_LOOKUPS("sim-swap-lookups"), + SIP_SECURE_MEDIA("sip-secure-media"), + SMALL_GROUP_ROOMS("small-group-rooms"), + SMALL_GROUP_ROOMS_DATA_TRACK("small-group-rooms-data-track"), + SMALL_GROUP_ROOMS_PARTICIPANT_MINUTES( + "small-group-rooms-participant-minutes" + ), + SMS("sms"), + SMS_INBOUND("sms-inbound"), + SMS_INBOUND_LONGCODE("sms-inbound-longcode"), + SMS_INBOUND_SHORTCODE("sms-inbound-shortcode"), + SMS_INBOUND_TOLLFREE("sms-inbound-tollfree"), + SMS_MESSAGES_CARRIERFEES("sms-messages-carrierfees"), + SMS_MESSAGES_FEATURES("sms-messages-features"), + SMS_MESSAGES_FEATURES_ENGAGEMENT_SUITE( + "sms-messages-features-engagement-suite" + ), + SMS_MESSAGES_FEATURES_MESSAGE_REDACTION( + "sms-messages-features-message-redaction" + ), + SMS_MESSAGES_FEATURES_SENDERID("sms-messages-features-senderid"), + SMS_MPS("sms-mps"), + SMS_MPS_SHORTCODE("sms-mps-shortcode"), + SMS_MPS_TOLLFREE("sms-mps-tollfree"), + SMS_MPS_TOLLFREE_SETUP("sms-mps-tollfree-setup"), + SMS_NATIONAL_REGULATORY_PROTECTION( + "sms-national-regulatory-protection" + ), + SMS_OUTBOUND("sms-outbound"), + SMS_OUTBOUND_CONTENT_INSPECTION("sms-outbound-content-inspection"), + SMS_OUTBOUND_LONGCODE("sms-outbound-longcode"), + SMS_OUTBOUND_SHORTCODE("sms-outbound-shortcode"), + SMS_OUTBOUND_TOLLFREE("sms-outbound-tollfree"), + SMS_PUMPING_PROTECTION("sms-pumping-protection"), + SMS_PUMPING_RISK("sms-pumping-risk"), + SMSMESSAGES_BUCKET_ADJUSTMENTS("smsmessages-bucket-adjustments"), + SMSMESSAGES_OUTBOUND_DOMESTIC("smsmessages-outbound-domestic"), + SPEECH_RECOGNITION("speech-recognition"), + STUDIO_ENGAGEMENTS("studio-engagements"), + SYNC("sync"), + SYNC_ACTIONS("sync-actions"), + SYNC_ENDPOINT_HOURS("sync-endpoint-hours"), + SYNC_ENDPOINT_HOURS_ABOVE_DAILY_CAP( + "sync-endpoint-hours-above-daily-cap" + ), + TASKROUTER_TASKS("taskrouter-tasks"), + TOTALPRICE("totalprice"), + TRANSCRIPTIONS("transcriptions"), + TRUNKING_CPS("trunking-cps"), + TRUNKING_EMERGENCY_CALLS("trunking-emergency-calls"), + TRUNKING_ORIGINATION("trunking-origination"), + TRUNKING_ORIGINATION_LOCAL("trunking-origination-local"), + TRUNKING_ORIGINATION_MOBILE("trunking-origination-mobile"), + TRUNKING_ORIGINATION_TOLLFREE("trunking-origination-tollfree"), + TRUNKING_RECORDINGS("trunking-recordings"), + TRUNKING_SECURE("trunking-secure"), + TRUNKING_TERMINATION("trunking-termination"), + TTS_GOOGLE("tts-google"), + TURNMEGABYTES("turnmegabytes"), + TURNMEGABYTES_AUSTRALIA("turnmegabytes-australia"), + TURNMEGABYTES_BRASIL("turnmegabytes-brasil"), + TURNMEGABYTES_GERMANY("turnmegabytes-germany"), + TURNMEGABYTES_INDIA("turnmegabytes-india"), + TURNMEGABYTES_IRELAND("turnmegabytes-ireland"), + TURNMEGABYTES_JAPAN("turnmegabytes-japan"), + TURNMEGABYTES_SINGAPORE("turnmegabytes-singapore"), + TURNMEGABYTES_USEAST("turnmegabytes-useast"), + TURNMEGABYTES_USWEST("turnmegabytes-uswest"), + TWILIO_FOR_SALESFORCE("twilio-for-salesforce"), + TWILIO_FOR_SALESFORCE_LICENSES("twilio-for-salesforce-licenses"), + TWILIO_INTERCONNECT("twilio-interconnect"), + TWIML("twiml"), + USAGE_FLEX_VIDEO("usage-flex-video"), + USAGE_FUNCTIONS("usage-functions"), + USAGE_RCS_BASIC_MESSAGES_OUTBOUND("usage-rcs-basic-messages-outbound"), + USAGE_RCS_MESSAGES("usage-rcs-messages"), + USAGE_RCS_MESSAGES_INBOUND("usage-rcs-messages-inbound"), + USAGE_RCS_MESSAGING_CARRIER_FEES("usage-rcs-messaging-carrier-fees"), + USAGE_RCS_SINGLE_MESSAGES_OUTBOUND( + "usage-rcs-single-messages-outbound" + ), + VERIFY_PACKAGE_PLANS("verify-package-plans"), + VERIFY_PUSH("verify-push"), + VERIFY_SNA("verify-sna"), + VERIFY_TOTP("verify-totp"), + VERIFY_VOICE_SMS("verify-voice-sms"), + VERIFY_WHATSAPP_CONVERSATIONS_BUSINESS_INITIATED( + "verify-whatsapp-conversations-business-initiated" + ), + VIDEO_RECORDINGS("video-recordings"), + VIDEO_ROOMS_TURN_MEGABYTES("video-rooms-turn-megabytes"), + VIRTUAL_AGENT("virtual-agent"), + VOICE_INSIGHTS("voice-insights"), + VOICE_INSIGHTS_CLIENT_INSIGHTS_ON_DEMAND_MINUTE( + "voice-insights-client-insights-on-demand-minute" + ), + VOICE_INSIGHTS_PTSN_INSIGHTS_ON_DEMAND_MINUTE( + "voice-insights-ptsn-insights-on-demand-minute" + ), + VOICE_INSIGHTS_SIP_INTERFACE_INSIGHTS_ON_DEMAND_MINUTE( + "voice-insights-sip-interface-insights-on-demand-minute" + ), + VOICE_INSIGHTS_SIP_TRUNKING_INSIGHTS_ON_DEMAND_MINUTE( + "voice-insights-sip-trunking-insights-on-demand-minute" + ), + VOICE_INTELLIGENCE("voice-intelligence"), + VOICE_INTELLIGENCE_EIP_OPERATORS("voice-intelligence-eip-operators"), + VOICE_INTELLIGENCE_OPERATORS("voice-intelligence-operators"), + VOICE_INTELLIGENCE_TRANSCRIPTION("voice-intelligence-transcription"), + WDS("wds"), + WIRELESS("wireless"), + WIRELESS_DATA("wireless-data"), + WIRELESS_DATA_PAYG("wireless-data-payg"), + WIRELESS_DATA_PAYG_AFRICA("wireless-data-payg-africa"), + WIRELESS_DATA_PAYG_ASIA("wireless-data-payg-asia"), + WIRELESS_DATA_PAYG_CENTRALANDSOUTHAMERICA( + "wireless-data-payg-centralandsouthamerica" + ), + WIRELESS_DATA_PAYG_EUROPE("wireless-data-payg-europe"), + WIRELESS_DATA_PAYG_NORTHAMERICA("wireless-data-payg-northamerica"), + WIRELESS_DATA_PAYG_OCEANIA("wireless-data-payg-oceania"), + WIRELESS_DATA_QUOTA1("wireless-data-quota1"), + WIRELESS_DATA_QUOTA1_AFRICA("wireless-data-quota1-africa"), + WIRELESS_DATA_QUOTA1_ASIA("wireless-data-quota1-asia"), + WIRELESS_DATA_QUOTA1_CENTRALANDSOUTHAMERICA( + "wireless-data-quota1-centralandsouthamerica" + ), + WIRELESS_DATA_QUOTA1_EUROPE("wireless-data-quota1-europe"), + WIRELESS_DATA_QUOTA1_NORTHAMERICA("wireless-data-quota1-northamerica"), + WIRELESS_DATA_QUOTA1_OCEANIA("wireless-data-quota1-oceania"), + WIRELESS_DATA_QUOTA10("wireless-data-quota10"), + WIRELESS_DATA_QUOTA10_AFRICA("wireless-data-quota10-africa"), + WIRELESS_DATA_QUOTA10_ASIA("wireless-data-quota10-asia"), + WIRELESS_DATA_QUOTA10_CENTRALANDSOUTHAMERICA( + "wireless-data-quota10-centralandsouthamerica" + ), + WIRELESS_DATA_QUOTA10_EUROPE("wireless-data-quota10-europe"), + WIRELESS_DATA_QUOTA10_NORTHAMERICA( + "wireless-data-quota10-northamerica" + ), + WIRELESS_DATA_QUOTA10_OCEANIA("wireless-data-quota10-oceania"), + WIRELESS_DATA_QUOTA50("wireless-data-quota50"), + WIRELESS_DATA_QUOTA50_AFRICA("wireless-data-quota50-africa"), + WIRELESS_DATA_QUOTA50_ASIA("wireless-data-quota50-asia"), + WIRELESS_DATA_QUOTA50_CENTRALANDSOUTHAMERICA( + "wireless-data-quota50-centralandsouthamerica" + ), + WIRELESS_DATA_QUOTA50_EUROPE("wireless-data-quota50-europe"), + WIRELESS_DATA_QUOTA50_NORTHAMERICA( + "wireless-data-quota50-northamerica" + ), + WIRELESS_DATA_QUOTA50_OCEANIA("wireless-data-quota50-oceania"), + WIRELESS_DATA_QUOTACUSTOM("wireless-data-quotacustom"), + WIRELESS_DATA_QUOTACUSTOM_AFRICA("wireless-data-quotacustom-africa"), + WIRELESS_DATA_QUOTACUSTOM_ASIA("wireless-data-quotacustom-asia"), + WIRELESS_DATA_QUOTACUSTOM_CENTRALANDSOUTHAMERICA( + "wireless-data-quotacustom-centralandsouthamerica" + ), + WIRELESS_DATA_QUOTACUSTOM_EUROPE("wireless-data-quotacustom-europe"), + WIRELESS_DATA_QUOTACUSTOM_NORTHAMERICA( + "wireless-data-quotacustom-northamerica" + ), + WIRELESS_DATA_QUOTACUSTOM_OCEANIA("wireless-data-quotacustom-oceania"), + WIRELESS_MRC_PAYG("wireless-mrc-payg"), + WIRELESS_MRC_QUOTA1("wireless-mrc-quota1"), + WIRELESS_MRC_QUOTA10("wireless-mrc-quota10"), + WIRELESS_MRC_QUOTA50("wireless-mrc-quota50"), + WIRELESS_MRC_QUOTACUSTOM("wireless-mrc-quotacustom"), + WIRELESS_ORDERS("wireless-orders"), + WIRELESS_ORDERS_ARTWORK("wireless-orders-artwork"), + WIRELESS_ORDERS_BULK("wireless-orders-bulk"), + WIRELESS_ORDERS_ESIM("wireless-orders-esim"), + WIRELESS_ORDERS_STARTER("wireless-orders-starter"), + WIRELESS_QUOTAS("wireless-quotas"), + WIRELESS_SMS_AFRICA("wireless-sms-africa"), + WIRELESS_SMS_ASIA("wireless-sms-asia"), + WIRELESS_SMS_CENTRALANDSOUTHAMERICA( + "wireless-sms-centralandsouthamerica" + ), + WIRELESS_SMS_EUROPE("wireless-sms-europe"), + WIRELESS_SMS_NORTHAMERICA("wireless-sms-northamerica"), + WIRELESS_SMS_OCEANIA("wireless-sms-oceania"), + WIRELESS_SUPER_SIM("wireless-super-sim"), + WIRELESS_SUPER_SIM_DATA("wireless-super-sim-data"), + WIRELESS_SUPER_SIM_DATA_NORTH_AMERICA_USA( + "wireless-super-sim-data-north-america-usa" + ), + WIRELESS_SUPER_SIM_DATA_PAYG("wireless-super-sim-data-payg"), + WIRELESS_SUPER_SIM_DATA_PAYG_EUROPE( + "wireless-super-sim-data-payg-europe" + ), + WIRELESS_SUPER_SIM_DATA_PAYG_NORTH_AMERICA( + "wireless-super-sim-data-payg-north-america" + ), + WIRELESS_SUPER_SIM_HARDWARE("wireless-super-sim-hardware"), + WIRELESS_SUPER_SIM_HARDWARE_BULK("wireless-super-sim-hardware-bulk"), + WIRELESS_SUPER_SIM_SMSCOMMANDS("wireless-super-sim-smscommands"), + WIRELESS_SUPER_SIM_SMSCOMMANDS_AFRICA( + "wireless-super-sim-smscommands-africa" + ), + WIRELESS_SUPER_SIM_SMSCOMMANDS_ASIA( + "wireless-super-sim-smscommands-asia" + ), + WIRELESS_SUPER_SIM_SMSCOMMANDS_CENT_AND_SOUTH_AMERICA( + "wireless-super-sim-smscommands-cent-and-south-america" + ), + WIRELESS_SUPER_SIM_SMSCOMMANDS_EUROPE( + "wireless-super-sim-smscommands-europe" + ), + WIRELESS_SUPER_SIM_SMSCOMMANDS_NORTH_AMERICA( + "wireless-super-sim-smscommands-north-america" + ), + WIRELESS_SUPER_SIM_SMSCOMMANDS_OCEANIA( + "wireless-super-sim-smscommands-oceania" + ), + WIRELESS_SUPER_SIM_SUBSCRIPTION("wireless-super-sim-subscription"), + WIRELESS_SUPER_SIM_SUBSCRIPTION_PAYG( + "wireless-super-sim-subscription-payg" + ), + WIRELESS_USAGE("wireless-usage"), + WIRELESS_USAGE_COMMANDS("wireless-usage-commands"), + WIRELESS_USAGE_COMMANDS_AFRICA("wireless-usage-commands-africa"), + WIRELESS_USAGE_COMMANDS_ASIA("wireless-usage-commands-asia"), + WIRELESS_USAGE_COMMANDS_CENTRALANDSOUTHAMERICA( + "wireless-usage-commands-centralandsouthamerica" + ), + WIRELESS_USAGE_COMMANDS_EUROPE("wireless-usage-commands-europe"), + WIRELESS_USAGE_COMMANDS_HOME("wireless-usage-commands-home"), + WIRELESS_USAGE_COMMANDS_NORTHAMERICA( + "wireless-usage-commands-northamerica" + ), + WIRELESS_USAGE_COMMANDS_OCEANIA("wireless-usage-commands-oceania"), + WIRELESS_USAGE_COMMANDS_ROAMING("wireless-usage-commands-roaming"), + WIRELESS_USAGE_DATA("wireless-usage-data"), + WIRELESS_USAGE_DATA_AFRICA("wireless-usage-data-africa"), + WIRELESS_USAGE_DATA_ASIA("wireless-usage-data-asia"), + WIRELESS_USAGE_DATA_CENTRALANDSOUTHAMERICA( + "wireless-usage-data-centralandsouthamerica" + ), + WIRELESS_USAGE_DATA_CUSTOM_ADDITIONALMB( + "wireless-usage-data-custom-additionalmb" + ), + WIRELESS_USAGE_DATA_CUSTOM_FIRST5MB( + "wireless-usage-data-custom-first5mb" + ), + WIRELESS_USAGE_DATA_DOMESTIC_ROAMING( + "wireless-usage-data-domestic-roaming" + ), + WIRELESS_USAGE_DATA_EUROPE("wireless-usage-data-europe"), + WIRELESS_USAGE_DATA_INDIVIDUAL_ADDITIONALGB( + "wireless-usage-data-individual-additionalgb" + ), + WIRELESS_USAGE_DATA_INDIVIDUAL_FIRSTGB( + "wireless-usage-data-individual-firstgb" + ), + WIRELESS_USAGE_DATA_INTERNATIONAL_ROAMING_CANADA( + "wireless-usage-data-international-roaming-canada" + ), + WIRELESS_USAGE_DATA_INTERNATIONAL_ROAMING_INDIA( + "wireless-usage-data-international-roaming-india" + ), + WIRELESS_USAGE_DATA_INTERNATIONAL_ROAMING_MEXICO( + "wireless-usage-data-international-roaming-mexico" + ), + WIRELESS_USAGE_DATA_NORTHAMERICA("wireless-usage-data-northamerica"), + WIRELESS_USAGE_DATA_OCEANIA("wireless-usage-data-oceania"), + WIRELESS_USAGE_DATA_POOLED("wireless-usage-data-pooled"), + WIRELESS_USAGE_DATA_POOLED_DOWNLINK( + "wireless-usage-data-pooled-downlink" + ), + WIRELESS_USAGE_DATA_POOLED_UPLINK("wireless-usage-data-pooled-uplink"), + WIRELESS_USAGE_MRC("wireless-usage-mrc"), + WIRELESS_USAGE_MRC_CUSTOM("wireless-usage-mrc-custom"), + WIRELESS_USAGE_MRC_INDIVIDUAL("wireless-usage-mrc-individual"), + WIRELESS_USAGE_MRC_POOLED("wireless-usage-mrc-pooled"), + WIRELESS_USAGE_MRC_SUSPENDED("wireless-usage-mrc-suspended"), + WIRELESS_USAGE_SMS("wireless-usage-sms"), + WIRELESS_USAGE_VOICE("wireless-usage-voice"), + A2P_FAST_TRACK_ONBOARDING("a2p-fast-track-onboarding"), + ADVISORY_SERVICES("advisory-services"), + ADVISORY_SERVICES_BILLED("advisory-services-billed"), + ADVISORY_SERVICES_CALL_TRACKING("advisory-services-call-tracking"), + ADVISORY_SERVICES_DATA_SERVICES("advisory-services-data-services"), + ADVISORY_SERVICES_EXPENSES("advisory-services-expenses"), + ADVISORY_SERVICES_SIP_TRUNKING("advisory-services-sip-trunking"), + ASSETS_REQUESTS("assets-requests"), + AUDIENCE_MINUTES_VIDEO("audience-minutes-video"), + AUTHY_BUCKET_ADJUSTMENT("authy-bucket-adjustment"), + AUTHY_SOFTWARE("authy-software"), + CALLERIDLOOKUPS_API("calleridlookups-api"), + CALLERIDLOOKUPS_PROGRAMMABLEVOICE("calleridlookups-programmablevoice"), + CALLERIDLOOKUPS_TRUNKING("calleridlookups-trunking"), + CALLS_TRUNKING_INBOUND_TOLLFREE_LOCAL( + "calls-trunking-inbound-tollfree-local" + ), + CALLS_TRUNKING_INBOUND_TOLLFREE_MOBILE( + "calls-trunking-inbound-tollfree-mobile" + ), + CHANNELS_WHATSAPP_CONVERSATION_FREE_1( + "channels-whatsapp-conversation-free-1" + ), + CONFERENCE("conference"), + CONVERSATIONAL_INSIGHTS("conversational-insights"), + CONVERSATIONAL_INSIGHTS_MESSAGES("conversational-insights-messages"), + CONVERSATIONAL_INSIGHTS_VOICE_MINUTES( + "conversational-insights-voice-minutes" + ), + DEMO("demo"), + DEMO_UC_SCRIPT_TEST("demo-uc-script-test"), + ELASTIC_SIP_TRUNKING("elastic-sip-trunking"), + ELASTIC_SIP_TRUNKING_CALL_TRANSFERS( + "elastic-sip-trunking-call-transfers" + ), + ENTERPRISE_HIPPA("enterprise-hippa"), + FLEX_NAMED_USERS("flex-named-users"), + FLEX_SPINSCI("flex-spinsci"), + FLEX_USERS_1("flex-users-1"), + FLEX_WFO_PREMIUM_SPEECH_ANALYTICS("flex-wfo-premium-speech-analytics"), + FLEX_XCELERATE("flex-xcelerate"), + FUNCTIONS_ROLLUP("functions-rollup"), + IMP_V1_USAGE("imp-v1-usage"), + IP_MESSAGING_ADDONS("ip-messaging-addons"), + IVR("ivr"), + IVR_CONVERSATIONAL("ivr-conversational"), + IVR_DTMF("ivr-dtmf"), + IVR_VIRTUALAGENT("ivr-virtualagent"), + LIVE("live"), + LIVE_MEDIA_RECORDING_MINUTES("live-media-recording-minutes"), + LONGCODE_MPS("longcode-mps"), + MARKETPLACE_ANALYTICS_ADDONS("marketplace-analytics-addons"), + MARKETPLACE_ISV_ADDONS("marketplace-isv-addons"), + MARKETPLACE_MESSAGING_ADDONS("marketplace-messaging-addons"), + MARKETPLACE_PHONENUMBERS_ADDONS("marketplace-phonenumbers-addons"), + MARKETPLACE_RECORDING_ADDONS("marketplace-recording-addons"), + MARKETPLACE_VIRTUALAGENT_ADDONS("marketplace-virtualagent-addons"), + MARKETPLAY_PAY_ADDONS_SHUTTLE_PAY_CONNECTOR_1( + "marketplay-pay-addons-shuttle-pay-connector-1" + ), + MARKETPLAY_PAY_ADDONS_STRIPE_PAY_CONNECTOR( + "marketplay-pay-addons-stripe-pay-connector" + ), + MMS_INBOUND_LONGCODE_CANADA("mms-inbound-longcode-canada"), + MMS_INBOUND_LONGCODE_UNITEDSTATES("mms-inbound-longcode-unitedstates"), + MMS_OUTBOUND_LONGCODE_CANADA("mms-outbound-longcode-canada"), + MMS_OUTBOUND_LONGCODE_UNITEDSTATES( + "mms-outbound-longcode-unitedstates" + ), + MMS_OUTBOUND_TOLL_FREE("mms-outbound-toll-free"), + NOTIFY_CHATAPPSANDOTHERCHANNELS("notify-chatappsandotherchannels"), + NOTIFY_NOTIFYSERVICES("notify-notifyservices"), + NOTIFY_PUSHNOTIFICATIONS("notify-pushnotifications"), + PAYMENT_GATEWAY_CONNECTORS("payment-gateway-connectors"), + PAYMENT_SOLUTIONS("payment-solutions"), + PCHAT_BUCKET_ADJUSTMENT("pchat-bucket-adjustment"), + PHONENUMBERS_NUMBERS("phonenumbers-numbers"), + PROG_VOICE_CLIENT_ANDROID("prog-voice-client-android"), + PROG_VOICE_CLIENT_ANDROID_INBOUND("prog-voice-client-android-inbound"), + PROG_VOICE_CLIENT_ANDROID_OUTBOUND( + "prog-voice-client-android-outbound" + ), + PROG_VOICE_CLIENT_IOS("prog-voice-client-ios"), + PROG_VOICE_CLIENT_IOS_INBOUND("prog-voice-client-ios-inbound"), + PROG_VOICE_CLIENT_IOS_OUTBOUND("prog-voice-client-ios-outbound"), + PROG_VOICE_CLIENT_SDK("prog-voice-client-sdk"), + PROG_VOICE_CLIENT_WEB("prog-voice-client-web"), + PROG_VOICE_CLIENT_WEB_INBOUND("prog-voice-client-web-inbound"), + PROG_VOICE_CLIENT_WEB_OUTBOUND("prog-voice-client-web-outbound"), + PROGRAMMABLEVOICECONNECTIVITY_MEDIA_STREAMS( + "programmablevoiceconnectivity-media-streams" + ), + PSTNCONNECTIVITY_BYOC("pstnconnectivity-byoc"), + PSTNCONNECTIVITY_EMERGENCY("pstnconnectivity-emergency"), + PSTNCONNECTIVITY_MINUTES("pstnconnectivity-minutes"), + PSTNCONNECTIVITY_MINUTES_1("pstnconnectivity-minutes-1"), + PSTNCONNECTIVITY_MINUTESINBOUNDLOCAL( + "pstnconnectivity-minutesinboundlocal" + ), + PSTNCONNECTIVITY_MINUTESINBOUNDMOBILE( + "pstnconnectivity-minutesinboundmobile" + ), + PSTNCONNECTIVITY_MINUTESINBOUNDTOLLFREE( + "pstnconnectivity-minutesinboundtollfree" + ), + PSTNCONNECTIVITY_MINUTESINBOUNDTOLLFREELOCAL( + "pstnconnectivity-minutesinboundtollfreelocal" + ), + PSTNCONNECTIVITY_MINUTESINBOUNDTOLLFREEMOBILE( + "pstnconnectivity-minutesinboundtollfreemobile" + ), + PV_ROOM_HOURS("pv-room-hours"), + PV_ROOM_SIMULTANEOUS_PARTICIPANT_CONNECTIONS( + "pv-room-simultaneous-participant-connections" + ), + PVIDEO_ROOM_HOURS_AU1("pvideo-room-hours-au1"), + PVIDEO_ROOM_HOURS_BR1("pvideo-room-hours-br1"), + PVIDEO_ROOM_HOURS_IE1("pvideo-room-hours-ie1"), + PVIDEO_ROOM_HOURS_JP1("pvideo-room-hours-jp1"), + PVIDEO_ROOM_HOURS_SG1("pvideo-room-hours-sg1"), + PVIDEO_ROOM_HOURS_US1("pvideo-room-hours-us1"), + PVIDEO_ROOM_HOURS_US2("pvideo-room-hours-us2"), + RECORDINGS_ENCRYPTED("recordings-encrypted"), + SHORT_CODE_SETUP_FEES("short-code-setup-fees"), + SHORTCODES_MESSAGES_INBOUND("shortcodes-messages-inbound"), + SHORTCODES_MESSAGES_OUTBOUND("shortcodes-messages-outbound"), + SMS_MESSAGES_REGISTRATIONFEES("sms-messages-registrationfees"), + SMS_MMS_PENALTY_FEES("sms-mms-penalty-fees"), + SMS_MMS_PENALTY_FEES_1("sms-mms-penalty-fees-1"), + SMS_PUMPING_PROTECTION_NON_USCA("sms-pumping-protection-non-usca"), + SMS_PUMPING_PROTECTION_USCA("sms-pumping-protection-usca"), + STUDIO("studio"), + STUDIO_MONTHLY_FEES("studio-monthly-fees"), + SUPERSIM("supersim"), + TASK_ROUTER("task-router"), + TASK_ROUTER_WORKERS("task-router-workers"), + TEST_QUOTA_BUCKETS("test-quota-buckets"), + TEST_UC_SCRIPT_1("test-uc-script-1"), + TEST_UC_SCRIPT_DEMO_2("test-uc-script-demo-2"), + TEXT_TO_SPEECH("text-to-speech"), + TME("tme"), + TTS_BASIC("tts-basic"), + TWILIO_EDITIONS("twilio-editions"), + TWILIO_INTERCONNECT_CALIFORNIA("twilio-interconnect-california"), + TWILIO_INTERCONNECT_CALIFORNIA_MONTHLY( + "twilio-interconnect-california-monthly" + ), + TWILIO_INTERCONNECT_CALIFORNIA_SETUP( + "twilio-interconnect-california-setup" + ), + TWILIO_INTERCONNECT_FRANKFURT("twilio-interconnect-frankfurt"), + TWILIO_INTERCONNECT_FRANKFURT_MO("twilio-interconnect-frankfurt-mo"), + TWILIO_INTERCONNECT_FRANKFURT_SETUP( + "twilio-interconnect-frankfurt-setup" + ), + TWILIO_INTERCONNECT_LONDON("twilio-interconnect-london"), + TWILIO_INTERCONNECT_LONDON_MO("twilio-interconnect-london-mo"), + TWILIO_INTERCONNECT_LONDON_SETUP("twilio-interconnect-london-setup"), + TWILIO_INTERCONNECT_SAO_PAULO("twilio-interconnect-sao-paulo"), + TWILIO_INTERCONNECT_SAO_PAULO_MONTHLY( + "twilio-interconnect-sao-paulo-monthly" + ), + TWILIO_INTERCONNECT_SAO_PAULO_SETUP( + "twilio-interconnect-sao-paulo-setup" + ), + TWILIO_INTERCONNECT_SINGAPORE("twilio-interconnect-singapore"), + TWILIO_INTERCONNECT_SINGAPORE_MO("twilio-interconnect-singapore-mo"), + TWILIO_INTERCONNECT_SINGAPORE_SETUP( + "twilio-interconnect-singapore-setup" + ), + TWILIO_INTERCONNECT_SYDNEY("twilio-interconnect-sydney"), + TWILIO_INTERCONNECT_SYDNEY_MO("twilio-interconnect-sydney-mo"), + TWILIO_INTERCONNECT_SYDNEY_SETUP("twilio-interconnect-sydney-setup"), + TWILIO_INTERCONNECT_TOKYO("twilio-interconnect-tokyo"), + TWILIO_INTERCONNECT_TOKYO_MO("twilio-interconnect-tokyo-mo"), + TWILIO_INTERCONNECT_TOKYO_SETUP("twilio-interconnect-tokyo-setup"), + TWILIO_INTERCONNECT_VA("twilio-interconnect-va"), + TWILIO_INTERCONNECT_VA_MO("twilio-interconnect-va-mo"), + TWILIO_INTERCONNECT_VA_SETUP("twilio-interconnect-va-setup"), + TWIML_VERBS("twiml-verbs"), + TWIML_VERBS_SAY("twiml-verbs-say"), + USAGE_PROGRAMMABLE_MESSAGING_ENGAGEMENT_SUITE( + "usage-programmable-messaging-engagement-suite" + ), + USAGE_PROGRAMMABLE_MESSAGING_FEES_SERVICES( + "usage-programmable-messaging-fees-services" + ), + VERIFY_OUTBOUND_EMAIL("verify-outbound-email"), + VERIFY_PACKAGED_PLANS("verify-packaged-plans"), + VERIFY_SILENT_NETWORK_AUTH("verify-silent-network-auth"), + VERIFY_VOICE_AND_SMS("verify-voice-and-sms"), + VOICE_INSIGHTS_CLIENT_INSIGHTS_MONTHY_COMMIT( + "voice-insights-client-insights-monthy-commit" + ), + WIRELESS_DATA_PAYG_ASIA_AFG("wireless-data-payg-asia-afg"), + WIRELESS_MULTI_IMSI_SIM_COMMANDS("wireless-multi-imsi-sim-commands"), + WIRELESS_MULTI_IMSI_SIM_COMMANDS_USA( + "wireless-multi-imsi-sim-commands-usa" + ), + WIRELESS_MULTI_IMSI_SIM_DATA("wireless-multi-imsi-sim-data"), + WIRELESS_MULTI_IMSI_SIM_DATA_EU28("wireless-multi-imsi-sim-data-eu28"), + WIRELESS_MULTI_IMSI_SIM_DATA_USA("wireless-multi-imsi-sim-data-usa"), + WIRELESS_MULTI_IMSI_SIM_MONTHLY_FEES( + "wireless-multi-imsi-sim-monthly-fees" + ), + WIRELESS_MULTI_IMSI_SIM_USAGE("wireless-multi-imsi-sim-usage"), + WIRELESS_SUPER_SIM_DATA_NORTH_AMERICA( + "wireless-super-sim-data-north-america" + ), + WIRELESS_SUPER_SIM_USAGE("wireless-super-sim-usage"); + + private final String value; + + private Category(final String value) { + this.value = value; + } + + public String toString() { + return value; + } + + @JsonCreator + public static Category forValue(final String value) { + return Promoter.enumFromString(value, Category.values()); + } + } + /** * Converts a JSON String into a Yesterday object using the provided ObjectMapper. * @@ -116,7 +1042,7 @@ public static String toJson(Object object, ObjectMapper mapper) { private final String asOf; @Getter - private final String category; + private final Yesterday.Category category; @Getter private final String count; @@ -156,7 +1082,7 @@ private Yesterday( @JsonProperty("account_sid") final String accountSid, @JsonProperty("api_version") final String apiVersion, @JsonProperty("as_of") final String asOf, - @JsonProperty("category") final String category, + @JsonProperty("category") final Yesterday.Category category, @JsonProperty("count") final String count, @JsonProperty("count_unit") final String countUnit, @JsonProperty("description") final String description, diff --git a/src/main/java/com/twilio/rest/api/v2010/account/usage/record/YesterdayReader.java b/src/main/java/com/twilio/rest/api/v2010/account/usage/record/YesterdayReader.java index 637a5679bc..e6bcca9529 100644 --- a/src/main/java/com/twilio/rest/api/v2010/account/usage/record/YesterdayReader.java +++ b/src/main/java/com/twilio/rest/api/v2010/account/usage/record/YesterdayReader.java @@ -33,7 +33,7 @@ public class YesterdayReader extends Reader { private String pathAccountSid; - private String category; + private Yesterday.Category category; private LocalDate startDate; private LocalDate endDate; private Boolean includeSubaccounts; @@ -45,7 +45,7 @@ public YesterdayReader(final String pathAccountSid) { this.pathAccountSid = pathAccountSid; } - public YesterdayReader setCategory(final String category) { + public YesterdayReader setCategory(final Yesterday.Category category) { this.category = category; return this; } diff --git a/src/main/java/com/twilio/rest/assistants/v1/AssistantDeleter.java b/src/main/java/com/twilio/rest/assistants/v1/AssistantDeleter.java index 31559d504e..a350e4008f 100644 --- a/src/main/java/com/twilio/rest/assistants/v1/AssistantDeleter.java +++ b/src/main/java/com/twilio/rest/assistants/v1/AssistantDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class AssistantDeleter extends Deleter { @@ -39,6 +40,8 @@ public boolean delete(final TwilioRestClient client) { path = path.replace("{" + "id" + "}", this.pathId.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.ASSISTANTS.toString(), @@ -64,6 +67,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/assistants/v1/KnowledgeDeleter.java b/src/main/java/com/twilio/rest/assistants/v1/KnowledgeDeleter.java index 80fbd1639c..4ee2af44ec 100644 --- a/src/main/java/com/twilio/rest/assistants/v1/KnowledgeDeleter.java +++ b/src/main/java/com/twilio/rest/assistants/v1/KnowledgeDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class KnowledgeDeleter extends Deleter { @@ -39,6 +40,8 @@ public boolean delete(final TwilioRestClient client) { path = path.replace("{" + "id" + "}", this.pathId.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.ASSISTANTS.toString(), @@ -64,6 +67,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/assistants/v1/ToolDeleter.java b/src/main/java/com/twilio/rest/assistants/v1/ToolDeleter.java index 8e1877494a..449c69cf07 100644 --- a/src/main/java/com/twilio/rest/assistants/v1/ToolDeleter.java +++ b/src/main/java/com/twilio/rest/assistants/v1/ToolDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class ToolDeleter extends Deleter { @@ -39,6 +40,8 @@ public boolean delete(final TwilioRestClient client) { path = path.replace("{" + "id" + "}", this.pathId.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.ASSISTANTS.toString(), @@ -64,6 +67,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/assistants/v1/assistant/AssistantsKnowledgeDeleter.java b/src/main/java/com/twilio/rest/assistants/v1/assistant/AssistantsKnowledgeDeleter.java index 5919a4faed..efa867dcf1 100644 --- a/src/main/java/com/twilio/rest/assistants/v1/assistant/AssistantsKnowledgeDeleter.java +++ b/src/main/java/com/twilio/rest/assistants/v1/assistant/AssistantsKnowledgeDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class AssistantsKnowledgeDeleter extends Deleter { @@ -49,6 +50,8 @@ public boolean delete(final TwilioRestClient client) { ); path = path.replace("{" + "id" + "}", this.pathId.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.ASSISTANTS.toString(), @@ -74,6 +77,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/assistants/v1/assistant/AssistantsToolDeleter.java b/src/main/java/com/twilio/rest/assistants/v1/assistant/AssistantsToolDeleter.java index 0167cf1677..1b452e2a4a 100644 --- a/src/main/java/com/twilio/rest/assistants/v1/assistant/AssistantsToolDeleter.java +++ b/src/main/java/com/twilio/rest/assistants/v1/assistant/AssistantsToolDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class AssistantsToolDeleter extends Deleter { @@ -49,6 +50,8 @@ public boolean delete(final TwilioRestClient client) { ); path = path.replace("{" + "id" + "}", this.pathId.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.ASSISTANTS.toString(), @@ -74,6 +77,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/bulkexports/v1/export/ExportCustomJob.java b/src/main/java/com/twilio/rest/bulkexports/v1/export/ExportCustomJob.java index 83e9ae5e90..62c169841b 100644 --- a/src/main/java/com/twilio/rest/bulkexports/v1/export/ExportCustomJob.java +++ b/src/main/java/com/twilio/rest/bulkexports/v1/export/ExportCustomJob.java @@ -30,7 +30,6 @@ import java.io.IOException; import java.io.IOException; import java.io.InputStream; -import java.util.List; import java.util.Objects; import lombok.Getter; import lombok.ToString; @@ -113,7 +112,7 @@ public static String toJson(Object object, ObjectMapper mapper) { } @Getter - private final List details; + private final Object details; @Getter private final String email; @@ -147,7 +146,7 @@ public static String toJson(Object object, ObjectMapper mapper) { @JsonCreator private ExportCustomJob( - @JsonProperty("details") final List details, + @JsonProperty("details") final Object details, @JsonProperty("email") final String email, @JsonProperty("end_day") final String endDay, @JsonProperty( diff --git a/src/main/java/com/twilio/rest/bulkexports/v1/export/Job.java b/src/main/java/com/twilio/rest/bulkexports/v1/export/Job.java index c350129ec9..0415e4e8c6 100644 --- a/src/main/java/com/twilio/rest/bulkexports/v1/export/Job.java +++ b/src/main/java/com/twilio/rest/bulkexports/v1/export/Job.java @@ -31,7 +31,6 @@ import java.io.IOException; import java.io.InputStream; import java.net.URI; -import java.util.List; import java.util.Objects; import lombok.Getter; import lombok.ToString; @@ -104,7 +103,7 @@ public static String toJson(Object object, ObjectMapper mapper) { } @Getter - private final List details; + private final Object details; @Getter private final String email; @@ -141,7 +140,7 @@ public static String toJson(Object object, ObjectMapper mapper) { @JsonCreator private Job( - @JsonProperty("details") final List details, + @JsonProperty("details") final Object details, @JsonProperty("email") final String email, @JsonProperty("end_day") final String endDay, @JsonProperty( diff --git a/src/main/java/com/twilio/rest/bulkexports/v1/export/JobDeleter.java b/src/main/java/com/twilio/rest/bulkexports/v1/export/JobDeleter.java index 6f06eb3899..2dc0bc4117 100644 --- a/src/main/java/com/twilio/rest/bulkexports/v1/export/JobDeleter.java +++ b/src/main/java/com/twilio/rest/bulkexports/v1/export/JobDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class JobDeleter extends Deleter { @@ -39,6 +40,8 @@ public boolean delete(final TwilioRestClient client) { path = path.replace("{" + "JobSid" + "}", this.pathJobSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.BULKEXPORTS.toString(), @@ -64,6 +67,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/chat/v1/CredentialDeleter.java b/src/main/java/com/twilio/rest/chat/v1/CredentialDeleter.java index 87b179e507..ddd307f866 100644 --- a/src/main/java/com/twilio/rest/chat/v1/CredentialDeleter.java +++ b/src/main/java/com/twilio/rest/chat/v1/CredentialDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class CredentialDeleter extends Deleter { @@ -39,6 +40,8 @@ public boolean delete(final TwilioRestClient client) { path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.CHAT.toString(), @@ -64,6 +67,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/chat/v1/ServiceDeleter.java b/src/main/java/com/twilio/rest/chat/v1/ServiceDeleter.java index e9a2215064..b2159df2b3 100644 --- a/src/main/java/com/twilio/rest/chat/v1/ServiceDeleter.java +++ b/src/main/java/com/twilio/rest/chat/v1/ServiceDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class ServiceDeleter extends Deleter { @@ -39,6 +40,8 @@ public boolean delete(final TwilioRestClient client) { path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.CHAT.toString(), @@ -64,6 +67,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/chat/v1/service/ChannelDeleter.java b/src/main/java/com/twilio/rest/chat/v1/service/ChannelDeleter.java index a02dfe01f9..db936ee249 100644 --- a/src/main/java/com/twilio/rest/chat/v1/service/ChannelDeleter.java +++ b/src/main/java/com/twilio/rest/chat/v1/service/ChannelDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class ChannelDeleter extends Deleter { @@ -46,6 +47,8 @@ public boolean delete(final TwilioRestClient client) { ); path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.CHAT.toString(), @@ -71,6 +74,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/chat/v1/service/RoleDeleter.java b/src/main/java/com/twilio/rest/chat/v1/service/RoleDeleter.java index 93dead9296..00f7c3e7e2 100644 --- a/src/main/java/com/twilio/rest/chat/v1/service/RoleDeleter.java +++ b/src/main/java/com/twilio/rest/chat/v1/service/RoleDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class RoleDeleter extends Deleter { @@ -46,6 +47,8 @@ public boolean delete(final TwilioRestClient client) { ); path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.CHAT.toString(), @@ -71,6 +74,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/chat/v1/service/UserDeleter.java b/src/main/java/com/twilio/rest/chat/v1/service/UserDeleter.java index 8bfdfab404..c3c8368e95 100644 --- a/src/main/java/com/twilio/rest/chat/v1/service/UserDeleter.java +++ b/src/main/java/com/twilio/rest/chat/v1/service/UserDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class UserDeleter extends Deleter { @@ -46,6 +47,8 @@ public boolean delete(final TwilioRestClient client) { ); path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.CHAT.toString(), @@ -71,6 +74,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/chat/v1/service/channel/InviteDeleter.java b/src/main/java/com/twilio/rest/chat/v1/service/channel/InviteDeleter.java index e53681ddb3..350bf4d1b2 100644 --- a/src/main/java/com/twilio/rest/chat/v1/service/channel/InviteDeleter.java +++ b/src/main/java/com/twilio/rest/chat/v1/service/channel/InviteDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class InviteDeleter extends Deleter { @@ -58,6 +59,8 @@ public boolean delete(final TwilioRestClient client) { ); path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.CHAT.toString(), @@ -83,6 +86,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/chat/v1/service/channel/MemberDeleter.java b/src/main/java/com/twilio/rest/chat/v1/service/channel/MemberDeleter.java index b1872b45d3..5016af73aa 100644 --- a/src/main/java/com/twilio/rest/chat/v1/service/channel/MemberDeleter.java +++ b/src/main/java/com/twilio/rest/chat/v1/service/channel/MemberDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class MemberDeleter extends Deleter { @@ -58,6 +59,8 @@ public boolean delete(final TwilioRestClient client) { ); path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.CHAT.toString(), @@ -83,6 +86,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/chat/v1/service/channel/MessageDeleter.java b/src/main/java/com/twilio/rest/chat/v1/service/channel/MessageDeleter.java index 946420e45d..bca88feec6 100644 --- a/src/main/java/com/twilio/rest/chat/v1/service/channel/MessageDeleter.java +++ b/src/main/java/com/twilio/rest/chat/v1/service/channel/MessageDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class MessageDeleter extends Deleter { @@ -58,6 +59,8 @@ public boolean delete(final TwilioRestClient client) { ); path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.CHAT.toString(), @@ -83,6 +86,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/chat/v2/CredentialDeleter.java b/src/main/java/com/twilio/rest/chat/v2/CredentialDeleter.java index c0b67f8c9f..3f0c60f54e 100644 --- a/src/main/java/com/twilio/rest/chat/v2/CredentialDeleter.java +++ b/src/main/java/com/twilio/rest/chat/v2/CredentialDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class CredentialDeleter extends Deleter { @@ -39,6 +40,8 @@ public boolean delete(final TwilioRestClient client) { path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.CHAT.toString(), @@ -64,6 +67,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/chat/v2/ServiceDeleter.java b/src/main/java/com/twilio/rest/chat/v2/ServiceDeleter.java index 7638eb56f5..8ef20d30d7 100644 --- a/src/main/java/com/twilio/rest/chat/v2/ServiceDeleter.java +++ b/src/main/java/com/twilio/rest/chat/v2/ServiceDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class ServiceDeleter extends Deleter { @@ -39,6 +40,8 @@ public boolean delete(final TwilioRestClient client) { path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.CHAT.toString(), @@ -64,6 +67,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/chat/v2/service/BindingDeleter.java b/src/main/java/com/twilio/rest/chat/v2/service/BindingDeleter.java index 19754a28fd..6e467ef92e 100644 --- a/src/main/java/com/twilio/rest/chat/v2/service/BindingDeleter.java +++ b/src/main/java/com/twilio/rest/chat/v2/service/BindingDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class BindingDeleter extends Deleter { @@ -46,6 +47,8 @@ public boolean delete(final TwilioRestClient client) { ); path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.CHAT.toString(), @@ -71,6 +74,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/chat/v2/service/ChannelDeleter.java b/src/main/java/com/twilio/rest/chat/v2/service/ChannelDeleter.java index 2e527f7033..ca65d7ea0e 100644 --- a/src/main/java/com/twilio/rest/chat/v2/service/ChannelDeleter.java +++ b/src/main/java/com/twilio/rest/chat/v2/service/ChannelDeleter.java @@ -26,6 +26,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class ChannelDeleter extends Deleter { @@ -56,6 +57,8 @@ public boolean delete(final TwilioRestClient client) { ); path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.CHAT.toString(), @@ -82,7 +85,7 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } private void addHeaderParams(final Request request) { diff --git a/src/main/java/com/twilio/rest/chat/v2/service/RoleDeleter.java b/src/main/java/com/twilio/rest/chat/v2/service/RoleDeleter.java index 689a575dab..93231a850c 100644 --- a/src/main/java/com/twilio/rest/chat/v2/service/RoleDeleter.java +++ b/src/main/java/com/twilio/rest/chat/v2/service/RoleDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class RoleDeleter extends Deleter { @@ -46,6 +47,8 @@ public boolean delete(final TwilioRestClient client) { ); path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.CHAT.toString(), @@ -71,6 +74,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/chat/v2/service/UserDeleter.java b/src/main/java/com/twilio/rest/chat/v2/service/UserDeleter.java index 626f2ba7a2..3e3ccd4d03 100644 --- a/src/main/java/com/twilio/rest/chat/v2/service/UserDeleter.java +++ b/src/main/java/com/twilio/rest/chat/v2/service/UserDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class UserDeleter extends Deleter { @@ -46,6 +47,8 @@ public boolean delete(final TwilioRestClient client) { ); path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.CHAT.toString(), @@ -71,6 +74,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/chat/v2/service/channel/InviteDeleter.java b/src/main/java/com/twilio/rest/chat/v2/service/channel/InviteDeleter.java index e484b8c4c9..f14999b0ec 100644 --- a/src/main/java/com/twilio/rest/chat/v2/service/channel/InviteDeleter.java +++ b/src/main/java/com/twilio/rest/chat/v2/service/channel/InviteDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class InviteDeleter extends Deleter { @@ -58,6 +59,8 @@ public boolean delete(final TwilioRestClient client) { ); path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.CHAT.toString(), @@ -83,6 +86,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/chat/v2/service/channel/MemberDeleter.java b/src/main/java/com/twilio/rest/chat/v2/service/channel/MemberDeleter.java index fe6a975521..62e0e55a9b 100644 --- a/src/main/java/com/twilio/rest/chat/v2/service/channel/MemberDeleter.java +++ b/src/main/java/com/twilio/rest/chat/v2/service/channel/MemberDeleter.java @@ -26,6 +26,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class MemberDeleter extends Deleter { @@ -68,6 +69,8 @@ public boolean delete(final TwilioRestClient client) { ); path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.CHAT.toString(), @@ -94,7 +97,7 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } private void addHeaderParams(final Request request) { diff --git a/src/main/java/com/twilio/rest/chat/v2/service/channel/MessageDeleter.java b/src/main/java/com/twilio/rest/chat/v2/service/channel/MessageDeleter.java index 8a37018b29..28cd209c81 100644 --- a/src/main/java/com/twilio/rest/chat/v2/service/channel/MessageDeleter.java +++ b/src/main/java/com/twilio/rest/chat/v2/service/channel/MessageDeleter.java @@ -26,6 +26,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class MessageDeleter extends Deleter { @@ -68,6 +69,8 @@ public boolean delete(final TwilioRestClient client) { ); path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.CHAT.toString(), @@ -94,7 +97,7 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } private void addHeaderParams(final Request request) { diff --git a/src/main/java/com/twilio/rest/chat/v2/service/channel/WebhookDeleter.java b/src/main/java/com/twilio/rest/chat/v2/service/channel/WebhookDeleter.java index 1ef5daf4bf..87a2e3b5c3 100644 --- a/src/main/java/com/twilio/rest/chat/v2/service/channel/WebhookDeleter.java +++ b/src/main/java/com/twilio/rest/chat/v2/service/channel/WebhookDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class WebhookDeleter extends Deleter { @@ -58,6 +59,8 @@ public boolean delete(final TwilioRestClient client) { ); path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.CHAT.toString(), @@ -83,6 +86,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/chat/v2/service/user/UserBindingDeleter.java b/src/main/java/com/twilio/rest/chat/v2/service/user/UserBindingDeleter.java index 428b083c3a..5ee0c65635 100644 --- a/src/main/java/com/twilio/rest/chat/v2/service/user/UserBindingDeleter.java +++ b/src/main/java/com/twilio/rest/chat/v2/service/user/UserBindingDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class UserBindingDeleter extends Deleter { @@ -54,6 +55,8 @@ public boolean delete(final TwilioRestClient client) { path = path.replace("{" + "UserSid" + "}", this.pathUserSid.toString()); path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.CHAT.toString(), @@ -79,6 +82,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/chat/v2/service/user/UserChannel.java b/src/main/java/com/twilio/rest/chat/v2/service/user/UserChannel.java index f0b4080a5c..6b2d7435b7 100644 --- a/src/main/java/com/twilio/rest/chat/v2/service/user/UserChannel.java +++ b/src/main/java/com/twilio/rest/chat/v2/service/user/UserChannel.java @@ -127,7 +127,7 @@ public static NotificationLevel forValue(final String value) { public enum ChannelStatus { JOINED("joined"), INVITED("invited"), - NOT_PARTICIPATING("notParticipating"); + NOT_PARTICIPATING("not_participating"); private final String value; diff --git a/src/main/java/com/twilio/rest/chat/v2/service/user/UserChannelDeleter.java b/src/main/java/com/twilio/rest/chat/v2/service/user/UserChannelDeleter.java index 1c9b135b5c..9553eb0c82 100644 --- a/src/main/java/com/twilio/rest/chat/v2/service/user/UserChannelDeleter.java +++ b/src/main/java/com/twilio/rest/chat/v2/service/user/UserChannelDeleter.java @@ -26,6 +26,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class UserChannelDeleter extends Deleter { @@ -68,6 +69,8 @@ public boolean delete(final TwilioRestClient client) { this.pathChannelSid.toString() ); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.CHAT.toString(), @@ -94,7 +97,7 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } private void addHeaderParams(final Request request) { diff --git a/src/main/java/com/twilio/rest/content/v1/Content.java b/src/main/java/com/twilio/rest/content/v1/Content.java index 89636b3e69..5a02f4df9b 100644 --- a/src/main/java/com/twilio/rest/content/v1/Content.java +++ b/src/main/java/com/twilio/rest/content/v1/Content.java @@ -154,28 +154,6 @@ public static QuickReplyActionType forValue(final String value) { } } - public enum WebviewSizeType { - TALL("TALL"), - FULL("FULL"), - HALF("HALF"), - NONE("NONE"); - - private final String value; - - private WebviewSizeType(final String value) { - this.value = value; - } - - public String toString() { - return value; - } - - @JsonCreator - public static WebviewSizeType forValue(final String value) { - return Promoter.enumFromString(value, WebviewSizeType.values()); - } - } - public enum CallToActionActionType { URL("URL"), PHONE_NUMBER("PHONE_NUMBER"), @@ -403,11 +381,6 @@ public static class Types { @Getter private final WhatsappAuthentication whatsappAuthentication; - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("whatsapp/flows") - @Getter - private final WhatsappFlows whatsappFlows; - private Types(Builder builder) { this.twilioText = builder.twilioText; this.twilioMedia = builder.twilioMedia; @@ -422,7 +395,6 @@ private Types(Builder builder) { this.twilioSchedule = builder.twilioSchedule; this.whatsappCard = builder.whatsappCard; this.whatsappAuthentication = builder.whatsappAuthentication; - this.whatsappFlows = builder.whatsappFlows; } public static Builder builder() { @@ -476,9 +448,6 @@ public static class Builder { @JsonProperty("whatsapp/authentication") private WhatsappAuthentication whatsappAuthentication; - @JsonProperty("whatsapp/flows") - private WhatsappFlows whatsappFlows; - @JsonInclude(JsonInclude.Include.NON_EMPTY) @JsonProperty("twilio/text") public Builder twilioText(TwilioText twilioText) { @@ -574,13 +543,6 @@ public Builder whatsappAuthentication( return this; } - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("whatsapp/flows") - public Builder whatsappFlows(WhatsappFlows whatsappFlows) { - this.whatsappFlows = whatsappFlows; - return this; - } - public Types build() { return new Types(this); } @@ -613,8 +575,7 @@ public boolean equals(final Object o) { Objects.equals( whatsappAuthentication, other.whatsappAuthentication - ) && - Objects.equals(whatsappFlows, other.whatsappFlows) + ) ); } @@ -633,8 +594,7 @@ public int hashCode() { twilioFlows, twilioSchedule, whatsappCard, - whatsappAuthentication, - whatsappFlows + whatsappAuthentication ); } } @@ -2024,198 +1984,6 @@ public int hashCode() { } } - @JsonDeserialize(builder = WhatsappFlows.Builder.class) - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @ToString - public static class WhatsappFlows { - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("body") - @Getter - private final String body; - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("button_text") - @Getter - private final String buttonText; - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("subtitle") - @Getter - private final String subtitle; - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("media_url") - @Getter - private final String mediaUrl; - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("flow_id") - @Getter - private final String flowId; - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("flow_token") - @Getter - private final String flowToken; - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("flow_first_page_id") - @Getter - private final String flowFirstPageId; - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("is_flow_first_page_endpoint") - @Getter - private final Boolean isFlowFirstPageEndpoint; - - private WhatsappFlows(Builder builder) { - this.body = builder.body; - this.buttonText = builder.buttonText; - this.subtitle = builder.subtitle; - this.mediaUrl = builder.mediaUrl; - this.flowId = builder.flowId; - this.flowToken = builder.flowToken; - this.flowFirstPageId = builder.flowFirstPageId; - this.isFlowFirstPageEndpoint = builder.isFlowFirstPageEndpoint; - } - - public static Builder builder( - final String body, - final String buttonText, - final String flowId - ) { - return new Builder(body, buttonText, flowId); - } - - public static WhatsappFlows fromJson( - String jsonString, - ObjectMapper mapper - ) throws IOException { - return mapper.readValue(jsonString, WhatsappFlows.class); - } - - @JsonPOJOBuilder(withPrefix = "") - public static class Builder { - - @JsonProperty("body") - private String body; - - @JsonProperty("button_text") - private String buttonText; - - @JsonProperty("subtitle") - private String subtitle; - - @JsonProperty("media_url") - private String mediaUrl; - - @JsonProperty("flow_id") - private String flowId; - - @JsonProperty("flow_token") - private String flowToken; - - @JsonProperty("flow_first_page_id") - private String flowFirstPageId; - - @JsonProperty("is_flow_first_page_endpoint") - private Boolean isFlowFirstPageEndpoint; - - @JsonCreator - public Builder( - @JsonProperty("body") final String body, - @JsonProperty("button_text") final String buttonText, - @JsonProperty("flow_id") final String flowId - ) { - this.body = body; - this.buttonText = buttonText; - this.flowId = flowId; - } - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("subtitle") - public Builder subtitle(String subtitle) { - this.subtitle = subtitle; - return this; - } - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("media_url") - public Builder mediaUrl(String mediaUrl) { - this.mediaUrl = mediaUrl; - return this; - } - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("flow_token") - public Builder flowToken(String flowToken) { - this.flowToken = flowToken; - return this; - } - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("flow_first_page_id") - public Builder flowFirstPageId(String flowFirstPageId) { - this.flowFirstPageId = flowFirstPageId; - return this; - } - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("is_flow_first_page_endpoint") - public Builder isFlowFirstPageEndpoint( - Boolean isFlowFirstPageEndpoint - ) { - this.isFlowFirstPageEndpoint = isFlowFirstPageEndpoint; - return this; - } - - public WhatsappFlows build() { - return new WhatsappFlows(this); - } - } - - @Override - public boolean equals(final Object o) { - if (this == o) { - return true; - } - - if (o == null || getClass() != o.getClass()) { - return false; - } - - WhatsappFlows other = (WhatsappFlows) o; - return ( - Objects.equals(body, other.body) && - Objects.equals(buttonText, other.buttonText) && - Objects.equals(subtitle, other.subtitle) && - Objects.equals(mediaUrl, other.mediaUrl) && - Objects.equals(flowId, other.flowId) && - Objects.equals(flowToken, other.flowToken) && - Objects.equals(flowFirstPageId, other.flowFirstPageId) && - Objects.equals( - isFlowFirstPageEndpoint, - other.isFlowFirstPageEndpoint - ) - ); - } - - @Override - public int hashCode() { - return Objects.hash( - body, - buttonText, - subtitle, - mediaUrl, - flowId, - flowToken, - flowFirstPageId, - isFlowFirstPageEndpoint - ); - } - } - @JsonDeserialize(builder = TwilioListPicker.Builder.class) @JsonInclude(JsonInclude.Include.NON_EMPTY) @ToString @@ -2883,11 +2651,6 @@ public static class CardAction { @Getter private final String code; - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("webview_size") - @Getter - private final Content.WebviewSizeType webviewSize; - private CardAction(Builder builder) { this.type = builder.type; this.title = builder.title; @@ -2895,7 +2658,6 @@ private CardAction(Builder builder) { this.phone = builder.phone; this.id = builder.id; this.code = builder.code; - this.webviewSize = builder.webviewSize; } public static Builder builder( @@ -2933,9 +2695,6 @@ public static class Builder { @JsonProperty("code") private String code; - @JsonProperty("webview_size") - private Content.WebviewSizeType webviewSize; - @JsonCreator public Builder( @JsonProperty("type") final Content.CardActionType type, @@ -2973,13 +2732,6 @@ public Builder code(String code) { return this; } - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("webview_size") - public Builder webviewSize(Content.WebviewSizeType webviewSize) { - this.webviewSize = webviewSize; - return this; - } - public CardAction build() { return new CardAction(this); } @@ -3002,14 +2754,13 @@ public boolean equals(final Object o) { Objects.equals(url, other.url) && Objects.equals(phone, other.phone) && Objects.equals(id, other.id) && - Objects.equals(code, other.code) && - Objects.equals(webviewSize, other.webviewSize) + Objects.equals(code, other.code) ); } @Override public int hashCode() { - return Objects.hash(type, title, url, phone, id, code, webviewSize); + return Objects.hash(type, title, url, phone, id, code); } } diff --git a/src/main/java/com/twilio/rest/content/v1/ContentDeleter.java b/src/main/java/com/twilio/rest/content/v1/ContentDeleter.java index 2c2acc406a..79c6d57688 100644 --- a/src/main/java/com/twilio/rest/content/v1/ContentDeleter.java +++ b/src/main/java/com/twilio/rest/content/v1/ContentDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class ContentDeleter extends Deleter { @@ -39,6 +40,8 @@ public boolean delete(final TwilioRestClient client) { path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.CONTENT.toString(), @@ -64,6 +67,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/conversations/v1/AddressConfiguration.java b/src/main/java/com/twilio/rest/conversations/v1/AddressConfiguration.java index 7a9fddfbdc..7c91e42542 100644 --- a/src/main/java/com/twilio/rest/conversations/v1/AddressConfiguration.java +++ b/src/main/java/com/twilio/rest/conversations/v1/AddressConfiguration.java @@ -92,8 +92,8 @@ public static Type forValue(final String value) { } public enum Method { - GET("get"), - POST("post"); + GET("GET"), + POST("POST"); private final String value; diff --git a/src/main/java/com/twilio/rest/conversations/v1/AddressConfigurationDeleter.java b/src/main/java/com/twilio/rest/conversations/v1/AddressConfigurationDeleter.java index 5b2618f7c8..5d4c1c1bac 100644 --- a/src/main/java/com/twilio/rest/conversations/v1/AddressConfigurationDeleter.java +++ b/src/main/java/com/twilio/rest/conversations/v1/AddressConfigurationDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class AddressConfigurationDeleter extends Deleter { @@ -39,6 +40,8 @@ public boolean delete(final TwilioRestClient client) { path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.CONVERSATIONS.toString(), @@ -64,6 +67,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/conversations/v1/Conversation.java b/src/main/java/com/twilio/rest/conversations/v1/Conversation.java index f0f30f6ea7..d188da2628 100644 --- a/src/main/java/com/twilio/rest/conversations/v1/Conversation.java +++ b/src/main/java/com/twilio/rest/conversations/v1/Conversation.java @@ -84,7 +84,6 @@ public static WebhookEnabledType forValue(final String value) { } public enum State { - INITIALIZING("initializing"), INACTIVE("inactive"), ACTIVE("active"), CLOSED("closed"); diff --git a/src/main/java/com/twilio/rest/conversations/v1/ConversationDeleter.java b/src/main/java/com/twilio/rest/conversations/v1/ConversationDeleter.java index fb9f1d1d9f..d4bdf36350 100644 --- a/src/main/java/com/twilio/rest/conversations/v1/ConversationDeleter.java +++ b/src/main/java/com/twilio/rest/conversations/v1/ConversationDeleter.java @@ -26,6 +26,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class ConversationDeleter extends Deleter { @@ -49,6 +50,8 @@ public boolean delete(final TwilioRestClient client) { path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.CONVERSATIONS.toString(), @@ -75,7 +78,7 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } private void addHeaderParams(final Request request) { diff --git a/src/main/java/com/twilio/rest/conversations/v1/ConversationWithParticipants.java b/src/main/java/com/twilio/rest/conversations/v1/ConversationWithParticipants.java index 301441f52d..30080d6aa1 100644 --- a/src/main/java/com/twilio/rest/conversations/v1/ConversationWithParticipants.java +++ b/src/main/java/com/twilio/rest/conversations/v1/ConversationWithParticipants.java @@ -68,7 +68,6 @@ public static WebhookEnabledType forValue(final String value) { } public enum State { - INITIALIZING("initializing"), INACTIVE("inactive"), ACTIVE("active"), CLOSED("closed"); diff --git a/src/main/java/com/twilio/rest/conversations/v1/CredentialDeleter.java b/src/main/java/com/twilio/rest/conversations/v1/CredentialDeleter.java index 84edfb503d..eb03084aef 100644 --- a/src/main/java/com/twilio/rest/conversations/v1/CredentialDeleter.java +++ b/src/main/java/com/twilio/rest/conversations/v1/CredentialDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class CredentialDeleter extends Deleter { @@ -39,6 +40,8 @@ public boolean delete(final TwilioRestClient client) { path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.CONVERSATIONS.toString(), @@ -64,6 +67,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/conversations/v1/RoleDeleter.java b/src/main/java/com/twilio/rest/conversations/v1/RoleDeleter.java index ff91443518..03f45d72dc 100644 --- a/src/main/java/com/twilio/rest/conversations/v1/RoleDeleter.java +++ b/src/main/java/com/twilio/rest/conversations/v1/RoleDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class RoleDeleter extends Deleter { @@ -39,6 +40,8 @@ public boolean delete(final TwilioRestClient client) { path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.CONVERSATIONS.toString(), @@ -64,6 +67,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/conversations/v1/ServiceDeleter.java b/src/main/java/com/twilio/rest/conversations/v1/ServiceDeleter.java index f35e85df53..a3cf54c36f 100644 --- a/src/main/java/com/twilio/rest/conversations/v1/ServiceDeleter.java +++ b/src/main/java/com/twilio/rest/conversations/v1/ServiceDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class ServiceDeleter extends Deleter { @@ -39,6 +40,8 @@ public boolean delete(final TwilioRestClient client) { path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.CONVERSATIONS.toString(), @@ -64,6 +67,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/conversations/v1/UserDeleter.java b/src/main/java/com/twilio/rest/conversations/v1/UserDeleter.java index f5f690f508..1325145261 100644 --- a/src/main/java/com/twilio/rest/conversations/v1/UserDeleter.java +++ b/src/main/java/com/twilio/rest/conversations/v1/UserDeleter.java @@ -26,6 +26,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class UserDeleter extends Deleter { @@ -49,6 +50,8 @@ public boolean delete(final TwilioRestClient client) { path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.CONVERSATIONS.toString(), @@ -75,7 +78,7 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } private void addHeaderParams(final Request request) { diff --git a/src/main/java/com/twilio/rest/conversations/v1/conversation/MessageDeleter.java b/src/main/java/com/twilio/rest/conversations/v1/conversation/MessageDeleter.java index 937b8ede38..5537c70f42 100644 --- a/src/main/java/com/twilio/rest/conversations/v1/conversation/MessageDeleter.java +++ b/src/main/java/com/twilio/rest/conversations/v1/conversation/MessageDeleter.java @@ -26,6 +26,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class MessageDeleter extends Deleter { @@ -59,6 +60,8 @@ public boolean delete(final TwilioRestClient client) { ); path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.CONVERSATIONS.toString(), @@ -85,7 +88,7 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } private void addHeaderParams(final Request request) { diff --git a/src/main/java/com/twilio/rest/conversations/v1/conversation/ParticipantDeleter.java b/src/main/java/com/twilio/rest/conversations/v1/conversation/ParticipantDeleter.java index 000373dbe6..c7a1246e33 100644 --- a/src/main/java/com/twilio/rest/conversations/v1/conversation/ParticipantDeleter.java +++ b/src/main/java/com/twilio/rest/conversations/v1/conversation/ParticipantDeleter.java @@ -26,6 +26,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class ParticipantDeleter extends Deleter { @@ -59,6 +60,8 @@ public boolean delete(final TwilioRestClient client) { ); path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.CONVERSATIONS.toString(), @@ -85,7 +88,7 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } private void addHeaderParams(final Request request) { diff --git a/src/main/java/com/twilio/rest/conversations/v1/conversation/Webhook.java b/src/main/java/com/twilio/rest/conversations/v1/conversation/Webhook.java index a41f4a50d6..0fc9600f1e 100644 --- a/src/main/java/com/twilio/rest/conversations/v1/conversation/Webhook.java +++ b/src/main/java/com/twilio/rest/conversations/v1/conversation/Webhook.java @@ -96,8 +96,8 @@ public static Target forValue(final String value) { } public enum Method { - GET("get"), - POST("post"); + GET("GET"), + POST("POST"); private final String value; diff --git a/src/main/java/com/twilio/rest/conversations/v1/conversation/WebhookDeleter.java b/src/main/java/com/twilio/rest/conversations/v1/conversation/WebhookDeleter.java index d851b9c263..bd4da06b9b 100644 --- a/src/main/java/com/twilio/rest/conversations/v1/conversation/WebhookDeleter.java +++ b/src/main/java/com/twilio/rest/conversations/v1/conversation/WebhookDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class WebhookDeleter extends Deleter { @@ -49,6 +50,8 @@ public boolean delete(final TwilioRestClient client) { ); path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.CONVERSATIONS.toString(), @@ -74,6 +77,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/conversations/v1/service/Binding.java b/src/main/java/com/twilio/rest/conversations/v1/service/Binding.java index 54bc4b34ee..2ecc13f77c 100644 --- a/src/main/java/com/twilio/rest/conversations/v1/service/Binding.java +++ b/src/main/java/com/twilio/rest/conversations/v1/service/Binding.java @@ -64,8 +64,7 @@ public static BindingReader reader(final String pathChatServiceSid) { public enum BindingType { APN("apn"), GCM("gcm"), - FCM("fcm"), - TWILSOCK("twilsock"); + FCM("fcm"); private final String value; diff --git a/src/main/java/com/twilio/rest/conversations/v1/service/BindingDeleter.java b/src/main/java/com/twilio/rest/conversations/v1/service/BindingDeleter.java index 4ce4a2f11d..56d2c2373e 100644 --- a/src/main/java/com/twilio/rest/conversations/v1/service/BindingDeleter.java +++ b/src/main/java/com/twilio/rest/conversations/v1/service/BindingDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class BindingDeleter extends Deleter { @@ -49,6 +50,8 @@ public boolean delete(final TwilioRestClient client) { ); path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.CONVERSATIONS.toString(), @@ -74,6 +77,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/conversations/v1/service/Conversation.java b/src/main/java/com/twilio/rest/conversations/v1/service/Conversation.java index 94cd61608c..04d324bb24 100644 --- a/src/main/java/com/twilio/rest/conversations/v1/service/Conversation.java +++ b/src/main/java/com/twilio/rest/conversations/v1/service/Conversation.java @@ -95,8 +95,7 @@ public static WebhookEnabledType forValue(final String value) { public enum State { INACTIVE("inactive"), ACTIVE("active"), - CLOSED("closed"), - INITIALIZING("initializing"); + CLOSED("closed"); private final String value; diff --git a/src/main/java/com/twilio/rest/conversations/v1/service/ConversationDeleter.java b/src/main/java/com/twilio/rest/conversations/v1/service/ConversationDeleter.java index a21601d632..c3f4e13c3f 100644 --- a/src/main/java/com/twilio/rest/conversations/v1/service/ConversationDeleter.java +++ b/src/main/java/com/twilio/rest/conversations/v1/service/ConversationDeleter.java @@ -26,6 +26,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class ConversationDeleter extends Deleter { @@ -59,6 +60,8 @@ public boolean delete(final TwilioRestClient client) { ); path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.CONVERSATIONS.toString(), @@ -85,7 +88,7 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } private void addHeaderParams(final Request request) { diff --git a/src/main/java/com/twilio/rest/conversations/v1/service/ConversationWithParticipants.java b/src/main/java/com/twilio/rest/conversations/v1/service/ConversationWithParticipants.java index d1977e9f09..aebd82530a 100644 --- a/src/main/java/com/twilio/rest/conversations/v1/service/ConversationWithParticipants.java +++ b/src/main/java/com/twilio/rest/conversations/v1/service/ConversationWithParticipants.java @@ -70,7 +70,6 @@ public static WebhookEnabledType forValue(final String value) { } public enum State { - INITIALIZING("initializing"), INACTIVE("inactive"), ACTIVE("active"), CLOSED("closed"); diff --git a/src/main/java/com/twilio/rest/conversations/v1/service/RoleDeleter.java b/src/main/java/com/twilio/rest/conversations/v1/service/RoleDeleter.java index a109764689..1bcfaf4b1d 100644 --- a/src/main/java/com/twilio/rest/conversations/v1/service/RoleDeleter.java +++ b/src/main/java/com/twilio/rest/conversations/v1/service/RoleDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class RoleDeleter extends Deleter { @@ -46,6 +47,8 @@ public boolean delete(final TwilioRestClient client) { ); path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.CONVERSATIONS.toString(), @@ -71,6 +74,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/conversations/v1/service/UserDeleter.java b/src/main/java/com/twilio/rest/conversations/v1/service/UserDeleter.java index 6c20b96d03..c9f6166471 100644 --- a/src/main/java/com/twilio/rest/conversations/v1/service/UserDeleter.java +++ b/src/main/java/com/twilio/rest/conversations/v1/service/UserDeleter.java @@ -26,6 +26,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class UserDeleter extends Deleter { @@ -56,6 +57,8 @@ public boolean delete(final TwilioRestClient client) { ); path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.CONVERSATIONS.toString(), @@ -82,7 +85,7 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } private void addHeaderParams(final Request request) { diff --git a/src/main/java/com/twilio/rest/conversations/v1/service/conversation/MessageDeleter.java b/src/main/java/com/twilio/rest/conversations/v1/service/conversation/MessageDeleter.java index 1650125e53..a49735ca74 100644 --- a/src/main/java/com/twilio/rest/conversations/v1/service/conversation/MessageDeleter.java +++ b/src/main/java/com/twilio/rest/conversations/v1/service/conversation/MessageDeleter.java @@ -26,6 +26,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class MessageDeleter extends Deleter { @@ -68,6 +69,8 @@ public boolean delete(final TwilioRestClient client) { ); path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.CONVERSATIONS.toString(), @@ -94,7 +97,7 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } private void addHeaderParams(final Request request) { diff --git a/src/main/java/com/twilio/rest/conversations/v1/service/conversation/ParticipantDeleter.java b/src/main/java/com/twilio/rest/conversations/v1/service/conversation/ParticipantDeleter.java index 8ed6e1aa73..b558a0b05e 100644 --- a/src/main/java/com/twilio/rest/conversations/v1/service/conversation/ParticipantDeleter.java +++ b/src/main/java/com/twilio/rest/conversations/v1/service/conversation/ParticipantDeleter.java @@ -26,6 +26,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class ParticipantDeleter extends Deleter { @@ -68,6 +69,8 @@ public boolean delete(final TwilioRestClient client) { ); path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.CONVERSATIONS.toString(), @@ -94,7 +97,7 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } private void addHeaderParams(final Request request) { diff --git a/src/main/java/com/twilio/rest/conversations/v1/service/conversation/Webhook.java b/src/main/java/com/twilio/rest/conversations/v1/service/conversation/Webhook.java index adefd55e94..08747b83c6 100644 --- a/src/main/java/com/twilio/rest/conversations/v1/service/conversation/Webhook.java +++ b/src/main/java/com/twilio/rest/conversations/v1/service/conversation/Webhook.java @@ -119,8 +119,8 @@ public static Target forValue(final String value) { } public enum Method { - GET("get"), - POST("post"); + GET("GET"), + POST("POST"); private final String value; diff --git a/src/main/java/com/twilio/rest/conversations/v1/service/conversation/WebhookDeleter.java b/src/main/java/com/twilio/rest/conversations/v1/service/conversation/WebhookDeleter.java index bd83e33ebc..e6d4f4f49b 100644 --- a/src/main/java/com/twilio/rest/conversations/v1/service/conversation/WebhookDeleter.java +++ b/src/main/java/com/twilio/rest/conversations/v1/service/conversation/WebhookDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class WebhookDeleter extends Deleter { @@ -58,6 +59,8 @@ public boolean delete(final TwilioRestClient client) { ); path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.CONVERSATIONS.toString(), @@ -83,6 +86,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/conversations/v1/service/user/UserConversationDeleter.java b/src/main/java/com/twilio/rest/conversations/v1/service/user/UserConversationDeleter.java index 9068fddf7c..e729ca0589 100644 --- a/src/main/java/com/twilio/rest/conversations/v1/service/user/UserConversationDeleter.java +++ b/src/main/java/com/twilio/rest/conversations/v1/service/user/UserConversationDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class UserConversationDeleter extends Deleter { @@ -58,6 +59,8 @@ public boolean delete(final TwilioRestClient client) { this.pathConversationSid.toString() ); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.CONVERSATIONS.toString(), @@ -83,6 +86,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/conversations/v1/user/UserConversationDeleter.java b/src/main/java/com/twilio/rest/conversations/v1/user/UserConversationDeleter.java index f324c5494d..846afbfd22 100644 --- a/src/main/java/com/twilio/rest/conversations/v1/user/UserConversationDeleter.java +++ b/src/main/java/com/twilio/rest/conversations/v1/user/UserConversationDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class UserConversationDeleter extends Deleter { @@ -49,6 +50,8 @@ public boolean delete(final TwilioRestClient client) { this.pathConversationSid.toString() ); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.CONVERSATIONS.toString(), @@ -74,6 +77,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/events/v1/SinkDeleter.java b/src/main/java/com/twilio/rest/events/v1/SinkDeleter.java index e616b32c2b..3a1fe6b52c 100644 --- a/src/main/java/com/twilio/rest/events/v1/SinkDeleter.java +++ b/src/main/java/com/twilio/rest/events/v1/SinkDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class SinkDeleter extends Deleter { @@ -39,6 +40,8 @@ public boolean delete(final TwilioRestClient client) { path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.EVENTS.toString(), @@ -64,6 +67,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/events/v1/SubscriptionDeleter.java b/src/main/java/com/twilio/rest/events/v1/SubscriptionDeleter.java index 789d92be3b..d31a8f97e5 100644 --- a/src/main/java/com/twilio/rest/events/v1/SubscriptionDeleter.java +++ b/src/main/java/com/twilio/rest/events/v1/SubscriptionDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class SubscriptionDeleter extends Deleter { @@ -39,6 +40,8 @@ public boolean delete(final TwilioRestClient client) { path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.EVENTS.toString(), @@ -64,6 +67,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/events/v1/SubscriptionUpdater.java b/src/main/java/com/twilio/rest/events/v1/SubscriptionUpdater.java index 1ae07bb11a..f56492a482 100644 --- a/src/main/java/com/twilio/rest/events/v1/SubscriptionUpdater.java +++ b/src/main/java/com/twilio/rest/events/v1/SubscriptionUpdater.java @@ -32,6 +32,7 @@ public class SubscriptionUpdater extends Updater { private String pathSid; private String description; + private String sinkSid; public SubscriptionUpdater(final String pathSid) { this.pathSid = pathSid; @@ -42,6 +43,11 @@ public SubscriptionUpdater setDescription(final String description) { return this; } + public SubscriptionUpdater setSinkSid(final String sinkSid) { + this.sinkSid = sinkSid; + return this; + } + @Override public Subscription update(final TwilioRestClient client) { String path = "/v1/Subscriptions/{Sid}"; @@ -91,5 +97,14 @@ private void addPostParams(final Request request) { ParameterType.URLENCODED ); } + + if (sinkSid != null) { + Serializer.toString( + request, + "SinkSid", + sinkSid, + ParameterType.URLENCODED + ); + } } } diff --git a/src/main/java/com/twilio/rest/events/v1/subscription/SubscribedEventDeleter.java b/src/main/java/com/twilio/rest/events/v1/subscription/SubscribedEventDeleter.java index 8905febc29..1c754fed00 100644 --- a/src/main/java/com/twilio/rest/events/v1/subscription/SubscribedEventDeleter.java +++ b/src/main/java/com/twilio/rest/events/v1/subscription/SubscribedEventDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class SubscribedEventDeleter extends Deleter { @@ -50,6 +51,8 @@ public boolean delete(final TwilioRestClient client) { ); path = path.replace("{" + "Type" + "}", this.pathType.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.EVENTS.toString(), @@ -75,6 +78,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/flexapi/v1/Assessments.java b/src/main/java/com/twilio/rest/flexapi/v1/Assessments.java index 425d882dbc..9bb7d2b09c 100644 --- a/src/main/java/com/twilio/rest/flexapi/v1/Assessments.java +++ b/src/main/java/com/twilio/rest/flexapi/v1/Assessments.java @@ -158,7 +158,7 @@ public static String toJson(Object object, ObjectMapper mapper) { private final String assessmentSid; @Getter - private final String offset; + private final BigDecimal offset; @Getter private final Boolean report; @@ -167,7 +167,7 @@ public static String toJson(Object object, ObjectMapper mapper) { private final String segmentId; @Getter - private final String timestamp; + private final BigDecimal timestamp; @Getter private final URI url; @@ -179,7 +179,7 @@ public static String toJson(Object object, ObjectMapper mapper) { private final String userName; @Getter - private final String weight; + private final BigDecimal weight; @JsonCreator private Assessments( @@ -189,14 +189,14 @@ private Assessments( @JsonProperty("answer_text") final String answerText, @JsonProperty("assessment") final Object assessment, @JsonProperty("assessment_sid") final String assessmentSid, - @JsonProperty("offset") final String offset, + @JsonProperty("offset") final BigDecimal offset, @JsonProperty("report") final Boolean report, @JsonProperty("segment_id") final String segmentId, - @JsonProperty("timestamp") final String timestamp, + @JsonProperty("timestamp") final BigDecimal timestamp, @JsonProperty("url") final URI url, @JsonProperty("user_email") final String userEmail, @JsonProperty("user_name") final String userName, - @JsonProperty("weight") final String weight + @JsonProperty("weight") final BigDecimal weight ) { this.accountSid = accountSid; this.agentId = agentId; diff --git a/src/main/java/com/twilio/rest/flexapi/v1/ChannelDeleter.java b/src/main/java/com/twilio/rest/flexapi/v1/ChannelDeleter.java index 4571c08db4..9ae40a4d92 100644 --- a/src/main/java/com/twilio/rest/flexapi/v1/ChannelDeleter.java +++ b/src/main/java/com/twilio/rest/flexapi/v1/ChannelDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class ChannelDeleter extends Deleter { @@ -39,6 +40,8 @@ public boolean delete(final TwilioRestClient client) { path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.FLEXAPI.toString(), @@ -64,6 +67,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/flexapi/v1/FlexFlowDeleter.java b/src/main/java/com/twilio/rest/flexapi/v1/FlexFlowDeleter.java index 1be0639d51..ee6ebba857 100644 --- a/src/main/java/com/twilio/rest/flexapi/v1/FlexFlowDeleter.java +++ b/src/main/java/com/twilio/rest/flexapi/v1/FlexFlowDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class FlexFlowDeleter extends Deleter { @@ -39,6 +40,8 @@ public boolean delete(final TwilioRestClient client) { path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.FLEXAPI.toString(), @@ -64,6 +67,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/flexapi/v1/InsightsAssessmentsComment.java b/src/main/java/com/twilio/rest/flexapi/v1/InsightsAssessmentsComment.java index 331546fda1..4e60722515 100644 --- a/src/main/java/com/twilio/rest/flexapi/v1/InsightsAssessmentsComment.java +++ b/src/main/java/com/twilio/rest/flexapi/v1/InsightsAssessmentsComment.java @@ -136,7 +136,7 @@ public static String toJson(Object object, ObjectMapper mapper) { private final Object comment; @Getter - private final String offset; + private final BigDecimal offset; @Getter private final Boolean report; @@ -145,7 +145,7 @@ public static String toJson(Object object, ObjectMapper mapper) { private final String segmentId; @Getter - private final String timestamp; + private final BigDecimal timestamp; @Getter private final URI url; @@ -157,7 +157,7 @@ public static String toJson(Object object, ObjectMapper mapper) { private final String userName; @Getter - private final String weight; + private final BigDecimal weight; @JsonCreator private InsightsAssessmentsComment( @@ -165,14 +165,14 @@ private InsightsAssessmentsComment( @JsonProperty("agent_id") final String agentId, @JsonProperty("assessment_sid") final String assessmentSid, @JsonProperty("comment") final Object comment, - @JsonProperty("offset") final String offset, + @JsonProperty("offset") final BigDecimal offset, @JsonProperty("report") final Boolean report, @JsonProperty("segment_id") final String segmentId, - @JsonProperty("timestamp") final String timestamp, + @JsonProperty("timestamp") final BigDecimal timestamp, @JsonProperty("url") final URI url, @JsonProperty("user_email") final String userEmail, @JsonProperty("user_name") final String userName, - @JsonProperty("weight") final String weight + @JsonProperty("weight") final BigDecimal weight ) { this.accountSid = accountSid; this.agentId = agentId; diff --git a/src/main/java/com/twilio/rest/flexapi/v1/InsightsQuestionnairesCategoryDeleter.java b/src/main/java/com/twilio/rest/flexapi/v1/InsightsQuestionnairesCategoryDeleter.java index e20aa14f63..c03fd2443d 100644 --- a/src/main/java/com/twilio/rest/flexapi/v1/InsightsQuestionnairesCategoryDeleter.java +++ b/src/main/java/com/twilio/rest/flexapi/v1/InsightsQuestionnairesCategoryDeleter.java @@ -26,6 +26,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class InsightsQuestionnairesCategoryDeleter extends Deleter { @@ -54,6 +55,8 @@ public boolean delete(final TwilioRestClient client) { this.pathCategorySid.toString() ); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.FLEXAPI.toString(), @@ -80,7 +83,7 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } private void addHeaderParams(final Request request) { diff --git a/src/main/java/com/twilio/rest/flexapi/v1/InsightsQuestionnairesDeleter.java b/src/main/java/com/twilio/rest/flexapi/v1/InsightsQuestionnairesDeleter.java index b90b83175b..2e4f97d863 100644 --- a/src/main/java/com/twilio/rest/flexapi/v1/InsightsQuestionnairesDeleter.java +++ b/src/main/java/com/twilio/rest/flexapi/v1/InsightsQuestionnairesDeleter.java @@ -26,6 +26,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class InsightsQuestionnairesDeleter extends Deleter { @@ -55,6 +56,8 @@ public boolean delete(final TwilioRestClient client) { this.pathQuestionnaireSid.toString() ); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.FLEXAPI.toString(), @@ -81,7 +84,7 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } private void addHeaderParams(final Request request) { diff --git a/src/main/java/com/twilio/rest/flexapi/v1/InsightsQuestionnairesQuestionDeleter.java b/src/main/java/com/twilio/rest/flexapi/v1/InsightsQuestionnairesQuestionDeleter.java index 9a7b9e334f..0bca50d23f 100644 --- a/src/main/java/com/twilio/rest/flexapi/v1/InsightsQuestionnairesQuestionDeleter.java +++ b/src/main/java/com/twilio/rest/flexapi/v1/InsightsQuestionnairesQuestionDeleter.java @@ -26,6 +26,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class InsightsQuestionnairesQuestionDeleter extends Deleter { @@ -54,6 +55,8 @@ public boolean delete(final TwilioRestClient client) { this.pathQuestionSid.toString() ); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.FLEXAPI.toString(), @@ -80,7 +83,7 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } private void addHeaderParams(final Request request) { diff --git a/src/main/java/com/twilio/rest/flexapi/v1/WebChannelDeleter.java b/src/main/java/com/twilio/rest/flexapi/v1/WebChannelDeleter.java index 1990060c25..140eeb8e86 100644 --- a/src/main/java/com/twilio/rest/flexapi/v1/WebChannelDeleter.java +++ b/src/main/java/com/twilio/rest/flexapi/v1/WebChannelDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class WebChannelDeleter extends Deleter { @@ -39,6 +40,8 @@ public boolean delete(final TwilioRestClient client) { path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.FLEXAPI.toString(), @@ -64,6 +67,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/flexapi/v1/interaction/InteractionChannel.java b/src/main/java/com/twilio/rest/flexapi/v1/interaction/InteractionChannel.java index f8a39adbc4..f7e6e213e3 100644 --- a/src/main/java/com/twilio/rest/flexapi/v1/interaction/InteractionChannel.java +++ b/src/main/java/com/twilio/rest/flexapi/v1/interaction/InteractionChannel.java @@ -97,9 +97,7 @@ public enum ChannelStatus { ACTIVE("active"), FAILED("failed"), CLOSED("closed"), - INACTIVE("inactive"), - PAUSE("pause"), - TRANSFER("transfer"); + INACTIVE("inactive"); private final String value; diff --git a/src/main/java/com/twilio/rest/flexapi/v2/WebChannelsCreator.java b/src/main/java/com/twilio/rest/flexapi/v2/WebChannelsCreator.java index a71a992dda..b2dd3d730a 100644 --- a/src/main/java/com/twilio/rest/flexapi/v2/WebChannelsCreator.java +++ b/src/main/java/com/twilio/rest/flexapi/v2/WebChannelsCreator.java @@ -35,7 +35,6 @@ public class WebChannelsCreator extends Creator { private String chatFriendlyName; private String customerFriendlyName; private String preEngagementData; - private String identity; public WebChannelsCreator(final String addressSid) { this.addressSid = addressSid; @@ -67,11 +66,6 @@ public WebChannelsCreator setPreEngagementData( return this; } - public WebChannelsCreator setIdentity(final String identity) { - this.identity = identity; - return this; - } - public WebChannelsCreator setUiVersion(final String uiVersion) { this.uiVersion = uiVersion; return this; @@ -152,15 +146,6 @@ private void addPostParams(final Request request) { ParameterType.URLENCODED ); } - - if (identity != null) { - Serializer.toString( - request, - "Identity", - identity, - ParameterType.URLENCODED - ); - } } private void addHeaderParams(final Request request) { diff --git a/src/main/java/com/twilio/rest/iam/v1/ApiKeyDeleter.java b/src/main/java/com/twilio/rest/iam/v1/ApiKeyDeleter.java index dcb7fd5ca6..a79ff83268 100644 --- a/src/main/java/com/twilio/rest/iam/v1/ApiKeyDeleter.java +++ b/src/main/java/com/twilio/rest/iam/v1/ApiKeyDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class ApiKeyDeleter extends Deleter { @@ -39,6 +40,8 @@ public boolean delete(final TwilioRestClient client) { path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.IAM.toString(), @@ -64,6 +67,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/iam/v1/GetApiKeys.java b/src/main/java/com/twilio/rest/iam/v1/GetApiKeys.java index ce8832761c..bc0247c951 100644 --- a/src/main/java/com/twilio/rest/iam/v1/GetApiKeys.java +++ b/src/main/java/com/twilio/rest/iam/v1/GetApiKeys.java @@ -32,7 +32,6 @@ import java.io.IOException; import java.io.InputStream; import java.time.ZonedDateTime; -import java.util.List; import java.util.Objects; import lombok.Getter; import lombok.ToString; @@ -106,9 +105,6 @@ public static String toJson(Object object, ObjectMapper mapper) { @Getter private final ZonedDateTime dateUpdated; - @Getter - private final List flags; - @Getter private final String friendlyName; @@ -123,13 +119,11 @@ private GetApiKeys( @JsonProperty("date_updated") @JsonDeserialize( using = com.twilio.converter.RFC2822Deserializer.class ) final ZonedDateTime dateUpdated, - @JsonProperty("flags") final List flags, @JsonProperty("friendly_name") final String friendlyName, @JsonProperty("sid") final String sid ) { this.dateCreated = dateCreated; this.dateUpdated = dateUpdated; - this.flags = flags; this.friendlyName = friendlyName; this.sid = sid; } @@ -148,7 +142,6 @@ public boolean equals(final Object o) { return ( Objects.equals(dateCreated, other.dateCreated) && Objects.equals(dateUpdated, other.dateUpdated) && - Objects.equals(flags, other.flags) && Objects.equals(friendlyName, other.friendlyName) && Objects.equals(sid, other.sid) ); @@ -156,6 +149,6 @@ public boolean equals(final Object o) { @Override public int hashCode() { - return Objects.hash(dateCreated, dateUpdated, flags, friendlyName, sid); + return Objects.hash(dateCreated, dateUpdated, friendlyName, sid); } } diff --git a/src/main/java/com/twilio/rest/insights/v1/CallSummariesReader.java b/src/main/java/com/twilio/rest/insights/v1/CallSummariesReader.java index 5d0d913b56..8a2593877e 100644 --- a/src/main/java/com/twilio/rest/insights/v1/CallSummariesReader.java +++ b/src/main/java/com/twilio/rest/insights/v1/CallSummariesReader.java @@ -57,10 +57,6 @@ public class CallSummariesReader extends Reader { private Boolean brandedEnabled; private Boolean voiceIntegrityEnabled; private String brandedBundleSid; - private Boolean brandedLogo; - private String brandedType; - private String brandedUseCase; - private String brandedCallReason; private String voiceIntegrityBundleSid; private String voiceIntegrityUseCase; private String businessProfileIdentity; @@ -221,28 +217,6 @@ public CallSummariesReader setBrandedBundleSid( return this; } - public CallSummariesReader setBrandedLogo(final Boolean brandedLogo) { - this.brandedLogo = brandedLogo; - return this; - } - - public CallSummariesReader setBrandedType(final String brandedType) { - this.brandedType = brandedType; - return this; - } - - public CallSummariesReader setBrandedUseCase(final String brandedUseCase) { - this.brandedUseCase = brandedUseCase; - return this; - } - - public CallSummariesReader setBrandedCallReason( - final String brandedCallReason - ) { - this.brandedCallReason = brandedCallReason; - return this; - } - public CallSummariesReader setVoiceIntegrityBundleSid( final String voiceIntegrityBundleSid ) { @@ -588,42 +562,6 @@ private void addQueryParams(final Request request) { ); } - if (brandedLogo != null) { - Serializer.toString( - request, - "BrandedLogo", - brandedLogo, - ParameterType.QUERY - ); - } - - if (brandedType != null) { - Serializer.toString( - request, - "BrandedType", - brandedType, - ParameterType.QUERY - ); - } - - if (brandedUseCase != null) { - Serializer.toString( - request, - "BrandedUseCase", - brandedUseCase, - ParameterType.QUERY - ); - } - - if (brandedCallReason != null) { - Serializer.toString( - request, - "BrandedCallReason", - brandedCallReason, - ParameterType.QUERY - ); - } - if (voiceIntegrityBundleSid != null) { Serializer.toString( request, diff --git a/src/main/java/com/twilio/rest/insights/v1/Room.java b/src/main/java/com/twilio/rest/insights/v1/Room.java index 702fa04f05..7f201c4764 100644 --- a/src/main/java/com/twilio/rest/insights/v1/Room.java +++ b/src/main/java/com/twilio/rest/insights/v1/Room.java @@ -147,7 +147,19 @@ public enum TwilioRealm { SG1("sg1"), IN1("in1"), DE1("de1"), - GLL("gll"); + GLL("gll"), + STAGE_US1("stage_us1"), + STAGE_US2("stage_us2"), + DEV_US1("dev_us1"), + DEV_US2("dev_us2"), + STAGE_DE1("stage_de1"), + STAGE_IN1("stage_in1"), + STAGE_IE1("stage_ie1"), + STAGE_BR1("stage_br1"), + STAGE_AU1("stage_au1"), + STAGE_SG1("stage_sg1"), + STAGE_JP1("stage_jp1"), + OUTSIDE("outside"); private final String value; diff --git a/src/main/java/com/twilio/rest/insights/v1/room/Participant.java b/src/main/java/com/twilio/rest/insights/v1/room/Participant.java index a08c4d88ea..7d4f970328 100644 --- a/src/main/java/com/twilio/rest/insights/v1/room/Participant.java +++ b/src/main/java/com/twilio/rest/insights/v1/room/Participant.java @@ -108,7 +108,19 @@ public enum TwilioRealm { SG1("sg1"), IN1("in1"), DE1("de1"), - GLL("gll"); + GLL("gll"), + STAGE_US1("stage_us1"), + DEV_US1("dev_us1"), + STAGE_AU1("stage_au1"), + STAGE_SG1("stage_sg1"), + STAGE_BR1("stage_br1"), + STAGE_IN1("stage_in1"), + STAGE_JP1("stage_jp1"), + STAGE_DE1("stage_de1"), + STAGE_IE1("stage_ie1"), + STAGE_US2("stage_us2"), + DEV_US2("dev_us2"), + OUTSIDE("outside"); private final String value; diff --git a/src/main/java/com/twilio/rest/intelligence/v2/CustomOperator.java b/src/main/java/com/twilio/rest/intelligence/v2/CustomOperator.java index 34c4ef3171..12616b513f 100644 --- a/src/main/java/com/twilio/rest/intelligence/v2/CustomOperator.java +++ b/src/main/java/com/twilio/rest/intelligence/v2/CustomOperator.java @@ -74,9 +74,7 @@ public enum Availability { INTERNAL("internal"), BETA("beta"), PUBLIC("public"), - RETIRED("retired"), - GENERAL_AVAILABILITY("general-availability"), - DEPRECATED("deprecated"); + RETIRED("retired"); private final String value; diff --git a/src/main/java/com/twilio/rest/intelligence/v2/CustomOperatorDeleter.java b/src/main/java/com/twilio/rest/intelligence/v2/CustomOperatorDeleter.java index ee28b814de..404a58a928 100644 --- a/src/main/java/com/twilio/rest/intelligence/v2/CustomOperatorDeleter.java +++ b/src/main/java/com/twilio/rest/intelligence/v2/CustomOperatorDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class CustomOperatorDeleter extends Deleter { @@ -39,6 +40,8 @@ public boolean delete(final TwilioRestClient client) { path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.INTELLIGENCE.toString(), @@ -64,6 +67,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/intelligence/v2/Operator.java b/src/main/java/com/twilio/rest/intelligence/v2/Operator.java index 1c5bd4867d..13c37d6349 100644 --- a/src/main/java/com/twilio/rest/intelligence/v2/Operator.java +++ b/src/main/java/com/twilio/rest/intelligence/v2/Operator.java @@ -54,8 +54,6 @@ public enum Availability { INTERNAL("internal"), BETA("beta"), PUBLIC("public"), - DEPRECATED("deprecated"), - GENERAL_AVAILABILITY("general-availability"), RETIRED("retired"); private final String value; diff --git a/src/main/java/com/twilio/rest/intelligence/v2/OperatorAttachmentDeleter.java b/src/main/java/com/twilio/rest/intelligence/v2/OperatorAttachmentDeleter.java index d23b0d6f1b..297a23f3f8 100644 --- a/src/main/java/com/twilio/rest/intelligence/v2/OperatorAttachmentDeleter.java +++ b/src/main/java/com/twilio/rest/intelligence/v2/OperatorAttachmentDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class OperatorAttachmentDeleter extends Deleter { @@ -53,6 +54,8 @@ public boolean delete(final TwilioRestClient client) { this.pathOperatorSid.toString() ); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.INTELLIGENCE.toString(), @@ -78,6 +81,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/intelligence/v2/OperatorType.java b/src/main/java/com/twilio/rest/intelligence/v2/OperatorType.java index a7cd3a6106..9fac89e8bf 100644 --- a/src/main/java/com/twilio/rest/intelligence/v2/OperatorType.java +++ b/src/main/java/com/twilio/rest/intelligence/v2/OperatorType.java @@ -78,8 +78,7 @@ public enum OutputType { TEXT_CLASSIFICATION("text-classification"), TEXT_EXTRACTION("text-extraction"), TEXT_EXTRACTION_NORMALIZED("text-extraction-normalized"), - TEXT_GENERATION("text-generation"), - JSON("json"); + TEXT_GENERATION("text-generation"); private final String value; diff --git a/src/main/java/com/twilio/rest/intelligence/v2/PrebuiltOperator.java b/src/main/java/com/twilio/rest/intelligence/v2/PrebuiltOperator.java index cd131a5fd9..88b678a626 100644 --- a/src/main/java/com/twilio/rest/intelligence/v2/PrebuiltOperator.java +++ b/src/main/java/com/twilio/rest/intelligence/v2/PrebuiltOperator.java @@ -54,8 +54,7 @@ public enum Availability { INTERNAL("internal"), BETA("beta"), PUBLIC("public"), - RETIRED("retired"), - GENERAL_AVAILABILITY("general-availability"); + RETIRED("retired"); private final String value; diff --git a/src/main/java/com/twilio/rest/intelligence/v2/Service.java b/src/main/java/com/twilio/rest/intelligence/v2/Service.java index 30d86179da..d29cebac5c 100644 --- a/src/main/java/com/twilio/rest/intelligence/v2/Service.java +++ b/src/main/java/com/twilio/rest/intelligence/v2/Service.java @@ -158,9 +158,6 @@ public static String toJson(Object object, ObjectMapper mapper) { @Getter private final ZonedDateTime dateUpdated; - @Getter - private final String encryptionCredentialSid; - @Getter private final String friendlyName; @@ -203,9 +200,6 @@ private Service( @JsonProperty("date_updated") @JsonDeserialize( using = com.twilio.converter.ISO8601Deserializer.class ) final ZonedDateTime dateUpdated, - @JsonProperty( - "encryption_credential_sid" - ) final String encryptionCredentialSid, @JsonProperty("friendly_name") final String friendlyName, @JsonProperty("language_code") final String languageCode, @JsonProperty("media_redaction") final Boolean mediaRedaction, @@ -227,7 +221,6 @@ private Service( this.dataLogging = dataLogging; this.dateCreated = dateCreated; this.dateUpdated = dateUpdated; - this.encryptionCredentialSid = encryptionCredentialSid; this.friendlyName = friendlyName; this.languageCode = languageCode; this.mediaRedaction = mediaRedaction; @@ -258,10 +251,6 @@ public boolean equals(final Object o) { Objects.equals(dataLogging, other.dataLogging) && Objects.equals(dateCreated, other.dateCreated) && Objects.equals(dateUpdated, other.dateUpdated) && - Objects.equals( - encryptionCredentialSid, - other.encryptionCredentialSid - ) && Objects.equals(friendlyName, other.friendlyName) && Objects.equals(languageCode, other.languageCode) && Objects.equals(mediaRedaction, other.mediaRedaction) && @@ -287,7 +276,6 @@ public int hashCode() { dataLogging, dateCreated, dateUpdated, - encryptionCredentialSid, friendlyName, languageCode, mediaRedaction, diff --git a/src/main/java/com/twilio/rest/intelligence/v2/ServiceCreator.java b/src/main/java/com/twilio/rest/intelligence/v2/ServiceCreator.java index 9dff614ab6..dedaa55d09 100644 --- a/src/main/java/com/twilio/rest/intelligence/v2/ServiceCreator.java +++ b/src/main/java/com/twilio/rest/intelligence/v2/ServiceCreator.java @@ -39,7 +39,6 @@ public class ServiceCreator extends Creator { private Boolean mediaRedaction; private String webhookUrl; private Service.HttpMethod webhookHttpMethod; - private String encryptionCredentialSid; public ServiceCreator(final String uniqueName) { this.uniqueName = uniqueName; @@ -92,13 +91,6 @@ public ServiceCreator setWebhookHttpMethod( return this; } - public ServiceCreator setEncryptionCredentialSid( - final String encryptionCredentialSid - ) { - this.encryptionCredentialSid = encryptionCredentialSid; - return this; - } - @Override public Service create(final TwilioRestClient client) { String path = "/v2/Services"; @@ -215,14 +207,5 @@ private void addPostParams(final Request request) { ParameterType.URLENCODED ); } - - if (encryptionCredentialSid != null) { - Serializer.toString( - request, - "EncryptionCredentialSid", - encryptionCredentialSid, - ParameterType.URLENCODED - ); - } } } diff --git a/src/main/java/com/twilio/rest/intelligence/v2/ServiceDeleter.java b/src/main/java/com/twilio/rest/intelligence/v2/ServiceDeleter.java index a011af74eb..c7684aa27d 100644 --- a/src/main/java/com/twilio/rest/intelligence/v2/ServiceDeleter.java +++ b/src/main/java/com/twilio/rest/intelligence/v2/ServiceDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class ServiceDeleter extends Deleter { @@ -39,6 +40,8 @@ public boolean delete(final TwilioRestClient client) { path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.INTELLIGENCE.toString(), @@ -64,6 +67,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/intelligence/v2/ServiceUpdater.java b/src/main/java/com/twilio/rest/intelligence/v2/ServiceUpdater.java index cecf6c53a6..0cc03ac6fe 100644 --- a/src/main/java/com/twilio/rest/intelligence/v2/ServiceUpdater.java +++ b/src/main/java/com/twilio/rest/intelligence/v2/ServiceUpdater.java @@ -40,7 +40,6 @@ public class ServiceUpdater extends Updater { private Boolean mediaRedaction; private String webhookUrl; private Service.HttpMethod webhookHttpMethod; - private String encryptionCredentialSid; public ServiceUpdater(final String pathSid) { this.pathSid = pathSid; @@ -88,13 +87,6 @@ public ServiceUpdater setWebhookHttpMethod( return this; } - public ServiceUpdater setEncryptionCredentialSid( - final String encryptionCredentialSid - ) { - this.encryptionCredentialSid = encryptionCredentialSid; - return this; - } - public ServiceUpdater setIfMatch(final String ifMatch) { this.ifMatch = ifMatch; return this; @@ -210,15 +202,6 @@ private void addPostParams(final Request request) { ParameterType.URLENCODED ); } - - if (encryptionCredentialSid != null) { - Serializer.toString( - request, - "EncryptionCredentialSid", - encryptionCredentialSid, - ParameterType.URLENCODED - ); - } } private void addHeaderParams(final Request request) { diff --git a/src/main/java/com/twilio/rest/intelligence/v2/Transcript.java b/src/main/java/com/twilio/rest/intelligence/v2/Transcript.java index 175acae3e9..d18dc4fdc3 100644 --- a/src/main/java/com/twilio/rest/intelligence/v2/Transcript.java +++ b/src/main/java/com/twilio/rest/intelligence/v2/Transcript.java @@ -67,8 +67,7 @@ public enum Status { IN_PROGRESS("in-progress"), COMPLETED("completed"), FAILED("failed"), - CANCELED("canceled"), - ERROR("error"); + CANCELED("canceled"); private final String value; @@ -162,9 +161,6 @@ public static String toJson(Object object, ObjectMapper mapper) { @Getter private final Integer duration; - @Getter - private final String encryptionCredentialSid; - @Getter private final String languageCode; @@ -202,9 +198,6 @@ private Transcript( using = com.twilio.converter.ISO8601Deserializer.class ) final ZonedDateTime dateUpdated, @JsonProperty("duration") final Integer duration, - @JsonProperty( - "encryption_credential_sid" - ) final String encryptionCredentialSid, @JsonProperty("language_code") final String languageCode, @JsonProperty("links") final Map links, @JsonProperty("media_start_time") @JsonDeserialize( @@ -223,7 +216,6 @@ private Transcript( this.dateCreated = dateCreated; this.dateUpdated = dateUpdated; this.duration = duration; - this.encryptionCredentialSid = encryptionCredentialSid; this.languageCode = languageCode; this.links = links; this.mediaStartTime = mediaStartTime; @@ -253,10 +245,6 @@ public boolean equals(final Object o) { Objects.equals(dateCreated, other.dateCreated) && Objects.equals(dateUpdated, other.dateUpdated) && Objects.equals(duration, other.duration) && - Objects.equals( - encryptionCredentialSid, - other.encryptionCredentialSid - ) && Objects.equals(languageCode, other.languageCode) && Objects.equals(links, other.links) && Objects.equals(mediaStartTime, other.mediaStartTime) && @@ -278,7 +266,6 @@ public int hashCode() { dateCreated, dateUpdated, duration, - encryptionCredentialSid, languageCode, links, mediaStartTime, diff --git a/src/main/java/com/twilio/rest/intelligence/v2/TranscriptDeleter.java b/src/main/java/com/twilio/rest/intelligence/v2/TranscriptDeleter.java index 307a597bfd..03a65b9502 100644 --- a/src/main/java/com/twilio/rest/intelligence/v2/TranscriptDeleter.java +++ b/src/main/java/com/twilio/rest/intelligence/v2/TranscriptDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class TranscriptDeleter extends Deleter { @@ -39,6 +40,8 @@ public boolean delete(final TwilioRestClient client) { path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.INTELLIGENCE.toString(), @@ -64,6 +67,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/intelligence/v2/transcript/OperatorResult.java b/src/main/java/com/twilio/rest/intelligence/v2/transcript/OperatorResult.java index f59aed108c..197846450d 100644 --- a/src/main/java/com/twilio/rest/intelligence/v2/transcript/OperatorResult.java +++ b/src/main/java/com/twilio/rest/intelligence/v2/transcript/OperatorResult.java @@ -54,12 +54,12 @@ public static OperatorResultReader reader(final String pathTranscriptSid) { } public enum OperatorType { - CONVERSATION_CLASSIFY("conversation-classify"), - UTTERANCE_CLASSIFY("utterance-classify"), + CONVERSATION_CLASSIFY("conversation_classify"), + UTTERANCE_CLASSIFY("utterance_classify"), EXTRACT("extract"), - EXTRACT_NORMALIZE("extract-normalize"), - PII_EXTRACT("pii-extract"), - TEXT_GENERATION("text-generation"), + EXTRACT_NORMALIZE("extract_normalize"), + PII_EXTRACT("pii_extract"), + TEXT_GENERATION("text_generation"), JSON("json"); private final String value; diff --git a/src/main/java/com/twilio/rest/intelligence/v2/transcript/Sentence.java b/src/main/java/com/twilio/rest/intelligence/v2/transcript/Sentence.java index 7d59e0052d..cd6b3110a6 100644 --- a/src/main/java/com/twilio/rest/intelligence/v2/transcript/Sentence.java +++ b/src/main/java/com/twilio/rest/intelligence/v2/transcript/Sentence.java @@ -30,6 +30,7 @@ import java.io.IOException; import java.io.IOException; import java.io.InputStream; +import java.math.BigDecimal; import java.util.List; import java.util.Objects; import lombok.Getter; @@ -99,10 +100,10 @@ public static String toJson(Object object, ObjectMapper mapper) { } @Getter - private final String confidence; + private final BigDecimal confidence; @Getter - private final String endTime; + private final BigDecimal endTime; @Getter private final Integer mediaChannel; @@ -114,7 +115,7 @@ public static String toJson(Object object, ObjectMapper mapper) { private final String sid; @Getter - private final String startTime; + private final BigDecimal startTime; @Getter private final String transcript; @@ -124,12 +125,12 @@ public static String toJson(Object object, ObjectMapper mapper) { @JsonCreator private Sentence( - @JsonProperty("confidence") final String confidence, - @JsonProperty("end_time") final String endTime, + @JsonProperty("confidence") final BigDecimal confidence, + @JsonProperty("end_time") final BigDecimal endTime, @JsonProperty("media_channel") final Integer mediaChannel, @JsonProperty("sentence_index") final Integer sentenceIndex, @JsonProperty("sid") final String sid, - @JsonProperty("start_time") final String startTime, + @JsonProperty("start_time") final BigDecimal startTime, @JsonProperty("transcript") final String transcript, @JsonProperty("words") final List words ) { diff --git a/src/main/java/com/twilio/rest/ipmessaging/v1/CredentialDeleter.java b/src/main/java/com/twilio/rest/ipmessaging/v1/CredentialDeleter.java index 7da208bce5..9bf6e39ed6 100644 --- a/src/main/java/com/twilio/rest/ipmessaging/v1/CredentialDeleter.java +++ b/src/main/java/com/twilio/rest/ipmessaging/v1/CredentialDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class CredentialDeleter extends Deleter { @@ -39,6 +40,8 @@ public boolean delete(final TwilioRestClient client) { path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.IPMESSAGING.toString(), @@ -64,6 +67,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/ipmessaging/v1/ServiceDeleter.java b/src/main/java/com/twilio/rest/ipmessaging/v1/ServiceDeleter.java index c5dff84323..e9f252453f 100644 --- a/src/main/java/com/twilio/rest/ipmessaging/v1/ServiceDeleter.java +++ b/src/main/java/com/twilio/rest/ipmessaging/v1/ServiceDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class ServiceDeleter extends Deleter { @@ -39,6 +40,8 @@ public boolean delete(final TwilioRestClient client) { path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.IPMESSAGING.toString(), @@ -64,6 +67,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/ipmessaging/v1/service/ChannelDeleter.java b/src/main/java/com/twilio/rest/ipmessaging/v1/service/ChannelDeleter.java index 1305a2847f..27e7b2c99d 100644 --- a/src/main/java/com/twilio/rest/ipmessaging/v1/service/ChannelDeleter.java +++ b/src/main/java/com/twilio/rest/ipmessaging/v1/service/ChannelDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class ChannelDeleter extends Deleter { @@ -46,6 +47,8 @@ public boolean delete(final TwilioRestClient client) { ); path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.IPMESSAGING.toString(), @@ -71,6 +74,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/ipmessaging/v1/service/RoleDeleter.java b/src/main/java/com/twilio/rest/ipmessaging/v1/service/RoleDeleter.java index 53479edd09..80898d8fc7 100644 --- a/src/main/java/com/twilio/rest/ipmessaging/v1/service/RoleDeleter.java +++ b/src/main/java/com/twilio/rest/ipmessaging/v1/service/RoleDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class RoleDeleter extends Deleter { @@ -46,6 +47,8 @@ public boolean delete(final TwilioRestClient client) { ); path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.IPMESSAGING.toString(), @@ -71,6 +74,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/ipmessaging/v1/service/UserDeleter.java b/src/main/java/com/twilio/rest/ipmessaging/v1/service/UserDeleter.java index b49369f804..f2c8ba9164 100644 --- a/src/main/java/com/twilio/rest/ipmessaging/v1/service/UserDeleter.java +++ b/src/main/java/com/twilio/rest/ipmessaging/v1/service/UserDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class UserDeleter extends Deleter { @@ -46,6 +47,8 @@ public boolean delete(final TwilioRestClient client) { ); path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.IPMESSAGING.toString(), @@ -71,6 +74,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/ipmessaging/v1/service/channel/InviteDeleter.java b/src/main/java/com/twilio/rest/ipmessaging/v1/service/channel/InviteDeleter.java index e2a8f41878..7195fa7a5a 100644 --- a/src/main/java/com/twilio/rest/ipmessaging/v1/service/channel/InviteDeleter.java +++ b/src/main/java/com/twilio/rest/ipmessaging/v1/service/channel/InviteDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class InviteDeleter extends Deleter { @@ -58,6 +59,8 @@ public boolean delete(final TwilioRestClient client) { ); path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.IPMESSAGING.toString(), @@ -83,6 +86,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/ipmessaging/v1/service/channel/MemberDeleter.java b/src/main/java/com/twilio/rest/ipmessaging/v1/service/channel/MemberDeleter.java index a021a1e819..83c6c6a9d2 100644 --- a/src/main/java/com/twilio/rest/ipmessaging/v1/service/channel/MemberDeleter.java +++ b/src/main/java/com/twilio/rest/ipmessaging/v1/service/channel/MemberDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class MemberDeleter extends Deleter { @@ -58,6 +59,8 @@ public boolean delete(final TwilioRestClient client) { ); path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.IPMESSAGING.toString(), @@ -83,6 +86,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/ipmessaging/v1/service/channel/MessageDeleter.java b/src/main/java/com/twilio/rest/ipmessaging/v1/service/channel/MessageDeleter.java index 2c22fb0709..7232b0cbb8 100644 --- a/src/main/java/com/twilio/rest/ipmessaging/v1/service/channel/MessageDeleter.java +++ b/src/main/java/com/twilio/rest/ipmessaging/v1/service/channel/MessageDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class MessageDeleter extends Deleter { @@ -58,6 +59,8 @@ public boolean delete(final TwilioRestClient client) { ); path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.IPMESSAGING.toString(), @@ -83,6 +86,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/ipmessaging/v2/CredentialDeleter.java b/src/main/java/com/twilio/rest/ipmessaging/v2/CredentialDeleter.java index 16d392ec83..94fd3fcb7d 100644 --- a/src/main/java/com/twilio/rest/ipmessaging/v2/CredentialDeleter.java +++ b/src/main/java/com/twilio/rest/ipmessaging/v2/CredentialDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class CredentialDeleter extends Deleter { @@ -39,6 +40,8 @@ public boolean delete(final TwilioRestClient client) { path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.IPMESSAGING.toString(), @@ -64,6 +67,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/ipmessaging/v2/ServiceDeleter.java b/src/main/java/com/twilio/rest/ipmessaging/v2/ServiceDeleter.java index bd2194e019..9cde9e7b25 100644 --- a/src/main/java/com/twilio/rest/ipmessaging/v2/ServiceDeleter.java +++ b/src/main/java/com/twilio/rest/ipmessaging/v2/ServiceDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class ServiceDeleter extends Deleter { @@ -39,6 +40,8 @@ public boolean delete(final TwilioRestClient client) { path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.IPMESSAGING.toString(), @@ -64,6 +67,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/ipmessaging/v2/service/BindingDeleter.java b/src/main/java/com/twilio/rest/ipmessaging/v2/service/BindingDeleter.java index 0b61729d57..dd22a093c7 100644 --- a/src/main/java/com/twilio/rest/ipmessaging/v2/service/BindingDeleter.java +++ b/src/main/java/com/twilio/rest/ipmessaging/v2/service/BindingDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class BindingDeleter extends Deleter { @@ -46,6 +47,8 @@ public boolean delete(final TwilioRestClient client) { ); path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.IPMESSAGING.toString(), @@ -71,6 +74,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/ipmessaging/v2/service/ChannelDeleter.java b/src/main/java/com/twilio/rest/ipmessaging/v2/service/ChannelDeleter.java index 041f8c9d74..1bfe360a0d 100644 --- a/src/main/java/com/twilio/rest/ipmessaging/v2/service/ChannelDeleter.java +++ b/src/main/java/com/twilio/rest/ipmessaging/v2/service/ChannelDeleter.java @@ -26,6 +26,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class ChannelDeleter extends Deleter { @@ -56,6 +57,8 @@ public boolean delete(final TwilioRestClient client) { ); path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.IPMESSAGING.toString(), @@ -82,7 +85,7 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } private void addHeaderParams(final Request request) { diff --git a/src/main/java/com/twilio/rest/ipmessaging/v2/service/RoleDeleter.java b/src/main/java/com/twilio/rest/ipmessaging/v2/service/RoleDeleter.java index 7a9e6669e5..650ef3c25e 100644 --- a/src/main/java/com/twilio/rest/ipmessaging/v2/service/RoleDeleter.java +++ b/src/main/java/com/twilio/rest/ipmessaging/v2/service/RoleDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class RoleDeleter extends Deleter { @@ -46,6 +47,8 @@ public boolean delete(final TwilioRestClient client) { ); path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.IPMESSAGING.toString(), @@ -71,6 +74,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/ipmessaging/v2/service/UserDeleter.java b/src/main/java/com/twilio/rest/ipmessaging/v2/service/UserDeleter.java index e9bd0cfd1f..bc8acf9fce 100644 --- a/src/main/java/com/twilio/rest/ipmessaging/v2/service/UserDeleter.java +++ b/src/main/java/com/twilio/rest/ipmessaging/v2/service/UserDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class UserDeleter extends Deleter { @@ -46,6 +47,8 @@ public boolean delete(final TwilioRestClient client) { ); path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.IPMESSAGING.toString(), @@ -71,6 +74,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/ipmessaging/v2/service/channel/InviteDeleter.java b/src/main/java/com/twilio/rest/ipmessaging/v2/service/channel/InviteDeleter.java index 1f8a339f9d..262dc7d161 100644 --- a/src/main/java/com/twilio/rest/ipmessaging/v2/service/channel/InviteDeleter.java +++ b/src/main/java/com/twilio/rest/ipmessaging/v2/service/channel/InviteDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class InviteDeleter extends Deleter { @@ -58,6 +59,8 @@ public boolean delete(final TwilioRestClient client) { ); path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.IPMESSAGING.toString(), @@ -83,6 +86,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/ipmessaging/v2/service/channel/MemberDeleter.java b/src/main/java/com/twilio/rest/ipmessaging/v2/service/channel/MemberDeleter.java index 7cac220a98..b708f5e7e8 100644 --- a/src/main/java/com/twilio/rest/ipmessaging/v2/service/channel/MemberDeleter.java +++ b/src/main/java/com/twilio/rest/ipmessaging/v2/service/channel/MemberDeleter.java @@ -26,6 +26,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class MemberDeleter extends Deleter { @@ -68,6 +69,8 @@ public boolean delete(final TwilioRestClient client) { ); path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.IPMESSAGING.toString(), @@ -94,7 +97,7 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } private void addHeaderParams(final Request request) { diff --git a/src/main/java/com/twilio/rest/ipmessaging/v2/service/channel/MessageDeleter.java b/src/main/java/com/twilio/rest/ipmessaging/v2/service/channel/MessageDeleter.java index 301bd552f3..06162ef6f3 100644 --- a/src/main/java/com/twilio/rest/ipmessaging/v2/service/channel/MessageDeleter.java +++ b/src/main/java/com/twilio/rest/ipmessaging/v2/service/channel/MessageDeleter.java @@ -26,6 +26,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class MessageDeleter extends Deleter { @@ -68,6 +69,8 @@ public boolean delete(final TwilioRestClient client) { ); path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.IPMESSAGING.toString(), @@ -94,7 +97,7 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } private void addHeaderParams(final Request request) { diff --git a/src/main/java/com/twilio/rest/ipmessaging/v2/service/channel/WebhookDeleter.java b/src/main/java/com/twilio/rest/ipmessaging/v2/service/channel/WebhookDeleter.java index 4a85a5bf0f..90709c104e 100644 --- a/src/main/java/com/twilio/rest/ipmessaging/v2/service/channel/WebhookDeleter.java +++ b/src/main/java/com/twilio/rest/ipmessaging/v2/service/channel/WebhookDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class WebhookDeleter extends Deleter { @@ -58,6 +59,8 @@ public boolean delete(final TwilioRestClient client) { ); path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.IPMESSAGING.toString(), @@ -83,6 +86,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/ipmessaging/v2/service/user/UserBindingDeleter.java b/src/main/java/com/twilio/rest/ipmessaging/v2/service/user/UserBindingDeleter.java index 5fefeeb78b..67761fdfac 100644 --- a/src/main/java/com/twilio/rest/ipmessaging/v2/service/user/UserBindingDeleter.java +++ b/src/main/java/com/twilio/rest/ipmessaging/v2/service/user/UserBindingDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class UserBindingDeleter extends Deleter { @@ -54,6 +55,8 @@ public boolean delete(final TwilioRestClient client) { path = path.replace("{" + "UserSid" + "}", this.pathUserSid.toString()); path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.IPMESSAGING.toString(), @@ -79,6 +82,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/ipmessaging/v2/service/user/UserChannelDeleter.java b/src/main/java/com/twilio/rest/ipmessaging/v2/service/user/UserChannelDeleter.java index 87696c9412..223ecb88a5 100644 --- a/src/main/java/com/twilio/rest/ipmessaging/v2/service/user/UserChannelDeleter.java +++ b/src/main/java/com/twilio/rest/ipmessaging/v2/service/user/UserChannelDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class UserChannelDeleter extends Deleter { @@ -58,6 +59,8 @@ public boolean delete(final TwilioRestClient client) { this.pathChannelSid.toString() ); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.IPMESSAGING.toString(), @@ -83,6 +86,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/knowledge/v1/KnowledgeDeleter.java b/src/main/java/com/twilio/rest/knowledge/v1/KnowledgeDeleter.java index 1e50e1734a..ac631788ba 100644 --- a/src/main/java/com/twilio/rest/knowledge/v1/KnowledgeDeleter.java +++ b/src/main/java/com/twilio/rest/knowledge/v1/KnowledgeDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class KnowledgeDeleter extends Deleter { @@ -39,6 +40,8 @@ public boolean delete(final TwilioRestClient client) { path = path.replace("{" + "id" + "}", this.pathId.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.KNOWLEDGE.toString(), @@ -64,6 +67,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/knowledge/v1/KnowledgeReader.java b/src/main/java/com/twilio/rest/knowledge/v1/KnowledgeReader.java index 7da1de064f..c30dd172e0 100644 --- a/src/main/java/com/twilio/rest/knowledge/v1/KnowledgeReader.java +++ b/src/main/java/com/twilio/rest/knowledge/v1/KnowledgeReader.java @@ -32,7 +32,6 @@ public class KnowledgeReader extends Reader { private Integer pageSize; - private String tags; public KnowledgeReader() {} @@ -41,11 +40,6 @@ public KnowledgeReader setPageSize(final Integer pageSize) { return this; } - public KnowledgeReader setTags(final String tags) { - this.tags = tags; - return this; - } - @Override public ResourceSet read(final TwilioRestClient client) { return new ResourceSet<>(this, client, firstPage(client)); @@ -138,9 +132,5 @@ private void addQueryParams(final Request request) { ParameterType.QUERY ); } - - if (tags != null) { - Serializer.toString(request, "Tags", tags, ParameterType.QUERY); - } } } diff --git a/src/main/java/com/twilio/rest/lookups/v2/BucketDeleter.java b/src/main/java/com/twilio/rest/lookups/v2/BucketDeleter.java index ce66848aa4..a659dcccc0 100644 --- a/src/main/java/com/twilio/rest/lookups/v2/BucketDeleter.java +++ b/src/main/java/com/twilio/rest/lookups/v2/BucketDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class BucketDeleter extends Deleter { @@ -37,11 +38,13 @@ public BucketDeleter(final String pathField, final String pathBucket) { @Override public boolean delete(final TwilioRestClient client) { - String path = "/v2/RateLimits/Fields/{Field}/Bucket/{Bucket}"; + String path = "/v2/RateLimits/Fields/{field}/Bucket/{bucket}"; - path = path.replace("{" + "Field" + "}", this.pathField.toString()); - path = path.replace("{" + "Bucket" + "}", this.pathBucket.toString()); + path = path.replace("{" + "field" + "}", this.pathField.toString()); + path = path.replace("{" + "bucket" + "}", this.pathBucket.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.LOOKUPS.toString(), @@ -67,6 +70,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/lookups/v2/BucketFetcher.java b/src/main/java/com/twilio/rest/lookups/v2/BucketFetcher.java index 501b88ba24..f6ad81d3c3 100644 --- a/src/main/java/com/twilio/rest/lookups/v2/BucketFetcher.java +++ b/src/main/java/com/twilio/rest/lookups/v2/BucketFetcher.java @@ -37,10 +37,10 @@ public BucketFetcher(final String pathField, final String pathBucket) { @Override public Bucket fetch(final TwilioRestClient client) { - String path = "/v2/RateLimits/Fields/{Field}/Bucket/{Bucket}"; + String path = "/v2/RateLimits/Fields/{field}/Bucket/{bucket}"; - path = path.replace("{" + "Field" + "}", this.pathField.toString()); - path = path.replace("{" + "Bucket" + "}", this.pathBucket.toString()); + path = path.replace("{" + "field" + "}", this.pathField.toString()); + path = path.replace("{" + "bucket" + "}", this.pathBucket.toString()); Request request = new Request( HttpMethod.GET, diff --git a/src/main/java/com/twilio/rest/lookups/v2/BucketUpdater.java b/src/main/java/com/twilio/rest/lookups/v2/BucketUpdater.java index 8d2988862b..b79e1ff5c3 100644 --- a/src/main/java/com/twilio/rest/lookups/v2/BucketUpdater.java +++ b/src/main/java/com/twilio/rest/lookups/v2/BucketUpdater.java @@ -47,10 +47,10 @@ public BucketUpdater setRateLimitRequest( @Override public Bucket update(final TwilioRestClient client) { - String path = "/v2/RateLimits/Fields/{Field}/Bucket/{Bucket}"; + String path = "/v2/RateLimits/Fields/{field}/Bucket/{bucket}"; - path = path.replace("{" + "Field" + "}", this.pathField.toString()); - path = path.replace("{" + "Bucket" + "}", this.pathBucket.toString()); + path = path.replace("{" + "field" + "}", this.pathField.toString()); + path = path.replace("{" + "bucket" + "}", this.pathBucket.toString()); Request request = new Request( HttpMethod.PUT, diff --git a/src/main/java/com/twilio/rest/lookups/v2/PhoneNumber.java b/src/main/java/com/twilio/rest/lookups/v2/PhoneNumber.java index 97622845fc..42613909a6 100644 --- a/src/main/java/com/twilio/rest/lookups/v2/PhoneNumber.java +++ b/src/main/java/com/twilio/rest/lookups/v2/PhoneNumber.java @@ -16,15 +16,12 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.core.JsonParseException; import com.fasterxml.jackson.core.JsonParseException; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.ObjectMapper; -import com.fasterxml.jackson.databind.annotation.JsonDeserialize; -import com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder; import com.twilio.base.Resource; import com.twilio.base.Resource; import com.twilio.converter.Promoter; @@ -35,10 +32,8 @@ import java.io.IOException; import java.io.InputStream; import java.net.URI; -import java.time.ZonedDateTime; import java.util.List; import java.util.Objects; -import lombok.Builder; import lombok.Getter; import lombok.ToString; @@ -101,1206 +96,6 @@ public static ValidationError forValue(final String value) { } } - @JsonDeserialize(builder = SimSwap.Builder.class) - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @ToString - public static class SimSwap { - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("last_sim_swap") - @Getter - private final LastSimSwap lastSimSwap; - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("carrier_name") - @Getter - private final String carrierName; - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("mobile_country_code") - @Getter - private final String mobileCountryCode; - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("mobile_network_code") - @Getter - private final String mobileNetworkCode; - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("error_code") - @Getter - private final Integer errorCode; - - private SimSwap(Builder builder) { - this.lastSimSwap = builder.lastSimSwap; - this.carrierName = builder.carrierName; - this.mobileCountryCode = builder.mobileCountryCode; - this.mobileNetworkCode = builder.mobileNetworkCode; - this.errorCode = builder.errorCode; - } - - public static Builder builder() { - return new Builder(); - } - - public static SimSwap fromJson(String jsonString, ObjectMapper mapper) - throws IOException { - return mapper.readValue(jsonString, SimSwap.class); - } - - @JsonPOJOBuilder(withPrefix = "") - public static class Builder { - - @JsonProperty("last_sim_swap") - private LastSimSwap lastSimSwap; - - @JsonProperty("carrier_name") - private String carrierName; - - @JsonProperty("mobile_country_code") - private String mobileCountryCode; - - @JsonProperty("mobile_network_code") - private String mobileNetworkCode; - - @JsonProperty("error_code") - private Integer errorCode; - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("last_sim_swap") - public Builder lastSimSwap(LastSimSwap lastSimSwap) { - this.lastSimSwap = lastSimSwap; - return this; - } - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("carrier_name") - public Builder carrierName(String carrierName) { - this.carrierName = carrierName; - return this; - } - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("mobile_country_code") - public Builder mobileCountryCode(String mobileCountryCode) { - this.mobileCountryCode = mobileCountryCode; - return this; - } - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("mobile_network_code") - public Builder mobileNetworkCode(String mobileNetworkCode) { - this.mobileNetworkCode = mobileNetworkCode; - return this; - } - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("error_code") - public Builder errorCode(Integer errorCode) { - this.errorCode = errorCode; - return this; - } - - public SimSwap build() { - return new SimSwap(this); - } - } - - @Override - public boolean equals(final Object o) { - if (this == o) { - return true; - } - - if (o == null || getClass() != o.getClass()) { - return false; - } - - SimSwap other = (SimSwap) o; - return ( - Objects.equals(lastSimSwap, other.lastSimSwap) && - Objects.equals(carrierName, other.carrierName) && - Objects.equals(mobileCountryCode, other.mobileCountryCode) && - Objects.equals(mobileNetworkCode, other.mobileNetworkCode) && - Objects.equals(errorCode, other.errorCode) - ); - } - - @Override - public int hashCode() { - return Objects.hash( - lastSimSwap, - carrierName, - mobileCountryCode, - mobileNetworkCode, - errorCode - ); - } - } - - @JsonDeserialize(builder = LineTypeIntelligence.Builder.class) - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @ToString - public static class LineTypeIntelligence { - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("mobile_country_code") - @Getter - private final String mobileCountryCode; - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("mobile_network_code") - @Getter - private final String mobileNetworkCode; - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("carrier_name") - @Getter - private final String carrierName; - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("type") - @Getter - private final String type; - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("error_code") - @Getter - private final Integer errorCode; - - private LineTypeIntelligence(Builder builder) { - this.mobileCountryCode = builder.mobileCountryCode; - this.mobileNetworkCode = builder.mobileNetworkCode; - this.carrierName = builder.carrierName; - this.type = builder.type; - this.errorCode = builder.errorCode; - } - - public static Builder builder() { - return new Builder(); - } - - public static LineTypeIntelligence fromJson( - String jsonString, - ObjectMapper mapper - ) throws IOException { - return mapper.readValue(jsonString, LineTypeIntelligence.class); - } - - @JsonPOJOBuilder(withPrefix = "") - public static class Builder { - - @JsonProperty("mobile_country_code") - private String mobileCountryCode; - - @JsonProperty("mobile_network_code") - private String mobileNetworkCode; - - @JsonProperty("carrier_name") - private String carrierName; - - @JsonProperty("type") - private String type; - - @JsonProperty("error_code") - private Integer errorCode; - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("mobile_country_code") - public Builder mobileCountryCode(String mobileCountryCode) { - this.mobileCountryCode = mobileCountryCode; - return this; - } - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("mobile_network_code") - public Builder mobileNetworkCode(String mobileNetworkCode) { - this.mobileNetworkCode = mobileNetworkCode; - return this; - } - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("carrier_name") - public Builder carrierName(String carrierName) { - this.carrierName = carrierName; - return this; - } - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("type") - public Builder type(String type) { - this.type = type; - return this; - } - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("error_code") - public Builder errorCode(Integer errorCode) { - this.errorCode = errorCode; - return this; - } - - public LineTypeIntelligence build() { - return new LineTypeIntelligence(this); - } - } - - @Override - public boolean equals(final Object o) { - if (this == o) { - return true; - } - - if (o == null || getClass() != o.getClass()) { - return false; - } - - LineTypeIntelligence other = (LineTypeIntelligence) o; - return ( - Objects.equals(mobileCountryCode, other.mobileCountryCode) && - Objects.equals(mobileNetworkCode, other.mobileNetworkCode) && - Objects.equals(carrierName, other.carrierName) && - Objects.equals(type, other.type) && - Objects.equals(errorCode, other.errorCode) - ); - } - - @Override - public int hashCode() { - return Objects.hash( - mobileCountryCode, - mobileNetworkCode, - carrierName, - type, - errorCode - ); - } - } - - @JsonDeserialize(builder = SmsPumpingRisk.Builder.class) - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @ToString - public static class SmsPumpingRisk { - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("carrier_risk_category") - @Getter - private final String carrierRiskCategory; - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("number_blocked") - @Getter - private final Boolean numberBlocked; - - @JsonDeserialize(using = com.twilio.converter.ISO8601Deserializer.class) - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("number_blocked_date") - @Getter - private final ZonedDateTime numberBlockedDate; - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("number_blocked_last_3_months") - @Getter - private final Boolean numberBlockedLast3Months; - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("sms_pumping_risk_score") - @Getter - private final Integer smsPumpingRiskScore; - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("error_code") - @Getter - private final Integer errorCode; - - private SmsPumpingRisk(Builder builder) { - this.carrierRiskCategory = builder.carrierRiskCategory; - this.numberBlocked = builder.numberBlocked; - this.numberBlockedDate = builder.numberBlockedDate; - this.numberBlockedLast3Months = builder.numberBlockedLast3Months; - this.smsPumpingRiskScore = builder.smsPumpingRiskScore; - this.errorCode = builder.errorCode; - } - - public static Builder builder() { - return new Builder(); - } - - public static SmsPumpingRisk fromJson( - String jsonString, - ObjectMapper mapper - ) throws IOException { - return mapper.readValue(jsonString, SmsPumpingRisk.class); - } - - @JsonPOJOBuilder(withPrefix = "") - public static class Builder { - - @JsonProperty("carrier_risk_category") - private String carrierRiskCategory; - - @JsonProperty("number_blocked") - private Boolean numberBlocked; - - @JsonDeserialize( - using = com.twilio.converter.ISO8601Deserializer.class - ) - @JsonProperty("number_blocked_date") - private ZonedDateTime numberBlockedDate; - - @JsonProperty("number_blocked_last_3_months") - private Boolean numberBlockedLast3Months; - - @JsonProperty("sms_pumping_risk_score") - private Integer smsPumpingRiskScore; - - @JsonProperty("error_code") - private Integer errorCode; - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("carrier_risk_category") - public Builder carrierRiskCategory(String carrierRiskCategory) { - this.carrierRiskCategory = carrierRiskCategory; - return this; - } - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("number_blocked") - public Builder numberBlocked(Boolean numberBlocked) { - this.numberBlocked = numberBlocked; - return this; - } - - @JsonDeserialize( - using = com.twilio.converter.ISO8601Deserializer.class - ) - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("number_blocked_date") - public Builder numberBlockedDate(ZonedDateTime numberBlockedDate) { - this.numberBlockedDate = numberBlockedDate; - return this; - } - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("number_blocked_last_3_months") - public Builder numberBlockedLast3Months( - Boolean numberBlockedLast3Months - ) { - this.numberBlockedLast3Months = numberBlockedLast3Months; - return this; - } - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("sms_pumping_risk_score") - public Builder smsPumpingRiskScore(Integer smsPumpingRiskScore) { - this.smsPumpingRiskScore = smsPumpingRiskScore; - return this; - } - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("error_code") - public Builder errorCode(Integer errorCode) { - this.errorCode = errorCode; - return this; - } - - public SmsPumpingRisk build() { - return new SmsPumpingRisk(this); - } - } - - @Override - public boolean equals(final Object o) { - if (this == o) { - return true; - } - - if (o == null || getClass() != o.getClass()) { - return false; - } - - SmsPumpingRisk other = (SmsPumpingRisk) o; - return ( - Objects.equals( - carrierRiskCategory, - other.carrierRiskCategory - ) && - Objects.equals(numberBlocked, other.numberBlocked) && - Objects.equals(numberBlockedDate, other.numberBlockedDate) && - Objects.equals( - numberBlockedLast3Months, - other.numberBlockedLast3Months - ) && - Objects.equals( - smsPumpingRiskScore, - other.smsPumpingRiskScore - ) && - Objects.equals(errorCode, other.errorCode) - ); - } - - @Override - public int hashCode() { - return Objects.hash( - carrierRiskCategory, - numberBlocked, - numberBlockedDate, - numberBlockedLast3Months, - smsPumpingRiskScore, - errorCode - ); - } - } - - @JsonDeserialize(builder = IdentityMatch.Builder.class) - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @ToString - public static class IdentityMatch { - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("first_name_match") - @Getter - private final String firstNameMatch; - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("last_name_match") - @Getter - private final String lastNameMatch; - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("address_lines_match") - @Getter - private final String addressLinesMatch; - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("city_match") - @Getter - private final String cityMatch; - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("state_match") - @Getter - private final String stateMatch; - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("postal_code_match") - @Getter - private final String postalCodeMatch; - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("address_country_match") - @Getter - private final String addressCountryMatch; - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("national_id_match") - @Getter - private final String nationalIdMatch; - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("date_of_birth_match") - @Getter - private final String dateOfBirthMatch; - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("summary_score") - @Getter - private final Integer summaryScore; - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("error_code") - @Getter - private final Integer errorCode; - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("error_message") - @Getter - private final String errorMessage; - - private IdentityMatch(Builder builder) { - this.firstNameMatch = builder.firstNameMatch; - this.lastNameMatch = builder.lastNameMatch; - this.addressLinesMatch = builder.addressLinesMatch; - this.cityMatch = builder.cityMatch; - this.stateMatch = builder.stateMatch; - this.postalCodeMatch = builder.postalCodeMatch; - this.addressCountryMatch = builder.addressCountryMatch; - this.nationalIdMatch = builder.nationalIdMatch; - this.dateOfBirthMatch = builder.dateOfBirthMatch; - this.summaryScore = builder.summaryScore; - this.errorCode = builder.errorCode; - this.errorMessage = builder.errorMessage; - } - - public static Builder builder() { - return new Builder(); - } - - public static IdentityMatch fromJson( - String jsonString, - ObjectMapper mapper - ) throws IOException { - return mapper.readValue(jsonString, IdentityMatch.class); - } - - @JsonPOJOBuilder(withPrefix = "") - public static class Builder { - - @JsonProperty("first_name_match") - private String firstNameMatch; - - @JsonProperty("last_name_match") - private String lastNameMatch; - - @JsonProperty("address_lines_match") - private String addressLinesMatch; - - @JsonProperty("city_match") - private String cityMatch; - - @JsonProperty("state_match") - private String stateMatch; - - @JsonProperty("postal_code_match") - private String postalCodeMatch; - - @JsonProperty("address_country_match") - private String addressCountryMatch; - - @JsonProperty("national_id_match") - private String nationalIdMatch; - - @JsonProperty("date_of_birth_match") - private String dateOfBirthMatch; - - @JsonProperty("summary_score") - private Integer summaryScore; - - @JsonProperty("error_code") - private Integer errorCode; - - @JsonProperty("error_message") - private String errorMessage; - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("first_name_match") - public Builder firstNameMatch(String firstNameMatch) { - this.firstNameMatch = firstNameMatch; - return this; - } - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("last_name_match") - public Builder lastNameMatch(String lastNameMatch) { - this.lastNameMatch = lastNameMatch; - return this; - } - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("address_lines_match") - public Builder addressLinesMatch(String addressLinesMatch) { - this.addressLinesMatch = addressLinesMatch; - return this; - } - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("city_match") - public Builder cityMatch(String cityMatch) { - this.cityMatch = cityMatch; - return this; - } - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("state_match") - public Builder stateMatch(String stateMatch) { - this.stateMatch = stateMatch; - return this; - } - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("postal_code_match") - public Builder postalCodeMatch(String postalCodeMatch) { - this.postalCodeMatch = postalCodeMatch; - return this; - } - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("address_country_match") - public Builder addressCountryMatch(String addressCountryMatch) { - this.addressCountryMatch = addressCountryMatch; - return this; - } - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("national_id_match") - public Builder nationalIdMatch(String nationalIdMatch) { - this.nationalIdMatch = nationalIdMatch; - return this; - } - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("date_of_birth_match") - public Builder dateOfBirthMatch(String dateOfBirthMatch) { - this.dateOfBirthMatch = dateOfBirthMatch; - return this; - } - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("summary_score") - public Builder summaryScore(Integer summaryScore) { - this.summaryScore = summaryScore; - return this; - } - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("error_code") - public Builder errorCode(Integer errorCode) { - this.errorCode = errorCode; - return this; - } - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("error_message") - public Builder errorMessage(String errorMessage) { - this.errorMessage = errorMessage; - return this; - } - - public IdentityMatch build() { - return new IdentityMatch(this); - } - } - - @Override - public boolean equals(final Object o) { - if (this == o) { - return true; - } - - if (o == null || getClass() != o.getClass()) { - return false; - } - - IdentityMatch other = (IdentityMatch) o; - return ( - Objects.equals(firstNameMatch, other.firstNameMatch) && - Objects.equals(lastNameMatch, other.lastNameMatch) && - Objects.equals(addressLinesMatch, other.addressLinesMatch) && - Objects.equals(cityMatch, other.cityMatch) && - Objects.equals(stateMatch, other.stateMatch) && - Objects.equals(postalCodeMatch, other.postalCodeMatch) && - Objects.equals( - addressCountryMatch, - other.addressCountryMatch - ) && - Objects.equals(nationalIdMatch, other.nationalIdMatch) && - Objects.equals(dateOfBirthMatch, other.dateOfBirthMatch) && - Objects.equals(summaryScore, other.summaryScore) && - Objects.equals(errorCode, other.errorCode) && - Objects.equals(errorMessage, other.errorMessage) - ); - } - - @Override - public int hashCode() { - return Objects.hash( - firstNameMatch, - lastNameMatch, - addressLinesMatch, - cityMatch, - stateMatch, - postalCodeMatch, - addressCountryMatch, - nationalIdMatch, - dateOfBirthMatch, - summaryScore, - errorCode, - errorMessage - ); - } - } - - @JsonDeserialize(builder = ReassignedNumber.Builder.class) - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @ToString - public static class ReassignedNumber { - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("last_verified_date") - @Getter - private final String lastVerifiedDate; - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("is_number_reassigned") - @Getter - private final String isNumberReassigned; - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("error_code") - @Getter - private final String errorCode; - - private ReassignedNumber(Builder builder) { - this.lastVerifiedDate = builder.lastVerifiedDate; - this.isNumberReassigned = builder.isNumberReassigned; - this.errorCode = builder.errorCode; - } - - public static Builder builder() { - return new Builder(); - } - - public static ReassignedNumber fromJson( - String jsonString, - ObjectMapper mapper - ) throws IOException { - return mapper.readValue(jsonString, ReassignedNumber.class); - } - - @JsonPOJOBuilder(withPrefix = "") - public static class Builder { - - @JsonProperty("last_verified_date") - private String lastVerifiedDate; - - @JsonProperty("is_number_reassigned") - private String isNumberReassigned; - - @JsonProperty("error_code") - private String errorCode; - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("last_verified_date") - public Builder lastVerifiedDate(String lastVerifiedDate) { - this.lastVerifiedDate = lastVerifiedDate; - return this; - } - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("is_number_reassigned") - public Builder isNumberReassigned(String isNumberReassigned) { - this.isNumberReassigned = isNumberReassigned; - return this; - } - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("error_code") - public Builder errorCode(String errorCode) { - this.errorCode = errorCode; - return this; - } - - public ReassignedNumber build() { - return new ReassignedNumber(this); - } - } - - @Override - public boolean equals(final Object o) { - if (this == o) { - return true; - } - - if (o == null || getClass() != o.getClass()) { - return false; - } - - ReassignedNumber other = (ReassignedNumber) o; - return ( - Objects.equals(lastVerifiedDate, other.lastVerifiedDate) && - Objects.equals(isNumberReassigned, other.isNumberReassigned) && - Objects.equals(errorCode, other.errorCode) - ); - } - - @Override - public int hashCode() { - return Objects.hash( - lastVerifiedDate, - isNumberReassigned, - errorCode - ); - } - } - - @JsonDeserialize(builder = LastSimSwap.Builder.class) - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @ToString - public static class LastSimSwap { - - @JsonDeserialize(using = com.twilio.converter.ISO8601Deserializer.class) - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("last_sim_swap_date") - @Getter - private final ZonedDateTime lastSimSwapDate; - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("swapped_period") - @Getter - private final String swappedPeriod; - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("swapped_in_period") - @Getter - private final Boolean swappedInPeriod; - - private LastSimSwap(Builder builder) { - this.lastSimSwapDate = builder.lastSimSwapDate; - this.swappedPeriod = builder.swappedPeriod; - this.swappedInPeriod = builder.swappedInPeriod; - } - - public static Builder builder() { - return new Builder(); - } - - public static LastSimSwap fromJson( - String jsonString, - ObjectMapper mapper - ) throws IOException { - return mapper.readValue(jsonString, LastSimSwap.class); - } - - @JsonPOJOBuilder(withPrefix = "") - public static class Builder { - - @JsonDeserialize( - using = com.twilio.converter.ISO8601Deserializer.class - ) - @JsonProperty("last_sim_swap_date") - private ZonedDateTime lastSimSwapDate; - - @JsonProperty("swapped_period") - private String swappedPeriod; - - @JsonProperty("swapped_in_period") - private Boolean swappedInPeriod; - - @JsonDeserialize( - using = com.twilio.converter.ISO8601Deserializer.class - ) - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("last_sim_swap_date") - public Builder lastSimSwapDate(ZonedDateTime lastSimSwapDate) { - this.lastSimSwapDate = lastSimSwapDate; - return this; - } - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("swapped_period") - public Builder swappedPeriod(String swappedPeriod) { - this.swappedPeriod = swappedPeriod; - return this; - } - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("swapped_in_period") - public Builder swappedInPeriod(Boolean swappedInPeriod) { - this.swappedInPeriod = swappedInPeriod; - return this; - } - - public LastSimSwap build() { - return new LastSimSwap(this); - } - } - - @Override - public boolean equals(final Object o) { - if (this == o) { - return true; - } - - if (o == null || getClass() != o.getClass()) { - return false; - } - - LastSimSwap other = (LastSimSwap) o; - return ( - Objects.equals(lastSimSwapDate, other.lastSimSwapDate) && - Objects.equals(swappedPeriod, other.swappedPeriod) && - Objects.equals(swappedInPeriod, other.swappedInPeriod) - ); - } - - @Override - public int hashCode() { - return Objects.hash( - lastSimSwapDate, - swappedPeriod, - swappedInPeriod - ); - } - } - - @JsonDeserialize(builder = CallerName.Builder.class) - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @ToString - public static class CallerName { - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("caller_name") - @Getter - private final String callerName; - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("caller_type") - @Getter - private final String callerType; - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("error_code") - @Getter - private final Integer errorCode; - - private CallerName(Builder builder) { - this.callerName = builder.callerName; - this.callerType = builder.callerType; - this.errorCode = builder.errorCode; - } - - public static Builder builder() { - return new Builder(); - } - - public static CallerName fromJson( - String jsonString, - ObjectMapper mapper - ) throws IOException { - return mapper.readValue(jsonString, CallerName.class); - } - - @JsonPOJOBuilder(withPrefix = "") - public static class Builder { - - @JsonProperty("caller_name") - private String callerName; - - @JsonProperty("caller_type") - private String callerType; - - @JsonProperty("error_code") - private Integer errorCode; - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("caller_name") - public Builder callerName(String callerName) { - this.callerName = callerName; - return this; - } - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("caller_type") - public Builder callerType(String callerType) { - this.callerType = callerType; - return this; - } - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("error_code") - public Builder errorCode(Integer errorCode) { - this.errorCode = errorCode; - return this; - } - - public CallerName build() { - return new CallerName(this); - } - } - - @Override - public boolean equals(final Object o) { - if (this == o) { - return true; - } - - if (o == null || getClass() != o.getClass()) { - return false; - } - - CallerName other = (CallerName) o; - return ( - Objects.equals(callerName, other.callerName) && - Objects.equals(callerType, other.callerType) && - Objects.equals(errorCode, other.errorCode) - ); - } - - @Override - public int hashCode() { - return Objects.hash(callerName, callerType, errorCode); - } - } - - @JsonDeserialize(builder = CallForwarding.Builder.class) - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @ToString - public static class CallForwarding { - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("call_forwarding_enabled") - @Getter - private final Boolean callForwardingEnabled; - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("error_code") - @Getter - private final Integer errorCode; - - private CallForwarding(Builder builder) { - this.callForwardingEnabled = builder.callForwardingEnabled; - this.errorCode = builder.errorCode; - } - - public static Builder builder() { - return new Builder(); - } - - public static CallForwarding fromJson( - String jsonString, - ObjectMapper mapper - ) throws IOException { - return mapper.readValue(jsonString, CallForwarding.class); - } - - @JsonPOJOBuilder(withPrefix = "") - public static class Builder { - - @JsonProperty("call_forwarding_enabled") - private Boolean callForwardingEnabled; - - @JsonProperty("error_code") - private Integer errorCode; - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("call_forwarding_enabled") - public Builder callForwardingEnabled( - Boolean callForwardingEnabled - ) { - this.callForwardingEnabled = callForwardingEnabled; - return this; - } - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("error_code") - public Builder errorCode(Integer errorCode) { - this.errorCode = errorCode; - return this; - } - - public CallForwarding build() { - return new CallForwarding(this); - } - } - - @Override - public boolean equals(final Object o) { - if (this == o) { - return true; - } - - if (o == null || getClass() != o.getClass()) { - return false; - } - - CallForwarding other = (CallForwarding) o; - return ( - Objects.equals( - callForwardingEnabled, - other.callForwardingEnabled - ) && - Objects.equals(errorCode, other.errorCode) - ); - } - - @Override - public int hashCode() { - return Objects.hash(callForwardingEnabled, errorCode); - } - } - - @JsonDeserialize(builder = LineStatus.Builder.class) - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @ToString - public static class LineStatus { - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("status") - @Getter - private final String status; - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("error_code") - @Getter - private final Integer errorCode; - - private LineStatus(Builder builder) { - this.status = builder.status; - this.errorCode = builder.errorCode; - } - - public static Builder builder() { - return new Builder(); - } - - public static LineStatus fromJson( - String jsonString, - ObjectMapper mapper - ) throws IOException { - return mapper.readValue(jsonString, LineStatus.class); - } - - @JsonPOJOBuilder(withPrefix = "") - public static class Builder { - - @JsonProperty("status") - private String status; - - @JsonProperty("error_code") - private Integer errorCode; - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("status") - public Builder status(String status) { - this.status = status; - return this; - } - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("error_code") - public Builder errorCode(Integer errorCode) { - this.errorCode = errorCode; - return this; - } - - public LineStatus build() { - return new LineStatus(this); - } - } - - @Override - public boolean equals(final Object o) { - if (this == o) { - return true; - } - - if (o == null || getClass() != o.getClass()) { - return false; - } - - LineStatus other = (LineStatus) o; - return ( - Objects.equals(status, other.status) && - Objects.equals(errorCode, other.errorCode) - ); - } - - @Override - public int hashCode() { - return Objects.hash(status, errorCode); - } - } - /** * Converts a JSON String into a PhoneNumber object using the provided ObjectMapper. * @@ -1357,10 +152,10 @@ public static String toJson(Object object, ObjectMapper mapper) { } @Getter - private final CallForwarding callForwarding; + private final Object callForwarding; @Getter - private final CallerName callerName; + private final Object callerName; @Getter private final String callingCountryCode; @@ -1369,13 +164,13 @@ public static String toJson(Object object, ObjectMapper mapper) { private final String countryCode; @Getter - private final IdentityMatch identityMatch; + private final Object identityMatch; @Getter - private final LineStatus lineStatus; + private final Object lineStatus; @Getter - private final LineTypeIntelligence lineTypeIntelligence; + private final Object lineTypeIntelligence; @Getter private final String nationalFormat; @@ -1390,13 +185,13 @@ public static String toJson(Object object, ObjectMapper mapper) { private final Object preFill; @Getter - private final ReassignedNumber reassignedNumber; + private final Object reassignedNumber; @Getter - private final SimSwap simSwap; + private final Object simSwap; @Getter - private final SmsPumpingRisk smsPumpingRisk; + private final Object smsPumpingRisk; @Getter private final URI url; @@ -1409,15 +204,15 @@ public static String toJson(Object object, ObjectMapper mapper) { @JsonCreator private PhoneNumber( - @JsonProperty("call_forwarding") final CallForwarding callForwarding, - @JsonProperty("caller_name") final CallerName callerName, + @JsonProperty("call_forwarding") final Object callForwarding, + @JsonProperty("caller_name") final Object callerName, @JsonProperty("calling_country_code") final String callingCountryCode, @JsonProperty("country_code") final String countryCode, - @JsonProperty("identity_match") final IdentityMatch identityMatch, - @JsonProperty("line_status") final LineStatus lineStatus, + @JsonProperty("identity_match") final Object identityMatch, + @JsonProperty("line_status") final Object lineStatus, @JsonProperty( "line_type_intelligence" - ) final LineTypeIntelligence lineTypeIntelligence, + ) final Object lineTypeIntelligence, @JsonProperty("national_format") final String nationalFormat, @JsonProperty( "phone_number" @@ -1426,11 +221,9 @@ private PhoneNumber( "phone_number_quality_score" ) final Object phoneNumberQualityScore, @JsonProperty("pre_fill") final Object preFill, - @JsonProperty( - "reassigned_number" - ) final ReassignedNumber reassignedNumber, - @JsonProperty("sim_swap") final SimSwap simSwap, - @JsonProperty("sms_pumping_risk") final SmsPumpingRisk smsPumpingRisk, + @JsonProperty("reassigned_number") final Object reassignedNumber, + @JsonProperty("sim_swap") final Object simSwap, + @JsonProperty("sms_pumping_risk") final Object smsPumpingRisk, @JsonProperty("url") final URI url, @JsonProperty("valid") final Boolean valid, @JsonProperty("validation_errors") final List< diff --git a/src/main/java/com/twilio/rest/lookups/v2/Query.java b/src/main/java/com/twilio/rest/lookups/v2/Query.java index 08b5f391b4..d6cbf35d69 100644 --- a/src/main/java/com/twilio/rest/lookups/v2/Query.java +++ b/src/main/java/com/twilio/rest/lookups/v2/Query.java @@ -75,146 +75,110 @@ public static Fields forValue(final String value) { } } - @JsonDeserialize(builder = LookupBatchRequest.Builder.class) + @JsonDeserialize(builder = LineTypeIntelligence.Builder.class) @JsonInclude(JsonInclude.Include.NON_EMPTY) @ToString - public static class LookupBatchRequest { - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("correlation_id") - @Getter - private final String correlationId; - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("phone_number") - @Getter - private final String phoneNumber; + public static class LineTypeIntelligence { @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("fields") + @JsonProperty("type") @Getter - private final List fields; + private final String type; @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("country_code") + @JsonProperty("carrier_name") @Getter - private final String countryCode; + private final String carrierName; @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("identity_match") + @JsonProperty("mobile_country_code") @Getter - private final IdentityMatchParameters identityMatch; + private final String mobileCountryCode; @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("reassigned_number") + @JsonProperty("mobile_network_code") @Getter - private final ReassignedNumberParameters reassignedNumber; + private final String mobileNetworkCode; @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("sms_pumping_risk") + @JsonProperty("error_code") @Getter - private final RiskParameters smsPumpingRisk; + private final Integer errorCode; - private LookupBatchRequest(Builder builder) { - this.correlationId = builder.correlationId; - this.phoneNumber = builder.phoneNumber; - this.fields = builder.fields; - this.countryCode = builder.countryCode; - this.identityMatch = builder.identityMatch; - this.reassignedNumber = builder.reassignedNumber; - this.smsPumpingRisk = builder.smsPumpingRisk; + private LineTypeIntelligence(Builder builder) { + this.type = builder.type; + this.carrierName = builder.carrierName; + this.mobileCountryCode = builder.mobileCountryCode; + this.mobileNetworkCode = builder.mobileNetworkCode; + this.errorCode = builder.errorCode; } - public static Builder builder(final String phoneNumber) { - return new Builder(phoneNumber); + public static Builder builder() { + return new Builder(); } - public static LookupBatchRequest fromJson( + public static LineTypeIntelligence fromJson( String jsonString, ObjectMapper mapper ) throws IOException { - return mapper.readValue(jsonString, LookupBatchRequest.class); + return mapper.readValue(jsonString, LineTypeIntelligence.class); } @JsonPOJOBuilder(withPrefix = "") public static class Builder { - @JsonProperty("correlation_id") - private String correlationId; - - @JsonProperty("phone_number") - private String phoneNumber; - - @JsonProperty("fields") - private List fields; - - @JsonProperty("country_code") - private String countryCode; - - @JsonProperty("identity_match") - private IdentityMatchParameters identityMatch; + @JsonProperty("type") + private String type; - @JsonProperty("reassigned_number") - private ReassignedNumberParameters reassignedNumber; + @JsonProperty("carrier_name") + private String carrierName; - @JsonProperty("sms_pumping_risk") - private RiskParameters smsPumpingRisk; + @JsonProperty("mobile_country_code") + private String mobileCountryCode; - @JsonCreator - public Builder( - @JsonProperty("phone_number") final String phoneNumber - ) { - this.phoneNumber = phoneNumber; - } + @JsonProperty("mobile_network_code") + private String mobileNetworkCode; - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("correlation_id") - public Builder correlationId(String correlationId) { - this.correlationId = correlationId; - return this; - } + @JsonProperty("error_code") + private Integer errorCode; @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("fields") - public Builder fields(List fields) { - this.fields = fields; + @JsonProperty("type") + public Builder type(String type) { + this.type = type; return this; } @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("country_code") - public Builder countryCode(String countryCode) { - this.countryCode = countryCode; + @JsonProperty("carrier_name") + public Builder carrierName(String carrierName) { + this.carrierName = carrierName; return this; } @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("identity_match") - public Builder identityMatch( - IdentityMatchParameters identityMatch - ) { - this.identityMatch = identityMatch; + @JsonProperty("mobile_country_code") + public Builder mobileCountryCode(String mobileCountryCode) { + this.mobileCountryCode = mobileCountryCode; return this; } @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("reassigned_number") - public Builder reassignedNumber( - ReassignedNumberParameters reassignedNumber - ) { - this.reassignedNumber = reassignedNumber; + @JsonProperty("mobile_network_code") + public Builder mobileNetworkCode(String mobileNetworkCode) { + this.mobileNetworkCode = mobileNetworkCode; return this; } @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("sms_pumping_risk") - public Builder smsPumpingRisk(RiskParameters smsPumpingRisk) { - this.smsPumpingRisk = smsPumpingRisk; + @JsonProperty("error_code") + public Builder errorCode(Integer errorCode) { + this.errorCode = errorCode; return this; } - public LookupBatchRequest build() { - return new LookupBatchRequest(this); + public LineTypeIntelligence build() { + return new LineTypeIntelligence(this); } } @@ -228,348 +192,244 @@ public boolean equals(final Object o) { return false; } - LookupBatchRequest other = (LookupBatchRequest) o; + LineTypeIntelligence other = (LineTypeIntelligence) o; return ( - Objects.equals(correlationId, other.correlationId) && - Objects.equals(phoneNumber, other.phoneNumber) && - Objects.equals(fields, other.fields) && - Objects.equals(countryCode, other.countryCode) && - Objects.equals(identityMatch, other.identityMatch) && - Objects.equals(reassignedNumber, other.reassignedNumber) && - Objects.equals(smsPumpingRisk, other.smsPumpingRisk) + Objects.equals(type, other.type) && + Objects.equals(carrierName, other.carrierName) && + Objects.equals(mobileCountryCode, other.mobileCountryCode) && + Objects.equals(mobileNetworkCode, other.mobileNetworkCode) && + Objects.equals(errorCode, other.errorCode) ); } @Override public int hashCode() { return Objects.hash( - correlationId, - phoneNumber, - fields, - countryCode, - identityMatch, - reassignedNumber, - smsPumpingRisk + type, + carrierName, + mobileCountryCode, + mobileNetworkCode, + errorCode ); } } - @JsonDeserialize(builder = LookupBatchResponse.Builder.class) + @JsonDeserialize(builder = IdentityMatch.Builder.class) @JsonInclude(JsonInclude.Include.NON_EMPTY) @ToString - public static class LookupBatchResponse { - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("correlation_id") - @Getter - private final String correlationId; - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("twilio_error_code") - @Getter - private final Integer twilioErrorCode; - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("calling_country_code") - @Getter - private final String callingCountryCode; - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("country_code") - @Getter - private final String countryCode; - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("phone_number") - @Getter - private final String phoneNumber; - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("national_format") - @Getter - private final String nationalFormat; + public static class IdentityMatch { @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("valid") + @JsonProperty("first_name_match") @Getter - private final Boolean valid; + private final String firstNameMatch; @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("validation_errors") + @JsonProperty("last_name_match") @Getter - private final List validationErrors; + private final String lastNameMatch; @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("caller_name") + @JsonProperty("address_line_match") @Getter - private final CallerName callerName; + private final String addressLineMatch; @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("sim_swap") + @JsonProperty("city_match") @Getter - private final SimSwap simSwap; + private final String cityMatch; @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("call_forwarding") + @JsonProperty("state_match") @Getter - private final CallForwarding callForwarding; + private final String stateMatch; @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("line_type_intelligence") + @JsonProperty("postal_code_match") @Getter - private final LineTypeIntelligence lineTypeIntelligence; + private final String postalCodeMatch; @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("line_status") + @JsonProperty("country_code_match") @Getter - private final LineStatus lineStatus; + private final String countryCodeMatch; @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("identity_match") + @JsonProperty("national_id_match") @Getter - private final IdentityMatch identityMatch; + private final String nationalIdMatch; @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("reassigned_number") + @JsonProperty("date_of_birth_match") @Getter - private final ReassignedNumber reassignedNumber; + private final String dateOfBirthMatch; @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("sms_pumping_risk") + @JsonProperty("summary_score") @Getter - private final SmsPumpingRisk smsPumpingRisk; + private final Integer summaryScore; @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("phone_number_quality_score") + @JsonProperty("error_code") @Getter - private final Object phoneNumberQualityScore; + private final Integer errorCode; @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("pre_fill") + @JsonProperty("error_message") @Getter - private final Object preFill; + private final String errorMessage; - private LookupBatchResponse(Builder builder) { - this.correlationId = builder.correlationId; - this.twilioErrorCode = builder.twilioErrorCode; - this.callingCountryCode = builder.callingCountryCode; - this.countryCode = builder.countryCode; - this.phoneNumber = builder.phoneNumber; - this.nationalFormat = builder.nationalFormat; - this.valid = builder.valid; - this.validationErrors = builder.validationErrors; - this.callerName = builder.callerName; - this.simSwap = builder.simSwap; - this.callForwarding = builder.callForwarding; - this.lineTypeIntelligence = builder.lineTypeIntelligence; - this.lineStatus = builder.lineStatus; - this.identityMatch = builder.identityMatch; - this.reassignedNumber = builder.reassignedNumber; - this.smsPumpingRisk = builder.smsPumpingRisk; - this.phoneNumberQualityScore = builder.phoneNumberQualityScore; - this.preFill = builder.preFill; + private IdentityMatch(Builder builder) { + this.firstNameMatch = builder.firstNameMatch; + this.lastNameMatch = builder.lastNameMatch; + this.addressLineMatch = builder.addressLineMatch; + this.cityMatch = builder.cityMatch; + this.stateMatch = builder.stateMatch; + this.postalCodeMatch = builder.postalCodeMatch; + this.countryCodeMatch = builder.countryCodeMatch; + this.nationalIdMatch = builder.nationalIdMatch; + this.dateOfBirthMatch = builder.dateOfBirthMatch; + this.summaryScore = builder.summaryScore; + this.errorCode = builder.errorCode; + this.errorMessage = builder.errorMessage; } public static Builder builder() { return new Builder(); } - public static LookupBatchResponse fromJson( + public static IdentityMatch fromJson( String jsonString, ObjectMapper mapper ) throws IOException { - return mapper.readValue(jsonString, LookupBatchResponse.class); + return mapper.readValue(jsonString, IdentityMatch.class); } @JsonPOJOBuilder(withPrefix = "") public static class Builder { - @JsonProperty("correlation_id") - private String correlationId; + @JsonProperty("first_name_match") + private String firstNameMatch; - @JsonProperty("twilio_error_code") - private Integer twilioErrorCode; + @JsonProperty("last_name_match") + private String lastNameMatch; - @JsonProperty("calling_country_code") - private String callingCountryCode; + @JsonProperty("address_line_match") + private String addressLineMatch; - @JsonProperty("country_code") - private String countryCode; - - @JsonProperty("phone_number") - private String phoneNumber; - - @JsonProperty("national_format") - private String nationalFormat; - - @JsonProperty("valid") - private Boolean valid; - - @JsonProperty("validation_errors") - private List validationErrors; - - @JsonProperty("caller_name") - private CallerName callerName; - - @JsonProperty("sim_swap") - private SimSwap simSwap; - - @JsonProperty("call_forwarding") - private CallForwarding callForwarding; - - @JsonProperty("line_type_intelligence") - private LineTypeIntelligence lineTypeIntelligence; - - @JsonProperty("line_status") - private LineStatus lineStatus; - - @JsonProperty("identity_match") - private IdentityMatch identityMatch; - - @JsonProperty("reassigned_number") - private ReassignedNumber reassignedNumber; - - @JsonProperty("sms_pumping_risk") - private SmsPumpingRisk smsPumpingRisk; + @JsonProperty("city_match") + private String cityMatch; - @JsonProperty("phone_number_quality_score") - private Object phoneNumberQualityScore; + @JsonProperty("state_match") + private String stateMatch; - @JsonProperty("pre_fill") - private Object preFill; + @JsonProperty("postal_code_match") + private String postalCodeMatch; - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("correlation_id") - public Builder correlationId(String correlationId) { - this.correlationId = correlationId; - return this; - } + @JsonProperty("country_code_match") + private String countryCodeMatch; - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("twilio_error_code") - public Builder twilioErrorCode(Integer twilioErrorCode) { - this.twilioErrorCode = twilioErrorCode; - return this; - } + @JsonProperty("national_id_match") + private String nationalIdMatch; - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("calling_country_code") - public Builder callingCountryCode(String callingCountryCode) { - this.callingCountryCode = callingCountryCode; - return this; - } + @JsonProperty("date_of_birth_match") + private String dateOfBirthMatch; - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("country_code") - public Builder countryCode(String countryCode) { - this.countryCode = countryCode; - return this; - } + @JsonProperty("summary_score") + private Integer summaryScore; - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("phone_number") - public Builder phoneNumber(String phoneNumber) { - this.phoneNumber = phoneNumber; - return this; - } + @JsonProperty("error_code") + private Integer errorCode; - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("national_format") - public Builder nationalFormat(String nationalFormat) { - this.nationalFormat = nationalFormat; - return this; - } + @JsonProperty("error_message") + private String errorMessage; @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("valid") - public Builder valid(Boolean valid) { - this.valid = valid; + @JsonProperty("first_name_match") + public Builder firstNameMatch(String firstNameMatch) { + this.firstNameMatch = firstNameMatch; return this; } @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("validation_errors") - public Builder validationErrors(List validationErrors) { - this.validationErrors = validationErrors; + @JsonProperty("last_name_match") + public Builder lastNameMatch(String lastNameMatch) { + this.lastNameMatch = lastNameMatch; return this; } @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("caller_name") - public Builder callerName(CallerName callerName) { - this.callerName = callerName; + @JsonProperty("address_line_match") + public Builder addressLineMatch(String addressLineMatch) { + this.addressLineMatch = addressLineMatch; return this; } @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("sim_swap") - public Builder simSwap(SimSwap simSwap) { - this.simSwap = simSwap; + @JsonProperty("city_match") + public Builder cityMatch(String cityMatch) { + this.cityMatch = cityMatch; return this; } @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("call_forwarding") - public Builder callForwarding(CallForwarding callForwarding) { - this.callForwarding = callForwarding; + @JsonProperty("state_match") + public Builder stateMatch(String stateMatch) { + this.stateMatch = stateMatch; return this; } @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("line_type_intelligence") - public Builder lineTypeIntelligence( - LineTypeIntelligence lineTypeIntelligence - ) { - this.lineTypeIntelligence = lineTypeIntelligence; + @JsonProperty("postal_code_match") + public Builder postalCodeMatch(String postalCodeMatch) { + this.postalCodeMatch = postalCodeMatch; return this; } @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("line_status") - public Builder lineStatus(LineStatus lineStatus) { - this.lineStatus = lineStatus; + @JsonProperty("country_code_match") + public Builder countryCodeMatch(String countryCodeMatch) { + this.countryCodeMatch = countryCodeMatch; return this; } @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("identity_match") - public Builder identityMatch(IdentityMatch identityMatch) { - this.identityMatch = identityMatch; + @JsonProperty("national_id_match") + public Builder nationalIdMatch(String nationalIdMatch) { + this.nationalIdMatch = nationalIdMatch; return this; } @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("reassigned_number") - public Builder reassignedNumber(ReassignedNumber reassignedNumber) { - this.reassignedNumber = reassignedNumber; + @JsonProperty("date_of_birth_match") + public Builder dateOfBirthMatch(String dateOfBirthMatch) { + this.dateOfBirthMatch = dateOfBirthMatch; return this; } @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("sms_pumping_risk") - public Builder smsPumpingRisk(SmsPumpingRisk smsPumpingRisk) { - this.smsPumpingRisk = smsPumpingRisk; + @JsonProperty("summary_score") + public Builder summaryScore(Integer summaryScore) { + this.summaryScore = summaryScore; return this; } @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("phone_number_quality_score") - public Builder phoneNumberQualityScore( - Object phoneNumberQualityScore - ) { - this.phoneNumberQualityScore = phoneNumberQualityScore; + @JsonProperty("error_code") + public Builder errorCode(Integer errorCode) { + this.errorCode = errorCode; return this; } @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("pre_fill") - public Builder preFill(Object preFill) { - this.preFill = preFill; + @JsonProperty("error_message") + public Builder errorMessage(String errorMessage) { + this.errorMessage = errorMessage; return this; } - public LookupBatchResponse build() { - return new LookupBatchResponse(this); + public IdentityMatch build() { + return new IdentityMatch(this); } } @@ -583,95 +443,65 @@ public boolean equals(final Object o) { return false; } - LookupBatchResponse other = (LookupBatchResponse) o; + IdentityMatch other = (IdentityMatch) o; return ( - Objects.equals(correlationId, other.correlationId) && - Objects.equals(twilioErrorCode, other.twilioErrorCode) && - Objects.equals(callingCountryCode, other.callingCountryCode) && - Objects.equals(countryCode, other.countryCode) && - Objects.equals(phoneNumber, other.phoneNumber) && - Objects.equals(nationalFormat, other.nationalFormat) && - Objects.equals(valid, other.valid) && - Objects.equals(validationErrors, other.validationErrors) && - Objects.equals(callerName, other.callerName) && - Objects.equals(simSwap, other.simSwap) && - Objects.equals(callForwarding, other.callForwarding) && - Objects.equals( - lineTypeIntelligence, - other.lineTypeIntelligence - ) && - Objects.equals(lineStatus, other.lineStatus) && - Objects.equals(identityMatch, other.identityMatch) && - Objects.equals(reassignedNumber, other.reassignedNumber) && - Objects.equals(smsPumpingRisk, other.smsPumpingRisk) && - Objects.equals( - phoneNumberQualityScore, - other.phoneNumberQualityScore - ) && - Objects.equals(preFill, other.preFill) + Objects.equals(firstNameMatch, other.firstNameMatch) && + Objects.equals(lastNameMatch, other.lastNameMatch) && + Objects.equals(addressLineMatch, other.addressLineMatch) && + Objects.equals(cityMatch, other.cityMatch) && + Objects.equals(stateMatch, other.stateMatch) && + Objects.equals(postalCodeMatch, other.postalCodeMatch) && + Objects.equals(countryCodeMatch, other.countryCodeMatch) && + Objects.equals(nationalIdMatch, other.nationalIdMatch) && + Objects.equals(dateOfBirthMatch, other.dateOfBirthMatch) && + Objects.equals(summaryScore, other.summaryScore) && + Objects.equals(errorCode, other.errorCode) && + Objects.equals(errorMessage, other.errorMessage) ); } @Override public int hashCode() { return Objects.hash( - correlationId, - twilioErrorCode, - callingCountryCode, - countryCode, - phoneNumber, - nationalFormat, - valid, - validationErrors, - callerName, - simSwap, - callForwarding, - lineTypeIntelligence, - lineStatus, - identityMatch, - reassignedNumber, - smsPumpingRisk, - phoneNumberQualityScore, - preFill + firstNameMatch, + lastNameMatch, + addressLineMatch, + cityMatch, + stateMatch, + postalCodeMatch, + countryCodeMatch, + nationalIdMatch, + dateOfBirthMatch, + summaryScore, + errorCode, + errorMessage ); } } - @JsonDeserialize(builder = LineTypeIntelligence.Builder.class) + @JsonDeserialize(builder = ReassignedNumberResponse.Builder.class) @JsonInclude(JsonInclude.Include.NON_EMPTY) @ToString - public static class LineTypeIntelligence { - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("mobile_country_code") - @Getter - private final String mobileCountryCode; + public static class ReassignedNumberResponse { @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("mobile_network_code") - @Getter - private final String mobileNetworkCode; - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("carrier_name") + @JsonProperty("last_verified_date") @Getter - private final String carrierName; + private final String lastVerifiedDate; @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("type") + @JsonProperty("is_number_reassigned") @Getter - private final String type; + private final String isNumberReassigned; @JsonInclude(JsonInclude.Include.NON_EMPTY) @JsonProperty("error_code") @Getter - private final Integer errorCode; + private final String errorCode; - private LineTypeIntelligence(Builder builder) { - this.mobileCountryCode = builder.mobileCountryCode; - this.mobileNetworkCode = builder.mobileNetworkCode; - this.carrierName = builder.carrierName; - this.type = builder.type; + private ReassignedNumberResponse(Builder builder) { + this.lastVerifiedDate = builder.lastVerifiedDate; + this.isNumberReassigned = builder.isNumberReassigned; this.errorCode = builder.errorCode; } @@ -679,68 +509,48 @@ public static Builder builder() { return new Builder(); } - public static LineTypeIntelligence fromJson( + public static ReassignedNumberResponse fromJson( String jsonString, ObjectMapper mapper ) throws IOException { - return mapper.readValue(jsonString, LineTypeIntelligence.class); + return mapper.readValue(jsonString, ReassignedNumberResponse.class); } @JsonPOJOBuilder(withPrefix = "") public static class Builder { - @JsonProperty("mobile_country_code") - private String mobileCountryCode; - - @JsonProperty("mobile_network_code") - private String mobileNetworkCode; - - @JsonProperty("carrier_name") - private String carrierName; + @JsonProperty("last_verified_date") + private String lastVerifiedDate; - @JsonProperty("type") - private String type; + @JsonProperty("is_number_reassigned") + private String isNumberReassigned; @JsonProperty("error_code") - private Integer errorCode; + private String errorCode; @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("mobile_country_code") - public Builder mobileCountryCode(String mobileCountryCode) { - this.mobileCountryCode = mobileCountryCode; - return this; - } - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("mobile_network_code") - public Builder mobileNetworkCode(String mobileNetworkCode) { - this.mobileNetworkCode = mobileNetworkCode; - return this; - } - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("carrier_name") - public Builder carrierName(String carrierName) { - this.carrierName = carrierName; + @JsonProperty("last_verified_date") + public Builder lastVerifiedDate(String lastVerifiedDate) { + this.lastVerifiedDate = lastVerifiedDate; return this; } @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("type") - public Builder type(String type) { - this.type = type; + @JsonProperty("is_number_reassigned") + public Builder isNumberReassigned(String isNumberReassigned) { + this.isNumberReassigned = isNumberReassigned; return this; } @JsonInclude(JsonInclude.Include.NON_EMPTY) @JsonProperty("error_code") - public Builder errorCode(Integer errorCode) { + public Builder errorCode(String errorCode) { this.errorCode = errorCode; return this; } - public LineTypeIntelligence build() { - return new LineTypeIntelligence(this); + public ReassignedNumberResponse build() { + return new ReassignedNumberResponse(this); } } @@ -754,12 +564,10 @@ public boolean equals(final Object o) { return false; } - LineTypeIntelligence other = (LineTypeIntelligence) o; + ReassignedNumberResponse other = (ReassignedNumberResponse) o; return ( - Objects.equals(mobileCountryCode, other.mobileCountryCode) && - Objects.equals(mobileNetworkCode, other.mobileNetworkCode) && - Objects.equals(carrierName, other.carrierName) && - Objects.equals(type, other.type) && + Objects.equals(lastVerifiedDate, other.lastVerifiedDate) && + Objects.equals(isNumberReassigned, other.isNumberReassigned) && Objects.equals(errorCode, other.errorCode) ); } @@ -767,231 +575,211 @@ public boolean equals(final Object o) { @Override public int hashCode() { return Objects.hash( - mobileCountryCode, - mobileNetworkCode, - carrierName, - type, + lastVerifiedDate, + isNumberReassigned, errorCode ); } } - @JsonDeserialize(builder = IdentityMatch.Builder.class) + @JsonDeserialize(builder = ReassignedNumberRequest.Builder.class) @JsonInclude(JsonInclude.Include.NON_EMPTY) @ToString - public static class IdentityMatch { + public static class ReassignedNumberRequest { @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("first_name_match") + @JsonProperty("last_verified_date") @Getter - private final String firstNameMatch; + private final String lastVerifiedDate; - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("last_name_match") - @Getter - private final String lastNameMatch; + private ReassignedNumberRequest(Builder builder) { + this.lastVerifiedDate = builder.lastVerifiedDate; + } - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("address_lines_match") - @Getter - private final String addressLinesMatch; + public static Builder builder() { + return new Builder(); + } - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("city_match") - @Getter - private final String cityMatch; + public static ReassignedNumberRequest fromJson( + String jsonString, + ObjectMapper mapper + ) throws IOException { + return mapper.readValue(jsonString, ReassignedNumberRequest.class); + } - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("state_match") - @Getter - private final String stateMatch; + @JsonPOJOBuilder(withPrefix = "") + public static class Builder { - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("postal_code_match") - @Getter - private final String postalCodeMatch; + @JsonProperty("last_verified_date") + private String lastVerifiedDate; - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("address_country_match") - @Getter - private final String addressCountryMatch; + @JsonInclude(JsonInclude.Include.NON_EMPTY) + @JsonProperty("last_verified_date") + public Builder lastVerifiedDate(String lastVerifiedDate) { + this.lastVerifiedDate = lastVerifiedDate; + return this; + } - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("national_id_match") - @Getter - private final String nationalIdMatch; + public ReassignedNumberRequest build() { + return new ReassignedNumberRequest(this); + } + } - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("date_of_birth_match") - @Getter - private final String dateOfBirthMatch; + @Override + public boolean equals(final Object o) { + if (this == o) { + return true; + } - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("summary_score") - @Getter - private final Integer summaryScore; + if (o == null || getClass() != o.getClass()) { + return false; + } - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("error_code") - @Getter - private final Integer errorCode; + ReassignedNumberRequest other = (ReassignedNumberRequest) o; + return (Objects.equals(lastVerifiedDate, other.lastVerifiedDate)); + } + + @Override + public int hashCode() { + return Objects.hash(lastVerifiedDate); + } + } + + @JsonDeserialize(builder = LookupRequest1.Builder.class) + @JsonInclude(JsonInclude.Include.NON_EMPTY) + @ToString + public static class LookupRequest1 { @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("error_message") + @JsonProperty("phone_numbers") @Getter - private final String errorMessage; + private final List phoneNumbers; - private IdentityMatch(Builder builder) { - this.firstNameMatch = builder.firstNameMatch; - this.lastNameMatch = builder.lastNameMatch; - this.addressLinesMatch = builder.addressLinesMatch; - this.cityMatch = builder.cityMatch; - this.stateMatch = builder.stateMatch; - this.postalCodeMatch = builder.postalCodeMatch; - this.addressCountryMatch = builder.addressCountryMatch; - this.nationalIdMatch = builder.nationalIdMatch; - this.dateOfBirthMatch = builder.dateOfBirthMatch; - this.summaryScore = builder.summaryScore; - this.errorCode = builder.errorCode; - this.errorMessage = builder.errorMessage; + private LookupRequest1(Builder builder) { + this.phoneNumbers = builder.phoneNumbers; } public static Builder builder() { return new Builder(); } - public static IdentityMatch fromJson( + public static LookupRequest1 fromJson( String jsonString, ObjectMapper mapper ) throws IOException { - return mapper.readValue(jsonString, IdentityMatch.class); + return mapper.readValue(jsonString, LookupRequest1.class); } @JsonPOJOBuilder(withPrefix = "") public static class Builder { - @JsonProperty("first_name_match") - private String firstNameMatch; + @JsonProperty("phone_numbers") + private List phoneNumbers; - @JsonProperty("last_name_match") - private String lastNameMatch; + public LookupRequest1 build() { + return new LookupRequest1(this); + } + } - @JsonProperty("address_lines_match") - private String addressLinesMatch; + @Override + public boolean equals(final Object o) { + if (this == o) { + return true; + } - @JsonProperty("city_match") - private String cityMatch; + if (o == null || getClass() != o.getClass()) { + return false; + } - @JsonProperty("state_match") - private String stateMatch; + LookupRequest1 other = (LookupRequest1) o; + return (Objects.equals(phoneNumbers, other.phoneNumbers)); + } - @JsonProperty("postal_code_match") - private String postalCodeMatch; + @Override + public int hashCode() { + return Objects.hash(phoneNumbers); + } + } - @JsonProperty("address_country_match") - private String addressCountryMatch; + @JsonDeserialize(builder = LastSimSwap.Builder.class) + @JsonInclude(JsonInclude.Include.NON_EMPTY) + @ToString + public static class LastSimSwap { - @JsonProperty("national_id_match") - private String nationalIdMatch; + @JsonDeserialize(using = com.twilio.converter.ISO8601Deserializer.class) + @JsonInclude(JsonInclude.Include.NON_EMPTY) + @JsonProperty("last_sim_swap_date") + @Getter + private final ZonedDateTime lastSimSwapDate; - @JsonProperty("date_of_birth_match") - private String dateOfBirthMatch; + @JsonInclude(JsonInclude.Include.NON_EMPTY) + @JsonProperty("swapped_period") + @Getter + private final String swappedPeriod; - @JsonProperty("summary_score") - private Integer summaryScore; + @JsonInclude(JsonInclude.Include.NON_EMPTY) + @JsonProperty("swapped_in_period") + @Getter + private final Boolean swappedInPeriod; - @JsonProperty("error_code") - private Integer errorCode; + private LastSimSwap(Builder builder) { + this.lastSimSwapDate = builder.lastSimSwapDate; + this.swappedPeriod = builder.swappedPeriod; + this.swappedInPeriod = builder.swappedInPeriod; + } - @JsonProperty("error_message") - private String errorMessage; + public static Builder builder() { + return new Builder(); + } - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("first_name_match") - public Builder firstNameMatch(String firstNameMatch) { - this.firstNameMatch = firstNameMatch; - return this; - } + public static LastSimSwap fromJson( + String jsonString, + ObjectMapper mapper + ) throws IOException { + return mapper.readValue(jsonString, LastSimSwap.class); + } - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("last_name_match") - public Builder lastNameMatch(String lastNameMatch) { - this.lastNameMatch = lastNameMatch; - return this; - } + @JsonPOJOBuilder(withPrefix = "") + public static class Builder { + + @JsonDeserialize( + using = com.twilio.converter.ISO8601Deserializer.class + ) + @JsonProperty("last_sim_swap_date") + private ZonedDateTime lastSimSwapDate; + + @JsonProperty("swapped_period") + private String swappedPeriod; + + @JsonProperty("swapped_in_period") + private Boolean swappedInPeriod; + @JsonDeserialize( + using = com.twilio.converter.ISO8601Deserializer.class + ) @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("address_lines_match") - public Builder addressLinesMatch(String addressLinesMatch) { - this.addressLinesMatch = addressLinesMatch; + @JsonProperty("last_sim_swap_date") + public Builder lastSimSwapDate(ZonedDateTime lastSimSwapDate) { + this.lastSimSwapDate = lastSimSwapDate; return this; } @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("city_match") - public Builder cityMatch(String cityMatch) { - this.cityMatch = cityMatch; + @JsonProperty("swapped_period") + public Builder swappedPeriod(String swappedPeriod) { + this.swappedPeriod = swappedPeriod; return this; } @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("state_match") - public Builder stateMatch(String stateMatch) { - this.stateMatch = stateMatch; + @JsonProperty("swapped_in_period") + public Builder swappedInPeriod(Boolean swappedInPeriod) { + this.swappedInPeriod = swappedInPeriod; return this; } - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("postal_code_match") - public Builder postalCodeMatch(String postalCodeMatch) { - this.postalCodeMatch = postalCodeMatch; - return this; - } - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("address_country_match") - public Builder addressCountryMatch(String addressCountryMatch) { - this.addressCountryMatch = addressCountryMatch; - return this; - } - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("national_id_match") - public Builder nationalIdMatch(String nationalIdMatch) { - this.nationalIdMatch = nationalIdMatch; - return this; - } - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("date_of_birth_match") - public Builder dateOfBirthMatch(String dateOfBirthMatch) { - this.dateOfBirthMatch = dateOfBirthMatch; - return this; - } - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("summary_score") - public Builder summaryScore(Integer summaryScore) { - this.summaryScore = summaryScore; - return this; - } - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("error_code") - public Builder errorCode(Integer errorCode) { - this.errorCode = errorCode; - return this; - } - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("error_message") - public Builder errorMessage(String errorMessage) { - this.errorMessage = errorMessage; - return this; - } - - public IdentityMatch build() { - return new IdentityMatch(this); + public LastSimSwap build() { + return new LastSimSwap(this); } } @@ -1005,134 +793,41 @@ public boolean equals(final Object o) { return false; } - IdentityMatch other = (IdentityMatch) o; + LastSimSwap other = (LastSimSwap) o; return ( - Objects.equals(firstNameMatch, other.firstNameMatch) && - Objects.equals(lastNameMatch, other.lastNameMatch) && - Objects.equals(addressLinesMatch, other.addressLinesMatch) && - Objects.equals(cityMatch, other.cityMatch) && - Objects.equals(stateMatch, other.stateMatch) && - Objects.equals(postalCodeMatch, other.postalCodeMatch) && - Objects.equals( - addressCountryMatch, - other.addressCountryMatch - ) && - Objects.equals(nationalIdMatch, other.nationalIdMatch) && - Objects.equals(dateOfBirthMatch, other.dateOfBirthMatch) && - Objects.equals(summaryScore, other.summaryScore) && - Objects.equals(errorCode, other.errorCode) && - Objects.equals(errorMessage, other.errorMessage) + Objects.equals(lastSimSwapDate, other.lastSimSwapDate) && + Objects.equals(swappedPeriod, other.swappedPeriod) && + Objects.equals(swappedInPeriod, other.swappedInPeriod) ); } @Override public int hashCode() { return Objects.hash( - firstNameMatch, - lastNameMatch, - addressLinesMatch, - cityMatch, - stateMatch, - postalCodeMatch, - addressCountryMatch, - nationalIdMatch, - dateOfBirthMatch, - summaryScore, - errorCode, - errorMessage - ); - } - } - - @JsonDeserialize(builder = ReassignedNumberParameters.Builder.class) - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @ToString - public static class ReassignedNumberParameters { - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("last_verified_date") - @Getter - private final String lastVerifiedDate; - - private ReassignedNumberParameters(Builder builder) { - this.lastVerifiedDate = builder.lastVerifiedDate; - } - - public static Builder builder() { - return new Builder(); - } - - public static ReassignedNumberParameters fromJson( - String jsonString, - ObjectMapper mapper - ) throws IOException { - return mapper.readValue( - jsonString, - ReassignedNumberParameters.class + lastSimSwapDate, + swappedPeriod, + swappedInPeriod ); } - - @JsonPOJOBuilder(withPrefix = "") - public static class Builder { - - @JsonProperty("last_verified_date") - private String lastVerifiedDate; - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("last_verified_date") - public Builder lastVerifiedDate(String lastVerifiedDate) { - this.lastVerifiedDate = lastVerifiedDate; - return this; - } - - public ReassignedNumberParameters build() { - return new ReassignedNumberParameters(this); - } - } - - @Override - public boolean equals(final Object o) { - if (this == o) { - return true; - } - - if (o == null || getClass() != o.getClass()) { - return false; - } - - ReassignedNumberParameters other = (ReassignedNumberParameters) o; - return (Objects.equals(lastVerifiedDate, other.lastVerifiedDate)); - } - - @Override - public int hashCode() { - return Objects.hash(lastVerifiedDate); - } } - @JsonDeserialize(builder = ReassignedNumber.Builder.class) + @JsonDeserialize(builder = LineStatus.Builder.class) @JsonInclude(JsonInclude.Include.NON_EMPTY) @ToString - public static class ReassignedNumber { - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("last_verified_date") - @Getter - private final String lastVerifiedDate; + public static class LineStatus { @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("is_number_reassigned") + @JsonProperty("status") @Getter - private final String isNumberReassigned; + private final String status; @JsonInclude(JsonInclude.Include.NON_EMPTY) @JsonProperty("error_code") @Getter - private final String errorCode; + private final Integer errorCode; - private ReassignedNumber(Builder builder) { - this.lastVerifiedDate = builder.lastVerifiedDate; - this.isNumberReassigned = builder.isNumberReassigned; + private LineStatus(Builder builder) { + this.status = builder.status; this.errorCode = builder.errorCode; } @@ -1140,48 +835,38 @@ public static Builder builder() { return new Builder(); } - public static ReassignedNumber fromJson( + public static LineStatus fromJson( String jsonString, ObjectMapper mapper ) throws IOException { - return mapper.readValue(jsonString, ReassignedNumber.class); + return mapper.readValue(jsonString, LineStatus.class); } @JsonPOJOBuilder(withPrefix = "") public static class Builder { - @JsonProperty("last_verified_date") - private String lastVerifiedDate; - - @JsonProperty("is_number_reassigned") - private String isNumberReassigned; + @JsonProperty("status") + private String status; @JsonProperty("error_code") - private String errorCode; - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("last_verified_date") - public Builder lastVerifiedDate(String lastVerifiedDate) { - this.lastVerifiedDate = lastVerifiedDate; - return this; - } + private Integer errorCode; @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("is_number_reassigned") - public Builder isNumberReassigned(String isNumberReassigned) { - this.isNumberReassigned = isNumberReassigned; + @JsonProperty("status") + public Builder status(String status) { + this.status = status; return this; } @JsonInclude(JsonInclude.Include.NON_EMPTY) @JsonProperty("error_code") - public Builder errorCode(String errorCode) { + public Builder errorCode(Integer errorCode) { this.errorCode = errorCode; return this; } - public ReassignedNumber build() { - return new ReassignedNumber(this); + public LineStatus build() { + return new LineStatus(this); } } @@ -1195,35 +880,30 @@ public boolean equals(final Object o) { return false; } - ReassignedNumber other = (ReassignedNumber) o; + LineStatus other = (LineStatus) o; return ( - Objects.equals(lastVerifiedDate, other.lastVerifiedDate) && - Objects.equals(isNumberReassigned, other.isNumberReassigned) && + Objects.equals(status, other.status) && Objects.equals(errorCode, other.errorCode) ); } @Override public int hashCode() { - return Objects.hash( - lastVerifiedDate, - isNumberReassigned, - errorCode - ); + return Objects.hash(status, errorCode); } } - @JsonDeserialize(builder = RiskParameters.Builder.class) + @JsonDeserialize(builder = SmsPumpingRiskParameters.Builder.class) @JsonInclude(JsonInclude.Include.NON_EMPTY) @ToString - public static class RiskParameters { + public static class SmsPumpingRiskParameters { @JsonInclude(JsonInclude.Include.NON_EMPTY) @JsonProperty("partner_sub_id") @Getter private final String partnerSubId; - private RiskParameters(Builder builder) { + private SmsPumpingRiskParameters(Builder builder) { this.partnerSubId = builder.partnerSubId; } @@ -1231,11 +911,11 @@ public static Builder builder() { return new Builder(); } - public static RiskParameters fromJson( + public static SmsPumpingRiskParameters fromJson( String jsonString, ObjectMapper mapper ) throws IOException { - return mapper.readValue(jsonString, RiskParameters.class); + return mapper.readValue(jsonString, SmsPumpingRiskParameters.class); } @JsonPOJOBuilder(withPrefix = "") @@ -1251,8 +931,8 @@ public Builder partnerSubId(String partnerSubId) { return this; } - public RiskParameters build() { - return new RiskParameters(this); + public SmsPumpingRiskParameters build() { + return new SmsPumpingRiskParameters(this); } } @@ -1266,7 +946,7 @@ public boolean equals(final Object o) { return false; } - RiskParameters other = (RiskParameters) o; + SmsPumpingRiskParameters other = (SmsPumpingRiskParameters) o; return (Objects.equals(partnerSubId, other.partnerSubId)); } @@ -1276,231 +956,290 @@ public int hashCode() { } } - @JsonDeserialize(builder = LastSimSwap.Builder.class) + @JsonDeserialize(builder = LookupResponseWithCorId.Builder.class) @JsonInclude(JsonInclude.Include.NON_EMPTY) @ToString - public static class LastSimSwap { + public static class LookupResponseWithCorId { - @JsonDeserialize(using = com.twilio.converter.ISO8601Deserializer.class) @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("last_sim_swap_date") + @JsonProperty("correlation_id") @Getter - private final ZonedDateTime lastSimSwapDate; + private final String correlationId; @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("swapped_period") + @JsonProperty("twilio_error_code") @Getter - private final String swappedPeriod; + private final Integer twilioErrorCode; @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("swapped_in_period") + @JsonProperty("calling_country_code") @Getter - private final Boolean swappedInPeriod; - - private LastSimSwap(Builder builder) { - this.lastSimSwapDate = builder.lastSimSwapDate; - this.swappedPeriod = builder.swappedPeriod; - this.swappedInPeriod = builder.swappedInPeriod; - } - - public static Builder builder() { - return new Builder(); - } - - public static LastSimSwap fromJson( - String jsonString, - ObjectMapper mapper - ) throws IOException { - return mapper.readValue(jsonString, LastSimSwap.class); - } - - @JsonPOJOBuilder(withPrefix = "") - public static class Builder { - - @JsonDeserialize( - using = com.twilio.converter.ISO8601Deserializer.class - ) - @JsonProperty("last_sim_swap_date") - private ZonedDateTime lastSimSwapDate; + private final String callingCountryCode; - @JsonProperty("swapped_period") - private String swappedPeriod; + @JsonInclude(JsonInclude.Include.NON_EMPTY) + @JsonProperty("country_code") + @Getter + private final String countryCode; - @JsonProperty("swapped_in_period") - private Boolean swappedInPeriod; + @JsonInclude(JsonInclude.Include.NON_EMPTY) + @JsonProperty("phone_number") + @Getter + private final String phoneNumber; - @JsonDeserialize( - using = com.twilio.converter.ISO8601Deserializer.class - ) - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("last_sim_swap_date") - public Builder lastSimSwapDate(ZonedDateTime lastSimSwapDate) { - this.lastSimSwapDate = lastSimSwapDate; - return this; - } + @JsonInclude(JsonInclude.Include.NON_EMPTY) + @JsonProperty("national_format") + @Getter + private final String nationalFormat; - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("swapped_period") - public Builder swappedPeriod(String swappedPeriod) { - this.swappedPeriod = swappedPeriod; - return this; - } + @JsonInclude(JsonInclude.Include.NON_EMPTY) + @JsonProperty("valid") + @Getter + private final Boolean valid; - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("swapped_in_period") - public Builder swappedInPeriod(Boolean swappedInPeriod) { - this.swappedInPeriod = swappedInPeriod; - return this; - } + @JsonInclude(JsonInclude.Include.NON_EMPTY) + @JsonProperty("validation_errors") + @Getter + private final List validationErrors; - public LastSimSwap build() { - return new LastSimSwap(this); - } - } + @JsonInclude(JsonInclude.Include.NON_EMPTY) + @JsonProperty("caller_name") + @Getter + private final CallerName callerName; - @Override - public boolean equals(final Object o) { - if (this == o) { - return true; - } + @JsonInclude(JsonInclude.Include.NON_EMPTY) + @JsonProperty("sim_swap") + @Getter + private final SimSwap simSwap; - if (o == null || getClass() != o.getClass()) { - return false; - } + @JsonInclude(JsonInclude.Include.NON_EMPTY) + @JsonProperty("call_forwarding") + @Getter + private final CallForwarding callForwarding; - LastSimSwap other = (LastSimSwap) o; - return ( - Objects.equals(lastSimSwapDate, other.lastSimSwapDate) && - Objects.equals(swappedPeriod, other.swappedPeriod) && - Objects.equals(swappedInPeriod, other.swappedInPeriod) - ); - } + @JsonInclude(JsonInclude.Include.NON_EMPTY) + @JsonProperty("line_type_intelligence") + @Getter + private final LineTypeIntelligence lineTypeIntelligence; - @Override - public int hashCode() { - return Objects.hash( - lastSimSwapDate, - swappedPeriod, - swappedInPeriod - ); - } - } + @JsonInclude(JsonInclude.Include.NON_EMPTY) + @JsonProperty("line_status") + @Getter + private final LineStatus lineStatus; - @JsonDeserialize(builder = LineStatus.Builder.class) - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @ToString - public static class LineStatus { + @JsonInclude(JsonInclude.Include.NON_EMPTY) + @JsonProperty("identity_match") + @Getter + private final IdentityMatch identityMatch; @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("status") + @JsonProperty("reassigned_number") @Getter - private final String status; + private final ReassignedNumberResponse reassignedNumber; @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("error_code") + @JsonProperty("sms_pumping_risk") @Getter - private final Integer errorCode; + private final SmsPumpingRisk smsPumpingRisk; - private LineStatus(Builder builder) { - this.status = builder.status; - this.errorCode = builder.errorCode; + private LookupResponseWithCorId(Builder builder) { + this.correlationId = builder.correlationId; + this.twilioErrorCode = builder.twilioErrorCode; + this.callingCountryCode = builder.callingCountryCode; + this.countryCode = builder.countryCode; + this.phoneNumber = builder.phoneNumber; + this.nationalFormat = builder.nationalFormat; + this.valid = builder.valid; + this.validationErrors = builder.validationErrors; + this.callerName = builder.callerName; + this.simSwap = builder.simSwap; + this.callForwarding = builder.callForwarding; + this.lineTypeIntelligence = builder.lineTypeIntelligence; + this.lineStatus = builder.lineStatus; + this.identityMatch = builder.identityMatch; + this.reassignedNumber = builder.reassignedNumber; + this.smsPumpingRisk = builder.smsPumpingRisk; } public static Builder builder() { return new Builder(); } - public static LineStatus fromJson( + public static LookupResponseWithCorId fromJson( String jsonString, ObjectMapper mapper ) throws IOException { - return mapper.readValue(jsonString, LineStatus.class); + return mapper.readValue(jsonString, LookupResponseWithCorId.class); } @JsonPOJOBuilder(withPrefix = "") public static class Builder { - @JsonProperty("status") - private String status; + @JsonProperty("correlation_id") + private String correlationId; - @JsonProperty("error_code") - private Integer errorCode; + @JsonProperty("twilio_error_code") + private Integer twilioErrorCode; + + @JsonProperty("calling_country_code") + private String callingCountryCode; + + @JsonProperty("country_code") + private String countryCode; + + @JsonProperty("phone_number") + private String phoneNumber; + + @JsonProperty("national_format") + private String nationalFormat; + + @JsonProperty("valid") + private Boolean valid; + + @JsonProperty("validation_errors") + private List validationErrors; + + @JsonProperty("caller_name") + private CallerName callerName; + + @JsonProperty("sim_swap") + private SimSwap simSwap; + + @JsonProperty("call_forwarding") + private CallForwarding callForwarding; + + @JsonProperty("line_type_intelligence") + private LineTypeIntelligence lineTypeIntelligence; + + @JsonProperty("line_status") + private LineStatus lineStatus; + + @JsonProperty("identity_match") + private IdentityMatch identityMatch; + + @JsonProperty("reassigned_number") + private ReassignedNumberResponse reassignedNumber; + + @JsonProperty("sms_pumping_risk") + private SmsPumpingRisk smsPumpingRisk; @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("status") - public Builder status(String status) { - this.status = status; + @JsonProperty("correlation_id") + public Builder correlationId(String correlationId) { + this.correlationId = correlationId; return this; } @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("error_code") - public Builder errorCode(Integer errorCode) { - this.errorCode = errorCode; + @JsonProperty("twilio_error_code") + public Builder twilioErrorCode(Integer twilioErrorCode) { + this.twilioErrorCode = twilioErrorCode; return this; } - public LineStatus build() { - return new LineStatus(this); + @JsonInclude(JsonInclude.Include.NON_EMPTY) + @JsonProperty("calling_country_code") + public Builder callingCountryCode(String callingCountryCode) { + this.callingCountryCode = callingCountryCode; + return this; } - } - @Override - public boolean equals(final Object o) { - if (this == o) { - return true; + @JsonInclude(JsonInclude.Include.NON_EMPTY) + @JsonProperty("country_code") + public Builder countryCode(String countryCode) { + this.countryCode = countryCode; + return this; } - if (o == null || getClass() != o.getClass()) { - return false; + @JsonInclude(JsonInclude.Include.NON_EMPTY) + @JsonProperty("phone_number") + public Builder phoneNumber(String phoneNumber) { + this.phoneNumber = phoneNumber; + return this; } - LineStatus other = (LineStatus) o; - return ( - Objects.equals(status, other.status) && - Objects.equals(errorCode, other.errorCode) - ); - } + @JsonInclude(JsonInclude.Include.NON_EMPTY) + @JsonProperty("national_format") + public Builder nationalFormat(String nationalFormat) { + this.nationalFormat = nationalFormat; + return this; + } - @Override - public int hashCode() { - return Objects.hash(status, errorCode); - } - } + @JsonInclude(JsonInclude.Include.NON_EMPTY) + @JsonProperty("valid") + public Builder valid(Boolean valid) { + this.valid = valid; + return this; + } - @JsonDeserialize(builder = LookupRequest.Builder.class) - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @ToString - public static class LookupRequest { + @JsonInclude(JsonInclude.Include.NON_EMPTY) + @JsonProperty("validation_errors") + public Builder validationErrors(List validationErrors) { + this.validationErrors = validationErrors; + return this; + } - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("phone_numbers") - @Getter - private final List phoneNumbers; + @JsonInclude(JsonInclude.Include.NON_EMPTY) + @JsonProperty("caller_name") + public Builder callerName(CallerName callerName) { + this.callerName = callerName; + return this; + } + + @JsonInclude(JsonInclude.Include.NON_EMPTY) + @JsonProperty("sim_swap") + public Builder simSwap(SimSwap simSwap) { + this.simSwap = simSwap; + return this; + } + + @JsonInclude(JsonInclude.Include.NON_EMPTY) + @JsonProperty("call_forwarding") + public Builder callForwarding(CallForwarding callForwarding) { + this.callForwarding = callForwarding; + return this; + } - private LookupRequest(Builder builder) { - this.phoneNumbers = builder.phoneNumbers; - } + @JsonInclude(JsonInclude.Include.NON_EMPTY) + @JsonProperty("line_type_intelligence") + public Builder lineTypeIntelligence( + LineTypeIntelligence lineTypeIntelligence + ) { + this.lineTypeIntelligence = lineTypeIntelligence; + return this; + } - public static Builder builder() { - return new Builder(); - } + @JsonInclude(JsonInclude.Include.NON_EMPTY) + @JsonProperty("line_status") + public Builder lineStatus(LineStatus lineStatus) { + this.lineStatus = lineStatus; + return this; + } - public static LookupRequest fromJson( - String jsonString, - ObjectMapper mapper - ) throws IOException { - return mapper.readValue(jsonString, LookupRequest.class); - } + @JsonInclude(JsonInclude.Include.NON_EMPTY) + @JsonProperty("identity_match") + public Builder identityMatch(IdentityMatch identityMatch) { + this.identityMatch = identityMatch; + return this; + } - @JsonPOJOBuilder(withPrefix = "") - public static class Builder { + @JsonInclude(JsonInclude.Include.NON_EMPTY) + @JsonProperty("reassigned_number") + public Builder reassignedNumber( + ReassignedNumberResponse reassignedNumber + ) { + this.reassignedNumber = reassignedNumber; + return this; + } - @JsonProperty("phone_numbers") - private List phoneNumbers; + @JsonInclude(JsonInclude.Include.NON_EMPTY) + @JsonProperty("sms_pumping_risk") + public Builder smsPumpingRisk(SmsPumpingRisk smsPumpingRisk) { + this.smsPumpingRisk = smsPumpingRisk; + return this; + } - public LookupRequest build() { - return new LookupRequest(this); + public LookupResponseWithCorId build() { + return new LookupResponseWithCorId(this); } } @@ -1514,13 +1253,50 @@ public boolean equals(final Object o) { return false; } - LookupRequest other = (LookupRequest) o; - return (Objects.equals(phoneNumbers, other.phoneNumbers)); + LookupResponseWithCorId other = (LookupResponseWithCorId) o; + return ( + Objects.equals(correlationId, other.correlationId) && + Objects.equals(twilioErrorCode, other.twilioErrorCode) && + Objects.equals(callingCountryCode, other.callingCountryCode) && + Objects.equals(countryCode, other.countryCode) && + Objects.equals(phoneNumber, other.phoneNumber) && + Objects.equals(nationalFormat, other.nationalFormat) && + Objects.equals(valid, other.valid) && + Objects.equals(validationErrors, other.validationErrors) && + Objects.equals(callerName, other.callerName) && + Objects.equals(simSwap, other.simSwap) && + Objects.equals(callForwarding, other.callForwarding) && + Objects.equals( + lineTypeIntelligence, + other.lineTypeIntelligence + ) && + Objects.equals(lineStatus, other.lineStatus) && + Objects.equals(identityMatch, other.identityMatch) && + Objects.equals(reassignedNumber, other.reassignedNumber) && + Objects.equals(smsPumpingRisk, other.smsPumpingRisk) + ); } @Override public int hashCode() { - return Objects.hash(phoneNumbers); + return Objects.hash( + correlationId, + twilioErrorCode, + callingCountryCode, + countryCode, + phoneNumber, + nationalFormat, + valid, + validationErrors, + callerName, + simSwap, + callForwarding, + lineTypeIntelligence, + lineStatus, + identityMatch, + reassignedNumber, + smsPumpingRisk + ); } } @@ -2065,6 +1841,187 @@ public int hashCode() { } } + @JsonDeserialize(builder = LookupRequestWithCorId.Builder.class) + @JsonInclude(JsonInclude.Include.NON_EMPTY) + @ToString + public static class LookupRequestWithCorId { + + @JsonInclude(JsonInclude.Include.NON_EMPTY) + @JsonProperty("correlation_id") + @Getter + private final String correlationId; + + @JsonInclude(JsonInclude.Include.NON_EMPTY) + @JsonProperty("phone_number") + @Getter + private final String phoneNumber; + + @JsonInclude(JsonInclude.Include.NON_EMPTY) + @JsonProperty("fields") + @Getter + private final List fields; + + @JsonInclude(JsonInclude.Include.NON_EMPTY) + @JsonProperty("country_code") + @Getter + private final String countryCode; + + @JsonInclude(JsonInclude.Include.NON_EMPTY) + @JsonProperty("identity_match") + @Getter + private final IdentityMatchParameters identityMatch; + + @JsonInclude(JsonInclude.Include.NON_EMPTY) + @JsonProperty("reassigned_number") + @Getter + private final ReassignedNumberRequest reassignedNumber; + + @JsonInclude(JsonInclude.Include.NON_EMPTY) + @JsonProperty("sms_pumping_risk") + @Getter + private final SmsPumpingRiskParameters smsPumpingRisk; + + private LookupRequestWithCorId(Builder builder) { + this.correlationId = builder.correlationId; + this.phoneNumber = builder.phoneNumber; + this.fields = builder.fields; + this.countryCode = builder.countryCode; + this.identityMatch = builder.identityMatch; + this.reassignedNumber = builder.reassignedNumber; + this.smsPumpingRisk = builder.smsPumpingRisk; + } + + public static Builder builder(final String phoneNumber) { + return new Builder(phoneNumber); + } + + public static LookupRequestWithCorId fromJson( + String jsonString, + ObjectMapper mapper + ) throws IOException { + return mapper.readValue(jsonString, LookupRequestWithCorId.class); + } + + @JsonPOJOBuilder(withPrefix = "") + public static class Builder { + + @JsonProperty("correlation_id") + private String correlationId; + + @JsonProperty("phone_number") + private String phoneNumber; + + @JsonProperty("fields") + private List fields; + + @JsonProperty("country_code") + private String countryCode; + + @JsonProperty("identity_match") + private IdentityMatchParameters identityMatch; + + @JsonProperty("reassigned_number") + private ReassignedNumberRequest reassignedNumber; + + @JsonProperty("sms_pumping_risk") + private SmsPumpingRiskParameters smsPumpingRisk; + + @JsonCreator + public Builder( + @JsonProperty("phone_number") final String phoneNumber + ) { + this.phoneNumber = phoneNumber; + } + + @JsonInclude(JsonInclude.Include.NON_EMPTY) + @JsonProperty("correlation_id") + public Builder correlationId(String correlationId) { + this.correlationId = correlationId; + return this; + } + + @JsonInclude(JsonInclude.Include.NON_EMPTY) + @JsonProperty("fields") + public Builder fields(List fields) { + this.fields = fields; + return this; + } + + @JsonInclude(JsonInclude.Include.NON_EMPTY) + @JsonProperty("country_code") + public Builder countryCode(String countryCode) { + this.countryCode = countryCode; + return this; + } + + @JsonInclude(JsonInclude.Include.NON_EMPTY) + @JsonProperty("identity_match") + public Builder identityMatch( + IdentityMatchParameters identityMatch + ) { + this.identityMatch = identityMatch; + return this; + } + + @JsonInclude(JsonInclude.Include.NON_EMPTY) + @JsonProperty("reassigned_number") + public Builder reassignedNumber( + ReassignedNumberRequest reassignedNumber + ) { + this.reassignedNumber = reassignedNumber; + return this; + } + + @JsonInclude(JsonInclude.Include.NON_EMPTY) + @JsonProperty("sms_pumping_risk") + public Builder smsPumpingRisk( + SmsPumpingRiskParameters smsPumpingRisk + ) { + this.smsPumpingRisk = smsPumpingRisk; + return this; + } + + public LookupRequestWithCorId build() { + return new LookupRequestWithCorId(this); + } + } + + @Override + public boolean equals(final Object o) { + if (this == o) { + return true; + } + + if (o == null || getClass() != o.getClass()) { + return false; + } + + LookupRequestWithCorId other = (LookupRequestWithCorId) o; + return ( + Objects.equals(correlationId, other.correlationId) && + Objects.equals(phoneNumber, other.phoneNumber) && + Objects.equals(fields, other.fields) && + Objects.equals(countryCode, other.countryCode) && + Objects.equals(identityMatch, other.identityMatch) && + Objects.equals(reassignedNumber, other.reassignedNumber) && + Objects.equals(smsPumpingRisk, other.smsPumpingRisk) + ); + } + + @Override + public int hashCode() { + return Objects.hash( + correlationId, + phoneNumber, + fields, + countryCode, + identityMatch, + reassignedNumber, + smsPumpingRisk + ); + } + } + @JsonDeserialize(builder = CallerName.Builder.class) @JsonInclude(JsonInclude.Include.NON_EMPTY) @ToString @@ -2307,12 +2264,12 @@ public static String toJson(Object object, ObjectMapper mapper) { } @Getter - private final List phoneNumbers; + private final List phoneNumbers; @JsonCreator private Query( @JsonProperty("phone_numbers") final List< - LookupBatchResponse + LookupResponseWithCorId > phoneNumbers ) { this.phoneNumbers = phoneNumbers; diff --git a/src/main/java/com/twilio/rest/lookups/v2/QueryCreator.java b/src/main/java/com/twilio/rest/lookups/v2/QueryCreator.java index d77c684ac8..2b909e23e6 100644 --- a/src/main/java/com/twilio/rest/lookups/v2/QueryCreator.java +++ b/src/main/java/com/twilio/rest/lookups/v2/QueryCreator.java @@ -29,14 +29,14 @@ public class QueryCreator extends Creator { - private Query.LookupRequest lookupRequest; + private Query.LookupRequest1 lookupRequest1; public QueryCreator() {} - public QueryCreator setLookupRequest( - final Query.LookupRequest lookupRequest + public QueryCreator setLookupRequest1( + final Query.LookupRequest1 lookupRequest1 ) { - this.lookupRequest = lookupRequest; + this.lookupRequest1 = lookupRequest1; return this; } @@ -77,8 +77,8 @@ public Query create(final TwilioRestClient client) { private void addPostParams(final Request request, TwilioRestClient client) { ObjectMapper objectMapper = client.getObjectMapper(); - if (lookupRequest != null) { - request.setBody(Query.toJson(lookupRequest, objectMapper)); + if (lookupRequest1 != null) { + request.setBody(Query.toJson(lookupRequest1, objectMapper)); } } } diff --git a/src/main/java/com/twilio/rest/marketplace/v1/InstalledAddOnDeleter.java b/src/main/java/com/twilio/rest/marketplace/v1/InstalledAddOnDeleter.java index c734f92d0f..693b030770 100644 --- a/src/main/java/com/twilio/rest/marketplace/v1/InstalledAddOnDeleter.java +++ b/src/main/java/com/twilio/rest/marketplace/v1/InstalledAddOnDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class InstalledAddOnDeleter extends Deleter { @@ -39,6 +40,8 @@ public boolean delete(final TwilioRestClient client) { path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.MARKETPLACE.toString(), @@ -64,6 +67,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/messaging/v1/DomainCertsDeleter.java b/src/main/java/com/twilio/rest/messaging/v1/DomainCertsDeleter.java index 059352cd53..bbdcbb0503 100644 --- a/src/main/java/com/twilio/rest/messaging/v1/DomainCertsDeleter.java +++ b/src/main/java/com/twilio/rest/messaging/v1/DomainCertsDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class DomainCertsDeleter extends Deleter { @@ -43,6 +44,8 @@ public boolean delete(final TwilioRestClient client) { this.pathDomainSid.toString() ); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.MESSAGING.toString(), @@ -68,6 +71,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/messaging/v1/LinkshorteningMessagingServiceDeleter.java b/src/main/java/com/twilio/rest/messaging/v1/LinkshorteningMessagingServiceDeleter.java index 46f2820cf7..c9c9a642c2 100644 --- a/src/main/java/com/twilio/rest/messaging/v1/LinkshorteningMessagingServiceDeleter.java +++ b/src/main/java/com/twilio/rest/messaging/v1/LinkshorteningMessagingServiceDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class LinkshorteningMessagingServiceDeleter extends Deleter { @@ -55,6 +56,8 @@ public boolean delete(final TwilioRestClient client) { this.pathMessagingServiceSid.toString() ); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.MESSAGING.toString(), @@ -80,6 +83,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/messaging/v1/ServiceDeleter.java b/src/main/java/com/twilio/rest/messaging/v1/ServiceDeleter.java index 7b884c6fd4..4ed4bbdaeb 100644 --- a/src/main/java/com/twilio/rest/messaging/v1/ServiceDeleter.java +++ b/src/main/java/com/twilio/rest/messaging/v1/ServiceDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class ServiceDeleter extends Deleter { @@ -39,6 +40,8 @@ public boolean delete(final TwilioRestClient client) { path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.MESSAGING.toString(), @@ -64,6 +67,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/messaging/v1/TollfreeVerification.java b/src/main/java/com/twilio/rest/messaging/v1/TollfreeVerification.java index b403ad2956..73b210c9a2 100644 --- a/src/main/java/com/twilio/rest/messaging/v1/TollfreeVerification.java +++ b/src/main/java/com/twilio/rest/messaging/v1/TollfreeVerification.java @@ -107,29 +107,6 @@ public static Status forValue(final String value) { } } - public enum BusinessType { - PRIVATE_PROFIT("PRIVATE_PROFIT"), - PUBLIC_PROFIT("PUBLIC_PROFIT"), - SOLE_PROPRIETOR("SOLE_PROPRIETOR"), - NON_PROFIT("NON_PROFIT"), - GOVERNMENT("GOVERNMENT"); - - private final String value; - - private BusinessType(final String value) { - this.value = value; - } - - public String toString() { - return value; - } - - @JsonCreator - public static BusinessType forValue(final String value) { - return Promoter.enumFromString(value, BusinessType.values()); - } - } - public enum OptInType { VERBAL("VERBAL"), WEB_FORM("WEB_FORM"), @@ -216,9 +193,6 @@ public static String toJson(Object object, ObjectMapper mapper) { @Getter private final String additionalInformation; - @Getter - private final Boolean ageGatedContent; - @Getter private final String businessCity; @@ -243,18 +217,6 @@ public static String toJson(Object object, ObjectMapper mapper) { @Getter private final String businessPostalCode; - @Getter - private final String businessRegistrationAuthority; - - @Getter - private final String businessRegistrationCountry; - - @Getter - private final String businessRegistrationNumber; - - @Getter - private final String businessRegistrationPhoneNumber; - @Getter private final String businessStateProvinceRegion; @@ -264,9 +226,6 @@ public static String toJson(Object object, ObjectMapper mapper) { @Getter private final String businessStreetAddress2; - @Getter - private final TollfreeVerification.BusinessType businessType; - @Getter private final String businessWebsite; @@ -279,9 +238,6 @@ public static String toJson(Object object, ObjectMapper mapper) { @Getter private final ZonedDateTime dateUpdated; - @Getter - private final String doingBusinessAs; - @Getter private final Boolean editAllowed; @@ -294,30 +250,18 @@ public static String toJson(Object object, ObjectMapper mapper) { @Getter private final String externalReferenceId; - @Getter - private final String helpMessageSample; - @Getter private final String messageVolume; @Getter private final String notificationEmail; - @Getter - private final String optInConfirmationMessage; - @Getter private final List optInImageUrls; - @Getter - private final List optInKeywords; - @Getter private final TollfreeVerification.OptInType optInType; - @Getter - private final URI privacyPolicyUrl; - @Getter private final String productionMessageSample; @@ -339,12 +283,6 @@ public static String toJson(Object object, ObjectMapper mapper) { @Getter private final TollfreeVerification.Status status; - @Getter - private final URI termsAndConditionsUrl; - - @Getter - private final com.twilio.type.PhoneNumber tollfreePhoneNumber; - @Getter private final String tollfreePhoneNumberSid; @@ -366,7 +304,6 @@ private TollfreeVerification( @JsonProperty( "additional_information" ) final String additionalInformation, - @JsonProperty("age_gated_content") final Boolean ageGatedContent, @JsonProperty("business_city") final String businessCity, @JsonProperty( "business_contact_email" @@ -383,18 +320,6 @@ private TollfreeVerification( @JsonProperty("business_country") final String businessCountry, @JsonProperty("business_name") final String businessName, @JsonProperty("business_postal_code") final String businessPostalCode, - @JsonProperty( - "business_registration_authority" - ) final String businessRegistrationAuthority, - @JsonProperty( - "business_registration_country" - ) final String businessRegistrationCountry, - @JsonProperty( - "business_registration_number" - ) final String businessRegistrationNumber, - @JsonProperty( - "business_registration_phone_number" - ) final String businessRegistrationPhoneNumber, @JsonProperty( "business_state_province_region" ) final String businessStateProvinceRegion, @@ -404,9 +329,6 @@ private TollfreeVerification( @JsonProperty( "business_street_address2" ) final String businessStreetAddress2, - @JsonProperty( - "business_type" - ) final TollfreeVerification.BusinessType businessType, @JsonProperty("business_website") final String businessWebsite, @JsonProperty("customer_profile_sid") final String customerProfileSid, @JsonProperty("date_created") @JsonDeserialize( @@ -415,25 +337,18 @@ private TollfreeVerification( @JsonProperty("date_updated") @JsonDeserialize( using = com.twilio.converter.ISO8601Deserializer.class ) final ZonedDateTime dateUpdated, - @JsonProperty("doing_business_as") final String doingBusinessAs, @JsonProperty("edit_allowed") final Boolean editAllowed, @JsonProperty("edit_expiration") @JsonDeserialize( using = com.twilio.converter.ISO8601Deserializer.class ) final ZonedDateTime editExpiration, @JsonProperty("error_code") final Integer errorCode, @JsonProperty("external_reference_id") final String externalReferenceId, - @JsonProperty("help_message_sample") final String helpMessageSample, @JsonProperty("message_volume") final String messageVolume, @JsonProperty("notification_email") final String notificationEmail, - @JsonProperty( - "opt_in_confirmation_message" - ) final String optInConfirmationMessage, @JsonProperty("opt_in_image_urls") final List optInImageUrls, - @JsonProperty("opt_in_keywords") final List optInKeywords, @JsonProperty( "opt_in_type" ) final TollfreeVerification.OptInType optInType, - @JsonProperty("privacy_policy_url") final URI privacyPolicyUrl, @JsonProperty( "production_message_sample" ) final String productionMessageSample, @@ -443,12 +358,6 @@ private TollfreeVerification( @JsonProperty("resource_links") final Object resourceLinks, @JsonProperty("sid") final String sid, @JsonProperty("status") final TollfreeVerification.Status status, - @JsonProperty( - "terms_and_conditions_url" - ) final URI termsAndConditionsUrl, - @JsonProperty( - "tollfree_phone_number" - ) final com.twilio.type.PhoneNumber tollfreePhoneNumber, @JsonProperty( "tollfree_phone_number_sid" ) final String tollfreePhoneNumberSid, @@ -461,7 +370,6 @@ private TollfreeVerification( ) { this.accountSid = accountSid; this.additionalInformation = additionalInformation; - this.ageGatedContent = ageGatedContent; this.businessCity = businessCity; this.businessContactEmail = businessContactEmail; this.businessContactFirstName = businessContactFirstName; @@ -470,31 +378,21 @@ private TollfreeVerification( this.businessCountry = businessCountry; this.businessName = businessName; this.businessPostalCode = businessPostalCode; - this.businessRegistrationAuthority = businessRegistrationAuthority; - this.businessRegistrationCountry = businessRegistrationCountry; - this.businessRegistrationNumber = businessRegistrationNumber; - this.businessRegistrationPhoneNumber = businessRegistrationPhoneNumber; this.businessStateProvinceRegion = businessStateProvinceRegion; this.businessStreetAddress = businessStreetAddress; this.businessStreetAddress2 = businessStreetAddress2; - this.businessType = businessType; this.businessWebsite = businessWebsite; this.customerProfileSid = customerProfileSid; this.dateCreated = dateCreated; this.dateUpdated = dateUpdated; - this.doingBusinessAs = doingBusinessAs; this.editAllowed = editAllowed; this.editExpiration = editExpiration; this.errorCode = errorCode; this.externalReferenceId = externalReferenceId; - this.helpMessageSample = helpMessageSample; this.messageVolume = messageVolume; this.notificationEmail = notificationEmail; - this.optInConfirmationMessage = optInConfirmationMessage; this.optInImageUrls = optInImageUrls; - this.optInKeywords = optInKeywords; this.optInType = optInType; - this.privacyPolicyUrl = privacyPolicyUrl; this.productionMessageSample = productionMessageSample; this.regulatedItemSid = regulatedItemSid; this.rejectionReason = rejectionReason; @@ -502,8 +400,6 @@ private TollfreeVerification( this.resourceLinks = resourceLinks; this.sid = sid; this.status = status; - this.termsAndConditionsUrl = termsAndConditionsUrl; - this.tollfreePhoneNumber = tollfreePhoneNumber; this.tollfreePhoneNumberSid = tollfreePhoneNumberSid; this.trustProductSid = trustProductSid; this.url = url; @@ -528,7 +424,6 @@ public boolean equals(final Object o) { additionalInformation, other.additionalInformation ) && - Objects.equals(ageGatedContent, other.ageGatedContent) && Objects.equals(businessCity, other.businessCity) && Objects.equals(businessContactEmail, other.businessContactEmail) && Objects.equals( @@ -543,22 +438,6 @@ public boolean equals(final Object o) { Objects.equals(businessCountry, other.businessCountry) && Objects.equals(businessName, other.businessName) && Objects.equals(businessPostalCode, other.businessPostalCode) && - Objects.equals( - businessRegistrationAuthority, - other.businessRegistrationAuthority - ) && - Objects.equals( - businessRegistrationCountry, - other.businessRegistrationCountry - ) && - Objects.equals( - businessRegistrationNumber, - other.businessRegistrationNumber - ) && - Objects.equals( - businessRegistrationPhoneNumber, - other.businessRegistrationPhoneNumber - ) && Objects.equals( businessStateProvinceRegion, other.businessStateProvinceRegion @@ -571,27 +450,18 @@ public boolean equals(final Object o) { businessStreetAddress2, other.businessStreetAddress2 ) && - Objects.equals(businessType, other.businessType) && Objects.equals(businessWebsite, other.businessWebsite) && Objects.equals(customerProfileSid, other.customerProfileSid) && Objects.equals(dateCreated, other.dateCreated) && Objects.equals(dateUpdated, other.dateUpdated) && - Objects.equals(doingBusinessAs, other.doingBusinessAs) && Objects.equals(editAllowed, other.editAllowed) && Objects.equals(editExpiration, other.editExpiration) && Objects.equals(errorCode, other.errorCode) && Objects.equals(externalReferenceId, other.externalReferenceId) && - Objects.equals(helpMessageSample, other.helpMessageSample) && Objects.equals(messageVolume, other.messageVolume) && Objects.equals(notificationEmail, other.notificationEmail) && - Objects.equals( - optInConfirmationMessage, - other.optInConfirmationMessage - ) && Objects.equals(optInImageUrls, other.optInImageUrls) && - Objects.equals(optInKeywords, other.optInKeywords) && Objects.equals(optInType, other.optInType) && - Objects.equals(privacyPolicyUrl, other.privacyPolicyUrl) && Objects.equals( productionMessageSample, other.productionMessageSample @@ -602,11 +472,6 @@ public boolean equals(final Object o) { Objects.equals(resourceLinks, other.resourceLinks) && Objects.equals(sid, other.sid) && Objects.equals(status, other.status) && - Objects.equals( - termsAndConditionsUrl, - other.termsAndConditionsUrl - ) && - Objects.equals(tollfreePhoneNumber, other.tollfreePhoneNumber) && Objects.equals( tollfreePhoneNumberSid, other.tollfreePhoneNumberSid @@ -623,7 +488,6 @@ public int hashCode() { return Objects.hash( accountSid, additionalInformation, - ageGatedContent, businessCity, businessContactEmail, businessContactFirstName, @@ -632,31 +496,21 @@ public int hashCode() { businessCountry, businessName, businessPostalCode, - businessRegistrationAuthority, - businessRegistrationCountry, - businessRegistrationNumber, - businessRegistrationPhoneNumber, businessStateProvinceRegion, businessStreetAddress, businessStreetAddress2, - businessType, businessWebsite, customerProfileSid, dateCreated, dateUpdated, - doingBusinessAs, editAllowed, editExpiration, errorCode, externalReferenceId, - helpMessageSample, messageVolume, notificationEmail, - optInConfirmationMessage, optInImageUrls, - optInKeywords, optInType, - privacyPolicyUrl, productionMessageSample, regulatedItemSid, rejectionReason, @@ -664,8 +518,6 @@ public int hashCode() { resourceLinks, sid, status, - termsAndConditionsUrl, - tollfreePhoneNumber, tollfreePhoneNumberSid, trustProductSid, url, diff --git a/src/main/java/com/twilio/rest/messaging/v1/TollfreeVerificationCreator.java b/src/main/java/com/twilio/rest/messaging/v1/TollfreeVerificationCreator.java index b90642c97d..56d212a75c 100644 --- a/src/main/java/com/twilio/rest/messaging/v1/TollfreeVerificationCreator.java +++ b/src/main/java/com/twilio/rest/messaging/v1/TollfreeVerificationCreator.java @@ -55,18 +55,6 @@ public class TollfreeVerificationCreator extends Creator { private String businessContactEmail; private com.twilio.type.PhoneNumber businessContactPhone; private String externalReferenceId; - private String businessRegistrationNumber; - private String businessRegistrationAuthority; - private String businessRegistrationCountry; - private String businessType; - private String businessRegistrationPhoneNumber; - private String doingBusinessAs; - private String optInConfirmationMessage; - private String helpMessageSample; - private String privacyPolicyUrl; - private String termsAndConditionsUrl; - private Boolean ageGatedContent; - private List optInKeywords; public TollfreeVerificationCreator( final String businessName, @@ -273,96 +261,6 @@ public TollfreeVerificationCreator setExternalReferenceId( return this; } - public TollfreeVerificationCreator setBusinessRegistrationNumber( - final String businessRegistrationNumber - ) { - this.businessRegistrationNumber = businessRegistrationNumber; - return this; - } - - public TollfreeVerificationCreator setBusinessRegistrationAuthority( - final String businessRegistrationAuthority - ) { - this.businessRegistrationAuthority = businessRegistrationAuthority; - return this; - } - - public TollfreeVerificationCreator setBusinessRegistrationCountry( - final String businessRegistrationCountry - ) { - this.businessRegistrationCountry = businessRegistrationCountry; - return this; - } - - public TollfreeVerificationCreator setBusinessType( - final String businessType - ) { - this.businessType = businessType; - return this; - } - - public TollfreeVerificationCreator setBusinessRegistrationPhoneNumber( - final String businessRegistrationPhoneNumber - ) { - this.businessRegistrationPhoneNumber = businessRegistrationPhoneNumber; - return this; - } - - public TollfreeVerificationCreator setDoingBusinessAs( - final String doingBusinessAs - ) { - this.doingBusinessAs = doingBusinessAs; - return this; - } - - public TollfreeVerificationCreator setOptInConfirmationMessage( - final String optInConfirmationMessage - ) { - this.optInConfirmationMessage = optInConfirmationMessage; - return this; - } - - public TollfreeVerificationCreator setHelpMessageSample( - final String helpMessageSample - ) { - this.helpMessageSample = helpMessageSample; - return this; - } - - public TollfreeVerificationCreator setPrivacyPolicyUrl( - final String privacyPolicyUrl - ) { - this.privacyPolicyUrl = privacyPolicyUrl; - return this; - } - - public TollfreeVerificationCreator setTermsAndConditionsUrl( - final String termsAndConditionsUrl - ) { - this.termsAndConditionsUrl = termsAndConditionsUrl; - return this; - } - - public TollfreeVerificationCreator setAgeGatedContent( - final Boolean ageGatedContent - ) { - this.ageGatedContent = ageGatedContent; - return this; - } - - public TollfreeVerificationCreator setOptInKeywords( - final List optInKeywords - ) { - this.optInKeywords = optInKeywords; - return this; - } - - public TollfreeVerificationCreator setOptInKeywords( - final String optInKeywords - ) { - return setOptInKeywords(Promoter.listOfOne(optInKeywords)); - } - @Override public TollfreeVerification create(final TwilioRestClient client) { String path = "/v1/Tollfree/Verifications"; @@ -612,115 +510,5 @@ private void addPostParams(final Request request) { ParameterType.URLENCODED ); } - - if (businessRegistrationNumber != null) { - Serializer.toString( - request, - "BusinessRegistrationNumber", - businessRegistrationNumber, - ParameterType.URLENCODED - ); - } - - if (businessRegistrationAuthority != null) { - Serializer.toString( - request, - "BusinessRegistrationAuthority", - businessRegistrationAuthority, - ParameterType.URLENCODED - ); - } - - if (businessRegistrationCountry != null) { - Serializer.toString( - request, - "BusinessRegistrationCountry", - businessRegistrationCountry, - ParameterType.URLENCODED - ); - } - - if (businessType != null) { - Serializer.toString( - request, - "BusinessType", - businessType, - ParameterType.URLENCODED - ); - } - - if (businessRegistrationPhoneNumber != null) { - Serializer.toString( - request, - "BusinessRegistrationPhoneNumber", - businessRegistrationPhoneNumber, - ParameterType.URLENCODED - ); - } - - if (doingBusinessAs != null) { - Serializer.toString( - request, - "DoingBusinessAs", - doingBusinessAs, - ParameterType.URLENCODED - ); - } - - if (optInConfirmationMessage != null) { - Serializer.toString( - request, - "OptInConfirmationMessage", - optInConfirmationMessage, - ParameterType.URLENCODED - ); - } - - if (helpMessageSample != null) { - Serializer.toString( - request, - "HelpMessageSample", - helpMessageSample, - ParameterType.URLENCODED - ); - } - - if (privacyPolicyUrl != null) { - Serializer.toString( - request, - "PrivacyPolicyUrl", - privacyPolicyUrl, - ParameterType.URLENCODED - ); - } - - if (termsAndConditionsUrl != null) { - Serializer.toString( - request, - "TermsAndConditionsUrl", - termsAndConditionsUrl, - ParameterType.URLENCODED - ); - } - - if (ageGatedContent != null) { - Serializer.toString( - request, - "AgeGatedContent", - ageGatedContent, - ParameterType.URLENCODED - ); - } - - if (optInKeywords != null) { - for (String param : optInKeywords) { - Serializer.toString( - request, - "OptInKeywords", - param, - ParameterType.URLENCODED - ); - } - } } } diff --git a/src/main/java/com/twilio/rest/messaging/v1/TollfreeVerificationDeleter.java b/src/main/java/com/twilio/rest/messaging/v1/TollfreeVerificationDeleter.java index 61e452a391..6a6e371d83 100644 --- a/src/main/java/com/twilio/rest/messaging/v1/TollfreeVerificationDeleter.java +++ b/src/main/java/com/twilio/rest/messaging/v1/TollfreeVerificationDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class TollfreeVerificationDeleter extends Deleter { @@ -39,6 +40,8 @@ public boolean delete(final TwilioRestClient client) { path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.MESSAGING.toString(), @@ -64,6 +67,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/messaging/v1/TollfreeVerificationUpdater.java b/src/main/java/com/twilio/rest/messaging/v1/TollfreeVerificationUpdater.java index 4239d5e451..d01f228bfb 100644 --- a/src/main/java/com/twilio/rest/messaging/v1/TollfreeVerificationUpdater.java +++ b/src/main/java/com/twilio/rest/messaging/v1/TollfreeVerificationUpdater.java @@ -54,18 +54,6 @@ public class TollfreeVerificationUpdater extends Updater { private String businessContactEmail; private com.twilio.type.PhoneNumber businessContactPhone; private String editReason; - private String businessRegistrationNumber; - private String businessRegistrationAuthority; - private String businessRegistrationCountry; - private String businessType; - private String businessRegistrationPhoneNumber; - private String doingBusinessAs; - private String optInConfirmationMessage; - private String helpMessageSample; - private String privacyPolicyUrl; - private String termsAndConditionsUrl; - private Boolean ageGatedContent; - private List optInKeywords; public TollfreeVerificationUpdater(final String pathSid) { this.pathSid = pathSid; @@ -236,96 +224,6 @@ public TollfreeVerificationUpdater setEditReason(final String editReason) { return this; } - public TollfreeVerificationUpdater setBusinessRegistrationNumber( - final String businessRegistrationNumber - ) { - this.businessRegistrationNumber = businessRegistrationNumber; - return this; - } - - public TollfreeVerificationUpdater setBusinessRegistrationAuthority( - final String businessRegistrationAuthority - ) { - this.businessRegistrationAuthority = businessRegistrationAuthority; - return this; - } - - public TollfreeVerificationUpdater setBusinessRegistrationCountry( - final String businessRegistrationCountry - ) { - this.businessRegistrationCountry = businessRegistrationCountry; - return this; - } - - public TollfreeVerificationUpdater setBusinessType( - final String businessType - ) { - this.businessType = businessType; - return this; - } - - public TollfreeVerificationUpdater setBusinessRegistrationPhoneNumber( - final String businessRegistrationPhoneNumber - ) { - this.businessRegistrationPhoneNumber = businessRegistrationPhoneNumber; - return this; - } - - public TollfreeVerificationUpdater setDoingBusinessAs( - final String doingBusinessAs - ) { - this.doingBusinessAs = doingBusinessAs; - return this; - } - - public TollfreeVerificationUpdater setOptInConfirmationMessage( - final String optInConfirmationMessage - ) { - this.optInConfirmationMessage = optInConfirmationMessage; - return this; - } - - public TollfreeVerificationUpdater setHelpMessageSample( - final String helpMessageSample - ) { - this.helpMessageSample = helpMessageSample; - return this; - } - - public TollfreeVerificationUpdater setPrivacyPolicyUrl( - final String privacyPolicyUrl - ) { - this.privacyPolicyUrl = privacyPolicyUrl; - return this; - } - - public TollfreeVerificationUpdater setTermsAndConditionsUrl( - final String termsAndConditionsUrl - ) { - this.termsAndConditionsUrl = termsAndConditionsUrl; - return this; - } - - public TollfreeVerificationUpdater setAgeGatedContent( - final Boolean ageGatedContent - ) { - this.ageGatedContent = ageGatedContent; - return this; - } - - public TollfreeVerificationUpdater setOptInKeywords( - final List optInKeywords - ) { - this.optInKeywords = optInKeywords; - return this; - } - - public TollfreeVerificationUpdater setOptInKeywords( - final String optInKeywords - ) { - return setOptInKeywords(Promoter.listOfOne(optInKeywords)); - } - @Override public TollfreeVerification update(final TwilioRestClient client) { String path = "/v1/Tollfree/Verifications/{Sid}"; @@ -559,115 +457,5 @@ private void addPostParams(final Request request) { ParameterType.URLENCODED ); } - - if (businessRegistrationNumber != null) { - Serializer.toString( - request, - "BusinessRegistrationNumber", - businessRegistrationNumber, - ParameterType.URLENCODED - ); - } - - if (businessRegistrationAuthority != null) { - Serializer.toString( - request, - "BusinessRegistrationAuthority", - businessRegistrationAuthority, - ParameterType.URLENCODED - ); - } - - if (businessRegistrationCountry != null) { - Serializer.toString( - request, - "BusinessRegistrationCountry", - businessRegistrationCountry, - ParameterType.URLENCODED - ); - } - - if (businessType != null) { - Serializer.toString( - request, - "BusinessType", - businessType, - ParameterType.URLENCODED - ); - } - - if (businessRegistrationPhoneNumber != null) { - Serializer.toString( - request, - "BusinessRegistrationPhoneNumber", - businessRegistrationPhoneNumber, - ParameterType.URLENCODED - ); - } - - if (doingBusinessAs != null) { - Serializer.toString( - request, - "DoingBusinessAs", - doingBusinessAs, - ParameterType.URLENCODED - ); - } - - if (optInConfirmationMessage != null) { - Serializer.toString( - request, - "OptInConfirmationMessage", - optInConfirmationMessage, - ParameterType.URLENCODED - ); - } - - if (helpMessageSample != null) { - Serializer.toString( - request, - "HelpMessageSample", - helpMessageSample, - ParameterType.URLENCODED - ); - } - - if (privacyPolicyUrl != null) { - Serializer.toString( - request, - "PrivacyPolicyUrl", - privacyPolicyUrl, - ParameterType.URLENCODED - ); - } - - if (termsAndConditionsUrl != null) { - Serializer.toString( - request, - "TermsAndConditionsUrl", - termsAndConditionsUrl, - ParameterType.URLENCODED - ); - } - - if (ageGatedContent != null) { - Serializer.toString( - request, - "AgeGatedContent", - ageGatedContent, - ParameterType.URLENCODED - ); - } - - if (optInKeywords != null) { - for (String param : optInKeywords) { - Serializer.toString( - request, - "OptInKeywords", - param, - ParameterType.URLENCODED - ); - } - } } } diff --git a/src/main/java/com/twilio/rest/messaging/v1/service/AlphaSenderDeleter.java b/src/main/java/com/twilio/rest/messaging/v1/service/AlphaSenderDeleter.java index 210f37fa2c..18c831de7b 100644 --- a/src/main/java/com/twilio/rest/messaging/v1/service/AlphaSenderDeleter.java +++ b/src/main/java/com/twilio/rest/messaging/v1/service/AlphaSenderDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class AlphaSenderDeleter extends Deleter { @@ -49,6 +50,8 @@ public boolean delete(final TwilioRestClient client) { ); path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.MESSAGING.toString(), @@ -74,6 +77,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/messaging/v1/service/ChannelSenderDeleter.java b/src/main/java/com/twilio/rest/messaging/v1/service/ChannelSenderDeleter.java index 240edeb971..c32635a151 100644 --- a/src/main/java/com/twilio/rest/messaging/v1/service/ChannelSenderDeleter.java +++ b/src/main/java/com/twilio/rest/messaging/v1/service/ChannelSenderDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class ChannelSenderDeleter extends Deleter { @@ -49,6 +50,8 @@ public boolean delete(final TwilioRestClient client) { ); path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.MESSAGING.toString(), @@ -74,6 +77,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/messaging/v1/service/DestinationAlphaSenderDeleter.java b/src/main/java/com/twilio/rest/messaging/v1/service/DestinationAlphaSenderDeleter.java index b0d4b0b361..cdc21106f7 100644 --- a/src/main/java/com/twilio/rest/messaging/v1/service/DestinationAlphaSenderDeleter.java +++ b/src/main/java/com/twilio/rest/messaging/v1/service/DestinationAlphaSenderDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class DestinationAlphaSenderDeleter extends Deleter { @@ -50,6 +51,8 @@ public boolean delete(final TwilioRestClient client) { ); path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.MESSAGING.toString(), @@ -75,6 +78,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/messaging/v1/service/DestinationAlphaSenderReader.java b/src/main/java/com/twilio/rest/messaging/v1/service/DestinationAlphaSenderReader.java index 1f72b3991d..028c17968e 100644 --- a/src/main/java/com/twilio/rest/messaging/v1/service/DestinationAlphaSenderReader.java +++ b/src/main/java/com/twilio/rest/messaging/v1/service/DestinationAlphaSenderReader.java @@ -33,20 +33,12 @@ public class DestinationAlphaSenderReader extends Reader { private String pathServiceSid; - private String isoCountryCode; private Long pageSize; public DestinationAlphaSenderReader(final String pathServiceSid) { this.pathServiceSid = pathServiceSid; } - public DestinationAlphaSenderReader setIsoCountryCode( - final String isoCountryCode - ) { - this.isoCountryCode = isoCountryCode; - return this; - } - public DestinationAlphaSenderReader setPageSize(final Long pageSize) { this.pageSize = pageSize; return this; @@ -146,15 +138,6 @@ public Page getPage( } private void addQueryParams(final Request request) { - if (isoCountryCode != null) { - Serializer.toString( - request, - "IsoCountryCode", - isoCountryCode, - ParameterType.QUERY - ); - } - if (pageSize != null) { Serializer.toString( request, diff --git a/src/main/java/com/twilio/rest/messaging/v1/service/PhoneNumberDeleter.java b/src/main/java/com/twilio/rest/messaging/v1/service/PhoneNumberDeleter.java index 9188f856b3..740b9882d7 100644 --- a/src/main/java/com/twilio/rest/messaging/v1/service/PhoneNumberDeleter.java +++ b/src/main/java/com/twilio/rest/messaging/v1/service/PhoneNumberDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class PhoneNumberDeleter extends Deleter { @@ -49,6 +50,8 @@ public boolean delete(final TwilioRestClient client) { ); path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.MESSAGING.toString(), @@ -74,6 +77,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/messaging/v1/service/ShortCodeDeleter.java b/src/main/java/com/twilio/rest/messaging/v1/service/ShortCodeDeleter.java index 4b435dad2b..4dd13b3a43 100644 --- a/src/main/java/com/twilio/rest/messaging/v1/service/ShortCodeDeleter.java +++ b/src/main/java/com/twilio/rest/messaging/v1/service/ShortCodeDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class ShortCodeDeleter extends Deleter { @@ -46,6 +47,8 @@ public boolean delete(final TwilioRestClient client) { ); path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.MESSAGING.toString(), @@ -71,6 +74,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/messaging/v1/service/UsAppToPersonDeleter.java b/src/main/java/com/twilio/rest/messaging/v1/service/UsAppToPersonDeleter.java index d006793895..7c41c2ecce 100644 --- a/src/main/java/com/twilio/rest/messaging/v1/service/UsAppToPersonDeleter.java +++ b/src/main/java/com/twilio/rest/messaging/v1/service/UsAppToPersonDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class UsAppToPersonDeleter extends Deleter { @@ -50,6 +51,8 @@ public boolean delete(final TwilioRestClient client) { ); path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.MESSAGING.toString(), @@ -75,6 +78,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/messaging/v2/ChannelsSender.java b/src/main/java/com/twilio/rest/messaging/v2/ChannelsSender.java index 838fd079b5..87203d1e78 100644 --- a/src/main/java/com/twilio/rest/messaging/v2/ChannelsSender.java +++ b/src/main/java/com/twilio/rest/messaging/v2/ChannelsSender.java @@ -76,8 +76,6 @@ public enum Status { PENDING_VERIFICATION("PENDING_VERIFICATION"), VERIFYING("VERIFYING"), ONLINE_UPDATING("ONLINE:UPDATING"), - TWILIO_REVIEW("TWILIO_REVIEW"), - DRAFT("DRAFT"), STUBBED("STUBBED"); private final String value; @@ -116,31 +114,6 @@ public static CallbackMethod forValue(final String value) { } } - public enum MessagingVRcsCountryStatus { - ONLINE("ONLINE"), - OFFLINE("OFFLINE"), - TWILIO_REVIEW("TWILIO_REVIEW"), - PENDING_VERIFICATION("PENDING_VERIFICATION"); - - private final String value; - - private MessagingVRcsCountryStatus(final String value) { - this.value = value; - } - - public String toString() { - return value; - } - - @JsonCreator - public static MessagingVRcsCountryStatus forValue(final String value) { - return Promoter.enumFromString( - value, - MessagingVRcsCountryStatus.values() - ); - } - } - public enum VerificationMethod { SMS("sms"), VOICE("voice"); @@ -161,33 +134,6 @@ public static VerificationMethod forValue(final String value) { } } - public enum MessagingVRcsCarrierStatus { - UNKNOWN("UNKNOWN"), - UNLAUNCHED("UNLAUNCHED"), - CARRIER_REVIEW("CARRIER_REVIEW"), - APPROVED("APPROVED"), - REJECTED("REJECTED"), - SUSPENDED("SUSPENDED"); - - private final String value; - - private MessagingVRcsCarrierStatus(final String value) { - this.value = value; - } - - public String toString() { - return value; - } - - @JsonCreator - public static MessagingVRcsCarrierStatus forValue(final String value) { - return Promoter.enumFromString( - value, - MessagingVRcsCarrierStatus.values() - ); - } - } - public enum FallbackMethod { POST("POST"), PUT("PUT"); @@ -209,70 +155,166 @@ public static FallbackMethod forValue(final String value) { } @JsonDeserialize( - builder = MessagingV2ChannelsSenderProfileGenericResponseWebsites.Builder.class + builder = MessagingV2ChannelsSenderOfflineReasonsItems.Builder.class ) @JsonInclude(JsonInclude.Include.NON_EMPTY) @ToString - public static class MessagingV2ChannelsSenderProfileGenericResponseWebsites { + public static class MessagingV2ChannelsSenderOfflineReasonsItems { + + @JsonInclude(JsonInclude.Include.NON_EMPTY) + @JsonProperty("code") + @Getter + private final String code; @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("website") + @JsonProperty("message") @Getter - private final String website; + private final String message; @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("label") + @JsonProperty("more_info") @Getter - private final String label; + private final URI moreInfo; - private MessagingV2ChannelsSenderProfileGenericResponseWebsites( - Builder builder - ) { - this.website = builder.website; - this.label = builder.label; + private MessagingV2ChannelsSenderOfflineReasonsItems(Builder builder) { + this.code = builder.code; + this.message = builder.message; + this.moreInfo = builder.moreInfo; } public static Builder builder() { return new Builder(); } - public static MessagingV2ChannelsSenderProfileGenericResponseWebsites fromJson( + public static MessagingV2ChannelsSenderOfflineReasonsItems fromJson( String jsonString, ObjectMapper mapper ) throws IOException { return mapper.readValue( jsonString, - MessagingV2ChannelsSenderProfileGenericResponseWebsites.class + MessagingV2ChannelsSenderOfflineReasonsItems.class ); } @JsonPOJOBuilder(withPrefix = "") public static class Builder { - @JsonProperty("website") - private String website; + @JsonProperty("code") + private String code; + + @JsonProperty("message") + private String message; + + @JsonProperty("more_info") + private URI moreInfo; - @JsonProperty("label") - private String label; + @JsonInclude(JsonInclude.Include.NON_EMPTY) + @JsonProperty("code") + public Builder code(String code) { + this.code = code; + return this; + } @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("website") - public Builder website(String website) { - this.website = website; + @JsonProperty("message") + public Builder message(String message) { + this.message = message; return this; } @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("label") - public Builder label(String label) { - this.label = label; + @JsonProperty("more_info") + public Builder moreInfo(URI moreInfo) { + this.moreInfo = moreInfo; return this; } - public MessagingV2ChannelsSenderProfileGenericResponseWebsites build() { - return new MessagingV2ChannelsSenderProfileGenericResponseWebsites( - this - ); + public MessagingV2ChannelsSenderOfflineReasonsItems build() { + return new MessagingV2ChannelsSenderOfflineReasonsItems(this); + } + } + + @Override + public boolean equals(final Object o) { + if (this == o) { + return true; + } + + if (o == null || getClass() != o.getClass()) { + return false; + } + + MessagingV2ChannelsSenderOfflineReasonsItems other = + (MessagingV2ChannelsSenderOfflineReasonsItems) o; + return ( + Objects.equals(code, other.code) && + Objects.equals(message, other.message) && + Objects.equals(moreInfo, other.moreInfo) + ); + } + + @Override + public int hashCode() { + return Objects.hash(code, message, moreInfo); + } + } + + @JsonDeserialize( + builder = MessagingV2ChannelsSenderRequestsUpdate.Builder.class + ) + @JsonInclude(JsonInclude.Include.NON_EMPTY) + @ToString + public static class MessagingV2ChannelsSenderRequestsUpdate { + + @JsonInclude(JsonInclude.Include.NON_EMPTY) + @JsonProperty("configuration") + @Getter + private final MessagingV2ChannelsSenderConfiguration configuration; + + @JsonInclude(JsonInclude.Include.NON_EMPTY) + @JsonProperty("webhook") + @Getter + private final MessagingV2ChannelsSenderWebhook webhook; + + @JsonInclude(JsonInclude.Include.NON_EMPTY) + @JsonProperty("profile") + @Getter + private final MessagingV2ChannelsSenderProfile profile; + + private MessagingV2ChannelsSenderRequestsUpdate(Builder builder) { + this.configuration = builder.configuration; + this.webhook = builder.webhook; + this.profile = builder.profile; + } + + public static Builder builder() { + return new Builder(); + } + + public static MessagingV2ChannelsSenderRequestsUpdate fromJson( + String jsonString, + ObjectMapper mapper + ) throws IOException { + return mapper.readValue( + jsonString, + MessagingV2ChannelsSenderRequestsUpdate.class + ); + } + + @JsonPOJOBuilder(withPrefix = "") + public static class Builder { + + @JsonProperty("configuration") + private MessagingV2ChannelsSenderConfiguration configuration; + + @JsonProperty("webhook") + private MessagingV2ChannelsSenderWebhook webhook; + + @JsonProperty("profile") + private MessagingV2ChannelsSenderProfile profile; + + public MessagingV2ChannelsSenderRequestsUpdate build() { + return new MessagingV2ChannelsSenderRequestsUpdate(this); } } @@ -286,17 +328,18 @@ public boolean equals(final Object o) { return false; } - MessagingV2ChannelsSenderProfileGenericResponseWebsites other = - (MessagingV2ChannelsSenderProfileGenericResponseWebsites) o; + MessagingV2ChannelsSenderRequestsUpdate other = + (MessagingV2ChannelsSenderRequestsUpdate) o; return ( - Objects.equals(website, other.website) && - Objects.equals(label, other.label) + Objects.equals(configuration, other.configuration) && + Objects.equals(webhook, other.webhook) && + Objects.equals(profile, other.profile) ); } @Override public int hashCode() { - return Objects.hash(website, label); + return Objects.hash(configuration, webhook, profile); } } @@ -326,29 +369,14 @@ public static class MessagingV2ChannelsSenderProfile { private final String description; @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("logo_url") - @Getter - private final String logoUrl; - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("banner_url") - @Getter - private final String bannerUrl; - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("privacy_url") - @Getter - private final String privacyUrl; - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("terms_of_service_url") + @JsonProperty("emails") @Getter - private final String termsOfServiceUrl; + private final Object emails; @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("accent_color") + @JsonProperty("logo_url") @Getter - private final String accentColor; + private final String logoUrl; @JsonInclude(JsonInclude.Include.NON_EMPTY) @JsonProperty("vertical") @@ -360,30 +388,15 @@ public static class MessagingV2ChannelsSenderProfile { @Getter private final Object websites; - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("emails") - @Getter - private final Object emails; - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("phone_numbers") - @Getter - private final Object phoneNumbers; - private MessagingV2ChannelsSenderProfile(Builder builder) { this.name = builder.name; this.about = builder.about; this.address = builder.address; this.description = builder.description; + this.emails = builder.emails; this.logoUrl = builder.logoUrl; - this.bannerUrl = builder.bannerUrl; - this.privacyUrl = builder.privacyUrl; - this.termsOfServiceUrl = builder.termsOfServiceUrl; - this.accentColor = builder.accentColor; this.vertical = builder.vertical; this.websites = builder.websites; - this.emails = builder.emails; - this.phoneNumbers = builder.phoneNumbers; } public static Builder builder() { @@ -415,33 +428,18 @@ public static class Builder { @JsonProperty("description") private String description; + @JsonProperty("emails") + private Object emails; + @JsonProperty("logo_url") private String logoUrl; - @JsonProperty("banner_url") - private String bannerUrl; - - @JsonProperty("privacy_url") - private String privacyUrl; - - @JsonProperty("terms_of_service_url") - private String termsOfServiceUrl; - - @JsonProperty("accent_color") - private String accentColor; - @JsonProperty("vertical") private String vertical; @JsonProperty("websites") private Object websites; - @JsonProperty("emails") - private Object emails; - - @JsonProperty("phone_numbers") - private Object phoneNumbers; - @JsonInclude(JsonInclude.Include.NON_EMPTY) @JsonProperty("name") public Builder name(String name) { @@ -471,37 +469,16 @@ public Builder description(String description) { } @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("logo_url") - public Builder logoUrl(String logoUrl) { - this.logoUrl = logoUrl; - return this; - } - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("banner_url") - public Builder bannerUrl(String bannerUrl) { - this.bannerUrl = bannerUrl; - return this; - } - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("privacy_url") - public Builder privacyUrl(String privacyUrl) { - this.privacyUrl = privacyUrl; - return this; - } - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("terms_of_service_url") - public Builder termsOfServiceUrl(String termsOfServiceUrl) { - this.termsOfServiceUrl = termsOfServiceUrl; + @JsonProperty("emails") + public Builder emails(Object emails) { + this.emails = emails; return this; } @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("accent_color") - public Builder accentColor(String accentColor) { - this.accentColor = accentColor; + @JsonProperty("logo_url") + public Builder logoUrl(String logoUrl) { + this.logoUrl = logoUrl; return this; } @@ -519,20 +496,6 @@ public Builder websites(Object websites) { return this; } - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("emails") - public Builder emails(Object emails) { - this.emails = emails; - return this; - } - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("phone_numbers") - public Builder phoneNumbers(Object phoneNumbers) { - this.phoneNumbers = phoneNumbers; - return this; - } - public MessagingV2ChannelsSenderProfile build() { return new MessagingV2ChannelsSenderProfile(this); } @@ -555,15 +518,10 @@ public boolean equals(final Object o) { Objects.equals(about, other.about) && Objects.equals(address, other.address) && Objects.equals(description, other.description) && + Objects.equals(emails, other.emails) && Objects.equals(logoUrl, other.logoUrl) && - Objects.equals(bannerUrl, other.bannerUrl) && - Objects.equals(privacyUrl, other.privacyUrl) && - Objects.equals(termsOfServiceUrl, other.termsOfServiceUrl) && - Objects.equals(accentColor, other.accentColor) && Objects.equals(vertical, other.vertical) && - Objects.equals(websites, other.websites) && - Objects.equals(emails, other.emails) && - Objects.equals(phoneNumbers, other.phoneNumbers) + Objects.equals(websites, other.websites) ); } @@ -574,223 +532,46 @@ public int hashCode() { about, address, description, + emails, logoUrl, - bannerUrl, - privacyUrl, - termsOfServiceUrl, - accentColor, vertical, - websites, - emails, - phoneNumbers + websites ); } } - @JsonDeserialize(builder = MessagingV2RcsComplianceResponse.Builder.class) + @JsonDeserialize( + builder = MessagingV2ChannelsSenderRequestsCreate.Builder.class + ) @JsonInclude(JsonInclude.Include.NON_EMPTY) @ToString - public static class MessagingV2RcsComplianceResponse { + public static class MessagingV2ChannelsSenderRequestsCreate { + + @JsonInclude(JsonInclude.Include.NON_EMPTY) + @JsonProperty("sender_id") + @Getter + private final String senderId; @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("registration_sid") + @JsonProperty("configuration") @Getter - private final String registrationSid; + private final MessagingV2ChannelsSenderConfiguration configuration; @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("countries") + @JsonProperty("webhook") @Getter - private final List countries; + private final MessagingV2ChannelsSenderWebhook webhook; - private MessagingV2RcsComplianceResponse(Builder builder) { - this.registrationSid = builder.registrationSid; - this.countries = builder.countries; - } + @JsonInclude(JsonInclude.Include.NON_EMPTY) + @JsonProperty("profile") + @Getter + private final MessagingV2ChannelsSenderProfile profile; - public static Builder builder(final String registrationSid) { - return new Builder(registrationSid); - } - - public static MessagingV2RcsComplianceResponse fromJson( - String jsonString, - ObjectMapper mapper - ) throws IOException { - return mapper.readValue( - jsonString, - MessagingV2RcsComplianceResponse.class - ); - } - - @JsonPOJOBuilder(withPrefix = "") - public static class Builder { - - @JsonProperty("registration_sid") - private String registrationSid; - - @JsonProperty("countries") - private List countries; - - @JsonCreator - public Builder( - @JsonProperty("registration_sid") final String registrationSid - ) { - this.registrationSid = registrationSid; - } - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("countries") - public Builder countries( - List countries - ) { - this.countries = countries; - return this; - } - - public MessagingV2RcsComplianceResponse build() { - return new MessagingV2RcsComplianceResponse(this); - } - } - - @Override - public boolean equals(final Object o) { - if (this == o) { - return true; - } - - if (o == null || getClass() != o.getClass()) { - return false; - } - - MessagingV2RcsComplianceResponse other = - (MessagingV2RcsComplianceResponse) o; - return ( - Objects.equals(registrationSid, other.registrationSid) && - Objects.equals(countries, other.countries) - ); - } - - @Override - public int hashCode() { - return Objects.hash(registrationSid, countries); - } - } - - @JsonDeserialize(builder = MessagingV2RcsCarrier.Builder.class) - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @ToString - public static class MessagingV2RcsCarrier { - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("name") - @Getter - private final String name; - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("status") - @Getter - private final ChannelsSender.MessagingVRcsCarrierStatus status; - - private MessagingV2RcsCarrier(Builder builder) { - this.name = builder.name; - this.status = builder.status; - } - - public static Builder builder() { - return new Builder(); - } - - public static MessagingV2RcsCarrier fromJson( - String jsonString, - ObjectMapper mapper - ) throws IOException { - return mapper.readValue(jsonString, MessagingV2RcsCarrier.class); - } - - @JsonPOJOBuilder(withPrefix = "") - public static class Builder { - - @JsonProperty("name") - private String name; - - @JsonProperty("status") - private ChannelsSender.MessagingVRcsCarrierStatus status; - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("name") - public Builder name(String name) { - this.name = name; - return this; - } - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("status") - public Builder status( - ChannelsSender.MessagingVRcsCarrierStatus status - ) { - this.status = status; - return this; - } - - public MessagingV2RcsCarrier build() { - return new MessagingV2RcsCarrier(this); - } - } - - @Override - public boolean equals(final Object o) { - if (this == o) { - return true; - } - - if (o == null || getClass() != o.getClass()) { - return false; - } - - MessagingV2RcsCarrier other = (MessagingV2RcsCarrier) o; - return ( - Objects.equals(name, other.name) && - Objects.equals(status, other.status) - ); - } - - @Override - public int hashCode() { - return Objects.hash(name, status); - } - } - - @JsonDeserialize( - builder = MessagingV2ChannelsSenderRequestsCreate.Builder.class - ) - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @ToString - public static class MessagingV2ChannelsSenderRequestsCreate { - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("sender_id") - @Getter - private final String senderId; - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("configuration") - @Getter - private final MessagingV2ChannelsSenderConfiguration configuration; - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("webhook") - @Getter - private final MessagingV2ChannelsSenderWebhook webhook; - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("profile") - @Getter - private final MessagingV2ChannelsSenderProfile profile; - - private MessagingV2ChannelsSenderRequestsCreate(Builder builder) { - this.senderId = builder.senderId; - this.configuration = builder.configuration; - this.webhook = builder.webhook; - this.profile = builder.profile; + private MessagingV2ChannelsSenderRequestsCreate(Builder builder) { + this.senderId = builder.senderId; + this.configuration = builder.configuration; + this.webhook = builder.webhook; + this.profile = builder.profile; } public static Builder builder(final String senderId) { @@ -858,1019 +639,133 @@ public int hashCode() { } } - @JsonDeserialize( - builder = MessagingV2ChannelsSenderProfileGenericResponseEmails.Builder.class - ) + @JsonDeserialize(builder = MessagingV2ChannelsSenderWebhook.Builder.class) @JsonInclude(JsonInclude.Include.NON_EMPTY) @ToString - public static class MessagingV2ChannelsSenderProfileGenericResponseEmails { - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("email") - @Getter - private final String email; + public static class MessagingV2ChannelsSenderWebhook { @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("label") + @JsonProperty("callback_url") @Getter - private final String label; - - private MessagingV2ChannelsSenderProfileGenericResponseEmails( - Builder builder - ) { - this.email = builder.email; - this.label = builder.label; - } - - public static Builder builder() { - return new Builder(); - } - - public static MessagingV2ChannelsSenderProfileGenericResponseEmails fromJson( - String jsonString, - ObjectMapper mapper - ) throws IOException { - return mapper.readValue( - jsonString, - MessagingV2ChannelsSenderProfileGenericResponseEmails.class - ); - } - - @JsonPOJOBuilder(withPrefix = "") - public static class Builder { - - @JsonProperty("email") - private String email; - - @JsonProperty("label") - private String label; - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("email") - public Builder email(String email) { - this.email = email; - return this; - } - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("label") - public Builder label(String label) { - this.label = label; - return this; - } - - public MessagingV2ChannelsSenderProfileGenericResponseEmails build() { - return new MessagingV2ChannelsSenderProfileGenericResponseEmails( - this - ); - } - } - - @Override - public boolean equals(final Object o) { - if (this == o) { - return true; - } - - if (o == null || getClass() != o.getClass()) { - return false; - } - - MessagingV2ChannelsSenderProfileGenericResponseEmails other = - (MessagingV2ChannelsSenderProfileGenericResponseEmails) o; - return ( - Objects.equals(email, other.email) && - Objects.equals(label, other.label) - ); - } - - @Override - public int hashCode() { - return Objects.hash(email, label); - } - } - - @JsonDeserialize( - builder = MessagingV2ChannelsSenderProperties.Builder.class - ) - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @ToString - public static class MessagingV2ChannelsSenderProperties { + private final String callbackUrl; @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("quality_rating") + @JsonProperty("callback_method") @Getter - private final String qualityRating; + private final ChannelsSender.CallbackMethod callbackMethod; @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("messaging_limit") - @Getter - private final String messagingLimit; - - private MessagingV2ChannelsSenderProperties(Builder builder) { - this.qualityRating = builder.qualityRating; - this.messagingLimit = builder.messagingLimit; - } - - public static Builder builder() { - return new Builder(); - } - - public static MessagingV2ChannelsSenderProperties fromJson( - String jsonString, - ObjectMapper mapper - ) throws IOException { - return mapper.readValue( - jsonString, - MessagingV2ChannelsSenderProperties.class - ); - } - - @JsonPOJOBuilder(withPrefix = "") - public static class Builder { - - @JsonProperty("quality_rating") - private String qualityRating; - - @JsonProperty("messaging_limit") - private String messagingLimit; - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("quality_rating") - public Builder qualityRating(String qualityRating) { - this.qualityRating = qualityRating; - return this; - } - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("messaging_limit") - public Builder messagingLimit(String messagingLimit) { - this.messagingLimit = messagingLimit; - return this; - } - - public MessagingV2ChannelsSenderProperties build() { - return new MessagingV2ChannelsSenderProperties(this); - } - } - - @Override - public boolean equals(final Object o) { - if (this == o) { - return true; - } - - if (o == null || getClass() != o.getClass()) { - return false; - } - - MessagingV2ChannelsSenderProperties other = - (MessagingV2ChannelsSenderProperties) o; - return ( - Objects.equals(qualityRating, other.qualityRating) && - Objects.equals(messagingLimit, other.messagingLimit) - ); - } - - @Override - public int hashCode() { - return Objects.hash(qualityRating, messagingLimit); - } - } - - @JsonDeserialize( - builder = MessagingV2ChannelsSenderOfflineReasonsItems.Builder.class - ) - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @ToString - public static class MessagingV2ChannelsSenderOfflineReasonsItems { - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("code") - @Getter - private final String code; - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("message") - @Getter - private final String message; - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("more_info") - @Getter - private final URI moreInfo; - - private MessagingV2ChannelsSenderOfflineReasonsItems(Builder builder) { - this.code = builder.code; - this.message = builder.message; - this.moreInfo = builder.moreInfo; - } - - public static Builder builder() { - return new Builder(); - } - - public static MessagingV2ChannelsSenderOfflineReasonsItems fromJson( - String jsonString, - ObjectMapper mapper - ) throws IOException { - return mapper.readValue( - jsonString, - MessagingV2ChannelsSenderOfflineReasonsItems.class - ); - } - - @JsonPOJOBuilder(withPrefix = "") - public static class Builder { - - @JsonProperty("code") - private String code; - - @JsonProperty("message") - private String message; - - @JsonProperty("more_info") - private URI moreInfo; - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("code") - public Builder code(String code) { - this.code = code; - return this; - } - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("message") - public Builder message(String message) { - this.message = message; - return this; - } - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("more_info") - public Builder moreInfo(URI moreInfo) { - this.moreInfo = moreInfo; - return this; - } - - public MessagingV2ChannelsSenderOfflineReasonsItems build() { - return new MessagingV2ChannelsSenderOfflineReasonsItems(this); - } - } - - @Override - public boolean equals(final Object o) { - if (this == o) { - return true; - } - - if (o == null || getClass() != o.getClass()) { - return false; - } - - MessagingV2ChannelsSenderOfflineReasonsItems other = - (MessagingV2ChannelsSenderOfflineReasonsItems) o; - return ( - Objects.equals(code, other.code) && - Objects.equals(message, other.message) && - Objects.equals(moreInfo, other.moreInfo) - ); - } - - @Override - public int hashCode() { - return Objects.hash(code, message, moreInfo); - } - } - - @JsonDeserialize( - builder = MessagingV2ChannelsSenderRequestsUpdate.Builder.class - ) - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @ToString - public static class MessagingV2ChannelsSenderRequestsUpdate { - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("configuration") - @Getter - private final MessagingV2ChannelsSenderConfiguration configuration; - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("webhook") - @Getter - private final MessagingV2ChannelsSenderWebhook webhook; - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("profile") - @Getter - private final MessagingV2ChannelsSenderProfile profile; - - private MessagingV2ChannelsSenderRequestsUpdate(Builder builder) { - this.configuration = builder.configuration; - this.webhook = builder.webhook; - this.profile = builder.profile; - } - - public static Builder builder() { - return new Builder(); - } - - public static MessagingV2ChannelsSenderRequestsUpdate fromJson( - String jsonString, - ObjectMapper mapper - ) throws IOException { - return mapper.readValue( - jsonString, - MessagingV2ChannelsSenderRequestsUpdate.class - ); - } - - @JsonPOJOBuilder(withPrefix = "") - public static class Builder { - - @JsonProperty("configuration") - private MessagingV2ChannelsSenderConfiguration configuration; - - @JsonProperty("webhook") - private MessagingV2ChannelsSenderWebhook webhook; - - @JsonProperty("profile") - private MessagingV2ChannelsSenderProfile profile; - - public MessagingV2ChannelsSenderRequestsUpdate build() { - return new MessagingV2ChannelsSenderRequestsUpdate(this); - } - } - - @Override - public boolean equals(final Object o) { - if (this == o) { - return true; - } - - if (o == null || getClass() != o.getClass()) { - return false; - } - - MessagingV2ChannelsSenderRequestsUpdate other = - (MessagingV2ChannelsSenderRequestsUpdate) o; - return ( - Objects.equals(configuration, other.configuration) && - Objects.equals(webhook, other.webhook) && - Objects.equals(profile, other.profile) - ); - } - - @Override - public int hashCode() { - return Objects.hash(configuration, webhook, profile); - } - } - - @JsonDeserialize( - builder = MessagingV2ChannelsSenderProfileGenericResponsePhoneNumbers.Builder.class - ) - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @ToString - public static class MessagingV2ChannelsSenderProfileGenericResponsePhoneNumbers { - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("phone_number") - @Getter - private final String phoneNumber; - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("label") - @Getter - private final String label; - - private MessagingV2ChannelsSenderProfileGenericResponsePhoneNumbers( - Builder builder - ) { - this.phoneNumber = builder.phoneNumber; - this.label = builder.label; - } - - public static Builder builder() { - return new Builder(); - } - - public static MessagingV2ChannelsSenderProfileGenericResponsePhoneNumbers fromJson( - String jsonString, - ObjectMapper mapper - ) throws IOException { - return mapper.readValue( - jsonString, - MessagingV2ChannelsSenderProfileGenericResponsePhoneNumbers.class - ); - } - - @JsonPOJOBuilder(withPrefix = "") - public static class Builder { - - @JsonProperty("phone_number") - private String phoneNumber; - - @JsonProperty("label") - private String label; - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("phone_number") - public Builder phoneNumber(String phoneNumber) { - this.phoneNumber = phoneNumber; - return this; - } - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("label") - public Builder label(String label) { - this.label = label; - return this; - } - - public MessagingV2ChannelsSenderProfileGenericResponsePhoneNumbers build() { - return new MessagingV2ChannelsSenderProfileGenericResponsePhoneNumbers( - this - ); - } - } - - @Override - public boolean equals(final Object o) { - if (this == o) { - return true; - } - - if (o == null || getClass() != o.getClass()) { - return false; - } - - MessagingV2ChannelsSenderProfileGenericResponsePhoneNumbers other = - (MessagingV2ChannelsSenderProfileGenericResponsePhoneNumbers) o; - return ( - Objects.equals(phoneNumber, other.phoneNumber) && - Objects.equals(label, other.label) - ); - } - - @Override - public int hashCode() { - return Objects.hash(phoneNumber, label); - } - } - - @JsonDeserialize( - builder = MessagingV2RcsComplianceCountryResponse.Builder.class - ) - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @ToString - public static class MessagingV2RcsComplianceCountryResponse { - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("country") - @Getter - private final String country; - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("registration_sid") - @Getter - private final String registrationSid; - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("status") - @Getter - private final ChannelsSender.MessagingVRcsCountryStatus status; - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("carriers") - @Getter - private final List carriers; - - private MessagingV2RcsComplianceCountryResponse(Builder builder) { - this.country = builder.country; - this.registrationSid = builder.registrationSid; - this.status = builder.status; - this.carriers = builder.carriers; - } - - public static Builder builder(final String country) { - return new Builder(country); - } - - public static MessagingV2RcsComplianceCountryResponse fromJson( - String jsonString, - ObjectMapper mapper - ) throws IOException { - return mapper.readValue( - jsonString, - MessagingV2RcsComplianceCountryResponse.class - ); - } - - @JsonPOJOBuilder(withPrefix = "") - public static class Builder { - - @JsonProperty("country") - private String country; - - @JsonProperty("registration_sid") - private String registrationSid; - - @JsonProperty("status") - private ChannelsSender.MessagingVRcsCountryStatus status; - - @JsonProperty("carriers") - private List carriers; - - @JsonCreator - public Builder(@JsonProperty("country") final String country) { - this.country = country; - } - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("registration_sid") - public Builder registrationSid(String registrationSid) { - this.registrationSid = registrationSid; - return this; - } - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("status") - public Builder status( - ChannelsSender.MessagingVRcsCountryStatus status - ) { - this.status = status; - return this; - } - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("carriers") - public Builder carriers(List carriers) { - this.carriers = carriers; - return this; - } - - public MessagingV2RcsComplianceCountryResponse build() { - return new MessagingV2RcsComplianceCountryResponse(this); - } - } - - @Override - public boolean equals(final Object o) { - if (this == o) { - return true; - } - - if (o == null || getClass() != o.getClass()) { - return false; - } - - MessagingV2RcsComplianceCountryResponse other = - (MessagingV2RcsComplianceCountryResponse) o; - return ( - Objects.equals(country, other.country) && - Objects.equals(registrationSid, other.registrationSid) && - Objects.equals(status, other.status) && - Objects.equals(carriers, other.carriers) - ); - } - - @Override - public int hashCode() { - return Objects.hash(country, registrationSid, status, carriers); - } - } - - @JsonDeserialize(builder = MessagingV2ChannelsSenderWebhook.Builder.class) - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @ToString - public static class MessagingV2ChannelsSenderWebhook { - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("callback_url") - @Getter - private final String callbackUrl; - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("callback_method") - @Getter - private final ChannelsSender.CallbackMethod callbackMethod; - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("fallback_url") - @Getter - private final String fallbackUrl; - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("fallback_method") - @Getter - private final ChannelsSender.FallbackMethod fallbackMethod; - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("status_callback_url") - @Getter - private final String statusCallbackUrl; - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("status_callback_method") - @Getter - private final String statusCallbackMethod; - - private MessagingV2ChannelsSenderWebhook(Builder builder) { - this.callbackUrl = builder.callbackUrl; - this.callbackMethod = builder.callbackMethod; - this.fallbackUrl = builder.fallbackUrl; - this.fallbackMethod = builder.fallbackMethod; - this.statusCallbackUrl = builder.statusCallbackUrl; - this.statusCallbackMethod = builder.statusCallbackMethod; - } - - public static Builder builder() { - return new Builder(); - } - - public static MessagingV2ChannelsSenderWebhook fromJson( - String jsonString, - ObjectMapper mapper - ) throws IOException { - return mapper.readValue( - jsonString, - MessagingV2ChannelsSenderWebhook.class - ); - } - - @JsonPOJOBuilder(withPrefix = "") - public static class Builder { - - @JsonProperty("callback_url") - private String callbackUrl; - - @JsonProperty("callback_method") - private ChannelsSender.CallbackMethod callbackMethod; - - @JsonProperty("fallback_url") - private String fallbackUrl; - - @JsonProperty("fallback_method") - private ChannelsSender.FallbackMethod fallbackMethod; - - @JsonProperty("status_callback_url") - private String statusCallbackUrl; - - @JsonProperty("status_callback_method") - private String statusCallbackMethod; - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("callback_url") - public Builder callbackUrl(String callbackUrl) { - this.callbackUrl = callbackUrl; - return this; - } - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("callback_method") - public Builder callbackMethod( - ChannelsSender.CallbackMethod callbackMethod - ) { - this.callbackMethod = callbackMethod; - return this; - } - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("fallback_url") - public Builder fallbackUrl(String fallbackUrl) { - this.fallbackUrl = fallbackUrl; - return this; - } - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("fallback_method") - public Builder fallbackMethod( - ChannelsSender.FallbackMethod fallbackMethod - ) { - this.fallbackMethod = fallbackMethod; - return this; - } - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("status_callback_url") - public Builder statusCallbackUrl(String statusCallbackUrl) { - this.statusCallbackUrl = statusCallbackUrl; - return this; - } - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("status_callback_method") - public Builder statusCallbackMethod(String statusCallbackMethod) { - this.statusCallbackMethod = statusCallbackMethod; - return this; - } - - public MessagingV2ChannelsSenderWebhook build() { - return new MessagingV2ChannelsSenderWebhook(this); - } - } - - @Override - public boolean equals(final Object o) { - if (this == o) { - return true; - } - - if (o == null || getClass() != o.getClass()) { - return false; - } - - MessagingV2ChannelsSenderWebhook other = - (MessagingV2ChannelsSenderWebhook) o; - return ( - Objects.equals(callbackUrl, other.callbackUrl) && - Objects.equals(callbackMethod, other.callbackMethod) && - Objects.equals(fallbackUrl, other.fallbackUrl) && - Objects.equals(fallbackMethod, other.fallbackMethod) && - Objects.equals(statusCallbackUrl, other.statusCallbackUrl) && - Objects.equals(statusCallbackMethod, other.statusCallbackMethod) - ); - } - - @Override - public int hashCode() { - return Objects.hash( - callbackUrl, - callbackMethod, - fallbackUrl, - fallbackMethod, - statusCallbackUrl, - statusCallbackMethod - ); - } - } - - @JsonDeserialize( - builder = MessagingV2ChannelsSenderProfileGenericResponse.Builder.class - ) - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @ToString - public static class MessagingV2ChannelsSenderProfileGenericResponse { - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("name") - @Getter - private final String name; - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("about") - @Getter - private final String about; - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("address") - @Getter - private final String address; - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("description") - @Getter - private final String description; - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("logo_url") - @Getter - private final String logoUrl; - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("banner_url") - @Getter - private final String bannerUrl; - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("privacy_url") - @Getter - private final String privacyUrl; - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("terms_of_service_url") - @Getter - private final String termsOfServiceUrl; - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("accent_color") - @Getter - private final String accentColor; - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("vertical") + @JsonProperty("fallback_url") @Getter - private final String vertical; + private final String fallbackUrl; @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("websites") + @JsonProperty("fallback_method") @Getter - private final List< - MessagingV2ChannelsSenderProfileGenericResponseWebsites - > websites; + private final ChannelsSender.FallbackMethod fallbackMethod; @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("emails") + @JsonProperty("status_callback_url") @Getter - private final List< - MessagingV2ChannelsSenderProfileGenericResponseEmails - > emails; + private final String statusCallbackUrl; @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("phone_numbers") + @JsonProperty("status_callback_method") @Getter - private final List< - MessagingV2ChannelsSenderProfileGenericResponsePhoneNumbers - > phoneNumbers; + private final String statusCallbackMethod; - private MessagingV2ChannelsSenderProfileGenericResponse( - Builder builder - ) { - this.name = builder.name; - this.about = builder.about; - this.address = builder.address; - this.description = builder.description; - this.logoUrl = builder.logoUrl; - this.bannerUrl = builder.bannerUrl; - this.privacyUrl = builder.privacyUrl; - this.termsOfServiceUrl = builder.termsOfServiceUrl; - this.accentColor = builder.accentColor; - this.vertical = builder.vertical; - this.websites = builder.websites; - this.emails = builder.emails; - this.phoneNumbers = builder.phoneNumbers; + private MessagingV2ChannelsSenderWebhook(Builder builder) { + this.callbackUrl = builder.callbackUrl; + this.callbackMethod = builder.callbackMethod; + this.fallbackUrl = builder.fallbackUrl; + this.fallbackMethod = builder.fallbackMethod; + this.statusCallbackUrl = builder.statusCallbackUrl; + this.statusCallbackMethod = builder.statusCallbackMethod; } public static Builder builder() { return new Builder(); } - public static MessagingV2ChannelsSenderProfileGenericResponse fromJson( + public static MessagingV2ChannelsSenderWebhook fromJson( String jsonString, ObjectMapper mapper ) throws IOException { return mapper.readValue( jsonString, - MessagingV2ChannelsSenderProfileGenericResponse.class + MessagingV2ChannelsSenderWebhook.class ); } @JsonPOJOBuilder(withPrefix = "") public static class Builder { - @JsonProperty("name") - private String name; - - @JsonProperty("about") - private String about; - - @JsonProperty("address") - private String address; - - @JsonProperty("description") - private String description; - - @JsonProperty("logo_url") - private String logoUrl; - - @JsonProperty("banner_url") - private String bannerUrl; - - @JsonProperty("privacy_url") - private String privacyUrl; - - @JsonProperty("terms_of_service_url") - private String termsOfServiceUrl; - - @JsonProperty("accent_color") - private String accentColor; - - @JsonProperty("vertical") - private String vertical; - - @JsonProperty("websites") - private List< - MessagingV2ChannelsSenderProfileGenericResponseWebsites - > websites; - - @JsonProperty("emails") - private List< - MessagingV2ChannelsSenderProfileGenericResponseEmails - > emails; - - @JsonProperty("phone_numbers") - private List< - MessagingV2ChannelsSenderProfileGenericResponsePhoneNumbers - > phoneNumbers; - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("name") - public Builder name(String name) { - this.name = name; - return this; - } - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("about") - public Builder about(String about) { - this.about = about; - return this; - } + @JsonProperty("callback_url") + private String callbackUrl; - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("address") - public Builder address(String address) { - this.address = address; - return this; - } + @JsonProperty("callback_method") + private ChannelsSender.CallbackMethod callbackMethod; - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("description") - public Builder description(String description) { - this.description = description; - return this; - } + @JsonProperty("fallback_url") + private String fallbackUrl; - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("logo_url") - public Builder logoUrl(String logoUrl) { - this.logoUrl = logoUrl; - return this; - } + @JsonProperty("fallback_method") + private ChannelsSender.FallbackMethod fallbackMethod; - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("banner_url") - public Builder bannerUrl(String bannerUrl) { - this.bannerUrl = bannerUrl; - return this; - } + @JsonProperty("status_callback_url") + private String statusCallbackUrl; - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("privacy_url") - public Builder privacyUrl(String privacyUrl) { - this.privacyUrl = privacyUrl; - return this; - } + @JsonProperty("status_callback_method") + private String statusCallbackMethod; @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("terms_of_service_url") - public Builder termsOfServiceUrl(String termsOfServiceUrl) { - this.termsOfServiceUrl = termsOfServiceUrl; + @JsonProperty("callback_url") + public Builder callbackUrl(String callbackUrl) { + this.callbackUrl = callbackUrl; return this; } @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("accent_color") - public Builder accentColor(String accentColor) { - this.accentColor = accentColor; + @JsonProperty("callback_method") + public Builder callbackMethod( + ChannelsSender.CallbackMethod callbackMethod + ) { + this.callbackMethod = callbackMethod; return this; } @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("vertical") - public Builder vertical(String vertical) { - this.vertical = vertical; + @JsonProperty("fallback_url") + public Builder fallbackUrl(String fallbackUrl) { + this.fallbackUrl = fallbackUrl; return this; } @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("websites") - public Builder websites( - List< - MessagingV2ChannelsSenderProfileGenericResponseWebsites - > websites + @JsonProperty("fallback_method") + public Builder fallbackMethod( + ChannelsSender.FallbackMethod fallbackMethod ) { - this.websites = websites; + this.fallbackMethod = fallbackMethod; return this; } @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("emails") - public Builder emails( - List< - MessagingV2ChannelsSenderProfileGenericResponseEmails - > emails - ) { - this.emails = emails; + @JsonProperty("status_callback_url") + public Builder statusCallbackUrl(String statusCallbackUrl) { + this.statusCallbackUrl = statusCallbackUrl; return this; } @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("phone_numbers") - public Builder phoneNumbers( - List< - MessagingV2ChannelsSenderProfileGenericResponsePhoneNumbers - > phoneNumbers - ) { - this.phoneNumbers = phoneNumbers; + @JsonProperty("status_callback_method") + public Builder statusCallbackMethod(String statusCallbackMethod) { + this.statusCallbackMethod = statusCallbackMethod; return this; } - public MessagingV2ChannelsSenderProfileGenericResponse build() { - return new MessagingV2ChannelsSenderProfileGenericResponse( - this - ); + public MessagingV2ChannelsSenderWebhook build() { + return new MessagingV2ChannelsSenderWebhook(this); } } @@ -1884,41 +779,27 @@ public boolean equals(final Object o) { return false; } - MessagingV2ChannelsSenderProfileGenericResponse other = - (MessagingV2ChannelsSenderProfileGenericResponse) o; + MessagingV2ChannelsSenderWebhook other = + (MessagingV2ChannelsSenderWebhook) o; return ( - Objects.equals(name, other.name) && - Objects.equals(about, other.about) && - Objects.equals(address, other.address) && - Objects.equals(description, other.description) && - Objects.equals(logoUrl, other.logoUrl) && - Objects.equals(bannerUrl, other.bannerUrl) && - Objects.equals(privacyUrl, other.privacyUrl) && - Objects.equals(termsOfServiceUrl, other.termsOfServiceUrl) && - Objects.equals(accentColor, other.accentColor) && - Objects.equals(vertical, other.vertical) && - Objects.equals(websites, other.websites) && - Objects.equals(emails, other.emails) && - Objects.equals(phoneNumbers, other.phoneNumbers) + Objects.equals(callbackUrl, other.callbackUrl) && + Objects.equals(callbackMethod, other.callbackMethod) && + Objects.equals(fallbackUrl, other.fallbackUrl) && + Objects.equals(fallbackMethod, other.fallbackMethod) && + Objects.equals(statusCallbackUrl, other.statusCallbackUrl) && + Objects.equals(statusCallbackMethod, other.statusCallbackMethod) ); } @Override public int hashCode() { return Objects.hash( - name, - about, - address, - description, - logoUrl, - bannerUrl, - privacyUrl, - termsOfServiceUrl, - accentColor, - vertical, - websites, - emails, - phoneNumbers + callbackUrl, + callbackMethod, + fallbackUrl, + fallbackMethod, + statusCallbackUrl, + statusCallbackMethod ); } } @@ -2052,6 +933,94 @@ public int hashCode() { } } + @JsonDeserialize( + builder = MessagingV2ChannelsSenderProperties.Builder.class + ) + @JsonInclude(JsonInclude.Include.NON_EMPTY) + @ToString + public static class MessagingV2ChannelsSenderProperties { + + @JsonInclude(JsonInclude.Include.NON_EMPTY) + @JsonProperty("quality_rating") + @Getter + private final String qualityRating; + + @JsonInclude(JsonInclude.Include.NON_EMPTY) + @JsonProperty("messaging_limit") + @Getter + private final String messagingLimit; + + private MessagingV2ChannelsSenderProperties(Builder builder) { + this.qualityRating = builder.qualityRating; + this.messagingLimit = builder.messagingLimit; + } + + public static Builder builder() { + return new Builder(); + } + + public static MessagingV2ChannelsSenderProperties fromJson( + String jsonString, + ObjectMapper mapper + ) throws IOException { + return mapper.readValue( + jsonString, + MessagingV2ChannelsSenderProperties.class + ); + } + + @JsonPOJOBuilder(withPrefix = "") + public static class Builder { + + @JsonProperty("quality_rating") + private String qualityRating; + + @JsonProperty("messaging_limit") + private String messagingLimit; + + @JsonInclude(JsonInclude.Include.NON_EMPTY) + @JsonProperty("quality_rating") + public Builder qualityRating(String qualityRating) { + this.qualityRating = qualityRating; + return this; + } + + @JsonInclude(JsonInclude.Include.NON_EMPTY) + @JsonProperty("messaging_limit") + public Builder messagingLimit(String messagingLimit) { + this.messagingLimit = messagingLimit; + return this; + } + + public MessagingV2ChannelsSenderProperties build() { + return new MessagingV2ChannelsSenderProperties(this); + } + } + + @Override + public boolean equals(final Object o) { + if (this == o) { + return true; + } + + if (o == null || getClass() != o.getClass()) { + return false; + } + + MessagingV2ChannelsSenderProperties other = + (MessagingV2ChannelsSenderProperties) o; + return ( + Objects.equals(qualityRating, other.qualityRating) && + Objects.equals(messagingLimit, other.messagingLimit) + ); + } + + @Override + public int hashCode() { + return Objects.hash(qualityRating, messagingLimit); + } + } + /** * Converts a JSON String into a ChannelsSender object using the provided ObjectMapper. * @@ -2107,9 +1076,6 @@ public static String toJson(Object object, ObjectMapper mapper) { } } - @Getter - private final MessagingV2RcsComplianceResponse compliance; - @Getter private final MessagingV2ChannelsSenderConfiguration configuration; @@ -2119,7 +1085,7 @@ public static String toJson(Object object, ObjectMapper mapper) { > offlineReasons; @Getter - private final MessagingV2ChannelsSenderProfileGenericResponse profile; + private final MessagingV2ChannelsSenderProfile profile; @Getter private final MessagingV2ChannelsSenderProperties properties; @@ -2141,18 +1107,13 @@ public static String toJson(Object object, ObjectMapper mapper) { @JsonCreator private ChannelsSender( - @JsonProperty( - "compliance" - ) final MessagingV2RcsComplianceResponse compliance, @JsonProperty( "configuration" ) final MessagingV2ChannelsSenderConfiguration configuration, @JsonProperty("offline_reasons") final List< MessagingV2ChannelsSenderOfflineReasonsItems > offlineReasons, - @JsonProperty( - "profile" - ) final MessagingV2ChannelsSenderProfileGenericResponse profile, + @JsonProperty("profile") final MessagingV2ChannelsSenderProfile profile, @JsonProperty( "properties" ) final MessagingV2ChannelsSenderProperties properties, @@ -2162,7 +1123,6 @@ private ChannelsSender( @JsonProperty("url") final URI url, @JsonProperty("webhook") final MessagingV2ChannelsSenderWebhook webhook ) { - this.compliance = compliance; this.configuration = configuration; this.offlineReasons = offlineReasons; this.profile = profile; @@ -2186,7 +1146,6 @@ public boolean equals(final Object o) { ChannelsSender other = (ChannelsSender) o; return ( - Objects.equals(compliance, other.compliance) && Objects.equals(configuration, other.configuration) && Objects.equals(offlineReasons, other.offlineReasons) && Objects.equals(profile, other.profile) && @@ -2202,7 +1161,6 @@ public boolean equals(final Object o) { @Override public int hashCode() { return Objects.hash( - compliance, configuration, offlineReasons, profile, diff --git a/src/main/java/com/twilio/rest/messaging/v2/ChannelsSenderDeleter.java b/src/main/java/com/twilio/rest/messaging/v2/ChannelsSenderDeleter.java index e48d65bd56..cb1d443bf0 100644 --- a/src/main/java/com/twilio/rest/messaging/v2/ChannelsSenderDeleter.java +++ b/src/main/java/com/twilio/rest/messaging/v2/ChannelsSenderDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class ChannelsSenderDeleter extends Deleter { @@ -39,6 +40,8 @@ public boolean delete(final TwilioRestClient client) { path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.MESSAGING.toString(), @@ -64,6 +67,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/notify/v1/CredentialDeleter.java b/src/main/java/com/twilio/rest/notify/v1/CredentialDeleter.java index c34020a85d..a7753e9e97 100644 --- a/src/main/java/com/twilio/rest/notify/v1/CredentialDeleter.java +++ b/src/main/java/com/twilio/rest/notify/v1/CredentialDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class CredentialDeleter extends Deleter { @@ -39,6 +40,8 @@ public boolean delete(final TwilioRestClient client) { path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.NOTIFY.toString(), @@ -64,6 +67,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/notify/v1/ServiceDeleter.java b/src/main/java/com/twilio/rest/notify/v1/ServiceDeleter.java index 7aa047d22a..d237b44074 100644 --- a/src/main/java/com/twilio/rest/notify/v1/ServiceDeleter.java +++ b/src/main/java/com/twilio/rest/notify/v1/ServiceDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class ServiceDeleter extends Deleter { @@ -39,6 +40,8 @@ public boolean delete(final TwilioRestClient client) { path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.NOTIFY.toString(), @@ -64,6 +67,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/notify/v1/service/BindingDeleter.java b/src/main/java/com/twilio/rest/notify/v1/service/BindingDeleter.java index dbeb249bd5..0fb5e2bd35 100644 --- a/src/main/java/com/twilio/rest/notify/v1/service/BindingDeleter.java +++ b/src/main/java/com/twilio/rest/notify/v1/service/BindingDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class BindingDeleter extends Deleter { @@ -46,6 +47,8 @@ public boolean delete(final TwilioRestClient client) { ); path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.NOTIFY.toString(), @@ -71,6 +74,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/numbers/v1/PortingPortIn.java b/src/main/java/com/twilio/rest/numbers/v1/PortingPortIn.java index 9a866f1162..596d05381f 100644 --- a/src/main/java/com/twilio/rest/numbers/v1/PortingPortIn.java +++ b/src/main/java/com/twilio/rest/numbers/v1/PortingPortIn.java @@ -16,7 +16,6 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.core.JsonParseException; import com.fasterxml.jackson.core.JsonParseException; @@ -24,10 +23,8 @@ import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; -import com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder; import com.twilio.base.Resource; import com.twilio.base.Resource; -import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; import com.twilio.type.*; @@ -39,7 +36,6 @@ import java.time.ZonedDateTime; import java.util.List; import java.util.Objects; -import lombok.Builder; import lombok.Getter; import lombok.ToString; @@ -47,10 +43,8 @@ @ToString public class PortingPortIn extends Resource { - public static PortingPortInCreator creator( - final PortingPortIn.NumbersV1PortingPortInCreate numbersV1PortingPortInCreate - ) { - return new PortingPortInCreator(numbersV1PortingPortInCreate); + public static PortingPortInCreator creator() { + return new PortingPortInCreator(); } public static PortingPortInDeleter deleter( @@ -65,1071 +59,6 @@ public static PortingPortInFetcher fetcher( return new PortingPortInFetcher(pathPortInRequestSid); } - public enum CustomerType { - BUSINESS("Business"), - INDIVIDUAL("Individual"); - - private final String value; - - private CustomerType(final String value) { - this.value = value; - } - - public String toString() { - return value; - } - - @JsonCreator - public static CustomerType forValue(final String value) { - return Promoter.enumFromString(value, CustomerType.values()); - } - } - - @JsonDeserialize(builder = NumbersV1PortingAddress.Builder.class) - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @ToString - public static class NumbersV1PortingAddress { - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("street") - @Getter - private final String street; - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("street_2") - @Getter - private final String street2; - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("city") - @Getter - private final String city; - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("state") - @Getter - private final String state; - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("zip") - @Getter - private final String zip; - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("country") - @Getter - private final String country; - - private NumbersV1PortingAddress(Builder builder) { - this.street = builder.street; - this.street2 = builder.street2; - this.city = builder.city; - this.state = builder.state; - this.zip = builder.zip; - this.country = builder.country; - } - - public static Builder builder( - final String street, - final String city, - final String state, - final String zip, - final String country - ) { - return new Builder(street, city, state, zip, country); - } - - public static NumbersV1PortingAddress fromJson( - String jsonString, - ObjectMapper mapper - ) throws IOException { - return mapper.readValue(jsonString, NumbersV1PortingAddress.class); - } - - @JsonPOJOBuilder(withPrefix = "") - public static class Builder { - - @JsonProperty("street") - private String street; - - @JsonProperty("street_2") - private String street2; - - @JsonProperty("city") - private String city; - - @JsonProperty("state") - private String state; - - @JsonProperty("zip") - private String zip; - - @JsonProperty("country") - private String country; - - @JsonCreator - public Builder( - @JsonProperty("street") final String street, - @JsonProperty("city") final String city, - @JsonProperty("state") final String state, - @JsonProperty("zip") final String zip, - @JsonProperty("country") final String country - ) { - this.street = street; - this.city = city; - this.state = state; - this.zip = zip; - this.country = country; - } - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("street_2") - public Builder street2(String street2) { - this.street2 = street2; - return this; - } - - public NumbersV1PortingAddress build() { - return new NumbersV1PortingAddress(this); - } - } - - @Override - public boolean equals(final Object o) { - if (this == o) { - return true; - } - - if (o == null || getClass() != o.getClass()) { - return false; - } - - NumbersV1PortingAddress other = (NumbersV1PortingAddress) o; - return ( - Objects.equals(street, other.street) && - Objects.equals(street2, other.street2) && - Objects.equals(city, other.city) && - Objects.equals(state, other.state) && - Objects.equals(zip, other.zip) && - Objects.equals(country, other.country) - ); - } - - @Override - public int hashCode() { - return Objects.hash(street, street2, city, state, zip, country); - } - } - - @JsonDeserialize( - builder = NumbersV1PortingPortInCreatePhoneNumbers.Builder.class - ) - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @ToString - public static class NumbersV1PortingPortInCreatePhoneNumbers { - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("phone_number") - @Getter - private final String phoneNumber; - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("pin") - @Getter - private final String pin; - - private NumbersV1PortingPortInCreatePhoneNumbers(Builder builder) { - this.phoneNumber = builder.phoneNumber; - this.pin = builder.pin; - } - - public static Builder builder(final String phoneNumber) { - return new Builder(phoneNumber); - } - - public static NumbersV1PortingPortInCreatePhoneNumbers fromJson( - String jsonString, - ObjectMapper mapper - ) throws IOException { - return mapper.readValue( - jsonString, - NumbersV1PortingPortInCreatePhoneNumbers.class - ); - } - - @JsonPOJOBuilder(withPrefix = "") - public static class Builder { - - @JsonProperty("phone_number") - private String phoneNumber; - - @JsonProperty("pin") - private String pin; - - @JsonCreator - public Builder( - @JsonProperty("phone_number") final String phoneNumber - ) { - this.phoneNumber = phoneNumber; - } - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("pin") - public Builder pin(String pin) { - this.pin = pin; - return this; - } - - public NumbersV1PortingPortInCreatePhoneNumbers build() { - return new NumbersV1PortingPortInCreatePhoneNumbers(this); - } - } - - @Override - public boolean equals(final Object o) { - if (this == o) { - return true; - } - - if (o == null || getClass() != o.getClass()) { - return false; - } - - NumbersV1PortingPortInCreatePhoneNumbers other = - (NumbersV1PortingPortInCreatePhoneNumbers) o; - return ( - Objects.equals(phoneNumber, other.phoneNumber) && - Objects.equals(pin, other.pin) - ); - } - - @Override - public int hashCode() { - return Objects.hash(phoneNumber, pin); - } - } - - @JsonDeserialize( - builder = NumbersV1PortingPortInPhoneNumberResult.Builder.class - ) - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @ToString - public static class NumbersV1PortingPortInPhoneNumberResult { - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("not_portability_reason") - @Getter - private final String notPortabilityReason; - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("not_portability_reason_code") - @Getter - private final Integer notPortabilityReasonCode; - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("number_type") - @Getter - private final String numberType; - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("phone_number") - @Getter - private final String phoneNumber; - - @JsonDeserialize(using = com.twilio.converter.ISO8601Deserializer.class) - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("port_date") - @Getter - private final ZonedDateTime portDate; - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("port_in_phone_number_sid") - @Getter - private final String portInPhoneNumberSid; - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("port_in_phone_number_status") - @Getter - private final String portInPhoneNumberStatus; - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("portable") - @Getter - private final Boolean portable; - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("rejection_reason") - @Getter - private final String rejectionReason; - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("rejection_reason_code") - @Getter - private final String rejectionReasonCode; - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("status_last_time_updated_timestamp") - @Getter - private final String statusLastTimeUpdatedTimestamp; - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("external_porting_vendor_phone_number_id") - @Getter - private final String externalPortingVendorPhoneNumberId; - - private NumbersV1PortingPortInPhoneNumberResult(Builder builder) { - this.notPortabilityReason = builder.notPortabilityReason; - this.notPortabilityReasonCode = builder.notPortabilityReasonCode; - this.numberType = builder.numberType; - this.phoneNumber = builder.phoneNumber; - this.portDate = builder.portDate; - this.portInPhoneNumberSid = builder.portInPhoneNumberSid; - this.portInPhoneNumberStatus = builder.portInPhoneNumberStatus; - this.portable = builder.portable; - this.rejectionReason = builder.rejectionReason; - this.rejectionReasonCode = builder.rejectionReasonCode; - this.statusLastTimeUpdatedTimestamp = - builder.statusLastTimeUpdatedTimestamp; - this.externalPortingVendorPhoneNumberId = - builder.externalPortingVendorPhoneNumberId; - } - - public static Builder builder() { - return new Builder(); - } - - public static NumbersV1PortingPortInPhoneNumberResult fromJson( - String jsonString, - ObjectMapper mapper - ) throws IOException { - return mapper.readValue( - jsonString, - NumbersV1PortingPortInPhoneNumberResult.class - ); - } - - @JsonPOJOBuilder(withPrefix = "") - public static class Builder { - - @JsonProperty("not_portability_reason") - private String notPortabilityReason; - - @JsonProperty("not_portability_reason_code") - private Integer notPortabilityReasonCode; - - @JsonProperty("number_type") - private String numberType; - - @JsonProperty("phone_number") - private String phoneNumber; - - @JsonDeserialize( - using = com.twilio.converter.ISO8601Deserializer.class - ) - @JsonProperty("port_date") - private ZonedDateTime portDate; - - @JsonProperty("port_in_phone_number_sid") - private String portInPhoneNumberSid; - - @JsonProperty("port_in_phone_number_status") - private String portInPhoneNumberStatus; - - @JsonProperty("portable") - private Boolean portable; - - @JsonProperty("rejection_reason") - private String rejectionReason; - - @JsonProperty("rejection_reason_code") - private String rejectionReasonCode; - - @JsonProperty("status_last_time_updated_timestamp") - private String statusLastTimeUpdatedTimestamp; - - @JsonProperty("external_porting_vendor_phone_number_id") - private String externalPortingVendorPhoneNumberId; - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("not_portability_reason") - public Builder notPortabilityReason(String notPortabilityReason) { - this.notPortabilityReason = notPortabilityReason; - return this; - } - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("not_portability_reason_code") - public Builder notPortabilityReasonCode( - Integer notPortabilityReasonCode - ) { - this.notPortabilityReasonCode = notPortabilityReasonCode; - return this; - } - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("number_type") - public Builder numberType(String numberType) { - this.numberType = numberType; - return this; - } - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("phone_number") - public Builder phoneNumber(String phoneNumber) { - this.phoneNumber = phoneNumber; - return this; - } - - @JsonDeserialize( - using = com.twilio.converter.ISO8601Deserializer.class - ) - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("port_date") - public Builder portDate(ZonedDateTime portDate) { - this.portDate = portDate; - return this; - } - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("port_in_phone_number_sid") - public Builder portInPhoneNumberSid(String portInPhoneNumberSid) { - this.portInPhoneNumberSid = portInPhoneNumberSid; - return this; - } - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("port_in_phone_number_status") - public Builder portInPhoneNumberStatus( - String portInPhoneNumberStatus - ) { - this.portInPhoneNumberStatus = portInPhoneNumberStatus; - return this; - } - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("portable") - public Builder portable(Boolean portable) { - this.portable = portable; - return this; - } - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("rejection_reason") - public Builder rejectionReason(String rejectionReason) { - this.rejectionReason = rejectionReason; - return this; - } - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("rejection_reason_code") - public Builder rejectionReasonCode(String rejectionReasonCode) { - this.rejectionReasonCode = rejectionReasonCode; - return this; - } - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("status_last_time_updated_timestamp") - public Builder statusLastTimeUpdatedTimestamp( - String statusLastTimeUpdatedTimestamp - ) { - this.statusLastTimeUpdatedTimestamp = - statusLastTimeUpdatedTimestamp; - return this; - } - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("external_porting_vendor_phone_number_id") - public Builder externalPortingVendorPhoneNumberId( - String externalPortingVendorPhoneNumberId - ) { - this.externalPortingVendorPhoneNumberId = - externalPortingVendorPhoneNumberId; - return this; - } - - public NumbersV1PortingPortInPhoneNumberResult build() { - return new NumbersV1PortingPortInPhoneNumberResult(this); - } - } - - @Override - public boolean equals(final Object o) { - if (this == o) { - return true; - } - - if (o == null || getClass() != o.getClass()) { - return false; - } - - NumbersV1PortingPortInPhoneNumberResult other = - (NumbersV1PortingPortInPhoneNumberResult) o; - return ( - Objects.equals( - notPortabilityReason, - other.notPortabilityReason - ) && - Objects.equals( - notPortabilityReasonCode, - other.notPortabilityReasonCode - ) && - Objects.equals(numberType, other.numberType) && - Objects.equals(phoneNumber, other.phoneNumber) && - Objects.equals(portDate, other.portDate) && - Objects.equals( - portInPhoneNumberSid, - other.portInPhoneNumberSid - ) && - Objects.equals( - portInPhoneNumberStatus, - other.portInPhoneNumberStatus - ) && - Objects.equals(portable, other.portable) && - Objects.equals(rejectionReason, other.rejectionReason) && - Objects.equals( - rejectionReasonCode, - other.rejectionReasonCode - ) && - Objects.equals( - statusLastTimeUpdatedTimestamp, - other.statusLastTimeUpdatedTimestamp - ) && - Objects.equals( - externalPortingVendorPhoneNumberId, - other.externalPortingVendorPhoneNumberId - ) - ); - } - - @Override - public int hashCode() { - return Objects.hash( - notPortabilityReason, - notPortabilityReasonCode, - numberType, - phoneNumber, - portDate, - portInPhoneNumberSid, - portInPhoneNumberStatus, - portable, - rejectionReason, - rejectionReasonCode, - statusLastTimeUpdatedTimestamp, - externalPortingVendorPhoneNumberId - ); - } - } - - @JsonDeserialize(builder = NumbersV1PortingPortInCreate.Builder.class) - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @ToString - public static class NumbersV1PortingPortInCreate { - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("account_sid") - @Getter - private final String accountSid; - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("documents") - @Getter - private final List documents; - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("phone_numbers") - @Getter - private final List< - NumbersV1PortingPortInCreatePhoneNumbers - > phoneNumbers; - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("losing_carrier_information") - @Getter - private final NumbersV1PortingLosingCarrierInformation losingCarrierInformation; - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("notification_emails") - @Getter - private final List notificationEmails; - - @JsonDeserialize( - using = com.twilio.converter.LocalDateDeserializer.class - ) - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("target_port_in_date") - @Getter - private final LocalDate targetPortInDate; - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("target_port_in_time_range_start") - @Getter - private final String targetPortInTimeRangeStart; - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("target_port_in_time_range_end") - @Getter - private final String targetPortInTimeRangeEnd; - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("bundle_sid") - @Getter - private final String bundleSid; - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("portability_advance_carrier") - @Getter - private final String portabilityAdvanceCarrier; - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("auto_cancel_approval_numbers") - @Getter - private final String autoCancelApprovalNumbers; - - private NumbersV1PortingPortInCreate(Builder builder) { - this.accountSid = builder.accountSid; - this.documents = builder.documents; - this.phoneNumbers = builder.phoneNumbers; - this.losingCarrierInformation = builder.losingCarrierInformation; - this.notificationEmails = builder.notificationEmails; - this.targetPortInDate = builder.targetPortInDate; - this.targetPortInTimeRangeStart = - builder.targetPortInTimeRangeStart; - this.targetPortInTimeRangeEnd = builder.targetPortInTimeRangeEnd; - this.bundleSid = builder.bundleSid; - this.portabilityAdvanceCarrier = builder.portabilityAdvanceCarrier; - this.autoCancelApprovalNumbers = builder.autoCancelApprovalNumbers; - } - - public static Builder builder( - final String accountSid, - final List documents, - final NumbersV1PortingLosingCarrierInformation losingCarrierInformation - ) { - return new Builder(accountSid, documents, losingCarrierInformation); - } - - public static NumbersV1PortingPortInCreate fromJson( - String jsonString, - ObjectMapper mapper - ) throws IOException { - return mapper.readValue( - jsonString, - NumbersV1PortingPortInCreate.class - ); - } - - @JsonPOJOBuilder(withPrefix = "") - public static class Builder { - - @JsonProperty("account_sid") - private String accountSid; - - @JsonProperty("documents") - private List documents; - - @JsonProperty("phone_numbers") - private List phoneNumbers; - - @JsonProperty("losing_carrier_information") - private NumbersV1PortingLosingCarrierInformation losingCarrierInformation; - - @JsonProperty("notification_emails") - private List notificationEmails; - - @JsonDeserialize( - using = com.twilio.converter.LocalDateDeserializer.class - ) - @JsonProperty("target_port_in_date") - private LocalDate targetPortInDate; - - @JsonProperty("target_port_in_time_range_start") - private String targetPortInTimeRangeStart; - - @JsonProperty("target_port_in_time_range_end") - private String targetPortInTimeRangeEnd; - - @JsonProperty("bundle_sid") - private String bundleSid; - - @JsonProperty("portability_advance_carrier") - private String portabilityAdvanceCarrier; - - @JsonProperty("auto_cancel_approval_numbers") - private String autoCancelApprovalNumbers; - - @JsonCreator - public Builder( - @JsonProperty("account_sid") final String accountSid, - @JsonProperty("documents") final List documents, - @JsonProperty( - "losing_carrier_information" - ) final NumbersV1PortingLosingCarrierInformation losingCarrierInformation - ) { - this.accountSid = accountSid; - this.documents = documents; - this.losingCarrierInformation = losingCarrierInformation; - } - - public NumbersV1PortingPortInCreate build() { - return new NumbersV1PortingPortInCreate(this); - } - } - - @Override - public boolean equals(final Object o) { - if (this == o) { - return true; - } - - if (o == null || getClass() != o.getClass()) { - return false; - } - - NumbersV1PortingPortInCreate other = - (NumbersV1PortingPortInCreate) o; - return ( - Objects.equals(accountSid, other.accountSid) && - Objects.equals(documents, other.documents) && - Objects.equals(phoneNumbers, other.phoneNumbers) && - Objects.equals( - losingCarrierInformation, - other.losingCarrierInformation - ) && - Objects.equals(notificationEmails, other.notificationEmails) && - Objects.equals(targetPortInDate, other.targetPortInDate) && - Objects.equals( - targetPortInTimeRangeStart, - other.targetPortInTimeRangeStart - ) && - Objects.equals( - targetPortInTimeRangeEnd, - other.targetPortInTimeRangeEnd - ) && - Objects.equals(bundleSid, other.bundleSid) && - Objects.equals( - portabilityAdvanceCarrier, - other.portabilityAdvanceCarrier - ) && - Objects.equals( - autoCancelApprovalNumbers, - other.autoCancelApprovalNumbers - ) - ); - } - - @Override - public int hashCode() { - return Objects.hash( - accountSid, - documents, - phoneNumbers, - losingCarrierInformation, - notificationEmails, - targetPortInDate, - targetPortInTimeRangeStart, - targetPortInTimeRangeEnd, - bundleSid, - portabilityAdvanceCarrier, - autoCancelApprovalNumbers - ); - } - } - - @JsonDeserialize( - builder = NumbersV1PortingLosingCarrierInformation.Builder.class - ) - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @ToString - public static class NumbersV1PortingLosingCarrierInformation { - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("customer_name") - @Getter - private final String customerName; - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("account_number") - @Getter - private final String accountNumber; - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("account_telephone_number") - @Getter - private final String accountTelephoneNumber; - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("address_sid") - @Getter - private final String addressSid; - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("address") - @Getter - private final NumbersV1PortingAddress address; - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("authorized_representative") - @Getter - private final String authorizedRepresentative; - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("authorized_representative_email") - @Getter - private final String authorizedRepresentativeEmail; - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("customer_type") - @Getter - private final PortingPortIn.CustomerType customerType; - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("authorized_representative_katakana") - @Getter - private final String authorizedRepresentativeKatakana; - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("sub_municipality") - @Getter - private final String subMunicipality; - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("building") - @Getter - private final String building; - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("katakana_name") - @Getter - private final String katakanaName; - - private NumbersV1PortingLosingCarrierInformation(Builder builder) { - this.customerName = builder.customerName; - this.accountNumber = builder.accountNumber; - this.accountTelephoneNumber = builder.accountTelephoneNumber; - this.addressSid = builder.addressSid; - this.address = builder.address; - this.authorizedRepresentative = builder.authorizedRepresentative; - this.authorizedRepresentativeEmail = - builder.authorizedRepresentativeEmail; - this.customerType = builder.customerType; - this.authorizedRepresentativeKatakana = - builder.authorizedRepresentativeKatakana; - this.subMunicipality = builder.subMunicipality; - this.building = builder.building; - this.katakanaName = builder.katakanaName; - } - - public static Builder builder( - final String customerName, - final String authorizedRepresentative, - final String authorizedRepresentativeEmail - ) { - return new Builder( - customerName, - authorizedRepresentative, - authorizedRepresentativeEmail - ); - } - - public static NumbersV1PortingLosingCarrierInformation fromJson( - String jsonString, - ObjectMapper mapper - ) throws IOException { - return mapper.readValue( - jsonString, - NumbersV1PortingLosingCarrierInformation.class - ); - } - - @JsonPOJOBuilder(withPrefix = "") - public static class Builder { - - @JsonProperty("customer_name") - private String customerName; - - @JsonProperty("account_number") - private String accountNumber; - - @JsonProperty("account_telephone_number") - private String accountTelephoneNumber; - - @JsonProperty("address_sid") - private String addressSid; - - @JsonProperty("address") - private NumbersV1PortingAddress address; - - @JsonProperty("authorized_representative") - private String authorizedRepresentative; - - @JsonProperty("authorized_representative_email") - private String authorizedRepresentativeEmail; - - @JsonProperty("customer_type") - private PortingPortIn.CustomerType customerType; - - @JsonProperty("authorized_representative_katakana") - private String authorizedRepresentativeKatakana; - - @JsonProperty("sub_municipality") - private String subMunicipality; - - @JsonProperty("building") - private String building; - - @JsonProperty("katakana_name") - private String katakanaName; - - @JsonCreator - public Builder( - @JsonProperty("customer_name") final String customerName, - @JsonProperty( - "authorized_representative" - ) final String authorizedRepresentative, - @JsonProperty( - "authorized_representative_email" - ) final String authorizedRepresentativeEmail - ) { - this.customerName = customerName; - this.authorizedRepresentative = authorizedRepresentative; - this.authorizedRepresentativeEmail = - authorizedRepresentativeEmail; - } - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("account_number") - public Builder accountNumber(String accountNumber) { - this.accountNumber = accountNumber; - return this; - } - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("account_telephone_number") - public Builder accountTelephoneNumber( - String accountTelephoneNumber - ) { - this.accountTelephoneNumber = accountTelephoneNumber; - return this; - } - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("address_sid") - public Builder addressSid(String addressSid) { - this.addressSid = addressSid; - return this; - } - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("address") - public Builder address(NumbersV1PortingAddress address) { - this.address = address; - return this; - } - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("customer_type") - public Builder customerType( - PortingPortIn.CustomerType customerType - ) { - this.customerType = customerType; - return this; - } - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("authorized_representative_katakana") - public Builder authorizedRepresentativeKatakana( - String authorizedRepresentativeKatakana - ) { - this.authorizedRepresentativeKatakana = - authorizedRepresentativeKatakana; - return this; - } - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("sub_municipality") - public Builder subMunicipality(String subMunicipality) { - this.subMunicipality = subMunicipality; - return this; - } - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("building") - public Builder building(String building) { - this.building = building; - return this; - } - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - @JsonProperty("katakana_name") - public Builder katakanaName(String katakanaName) { - this.katakanaName = katakanaName; - return this; - } - - public NumbersV1PortingLosingCarrierInformation build() { - return new NumbersV1PortingLosingCarrierInformation(this); - } - } - - @Override - public boolean equals(final Object o) { - if (this == o) { - return true; - } - - if (o == null || getClass() != o.getClass()) { - return false; - } - - NumbersV1PortingLosingCarrierInformation other = - (NumbersV1PortingLosingCarrierInformation) o; - return ( - Objects.equals(customerName, other.customerName) && - Objects.equals(accountNumber, other.accountNumber) && - Objects.equals( - accountTelephoneNumber, - other.accountTelephoneNumber - ) && - Objects.equals(addressSid, other.addressSid) && - Objects.equals(address, other.address) && - Objects.equals( - authorizedRepresentative, - other.authorizedRepresentative - ) && - Objects.equals( - authorizedRepresentativeEmail, - other.authorizedRepresentativeEmail - ) && - Objects.equals(customerType, other.customerType) && - Objects.equals( - authorizedRepresentativeKatakana, - other.authorizedRepresentativeKatakana - ) && - Objects.equals(subMunicipality, other.subMunicipality) && - Objects.equals(building, other.building) && - Objects.equals(katakanaName, other.katakanaName) - ); - } - - @Override - public int hashCode() { - return Objects.hash( - customerName, - accountNumber, - accountTelephoneNumber, - addressSid, - address, - authorizedRepresentative, - authorizedRepresentativeEmail, - customerType, - authorizedRepresentativeKatakana, - subMunicipality, - building, - katakanaName - ); - } - } - /** * Converts a JSON String into a PortingPortIn object using the provided ObjectMapper. * @@ -1188,12 +117,6 @@ public static String toJson(Object object, ObjectMapper mapper) { @Getter private final String accountSid; - @Getter - private final String autoCancelApprovalNumbers; - - @Getter - private final String bundleSid; - @Getter private final ZonedDateTime dateCreated; @@ -1201,16 +124,13 @@ public static String toJson(Object object, ObjectMapper mapper) { private final List documents; @Getter - private final NumbersV1PortingLosingCarrierInformation losingCarrierInformation; + private final Object losingCarrierInformation; @Getter private final List notificationEmails; @Getter - private final String orderCancellationReason; - - @Getter - private final List phoneNumbers; + private final List phoneNumbers; @Getter private final String portInRequestSid; @@ -1218,12 +138,6 @@ public static String toJson(Object object, ObjectMapper mapper) { @Getter private final String portInRequestStatus; - @Getter - private final String portabilityAdvanceCarrier; - - @Getter - private final Integer supportTicketId; - @Getter private final LocalDate targetPortInDate; @@ -1239,34 +153,21 @@ public static String toJson(Object object, ObjectMapper mapper) { @JsonCreator private PortingPortIn( @JsonProperty("account_sid") final String accountSid, - @JsonProperty( - "auto_cancel_approval_numbers" - ) final String autoCancelApprovalNumbers, - @JsonProperty("bundle_sid") final String bundleSid, @JsonProperty("date_created") @JsonDeserialize( using = com.twilio.converter.ISO8601Deserializer.class ) final ZonedDateTime dateCreated, @JsonProperty("documents") final List documents, @JsonProperty( "losing_carrier_information" - ) final NumbersV1PortingLosingCarrierInformation losingCarrierInformation, + ) final Object losingCarrierInformation, @JsonProperty("notification_emails") final List< String > notificationEmails, - @JsonProperty( - "order_cancellation_reason" - ) final String orderCancellationReason, - @JsonProperty("phone_numbers") final List< - NumbersV1PortingPortInPhoneNumberResult - > phoneNumbers, + @JsonProperty("phone_numbers") final List phoneNumbers, @JsonProperty("port_in_request_sid") final String portInRequestSid, @JsonProperty( "port_in_request_status" ) final String portInRequestStatus, - @JsonProperty( - "portability_advance_carrier" - ) final String portabilityAdvanceCarrier, - @JsonProperty("support_ticket_id") final Integer supportTicketId, @JsonProperty("target_port_in_date") @JsonDeserialize( using = com.twilio.converter.LocalDateDeserializer.class ) final LocalDate targetPortInDate, @@ -1279,18 +180,13 @@ private PortingPortIn( @JsonProperty("url") final URI url ) { this.accountSid = accountSid; - this.autoCancelApprovalNumbers = autoCancelApprovalNumbers; - this.bundleSid = bundleSid; this.dateCreated = dateCreated; this.documents = documents; this.losingCarrierInformation = losingCarrierInformation; this.notificationEmails = notificationEmails; - this.orderCancellationReason = orderCancellationReason; this.phoneNumbers = phoneNumbers; this.portInRequestSid = portInRequestSid; this.portInRequestStatus = portInRequestStatus; - this.portabilityAdvanceCarrier = portabilityAdvanceCarrier; - this.supportTicketId = supportTicketId; this.targetPortInDate = targetPortInDate; this.targetPortInTimeRangeEnd = targetPortInTimeRangeEnd; this.targetPortInTimeRangeStart = targetPortInTimeRangeStart; @@ -1310,11 +206,6 @@ public boolean equals(final Object o) { PortingPortIn other = (PortingPortIn) o; return ( Objects.equals(accountSid, other.accountSid) && - Objects.equals( - autoCancelApprovalNumbers, - other.autoCancelApprovalNumbers - ) && - Objects.equals(bundleSid, other.bundleSid) && Objects.equals(dateCreated, other.dateCreated) && Objects.equals(documents, other.documents) && Objects.equals( @@ -1322,18 +213,9 @@ public boolean equals(final Object o) { other.losingCarrierInformation ) && Objects.equals(notificationEmails, other.notificationEmails) && - Objects.equals( - orderCancellationReason, - other.orderCancellationReason - ) && Objects.equals(phoneNumbers, other.phoneNumbers) && Objects.equals(portInRequestSid, other.portInRequestSid) && Objects.equals(portInRequestStatus, other.portInRequestStatus) && - Objects.equals( - portabilityAdvanceCarrier, - other.portabilityAdvanceCarrier - ) && - Objects.equals(supportTicketId, other.supportTicketId) && Objects.equals(targetPortInDate, other.targetPortInDate) && Objects.equals( targetPortInTimeRangeEnd, @@ -1351,18 +233,13 @@ public boolean equals(final Object o) { public int hashCode() { return Objects.hash( accountSid, - autoCancelApprovalNumbers, - bundleSid, dateCreated, documents, losingCarrierInformation, notificationEmails, - orderCancellationReason, phoneNumbers, portInRequestSid, portInRequestStatus, - portabilityAdvanceCarrier, - supportTicketId, targetPortInDate, targetPortInTimeRangeEnd, targetPortInTimeRangeStart, diff --git a/src/main/java/com/twilio/rest/numbers/v1/PortingPortInCreator.java b/src/main/java/com/twilio/rest/numbers/v1/PortingPortInCreator.java index 6f846df6f6..ea3d19d14c 100644 --- a/src/main/java/com/twilio/rest/numbers/v1/PortingPortInCreator.java +++ b/src/main/java/com/twilio/rest/numbers/v1/PortingPortInCreator.java @@ -29,18 +29,12 @@ public class PortingPortInCreator extends Creator { - private PortingPortIn.NumbersV1PortingPortInCreate numbersV1PortingPortInCreate; + private Object body; - public PortingPortInCreator( - final PortingPortIn.NumbersV1PortingPortInCreate numbersV1PortingPortInCreate - ) { - this.numbersV1PortingPortInCreate = numbersV1PortingPortInCreate; - } + public PortingPortInCreator() {} - public PortingPortInCreator setNumbersV1PortingPortInCreate( - final PortingPortIn.NumbersV1PortingPortInCreate numbersV1PortingPortInCreate - ) { - this.numbersV1PortingPortInCreate = numbersV1PortingPortInCreate; + public PortingPortInCreator setBody(final Object body) { + this.body = body; return this; } @@ -84,10 +78,8 @@ public PortingPortIn create(final TwilioRestClient client) { private void addPostParams(final Request request, TwilioRestClient client) { ObjectMapper objectMapper = client.getObjectMapper(); - if (numbersV1PortingPortInCreate != null) { - request.setBody( - PortingPortIn.toJson(numbersV1PortingPortInCreate, objectMapper) - ); + if (body != null) { + request.setBody(PortingPortIn.toJson(body, objectMapper)); } } } diff --git a/src/main/java/com/twilio/rest/numbers/v1/PortingPortInDeleter.java b/src/main/java/com/twilio/rest/numbers/v1/PortingPortInDeleter.java index e3b64ef51c..6c90509145 100644 --- a/src/main/java/com/twilio/rest/numbers/v1/PortingPortInDeleter.java +++ b/src/main/java/com/twilio/rest/numbers/v1/PortingPortInDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class PortingPortInDeleter extends Deleter { @@ -43,6 +44,8 @@ public boolean delete(final TwilioRestClient client) { this.pathPortInRequestSid.toString() ); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.NUMBERS.toString(), @@ -68,6 +71,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/numbers/v1/PortingPortInPhoneNumberDeleter.java b/src/main/java/com/twilio/rest/numbers/v1/PortingPortInPhoneNumberDeleter.java index b10d09833c..325089bc1c 100644 --- a/src/main/java/com/twilio/rest/numbers/v1/PortingPortInPhoneNumberDeleter.java +++ b/src/main/java/com/twilio/rest/numbers/v1/PortingPortInPhoneNumberDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class PortingPortInPhoneNumberDeleter extends Deleter { @@ -55,6 +56,8 @@ public boolean delete(final TwilioRestClient client) { this.pathPhoneNumberSid.toString() ); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.NUMBERS.toString(), @@ -80,6 +83,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/numbers/v1/PortingWebhookConfigurationDeleteDeleter.java b/src/main/java/com/twilio/rest/numbers/v1/PortingWebhookConfigurationDeleteDeleter.java index 50d2c6f3d4..7484810597 100644 --- a/src/main/java/com/twilio/rest/numbers/v1/PortingWebhookConfigurationDeleteDeleter.java +++ b/src/main/java/com/twilio/rest/numbers/v1/PortingWebhookConfigurationDeleteDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class PortingWebhookConfigurationDeleteDeleter extends Deleter { @@ -46,6 +47,8 @@ public boolean delete(final TwilioRestClient client) { this.pathWebhookType.toString() ); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.NUMBERS.toString(), @@ -71,6 +74,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/numbers/v2/AuthorizationDocumentDeleter.java b/src/main/java/com/twilio/rest/numbers/v2/AuthorizationDocumentDeleter.java index 9b5faf57fa..ef6d508c16 100644 --- a/src/main/java/com/twilio/rest/numbers/v2/AuthorizationDocumentDeleter.java +++ b/src/main/java/com/twilio/rest/numbers/v2/AuthorizationDocumentDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class AuthorizationDocumentDeleter extends Deleter { @@ -40,6 +41,8 @@ public boolean delete(final TwilioRestClient client) { path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.NUMBERS.toString(), @@ -65,6 +68,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/numbers/v2/HostedNumberOrderDeleter.java b/src/main/java/com/twilio/rest/numbers/v2/HostedNumberOrderDeleter.java index 4b41c317bd..dd50f30702 100644 --- a/src/main/java/com/twilio/rest/numbers/v2/HostedNumberOrderDeleter.java +++ b/src/main/java/com/twilio/rest/numbers/v2/HostedNumberOrderDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class HostedNumberOrderDeleter extends Deleter { @@ -39,6 +40,8 @@ public boolean delete(final TwilioRestClient client) { path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.NUMBERS.toString(), @@ -64,6 +67,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/numbers/v2/regulatorycompliance/BundleDeleter.java b/src/main/java/com/twilio/rest/numbers/v2/regulatorycompliance/BundleDeleter.java index 62c2bad24a..270fdbdd80 100644 --- a/src/main/java/com/twilio/rest/numbers/v2/regulatorycompliance/BundleDeleter.java +++ b/src/main/java/com/twilio/rest/numbers/v2/regulatorycompliance/BundleDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class BundleDeleter extends Deleter { @@ -39,6 +40,8 @@ public boolean delete(final TwilioRestClient client) { path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.NUMBERS.toString(), @@ -64,6 +67,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/numbers/v2/regulatorycompliance/EndUserDeleter.java b/src/main/java/com/twilio/rest/numbers/v2/regulatorycompliance/EndUserDeleter.java index 8ed10a1c84..1f38874421 100644 --- a/src/main/java/com/twilio/rest/numbers/v2/regulatorycompliance/EndUserDeleter.java +++ b/src/main/java/com/twilio/rest/numbers/v2/regulatorycompliance/EndUserDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class EndUserDeleter extends Deleter { @@ -39,6 +40,8 @@ public boolean delete(final TwilioRestClient client) { path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.NUMBERS.toString(), @@ -64,6 +67,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/numbers/v2/regulatorycompliance/SupportingDocumentDeleter.java b/src/main/java/com/twilio/rest/numbers/v2/regulatorycompliance/SupportingDocumentDeleter.java index 4b0ffd2873..bf0d15c741 100644 --- a/src/main/java/com/twilio/rest/numbers/v2/regulatorycompliance/SupportingDocumentDeleter.java +++ b/src/main/java/com/twilio/rest/numbers/v2/regulatorycompliance/SupportingDocumentDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class SupportingDocumentDeleter extends Deleter { @@ -39,6 +40,8 @@ public boolean delete(final TwilioRestClient client) { path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.NUMBERS.toString(), @@ -64,6 +67,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/numbers/v2/regulatorycompliance/bundle/ItemAssignmentDeleter.java b/src/main/java/com/twilio/rest/numbers/v2/regulatorycompliance/bundle/ItemAssignmentDeleter.java index ce960a030d..d4ce725b76 100644 --- a/src/main/java/com/twilio/rest/numbers/v2/regulatorycompliance/bundle/ItemAssignmentDeleter.java +++ b/src/main/java/com/twilio/rest/numbers/v2/regulatorycompliance/bundle/ItemAssignmentDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class ItemAssignmentDeleter extends Deleter { @@ -50,6 +51,8 @@ public boolean delete(final TwilioRestClient client) { ); path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.NUMBERS.toString(), @@ -75,6 +78,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/preview/hostedNumbers/HostedNumberOrderDeleter.java b/src/main/java/com/twilio/rest/preview/hostedNumbers/HostedNumberOrderDeleter.java index cb97733e4a..9ab7249796 100644 --- a/src/main/java/com/twilio/rest/preview/hostedNumbers/HostedNumberOrderDeleter.java +++ b/src/main/java/com/twilio/rest/preview/hostedNumbers/HostedNumberOrderDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class HostedNumberOrderDeleter extends Deleter { @@ -39,6 +40,8 @@ public boolean delete(final TwilioRestClient client) { path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.PREVIEW.toString(), @@ -64,6 +67,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/preview/marketplace/InstalledAddOnDeleter.java b/src/main/java/com/twilio/rest/preview/marketplace/InstalledAddOnDeleter.java index f47693f7a3..1accf52575 100644 --- a/src/main/java/com/twilio/rest/preview/marketplace/InstalledAddOnDeleter.java +++ b/src/main/java/com/twilio/rest/preview/marketplace/InstalledAddOnDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class InstalledAddOnDeleter extends Deleter { @@ -39,6 +40,8 @@ public boolean delete(final TwilioRestClient client) { path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.PREVIEW.toString(), @@ -64,6 +67,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/preview/wireless/RatePlanDeleter.java b/src/main/java/com/twilio/rest/preview/wireless/RatePlanDeleter.java index 022dda921f..80180625fa 100644 --- a/src/main/java/com/twilio/rest/preview/wireless/RatePlanDeleter.java +++ b/src/main/java/com/twilio/rest/preview/wireless/RatePlanDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class RatePlanDeleter extends Deleter { @@ -39,6 +40,8 @@ public boolean delete(final TwilioRestClient client) { path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.PREVIEW.toString(), @@ -64,6 +67,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/previewiam/organizations/RoleAssignmentDeleter.java b/src/main/java/com/twilio/rest/previewiam/organizations/RoleAssignmentDeleter.java index 6c0181f5f4..966885e9b2 100644 --- a/src/main/java/com/twilio/rest/previewiam/organizations/RoleAssignmentDeleter.java +++ b/src/main/java/com/twilio/rest/previewiam/organizations/RoleAssignmentDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class RoleAssignmentDeleter extends Deleter { @@ -54,6 +55,8 @@ public boolean delete(final TwilioRestClient client) { this.pathRoleAssignmentSid.toString() ); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.PREVIEWIAM.toString(), @@ -79,6 +82,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/previewiam/organizations/UserDeleter.java b/src/main/java/com/twilio/rest/previewiam/organizations/UserDeleter.java index 1b7799824c..0fe36dd39e 100644 --- a/src/main/java/com/twilio/rest/previewiam/organizations/UserDeleter.java +++ b/src/main/java/com/twilio/rest/previewiam/organizations/UserDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class UserDeleter extends Deleter { @@ -49,6 +50,8 @@ public boolean delete(final TwilioRestClient client) { ); path = path.replace("{" + "UserSid" + "}", this.pathUserSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.PREVIEWIAM.toString(), @@ -74,6 +77,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/proxy/v1/ServiceDeleter.java b/src/main/java/com/twilio/rest/proxy/v1/ServiceDeleter.java index c3595d54d3..032dcdee4b 100644 --- a/src/main/java/com/twilio/rest/proxy/v1/ServiceDeleter.java +++ b/src/main/java/com/twilio/rest/proxy/v1/ServiceDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class ServiceDeleter extends Deleter { @@ -39,6 +40,8 @@ public boolean delete(final TwilioRestClient client) { path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.PROXY.toString(), @@ -64,6 +67,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/proxy/v1/service/PhoneNumberDeleter.java b/src/main/java/com/twilio/rest/proxy/v1/service/PhoneNumberDeleter.java index 833d5ddea8..9f7996fdd5 100644 --- a/src/main/java/com/twilio/rest/proxy/v1/service/PhoneNumberDeleter.java +++ b/src/main/java/com/twilio/rest/proxy/v1/service/PhoneNumberDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class PhoneNumberDeleter extends Deleter { @@ -49,6 +50,8 @@ public boolean delete(final TwilioRestClient client) { ); path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.PROXY.toString(), @@ -74,6 +77,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/proxy/v1/service/SessionDeleter.java b/src/main/java/com/twilio/rest/proxy/v1/service/SessionDeleter.java index cac90568dd..c27c7e08de 100644 --- a/src/main/java/com/twilio/rest/proxy/v1/service/SessionDeleter.java +++ b/src/main/java/com/twilio/rest/proxy/v1/service/SessionDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class SessionDeleter extends Deleter { @@ -46,6 +47,8 @@ public boolean delete(final TwilioRestClient client) { ); path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.PROXY.toString(), @@ -71,6 +74,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/proxy/v1/service/session/InteractionDeleter.java b/src/main/java/com/twilio/rest/proxy/v1/service/session/InteractionDeleter.java index 57d465f8ca..4fb919be5b 100644 --- a/src/main/java/com/twilio/rest/proxy/v1/service/session/InteractionDeleter.java +++ b/src/main/java/com/twilio/rest/proxy/v1/service/session/InteractionDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class InteractionDeleter extends Deleter { @@ -58,6 +59,8 @@ public boolean delete(final TwilioRestClient client) { ); path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.PROXY.toString(), @@ -83,6 +86,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/proxy/v1/service/session/ParticipantDeleter.java b/src/main/java/com/twilio/rest/proxy/v1/service/session/ParticipantDeleter.java index c98aabbac2..102cfb92fb 100644 --- a/src/main/java/com/twilio/rest/proxy/v1/service/session/ParticipantDeleter.java +++ b/src/main/java/com/twilio/rest/proxy/v1/service/session/ParticipantDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class ParticipantDeleter extends Deleter { @@ -58,6 +59,8 @@ public boolean delete(final TwilioRestClient client) { ); path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.PROXY.toString(), @@ -83,6 +86,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/serverless/v1/ServiceDeleter.java b/src/main/java/com/twilio/rest/serverless/v1/ServiceDeleter.java index cc2166e3fc..1d7f740295 100644 --- a/src/main/java/com/twilio/rest/serverless/v1/ServiceDeleter.java +++ b/src/main/java/com/twilio/rest/serverless/v1/ServiceDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class ServiceDeleter extends Deleter { @@ -39,6 +40,8 @@ public boolean delete(final TwilioRestClient client) { path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.SERVERLESS.toString(), @@ -64,6 +67,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/serverless/v1/service/AssetDeleter.java b/src/main/java/com/twilio/rest/serverless/v1/service/AssetDeleter.java index 6459db47d1..171dc4bd70 100644 --- a/src/main/java/com/twilio/rest/serverless/v1/service/AssetDeleter.java +++ b/src/main/java/com/twilio/rest/serverless/v1/service/AssetDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class AssetDeleter extends Deleter { @@ -46,6 +47,8 @@ public boolean delete(final TwilioRestClient client) { ); path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.SERVERLESS.toString(), @@ -71,6 +74,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/serverless/v1/service/BuildDeleter.java b/src/main/java/com/twilio/rest/serverless/v1/service/BuildDeleter.java index e46912e656..e4def61f7d 100644 --- a/src/main/java/com/twilio/rest/serverless/v1/service/BuildDeleter.java +++ b/src/main/java/com/twilio/rest/serverless/v1/service/BuildDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class BuildDeleter extends Deleter { @@ -46,6 +47,8 @@ public boolean delete(final TwilioRestClient client) { ); path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.SERVERLESS.toString(), @@ -71,6 +74,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/serverless/v1/service/EnvironmentDeleter.java b/src/main/java/com/twilio/rest/serverless/v1/service/EnvironmentDeleter.java index 013973c86d..a693bede63 100644 --- a/src/main/java/com/twilio/rest/serverless/v1/service/EnvironmentDeleter.java +++ b/src/main/java/com/twilio/rest/serverless/v1/service/EnvironmentDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class EnvironmentDeleter extends Deleter { @@ -49,6 +50,8 @@ public boolean delete(final TwilioRestClient client) { ); path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.SERVERLESS.toString(), @@ -74,6 +77,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/serverless/v1/service/FunctionDeleter.java b/src/main/java/com/twilio/rest/serverless/v1/service/FunctionDeleter.java index 951a9ad0d0..a4b79819e7 100644 --- a/src/main/java/com/twilio/rest/serverless/v1/service/FunctionDeleter.java +++ b/src/main/java/com/twilio/rest/serverless/v1/service/FunctionDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class FunctionDeleter extends Deleter { @@ -46,6 +47,8 @@ public boolean delete(final TwilioRestClient client) { ); path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.SERVERLESS.toString(), @@ -71,6 +74,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/serverless/v1/service/environment/Log.java b/src/main/java/com/twilio/rest/serverless/v1/service/environment/Log.java index 7a75b72dc0..3f236072bd 100644 --- a/src/main/java/com/twilio/rest/serverless/v1/service/environment/Log.java +++ b/src/main/java/com/twilio/rest/serverless/v1/service/environment/Log.java @@ -25,6 +25,7 @@ import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.twilio.base.Resource; import com.twilio.base.Resource; +import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; import com.twilio.type.*; @@ -56,6 +57,27 @@ public static LogReader reader( return new LogReader(pathServiceSid, pathEnvironmentSid); } + public enum Level { + INFO("info"), + WARN("warn"), + ERROR("error"); + + private final String value; + + private Level(final String value) { + this.value = value; + } + + public String toString() { + return value; + } + + @JsonCreator + public static Level forValue(final String value) { + return Promoter.enumFromString(value, Level.values()); + } + } + /** * Converts a JSON String into a Log object using the provided ObjectMapper. * @@ -130,7 +152,7 @@ public static String toJson(Object object, ObjectMapper mapper) { private final String functionSid; @Getter - private final String level; + private final Log.Level level; @Getter private final String message; @@ -157,7 +179,7 @@ private Log( @JsonProperty("deployment_sid") final String deploymentSid, @JsonProperty("environment_sid") final String environmentSid, @JsonProperty("function_sid") final String functionSid, - @JsonProperty("level") final String level, + @JsonProperty("level") final Log.Level level, @JsonProperty("message") final String message, @JsonProperty("request_sid") final String requestSid, @JsonProperty("service_sid") final String serviceSid, diff --git a/src/main/java/com/twilio/rest/serverless/v1/service/environment/VariableDeleter.java b/src/main/java/com/twilio/rest/serverless/v1/service/environment/VariableDeleter.java index 440c6fddc9..4aedcc6c7a 100644 --- a/src/main/java/com/twilio/rest/serverless/v1/service/environment/VariableDeleter.java +++ b/src/main/java/com/twilio/rest/serverless/v1/service/environment/VariableDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class VariableDeleter extends Deleter { @@ -58,6 +59,8 @@ public boolean delete(final TwilioRestClient client) { ); path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.SERVERLESS.toString(), @@ -83,6 +86,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/studio/v1/FlowDeleter.java b/src/main/java/com/twilio/rest/studio/v1/FlowDeleter.java index 19c8e86aa7..5e1a536ed0 100644 --- a/src/main/java/com/twilio/rest/studio/v1/FlowDeleter.java +++ b/src/main/java/com/twilio/rest/studio/v1/FlowDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class FlowDeleter extends Deleter { @@ -39,6 +40,8 @@ public boolean delete(final TwilioRestClient client) { path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.STUDIO.toString(), @@ -64,6 +67,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/studio/v1/flow/EngagementDeleter.java b/src/main/java/com/twilio/rest/studio/v1/flow/EngagementDeleter.java index 804170f1f9..e7debf2a62 100644 --- a/src/main/java/com/twilio/rest/studio/v1/flow/EngagementDeleter.java +++ b/src/main/java/com/twilio/rest/studio/v1/flow/EngagementDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class EngagementDeleter extends Deleter { @@ -42,6 +43,8 @@ public boolean delete(final TwilioRestClient client) { path = path.replace("{" + "FlowSid" + "}", this.pathFlowSid.toString()); path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.STUDIO.toString(), @@ -67,6 +70,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/studio/v1/flow/ExecutionDeleter.java b/src/main/java/com/twilio/rest/studio/v1/flow/ExecutionDeleter.java index cad2568a8e..eeacea5cb3 100644 --- a/src/main/java/com/twilio/rest/studio/v1/flow/ExecutionDeleter.java +++ b/src/main/java/com/twilio/rest/studio/v1/flow/ExecutionDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class ExecutionDeleter extends Deleter { @@ -42,6 +43,8 @@ public boolean delete(final TwilioRestClient client) { path = path.replace("{" + "FlowSid" + "}", this.pathFlowSid.toString()); path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.STUDIO.toString(), @@ -67,6 +70,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/studio/v1/flow/engagement/Step.java b/src/main/java/com/twilio/rest/studio/v1/flow/engagement/Step.java index a372189080..3bff6bafc6 100644 --- a/src/main/java/com/twilio/rest/studio/v1/flow/engagement/Step.java +++ b/src/main/java/com/twilio/rest/studio/v1/flow/engagement/Step.java @@ -148,9 +148,6 @@ public static String toJson(Object object, ObjectMapper mapper) { @Getter private final String transitionedTo; - @Getter - private final String type; - @Getter private final URI url; @@ -172,7 +169,6 @@ private Step( @JsonProperty("sid") final String sid, @JsonProperty("transitioned_from") final String transitionedFrom, @JsonProperty("transitioned_to") final String transitionedTo, - @JsonProperty("type") final String type, @JsonProperty("url") final URI url ) { this.accountSid = accountSid; @@ -187,7 +183,6 @@ private Step( this.sid = sid; this.transitionedFrom = transitionedFrom; this.transitionedTo = transitionedTo; - this.type = type; this.url = url; } @@ -215,7 +210,6 @@ public boolean equals(final Object o) { Objects.equals(sid, other.sid) && Objects.equals(transitionedFrom, other.transitionedFrom) && Objects.equals(transitionedTo, other.transitionedTo) && - Objects.equals(type, other.type) && Objects.equals(url, other.url) ); } @@ -235,7 +229,6 @@ public int hashCode() { sid, transitionedFrom, transitionedTo, - type, url ); } diff --git a/src/main/java/com/twilio/rest/studio/v1/flow/execution/ExecutionStep.java b/src/main/java/com/twilio/rest/studio/v1/flow/execution/ExecutionStep.java index 8b3092a543..cdad8562db 100644 --- a/src/main/java/com/twilio/rest/studio/v1/flow/execution/ExecutionStep.java +++ b/src/main/java/com/twilio/rest/studio/v1/flow/execution/ExecutionStep.java @@ -148,9 +148,6 @@ public static String toJson(Object object, ObjectMapper mapper) { @Getter private final String transitionedTo; - @Getter - private final String type; - @Getter private final URI url; @@ -172,7 +169,6 @@ private ExecutionStep( @JsonProperty("sid") final String sid, @JsonProperty("transitioned_from") final String transitionedFrom, @JsonProperty("transitioned_to") final String transitionedTo, - @JsonProperty("type") final String type, @JsonProperty("url") final URI url ) { this.accountSid = accountSid; @@ -187,7 +183,6 @@ private ExecutionStep( this.sid = sid; this.transitionedFrom = transitionedFrom; this.transitionedTo = transitionedTo; - this.type = type; this.url = url; } @@ -215,7 +210,6 @@ public boolean equals(final Object o) { Objects.equals(sid, other.sid) && Objects.equals(transitionedFrom, other.transitionedFrom) && Objects.equals(transitionedTo, other.transitionedTo) && - Objects.equals(type, other.type) && Objects.equals(url, other.url) ); } @@ -235,7 +229,6 @@ public int hashCode() { sid, transitionedFrom, transitionedTo, - type, url ); } diff --git a/src/main/java/com/twilio/rest/studio/v2/FlowDeleter.java b/src/main/java/com/twilio/rest/studio/v2/FlowDeleter.java index ad21b1e6b4..411909392b 100644 --- a/src/main/java/com/twilio/rest/studio/v2/FlowDeleter.java +++ b/src/main/java/com/twilio/rest/studio/v2/FlowDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class FlowDeleter extends Deleter { @@ -39,6 +40,8 @@ public boolean delete(final TwilioRestClient client) { path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.STUDIO.toString(), @@ -64,6 +67,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/studio/v2/flow/ExecutionDeleter.java b/src/main/java/com/twilio/rest/studio/v2/flow/ExecutionDeleter.java index cfe50b1dbd..10ca440c58 100644 --- a/src/main/java/com/twilio/rest/studio/v2/flow/ExecutionDeleter.java +++ b/src/main/java/com/twilio/rest/studio/v2/flow/ExecutionDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class ExecutionDeleter extends Deleter { @@ -42,6 +43,8 @@ public boolean delete(final TwilioRestClient client) { path = path.replace("{" + "FlowSid" + "}", this.pathFlowSid.toString()); path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.STUDIO.toString(), @@ -67,6 +70,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/studio/v2/flow/execution/ExecutionStep.java b/src/main/java/com/twilio/rest/studio/v2/flow/execution/ExecutionStep.java index 555abc1fa9..e41d4291ab 100644 --- a/src/main/java/com/twilio/rest/studio/v2/flow/execution/ExecutionStep.java +++ b/src/main/java/com/twilio/rest/studio/v2/flow/execution/ExecutionStep.java @@ -148,9 +148,6 @@ public static String toJson(Object object, ObjectMapper mapper) { @Getter private final String transitionedTo; - @Getter - private final String type; - @Getter private final URI url; @@ -172,7 +169,6 @@ private ExecutionStep( @JsonProperty("sid") final String sid, @JsonProperty("transitioned_from") final String transitionedFrom, @JsonProperty("transitioned_to") final String transitionedTo, - @JsonProperty("type") final String type, @JsonProperty("url") final URI url ) { this.accountSid = accountSid; @@ -187,7 +183,6 @@ private ExecutionStep( this.sid = sid; this.transitionedFrom = transitionedFrom; this.transitionedTo = transitionedTo; - this.type = type; this.url = url; } @@ -215,7 +210,6 @@ public boolean equals(final Object o) { Objects.equals(sid, other.sid) && Objects.equals(transitionedFrom, other.transitionedFrom) && Objects.equals(transitionedTo, other.transitionedTo) && - Objects.equals(type, other.type) && Objects.equals(url, other.url) ); } @@ -235,7 +229,6 @@ public int hashCode() { sid, transitionedFrom, transitionedTo, - type, url ); } diff --git a/src/main/java/com/twilio/rest/supersim/v1/networkaccessprofile/NetworkAccessProfileNetworkDeleter.java b/src/main/java/com/twilio/rest/supersim/v1/networkaccessprofile/NetworkAccessProfileNetworkDeleter.java index 24faca3665..8ef935846d 100644 --- a/src/main/java/com/twilio/rest/supersim/v1/networkaccessprofile/NetworkAccessProfileNetworkDeleter.java +++ b/src/main/java/com/twilio/rest/supersim/v1/networkaccessprofile/NetworkAccessProfileNetworkDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class NetworkAccessProfileNetworkDeleter extends Deleter { @@ -51,6 +52,8 @@ public boolean delete(final TwilioRestClient client) { ); path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.SUPERSIM.toString(), @@ -76,6 +79,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/sync/v1/ServiceDeleter.java b/src/main/java/com/twilio/rest/sync/v1/ServiceDeleter.java index 1676901002..fbace06c3f 100644 --- a/src/main/java/com/twilio/rest/sync/v1/ServiceDeleter.java +++ b/src/main/java/com/twilio/rest/sync/v1/ServiceDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class ServiceDeleter extends Deleter { @@ -39,6 +40,8 @@ public boolean delete(final TwilioRestClient client) { path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.SYNC.toString(), @@ -64,6 +67,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/sync/v1/service/DocumentDeleter.java b/src/main/java/com/twilio/rest/sync/v1/service/DocumentDeleter.java index f2af14cdff..d2b77f5451 100644 --- a/src/main/java/com/twilio/rest/sync/v1/service/DocumentDeleter.java +++ b/src/main/java/com/twilio/rest/sync/v1/service/DocumentDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class DocumentDeleter extends Deleter { @@ -46,6 +47,8 @@ public boolean delete(final TwilioRestClient client) { ); path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.SYNC.toString(), @@ -71,6 +74,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/sync/v1/service/SyncListDeleter.java b/src/main/java/com/twilio/rest/sync/v1/service/SyncListDeleter.java index 9644ad57ff..78e8834cce 100644 --- a/src/main/java/com/twilio/rest/sync/v1/service/SyncListDeleter.java +++ b/src/main/java/com/twilio/rest/sync/v1/service/SyncListDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class SyncListDeleter extends Deleter { @@ -46,6 +47,8 @@ public boolean delete(final TwilioRestClient client) { ); path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.SYNC.toString(), @@ -71,6 +74,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/sync/v1/service/SyncMapDeleter.java b/src/main/java/com/twilio/rest/sync/v1/service/SyncMapDeleter.java index 66c24caae5..05a2ae7327 100644 --- a/src/main/java/com/twilio/rest/sync/v1/service/SyncMapDeleter.java +++ b/src/main/java/com/twilio/rest/sync/v1/service/SyncMapDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class SyncMapDeleter extends Deleter { @@ -46,6 +47,8 @@ public boolean delete(final TwilioRestClient client) { ); path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.SYNC.toString(), @@ -71,6 +74,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/sync/v1/service/SyncStreamDeleter.java b/src/main/java/com/twilio/rest/sync/v1/service/SyncStreamDeleter.java index d6bcd00e98..6d7d4ad4fd 100644 --- a/src/main/java/com/twilio/rest/sync/v1/service/SyncStreamDeleter.java +++ b/src/main/java/com/twilio/rest/sync/v1/service/SyncStreamDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class SyncStreamDeleter extends Deleter { @@ -49,6 +50,8 @@ public boolean delete(final TwilioRestClient client) { ); path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.SYNC.toString(), @@ -74,6 +77,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/sync/v1/service/document/DocumentPermissionDeleter.java b/src/main/java/com/twilio/rest/sync/v1/service/document/DocumentPermissionDeleter.java index 1c42f168e5..42817b6d47 100644 --- a/src/main/java/com/twilio/rest/sync/v1/service/document/DocumentPermissionDeleter.java +++ b/src/main/java/com/twilio/rest/sync/v1/service/document/DocumentPermissionDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class DocumentPermissionDeleter extends Deleter { @@ -59,6 +60,8 @@ public boolean delete(final TwilioRestClient client) { path = path.replace("{" + "Identity" + "}", this.pathIdentity.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.SYNC.toString(), @@ -84,6 +87,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/sync/v1/service/synclist/SyncListItemDeleter.java b/src/main/java/com/twilio/rest/sync/v1/service/synclist/SyncListItemDeleter.java index 1a79f9acef..917f5e73aa 100644 --- a/src/main/java/com/twilio/rest/sync/v1/service/synclist/SyncListItemDeleter.java +++ b/src/main/java/com/twilio/rest/sync/v1/service/synclist/SyncListItemDeleter.java @@ -26,6 +26,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class SyncListItemDeleter extends Deleter { @@ -61,6 +62,8 @@ public boolean delete(final TwilioRestClient client) { path = path.replace("{" + "ListSid" + "}", this.pathListSid.toString()); path = path.replace("{" + "Index" + "}", this.pathIndex.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.SYNC.toString(), @@ -87,7 +90,7 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } private void addHeaderParams(final Request request) { diff --git a/src/main/java/com/twilio/rest/sync/v1/service/synclist/SyncListPermissionDeleter.java b/src/main/java/com/twilio/rest/sync/v1/service/synclist/SyncListPermissionDeleter.java index fbeb561c2d..f0d448f3e2 100644 --- a/src/main/java/com/twilio/rest/sync/v1/service/synclist/SyncListPermissionDeleter.java +++ b/src/main/java/com/twilio/rest/sync/v1/service/synclist/SyncListPermissionDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class SyncListPermissionDeleter extends Deleter { @@ -55,6 +56,8 @@ public boolean delete(final TwilioRestClient client) { path = path.replace("{" + "Identity" + "}", this.pathIdentity.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.SYNC.toString(), @@ -80,6 +83,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/sync/v1/service/syncmap/SyncMapItemDeleter.java b/src/main/java/com/twilio/rest/sync/v1/service/syncmap/SyncMapItemDeleter.java index 9a38f9f657..e3536b913f 100644 --- a/src/main/java/com/twilio/rest/sync/v1/service/syncmap/SyncMapItemDeleter.java +++ b/src/main/java/com/twilio/rest/sync/v1/service/syncmap/SyncMapItemDeleter.java @@ -26,6 +26,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class SyncMapItemDeleter extends Deleter { @@ -61,6 +62,8 @@ public boolean delete(final TwilioRestClient client) { path = path.replace("{" + "MapSid" + "}", this.pathMapSid.toString()); path = path.replace("{" + "Key" + "}", this.pathKey.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.SYNC.toString(), @@ -87,7 +90,7 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } private void addHeaderParams(final Request request) { diff --git a/src/main/java/com/twilio/rest/sync/v1/service/syncmap/SyncMapPermissionDeleter.java b/src/main/java/com/twilio/rest/sync/v1/service/syncmap/SyncMapPermissionDeleter.java index 1b9c6c7b66..12255dfff2 100644 --- a/src/main/java/com/twilio/rest/sync/v1/service/syncmap/SyncMapPermissionDeleter.java +++ b/src/main/java/com/twilio/rest/sync/v1/service/syncmap/SyncMapPermissionDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class SyncMapPermissionDeleter extends Deleter { @@ -55,6 +56,8 @@ public boolean delete(final TwilioRestClient client) { path = path.replace("{" + "Identity" + "}", this.pathIdentity.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.SYNC.toString(), @@ -80,6 +83,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/taskrouter/v1/WorkspaceDeleter.java b/src/main/java/com/twilio/rest/taskrouter/v1/WorkspaceDeleter.java index 6b24b0cb6c..a3a948fbf7 100644 --- a/src/main/java/com/twilio/rest/taskrouter/v1/WorkspaceDeleter.java +++ b/src/main/java/com/twilio/rest/taskrouter/v1/WorkspaceDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class WorkspaceDeleter extends Deleter { @@ -39,6 +40,8 @@ public boolean delete(final TwilioRestClient client) { path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.TASKROUTER.toString(), @@ -64,6 +67,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/taskrouter/v1/workspace/ActivityDeleter.java b/src/main/java/com/twilio/rest/taskrouter/v1/workspace/ActivityDeleter.java index 94b8c27bc8..e853fafb55 100644 --- a/src/main/java/com/twilio/rest/taskrouter/v1/workspace/ActivityDeleter.java +++ b/src/main/java/com/twilio/rest/taskrouter/v1/workspace/ActivityDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class ActivityDeleter extends Deleter { @@ -49,6 +50,8 @@ public boolean delete(final TwilioRestClient client) { ); path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.TASKROUTER.toString(), @@ -74,6 +77,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/taskrouter/v1/workspace/TaskChannelDeleter.java b/src/main/java/com/twilio/rest/taskrouter/v1/workspace/TaskChannelDeleter.java index f72326820e..c97cd59742 100644 --- a/src/main/java/com/twilio/rest/taskrouter/v1/workspace/TaskChannelDeleter.java +++ b/src/main/java/com/twilio/rest/taskrouter/v1/workspace/TaskChannelDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class TaskChannelDeleter extends Deleter { @@ -49,6 +50,8 @@ public boolean delete(final TwilioRestClient client) { ); path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.TASKROUTER.toString(), @@ -74,6 +77,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/taskrouter/v1/workspace/TaskDeleter.java b/src/main/java/com/twilio/rest/taskrouter/v1/workspace/TaskDeleter.java index c4ce8cf8b9..9f60688f5f 100644 --- a/src/main/java/com/twilio/rest/taskrouter/v1/workspace/TaskDeleter.java +++ b/src/main/java/com/twilio/rest/taskrouter/v1/workspace/TaskDeleter.java @@ -26,6 +26,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class TaskDeleter extends Deleter { @@ -54,6 +55,8 @@ public boolean delete(final TwilioRestClient client) { ); path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.TASKROUTER.toString(), @@ -80,7 +83,7 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } private void addHeaderParams(final Request request) { diff --git a/src/main/java/com/twilio/rest/taskrouter/v1/workspace/TaskQueueDeleter.java b/src/main/java/com/twilio/rest/taskrouter/v1/workspace/TaskQueueDeleter.java index 37e301bb1c..5f25aa6eee 100644 --- a/src/main/java/com/twilio/rest/taskrouter/v1/workspace/TaskQueueDeleter.java +++ b/src/main/java/com/twilio/rest/taskrouter/v1/workspace/TaskQueueDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class TaskQueueDeleter extends Deleter { @@ -49,6 +50,8 @@ public boolean delete(final TwilioRestClient client) { ); path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.TASKROUTER.toString(), @@ -74,6 +77,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/taskrouter/v1/workspace/WorkerDeleter.java b/src/main/java/com/twilio/rest/taskrouter/v1/workspace/WorkerDeleter.java index 3bcccf7ae8..9758647e36 100644 --- a/src/main/java/com/twilio/rest/taskrouter/v1/workspace/WorkerDeleter.java +++ b/src/main/java/com/twilio/rest/taskrouter/v1/workspace/WorkerDeleter.java @@ -26,6 +26,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class WorkerDeleter extends Deleter { @@ -54,6 +55,8 @@ public boolean delete(final TwilioRestClient client) { ); path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.TASKROUTER.toString(), @@ -80,7 +83,7 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } private void addHeaderParams(final Request request) { diff --git a/src/main/java/com/twilio/rest/taskrouter/v1/workspace/WorkflowDeleter.java b/src/main/java/com/twilio/rest/taskrouter/v1/workspace/WorkflowDeleter.java index 0bd1c703f7..a19b1adfb5 100644 --- a/src/main/java/com/twilio/rest/taskrouter/v1/workspace/WorkflowDeleter.java +++ b/src/main/java/com/twilio/rest/taskrouter/v1/workspace/WorkflowDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class WorkflowDeleter extends Deleter { @@ -49,6 +50,8 @@ public boolean delete(final TwilioRestClient client) { ); path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.TASKROUTER.toString(), @@ -74,6 +77,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/trunking/v1/Trunk.java b/src/main/java/com/twilio/rest/trunking/v1/Trunk.java index 297ec77d03..9260cc75c8 100644 --- a/src/main/java/com/twilio/rest/trunking/v1/Trunk.java +++ b/src/main/java/com/twilio/rest/trunking/v1/Trunk.java @@ -203,9 +203,6 @@ public static String toJson(Object object, ObjectMapper mapper) { @Getter private final String sid; - @Getter - private final Boolean symmetricRtpEnabled; - @Getter private final Trunk.TransferCallerId transferCallerId; @@ -237,9 +234,6 @@ private Trunk( @JsonProperty("recording") final Object recording, @JsonProperty("secure") final Boolean secure, @JsonProperty("sid") final String sid, - @JsonProperty( - "symmetric_rtp_enabled" - ) final Boolean symmetricRtpEnabled, @JsonProperty( "transfer_caller_id" ) final Trunk.TransferCallerId transferCallerId, @@ -260,7 +254,6 @@ private Trunk( this.recording = recording; this.secure = secure; this.sid = sid; - this.symmetricRtpEnabled = symmetricRtpEnabled; this.transferCallerId = transferCallerId; this.transferMode = transferMode; this.url = url; @@ -295,7 +288,6 @@ public boolean equals(final Object o) { Objects.equals(recording, other.recording) && Objects.equals(secure, other.secure) && Objects.equals(sid, other.sid) && - Objects.equals(symmetricRtpEnabled, other.symmetricRtpEnabled) && Objects.equals(transferCallerId, other.transferCallerId) && Objects.equals(transferMode, other.transferMode) && Objects.equals(url, other.url) @@ -319,7 +311,6 @@ public int hashCode() { recording, secure, sid, - symmetricRtpEnabled, transferCallerId, transferMode, url diff --git a/src/main/java/com/twilio/rest/trunking/v1/TrunkDeleter.java b/src/main/java/com/twilio/rest/trunking/v1/TrunkDeleter.java index 48539b0789..56b09eb86f 100644 --- a/src/main/java/com/twilio/rest/trunking/v1/TrunkDeleter.java +++ b/src/main/java/com/twilio/rest/trunking/v1/TrunkDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class TrunkDeleter extends Deleter { @@ -39,6 +40,8 @@ public boolean delete(final TwilioRestClient client) { path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.TRUNKING.toString(), @@ -64,6 +67,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/trunking/v1/trunk/CredentialListDeleter.java b/src/main/java/com/twilio/rest/trunking/v1/trunk/CredentialListDeleter.java index 755f6a4c1f..ca43d65729 100644 --- a/src/main/java/com/twilio/rest/trunking/v1/trunk/CredentialListDeleter.java +++ b/src/main/java/com/twilio/rest/trunking/v1/trunk/CredentialListDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class CredentialListDeleter extends Deleter { @@ -46,6 +47,8 @@ public boolean delete(final TwilioRestClient client) { path.replace("{" + "TrunkSid" + "}", this.pathTrunkSid.toString()); path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.TRUNKING.toString(), @@ -71,6 +74,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/trunking/v1/trunk/IpAccessControlListDeleter.java b/src/main/java/com/twilio/rest/trunking/v1/trunk/IpAccessControlListDeleter.java index 361aac6a0d..76f113dec6 100644 --- a/src/main/java/com/twilio/rest/trunking/v1/trunk/IpAccessControlListDeleter.java +++ b/src/main/java/com/twilio/rest/trunking/v1/trunk/IpAccessControlListDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class IpAccessControlListDeleter extends Deleter { @@ -46,6 +47,8 @@ public boolean delete(final TwilioRestClient client) { path.replace("{" + "TrunkSid" + "}", this.pathTrunkSid.toString()); path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.TRUNKING.toString(), @@ -71,6 +74,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/trunking/v1/trunk/OriginationUrlDeleter.java b/src/main/java/com/twilio/rest/trunking/v1/trunk/OriginationUrlDeleter.java index a399c4abe6..9c49f45a69 100644 --- a/src/main/java/com/twilio/rest/trunking/v1/trunk/OriginationUrlDeleter.java +++ b/src/main/java/com/twilio/rest/trunking/v1/trunk/OriginationUrlDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class OriginationUrlDeleter extends Deleter { @@ -46,6 +47,8 @@ public boolean delete(final TwilioRestClient client) { path.replace("{" + "TrunkSid" + "}", this.pathTrunkSid.toString()); path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.TRUNKING.toString(), @@ -71,6 +74,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/trunking/v1/trunk/PhoneNumberDeleter.java b/src/main/java/com/twilio/rest/trunking/v1/trunk/PhoneNumberDeleter.java index 7c211d1ca2..714b8d2503 100644 --- a/src/main/java/com/twilio/rest/trunking/v1/trunk/PhoneNumberDeleter.java +++ b/src/main/java/com/twilio/rest/trunking/v1/trunk/PhoneNumberDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class PhoneNumberDeleter extends Deleter { @@ -43,6 +44,8 @@ public boolean delete(final TwilioRestClient client) { path.replace("{" + "TrunkSid" + "}", this.pathTrunkSid.toString()); path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.TRUNKING.toString(), @@ -68,6 +71,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/trusthub/v1/ComplianceInquiries.java b/src/main/java/com/twilio/rest/trusthub/v1/ComplianceInquiries.java index 14c329e18a..1b4890ee45 100644 --- a/src/main/java/com/twilio/rest/trusthub/v1/ComplianceInquiries.java +++ b/src/main/java/com/twilio/rest/trusthub/v1/ComplianceInquiries.java @@ -39,8 +39,10 @@ @ToString public class ComplianceInquiries extends Resource { - public static ComplianceInquiriesCreator creator() { - return new ComplianceInquiriesCreator(); + public static ComplianceInquiriesCreator creator( + final String primaryProfileSid + ) { + return new ComplianceInquiriesCreator(primaryProfileSid); } public static ComplianceInquiriesUpdater updater( diff --git a/src/main/java/com/twilio/rest/trusthub/v1/ComplianceInquiriesCreator.java b/src/main/java/com/twilio/rest/trusthub/v1/ComplianceInquiriesCreator.java index b9b338eb5a..ecda28ac64 100644 --- a/src/main/java/com/twilio/rest/trusthub/v1/ComplianceInquiriesCreator.java +++ b/src/main/java/com/twilio/rest/trusthub/v1/ComplianceInquiriesCreator.java @@ -30,11 +30,20 @@ public class ComplianceInquiriesCreator extends Creator { + private String primaryProfileSid; private String notificationEmail; private String themeSetId; - private String primaryProfileSid; - public ComplianceInquiriesCreator() {} + public ComplianceInquiriesCreator(final String primaryProfileSid) { + this.primaryProfileSid = primaryProfileSid; + } + + public ComplianceInquiriesCreator setPrimaryProfileSid( + final String primaryProfileSid + ) { + this.primaryProfileSid = primaryProfileSid; + return this; + } public ComplianceInquiriesCreator setNotificationEmail( final String notificationEmail @@ -48,13 +57,6 @@ public ComplianceInquiriesCreator setThemeSetId(final String themeSetId) { return this; } - public ComplianceInquiriesCreator setPrimaryProfileSid( - final String primaryProfileSid - ) { - this.primaryProfileSid = primaryProfileSid; - return this; - } - @Override public ComplianceInquiries create(final TwilioRestClient client) { String path = "/v1/ComplianceInquiries/Customers/Initialize"; @@ -94,29 +96,29 @@ public ComplianceInquiries create(final TwilioRestClient client) { } private void addPostParams(final Request request) { - if (notificationEmail != null) { + if (primaryProfileSid != null) { Serializer.toString( request, - "NotificationEmail", - notificationEmail, + "PrimaryProfileSid", + primaryProfileSid, ParameterType.URLENCODED ); } - if (themeSetId != null) { + if (notificationEmail != null) { Serializer.toString( request, - "ThemeSetId", - themeSetId, + "NotificationEmail", + notificationEmail, ParameterType.URLENCODED ); } - if (primaryProfileSid != null) { + if (themeSetId != null) { Serializer.toString( request, - "PrimaryProfileSid", - primaryProfileSid, + "ThemeSetId", + themeSetId, ParameterType.URLENCODED ); } diff --git a/src/main/java/com/twilio/rest/trusthub/v1/CustomerProfilesDeleter.java b/src/main/java/com/twilio/rest/trusthub/v1/CustomerProfilesDeleter.java index f5e177a552..28c74041d8 100644 --- a/src/main/java/com/twilio/rest/trusthub/v1/CustomerProfilesDeleter.java +++ b/src/main/java/com/twilio/rest/trusthub/v1/CustomerProfilesDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class CustomerProfilesDeleter extends Deleter { @@ -39,6 +40,8 @@ public boolean delete(final TwilioRestClient client) { path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.TRUSTHUB.toString(), @@ -64,6 +67,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/trusthub/v1/EndUserDeleter.java b/src/main/java/com/twilio/rest/trusthub/v1/EndUserDeleter.java index 15978073ff..8046442ef2 100644 --- a/src/main/java/com/twilio/rest/trusthub/v1/EndUserDeleter.java +++ b/src/main/java/com/twilio/rest/trusthub/v1/EndUserDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class EndUserDeleter extends Deleter { @@ -39,6 +40,8 @@ public boolean delete(final TwilioRestClient client) { path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.TRUSTHUB.toString(), @@ -64,6 +67,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/trusthub/v1/SupportingDocumentDeleter.java b/src/main/java/com/twilio/rest/trusthub/v1/SupportingDocumentDeleter.java index 223a320ac8..18711ffb50 100644 --- a/src/main/java/com/twilio/rest/trusthub/v1/SupportingDocumentDeleter.java +++ b/src/main/java/com/twilio/rest/trusthub/v1/SupportingDocumentDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class SupportingDocumentDeleter extends Deleter { @@ -39,6 +40,8 @@ public boolean delete(final TwilioRestClient client) { path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.TRUSTHUB.toString(), @@ -64,6 +67,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/trusthub/v1/TrustProductsDeleter.java b/src/main/java/com/twilio/rest/trusthub/v1/TrustProductsDeleter.java index d3f9b7efa7..8e597361de 100644 --- a/src/main/java/com/twilio/rest/trusthub/v1/TrustProductsDeleter.java +++ b/src/main/java/com/twilio/rest/trusthub/v1/TrustProductsDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class TrustProductsDeleter extends Deleter { @@ -39,6 +40,8 @@ public boolean delete(final TwilioRestClient client) { path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.TRUSTHUB.toString(), @@ -64,6 +67,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/trusthub/v1/customerprofiles/CustomerProfilesChannelEndpointAssignmentDeleter.java b/src/main/java/com/twilio/rest/trusthub/v1/customerprofiles/CustomerProfilesChannelEndpointAssignmentDeleter.java index 1933b51912..7f252a16e6 100644 --- a/src/main/java/com/twilio/rest/trusthub/v1/customerprofiles/CustomerProfilesChannelEndpointAssignmentDeleter.java +++ b/src/main/java/com/twilio/rest/trusthub/v1/customerprofiles/CustomerProfilesChannelEndpointAssignmentDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class CustomerProfilesChannelEndpointAssignmentDeleter extends Deleter { @@ -51,6 +52,8 @@ public boolean delete(final TwilioRestClient client) { ); path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.TRUSTHUB.toString(), @@ -76,6 +79,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/trusthub/v1/customerprofiles/CustomerProfilesEntityAssignmentsDeleter.java b/src/main/java/com/twilio/rest/trusthub/v1/customerprofiles/CustomerProfilesEntityAssignmentsDeleter.java index 77e05cbf03..25edf68dd6 100644 --- a/src/main/java/com/twilio/rest/trusthub/v1/customerprofiles/CustomerProfilesEntityAssignmentsDeleter.java +++ b/src/main/java/com/twilio/rest/trusthub/v1/customerprofiles/CustomerProfilesEntityAssignmentsDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class CustomerProfilesEntityAssignmentsDeleter extends Deleter { @@ -51,6 +52,8 @@ public boolean delete(final TwilioRestClient client) { ); path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.TRUSTHUB.toString(), @@ -76,6 +79,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/trusthub/v1/trustproducts/TrustProductsChannelEndpointAssignmentDeleter.java b/src/main/java/com/twilio/rest/trusthub/v1/trustproducts/TrustProductsChannelEndpointAssignmentDeleter.java index 1c52f6a3a1..10aa9ea685 100644 --- a/src/main/java/com/twilio/rest/trusthub/v1/trustproducts/TrustProductsChannelEndpointAssignmentDeleter.java +++ b/src/main/java/com/twilio/rest/trusthub/v1/trustproducts/TrustProductsChannelEndpointAssignmentDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class TrustProductsChannelEndpointAssignmentDeleter extends Deleter { @@ -51,6 +52,8 @@ public boolean delete(final TwilioRestClient client) { ); path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.TRUSTHUB.toString(), @@ -76,6 +79,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/trusthub/v1/trustproducts/TrustProductsEntityAssignmentsDeleter.java b/src/main/java/com/twilio/rest/trusthub/v1/trustproducts/TrustProductsEntityAssignmentsDeleter.java index 9148fd8b8a..27ed75c58d 100644 --- a/src/main/java/com/twilio/rest/trusthub/v1/trustproducts/TrustProductsEntityAssignmentsDeleter.java +++ b/src/main/java/com/twilio/rest/trusthub/v1/trustproducts/TrustProductsEntityAssignmentsDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class TrustProductsEntityAssignmentsDeleter extends Deleter { @@ -51,6 +52,8 @@ public boolean delete(final TwilioRestClient client) { ); path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.TRUSTHUB.toString(), @@ -76,6 +79,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/verify/v2/SafelistDeleter.java b/src/main/java/com/twilio/rest/verify/v2/SafelistDeleter.java index c1301106e3..3ed09eb862 100644 --- a/src/main/java/com/twilio/rest/verify/v2/SafelistDeleter.java +++ b/src/main/java/com/twilio/rest/verify/v2/SafelistDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class SafelistDeleter extends Deleter { @@ -43,6 +44,8 @@ public boolean delete(final TwilioRestClient client) { this.pathPhoneNumber.toString() ); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.VERIFY.toString(), @@ -68,6 +71,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/verify/v2/Service.java b/src/main/java/com/twilio/rest/verify/v2/Service.java index e35c39dd5c..5f3c565653 100644 --- a/src/main/java/com/twilio/rest/verify/v2/Service.java +++ b/src/main/java/com/twilio/rest/verify/v2/Service.java @@ -150,9 +150,6 @@ public static String toJson(Object object, ObjectMapper mapper) { @Getter private final Boolean lookupEnabled; - @Getter - private final Object passkeys; - @Getter private final Boolean psd2Enabled; @@ -199,7 +196,6 @@ private Service( @JsonProperty("friendly_name") final String friendlyName, @JsonProperty("links") final Map links, @JsonProperty("lookup_enabled") final Boolean lookupEnabled, - @JsonProperty("passkeys") final Object passkeys, @JsonProperty("psd2_enabled") final Boolean psd2Enabled, @JsonProperty("push") final Object push, @JsonProperty("sid") final String sid, @@ -223,7 +219,6 @@ private Service( this.friendlyName = friendlyName; this.links = links; this.lookupEnabled = lookupEnabled; - this.passkeys = passkeys; this.psd2Enabled = psd2Enabled; this.push = push; this.sid = sid; @@ -261,7 +256,6 @@ public boolean equals(final Object o) { Objects.equals(friendlyName, other.friendlyName) && Objects.equals(links, other.links) && Objects.equals(lookupEnabled, other.lookupEnabled) && - Objects.equals(passkeys, other.passkeys) && Objects.equals(psd2Enabled, other.psd2Enabled) && Objects.equals(push, other.push) && Objects.equals(sid, other.sid) && @@ -291,7 +285,6 @@ public int hashCode() { friendlyName, links, lookupEnabled, - passkeys, psd2Enabled, push, sid, diff --git a/src/main/java/com/twilio/rest/verify/v2/ServiceCreator.java b/src/main/java/com/twilio/rest/verify/v2/ServiceCreator.java index 591ffda158..2d6b381eef 100644 --- a/src/main/java/com/twilio/rest/verify/v2/ServiceCreator.java +++ b/src/main/java/com/twilio/rest/verify/v2/ServiceCreator.java @@ -49,12 +49,6 @@ public class ServiceCreator extends Creator { private String defaultTemplateSid; private String whatsappMsgServiceSid; private String whatsappFrom; - private String passkeysRelyingPartyId; - private String passkeysRelyingPartyName; - private String passkeysRelyingPartyOrigins; - private String passkeysAuthenticatorAttachment; - private String passkeysDiscoverableCredentials; - private String passkeysUserVerification; private Boolean verifyEventSubscriptionEnabled; public ServiceCreator(final String friendlyName) { @@ -172,48 +166,6 @@ public ServiceCreator setWhatsappFrom(final String whatsappFrom) { return this; } - public ServiceCreator setPasskeysRelyingPartyId( - final String passkeysRelyingPartyId - ) { - this.passkeysRelyingPartyId = passkeysRelyingPartyId; - return this; - } - - public ServiceCreator setPasskeysRelyingPartyName( - final String passkeysRelyingPartyName - ) { - this.passkeysRelyingPartyName = passkeysRelyingPartyName; - return this; - } - - public ServiceCreator setPasskeysRelyingPartyOrigins( - final String passkeysRelyingPartyOrigins - ) { - this.passkeysRelyingPartyOrigins = passkeysRelyingPartyOrigins; - return this; - } - - public ServiceCreator setPasskeysAuthenticatorAttachment( - final String passkeysAuthenticatorAttachment - ) { - this.passkeysAuthenticatorAttachment = passkeysAuthenticatorAttachment; - return this; - } - - public ServiceCreator setPasskeysDiscoverableCredentials( - final String passkeysDiscoverableCredentials - ) { - this.passkeysDiscoverableCredentials = passkeysDiscoverableCredentials; - return this; - } - - public ServiceCreator setPasskeysUserVerification( - final String passkeysUserVerification - ) { - this.passkeysUserVerification = passkeysUserVerification; - return this; - } - public ServiceCreator setVerifyEventSubscriptionEnabled( final Boolean verifyEventSubscriptionEnabled ) { @@ -428,60 +380,6 @@ private void addPostParams(final Request request) { ); } - if (passkeysRelyingPartyId != null) { - Serializer.toString( - request, - "Passkeys.RelyingParty.Id", - passkeysRelyingPartyId, - ParameterType.URLENCODED - ); - } - - if (passkeysRelyingPartyName != null) { - Serializer.toString( - request, - "Passkeys.RelyingParty.Name", - passkeysRelyingPartyName, - ParameterType.URLENCODED - ); - } - - if (passkeysRelyingPartyOrigins != null) { - Serializer.toString( - request, - "Passkeys.RelyingParty.Origins", - passkeysRelyingPartyOrigins, - ParameterType.URLENCODED - ); - } - - if (passkeysAuthenticatorAttachment != null) { - Serializer.toString( - request, - "Passkeys.AuthenticatorAttachment", - passkeysAuthenticatorAttachment, - ParameterType.URLENCODED - ); - } - - if (passkeysDiscoverableCredentials != null) { - Serializer.toString( - request, - "Passkeys.DiscoverableCredentials", - passkeysDiscoverableCredentials, - ParameterType.URLENCODED - ); - } - - if (passkeysUserVerification != null) { - Serializer.toString( - request, - "Passkeys.UserVerification", - passkeysUserVerification, - ParameterType.URLENCODED - ); - } - if (verifyEventSubscriptionEnabled != null) { Serializer.toString( request, diff --git a/src/main/java/com/twilio/rest/verify/v2/ServiceDeleter.java b/src/main/java/com/twilio/rest/verify/v2/ServiceDeleter.java index bb8be0d7fd..0352ad6918 100644 --- a/src/main/java/com/twilio/rest/verify/v2/ServiceDeleter.java +++ b/src/main/java/com/twilio/rest/verify/v2/ServiceDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class ServiceDeleter extends Deleter { @@ -39,6 +40,8 @@ public boolean delete(final TwilioRestClient client) { path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.VERIFY.toString(), @@ -64,6 +67,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/verify/v2/ServiceUpdater.java b/src/main/java/com/twilio/rest/verify/v2/ServiceUpdater.java index d88d2a9e37..74a66e941a 100644 --- a/src/main/java/com/twilio/rest/verify/v2/ServiceUpdater.java +++ b/src/main/java/com/twilio/rest/verify/v2/ServiceUpdater.java @@ -50,12 +50,6 @@ public class ServiceUpdater extends Updater { private String defaultTemplateSid; private String whatsappMsgServiceSid; private String whatsappFrom; - private String passkeysRelyingPartyId; - private String passkeysRelyingPartyName; - private String passkeysRelyingPartyOrigins; - private String passkeysAuthenticatorAttachment; - private String passkeysDiscoverableCredentials; - private String passkeysUserVerification; private Boolean verifyEventSubscriptionEnabled; public ServiceUpdater(final String pathSid) { @@ -173,48 +167,6 @@ public ServiceUpdater setWhatsappFrom(final String whatsappFrom) { return this; } - public ServiceUpdater setPasskeysRelyingPartyId( - final String passkeysRelyingPartyId - ) { - this.passkeysRelyingPartyId = passkeysRelyingPartyId; - return this; - } - - public ServiceUpdater setPasskeysRelyingPartyName( - final String passkeysRelyingPartyName - ) { - this.passkeysRelyingPartyName = passkeysRelyingPartyName; - return this; - } - - public ServiceUpdater setPasskeysRelyingPartyOrigins( - final String passkeysRelyingPartyOrigins - ) { - this.passkeysRelyingPartyOrigins = passkeysRelyingPartyOrigins; - return this; - } - - public ServiceUpdater setPasskeysAuthenticatorAttachment( - final String passkeysAuthenticatorAttachment - ) { - this.passkeysAuthenticatorAttachment = passkeysAuthenticatorAttachment; - return this; - } - - public ServiceUpdater setPasskeysDiscoverableCredentials( - final String passkeysDiscoverableCredentials - ) { - this.passkeysDiscoverableCredentials = passkeysDiscoverableCredentials; - return this; - } - - public ServiceUpdater setPasskeysUserVerification( - final String passkeysUserVerification - ) { - this.passkeysUserVerification = passkeysUserVerification; - return this; - } - public ServiceUpdater setVerifyEventSubscriptionEnabled( final Boolean verifyEventSubscriptionEnabled ) { @@ -431,60 +383,6 @@ private void addPostParams(final Request request) { ); } - if (passkeysRelyingPartyId != null) { - Serializer.toString( - request, - "Passkeys.RelyingParty.Id", - passkeysRelyingPartyId, - ParameterType.URLENCODED - ); - } - - if (passkeysRelyingPartyName != null) { - Serializer.toString( - request, - "Passkeys.RelyingParty.Name", - passkeysRelyingPartyName, - ParameterType.URLENCODED - ); - } - - if (passkeysRelyingPartyOrigins != null) { - Serializer.toString( - request, - "Passkeys.RelyingParty.Origins", - passkeysRelyingPartyOrigins, - ParameterType.URLENCODED - ); - } - - if (passkeysAuthenticatorAttachment != null) { - Serializer.toString( - request, - "Passkeys.AuthenticatorAttachment", - passkeysAuthenticatorAttachment, - ParameterType.URLENCODED - ); - } - - if (passkeysDiscoverableCredentials != null) { - Serializer.toString( - request, - "Passkeys.DiscoverableCredentials", - passkeysDiscoverableCredentials, - ParameterType.URLENCODED - ); - } - - if (passkeysUserVerification != null) { - Serializer.toString( - request, - "Passkeys.UserVerification", - passkeysUserVerification, - ParameterType.URLENCODED - ); - } - if (verifyEventSubscriptionEnabled != null) { Serializer.toString( request, diff --git a/src/main/java/com/twilio/rest/verify/v2/VerificationAttempt.java b/src/main/java/com/twilio/rest/verify/v2/VerificationAttempt.java index 00439771e1..971e6eee23 100644 --- a/src/main/java/com/twilio/rest/verify/v2/VerificationAttempt.java +++ b/src/main/java/com/twilio/rest/verify/v2/VerificationAttempt.java @@ -74,8 +74,7 @@ public enum Channels { SMS("sms"), CALL("call"), EMAIL("email"), - WHATSAPP("whatsapp"), - RBM("rbm"); + WHATSAPP("whatsapp"); private final String value; diff --git a/src/main/java/com/twilio/rest/verify/v2/VerificationAttemptsSummary.java b/src/main/java/com/twilio/rest/verify/v2/VerificationAttemptsSummary.java index 2cfb6df648..98c9537d24 100644 --- a/src/main/java/com/twilio/rest/verify/v2/VerificationAttemptsSummary.java +++ b/src/main/java/com/twilio/rest/verify/v2/VerificationAttemptsSummary.java @@ -48,8 +48,7 @@ public enum Channels { SMS("sms"), CALL("call"), EMAIL("email"), - WHATSAPP("whatsapp"), - RBM("rbm"); + WHATSAPP("whatsapp"); private final String value; diff --git a/src/main/java/com/twilio/rest/verify/v2/service/EntityDeleter.java b/src/main/java/com/twilio/rest/verify/v2/service/EntityDeleter.java index e2d4891464..912da98151 100644 --- a/src/main/java/com/twilio/rest/verify/v2/service/EntityDeleter.java +++ b/src/main/java/com/twilio/rest/verify/v2/service/EntityDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class EntityDeleter extends Deleter { @@ -50,6 +51,8 @@ public boolean delete(final TwilioRestClient client) { path = path.replace("{" + "Identity" + "}", this.pathIdentity.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.VERIFY.toString(), @@ -75,6 +78,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/verify/v2/service/MessagingConfigurationDeleter.java b/src/main/java/com/twilio/rest/verify/v2/service/MessagingConfigurationDeleter.java index 41073f3be5..3afe8cb6b2 100644 --- a/src/main/java/com/twilio/rest/verify/v2/service/MessagingConfigurationDeleter.java +++ b/src/main/java/com/twilio/rest/verify/v2/service/MessagingConfigurationDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class MessagingConfigurationDeleter extends Deleter { @@ -51,6 +52,8 @@ public boolean delete(final TwilioRestClient client) { ); path = path.replace("{" + "Country" + "}", this.pathCountry.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.VERIFY.toString(), @@ -76,6 +79,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/verify/v2/service/RateLimitDeleter.java b/src/main/java/com/twilio/rest/verify/v2/service/RateLimitDeleter.java index 99cafbd051..6bd5d61993 100644 --- a/src/main/java/com/twilio/rest/verify/v2/service/RateLimitDeleter.java +++ b/src/main/java/com/twilio/rest/verify/v2/service/RateLimitDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class RateLimitDeleter extends Deleter { @@ -46,6 +47,8 @@ public boolean delete(final TwilioRestClient client) { ); path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.VERIFY.toString(), @@ -71,6 +74,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/verify/v2/service/WebhookDeleter.java b/src/main/java/com/twilio/rest/verify/v2/service/WebhookDeleter.java index 7f47ffceaf..6b62a38152 100644 --- a/src/main/java/com/twilio/rest/verify/v2/service/WebhookDeleter.java +++ b/src/main/java/com/twilio/rest/verify/v2/service/WebhookDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class WebhookDeleter extends Deleter { @@ -46,6 +47,8 @@ public boolean delete(final TwilioRestClient client) { ); path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.VERIFY.toString(), @@ -71,6 +74,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/verify/v2/service/entity/Challenge.java b/src/main/java/com/twilio/rest/verify/v2/service/entity/Challenge.java index 1ccf2a423d..c6717418f3 100644 --- a/src/main/java/com/twilio/rest/verify/v2/service/entity/Challenge.java +++ b/src/main/java/com/twilio/rest/verify/v2/service/entity/Challenge.java @@ -97,8 +97,7 @@ public static ChallengeReasons forValue(final String value) { public enum FactorTypes { PUSH("push"), - TOTP("totp"), - PASSKEYS("passkeys"); + TOTP("totp"); private final String value; diff --git a/src/main/java/com/twilio/rest/verify/v2/service/entity/Factor.java b/src/main/java/com/twilio/rest/verify/v2/service/entity/Factor.java index 7a50021922..95ecdfa176 100644 --- a/src/main/java/com/twilio/rest/verify/v2/service/entity/Factor.java +++ b/src/main/java/com/twilio/rest/verify/v2/service/entity/Factor.java @@ -96,8 +96,7 @@ public static TotpAlgorithms forValue(final String value) { public enum FactorTypes { PUSH("push"), - TOTP("totp"), - PASSKEYS("passkeys"); + TOTP("totp"); private final String value; diff --git a/src/main/java/com/twilio/rest/verify/v2/service/entity/FactorDeleter.java b/src/main/java/com/twilio/rest/verify/v2/service/entity/FactorDeleter.java index 47c79e432e..7e142c06ac 100644 --- a/src/main/java/com/twilio/rest/verify/v2/service/entity/FactorDeleter.java +++ b/src/main/java/com/twilio/rest/verify/v2/service/entity/FactorDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class FactorDeleter extends Deleter { @@ -55,6 +56,8 @@ public boolean delete(final TwilioRestClient client) { path.replace("{" + "Identity" + "}", this.pathIdentity.toString()); path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.VERIFY.toString(), @@ -80,6 +83,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/verify/v2/service/entity/NewFactor.java b/src/main/java/com/twilio/rest/verify/v2/service/entity/NewFactor.java index e1d03e67e1..9c7492d0a9 100644 --- a/src/main/java/com/twilio/rest/verify/v2/service/entity/NewFactor.java +++ b/src/main/java/com/twilio/rest/verify/v2/service/entity/NewFactor.java @@ -103,8 +103,7 @@ public static NotificationPlatforms forValue(final String value) { public enum FactorTypes { PUSH("push"), - TOTP("totp"), - PASSKEYS("passkeys"); + TOTP("totp"); private final String value; @@ -227,9 +226,6 @@ public static String toJson(Object object, ObjectMapper mapper) { @Getter private final Object metadata; - @Getter - private final Object options; - @Getter private final String serviceSid; @@ -258,7 +254,6 @@ private NewFactor( @JsonProperty("friendly_name") final String friendlyName, @JsonProperty("identity") final String identity, @JsonProperty("metadata") final Object metadata, - @JsonProperty("options") final Object options, @JsonProperty("service_sid") final String serviceSid, @JsonProperty("sid") final String sid, @JsonProperty("status") final NewFactor.FactorStatuses status, @@ -274,7 +269,6 @@ private NewFactor( this.friendlyName = friendlyName; this.identity = identity; this.metadata = metadata; - this.options = options; this.serviceSid = serviceSid; this.sid = sid; this.status = status; @@ -303,7 +297,6 @@ public boolean equals(final Object o) { Objects.equals(friendlyName, other.friendlyName) && Objects.equals(identity, other.identity) && Objects.equals(metadata, other.metadata) && - Objects.equals(options, other.options) && Objects.equals(serviceSid, other.serviceSid) && Objects.equals(sid, other.sid) && Objects.equals(status, other.status) && @@ -324,7 +317,6 @@ public int hashCode() { friendlyName, identity, metadata, - options, serviceSid, sid, status, diff --git a/src/main/java/com/twilio/rest/verify/v2/service/ratelimit/BucketDeleter.java b/src/main/java/com/twilio/rest/verify/v2/service/ratelimit/BucketDeleter.java index 849ca1ab13..64b0750b72 100644 --- a/src/main/java/com/twilio/rest/verify/v2/service/ratelimit/BucketDeleter.java +++ b/src/main/java/com/twilio/rest/verify/v2/service/ratelimit/BucketDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class BucketDeleter extends Deleter { @@ -58,6 +59,8 @@ public boolean delete(final TwilioRestClient client) { ); path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.VERIFY.toString(), @@ -83,6 +86,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/video/v1/CompositionDeleter.java b/src/main/java/com/twilio/rest/video/v1/CompositionDeleter.java index d213903c90..8cc659ba7a 100644 --- a/src/main/java/com/twilio/rest/video/v1/CompositionDeleter.java +++ b/src/main/java/com/twilio/rest/video/v1/CompositionDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class CompositionDeleter extends Deleter { @@ -39,6 +40,8 @@ public boolean delete(final TwilioRestClient client) { path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.VIDEO.toString(), @@ -64,6 +67,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/video/v1/CompositionHookDeleter.java b/src/main/java/com/twilio/rest/video/v1/CompositionHookDeleter.java index 836b7f2513..da7faed66b 100644 --- a/src/main/java/com/twilio/rest/video/v1/CompositionHookDeleter.java +++ b/src/main/java/com/twilio/rest/video/v1/CompositionHookDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class CompositionHookDeleter extends Deleter { @@ -39,6 +40,8 @@ public boolean delete(final TwilioRestClient client) { path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.VIDEO.toString(), @@ -64,6 +67,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/video/v1/RecordingDeleter.java b/src/main/java/com/twilio/rest/video/v1/RecordingDeleter.java index 81529c42bf..86e0d30d36 100644 --- a/src/main/java/com/twilio/rest/video/v1/RecordingDeleter.java +++ b/src/main/java/com/twilio/rest/video/v1/RecordingDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class RecordingDeleter extends Deleter { @@ -39,6 +40,8 @@ public boolean delete(final TwilioRestClient client) { path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.VIDEO.toString(), @@ -64,6 +67,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/video/v1/room/RoomRecordingDeleter.java b/src/main/java/com/twilio/rest/video/v1/room/RoomRecordingDeleter.java index 21e22c1955..f1c3d69d44 100644 --- a/src/main/java/com/twilio/rest/video/v1/room/RoomRecordingDeleter.java +++ b/src/main/java/com/twilio/rest/video/v1/room/RoomRecordingDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class RoomRecordingDeleter extends Deleter { @@ -45,6 +46,8 @@ public boolean delete(final TwilioRestClient client) { path = path.replace("{" + "RoomSid" + "}", this.pathRoomSid.toString()); path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.VIDEO.toString(), @@ -70,6 +73,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/voice/v1/ArchivedCallDeleter.java b/src/main/java/com/twilio/rest/voice/v1/ArchivedCallDeleter.java index db6bcdcc17..fba728abc2 100644 --- a/src/main/java/com/twilio/rest/voice/v1/ArchivedCallDeleter.java +++ b/src/main/java/com/twilio/rest/voice/v1/ArchivedCallDeleter.java @@ -25,6 +25,7 @@ import com.twilio.rest.Domains; import com.twilio.type.*; import java.time.LocalDate; +import java.util.function.Predicate; public class ArchivedCallDeleter extends Deleter { @@ -43,6 +44,8 @@ public boolean delete(final TwilioRestClient client) { path = path.replace("{" + "Date" + "}", this.pathDate.toString()); path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.VOICE.toString(), @@ -68,6 +71,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/voice/v1/ByocTrunkDeleter.java b/src/main/java/com/twilio/rest/voice/v1/ByocTrunkDeleter.java index 386f318c7f..bd7dd3442e 100644 --- a/src/main/java/com/twilio/rest/voice/v1/ByocTrunkDeleter.java +++ b/src/main/java/com/twilio/rest/voice/v1/ByocTrunkDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class ByocTrunkDeleter extends Deleter { @@ -39,6 +40,8 @@ public boolean delete(final TwilioRestClient client) { path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.VOICE.toString(), @@ -64,6 +67,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/voice/v1/ConnectionPolicyDeleter.java b/src/main/java/com/twilio/rest/voice/v1/ConnectionPolicyDeleter.java index f942ac2258..44e8d00b2b 100644 --- a/src/main/java/com/twilio/rest/voice/v1/ConnectionPolicyDeleter.java +++ b/src/main/java/com/twilio/rest/voice/v1/ConnectionPolicyDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class ConnectionPolicyDeleter extends Deleter { @@ -39,6 +40,8 @@ public boolean delete(final TwilioRestClient client) { path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.VOICE.toString(), @@ -64,6 +67,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/voice/v1/IpRecordDeleter.java b/src/main/java/com/twilio/rest/voice/v1/IpRecordDeleter.java index 2c85569629..fc53810ea9 100644 --- a/src/main/java/com/twilio/rest/voice/v1/IpRecordDeleter.java +++ b/src/main/java/com/twilio/rest/voice/v1/IpRecordDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class IpRecordDeleter extends Deleter { @@ -39,6 +40,8 @@ public boolean delete(final TwilioRestClient client) { path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.VOICE.toString(), @@ -64,6 +67,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/voice/v1/SourceIpMappingDeleter.java b/src/main/java/com/twilio/rest/voice/v1/SourceIpMappingDeleter.java index 40d3cd5207..ef6750a1e8 100644 --- a/src/main/java/com/twilio/rest/voice/v1/SourceIpMappingDeleter.java +++ b/src/main/java/com/twilio/rest/voice/v1/SourceIpMappingDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class SourceIpMappingDeleter extends Deleter { @@ -39,6 +40,8 @@ public boolean delete(final TwilioRestClient client) { path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.VOICE.toString(), @@ -64,6 +67,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/voice/v1/connectionpolicy/ConnectionPolicyTargetDeleter.java b/src/main/java/com/twilio/rest/voice/v1/connectionpolicy/ConnectionPolicyTargetDeleter.java index ab17394531..8c374a795f 100644 --- a/src/main/java/com/twilio/rest/voice/v1/connectionpolicy/ConnectionPolicyTargetDeleter.java +++ b/src/main/java/com/twilio/rest/voice/v1/connectionpolicy/ConnectionPolicyTargetDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class ConnectionPolicyTargetDeleter extends Deleter { @@ -51,6 +52,8 @@ public boolean delete(final TwilioRestClient client) { ); path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.VOICE.toString(), @@ -76,6 +79,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/wireless/v1/CommandDeleter.java b/src/main/java/com/twilio/rest/wireless/v1/CommandDeleter.java index a5ac4b5807..c0d895e7b2 100644 --- a/src/main/java/com/twilio/rest/wireless/v1/CommandDeleter.java +++ b/src/main/java/com/twilio/rest/wireless/v1/CommandDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class CommandDeleter extends Deleter { @@ -39,6 +40,8 @@ public boolean delete(final TwilioRestClient client) { path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.WIRELESS.toString(), @@ -64,6 +67,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/wireless/v1/RatePlanDeleter.java b/src/main/java/com/twilio/rest/wireless/v1/RatePlanDeleter.java index be31b1a7e7..d3ef1ac7a1 100644 --- a/src/main/java/com/twilio/rest/wireless/v1/RatePlanDeleter.java +++ b/src/main/java/com/twilio/rest/wireless/v1/RatePlanDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class RatePlanDeleter extends Deleter { @@ -39,6 +40,8 @@ public boolean delete(final TwilioRestClient client) { path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.WIRELESS.toString(), @@ -64,6 +67,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } } diff --git a/src/main/java/com/twilio/rest/wireless/v1/SimDeleter.java b/src/main/java/com/twilio/rest/wireless/v1/SimDeleter.java index ea8646367e..ef741c9289 100644 --- a/src/main/java/com/twilio/rest/wireless/v1/SimDeleter.java +++ b/src/main/java/com/twilio/rest/wireless/v1/SimDeleter.java @@ -24,6 +24,7 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; import com.twilio.type.*; +import java.util.function.Predicate; public class SimDeleter extends Deleter { @@ -39,6 +40,8 @@ public boolean delete(final TwilioRestClient client) { path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + Predicate deleteStatues = i -> + i != null && i >= 200 && i < 300; Request request = new Request( HttpMethod.DELETE, Domains.WIRELESS.toString(), @@ -64,6 +67,6 @@ public boolean delete(final TwilioRestClient client) { } throw new ApiException(restException); } - return response.getStatusCode() == 204; + return deleteStatues.test(response.getStatusCode()); } }