![JAR search and dependency download from the Maven repository](/logo.png)
de.adorsys.psd2.model.TppMessage201PaymentInitiation Maven / Gradle / Ivy
/*
* Copyright 2018-2021 adorsys GmbH & Co KG
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package de.adorsys.psd2.model;
import com.fasterxml.jackson.annotation.JsonProperty;
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.Objects;
/**
* TppMessage201PaymentInitiation
*/
@Validated
@javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.SpringCodegen", date = "2021-05-24T13:41:46.273636+03:00[Europe/Kiev]")
public class TppMessage201PaymentInitiation {
@JsonProperty("category")
private TppMessageCategory category = null;
@JsonProperty("code")
private MessageCode201PaymentInitiation code = null;
@JsonProperty("path")
private String path = null;
@JsonProperty("text")
private String text = null;
public TppMessage201PaymentInitiation category(TppMessageCategory category) {
this.category = category;
return this;
}
/**
* Get category
* @return category
**/
@ApiModelProperty(required = true, value = "")
@NotNull
@Valid
@JsonProperty("category")
public TppMessageCategory getCategory() {
return category;
}
public void setCategory(TppMessageCategory category) {
this.category = category;
}
public TppMessage201PaymentInitiation code(MessageCode201PaymentInitiation code) {
this.code = code;
return this;
}
/**
* Get code
* @return code
**/
@ApiModelProperty(required = true, value = "")
@NotNull
@Valid
@JsonProperty("code")
public MessageCode201PaymentInitiation getCode() {
return code;
}
public void setCode(MessageCode201PaymentInitiation code) {
this.code = code;
}
public TppMessage201PaymentInitiation path(String path) {
this.path = path;
return this;
}
/**
* Get path
* @return path
**/
@ApiModelProperty(value = "")
@JsonProperty("path")
public String getPath() {
return path;
}
public void setPath(String path) {
this.path = path;
}
public TppMessage201PaymentInitiation text(String text) {
this.text = text;
return this;
}
/**
* Get text
* @return text
**/
@ApiModelProperty(value = "")
@Size(max=500)
@JsonProperty("text")
public String getText() {
return text;
}
public void setText(String text) {
this.text = text;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
} TppMessage201PaymentInitiation tppMessage201PaymentInitiation = (TppMessage201PaymentInitiation) o;
return Objects.equals(this.category, tppMessage201PaymentInitiation.category) &&
Objects.equals(this.code, tppMessage201PaymentInitiation.code) &&
Objects.equals(this.path, tppMessage201PaymentInitiation.path) &&
Objects.equals(this.text, tppMessage201PaymentInitiation.text);
}
@Override
public int hashCode() {
return Objects.hash(category, code, path, text);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class TppMessage201PaymentInitiation {\n");
sb.append(" category: ").append(toIndentedString(category)).append("\n");
sb.append(" code: ").append(toIndentedString(code)).append("\n");
sb.append(" path: ").append(toIndentedString(path)).append("\n");
sb.append(" text: ").append(toIndentedString(text)).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