From bdcfe007124eff972edf161831ad30405589b364 Mon Sep 17 00:00:00 2001 From: DX-Bandwidth Date: Tue, 16 Dec 2025 14:08:51 +0000 Subject: [PATCH] Generate SDK with OpenAPI Generator Version --- api/openapi.yaml | 41 ++++++++++++++++ bandwidth.yml | 18 +++++++ docs/TfvStatus.md | 1 + docs/VerificationRequest.md | 1 + docs/VerificationUpdateRequest.md | 1 + .../com/bandwidth/sdk/model/TfvStatus.java | 47 +++++++++++++++++-- .../sdk/model/VerificationRequest.java | 35 ++++++++++++-- .../sdk/model/VerificationUpdateRequest.java | 35 ++++++++++++-- 8 files changed, 170 insertions(+), 9 deletions(-) diff --git a/api/openapi.yaml b/api/openapi.yaml index 58e13dcf..434e5d13 100644 --- a/api/openapi.yaml +++ b/api/openapi.yaml @@ -13853,6 +13853,16 @@ components: description: Indicates whether the content is age-gated. example: false type: boolean + cvToken: + description: "The token provided by Campaign Verify to validate your political\ + \ use case. Only required for 527 political organizations. If you are\ + \ not a 527 political organization, this field should be omitted. If you\ + \ pass an empty string, it will be passed along and potentially rejected." + example: cv.user123|sess456|mno|tfree|read_write|X7yZ9aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVw + maxLength: 500 + minLength: 0 + nullable: true + type: string required: - businessAddress - businessContact @@ -13947,6 +13957,16 @@ components: description: Indicates whether the content is age-gated. example: false type: boolean + cvToken: + description: "The token provided by Campaign Verify to validate your political\ + \ use case. Only required for 527 political organizations. If you are\ + \ not a 527 political organization, this field should be omitted. If you\ + \ pass an empty string, it will be passed along and potentially rejected." + example: cv.user123|sess456|mno|tfree|read_write|X7yZ9aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVw + maxLength: 500 + minLength: 0 + nullable: true + type: string required: - businessAddress - businessContact @@ -14609,6 +14629,7 @@ components: useCaseSummary: Text summarizing the use case for the toll-free number declineReasonDescription: Invalid Information - Can't Validate URL - Website is not accessible / not available + cvToken: cv.user123|sess456|mno|tfree|read_write|X7yZ9aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVw status: VERIFIED properties: phoneNumber: @@ -14661,6 +14682,16 @@ components: attribute will only be defined when the number is blocked. example: Toll-free number was used to send spam messages type: string + cvToken: + description: "The token provided by Campaign Verify to validate your political\ + \ use case. Only required for 527 political organizations. If you are\ + \ not a 527 political organization, this field should be omitted. If you\ + \ pass an empty string, it will be passed along and potentially rejected." + example: cv.user123|sess456|mno|tfree|read_write|X7yZ9aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVw + maxLength: 500 + minLength: 0 + nullable: true + type: string type: object tfvSubmissionInfo: example: @@ -14785,6 +14816,16 @@ components: nullable: true pattern: "^[ -~]{16,64}$" type: string + cvToken: + description: "The token provided by Campaign Verify to validate your political\ + \ use case. Only required for 527 political organizations. If you are not\ + \ a 527 political organization, this field should be omitted. If you pass\ + \ an empty string, it will be passed along and potentially rejected." + example: cv.user123|sess456|mno|tfree|read_write|X7yZ9aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVw + maxLength: 500 + minLength: 0 + nullable: true + type: string rbmCardContent_media: allOf: - $ref: "#/components/schemas/rbmMessageContentFile" diff --git a/bandwidth.yml b/bandwidth.yml index d7c32953..22b13cec 100644 --- a/bandwidth.yml +++ b/bandwidth.yml @@ -5956,6 +5956,8 @@ components: $ref: '#/components/schemas/helpMessageResponse' ageGatedContent: $ref: '#/components/schemas/ageGatedContent' + cvToken: + $ref: '#/components/schemas/cvToken' verificationUpdateRequest: type: object required: @@ -6005,6 +6007,8 @@ components: $ref: '#/components/schemas/helpMessageResponse' ageGatedContent: $ref: '#/components/schemas/ageGatedContent' + cvToken: + $ref: '#/components/schemas/cvToken' tfvBasicAuthentication: type: object properties: @@ -6456,6 +6460,8 @@ components: $ref: '#/components/schemas/blocked' blockedReason: $ref: '#/components/schemas/blockedReason' + cvToken: + $ref: '#/components/schemas/cvToken' tfvSubmissionInfo: type: object properties: @@ -6520,6 +6526,18 @@ components: nullable: true pattern: ^[ -~]{16,64}$ type: string + cvToken: + type: string + description: >- + The token provided by Campaign Verify to validate your political use + case. Only required for 527 political organizations. If you are not a + 527 political organization, this field should be omitted. If you pass an + empty string, it will be passed along and potentially rejected. + minLength: 0 + maxLength: 500 + nullable: true + example: >- + cv.user123|sess456|mno|tfree|read_write|X7yZ9aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVw responses: createMessageResponse: description: Accepted diff --git a/docs/TfvStatus.md b/docs/TfvStatus.md index bd106819..f88f299c 100644 --- a/docs/TfvStatus.md +++ b/docs/TfvStatus.md @@ -17,6 +17,7 @@ |**submission** | [**TfvSubmissionInfo**](TfvSubmissionInfo.md) | | [optional] | |**blocked** | **Boolean** | Whether a Toll-Free Verification is blocked. This attribute will only be defined when the number is blocked. | [optional] | |**blockedReason** | **String** | The reason why the Toll-Free Verification is blocked. This attribute will only be defined when the number is blocked. | [optional] | +|**cvToken** | **String** | The token provided by Campaign Verify to validate your political use case. Only required for 527 political organizations. If you are not a 527 political organization, this field should be omitted. If you pass an empty string, it will be passed along and potentially rejected. | [optional] | diff --git a/docs/VerificationRequest.md b/docs/VerificationRequest.md index d1d9b545..20d07827 100644 --- a/docs/VerificationRequest.md +++ b/docs/VerificationRequest.md @@ -25,6 +25,7 @@ |**businessEntityType** | **BusinessEntityTypeEnum** | | [optional] | |**helpMessageResponse** | **String** | A message that gets sent to users requesting help. | [optional] | |**ageGatedContent** | **Boolean** | Indicates whether the content is age-gated. | [optional] | +|**cvToken** | **String** | The token provided by Campaign Verify to validate your political use case. Only required for 527 political organizations. If you are not a 527 political organization, this field should be omitted. If you pass an empty string, it will be passed along and potentially rejected. | [optional] | diff --git a/docs/VerificationUpdateRequest.md b/docs/VerificationUpdateRequest.md index d27ff3cc..c7b7d6fa 100644 --- a/docs/VerificationUpdateRequest.md +++ b/docs/VerificationUpdateRequest.md @@ -24,6 +24,7 @@ |**businessEntityType** | **BusinessEntityTypeEnum** | | [optional] | |**helpMessageResponse** | **String** | A message that gets sent to users requesting help. | [optional] | |**ageGatedContent** | **Boolean** | Indicates whether the content is age-gated. | [optional] | +|**cvToken** | **String** | The token provided by Campaign Verify to validate your political use case. Only required for 527 political organizations. If you are not a 527 political organization, this field should be omitted. If you pass an empty string, it will be passed along and potentially rejected. | [optional] | diff --git a/src/main/java/com/bandwidth/sdk/model/TfvStatus.java b/src/main/java/com/bandwidth/sdk/model/TfvStatus.java index 665a9e45..2498dd54 100644 --- a/src/main/java/com/bandwidth/sdk/model/TfvStatus.java +++ b/src/main/java/com/bandwidth/sdk/model/TfvStatus.java @@ -26,6 +26,7 @@ import java.time.OffsetDateTime; import java.util.Arrays; import java.util.UUID; +import org.openapitools.jackson.nullable.JsonNullable; import com.google.gson.Gson; import com.google.gson.GsonBuilder; @@ -106,6 +107,11 @@ public class TfvStatus { @javax.annotation.Nullable private String blockedReason; + public static final String SERIALIZED_NAME_CV_TOKEN = "cvToken"; + @SerializedName(SERIALIZED_NAME_CV_TOKEN) + @javax.annotation.Nullable + private String cvToken; + public TfvStatus() { } @@ -298,6 +304,25 @@ public void setBlockedReason(@javax.annotation.Nullable String blockedReason) { this.blockedReason = blockedReason; } + + public TfvStatus cvToken(@javax.annotation.Nullable String cvToken) { + this.cvToken = cvToken; + return this; + } + + /** + * The token provided by Campaign Verify to validate your political use case. Only required for 527 political organizations. If you are not a 527 political organization, this field should be omitted. If you pass an empty string, it will be passed along and potentially rejected. + * @return cvToken + */ + @javax.annotation.Nullable + public String getCvToken() { + return cvToken; + } + + public void setCvToken(@javax.annotation.Nullable String cvToken) { + this.cvToken = cvToken; + } + /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -362,13 +387,25 @@ public boolean equals(Object o) { Objects.equals(this.modifiedDateTime, tfvStatus.modifiedDateTime) && Objects.equals(this.submission, tfvStatus.submission) && Objects.equals(this.blocked, tfvStatus.blocked) && - Objects.equals(this.blockedReason, tfvStatus.blockedReason)&& + Objects.equals(this.blockedReason, tfvStatus.blockedReason) && + Objects.equals(this.cvToken, tfvStatus.cvToken)&& Objects.equals(this.additionalProperties, tfvStatus.additionalProperties); } + private static boolean equalsNullable(JsonNullable a, JsonNullable b) { + return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); + } + @Override public int hashCode() { - return Objects.hash(phoneNumber, status, internalTicketNumber, declineReasonDescription, resubmitAllowed, createdDateTime, modifiedDateTime, submission, blocked, blockedReason, additionalProperties); + return Objects.hash(phoneNumber, status, internalTicketNumber, declineReasonDescription, resubmitAllowed, createdDateTime, modifiedDateTime, submission, blocked, blockedReason, cvToken, additionalProperties); + } + + private static int hashCodeNullable(JsonNullable a) { + if (a == null) { + return 1; + } + return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; } @Override @@ -385,6 +422,7 @@ public String toString() { sb.append(" submission: ").append(toIndentedString(submission)).append("\n"); sb.append(" blocked: ").append(toIndentedString(blocked)).append("\n"); sb.append(" blockedReason: ").append(toIndentedString(blockedReason)).append("\n"); + sb.append(" cvToken: ").append(toIndentedString(cvToken)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -407,7 +445,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("phoneNumber", "status", "internalTicketNumber", "declineReasonDescription", "resubmitAllowed", "createdDateTime", "modifiedDateTime", "submission", "blocked", "blockedReason")); + openapiFields = new HashSet(Arrays.asList("phoneNumber", "status", "internalTicketNumber", "declineReasonDescription", "resubmitAllowed", "createdDateTime", "modifiedDateTime", "submission", "blocked", "blockedReason", "cvToken")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -446,6 +484,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if ((jsonObj.get("blockedReason") != null && !jsonObj.get("blockedReason").isJsonNull()) && !jsonObj.get("blockedReason").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `blockedReason` to be a primitive type in the JSON string but got `%s`", jsonObj.get("blockedReason").toString())); } + if ((jsonObj.get("cvToken") != null && !jsonObj.get("cvToken").isJsonNull()) && !jsonObj.get("cvToken").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `cvToken` to be a primitive type in the JSON string but got `%s`", jsonObj.get("cvToken").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/com/bandwidth/sdk/model/VerificationRequest.java b/src/main/java/com/bandwidth/sdk/model/VerificationRequest.java index 1f78f0c2..e053dde4 100644 --- a/src/main/java/com/bandwidth/sdk/model/VerificationRequest.java +++ b/src/main/java/com/bandwidth/sdk/model/VerificationRequest.java @@ -150,6 +150,11 @@ public class VerificationRequest { @javax.annotation.Nullable private Boolean ageGatedContent; + public static final String SERIALIZED_NAME_CV_TOKEN = "cvToken"; + @SerializedName(SERIALIZED_NAME_CV_TOKEN) + @javax.annotation.Nullable + private String cvToken; + public VerificationRequest() { } @@ -504,6 +509,25 @@ public void setAgeGatedContent(@javax.annotation.Nullable Boolean ageGatedConten this.ageGatedContent = ageGatedContent; } + + public VerificationRequest cvToken(@javax.annotation.Nullable String cvToken) { + this.cvToken = cvToken; + return this; + } + + /** + * The token provided by Campaign Verify to validate your political use case. Only required for 527 political organizations. If you are not a 527 political organization, this field should be omitted. If you pass an empty string, it will be passed along and potentially rejected. + * @return cvToken + */ + @javax.annotation.Nullable + public String getCvToken() { + return cvToken; + } + + public void setCvToken(@javax.annotation.Nullable String cvToken) { + this.cvToken = cvToken; + } + /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -576,7 +600,8 @@ public boolean equals(Object o) { Objects.equals(this.businessRegistrationType, verificationRequest.businessRegistrationType) && Objects.equals(this.businessEntityType, verificationRequest.businessEntityType) && Objects.equals(this.helpMessageResponse, verificationRequest.helpMessageResponse) && - Objects.equals(this.ageGatedContent, verificationRequest.ageGatedContent)&& + Objects.equals(this.ageGatedContent, verificationRequest.ageGatedContent) && + Objects.equals(this.cvToken, verificationRequest.cvToken)&& Objects.equals(this.additionalProperties, verificationRequest.additionalProperties); } @@ -586,7 +611,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(businessAddress, businessContact, messageVolume, phoneNumbers, useCase, useCaseSummary, productionMessageContent, optInWorkflow, additionalInformation, isvReseller, privacyPolicyUrl, termsAndConditionsUrl, businessDba, businessRegistrationNumber, businessRegistrationType, businessEntityType, helpMessageResponse, ageGatedContent, additionalProperties); + return Objects.hash(businessAddress, businessContact, messageVolume, phoneNumbers, useCase, useCaseSummary, productionMessageContent, optInWorkflow, additionalInformation, isvReseller, privacyPolicyUrl, termsAndConditionsUrl, businessDba, businessRegistrationNumber, businessRegistrationType, businessEntityType, helpMessageResponse, ageGatedContent, cvToken, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -618,6 +643,7 @@ public String toString() { sb.append(" businessEntityType: ").append(toIndentedString(businessEntityType)).append("\n"); sb.append(" helpMessageResponse: ").append(toIndentedString(helpMessageResponse)).append("\n"); sb.append(" ageGatedContent: ").append(toIndentedString(ageGatedContent)).append("\n"); + sb.append(" cvToken: ").append(toIndentedString(cvToken)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -640,7 +666,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("businessAddress", "businessContact", "messageVolume", "phoneNumbers", "useCase", "useCaseSummary", "productionMessageContent", "optInWorkflow", "additionalInformation", "isvReseller", "privacyPolicyUrl", "termsAndConditionsUrl", "businessDba", "businessRegistrationNumber", "businessRegistrationType", "businessEntityType", "helpMessageResponse", "ageGatedContent")); + openapiFields = new HashSet(Arrays.asList("businessAddress", "businessContact", "messageVolume", "phoneNumbers", "useCase", "useCaseSummary", "productionMessageContent", "optInWorkflow", "additionalInformation", "isvReseller", "privacyPolicyUrl", "termsAndConditionsUrl", "businessDba", "businessRegistrationNumber", "businessRegistrationType", "businessEntityType", "helpMessageResponse", "ageGatedContent", "cvToken")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(Arrays.asList("businessAddress", "businessContact", "messageVolume", "phoneNumbers", "useCase", "useCaseSummary", "productionMessageContent", "optInWorkflow")); @@ -716,6 +742,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if ((jsonObj.get("helpMessageResponse") != null && !jsonObj.get("helpMessageResponse").isJsonNull()) && !jsonObj.get("helpMessageResponse").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `helpMessageResponse` to be a primitive type in the JSON string but got `%s`", jsonObj.get("helpMessageResponse").toString())); } + if ((jsonObj.get("cvToken") != null && !jsonObj.get("cvToken").isJsonNull()) && !jsonObj.get("cvToken").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `cvToken` to be a primitive type in the JSON string but got `%s`", jsonObj.get("cvToken").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/com/bandwidth/sdk/model/VerificationUpdateRequest.java b/src/main/java/com/bandwidth/sdk/model/VerificationUpdateRequest.java index 01fc2b18..744fc8d5 100644 --- a/src/main/java/com/bandwidth/sdk/model/VerificationUpdateRequest.java +++ b/src/main/java/com/bandwidth/sdk/model/VerificationUpdateRequest.java @@ -143,6 +143,11 @@ public class VerificationUpdateRequest { @javax.annotation.Nullable private Boolean ageGatedContent; + public static final String SERIALIZED_NAME_CV_TOKEN = "cvToken"; + @SerializedName(SERIALIZED_NAME_CV_TOKEN) + @javax.annotation.Nullable + private String cvToken; + public VerificationUpdateRequest() { } @@ -470,6 +475,25 @@ public void setAgeGatedContent(@javax.annotation.Nullable Boolean ageGatedConten this.ageGatedContent = ageGatedContent; } + + public VerificationUpdateRequest cvToken(@javax.annotation.Nullable String cvToken) { + this.cvToken = cvToken; + return this; + } + + /** + * The token provided by Campaign Verify to validate your political use case. Only required for 527 political organizations. If you are not a 527 political organization, this field should be omitted. If you pass an empty string, it will be passed along and potentially rejected. + * @return cvToken + */ + @javax.annotation.Nullable + public String getCvToken() { + return cvToken; + } + + public void setCvToken(@javax.annotation.Nullable String cvToken) { + this.cvToken = cvToken; + } + /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -541,7 +565,8 @@ public boolean equals(Object o) { Objects.equals(this.businessRegistrationType, verificationUpdateRequest.businessRegistrationType) && Objects.equals(this.businessEntityType, verificationUpdateRequest.businessEntityType) && Objects.equals(this.helpMessageResponse, verificationUpdateRequest.helpMessageResponse) && - Objects.equals(this.ageGatedContent, verificationUpdateRequest.ageGatedContent)&& + Objects.equals(this.ageGatedContent, verificationUpdateRequest.ageGatedContent) && + Objects.equals(this.cvToken, verificationUpdateRequest.cvToken)&& Objects.equals(this.additionalProperties, verificationUpdateRequest.additionalProperties); } @@ -551,7 +576,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(businessAddress, businessContact, messageVolume, useCase, useCaseSummary, productionMessageContent, optInWorkflow, additionalInformation, isvReseller, privacyPolicyUrl, termsAndConditionsUrl, businessDba, businessRegistrationNumber, businessRegistrationType, businessEntityType, helpMessageResponse, ageGatedContent, additionalProperties); + return Objects.hash(businessAddress, businessContact, messageVolume, useCase, useCaseSummary, productionMessageContent, optInWorkflow, additionalInformation, isvReseller, privacyPolicyUrl, termsAndConditionsUrl, businessDba, businessRegistrationNumber, businessRegistrationType, businessEntityType, helpMessageResponse, ageGatedContent, cvToken, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -582,6 +607,7 @@ public String toString() { sb.append(" businessEntityType: ").append(toIndentedString(businessEntityType)).append("\n"); sb.append(" helpMessageResponse: ").append(toIndentedString(helpMessageResponse)).append("\n"); sb.append(" ageGatedContent: ").append(toIndentedString(ageGatedContent)).append("\n"); + sb.append(" cvToken: ").append(toIndentedString(cvToken)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -604,7 +630,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("businessAddress", "businessContact", "messageVolume", "useCase", "useCaseSummary", "productionMessageContent", "optInWorkflow", "additionalInformation", "isvReseller", "privacyPolicyUrl", "termsAndConditionsUrl", "businessDba", "businessRegistrationNumber", "businessRegistrationType", "businessEntityType", "helpMessageResponse", "ageGatedContent")); + openapiFields = new HashSet(Arrays.asList("businessAddress", "businessContact", "messageVolume", "useCase", "useCaseSummary", "productionMessageContent", "optInWorkflow", "additionalInformation", "isvReseller", "privacyPolicyUrl", "termsAndConditionsUrl", "businessDba", "businessRegistrationNumber", "businessRegistrationType", "businessEntityType", "helpMessageResponse", "ageGatedContent", "cvToken")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(Arrays.asList("businessAddress", "businessContact", "messageVolume", "useCase", "useCaseSummary", "productionMessageContent", "optInWorkflow")); @@ -674,6 +700,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if ((jsonObj.get("helpMessageResponse") != null && !jsonObj.get("helpMessageResponse").isJsonNull()) && !jsonObj.get("helpMessageResponse").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `helpMessageResponse` to be a primitive type in the JSON string but got `%s`", jsonObj.get("helpMessageResponse").toString())); } + if ((jsonObj.get("cvToken") != null && !jsonObj.get("cvToken").isJsonNull()) && !jsonObj.get("cvToken").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `cvToken` to be a primitive type in the JSON string but got `%s`", jsonObj.get("cvToken").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory {