Skip to content

Commit

Permalink
Remove support for saving idvp logo url per idvp instance.
Browse files Browse the repository at this point in the history
  • Loading branch information
AfraHussaindeen committed Oct 28, 2024
1 parent 447d195 commit ab9ba36
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 28 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ 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 @@ -104,24 +103,6 @@ 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 @@ -209,15 +190,14 @@ 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, image, isEnabled, claims, configProperties);
return Objects.hash(type, name, description, isEnabled, claims, configProperties);
}

@Override
Expand All @@ -229,7 +209,6 @@ 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 @@ -234,7 +234,6 @@ private IdVProviderResponse getIdVProviderResponse(IdVProvider idVProvider) {
idvProviderResponse.setName(idVProvider.getIdVProviderName());
idvProviderResponse.setIsEnabled(idVProvider.isEnabled());
idvProviderResponse.setDescription(idVProvider.getIdVProviderDescription());
idvProviderResponse.setImage(idVProvider.getImageUrl());

if (idVProvider.getIdVConfigProperties() != null) {
List<ConfigProperty> configProperties =
Expand All @@ -256,7 +255,6 @@ private IdVProvider createIdVProvider(IdVProviderRequest idVProviderRequest) {
idVProvider.setIdVProviderName(idVProviderRequest.getName());
idVProvider.setIdVProviderDescription(idVProviderRequest.getDescription());
idVProvider.setEnabled(idVProviderRequest.getIsEnabled());
idVProvider.setImageUrl(idVProviderRequest.getImage());
if (idVProviderRequest.getClaims() != null) {
idVProvider.setClaimMappings(getClaimMap(idVProviderRequest.getClaims()));
}
Expand All @@ -277,7 +275,6 @@ private IdVProvider createUpdatedIdVProvider(IdVProvider oldIdVProvider,
idVProvider.setIdVProviderName(idVProviderRequest.getName());
idVProvider.setIdVProviderDescription(idVProviderRequest.getDescription());
idVProvider.setEnabled(idVProviderRequest.getIsEnabled());
idVProvider.setImageUrl(idVProviderRequest.getImage());
if (idVProviderRequest.getClaims() != null) {
idVProvider.setClaimMappings(getClaimMap(idVProviderRequest.getClaims()));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -409,9 +409,6 @@ 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 ab9ba36

Please sign in to comment.