Skip to content

Commit bdcfe00

Browse files
committed
Generate SDK with OpenAPI Generator Version
1 parent 5896f7e commit bdcfe00

File tree

8 files changed

+170
-9
lines changed

8 files changed

+170
-9
lines changed

api/openapi.yaml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13853,6 +13853,16 @@ components:
1385313853
description: Indicates whether the content is age-gated.
1385413854
example: false
1385513855
type: boolean
13856+
cvToken:
13857+
description: "The token provided by Campaign Verify to validate your political\
13858+
\ use case. Only required for 527 political organizations. If you are\
13859+
\ not a 527 political organization, this field should be omitted. If you\
13860+
\ pass an empty string, it will be passed along and potentially rejected."
13861+
example: cv.user123|sess456|mno|tfree|read_write|X7yZ9aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVw
13862+
maxLength: 500
13863+
minLength: 0
13864+
nullable: true
13865+
type: string
1385613866
required:
1385713867
- businessAddress
1385813868
- businessContact
@@ -13947,6 +13957,16 @@ components:
1394713957
description: Indicates whether the content is age-gated.
1394813958
example: false
1394913959
type: boolean
13960+
cvToken:
13961+
description: "The token provided by Campaign Verify to validate your political\
13962+
\ use case. Only required for 527 political organizations. If you are\
13963+
\ not a 527 political organization, this field should be omitted. If you\
13964+
\ pass an empty string, it will be passed along and potentially rejected."
13965+
example: cv.user123|sess456|mno|tfree|read_write|X7yZ9aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVw
13966+
maxLength: 500
13967+
minLength: 0
13968+
nullable: true
13969+
type: string
1395013970
required:
1395113971
- businessAddress
1395213972
- businessContact
@@ -14609,6 +14629,7 @@ components:
1460914629
useCaseSummary: Text summarizing the use case for the toll-free number
1461014630
declineReasonDescription: Invalid Information - Can't Validate URL - Website
1461114631
is not accessible / not available
14632+
cvToken: cv.user123|sess456|mno|tfree|read_write|X7yZ9aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVw
1461214633
status: VERIFIED
1461314634
properties:
1461414635
phoneNumber:
@@ -14661,6 +14682,16 @@ components:
1466114682
attribute will only be defined when the number is blocked.
1466214683
example: Toll-free number was used to send spam messages
1466314684
type: string
14685+
cvToken:
14686+
description: "The token provided by Campaign Verify to validate your political\
14687+
\ use case. Only required for 527 political organizations. If you are\
14688+
\ not a 527 political organization, this field should be omitted. If you\
14689+
\ pass an empty string, it will be passed along and potentially rejected."
14690+
example: cv.user123|sess456|mno|tfree|read_write|X7yZ9aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVw
14691+
maxLength: 500
14692+
minLength: 0
14693+
nullable: true
14694+
type: string
1466414695
type: object
1466514696
tfvSubmissionInfo:
1466614697
example:
@@ -14785,6 +14816,16 @@ components:
1478514816
nullable: true
1478614817
pattern: "^[ -~]{16,64}$"
1478714818
type: string
14819+
cvToken:
14820+
description: "The token provided by Campaign Verify to validate your political\
14821+
\ use case. Only required for 527 political organizations. If you are not\
14822+
\ a 527 political organization, this field should be omitted. If you pass\
14823+
\ an empty string, it will be passed along and potentially rejected."
14824+
example: cv.user123|sess456|mno|tfree|read_write|X7yZ9aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVw
14825+
maxLength: 500
14826+
minLength: 0
14827+
nullable: true
14828+
type: string
1478814829
rbmCardContent_media:
1478914830
allOf:
1479014831
- $ref: "#/components/schemas/rbmMessageContentFile"

