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

Model.PtsV2PaymentsReversalsPost201ResponseAuthorizationInformation Maven / Gradle / Ivy

/*
 * CyberSource Merged Spec
 * All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html
 *
 * OpenAPI spec version: 0.0.1
 * 
 *
 * 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 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;

/**
 * PtsV2PaymentsReversalsPost201ResponseAuthorizationInformation
 */

public class PtsV2PaymentsReversalsPost201ResponseAuthorizationInformation {
  @SerializedName("approvalCode")
  private String approvalCode = null;

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

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

  public PtsV2PaymentsReversalsPost201ResponseAuthorizationInformation approvalCode(String approvalCode) {
    this.approvalCode = approvalCode;
    return this;
  }

   /**
   * The authorization code returned by the processor.
   * @return approvalCode
  **/
  @ApiModelProperty(value = "The authorization code returned by the processor.")
  public String getApprovalCode() {
    return approvalCode;
  }

  public void setApprovalCode(String approvalCode) {
    this.approvalCode = approvalCode;
  }

  public PtsV2PaymentsReversalsPost201ResponseAuthorizationInformation reasonCode(String reasonCode) {
    this.reasonCode = reasonCode;
    return this;
  }

   /**
   * Reply flag for the original transaction.
   * @return reasonCode
  **/
  @ApiModelProperty(value = "Reply flag for the original transaction.")
  public String getReasonCode() {
    return reasonCode;
  }

  public void setReasonCode(String reasonCode) {
    this.reasonCode = reasonCode;
  }

  public PtsV2PaymentsReversalsPost201ResponseAuthorizationInformation reversalSubmitted(String reversalSubmitted) {
    this.reversalSubmitted = reversalSubmitted;
    return this;
  }

   /**
   * Flag indicating whether a full authorization reversal was successfully submitted.  Possible values: - Y: The authorization reversal was successfully submitted. - N: The authorization reversal was not successfully submitted. You must send a credit request for a refund.  This field is supported only for **FDC Nashville Global**. 
   * @return reversalSubmitted
  **/
  @ApiModelProperty(value = "Flag indicating whether a full authorization reversal was successfully submitted.  Possible values: - Y: The authorization reversal was successfully submitted. - N: The authorization reversal was not successfully submitted. You must send a credit request for a refund.  This field is supported only for **FDC Nashville Global**. ")
  public String getReversalSubmitted() {
    return reversalSubmitted;
  }

  public void setReversalSubmitted(String reversalSubmitted) {
    this.reversalSubmitted = reversalSubmitted;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    PtsV2PaymentsReversalsPost201ResponseAuthorizationInformation ptsV2PaymentsReversalsPost201ResponseAuthorizationInformation = (PtsV2PaymentsReversalsPost201ResponseAuthorizationInformation) o;
    return Objects.equals(this.approvalCode, ptsV2PaymentsReversalsPost201ResponseAuthorizationInformation.approvalCode) &&
        Objects.equals(this.reasonCode, ptsV2PaymentsReversalsPost201ResponseAuthorizationInformation.reasonCode) &&
        Objects.equals(this.reversalSubmitted, ptsV2PaymentsReversalsPost201ResponseAuthorizationInformation.reversalSubmitted);
  }

  @Override
  public int hashCode() {
    return Objects.hash(approvalCode, reasonCode, reversalSubmitted);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class PtsV2PaymentsReversalsPost201ResponseAuthorizationInformation {\n");
    
    sb.append("    approvalCode: ").append(toIndentedString(approvalCode)).append("\n");
    sb.append("    reasonCode: ").append(toIndentedString(reasonCode)).append("\n");
    sb.append("    reversalSubmitted: ").append(toIndentedString(reversalSubmitted)).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 - 2025 Weber Informatics LLC | Privacy Policy