
de.adorsys.psd2.model.StartScaprocessResponse Maven / Gradle / Ivy
package de.adorsys.psd2.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.validation.annotation.Validated;
import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.Objects;
/**
* Body of the JSON response for a Start SCA authorisation request.
*/
@ApiModel(description = "Body of the JSON response for a Start SCA authorisation request.")
@Validated
@javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.SpringCodegen", date = "2021-07-05T14:13:22.859201+03:00[Europe/Kiev]")
public class StartScaprocessResponse {
@JsonProperty("scaStatus")
private ScaStatus scaStatus = null;
@JsonProperty("authorisationId")
private String authorisationId = null;
@JsonProperty("scaMethods")
private ScaMethods scaMethods = null;
@JsonProperty("chosenScaMethod")
private ChosenScaMethod chosenScaMethod = null;
@JsonProperty("challengeData")
private ChallengeData challengeData = null;
@JsonProperty("_links")
private Map _links = null;
@JsonProperty("psuMessage")
private String psuMessage = null;
@JsonProperty("tppMessage")
@Valid
private List tppMessage = null;
public StartScaprocessResponse scaStatus(ScaStatus scaStatus) {
this.scaStatus = scaStatus;
return this;
}
/**
* Get scaStatus
* @return scaStatus
**/
@ApiModelProperty(required = true, value = "")
@NotNull
@Valid
@JsonProperty("scaStatus")
public ScaStatus getScaStatus() {
return scaStatus;
}
public void setScaStatus(ScaStatus scaStatus) {
this.scaStatus = scaStatus;
}
public StartScaprocessResponse authorisationId(String authorisationId) {
this.authorisationId = authorisationId;
return this;
}
/**
* Get authorisationId
* @return authorisationId
**/
@ApiModelProperty(required = true, value = "")
@NotNull
@JsonProperty("authorisationId")
public String getAuthorisationId() {
return authorisationId;
}
public void setAuthorisationId(String authorisationId) {
this.authorisationId = authorisationId;
}
public StartScaprocessResponse scaMethods(ScaMethods scaMethods) {
this.scaMethods = scaMethods;
return this;
}
/**
* Get scaMethods
* @return scaMethods
**/
@ApiModelProperty(value = "")
@Valid
@JsonProperty("scaMethods")
public ScaMethods getScaMethods() {
return scaMethods;
}
public void setScaMethods(ScaMethods scaMethods) {
this.scaMethods = scaMethods;
}
public StartScaprocessResponse chosenScaMethod(ChosenScaMethod chosenScaMethod) {
this.chosenScaMethod = chosenScaMethod;
return this;
}
/**
* Get chosenScaMethod
* @return chosenScaMethod
**/
@ApiModelProperty(value = "")
@Valid
@JsonProperty("chosenScaMethod")
public ChosenScaMethod getChosenScaMethod() {
return chosenScaMethod;
}
public void setChosenScaMethod(ChosenScaMethod chosenScaMethod) {
this.chosenScaMethod = chosenScaMethod;
}
public StartScaprocessResponse challengeData(ChallengeData challengeData) {
this.challengeData = challengeData;
return this;
}
/**
* Get challengeData
* @return challengeData
**/
@ApiModelProperty(value = "")
@Valid
@JsonProperty("challengeData")
public ChallengeData getChallengeData() {
return challengeData;
}
public void setChallengeData(ChallengeData challengeData) {
this.challengeData = challengeData;
}
public StartScaprocessResponse _links(Map _links) {
this._links = _links;
return this;
}
/**
* Get _links
* @return _links
**/
@ApiModelProperty(required = true, value = "")
@NotNull
@Valid
@JsonProperty("_links")
public Map getLinks() {
return _links;
}
public void setLinks(Map _links) {
this._links = _links;
}
public StartScaprocessResponse psuMessage(String psuMessage) {
this.psuMessage = psuMessage;
return this;
}
/**
* Get psuMessage
* @return psuMessage
**/
@ApiModelProperty(value = "")
@Size(max=500)
@JsonProperty("psuMessage")
public String getPsuMessage() {
return psuMessage;
}
public void setPsuMessage(String psuMessage) {
this.psuMessage = psuMessage;
}
public StartScaprocessResponse tppMessage(List tppMessage) {
this.tppMessage = tppMessage;
return this;
}
public StartScaprocessResponse addTppMessageItem(TppMessageGeneric tppMessageItem) {
if (this.tppMessage == null) {
this.tppMessage = new ArrayList<>();
}
this.tppMessage.add(tppMessageItem);
return this;
}
/**
* Messages to the TPP on operational issues.
* @return tppMessage
**/
@ApiModelProperty(value = "Messages to the TPP on operational issues.")
@Valid
@JsonProperty("tppMessage")
public List getTppMessage() {
return tppMessage;
}
public void setTppMessage(List tppMessage) {
this.tppMessage = tppMessage;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
} StartScaprocessResponse startScaprocessResponse = (StartScaprocessResponse) o;
return Objects.equals(this.scaStatus, startScaprocessResponse.scaStatus) &&
Objects.equals(this.authorisationId, startScaprocessResponse.authorisationId) &&
Objects.equals(this.scaMethods, startScaprocessResponse.scaMethods) &&
Objects.equals(this.chosenScaMethod, startScaprocessResponse.chosenScaMethod) &&
Objects.equals(this.challengeData, startScaprocessResponse.challengeData) &&
Objects.equals(this._links, startScaprocessResponse._links) &&
Objects.equals(this.psuMessage, startScaprocessResponse.psuMessage) &&
Objects.equals(this.tppMessage, startScaprocessResponse.tppMessage);
}
@Override
public int hashCode() {
return Objects.hash(scaStatus, authorisationId, scaMethods, chosenScaMethod, challengeData, _links, psuMessage, tppMessage);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class StartScaprocessResponse {\n");
sb.append(" scaStatus: ").append(toIndentedString(scaStatus)).append("\n");
sb.append(" authorisationId: ").append(toIndentedString(authorisationId)).append("\n");
sb.append(" scaMethods: ").append(toIndentedString(scaMethods)).append("\n");
sb.append(" chosenScaMethod: ").append(toIndentedString(chosenScaMethod)).append("\n");
sb.append(" challengeData: ").append(toIndentedString(challengeData)).append("\n");
sb.append(" _links: ").append(toIndentedString(_links)).append("\n");
sb.append(" psuMessage: ").append(toIndentedString(psuMessage)).append("\n");
sb.append(" tppMessage: ").append(toIndentedString(tppMessage)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy