Skip to content

Commit

Permalink
Restore image in request body and make it optional
Browse files Browse the repository at this point in the history
  • Loading branch information
AfraHussaindeen committed Nov 23, 2024
1 parent 4073fd0 commit e9b7e9e
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ public class IdVProviderRequest {
private String type;
private String name;
private String description;
private String image;
private Boolean isEnabled;
private List<VerificationClaim> claims = null;

Expand Down Expand Up @@ -103,6 +104,24 @@ public void setDescription(String description) {
this.description = description;
}

/**
**/
public IdVProviderRequest image(String image) {

this.image = image;
return this;
}

@ApiModelProperty(example = "onfido-logo-url", value = "")
@JsonProperty("image")
@Valid
public String getImage() {
return image;
}
public void setImage(String image) {
this.image = image;
}

/**
**/
public IdVProviderRequest isEnabled(Boolean isEnabled) {
Expand Down Expand Up @@ -190,14 +209,15 @@ public boolean equals(java.lang.Object o) {
return Objects.equals(this.type, idVProviderRequest.type) &&
Objects.equals(this.name, idVProviderRequest.name) &&
Objects.equals(this.description, idVProviderRequest.description) &&
Objects.equals(this.image, idVProviderRequest.image) &&
Objects.equals(this.isEnabled, idVProviderRequest.isEnabled) &&
Objects.equals(this.claims, idVProviderRequest.claims) &&
Objects.equals(this.configProperties, idVProviderRequest.configProperties);
}

@Override
public int hashCode() {
return Objects.hash(type, name, description, isEnabled, claims, configProperties);
return Objects.hash(type, name, description, image, isEnabled, claims, configProperties);
}

@Override
Expand All @@ -209,6 +229,7 @@ public String toString() {
sb.append(" type: ").append(toIndentedString(type)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" description: ").append(toIndentedString(description)).append("\n");
sb.append(" image: ").append(toIndentedString(image)).append("\n");
sb.append(" isEnabled: ").append(toIndentedString(isEnabled)).append("\n");
sb.append(" claims: ").append(toIndentedString(claims)).append("\n");
sb.append(" configProperties: ").append(toIndentedString(configProperties)).append("\n");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -409,6 +409,9 @@ components:
description:
type: string
example: identity verification provider
image:
type: string
example: "onfido-logo-url"
isEnabled:
type: boolean
example: true
Expand Down

0 comments on commit e9b7e9e

Please sign in to comment.