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

Model.InlineResponse2006 Maven / Gradle / Ivy

There is a newer version: 0.0.8
Show newest version
/*
 * 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.InlineResponse2005EmbeddedTotals;
import Model.InlineResponse2006Billing;
import Model.InlineResponse2006Links;
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;

/**
 * InlineResponse2006
 */

public class InlineResponse2006 {
  @SerializedName("_links")
  private InlineResponse2006Links links = null;

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

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

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

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

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

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

  @SerializedName("totals")
  private InlineResponse2005EmbeddedTotals totals = null;

  @SerializedName("billing")
  private InlineResponse2006Billing billing = null;

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

  public InlineResponse2006 links(InlineResponse2006Links links) {
    this.links = links;
    return this;
  }

   /**
   * Get links
   * @return links
  **/
  @ApiModelProperty(value = "")
  public InlineResponse2006Links getLinks() {
    return links;
  }

  public void setLinks(InlineResponse2006Links links) {
    this.links = links;
  }

  public InlineResponse2006 batchId(String batchId) {
    this.batchId = batchId;
    return this;
  }

   /**
   * Unique identification number assigned to the submitted request.
   * @return batchId
  **/
  @ApiModelProperty(example = "16188390061150001062041064", value = "Unique identification number assigned to the submitted request.")
  public String getBatchId() {
    return batchId;
  }

  public void setBatchId(String batchId) {
    this.batchId = batchId;
  }

  public InlineResponse2006 batchCreatedDate(String batchCreatedDate) {
    this.batchCreatedDate = batchCreatedDate;
    return this;
  }

   /**
   * ISO-8601 format: yyyy-MM-ddTHH:mm:ssZ
   * @return batchCreatedDate
  **/
  @ApiModelProperty(example = "2018-05-22T14.38.57Z", value = "ISO-8601 format: yyyy-MM-ddTHH:mm:ssZ")
  public String getBatchCreatedDate() {
    return batchCreatedDate;
  }

  public void setBatchCreatedDate(String batchCreatedDate) {
    this.batchCreatedDate = batchCreatedDate;
  }

  public InlineResponse2006 batchSource(String batchSource) {
    this.batchSource = batchSource;
    return this;
  }

   /**
   * Valid Values:   * SCHEDULER   * TOKEN_API   * CREDIT_CARD_FILE_UPLOAD   * AMEX_REGSITRY   * AMEX_REGISTRY_API   * AMEX_MAINTENANCE 
   * @return batchSource
  **/
  @ApiModelProperty(value = "Valid Values:   * SCHEDULER   * TOKEN_API   * CREDIT_CARD_FILE_UPLOAD   * AMEX_REGSITRY   * AMEX_REGISTRY_API   * AMEX_MAINTENANCE ")
  public String getBatchSource() {
    return batchSource;
  }

  public void setBatchSource(String batchSource) {
    this.batchSource = batchSource;
  }

  public InlineResponse2006 merchantReference(String merchantReference) {
    this.merchantReference = merchantReference;
    return this;
  }

   /**
   * Reference used by merchant to identify batch.
   * @return merchantReference
  **/
  @ApiModelProperty(example = "TC50171_3", value = "Reference used by merchant to identify batch.")
  public String getMerchantReference() {
    return merchantReference;
  }

  public void setMerchantReference(String merchantReference) {
    this.merchantReference = merchantReference;
  }

  public InlineResponse2006 batchCaEndpoints(String batchCaEndpoints) {
    this.batchCaEndpoints = batchCaEndpoints;
    return this;
  }

   /**
   * Get batchCaEndpoints
   * @return batchCaEndpoints
  **/
  @ApiModelProperty(example = "VISA,MASTERCARD", value = "")
  public String getBatchCaEndpoints() {
    return batchCaEndpoints;
  }

  public void setBatchCaEndpoints(String batchCaEndpoints) {
    this.batchCaEndpoints = batchCaEndpoints;
  }

