All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.swagger.client.model.PaymentExecutionResponse Maven / Gradle / Ivy

There is a newer version: 5.3.0
Show newest version
/*
 * finAPI RESTful Services
 * finAPI RESTful Services
 *
 * OpenAPI spec version: v1.64.0
 * 
 *
 * NOTE: This class is auto generated by the swagger code generator program.
 * https://github.com/swagger-api/swagger-codegen.git
 * Do not edit the class manually.
 */


package io.swagger.client.model;

import java.util.Objects;
import java.util.Arrays;
import com.google.gson.TypeAdapter;
import com.google.gson.annotations.JsonAdapter;
import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;

/**
 * Bank server's response to Money Transfer / Direct Debit execution
 */
@ApiModel(description = "Bank server's response to Money Transfer / Direct Debit execution")
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-02-05T12:19:21.458Z")
public class PaymentExecutionResponse {
  @SerializedName("successMessage")
  private String successMessage = null;

  @SerializedName("warnMessage")
  private String warnMessage = null;

  @SerializedName("paymentId")
  private Long paymentId = null;

  public PaymentExecutionResponse successMessage(String successMessage) {
    this.successMessage = successMessage;
    return this;
  }

   /**
   * Technical message from the bank server, confirming the success of the request. Typically, you would not want to present this message to the user. Note that this field may not be set. However if it is not set, it does not necessarily mean that there was an error in processing the request.
   * @return successMessage
  **/
  @ApiModelProperty(example = "Auftrag ausgeführt.", value = "Technical message from the bank server, confirming the success of the request. Typically, you would not want to present this message to the user. Note that this field may not be set. However if it is not set, it does not necessarily mean that there was an error in processing the request.")
  public String getSuccessMessage() {
    return successMessage;
  }

  public void setSuccessMessage(String successMessage) {
    this.successMessage = successMessage;
  }

  public PaymentExecutionResponse warnMessage(String warnMessage) {
    this.warnMessage = warnMessage;
    return this;
  }

   /**
   * In some cases, a bank server may accept the requested order, but return a warn message. This message may be of technical nature, but could also be of interest to the user.
   * @return warnMessage
  **/
  @ApiModelProperty(example = "Auftrag konnte nicht ausgeführt werden.", value = "In some cases, a bank server may accept the requested order, but return a warn message. This message may be of technical nature, but could also be of interest to the user.")
  public String getWarnMessage() {
    return warnMessage;
  }

  public void setWarnMessage(String warnMessage) {
    this.warnMessage = warnMessage;
  }

  public PaymentExecutionResponse paymentId(Long paymentId) {
    this.paymentId = paymentId;
    return this;
  }

   /**
   * Payment identifier. Can be used to retrieve the status of the payment (see 'Get payments' service).
   * @return paymentId
  **/
  @ApiModelProperty(example = "1", required = true, value = "Payment identifier. Can be used to retrieve the status of the payment (see 'Get payments' service).")
  public Long getPaymentId() {
    return paymentId;
  }

  public void setPaymentId(Long paymentId) {
    this.paymentId = paymentId;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    PaymentExecutionResponse paymentExecutionResponse = (PaymentExecutionResponse) o;
    return Objects.equals(this.successMessage, paymentExecutionResponse.successMessage) &&
        Objects.equals(this.warnMessage, paymentExecutionResponse.warnMessage) &&
        Objects.equals(this.paymentId, paymentExecutionResponse.paymentId);
  }

  @Override
  public int hashCode() {
    return Objects.hash(successMessage, warnMessage, paymentId);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class PaymentExecutionResponse {\n");
    
    sb.append("    successMessage: ").append(toIndentedString(successMessage)).append("\n");
    sb.append("    warnMessage: ").append(toIndentedString(warnMessage)).append("\n");
    sb.append("    paymentId: ").append(toIndentedString(paymentId)).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(java.lang.Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }

}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy