From 805d434fc9c060a6de95be8d173090be79191e92 Mon Sep 17 00:00:00 2001 From: Twilio Date: Thu, 14 Dec 2023 10:23:26 +0000 Subject: [PATCH] [Librarian] Regenerated @ 08c0904bec7ba6e5da9e5db6c4e0f74dfc97fb10 --- CHANGES.md | 24 ++ .../v2010/account/AuthorizedConnectApp.java | 22 +- .../rest/numbers/v1/PortingPortInFetch.java | 231 ++++++++++++++++ .../numbers/v1/PortingPortInFetchFetcher.java | 75 +++++ .../v1/workspace/task/ReservationUpdater.java | 11 + .../workspace/worker/ReservationUpdater.java | 11 + .../v1/ComplianceTollfreeInquiries.java | 24 ++ .../ComplianceTollfreeInquiriesCreator.java | 259 ++++++++++++++++++ 8 files changed, 636 insertions(+), 21 deletions(-) create mode 100644 src/main/java/com/twilio/rest/numbers/v1/PortingPortInFetch.java create mode 100644 src/main/java/com/twilio/rest/numbers/v1/PortingPortInFetchFetcher.java diff --git a/CHANGES.md b/CHANGES.md index 9bffafc24d..2117574ec3 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,6 +1,30 @@ twilio-java changelog ===================== +[2023-12-14] Version 9.15.0 +--------------------------- +**Api** +- Updated service base url for connect apps and authorized connect apps APIs **(breaking change)** + +**Events** +- Marked as GA + +**Insights** +- decommission voice-qualitystats-endpoint role + +**Numbers** +- Add Get Port In request api + +**Taskrouter** +- Add `jitter_buffer_size` param in update reservation + +**Trusthub** +- Add additional optional fields in compliance_tollfree_inquiry.json + +**Verify** +- Remove `Tags` from Public Docs **(breaking change)** + + [2023-12-01] Version 9.14.3 --------------------------- **Verify** diff --git a/src/main/java/com/twilio/rest/api/v2010/account/AuthorizedConnectApp.java b/src/main/java/com/twilio/rest/api/v2010/account/AuthorizedConnectApp.java index d1019e7386..c4d340911a 100644 --- a/src/main/java/com/twilio/rest/api/v2010/account/AuthorizedConnectApp.java +++ b/src/main/java/com/twilio/rest/api/v2010/account/AuthorizedConnectApp.java @@ -21,14 +21,12 @@ import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.ObjectMapper; import com.twilio.base.Resource; -import com.twilio.converter.DateConverter; import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; 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.ToString; @@ -38,7 +36,7 @@ @ToString public class AuthorizedConnectApp extends Resource { - private static final long serialVersionUID = 15094155294983L; + private static final long serialVersionUID = 156350222502843L; public static AuthorizedConnectAppFetcher fetcher( final String pathConnectAppSid @@ -135,8 +133,6 @@ public static Permission forValue(final String value) { private final String connectAppFriendlyName; private final URI connectAppHomepageUrl; private final String connectAppSid; - private final ZonedDateTime dateCreated; - private final ZonedDateTime dateUpdated; private final List permissions; private final String uri; @@ -156,8 +152,6 @@ private AuthorizedConnectApp( "connect_app_homepage_url" ) final URI connectAppHomepageUrl, @JsonProperty("connect_app_sid") final String connectAppSid, - @JsonProperty("date_created") final String dateCreated, - @JsonProperty("date_updated") final String dateUpdated, @JsonProperty("permissions") final List< AuthorizedConnectApp.Permission > permissions, @@ -169,8 +163,6 @@ private AuthorizedConnectApp( this.connectAppFriendlyName = connectAppFriendlyName; this.connectAppHomepageUrl = connectAppHomepageUrl; this.connectAppSid = connectAppSid; - this.dateCreated = DateConverter.rfc2822DateTimeFromString(dateCreated); - this.dateUpdated = DateConverter.rfc2822DateTimeFromString(dateUpdated); this.permissions = permissions; this.uri = uri; } @@ -199,14 +191,6 @@ public final String getConnectAppSid() { return this.connectAppSid; } - public final ZonedDateTime getDateCreated() { - return this.dateCreated; - } - - public final ZonedDateTime getDateUpdated() { - return this.dateUpdated; - } - public final List getPermissions() { return this.permissions; } @@ -246,8 +230,6 @@ public boolean equals(final Object o) { other.connectAppHomepageUrl ) && Objects.equals(connectAppSid, other.connectAppSid) && - Objects.equals(dateCreated, other.dateCreated) && - Objects.equals(dateUpdated, other.dateUpdated) && Objects.equals(permissions, other.permissions) && Objects.equals(uri, other.uri) ); @@ -262,8 +244,6 @@ public int hashCode() { connectAppFriendlyName, connectAppHomepageUrl, connectAppSid, - dateCreated, - dateUpdated, permissions, uri ); diff --git a/src/main/java/com/twilio/rest/numbers/v1/PortingPortInFetch.java b/src/main/java/com/twilio/rest/numbers/v1/PortingPortInFetch.java new file mode 100644 index 0000000000..934e5799f7 --- /dev/null +++ b/src/main/java/com/twilio/rest/numbers/v1/PortingPortInFetch.java @@ -0,0 +1,231 @@ +/* + * This code was generated by + * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + * + * Twilio - Numbers + * This is the public Twilio REST API. + * + * NOTE: This class is auto generated by OpenAPI Generator. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package com.twilio.rest.numbers.v1; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.databind.JsonMappingException; +import com.fasterxml.jackson.databind.ObjectMapper; +import com.twilio.base.Resource; +import com.twilio.converter.DateConverter; +import com.twilio.exception.ApiConnectionException; +import com.twilio.exception.ApiException; +import java.io.IOException; +import java.io.InputStream; +import java.net.URI; +import java.time.LocalDate; +import java.util.List; +import java.util.Map; +import java.util.Map; +import java.util.Objects; +import lombok.ToString; +import lombok.ToString; + +@JsonIgnoreProperties(ignoreUnknown = true) +@ToString +public class PortingPortInFetch extends Resource { + + private static final long serialVersionUID = 150418680319007L; + + public static PortingPortInFetchFetcher fetcher( + final String pathPortInRequestSid + ) { + return new PortingPortInFetchFetcher(pathPortInRequestSid); + } + + /** + * Converts a JSON String into a PortingPortInFetch object using the provided ObjectMapper. + * + * @param json Raw JSON String + * @param objectMapper Jackson ObjectMapper + * @return PortingPortInFetch object represented by the provided JSON + */ + public static PortingPortInFetch fromJson( + final String json, + final ObjectMapper objectMapper + ) { + // Convert all checked exceptions to Runtime + try { + return objectMapper.readValue(json, PortingPortInFetch.class); + } catch (final JsonMappingException | JsonParseException e) { + throw new ApiException(e.getMessage(), e); + } catch (final IOException e) { + throw new ApiConnectionException(e.getMessage(), e); + } + } + + /** + * Converts a JSON InputStream into a PortingPortInFetch object using the provided + * ObjectMapper. + * + * @param json Raw JSON InputStream + * @param objectMapper Jackson ObjectMapper + * @return PortingPortInFetch object represented by the provided JSON + */ + public static PortingPortInFetch fromJson( + final InputStream json, + final ObjectMapper objectMapper + ) { + // Convert all checked exceptions to Runtime + try { + return objectMapper.readValue(json, PortingPortInFetch.class); + } catch (final JsonMappingException | JsonParseException e) { + throw new ApiException(e.getMessage(), e); + } catch (final IOException e) { + throw new ApiConnectionException(e.getMessage(), e); + } + } + + private final String portInRequestSid; + private final URI url; + private final String accountSid; + private final List notificationEmails; + private final LocalDate targetPortInDate; + private final String targetPortInTimeRangeStart; + private final String targetPortInTimeRangeEnd; + private final Map losingCarrierInformation; + private final List> phoneNumbers; + private final List documents; + + @JsonCreator + private PortingPortInFetch( + @JsonProperty("port_in_request_sid") final String portInRequestSid, + @JsonProperty("url") final URI url, + @JsonProperty("account_sid") final String accountSid, + @JsonProperty("notification_emails") final List< + String + > notificationEmails, + @JsonProperty("target_port_in_date") final String targetPortInDate, + @JsonProperty( + "target_port_in_time_range_start" + ) final String targetPortInTimeRangeStart, + @JsonProperty( + "target_port_in_time_range_end" + ) final String targetPortInTimeRangeEnd, + @JsonProperty("losing_carrier_information") final Map< + String, + Object + > losingCarrierInformation, + @JsonProperty("phone_numbers") final List< + Map + > phoneNumbers, + @JsonProperty("documents") final List documents + ) { + this.portInRequestSid = portInRequestSid; + this.url = url; + this.accountSid = accountSid; + this.notificationEmails = notificationEmails; + this.targetPortInDate = + DateConverter.localDateFromString(targetPortInDate); + this.targetPortInTimeRangeStart = targetPortInTimeRangeStart; + this.targetPortInTimeRangeEnd = targetPortInTimeRangeEnd; + this.losingCarrierInformation = losingCarrierInformation; + this.phoneNumbers = phoneNumbers; + this.documents = documents; + } + + public final String getPortInRequestSid() { + return this.portInRequestSid; + } + + public final URI getUrl() { + return this.url; + } + + public final String getAccountSid() { + return this.accountSid; + } + + public final List getNotificationEmails() { + return this.notificationEmails; + } + + public final LocalDate getTargetPortInDate() { + return this.targetPortInDate; + } + + public final String getTargetPortInTimeRangeStart() { + return this.targetPortInTimeRangeStart; + } + + public final String getTargetPortInTimeRangeEnd() { + return this.targetPortInTimeRangeEnd; + } + + public final Map getLosingCarrierInformation() { + return this.losingCarrierInformation; + } + + public final List> getPhoneNumbers() { + return this.phoneNumbers; + } + + public final List getDocuments() { + return this.documents; + } + + @Override + public boolean equals(final Object o) { + if (this == o) { + return true; + } + + if (o == null || getClass() != o.getClass()) { + return false; + } + + PortingPortInFetch other = (PortingPortInFetch) o; + + return ( + Objects.equals(portInRequestSid, other.portInRequestSid) && + Objects.equals(url, other.url) && + Objects.equals(accountSid, other.accountSid) && + Objects.equals(notificationEmails, other.notificationEmails) && + Objects.equals(targetPortInDate, other.targetPortInDate) && + Objects.equals( + targetPortInTimeRangeStart, + other.targetPortInTimeRangeStart + ) && + Objects.equals( + targetPortInTimeRangeEnd, + other.targetPortInTimeRangeEnd + ) && + Objects.equals( + losingCarrierInformation, + other.losingCarrierInformation + ) && + Objects.equals(phoneNumbers, other.phoneNumbers) && + Objects.equals(documents, other.documents) + ); + } + + @Override + public int hashCode() { + return Objects.hash( + portInRequestSid, + url, + accountSid, + notificationEmails, + targetPortInDate, + targetPortInTimeRangeStart, + targetPortInTimeRangeEnd, + losingCarrierInformation, + phoneNumbers, + documents + ); + } +} diff --git a/src/main/java/com/twilio/rest/numbers/v1/PortingPortInFetchFetcher.java b/src/main/java/com/twilio/rest/numbers/v1/PortingPortInFetchFetcher.java new file mode 100644 index 0000000000..282927da2a --- /dev/null +++ b/src/main/java/com/twilio/rest/numbers/v1/PortingPortInFetchFetcher.java @@ -0,0 +1,75 @@ +/* + * This code was generated by + * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + * + * Twilio - Numbers + * This is the public Twilio REST API. + * + * NOTE: This class is auto generated by OpenAPI Generator. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package com.twilio.rest.numbers.v1; + +import com.twilio.base.Fetcher; +import com.twilio.exception.ApiConnectionException; +import com.twilio.exception.ApiException; +import com.twilio.exception.RestException; +import com.twilio.http.HttpMethod; +import com.twilio.http.Request; +import com.twilio.http.Response; +import com.twilio.http.TwilioRestClient; +import com.twilio.rest.Domains; + +public class PortingPortInFetchFetcher extends Fetcher { + + private String pathPortInRequestSid; + + public PortingPortInFetchFetcher(final String pathPortInRequestSid) { + this.pathPortInRequestSid = pathPortInRequestSid; + } + + @Override + public PortingPortInFetch fetch(final TwilioRestClient client) { + String path = "/v1/Porting/PortIn/{PortInRequestSid}"; + + path = + path.replace( + "{" + "PortInRequestSid" + "}", + this.pathPortInRequestSid.toString() + ); + + Request request = new Request( + HttpMethod.GET, + Domains.NUMBERS.toString(), + path + ); + Response response = client.request(request); + + if (response == null) { + throw new ApiConnectionException( + "PortingPortInFetch fetch failed: Unable to connect to server" + ); + } else if (!TwilioRestClient.SUCCESS.test(response.getStatusCode())) { + RestException restException = RestException.fromJson( + response.getStream(), + client.getObjectMapper() + ); + if (restException == null) { + throw new ApiException( + "Server Error, no content", + response.getStatusCode() + ); + } + throw new ApiException(restException); + } + + return PortingPortInFetch.fromJson( + response.getStream(), + client.getObjectMapper() + ); + } +} diff --git a/src/main/java/com/twilio/rest/taskrouter/v1/workspace/task/ReservationUpdater.java b/src/main/java/com/twilio/rest/taskrouter/v1/workspace/task/ReservationUpdater.java index a97727c8db..075580d6d9 100644 --- a/src/main/java/com/twilio/rest/taskrouter/v1/workspace/task/ReservationUpdater.java +++ b/src/main/java/com/twilio/rest/taskrouter/v1/workspace/task/ReservationUpdater.java @@ -87,6 +87,7 @@ public class ReservationUpdater extends Updater { private String supervisor; private Boolean endConferenceOnCustomerExit; private Boolean beepOnCustomerEntrance; + private String jitterBufferSize; public ReservationUpdater( final String pathWorkspaceSid, @@ -496,6 +497,13 @@ public ReservationUpdater setBeepOnCustomerEntrance( return this; } + public ReservationUpdater setJitterBufferSize( + final String jitterBufferSize + ) { + this.jitterBufferSize = jitterBufferSize; + return this; + } + @Override public Reservation update(final TwilioRestClient client) { String path = @@ -756,6 +764,9 @@ private void addPostParams(final Request request) { beepOnCustomerEntrance.toString() ); } + if (jitterBufferSize != null) { + request.addPostParam("JitterBufferSize", jitterBufferSize); + } } private void addHeaderParams(final Request request) { diff --git a/src/main/java/com/twilio/rest/taskrouter/v1/workspace/worker/ReservationUpdater.java b/src/main/java/com/twilio/rest/taskrouter/v1/workspace/worker/ReservationUpdater.java index 8373d3068c..cc45b5cdd8 100644 --- a/src/main/java/com/twilio/rest/taskrouter/v1/workspace/worker/ReservationUpdater.java +++ b/src/main/java/com/twilio/rest/taskrouter/v1/workspace/worker/ReservationUpdater.java @@ -85,6 +85,7 @@ public class ReservationUpdater extends Updater { private String postWorkActivitySid; private Boolean endConferenceOnCustomerExit; private Boolean beepOnCustomerEntrance; + private String jitterBufferSize; public ReservationUpdater( final String pathWorkspaceSid, @@ -482,6 +483,13 @@ public ReservationUpdater setBeepOnCustomerEntrance( return this; } + public ReservationUpdater setJitterBufferSize( + final String jitterBufferSize + ) { + this.jitterBufferSize = jitterBufferSize; + return this; + } + @Override public Reservation update(final TwilioRestClient client) { String path = @@ -740,6 +748,9 @@ private void addPostParams(final Request request) { beepOnCustomerEntrance.toString() ); } + if (jitterBufferSize != null) { + request.addPostParam("JitterBufferSize", jitterBufferSize); + } } private void addHeaderParams(final Request request) { diff --git a/src/main/java/com/twilio/rest/trusthub/v1/ComplianceTollfreeInquiries.java b/src/main/java/com/twilio/rest/trusthub/v1/ComplianceTollfreeInquiries.java index f27c48b0c6..8e18110103 100644 --- a/src/main/java/com/twilio/rest/trusthub/v1/ComplianceTollfreeInquiries.java +++ b/src/main/java/com/twilio/rest/trusthub/v1/ComplianceTollfreeInquiries.java @@ -21,6 +21,7 @@ import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.ObjectMapper; import com.twilio.base.Resource; +import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; import java.io.IOException; @@ -95,6 +96,29 @@ public static ComplianceTollfreeInquiries fromJson( } } + public enum OptInType { + VERBAL("VERBAL"), + WEB_FORM("WEB_FORM"), + PAPER_FORM("PAPER_FORM"), + VIA_TEXT("VIA_TEXT"), + MOBILE_QR_CODE("MOBILE_QR_CODE"); + + private final String value; + + private OptInType(final String value) { + this.value = value; + } + + public String toString() { + return value; + } + + @JsonCreator + public static OptInType forValue(final String value) { + return Promoter.enumFromString(value, OptInType.values()); + } + } + private final String inquiryId; private final String inquirySessionToken; private final String registrationId; diff --git a/src/main/java/com/twilio/rest/trusthub/v1/ComplianceTollfreeInquiriesCreator.java b/src/main/java/com/twilio/rest/trusthub/v1/ComplianceTollfreeInquiriesCreator.java index 1ac377fb60..c881afe831 100644 --- a/src/main/java/com/twilio/rest/trusthub/v1/ComplianceTollfreeInquiriesCreator.java +++ b/src/main/java/com/twilio/rest/trusthub/v1/ComplianceTollfreeInquiriesCreator.java @@ -25,12 +25,33 @@ import com.twilio.http.Response; import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; +import java.util.List; +import java.util.List; public class ComplianceTollfreeInquiriesCreator extends Creator { private com.twilio.type.PhoneNumber tollfreePhoneNumber; private String notificationEmail; + private String businessName; + private String businessWebsite; + private List useCaseCategories; + private String useCaseSummary; + private String productionMessageSample; + private List optInImageUrls; + private ComplianceTollfreeInquiries.OptInType optInType; + private String messageVolume; + private String businessStreetAddress; + private String businessStreetAddress2; + private String businessCity; + private String businessStateProvinceRegion; + private String businessPostalCode; + private String businessCountry; + private String additionalInformation; + private String businessContactFirstName; + private String businessContactLastName; + private String businessContactEmail; + private com.twilio.type.PhoneNumber businessContactPhone; public ComplianceTollfreeInquiriesCreator( final com.twilio.type.PhoneNumber tollfreePhoneNumber, @@ -62,6 +83,159 @@ public ComplianceTollfreeInquiriesCreator setNotificationEmail( return this; } + public ComplianceTollfreeInquiriesCreator setBusinessName( + final String businessName + ) { + this.businessName = businessName; + return this; + } + + public ComplianceTollfreeInquiriesCreator setBusinessWebsite( + final String businessWebsite + ) { + this.businessWebsite = businessWebsite; + return this; + } + + public ComplianceTollfreeInquiriesCreator setUseCaseCategories( + final List useCaseCategories + ) { + this.useCaseCategories = useCaseCategories; + return this; + } + + public ComplianceTollfreeInquiriesCreator setUseCaseCategories( + final String useCaseCategories + ) { + return setUseCaseCategories(Promoter.listOfOne(useCaseCategories)); + } + + public ComplianceTollfreeInquiriesCreator setUseCaseSummary( + final String useCaseSummary + ) { + this.useCaseSummary = useCaseSummary; + return this; + } + + public ComplianceTollfreeInquiriesCreator setProductionMessageSample( + final String productionMessageSample + ) { + this.productionMessageSample = productionMessageSample; + return this; + } + + public ComplianceTollfreeInquiriesCreator setOptInImageUrls( + final List optInImageUrls + ) { + this.optInImageUrls = optInImageUrls; + return this; + } + + public ComplianceTollfreeInquiriesCreator setOptInImageUrls( + final String optInImageUrls + ) { + return setOptInImageUrls(Promoter.listOfOne(optInImageUrls)); + } + + public ComplianceTollfreeInquiriesCreator setOptInType( + final ComplianceTollfreeInquiries.OptInType optInType + ) { + this.optInType = optInType; + return this; + } + + public ComplianceTollfreeInquiriesCreator setMessageVolume( + final String messageVolume + ) { + this.messageVolume = messageVolume; + return this; + } + + public ComplianceTollfreeInquiriesCreator setBusinessStreetAddress( + final String businessStreetAddress + ) { + this.businessStreetAddress = businessStreetAddress; + return this; + } + + public ComplianceTollfreeInquiriesCreator setBusinessStreetAddress2( + final String businessStreetAddress2 + ) { + this.businessStreetAddress2 = businessStreetAddress2; + return this; + } + + public ComplianceTollfreeInquiriesCreator setBusinessCity( + final String businessCity + ) { + this.businessCity = businessCity; + return this; + } + + public ComplianceTollfreeInquiriesCreator setBusinessStateProvinceRegion( + final String businessStateProvinceRegion + ) { + this.businessStateProvinceRegion = businessStateProvinceRegion; + return this; + } + + public ComplianceTollfreeInquiriesCreator setBusinessPostalCode( + final String businessPostalCode + ) { + this.businessPostalCode = businessPostalCode; + return this; + } + + public ComplianceTollfreeInquiriesCreator setBusinessCountry( + final String businessCountry + ) { + this.businessCountry = businessCountry; + return this; + } + + public ComplianceTollfreeInquiriesCreator setAdditionalInformation( + final String additionalInformation + ) { + this.additionalInformation = additionalInformation; + return this; + } + + public ComplianceTollfreeInquiriesCreator setBusinessContactFirstName( + final String businessContactFirstName + ) { + this.businessContactFirstName = businessContactFirstName; + return this; + } + + public ComplianceTollfreeInquiriesCreator setBusinessContactLastName( + final String businessContactLastName + ) { + this.businessContactLastName = businessContactLastName; + return this; + } + + public ComplianceTollfreeInquiriesCreator setBusinessContactEmail( + final String businessContactEmail + ) { + this.businessContactEmail = businessContactEmail; + return this; + } + + public ComplianceTollfreeInquiriesCreator setBusinessContactPhone( + final com.twilio.type.PhoneNumber businessContactPhone + ) { + this.businessContactPhone = businessContactPhone; + return this; + } + + public ComplianceTollfreeInquiriesCreator setBusinessContactPhone( + final String businessContactPhone + ) { + return setBusinessContactPhone( + Promoter.phoneNumberFromString(businessContactPhone) + ); + } + @Override public ComplianceTollfreeInquiries create(final TwilioRestClient client) { String path = "/v1/ComplianceInquiries/Tollfree/Initialize"; @@ -119,5 +293,90 @@ private void addPostParams(final Request request) { if (notificationEmail != null) { request.addPostParam("NotificationEmail", notificationEmail); } + if (businessName != null) { + request.addPostParam("BusinessName", businessName); + } + if (businessWebsite != null) { + request.addPostParam("BusinessWebsite", businessWebsite); + } + if (useCaseCategories != null) { + for (String prop : useCaseCategories) { + request.addPostParam("UseCaseCategories", prop); + } + } + if (useCaseSummary != null) { + request.addPostParam("UseCaseSummary", useCaseSummary); + } + if (productionMessageSample != null) { + request.addPostParam( + "ProductionMessageSample", + productionMessageSample + ); + } + if (optInImageUrls != null) { + for (String prop : optInImageUrls) { + request.addPostParam("OptInImageUrls", prop); + } + } + if (optInType != null) { + request.addPostParam("OptInType", optInType.toString()); + } + if (messageVolume != null) { + request.addPostParam("MessageVolume", messageVolume); + } + if (businessStreetAddress != null) { + request.addPostParam( + "BusinessStreetAddress", + businessStreetAddress + ); + } + if (businessStreetAddress2 != null) { + request.addPostParam( + "BusinessStreetAddress2", + businessStreetAddress2 + ); + } + if (businessCity != null) { + request.addPostParam("BusinessCity", businessCity); + } + if (businessStateProvinceRegion != null) { + request.addPostParam( + "BusinessStateProvinceRegion", + businessStateProvinceRegion + ); + } + if (businessPostalCode != null) { + request.addPostParam("BusinessPostalCode", businessPostalCode); + } + if (businessCountry != null) { + request.addPostParam("BusinessCountry", businessCountry); + } + if (additionalInformation != null) { + request.addPostParam( + "AdditionalInformation", + additionalInformation + ); + } + if (businessContactFirstName != null) { + request.addPostParam( + "BusinessContactFirstName", + businessContactFirstName + ); + } + if (businessContactLastName != null) { + request.addPostParam( + "BusinessContactLastName", + businessContactLastName + ); + } + if (businessContactEmail != null) { + request.addPostParam("BusinessContactEmail", businessContactEmail); + } + if (businessContactPhone != null) { + request.addPostParam( + "BusinessContactPhone", + businessContactPhone.toString() + ); + } } }