Skip to content

Commit

Permalink
refactor (Verifications): Synch with latest OAS specs
Browse files Browse the repository at this point in the history
  • Loading branch information
JPPortier committed Jun 26, 2024
1 parent a9b3b84 commit b5ad7e1
Show file tree
Hide file tree
Showing 8 changed files with 25 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public VerificationsStartApi(
* @param verificationStartRequestInternal (required)
* @param acceptLanguage In SMS Verification, value of
* [Accept-Language](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept-Language)
* header is used to determine the languge of an SMS message. (optional)
* header is used to determine the language of an SMS message. (optional)
* @return VerificationStartResponseInternal
* @throws ApiException if fails to make API call
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,42 +11,56 @@
*/
public class VerificationStatusReason extends EnumDynamic<String, VerificationStatusReason> {

/** Fraudulent activity. */
public static final VerificationStatusReason FRAUD = new VerificationStatusReason("Fraud");

/** Not enough credit in dashboard account. */
public static final VerificationStatusReason NOT_ENOUGH_CREDIT =
new VerificationStatusReason("Not enough credit");

/** Blocked number. */
public static final VerificationStatusReason BLOCKED = new VerificationStatusReason("Blocked");

/** Callback response denied the verification. */
public static final VerificationStatusReason DENIED_BY_CALLBACK =
new VerificationStatusReason("Denied by callback");

/** Callback was invalid. */
public static final VerificationStatusReason INVALID_CALLBACK =
new VerificationStatusReason("Invalid callback");

/** Internal server error. */
public static final VerificationStatusReason INTERNAL_ERROR =
new VerificationStatusReason("Internal error");

/** Verification destinaton denied. */
public static final VerificationStatusReason DESTINATION_DENIED =
new VerificationStatusReason("Destination denied");

/** Network error or destination number is otherwise unreachable. */
public static final VerificationStatusReason NETWORK_ERROR_OR_NUMBER_UNREACHABLE =
new VerificationStatusReason("Network error or number unreachable");

/** Pending failure. */
public static final VerificationStatusReason FAILED_PENDING =
new VerificationStatusReason("Failed pending");

/** Could not deliver SMS. */
public static final VerificationStatusReason SMS_DELIVERY_FAILURE =
new VerificationStatusReason("SMS delivery failure");

/** CLI is invalid. */
public static final VerificationStatusReason INVALID_CLI =
new VerificationStatusReason("Invalid CLI");

/** Input code is invalid. */
public static final VerificationStatusReason INVALID_CODE =
new VerificationStatusReason("Invalid code");

/** Verification request has expired. */
public static final VerificationStatusReason EXPIRED = new VerificationStatusReason("Expired");

/** Phone call ended without entering code. */
public static final VerificationStatusReason HUNG_UP_WITHOUT_ENTERING_VALID_CODE =
new VerificationStatusReason("Hung up without entering valid code");

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,9 @@ public static String valueOf(CodeTypeEnum e) {
String getTemplate();

/**
* In SMS Verification, value of
* [Accept-Language](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept-Language)
* header is used to determine the languge of an SMS message.
* In SMS Verification, value of <a
* href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept-Language">Accept-Language</a>
* header is used to determine the language of an SMS message.
*
* @return acceptLanguage
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,9 @@ public static String valueOf(CodeTypeEnum e) {
String getTemplate();

/**
* In SMS Verification, value of
* [Accept-Language](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept-Language)
* header is used to determine the languge of an SMS message.
* In SMS Verification, value of <a
* href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept-Language">Accept-Language</a>
* header is used to determine the language of an SMS message.
*
* @return acceptLanguage
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public VerificationStartResponseDataContent getSeamless() {
}

@JsonProperty(JSON_PROPERTY_SEAMLESS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public OptionalValue<VerificationStartResponseDataContent> seamless() {
return seamless;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public VerificationEventResponseAction getAction() {
}

@JsonProperty(JSON_PROPERTY_ACTION)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public OptionalValue<VerificationEventResponseAction> action() {
return action;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public VerificationEventResponseAction getAction() {
}

@JsonProperty(JSON_PROPERTY_ACTION)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public OptionalValue<VerificationEventResponseAction> action() {
return action;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public VerificationEventResponseAction getAction() {
}

@JsonProperty(JSON_PROPERTY_ACTION)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public OptionalValue<VerificationEventResponseAction> action() {
return action;
}
Expand Down

0 comments on commit b5ad7e1

Please sign in to comment.