  public InlineResponse2006 status(String status) {
    this.status = status;
    return this;
  }

   /**
   * Valid Values:   * REJECTED   * RECEIVED   * VALIDATED   * DECLINED   * PROCESSING   * COMPLETED 
   * @return status
  **/
  @ApiModelProperty(value = "Valid Values:   * REJECTED   * RECEIVED   * VALIDATED   * DECLINED   * PROCESSING   * COMPLETED ")
  public String getStatus() {
    return status;
  }

  public void setStatus(String status) {
    this.status = status;
  }

  public InlineResponse2006 totals(InlineResponse2005EmbeddedTotals totals) {
    this.totals = totals;
    return this;
  }

   /**
   * Get totals
   * @return totals
  **/
  @ApiModelProperty(value = "")
  public InlineResponse2005EmbeddedTotals getTotals() {
    return totals;
  }

  public void setTotals(InlineResponse2005EmbeddedTotals totals) {
    this.totals = totals;
  }

  public InlineResponse2006 billing(InlineResponse2006Billing billing) {
    this.billing = billing;
    return this;
  }

   /**
   * Get billing
   * @return billing
  **/
  @ApiModelProperty(value = "")
  public InlineResponse2006Billing getBilling() {
    return billing;
  }

  public void setBilling(InlineResponse2006Billing billing) {
    this.billing = billing;
  }

  public InlineResponse2006 description(String description) {
    this.description = description;
    return this;
  }

   /**
   * Get description
   * @return description
  **/
  @ApiModelProperty(example = "Your batch has been received, and is being checked for errors.", value = "")
  public String getDescription() {
    return description;
  }

  public void setDescription(String description) {
    this.description = description;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    InlineResponse2006 inlineResponse2006 = (InlineResponse2006) o;
    return Objects.equals(this.links, inlineResponse2006.links) &&
        Objects.equals(this.batchId, inlineResponse2006.batchId) &&
        Objects.equals(this.batchCreatedDate, inlineResponse2006.batchCreatedDate) &&
        Objects.equals(this.batchSource, inlineResponse2006.batchSource) &&
        Objects.equals(this.merchantReference, inlineResponse2006.merchantReference) &&
        Objects.equals(this.batchCaEndpoints, inlineResponse2006.batchCaEndpoints) &&
        Objects.equals(this.status, inlineResponse2006.status) &&
        Objects.equals(this.totals, inlineResponse2006.totals) &&
        Objects.equals(this.billing, inlineResponse2006.billing) &&
        Objects.equals(this.description, inlineResponse2006.description);
  }

  @Override
  public int hashCode() {
    return Objects.hash(links, batchId, batchCreatedDate, batchSource, merchantReference, batchCaEndpoints, status, totals, billing, description);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class InlineResponse2006 {\n");
    
    if (links != null) sb.append("    links: ").append(toIndentedString(links)).append("\n");
    if (batchId != null) sb.append("    batchId: ").append(toIndentedString(batchId)).append("\n");
    if (batchCreatedDate != null) sb.append("    batchCreatedDate: ").append(toIndentedString(batchCreatedDate)).append("\n");
    if (batchSource != null) sb.append("    batchSource: ").append(toIndentedString(batchSource)).append("\n");
    if (merchantReference != null) sb.append("    merchantReference: ").append(toIndentedString(merchantReference)).append("\n");
    if (batchCaEndpoints != null) sb.append("    batchCaEndpoints: ").append(toIndentedString(batchCaEndpoints)).append("\n");
    if (status != null) sb.append("    status: ").append(toIndentedString(status)).append("\n");
    if (totals != null) sb.append("    totals: ").append(toIndentedString(totals)).append("\n");
    if (billing != null) sb.append("    billing: ").append(toIndentedString(billing)).append("\n");
    if (description != null) sb.append("    description: ").append(toIndentedString(description)).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