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

Model.PtsV2PaymentsPost201Response1ProcessorInformation 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 Model.PtsV2PaymentsPost201Response1ProcessorInformationAvs;
import Model.PtsV2PaymentsPost201ResponseProcessorInformationSellerProtection;
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;

/**
 * PtsV2PaymentsPost201Response1ProcessorInformation
 */

public class PtsV2PaymentsPost201Response1ProcessorInformation {
  @SerializedName("transactionId")
  private String transactionId = null;

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

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

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

  @SerializedName("sellerProtection")
  private PtsV2PaymentsPost201ResponseProcessorInformationSellerProtection sellerProtection = null;

  @SerializedName("avs")
  private PtsV2PaymentsPost201Response1ProcessorInformationAvs avs = null;

  public PtsV2PaymentsPost201Response1ProcessorInformation transactionId(String transactionId) {
    this.transactionId = transactionId;
    return this;
  }

   /**
   * Network transaction identifier (TID). You can use this value to identify a specific transaction when you are discussing the transaction with your processor. Not all processors provide this value.  Returned by the authorization service.  #### PIN debit Transaction identifier generated by the processor.  Returned by PIN debit credit.  #### GPX Processor transaction ID.  #### Cielo For Cielo, this value is the non-sequential unit (NSU) and is supported for all transactions. The value is generated by Cielo or the issuing bank.  #### Comercio Latino For Comercio Latino, this value is the proof of sale or non-sequential unit (NSU) number generated by the acquirers Cielo and Rede, or the issuing bank.  #### CyberSource through VisaNet and GPN For details about this value for CyberSource through VisaNet and GPN, see \"processorInformation.networkTransactionId\" in [REST API Fields](https://developer.cybersource.com/content/dam/docs/cybs/en-us/apifields/reference/all/rest/api-fields.pdf)  #### Moneris This value identifies the transaction on a host system. It contains the following information: - Terminal used to process the transaction - Shift during which the transaction took place - Batch number - Transaction number within the batch You must store this value. If you give the customer a receipt, display this value on the receipt.  **Example** For the value 66012345001069003: - Terminal ID = 66012345 - Shift number = 001 - Batch number = 069 - Transaction number = 003 
   * @return transactionId
  **/
  @ApiModelProperty(value = "Network transaction identifier (TID). You can use this value to identify a specific transaction when you are discussing the transaction with your processor. Not all processors provide this value.  Returned by the authorization service.  #### PIN debit Transaction identifier generated by the processor.  Returned by PIN debit credit.  #### GPX Processor transaction ID.  #### Cielo For Cielo, this value is the non-sequential unit (NSU) and is supported for all transactions. The value is generated by Cielo or the issuing bank.  #### Comercio Latino For Comercio Latino, this value is the proof of sale or non-sequential unit (NSU) number generated by the acquirers Cielo and Rede, or the issuing bank.  #### CyberSource through VisaNet and GPN For details about this value for CyberSource through VisaNet and GPN, see \"processorInformation.networkTransactionId\" in [REST API Fields](https://developer.cybersource.com/content/dam/docs/cybs/en-us/apifields/reference/all/rest/api-fields.pdf)  #### Moneris This value identifies the transaction on a host system. It contains the following information: - Terminal used to process the transaction - Shift during which the transaction took place - Batch number - Transaction number within the batch You must store this value. If you give the customer a receipt, display this value on the receipt.  **Example** For the value 66012345001069003: - Terminal ID = 66012345 - Shift number = 001 - Batch number = 069 - Transaction number = 003 ")
  public String getTransactionId() {
    return transactionId;
  }

  public void setTransactionId(String transactionId) {
    this.transactionId = transactionId;
  }

  public PtsV2PaymentsPost201Response1ProcessorInformation tradeNumber(String tradeNumber) {
    this.tradeNumber = tradeNumber;
    return this;
  }

   /**
   * The description for this field is not available.
   * @return tradeNumber
  **/
  @ApiModelProperty(value = "The description for this field is not available.")
  public String getTradeNumber() {
    return tradeNumber;
  }

