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

Model.PaymentInstrumentList1 Maven / Gradle / Ivy

There is a newer version: 0.0.72
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.PaymentInstrumentList1Embedded;
import Model.PaymentInstrumentListLinks;
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;

/**
 * PaymentInstrumentList1
 */

public class PaymentInstrumentList1 {
  @SerializedName("_links")
  private PaymentInstrumentListLinks links = null;

  @SerializedName("offset")
  private Integer offset = null;

  @SerializedName("limit")
  private Integer limit = null;

  @SerializedName("count")
  private Integer count = null;

  @SerializedName("total")
  private Integer total = null;

  @SerializedName("_embedded")
  private PaymentInstrumentList1Embedded embedded = null;

  public PaymentInstrumentList1 links(PaymentInstrumentListLinks links) {
    this.links = links;
    return this;
  }

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

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

   /**
   * The offset parameter supplied in the request.
   * @return offset
  **/
  @ApiModelProperty(example = "0", value = "The offset parameter supplied in the request.")
  public Integer getOffset() {
    return offset;
  }

   /**
   * The limit parameter supplied in the request.
   * @return limit
  **/
  @ApiModelProperty(example = "20", value = "The limit parameter supplied in the request.")
  public Integer getLimit() {
    return limit;
  }

   /**
   * The number of Payment Instruments returned in the array.
   * @return count
  **/
  @ApiModelProperty(example = "1", value = "The number of Payment Instruments returned in the array.")
  public Integer getCount() {
    return count;
  }

   /**
   * The total number of Payment Instruments associated with the Customer or Instrument Identifier.
   * @return total
  **/
  @ApiModelProperty(example = "1", value = "The total number of Payment Instruments associated with the Customer or Instrument Identifier.")
  public Integer getTotal() {
    return total;
  }

  public PaymentInstrumentList1 embedded(PaymentInstrumentList1Embedded embedded) {
    this.embedded = embedded;
    return this;
  }

   /**
   * Get embedded
   * @return embedded
  **/
  @ApiModelProperty(value = "")
  public PaymentInstrumentList1Embedded getEmbedded() {
    return embedded;
  }

  public void setEmbedded(PaymentInstrumentList1Embedded embedded) {
    this.embedded = embedded;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    PaymentInstrumentList1 paymentInstrumentList1 = (PaymentInstrumentList1) o;
    return Objects.equals(this.links, paymentInstrumentList1.links) &&
        Objects.equals(this.offset, paymentInstrumentList1.offset) &&
        Objects.equals(this.limit, paymentInstrumentList1.limit) &&
        Objects.equals(this.count, paymentInstrumentList1.count) &&
        Objects.equals(this.total, paymentInstrumentList1.total) &&
        Objects.equals(this.embedded, paymentInstrumentList1.embedded);
  }

  @Override
  public int hashCode() {
    return Objects.hash(links, offset, limit, count, total, embedded);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class PaymentInstrumentList1 {\n");
    
    sb.append("    links: ").append(toIndentedString(links)).append("\n");
    sb.append("    offset: ").append(toIndentedString(offset)).append("\n");
    sb.append("    limit: ").append(toIndentedString(limit)).append("\n");
    sb.append("    count: ").append(toIndentedString(count)).append("\n");
    sb.append("    total: ").append(toIndentedString(total)).append("\n");
    sb.append("    embedded: ").append(toIndentedString(embedded)).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