bandwidth.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5956,6 +5956,8 @@ components:
59565956
$ref: '#/components/schemas/helpMessageResponse'
59575957
ageGatedContent:
59585958
$ref: '#/components/schemas/ageGatedContent'
5959+
cvToken:
5960+
$ref: '#/components/schemas/cvToken'
59595961
verificationUpdateRequest:
59605962
type: object
59615963
required:
@@ -6005,6 +6007,8 @@ components:
60056007
$ref: '#/components/schemas/helpMessageResponse'
60066008
ageGatedContent:
60076009
$ref: '#/components/schemas/ageGatedContent'
6010+
cvToken:
6011+
$ref: '#/components/schemas/cvToken'
60086012
tfvBasicAuthentication:
60096013
type: object
60106014
properties:
@@ -6456,6 +6460,8 @@ components:
64566460
$ref: '#/components/schemas/blocked'
64576461
blockedReason:
64586462
$ref: '#/components/schemas/blockedReason'
6463+
cvToken:
6464+
$ref: '#/components/schemas/cvToken'
64596465
tfvSubmissionInfo:
64606466
type: object
64616467
properties:
@@ -6520,6 +6526,18 @@ components:
65206526
nullable: true
65216527
pattern: ^[ -~]{16,64}$
65226528
type: string
6529+
cvToken:
6530+
type: string
6531+
description: >-
6532+
The token provided by Campaign Verify to validate your political use
6533+
case. Only required for 527 political organizations. If you are not a
6534+
527 political organization, this field should be omitted. If you pass an
6535+
empty string, it will be passed along and potentially rejected.
6536+
minLength: 0
6537+
maxLength: 500
6538+
nullable: true
6539+
example: >-
6540+
cv.user123|sess456|mno|tfree|read_write|X7yZ9aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVw
65236541
responses:
65246542
createMessageResponse:
65256543
description: Accepted

docs/TfvStatus.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
|**submission** | [**TfvSubmissionInfo**](TfvSubmissionInfo.md) | | [optional] |
1818
|**blocked** | **Boolean** | Whether a Toll-Free Verification is blocked. This attribute will only be defined when the number is blocked. | [optional] |
1919
|**blockedReason** | **String** | The reason why the Toll-Free Verification is blocked. This attribute will only be defined when the number is blocked. | [optional] |
20+
|**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] |
2021

2122

2223

docs/VerificationRequest.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
|**businessEntityType** | **BusinessEntityTypeEnum** | | [optional] |
2626
|**helpMessageResponse** | **String** | A message that gets sent to users requesting help. | [optional] |
2727
|**ageGatedContent** | **Boolean** | Indicates whether the content is age-gated. | [optional] |
28+
|**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] |
2829

2930

3031

docs/VerificationUpdateRequest.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
|**businessEntityType** | **BusinessEntityTypeEnum** | | [optional] |
2525
|**helpMessageResponse** | **String** | A message that gets sent to users requesting help. | [optional] |
2626
|**ageGatedContent** | **Boolean** | Indicates whether the content is age-gated. | [optional] |
27+
|**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] |
2728

2829

2930

src/main/java/com/bandwidth/sdk/model/TfvStatus.java

Lines changed: 44 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
import java.time.OffsetDateTime;
2727
import java.util.Arrays;
2828
import java.util.UUID;
29+
import org.openapitools.jackson.nullable.JsonNullable;
2930