  public void setTradeNumber(String tradeNumber) {
    this.tradeNumber = tradeNumber;
  }

  public PtsV2PaymentsPost201Response1ProcessorInformation rawResponse(String rawResponse) {
    this.rawResponse = rawResponse;
    return this;
  }

   /**
   * This field is set to the value of failure reason returned by the processor. 
   * @return rawResponse
  **/
  @ApiModelProperty(value = "This field is set to the value of failure reason returned by the processor. ")
  public String getRawResponse() {
    return rawResponse;
  }

  public void setRawResponse(String rawResponse) {
    this.rawResponse = rawResponse;
  }

  public PtsV2PaymentsPost201Response1ProcessorInformation responseCode(String responseCode) {
    this.responseCode = responseCode;
    return this;
  }

   /**
   * This field is set to the value of response code returned by the processor. 
   * @return responseCode
  **/
  @ApiModelProperty(value = "This field is set to the value of response code returned by the processor. ")
  public String getResponseCode() {
    return responseCode;
  }

  public void setResponseCode(String responseCode) {
    this.responseCode = responseCode;
  }

  public PtsV2PaymentsPost201Response1ProcessorInformation sellerProtection(PtsV2PaymentsPost201ResponseProcessorInformationSellerProtection sellerProtection) {
    this.sellerProtection = sellerProtection;
    return this;
  }

   /**
   * Get sellerProtection
   * @return sellerProtection
  **/
  @ApiModelProperty(value = "")
  public PtsV2PaymentsPost201ResponseProcessorInformationSellerProtection getSellerProtection() {
    return sellerProtection;
  }

  public void setSellerProtection(PtsV2PaymentsPost201ResponseProcessorInformationSellerProtection sellerProtection) {
    this.sellerProtection = sellerProtection;
  }

  public PtsV2PaymentsPost201Response1ProcessorInformation avs(PtsV2PaymentsPost201Response1ProcessorInformationAvs avs) {
    this.avs = avs;
    return this;
  }

   /**
   * Get avs
   * @return avs
  **/
  @ApiModelProperty(value = "")
  public PtsV2PaymentsPost201Response1ProcessorInformationAvs getAvs() {
    return avs;
  }

  public void setAvs(PtsV2PaymentsPost201Response1ProcessorInformationAvs avs) {
    this.avs = avs;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    PtsV2PaymentsPost201Response1ProcessorInformation ptsV2PaymentsPost201Response1ProcessorInformation = (PtsV2PaymentsPost201Response1ProcessorInformation) o;
    return Objects.equals(this.transactionId, ptsV2PaymentsPost201Response1ProcessorInformation.transactionId) &&
        Objects.equals(this.tradeNumber, ptsV2PaymentsPost201Response1ProcessorInformation.tradeNumber) &&
        Objects.equals(this.rawResponse, ptsV2PaymentsPost201Response1ProcessorInformation.rawResponse) &&
        Objects.equals(this.responseCode, ptsV2PaymentsPost201Response1ProcessorInformation.responseCode) &&
        Objects.equals(this.sellerProtection, ptsV2PaymentsPost201Response1ProcessorInformation.sellerProtection) &&
        Objects.equals(this.avs, ptsV2PaymentsPost201Response1ProcessorInformation.avs);
  }

  @Override
  public int hashCode() {
    return Objects.hash(transactionId, tradeNumber, rawResponse, responseCode, sellerProtection, avs);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class PtsV2PaymentsPost201Response1ProcessorInformation {\n");
    
    sb.append("    transactionId: ").append(toIndentedString(transactionId)).append("\n");
    sb.append("    tradeNumber: ").append(toIndentedString(tradeNumber)).append("\n");
    sb.append("    rawResponse: ").append(toIndentedString(rawResponse)).append("\n");
    sb.append("    responseCode: ").append(toIndentedString(responseCode)).append("\n");
    sb.append("    sellerProtection: ").append(toIndentedString(sellerProtection)).append("\n");
    sb.append("    avs: ").append(toIndentedString(avs)).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