diff --git a/api/openapi.yaml b/api/openapi.yaml index 11141bf7..81ea4dab 100644 --- a/api/openapi.yaml +++ b/api/openapi.yaml @@ -12197,6 +12197,30 @@ components: via PUT. example: true type: boolean + blocked: + description: Whether a Toll-Free Verification is blocked. This attribute will + only be defined when the number is blocked. (Not Available Until 5/28/2025) + example: true + type: boolean + blockedReason: + description: The reason why the Toll-Free Verification is blocked. This attribute + will only be defined when the number is blocked. (Not Available Until 5/28/2025) + example: Toll-free number was used to send spam messages + type: string + privacyPolicyUrl: + description: The Toll-Free Verification request privacy policy URL. (Not Available + Until 5/28/2025) + example: http://your-company.com/privacyPolicyUrl.pdf + type: string + termsAndConditionsUrl: + description: The Toll-Free Verification request terms and conditions policy + URL. (Not Available Until 5/28/2025) + example: http://your-company.com/termsAndConditionsUrl.pdf + type: string + businessDBA: + description: The company 'Doing Business As'. (Not Available Until 5/28/2025) + example: SecondCompany Name + type: string additionalDenialReason: properties: statusCode: @@ -12292,6 +12316,20 @@ components: minLength: 0 nullable: true type: string + privacyPolicyUrl: + description: The Toll-Free Verification request privacy policy URL. (Not + Available Until 5/28/2025) + example: http://your-company.com/privacyPolicyUrl.pdf + type: string + termsAndConditionsUrl: + description: The Toll-Free Verification request terms and conditions policy + URL. (Not Available Until 5/28/2025) + example: http://your-company.com/termsAndConditionsUrl.pdf + type: string + businessDBA: + description: The company 'Doing Business As'. (Not Available Until 5/28/2025) + example: SecondCompany Name + type: string required: - businessAddress - businessContact @@ -12338,6 +12376,7 @@ components: $ref: '#/components/schemas/optInWorkflow' additionalInformation: description: Any additional information. + example: Any additional information maxLength: 500 minLength: 0 nullable: true @@ -12349,6 +12388,20 @@ components: minLength: 0 nullable: true type: string + privacyPolicyUrl: + description: The Toll-Free Verification request privacy policy URL. (Not + Available Until 5/28/2025) + example: http://your-company.com/privacyPolicyUrl.pdf + type: string + termsAndConditionsUrl: + description: The Toll-Free Verification request terms and conditions policy + URL. (Not Available Until 5/28/2025) + example: http://your-company.com/termsAndConditionsUrl.pdf + type: string + businessDBA: + description: The company 'Doing Business As'. (Not Available Until 5/28/2025) + example: SecondCompany Name + type: string required: - businessAddress - businessContact @@ -12491,6 +12544,18 @@ components: default: UNVERIFIED example: UNVERIFIED type: string + blocked: + description: Whether a Toll-Free Verification is blocked. This attribute + will only be defined when the number is blocked. (Not Available Until + 5/28/2025) + example: true + type: boolean + blockedReason: + description: The reason why the Toll-Free Verification is blocked. This + attribute will only be defined when the number is blocked. (Not Available + Until 5/28/2025) + example: Toll-free number was used to send spam messages + type: string type: object verificationWebhook: properties: @@ -12590,6 +12655,7 @@ components: type: object additionalInformation: description: Any additional information. + example: Any additional information maxLength: 500 minLength: 0 nullable: true @@ -12921,12 +12987,16 @@ components: example: internalTicketNumber: acde070d-8c4c-4f0d-9d8a-162843c10333 phoneNumber: "+18005555555" + blocked: true + blockedReason: Toll-free number was used to send spam messages resubmitAllowed: true createdDateTime: 2021-06-08T06:45:13Z modifiedDateTime: 2021-06-08T06:45:13Z submission: - additionalInformation: additionalInformation + additionalInformation: Any additional information useCase: 2FA + termsAndConditionsUrl: http://your-company.com/termsAndConditionsUrl.pdf + businessDBA: SecondCompany Name isvReseller: Test ISV businessContact: firstName: John @@ -12943,6 +13013,7 @@ components: name: Bandwidth Inc. state: NC url: https://www.example.com/path/to/resource + privacyPolicyUrl: http://your-company.com/privacyPolicyUrl.pdf useCaseSummary: Text summarizing the use case for the toll-free number optInWorkflow: imageUrls: @@ -12993,11 +13064,25 @@ components: type: string submission: $ref: '#/components/schemas/tfvSubmissionInfo' + blocked: + description: Whether a Toll-Free Verification is blocked. This attribute + will only be defined when the number is blocked. (Not Available Until + 5/28/2025) + example: true + type: boolean + blockedReason: + description: The reason why the Toll-Free Verification is blocked. This + attribute will only be defined when the number is blocked. (Not Available + Until 5/28/2025) + example: Toll-free number was used to send spam messages + type: string type: object tfvSubmissionInfo: example: - additionalInformation: additionalInformation + additionalInformation: Any additional information useCase: 2FA + termsAndConditionsUrl: http://your-company.com/termsAndConditionsUrl.pdf + businessDBA: SecondCompany Name isvReseller: Test ISV businessContact: firstName: John @@ -13014,6 +13099,7 @@ components: name: Bandwidth Inc. state: NC url: https://www.example.com/path/to/resource + privacyPolicyUrl: http://your-company.com/privacyPolicyUrl.pdf useCaseSummary: Text summarizing the use case for the toll-free number optInWorkflow: imageUrls: @@ -13055,6 +13141,7 @@ components: $ref: '#/components/schemas/optInWorkflow' additionalInformation: description: Any additional information. + example: Any additional information maxLength: 500 minLength: 0 nullable: true @@ -13066,6 +13153,20 @@ components: minLength: 0 nullable: true type: string + privacyPolicyUrl: + description: The Toll-Free Verification request privacy policy URL. (Not + Available Until 5/28/2025) + example: http://your-company.com/privacyPolicyUrl.pdf + type: string + termsAndConditionsUrl: + description: The Toll-Free Verification request terms and conditions policy + URL. (Not Available Until 5/28/2025) + example: http://your-company.com/termsAndConditionsUrl.pdf + type: string + businessDBA: + description: The company 'Doing Business As'. (Not Available Until 5/28/2025) + example: SecondCompany Name + type: string type: object tfvStatusEnum: enum: diff --git a/bandwidth.yml b/bandwidth.yml index 0a0121cd..e41dd6a6 100644 --- a/bandwidth.yml +++ b/bandwidth.yml @@ -5228,6 +5228,35 @@ components: PUT. example: true type: boolean + blocked: + description: >- + Whether a Toll-Free Verification is blocked. This attribute will only be + defined when the number is blocked. (Not Available Until 5/28/2025) + example: true + type: boolean + blockedReason: + description: >- + The reason why the Toll-Free Verification is blocked. This attribute + will only be defined when the number is blocked. (Not Available Until + 5/28/2025) + example: Toll-free number was used to send spam messages + type: string + privacyPolicyUrl: + description: >- + The Toll-Free Verification request privacy policy URL. (Not Available + Until 5/28/2025) + example: http://your-company.com/privacyPolicyUrl.pdf + type: string + termsAndConditionsUrl: + description: >- + The Toll-Free Verification request terms and conditions policy URL. (Not + Available Until 5/28/2025) + example: http://your-company.com/termsAndConditionsUrl.pdf + type: string + businessDBA: + description: The company 'Doing Business As'. (Not Available Until 5/28/2025) + example: SecondCompany Name + type: string additionalDenialReason: properties: statusCode: @@ -5308,6 +5337,12 @@ components: example: Any additional information isvReseller: $ref: '#/components/schemas/isvReseller' + privacyPolicyUrl: + $ref: '#/components/schemas/privacyPolicyUrl' + termsAndConditionsUrl: + $ref: '#/components/schemas/termsAndConditionsUrl' + businessDBA: + $ref: '#/components/schemas/businessDBA' verificationUpdateRequest: type: object required: @@ -5341,6 +5376,12 @@ components: $ref: '#/components/schemas/additionalInformation' isvReseller: $ref: '#/components/schemas/isvReseller' + privacyPolicyUrl: + $ref: '#/components/schemas/privacyPolicyUrl' + termsAndConditionsUrl: + $ref: '#/components/schemas/termsAndConditionsUrl' + businessDBA: + $ref: '#/components/schemas/businessDBA' tfvBasicAuthentication: type: object properties: @@ -5419,6 +5460,10 @@ components: $ref: '#/components/schemas/resubmitAllowed' status: $ref: '#/components/schemas/tfvUnverifiedStatus' + blocked: + $ref: '#/components/schemas/blocked' + blockedReason: + $ref: '#/components/schemas/blockedReason' verificationWebhook: type: object properties: @@ -5501,6 +5546,7 @@ components: minLength: 0 maxLength: 500 nullable: true + example: Any additional information optInWorkflow: type: object nullable: false @@ -5762,6 +5808,10 @@ components: example: '2021-06-08T06:45:13.0Z' submission: $ref: '#/components/schemas/tfvSubmissionInfo' + blocked: + $ref: '#/components/schemas/blocked' + blockedReason: + $ref: '#/components/schemas/blockedReason' tfvSubmissionInfo: type: object properties: @@ -5787,6 +5837,12 @@ components: $ref: '#/components/schemas/additionalInformation' isvReseller: $ref: '#/components/schemas/isvReseller' + privacyPolicyUrl: + $ref: '#/components/schemas/privacyPolicyUrl' + termsAndConditionsUrl: + $ref: '#/components/schemas/termsAndConditionsUrl' + businessDBA: + $ref: '#/components/schemas/businessDBA' tfvStatusEnum: type: string enum: diff --git a/docs/TfvStatus.md b/docs/TfvStatus.md index c857d97c..201996e9 100644 --- a/docs/TfvStatus.md +++ b/docs/TfvStatus.md @@ -15,6 +15,8 @@ |**createdDateTime** | **OffsetDateTime** | Date and time the verification request was created. | [optional] | |**modifiedDateTime** | **OffsetDateTime** | Date and time the verification request was last modified. | [optional] | |**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. (Not Available Until 5/28/2025) | [optional] | +|**blockedReason** | **String** | The reason why the Toll-Free Verification is blocked. This attribute will only be defined when the number is blocked. (Not Available Until 5/28/2025) | [optional] | diff --git a/docs/TfvSubmissionInfo.md b/docs/TfvSubmissionInfo.md index 4e9d6fe1..da62c452 100644 --- a/docs/TfvSubmissionInfo.md +++ b/docs/TfvSubmissionInfo.md @@ -16,6 +16,9 @@ |**optInWorkflow** | [**OptInWorkflow**](OptInWorkflow.md) | | [optional] | |**additionalInformation** | **String** | Any additional information. | [optional] | |**isvReseller** | **String** | ISV name. | [optional] | +|**privacyPolicyUrl** | **String** | The Toll-Free Verification request privacy policy URL. (Not Available Until 5/28/2025) | [optional] | +|**termsAndConditionsUrl** | **String** | The Toll-Free Verification request terms and conditions policy URL. (Not Available Until 5/28/2025) | [optional] | +|**businessDBA** | **String** | The company 'Doing Business As'. (Not Available Until 5/28/2025) | [optional] | diff --git a/docs/VerificationDenialWebhook.md b/docs/VerificationDenialWebhook.md index e75b5a6c..8b93f5b9 100644 --- a/docs/VerificationDenialWebhook.md +++ b/docs/VerificationDenialWebhook.md @@ -15,6 +15,8 @@ |**phoneNumber** | **String** | Toll-free telephone number in E.164 format. | [optional] | |**resubmitAllowed** | **Boolean** | Whether a Toll-Free Verification request qualifies for resubmission via PUT. | [optional] | |**status** | **String** | | [optional] | +|**blocked** | **Boolean** | Whether a Toll-Free Verification is blocked. This attribute will only be defined when the number is blocked. (Not Available Until 5/28/2025) | [optional] | +|**blockedReason** | **String** | The reason why the Toll-Free Verification is blocked. This attribute will only be defined when the number is blocked. (Not Available Until 5/28/2025) | [optional] | diff --git a/docs/VerificationRequest.md b/docs/VerificationRequest.md index a6f3ee5f..41e46ef1 100644 --- a/docs/VerificationRequest.md +++ b/docs/VerificationRequest.md @@ -17,6 +17,9 @@ |**optInWorkflow** | [**OptInWorkflow**](OptInWorkflow.md) | | | |**additionalInformation** | **String** | Any additional information. | [optional] | |**isvReseller** | **String** | ISV name. | [optional] | +|**privacyPolicyUrl** | **String** | The Toll-Free Verification request privacy policy URL. (Not Available Until 5/28/2025) | [optional] | +|**termsAndConditionsUrl** | **String** | The Toll-Free Verification request terms and conditions policy URL. (Not Available Until 5/28/2025) | [optional] | +|**businessDBA** | **String** | The company 'Doing Business As'. (Not Available Until 5/28/2025) | [optional] | diff --git a/docs/VerificationUpdateRequest.md b/docs/VerificationUpdateRequest.md index baacb097..a9aba981 100644 --- a/docs/VerificationUpdateRequest.md +++ b/docs/VerificationUpdateRequest.md @@ -16,6 +16,9 @@ |**optInWorkflow** | [**OptInWorkflow**](OptInWorkflow.md) | | | |**additionalInformation** | **String** | Any additional information. | [optional] | |**isvReseller** | **String** | ISV name. | [optional] | +|**privacyPolicyUrl** | **String** | The Toll-Free Verification request privacy policy URL. (Not Available Until 5/28/2025) | [optional] | +|**termsAndConditionsUrl** | **String** | The Toll-Free Verification request terms and conditions policy URL. (Not Available Until 5/28/2025) | [optional] | +|**businessDBA** | **String** | The company 'Doing Business As'. (Not Available Until 5/28/2025) | [optional] | diff --git a/src/main/java/com/bandwidth/sdk/model/TfvStatus.java b/src/main/java/com/bandwidth/sdk/model/TfvStatus.java index 3f849f7c..8ef86682 100644 --- a/src/main/java/com/bandwidth/sdk/model/TfvStatus.java +++ b/src/main/java/com/bandwidth/sdk/model/TfvStatus.java @@ -94,6 +94,16 @@ public class TfvStatus { @javax.annotation.Nullable private TfvSubmissionInfo submission; + public static final String SERIALIZED_NAME_BLOCKED = "blocked"; + @SerializedName(SERIALIZED_NAME_BLOCKED) + @javax.annotation.Nullable + private Boolean blocked; + + public static final String SERIALIZED_NAME_BLOCKED_REASON = "blockedReason"; + @SerializedName(SERIALIZED_NAME_BLOCKED_REASON) + @javax.annotation.Nullable + private String blockedReason; + public TfvStatus() { } @@ -248,6 +258,44 @@ public void setSubmission(@javax.annotation.Nullable TfvSubmissionInfo submissio this.submission = submission; } + + public TfvStatus blocked(@javax.annotation.Nullable Boolean blocked) { + this.blocked = blocked; + return this; + } + + /** + * Whether a Toll-Free Verification is blocked. This attribute will only be defined when the number is blocked. (Not Available Until 5/28/2025) + * @return blocked + */ + @javax.annotation.Nullable + public Boolean getBlocked() { + return blocked; + } + + public void setBlocked(@javax.annotation.Nullable Boolean blocked) { + this.blocked = blocked; + } + + + public TfvStatus blockedReason(@javax.annotation.Nullable String blockedReason) { + this.blockedReason = blockedReason; + return this; + } + + /** + * The reason why the Toll-Free Verification is blocked. This attribute will only be defined when the number is blocked. (Not Available Until 5/28/2025) + * @return blockedReason + */ + @javax.annotation.Nullable + public String getBlockedReason() { + return blockedReason; + } + + public void setBlockedReason(@javax.annotation.Nullable String blockedReason) { + this.blockedReason = blockedReason; + } + /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -310,13 +358,15 @@ public boolean equals(Object o) { Objects.equals(this.resubmitAllowed, tfvStatus.resubmitAllowed) && Objects.equals(this.createdDateTime, tfvStatus.createdDateTime) && Objects.equals(this.modifiedDateTime, tfvStatus.modifiedDateTime) && - Objects.equals(this.submission, tfvStatus.submission)&& + Objects.equals(this.submission, tfvStatus.submission) && + Objects.equals(this.blocked, tfvStatus.blocked) && + Objects.equals(this.blockedReason, tfvStatus.blockedReason)&& Objects.equals(this.additionalProperties, tfvStatus.additionalProperties); } @Override public int hashCode() { - return Objects.hash(phoneNumber, status, internalTicketNumber, declineReasonDescription, resubmitAllowed, createdDateTime, modifiedDateTime, submission, additionalProperties); + return Objects.hash(phoneNumber, status, internalTicketNumber, declineReasonDescription, resubmitAllowed, createdDateTime, modifiedDateTime, submission, blocked, blockedReason, additionalProperties); } @Override @@ -331,6 +381,8 @@ public String toString() { sb.append(" createdDateTime: ").append(toIndentedString(createdDateTime)).append("\n"); sb.append(" modifiedDateTime: ").append(toIndentedString(modifiedDateTime)).append("\n"); 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(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -362,6 +414,8 @@ private String toIndentedString(Object o) { openapiFields.add("createdDateTime"); openapiFields.add("modifiedDateTime"); openapiFields.add("submission"); + openapiFields.add("blocked"); + openapiFields.add("blockedReason"); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(); @@ -397,6 +451,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonObj.get("submission") != null && !jsonObj.get("submission").isJsonNull()) { TfvSubmissionInfo.validateJsonElement(jsonObj.get("submission")); } + if ((jsonObj.get("blockedReason") != null && !jsonObj.get("blockedReason").isJsonNull()) && !jsonObj.get("blockedReason").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `blockedReason` to be a primitive type in the JSON string but got `%s`", jsonObj.get("blockedReason").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/com/bandwidth/sdk/model/TfvSubmissionInfo.java b/src/main/java/com/bandwidth/sdk/model/TfvSubmissionInfo.java index 37bfcbf2..0a4764c3 100644 --- a/src/main/java/com/bandwidth/sdk/model/TfvSubmissionInfo.java +++ b/src/main/java/com/bandwidth/sdk/model/TfvSubmissionInfo.java @@ -99,6 +99,21 @@ public class TfvSubmissionInfo { @javax.annotation.Nullable private String isvReseller; + public static final String SERIALIZED_NAME_PRIVACY_POLICY_URL = "privacyPolicyUrl"; + @SerializedName(SERIALIZED_NAME_PRIVACY_POLICY_URL) + @javax.annotation.Nullable + private String privacyPolicyUrl; + + public static final String SERIALIZED_NAME_TERMS_AND_CONDITIONS_URL = "termsAndConditionsUrl"; + @SerializedName(SERIALIZED_NAME_TERMS_AND_CONDITIONS_URL) + @javax.annotation.Nullable + private String termsAndConditionsUrl; + + public static final String SERIALIZED_NAME_BUSINESS_D_B_A = "businessDBA"; + @SerializedName(SERIALIZED_NAME_BUSINESS_D_B_A) + @javax.annotation.Nullable + private String businessDBA; + public TfvSubmissionInfo() { } @@ -274,6 +289,63 @@ public void setIsvReseller(@javax.annotation.Nullable String isvReseller) { this.isvReseller = isvReseller; } + + public TfvSubmissionInfo privacyPolicyUrl(@javax.annotation.Nullable String privacyPolicyUrl) { + this.privacyPolicyUrl = privacyPolicyUrl; + return this; + } + + /** + * The Toll-Free Verification request privacy policy URL. (Not Available Until 5/28/2025) + * @return privacyPolicyUrl + */ + @javax.annotation.Nullable + public String getPrivacyPolicyUrl() { + return privacyPolicyUrl; + } + + public void setPrivacyPolicyUrl(@javax.annotation.Nullable String privacyPolicyUrl) { + this.privacyPolicyUrl = privacyPolicyUrl; + } + + + public TfvSubmissionInfo termsAndConditionsUrl(@javax.annotation.Nullable String termsAndConditionsUrl) { + this.termsAndConditionsUrl = termsAndConditionsUrl; + return this; + } + + /** + * The Toll-Free Verification request terms and conditions policy URL. (Not Available Until 5/28/2025) + * @return termsAndConditionsUrl + */ + @javax.annotation.Nullable + public String getTermsAndConditionsUrl() { + return termsAndConditionsUrl; + } + + public void setTermsAndConditionsUrl(@javax.annotation.Nullable String termsAndConditionsUrl) { + this.termsAndConditionsUrl = termsAndConditionsUrl; + } + + + public TfvSubmissionInfo businessDBA(@javax.annotation.Nullable String businessDBA) { + this.businessDBA = businessDBA; + return this; + } + + /** + * The company 'Doing Business As'. (Not Available Until 5/28/2025) + * @return businessDBA + */ + @javax.annotation.Nullable + public String getBusinessDBA() { + return businessDBA; + } + + public void setBusinessDBA(@javax.annotation.Nullable String businessDBA) { + this.businessDBA = businessDBA; + } + /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -337,7 +409,10 @@ public boolean equals(Object o) { Objects.equals(this.productionMessageContent, tfvSubmissionInfo.productionMessageContent) && Objects.equals(this.optInWorkflow, tfvSubmissionInfo.optInWorkflow) && Objects.equals(this.additionalInformation, tfvSubmissionInfo.additionalInformation) && - Objects.equals(this.isvReseller, tfvSubmissionInfo.isvReseller)&& + Objects.equals(this.isvReseller, tfvSubmissionInfo.isvReseller) && + Objects.equals(this.privacyPolicyUrl, tfvSubmissionInfo.privacyPolicyUrl) && + Objects.equals(this.termsAndConditionsUrl, tfvSubmissionInfo.termsAndConditionsUrl) && + Objects.equals(this.businessDBA, tfvSubmissionInfo.businessDBA)&& Objects.equals(this.additionalProperties, tfvSubmissionInfo.additionalProperties); } @@ -347,7 +422,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, additionalProperties); + return Objects.hash(businessAddress, businessContact, messageVolume, useCase, useCaseSummary, productionMessageContent, optInWorkflow, additionalInformation, isvReseller, privacyPolicyUrl, termsAndConditionsUrl, businessDBA, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -370,6 +445,9 @@ public String toString() { sb.append(" optInWorkflow: ").append(toIndentedString(optInWorkflow)).append("\n"); sb.append(" additionalInformation: ").append(toIndentedString(additionalInformation)).append("\n"); sb.append(" isvReseller: ").append(toIndentedString(isvReseller)).append("\n"); + sb.append(" privacyPolicyUrl: ").append(toIndentedString(privacyPolicyUrl)).append("\n"); + sb.append(" termsAndConditionsUrl: ").append(toIndentedString(termsAndConditionsUrl)).append("\n"); + sb.append(" businessDBA: ").append(toIndentedString(businessDBA)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -402,6 +480,9 @@ private String toIndentedString(Object o) { openapiFields.add("optInWorkflow"); openapiFields.add("additionalInformation"); openapiFields.add("isvReseller"); + openapiFields.add("privacyPolicyUrl"); + openapiFields.add("termsAndConditionsUrl"); + openapiFields.add("businessDBA"); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(); @@ -447,6 +528,15 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if ((jsonObj.get("isvReseller") != null && !jsonObj.get("isvReseller").isJsonNull()) && !jsonObj.get("isvReseller").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `isvReseller` to be a primitive type in the JSON string but got `%s`", jsonObj.get("isvReseller").toString())); } + if ((jsonObj.get("privacyPolicyUrl") != null && !jsonObj.get("privacyPolicyUrl").isJsonNull()) && !jsonObj.get("privacyPolicyUrl").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `privacyPolicyUrl` to be a primitive type in the JSON string but got `%s`", jsonObj.get("privacyPolicyUrl").toString())); + } + if ((jsonObj.get("termsAndConditionsUrl") != null && !jsonObj.get("termsAndConditionsUrl").isJsonNull()) && !jsonObj.get("termsAndConditionsUrl").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `termsAndConditionsUrl` to be a primitive type in the JSON string but got `%s`", jsonObj.get("termsAndConditionsUrl").toString())); + } + if ((jsonObj.get("businessDBA") != null && !jsonObj.get("businessDBA").isJsonNull()) && !jsonObj.get("businessDBA").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `businessDBA` to be a primitive type in the JSON string but got `%s`", jsonObj.get("businessDBA").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/com/bandwidth/sdk/model/VerificationDenialWebhook.java b/src/main/java/com/bandwidth/sdk/model/VerificationDenialWebhook.java index 9bc03222..c630da70 100644 --- a/src/main/java/com/bandwidth/sdk/model/VerificationDenialWebhook.java +++ b/src/main/java/com/bandwidth/sdk/model/VerificationDenialWebhook.java @@ -94,6 +94,16 @@ public class VerificationDenialWebhook { @javax.annotation.Nullable private String status = "UNVERIFIED"; + public static final String SERIALIZED_NAME_BLOCKED = "blocked"; + @SerializedName(SERIALIZED_NAME_BLOCKED) + @javax.annotation.Nullable + private Boolean blocked; + + public static final String SERIALIZED_NAME_BLOCKED_REASON = "blockedReason"; + @SerializedName(SERIALIZED_NAME_BLOCKED_REASON) + @javax.annotation.Nullable + private String blockedReason; + public VerificationDenialWebhook() { } @@ -256,6 +266,44 @@ public void setStatus(@javax.annotation.Nullable String status) { this.status = status; } + + public VerificationDenialWebhook blocked(@javax.annotation.Nullable Boolean blocked) { + this.blocked = blocked; + return this; + } + + /** + * Whether a Toll-Free Verification is blocked. This attribute will only be defined when the number is blocked. (Not Available Until 5/28/2025) + * @return blocked + */ + @javax.annotation.Nullable + public Boolean getBlocked() { + return blocked; + } + + public void setBlocked(@javax.annotation.Nullable Boolean blocked) { + this.blocked = blocked; + } + + + public VerificationDenialWebhook blockedReason(@javax.annotation.Nullable String blockedReason) { + this.blockedReason = blockedReason; + return this; + } + + /** + * The reason why the Toll-Free Verification is blocked. This attribute will only be defined when the number is blocked. (Not Available Until 5/28/2025) + * @return blockedReason + */ + @javax.annotation.Nullable + public String getBlockedReason() { + return blockedReason; + } + + public void setBlockedReason(@javax.annotation.Nullable String blockedReason) { + this.blockedReason = blockedReason; + } + /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -318,13 +366,15 @@ public boolean equals(Object o) { Objects.equals(this.internalTicketNumber, verificationDenialWebhook.internalTicketNumber) && Objects.equals(this.phoneNumber, verificationDenialWebhook.phoneNumber) && Objects.equals(this.resubmitAllowed, verificationDenialWebhook.resubmitAllowed) && - Objects.equals(this.status, verificationDenialWebhook.status)&& + Objects.equals(this.status, verificationDenialWebhook.status) && + Objects.equals(this.blocked, verificationDenialWebhook.blocked) && + Objects.equals(this.blockedReason, verificationDenialWebhook.blockedReason)&& Objects.equals(this.additionalProperties, verificationDenialWebhook.additionalProperties); } @Override public int hashCode() { - return Objects.hash(accountId, additionalDenialReasons, declineReasonDescription, denialStatusCode, internalTicketNumber, phoneNumber, resubmitAllowed, status, additionalProperties); + return Objects.hash(accountId, additionalDenialReasons, declineReasonDescription, denialStatusCode, internalTicketNumber, phoneNumber, resubmitAllowed, status, blocked, blockedReason, additionalProperties); } @Override @@ -339,6 +389,8 @@ public String toString() { sb.append(" phoneNumber: ").append(toIndentedString(phoneNumber)).append("\n"); sb.append(" resubmitAllowed: ").append(toIndentedString(resubmitAllowed)).append("\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" blocked: ").append(toIndentedString(blocked)).append("\n"); + sb.append(" blockedReason: ").append(toIndentedString(blockedReason)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -370,6 +422,8 @@ private String toIndentedString(Object o) { openapiFields.add("phoneNumber"); openapiFields.add("resubmitAllowed"); openapiFields.add("status"); + openapiFields.add("blocked"); + openapiFields.add("blockedReason"); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(); @@ -417,6 +471,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if ((jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) && !jsonObj.get("status").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `status` to be a primitive type in the JSON string but got `%s`", jsonObj.get("status").toString())); } + if ((jsonObj.get("blockedReason") != null && !jsonObj.get("blockedReason").isJsonNull()) && !jsonObj.get("blockedReason").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `blockedReason` to be a primitive type in the JSON string but got `%s`", jsonObj.get("blockedReason").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 99c07c6b..46ca3fe7 100644 --- a/src/main/java/com/bandwidth/sdk/model/VerificationRequest.java +++ b/src/main/java/com/bandwidth/sdk/model/VerificationRequest.java @@ -106,6 +106,21 @@ public class VerificationRequest { @javax.annotation.Nullable private String isvReseller; + public static final String SERIALIZED_NAME_PRIVACY_POLICY_URL = "privacyPolicyUrl"; + @SerializedName(SERIALIZED_NAME_PRIVACY_POLICY_URL) + @javax.annotation.Nullable + private String privacyPolicyUrl; + + public static final String SERIALIZED_NAME_TERMS_AND_CONDITIONS_URL = "termsAndConditionsUrl"; + @SerializedName(SERIALIZED_NAME_TERMS_AND_CONDITIONS_URL) + @javax.annotation.Nullable + private String termsAndConditionsUrl; + + public static final String SERIALIZED_NAME_BUSINESS_D_B_A = "businessDBA"; + @SerializedName(SERIALIZED_NAME_BUSINESS_D_B_A) + @javax.annotation.Nullable + private String businessDBA; + public VerificationRequest() { } @@ -308,6 +323,63 @@ public void setIsvReseller(@javax.annotation.Nullable String isvReseller) { this.isvReseller = isvReseller; } + + public VerificationRequest privacyPolicyUrl(@javax.annotation.Nullable String privacyPolicyUrl) { + this.privacyPolicyUrl = privacyPolicyUrl; + return this; + } + + /** + * The Toll-Free Verification request privacy policy URL. (Not Available Until 5/28/2025) + * @return privacyPolicyUrl + */ + @javax.annotation.Nullable + public String getPrivacyPolicyUrl() { + return privacyPolicyUrl; + } + + public void setPrivacyPolicyUrl(@javax.annotation.Nullable String privacyPolicyUrl) { + this.privacyPolicyUrl = privacyPolicyUrl; + } + + + public VerificationRequest termsAndConditionsUrl(@javax.annotation.Nullable String termsAndConditionsUrl) { + this.termsAndConditionsUrl = termsAndConditionsUrl; + return this; + } + + /** + * The Toll-Free Verification request terms and conditions policy URL. (Not Available Until 5/28/2025) + * @return termsAndConditionsUrl + */ + @javax.annotation.Nullable + public String getTermsAndConditionsUrl() { + return termsAndConditionsUrl; + } + + public void setTermsAndConditionsUrl(@javax.annotation.Nullable String termsAndConditionsUrl) { + this.termsAndConditionsUrl = termsAndConditionsUrl; + } + + + public VerificationRequest businessDBA(@javax.annotation.Nullable String businessDBA) { + this.businessDBA = businessDBA; + return this; + } + + /** + * The company 'Doing Business As'. (Not Available Until 5/28/2025) + * @return businessDBA + */ + @javax.annotation.Nullable + public String getBusinessDBA() { + return businessDBA; + } + + public void setBusinessDBA(@javax.annotation.Nullable String businessDBA) { + this.businessDBA = businessDBA; + } + /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -372,7 +444,10 @@ public boolean equals(Object o) { Objects.equals(this.productionMessageContent, verificationRequest.productionMessageContent) && Objects.equals(this.optInWorkflow, verificationRequest.optInWorkflow) && Objects.equals(this.additionalInformation, verificationRequest.additionalInformation) && - Objects.equals(this.isvReseller, verificationRequest.isvReseller)&& + Objects.equals(this.isvReseller, verificationRequest.isvReseller) && + Objects.equals(this.privacyPolicyUrl, verificationRequest.privacyPolicyUrl) && + Objects.equals(this.termsAndConditionsUrl, verificationRequest.termsAndConditionsUrl) && + Objects.equals(this.businessDBA, verificationRequest.businessDBA)&& Objects.equals(this.additionalProperties, verificationRequest.additionalProperties); } @@ -382,7 +457,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, additionalProperties); + return Objects.hash(businessAddress, businessContact, messageVolume, phoneNumbers, useCase, useCaseSummary, productionMessageContent, optInWorkflow, additionalInformation, isvReseller, privacyPolicyUrl, termsAndConditionsUrl, businessDBA, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -406,6 +481,9 @@ public String toString() { sb.append(" optInWorkflow: ").append(toIndentedString(optInWorkflow)).append("\n"); sb.append(" additionalInformation: ").append(toIndentedString(additionalInformation)).append("\n"); sb.append(" isvReseller: ").append(toIndentedString(isvReseller)).append("\n"); + sb.append(" privacyPolicyUrl: ").append(toIndentedString(privacyPolicyUrl)).append("\n"); + sb.append(" termsAndConditionsUrl: ").append(toIndentedString(termsAndConditionsUrl)).append("\n"); + sb.append(" businessDBA: ").append(toIndentedString(businessDBA)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -439,6 +517,9 @@ private String toIndentedString(Object o) { openapiFields.add("optInWorkflow"); openapiFields.add("additionalInformation"); openapiFields.add("isvReseller"); + openapiFields.add("privacyPolicyUrl"); + openapiFields.add("termsAndConditionsUrl"); + openapiFields.add("businessDBA"); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(); @@ -499,6 +580,15 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if ((jsonObj.get("isvReseller") != null && !jsonObj.get("isvReseller").isJsonNull()) && !jsonObj.get("isvReseller").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `isvReseller` to be a primitive type in the JSON string but got `%s`", jsonObj.get("isvReseller").toString())); } + if ((jsonObj.get("privacyPolicyUrl") != null && !jsonObj.get("privacyPolicyUrl").isJsonNull()) && !jsonObj.get("privacyPolicyUrl").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `privacyPolicyUrl` to be a primitive type in the JSON string but got `%s`", jsonObj.get("privacyPolicyUrl").toString())); + } + if ((jsonObj.get("termsAndConditionsUrl") != null && !jsonObj.get("termsAndConditionsUrl").isJsonNull()) && !jsonObj.get("termsAndConditionsUrl").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `termsAndConditionsUrl` to be a primitive type in the JSON string but got `%s`", jsonObj.get("termsAndConditionsUrl").toString())); + } + if ((jsonObj.get("businessDBA") != null && !jsonObj.get("businessDBA").isJsonNull()) && !jsonObj.get("businessDBA").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `businessDBA` to be a primitive type in the JSON string but got `%s`", jsonObj.get("businessDBA").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 d150b84e..9703e96a 100644 --- a/src/main/java/com/bandwidth/sdk/model/VerificationUpdateRequest.java +++ b/src/main/java/com/bandwidth/sdk/model/VerificationUpdateRequest.java @@ -99,6 +99,21 @@ public class VerificationUpdateRequest { @javax.annotation.Nullable private String isvReseller; + public static final String SERIALIZED_NAME_PRIVACY_POLICY_URL = "privacyPolicyUrl"; + @SerializedName(SERIALIZED_NAME_PRIVACY_POLICY_URL) + @javax.annotation.Nullable + private String privacyPolicyUrl; + + public static final String SERIALIZED_NAME_TERMS_AND_CONDITIONS_URL = "termsAndConditionsUrl"; + @SerializedName(SERIALIZED_NAME_TERMS_AND_CONDITIONS_URL) + @javax.annotation.Nullable + private String termsAndConditionsUrl; + + public static final String SERIALIZED_NAME_BUSINESS_D_B_A = "businessDBA"; + @SerializedName(SERIALIZED_NAME_BUSINESS_D_B_A) + @javax.annotation.Nullable + private String businessDBA; + public VerificationUpdateRequest() { } @@ -274,6 +289,63 @@ public void setIsvReseller(@javax.annotation.Nullable String isvReseller) { this.isvReseller = isvReseller; } + + public VerificationUpdateRequest privacyPolicyUrl(@javax.annotation.Nullable String privacyPolicyUrl) { + this.privacyPolicyUrl = privacyPolicyUrl; + return this; + } + + /** + * The Toll-Free Verification request privacy policy URL. (Not Available Until 5/28/2025) + * @return privacyPolicyUrl + */ + @javax.annotation.Nullable + public String getPrivacyPolicyUrl() { + return privacyPolicyUrl; + } + + public void setPrivacyPolicyUrl(@javax.annotation.Nullable String privacyPolicyUrl) { + this.privacyPolicyUrl = privacyPolicyUrl; + } + + + public VerificationUpdateRequest termsAndConditionsUrl(@javax.annotation.Nullable String termsAndConditionsUrl) { + this.termsAndConditionsUrl = termsAndConditionsUrl; + return this; + } + + /** + * The Toll-Free Verification request terms and conditions policy URL. (Not Available Until 5/28/2025) + * @return termsAndConditionsUrl + */ + @javax.annotation.Nullable + public String getTermsAndConditionsUrl() { + return termsAndConditionsUrl; + } + + public void setTermsAndConditionsUrl(@javax.annotation.Nullable String termsAndConditionsUrl) { + this.termsAndConditionsUrl = termsAndConditionsUrl; + } + + + public VerificationUpdateRequest businessDBA(@javax.annotation.Nullable String businessDBA) { + this.businessDBA = businessDBA; + return this; + } + + /** + * The company 'Doing Business As'. (Not Available Until 5/28/2025) + * @return businessDBA + */ + @javax.annotation.Nullable + public String getBusinessDBA() { + return businessDBA; + } + + public void setBusinessDBA(@javax.annotation.Nullable String businessDBA) { + this.businessDBA = businessDBA; + } + /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -337,7 +409,10 @@ public boolean equals(Object o) { Objects.equals(this.productionMessageContent, verificationUpdateRequest.productionMessageContent) && Objects.equals(this.optInWorkflow, verificationUpdateRequest.optInWorkflow) && Objects.equals(this.additionalInformation, verificationUpdateRequest.additionalInformation) && - Objects.equals(this.isvReseller, verificationUpdateRequest.isvReseller)&& + Objects.equals(this.isvReseller, verificationUpdateRequest.isvReseller) && + Objects.equals(this.privacyPolicyUrl, verificationUpdateRequest.privacyPolicyUrl) && + Objects.equals(this.termsAndConditionsUrl, verificationUpdateRequest.termsAndConditionsUrl) && + Objects.equals(this.businessDBA, verificationUpdateRequest.businessDBA)&& Objects.equals(this.additionalProperties, verificationUpdateRequest.additionalProperties); } @@ -347,7 +422,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, additionalProperties); + return Objects.hash(businessAddress, businessContact, messageVolume, useCase, useCaseSummary, productionMessageContent, optInWorkflow, additionalInformation, isvReseller, privacyPolicyUrl, termsAndConditionsUrl, businessDBA, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -370,6 +445,9 @@ public String toString() { sb.append(" optInWorkflow: ").append(toIndentedString(optInWorkflow)).append("\n"); sb.append(" additionalInformation: ").append(toIndentedString(additionalInformation)).append("\n"); sb.append(" isvReseller: ").append(toIndentedString(isvReseller)).append("\n"); + sb.append(" privacyPolicyUrl: ").append(toIndentedString(privacyPolicyUrl)).append("\n"); + sb.append(" termsAndConditionsUrl: ").append(toIndentedString(termsAndConditionsUrl)).append("\n"); + sb.append(" businessDBA: ").append(toIndentedString(businessDBA)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -402,6 +480,9 @@ private String toIndentedString(Object o) { openapiFields.add("optInWorkflow"); openapiFields.add("additionalInformation"); openapiFields.add("isvReseller"); + openapiFields.add("privacyPolicyUrl"); + openapiFields.add("termsAndConditionsUrl"); + openapiFields.add("businessDBA"); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(); @@ -455,6 +536,15 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if ((jsonObj.get("isvReseller") != null && !jsonObj.get("isvReseller").isJsonNull()) && !jsonObj.get("isvReseller").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `isvReseller` to be a primitive type in the JSON string but got `%s`", jsonObj.get("isvReseller").toString())); } + if ((jsonObj.get("privacyPolicyUrl") != null && !jsonObj.get("privacyPolicyUrl").isJsonNull()) && !jsonObj.get("privacyPolicyUrl").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `privacyPolicyUrl` to be a primitive type in the JSON string but got `%s`", jsonObj.get("privacyPolicyUrl").toString())); + } + if ((jsonObj.get("termsAndConditionsUrl") != null && !jsonObj.get("termsAndConditionsUrl").isJsonNull()) && !jsonObj.get("termsAndConditionsUrl").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `termsAndConditionsUrl` to be a primitive type in the JSON string but got `%s`", jsonObj.get("termsAndConditionsUrl").toString())); + } + if ((jsonObj.get("businessDBA") != null && !jsonObj.get("businessDBA").isJsonNull()) && !jsonObj.get("businessDBA").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `businessDBA` to be a primitive type in the JSON string but got `%s`", jsonObj.get("businessDBA").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/test/java/com/bandwidth/sdk/unit/api/TollFreeVerificationApiTest.java b/src/test/java/com/bandwidth/sdk/unit/api/TollFreeVerificationApiTest.java index 8c008299..bfaf0d77 100644 --- a/src/test/java/com/bandwidth/sdk/unit/api/TollFreeVerificationApiTest.java +++ b/src/test/java/com/bandwidth/sdk/unit/api/TollFreeVerificationApiTest.java @@ -30,6 +30,7 @@ import com.bandwidth.sdk.model.TfvBasicAuthentication; import com.bandwidth.sdk.model.TfvStatus; import com.bandwidth.sdk.model.TfvStatusEnum; +import com.bandwidth.sdk.model.TfvSubmissionInfo; import com.bandwidth.sdk.model.TfvSubmissionWrapper; import com.bandwidth.sdk.model.VerificationRequest; import com.bandwidth.sdk.model.WebhookSubscription; @@ -107,6 +108,9 @@ public void getTollFreeVerificationStatusTest() throws ApiException { assertThat(response.getData().getResubmitAllowed(), instanceOf(Boolean.class)); assertThat(response.getData().getCreatedDateTime(), instanceOf(OffsetDateTime.class)); assertThat(response.getData().getModifiedDateTime(), instanceOf(OffsetDateTime.class)); + assertThat(response.getData().getSubmission(), instanceOf(TfvSubmissionInfo.class)); + assertThat(response.getData().getBlocked(), instanceOf(Boolean.class)); + assertThat(response.getData().getBlockedReason(), instanceOf(String.class)); } @Test @@ -177,7 +181,10 @@ public void requestTollFreeVerificationTest() throws ApiException { .description("description") .imageUrls(List.of("https://example.com"))) .additionalInformation("additionalInformation") - .isvReseller("isvReseller"); + .isvReseller("isvReseller") + .privacyPolicyUrl("privacyPolicyUrl") + .termsAndConditionsUrl("termsAndConditionsUrl") + .businessDBA("businessDBA"); ApiResponse response = api.requestTollFreeVerificationWithHttpInfo(BW_ACCOUNT_ID, verificationRequest); diff --git a/src/test/java/com/bandwidth/sdk/unit/models/TfvStatusTest.java b/src/test/java/com/bandwidth/sdk/unit/models/TfvStatusTest.java index aa933644..76138d0a 100644 --- a/src/test/java/com/bandwidth/sdk/unit/models/TfvStatusTest.java +++ b/src/test/java/com/bandwidth/sdk/unit/models/TfvStatusTest.java @@ -36,7 +36,9 @@ public class TfvStatusTest { .resubmitAllowed(true) .createdDateTime(OffsetDateTime.now()) .modifiedDateTime(OffsetDateTime.now()) - .submission(new TfvSubmissionInfo()); + .submission(new TfvSubmissionInfo()) + .blocked(true) + .blockedReason("blockedReason"); /** * Model tests for TfvStatus @@ -110,4 +112,20 @@ public void submissionTest() { assertThat(model.getSubmission(), instanceOf(TfvSubmissionInfo.class)); } + /** + * Test the property 'blocked' + */ + @Test + public void blockedTest() { + assertThat(model.getBlocked(), instanceOf(Boolean.class)); + } + + /** + * Test the property 'blockedReason' + */ + @Test + public void blockedReasonTest() { + assertThat(model.getBlockedReason(), instanceOf(String.class)); + } + } diff --git a/src/test/java/com/bandwidth/sdk/unit/models/TfvSubmissionInfoTest.java b/src/test/java/com/bandwidth/sdk/unit/models/TfvSubmissionInfoTest.java index e9f8d03f..b7f3c2f8 100644 --- a/src/test/java/com/bandwidth/sdk/unit/models/TfvSubmissionInfoTest.java +++ b/src/test/java/com/bandwidth/sdk/unit/models/TfvSubmissionInfoTest.java @@ -35,7 +35,10 @@ public class TfvSubmissionInfoTest { .productionMessageContent("productionMessageContent") .optInWorkflow(new OptInWorkflow()) .additionalInformation("additionalInformation") - .isvReseller("isvReseller"); + .isvReseller("isvReseller") + .privacyPolicyUrl("privacyPolicyUrl") + .termsAndConditionsUrl("termsAndConditionsUrl") + .businessDBA("businessDBA"); /** * Model tests for TfvSubmissionInfo @@ -117,4 +120,28 @@ public void isvResellerTest() { assertThat(model.getIsvReseller(), instanceOf(String.class)); } + /** + * Test the property 'privacyPolicyUrl' + */ + @Test + public void privacyPolicyUrlTest() { + assertThat(model.getPrivacyPolicyUrl(), instanceOf(String.class)); + } + + /** + * Test the property 'termsAndConditionsUrl' + */ + @Test + public void termsAndConditionsUrlTest() { + assertThat(model.getTermsAndConditionsUrl(), instanceOf(String.class)); + } + + /** + * Test the property 'businessDBA' + */ + @Test + public void businessDBATest() { + assertThat(model.getBusinessDBA(), instanceOf(String.class)); + } + } diff --git a/src/test/java/com/bandwidth/sdk/unit/models/VerificationDenialWebhookTest.java b/src/test/java/com/bandwidth/sdk/unit/models/VerificationDenialWebhookTest.java index 0927a3ea..ef0038f2 100644 --- a/src/test/java/com/bandwidth/sdk/unit/models/VerificationDenialWebhookTest.java +++ b/src/test/java/com/bandwidth/sdk/unit/models/VerificationDenialWebhookTest.java @@ -38,7 +38,9 @@ public class VerificationDenialWebhookTest { .internalTicketNumber(UUID.randomUUID()) .phoneNumber("phoneNumber") .resubmitAllowed(true) - .status("status"); + .status("status") + .blocked(true) + .blockedReason("blockedReason"); /** * Model tests for VerificationDenialWebhook @@ -112,4 +114,20 @@ public void statusTest() { assertThat(model.getStatus(), instanceOf(String.class)); } + /** + * Test the property 'blocked' + */ + @Test + public void blockedTest() { + assertThat(model.getBlocked(), instanceOf(Boolean.class)); + } + + /** + * Test the property 'blockedReason' + */ + @Test + public void blockedReasonTest() { + assertThat(model.getBlockedReason(), instanceOf(String.class)); + } + } diff --git a/src/test/java/com/bandwidth/sdk/unit/models/VerificationRequestTest.java b/src/test/java/com/bandwidth/sdk/unit/models/VerificationRequestTest.java index 779ae01b..4cfc0146 100644 --- a/src/test/java/com/bandwidth/sdk/unit/models/VerificationRequestTest.java +++ b/src/test/java/com/bandwidth/sdk/unit/models/VerificationRequestTest.java @@ -38,7 +38,10 @@ public class VerificationRequestTest { .productionMessageContent("productionMessageContent") .optInWorkflow(new OptInWorkflow()) .additionalInformation("additionalInformation") - .isvReseller("isvReseller"); + .isvReseller("isvReseller") + .privacyPolicyUrl("privacyPolicyUrl") + .termsAndConditionsUrl("termsAndConditionsUrl") + .businessDBA("businessDBA"); /** * Model tests for VerificationRequest @@ -128,4 +131,28 @@ public void isvResellerTest() { assertThat(model.getIsvReseller(), instanceOf(String.class)); } + /** + * Test the property 'privacyPolicyUrl' + */ + @Test + public void privacyPolicyUrlTest() { + assertThat(model.getPrivacyPolicyUrl(), instanceOf(String.class)); + } + + /** + * Test the property 'termsAndConditionsUrl' + */ + @Test + public void termsAndConditionsUrlTest() { + assertThat(model.getTermsAndConditionsUrl(), instanceOf(String.class)); + } + + /** + * Test the property 'businessDBA' + */ + @Test + public void businessDBATest() { + assertThat(model.getBusinessDBA(), instanceOf(String.class)); + } + } diff --git a/src/test/java/com/bandwidth/sdk/unit/models/VerificationUpdateRequestTest.java b/src/test/java/com/bandwidth/sdk/unit/models/VerificationUpdateRequestTest.java index 1a33511f..c8fedf60 100644 --- a/src/test/java/com/bandwidth/sdk/unit/models/VerificationUpdateRequestTest.java +++ b/src/test/java/com/bandwidth/sdk/unit/models/VerificationUpdateRequestTest.java @@ -35,7 +35,10 @@ public class VerificationUpdateRequestTest { .productionMessageContent("productionMessageContent") .optInWorkflow(new OptInWorkflow()) .additionalInformation("additionalInformation") - .isvReseller("isvReseller"); + .isvReseller("isvReseller") + .privacyPolicyUrl("privacyPolicyUrl") + .termsAndConditionsUrl("termsAndConditionsUrl") + .businessDBA("businessDBA"); /** * Model tests for VerificationUpdateRequest @@ -117,4 +120,28 @@ public void isvResellerTest() { assertThat(model.getIsvReseller(), instanceOf(String.class)); } + /** + * Test the property 'privacyPolicyUrl' + */ + @Test + public void privacyPolicyUrlTest() { + assertThat(model.getPrivacyPolicyUrl(), instanceOf(String.class)); + } + + /** + * Test the property 'termsAndConditionsUrl' + */ + @Test + public void termsAndConditionsUrlTest() { + assertThat(model.getTermsAndConditionsUrl(), instanceOf(String.class)); + } + + /** + * Test the property 'businessDBA' + */ + @Test + public void businessDBATest() { + assertThat(model.getBusinessDBA(), instanceOf(String.class)); + } + }