3031
import com.google.gson.Gson;
3132
import com.google.gson.GsonBuilder;
@@ -106,6 +107,11 @@ public class TfvStatus {
106107
@javax.annotation.Nullable
107108
private String blockedReason;
108109

110+
public static final String SERIALIZED_NAME_CV_TOKEN = "cvToken";
111+
@SerializedName(SERIALIZED_NAME_CV_TOKEN)
112+
@javax.annotation.Nullable
113+
private String cvToken;
114+
109115
public TfvStatus() {
110116
}
111117

@@ -298,6 +304,25 @@ public void setBlockedReason(@javax.annotation.Nullable String blockedReason) {
298304
this.blockedReason = blockedReason;
299305
}
300306

307+
308+
public TfvStatus cvToken(@javax.annotation.Nullable String cvToken) {
309+
this.cvToken = cvToken;
310+
return this;
311+
}
312+
313+
/**
314+
* 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.
315+
* @return cvToken
316+
*/
317+
@javax.annotation.Nullable
318+
public String getCvToken() {
319+
return cvToken;
320+
}
321+
322+
public void setCvToken(@javax.annotation.Nullable String cvToken) {
323+
this.cvToken = cvToken;
324+
}
325+
301326
/**
302327
* A container for additional, undeclared properties.
303328
* This is a holder for any undeclared properties as specified with
@@ -362,13 +387,25 @@ public boolean equals(Object o) {
362387
Objects.equals(this.modifiedDateTime, tfvStatus.modifiedDateTime) &&
363388
Objects.equals(this.submission, tfvStatus.submission) &&
364389
Objects.equals(this.blocked, tfvStatus.blocked) &&
365-
Objects.equals(this.blockedReason, tfvStatus.blockedReason)&&
390+
Objects.equals(this.blockedReason, tfvStatus.blockedReason) &&
391+
Objects.equals(this.cvToken, tfvStatus.cvToken)&&
366392
Objects.equals(this.additionalProperties, tfvStatus.additionalProperties);
367393
}
368394

395+
private static <T> boolean equalsNullable(JsonNullable<T> a, JsonNullable<T> b) {
396+
return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get()));
397+
}
398+
369399
@Override
370400
public int hashCode() {
371-
return Objects.hash(phoneNumber, status, internalTicketNumber, declineReasonDescription, resubmitAllowed, createdDateTime, modifiedDateTime, submission, blocked, blockedReason, additionalProperties);
401+
return Objects.hash(phoneNumber, status, internalTicketNumber, declineReasonDescription, resubmitAllowed, createdDateTime, modifiedDateTime, submission, blocked, blockedReason, cvToken, additionalProperties);
402+
}
403+
404+
private static <T> int hashCodeNullable(JsonNullable<T> a) {
405+
if (a == null) {
406+
return 1;
407+
}
408+
return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31;
372409
}
373410

374411
@Override
@@ -385,6 +422,7 @@ public String toString() {
385422
sb.append(" submission: ").append(toIndentedString(submission)).append("\n");
386423
sb.append(" blocked: ").append(toIndentedString(blocked)).append("\n");
387424
sb.append(" blockedReason: ").append(toIndentedString(blockedReason)).append("\n");
425+
sb.append(" cvToken: ").append(toIndentedString(cvToken)).append("\n");
388426
sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n");
389427
sb.append("}");
390428
return sb.toString();
@@ -407,7 +445,7 @@ private String toIndentedString(Object o) {
407445

408446
static {
409447
// a set of all properties/fields (JSON key names)
410-
openapiFields = new HashSet<String>(Arrays.asList("phoneNumber", "status", "internalTicketNumber", "declineReasonDescription", "resubmitAllowed", "createdDateTime", "modifiedDateTime", "submission", "blocked", "blockedReason"));
448+
openapiFields = new HashSet<String>(Arrays.asList("phoneNumber", "status", "internalTicketNumber", "declineReasonDescription", "resubmitAllowed", "createdDateTime", "modifiedDateTime", "submission", "blocked", "blockedReason", "cvToken"));
411449

412450
// a set of required properties/fields (JSON key names)
413451
openapiRequiredFields = new HashSet<String>(0);
@@ -446,6 +484,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
446484
if ((jsonObj.get("blockedReason") != null && !jsonObj.get("blockedReason").isJsonNull()) && !jsonObj.get("blockedReason").isJsonPrimitive()) {
447485
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()));
448486
}
487+
if ((jsonObj.get("cvToken") != null && !jsonObj.get("cvToken").isJsonNull()) && !jsonObj.get("cvToken").isJsonPrimitive()) {
488+
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()));
489+
}
449490
}
450491

451492
public static class CustomTypeAdapterFactory implements TypeAdapterFactory {

0 commit comments

Comments
 (0)