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

Model.TmsBinLookupIssuerInformation 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 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;

/**
 * TmsBinLookupIssuerInformation
 */

public class TmsBinLookupIssuerInformation {
  @SerializedName("name")
  private String name = null;

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

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

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

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

  public TmsBinLookupIssuerInformation name(String name) {
    this.name = name;
    return this;
  }

   /**
   * This field contains the issuer name. 
   * @return name
  **/
  @ApiModelProperty(value = "This field contains the issuer name. ")
  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public TmsBinLookupIssuerInformation country(String country) {
    this.country = country;
    return this;
  }

   /**
   * This field contains [2-character ISO Country Codes](http://apps.cybersource.com/library/documentation/sbc/quickref/countries_alpha_list.pdf) for the issuer. 
   * @return country
  **/
  @ApiModelProperty(value = "This field contains [2-character ISO Country Codes](http://apps.cybersource.com/library/documentation/sbc/quickref/countries_alpha_list.pdf) for the issuer. ")
  public String getCountry() {
    return country;
  }

  public void setCountry(String country) {
    this.country = country;
  }

  public TmsBinLookupIssuerInformation binLength(String binLength) {
    this.binLength = binLength;
    return this;
  }

   /**
   * This field contains the length of the BIN. 
   * @return binLength
  **/
  @ApiModelProperty(value = "This field contains the length of the BIN. ")
  public String getBinLength() {
    return binLength;
  }

  public void setBinLength(String binLength) {
    this.binLength = binLength;
  }

  public TmsBinLookupIssuerInformation accountPrefix(String accountPrefix) {
    this.accountPrefix = accountPrefix;
    return this;
  }

   /**
   * This field contains the first 6 to 8 digits of a primary account number (PAN). The length of the field is determined by [PCI-DSS standards for truncation](https://pcissc.secure.force.com/faq/articles/Frequently_Asked_Question/What-are-acceptable-formats-for-truncation-of-primary-account-numbers). 
   * @return accountPrefix
  **/
  @ApiModelProperty(value = "This field contains the first 6 to 8 digits of a primary account number (PAN). The length of the field is determined by [PCI-DSS standards for truncation](https://pcissc.secure.force.com/faq/articles/Frequently_Asked_Question/What-are-acceptable-formats-for-truncation-of-primary-account-numbers). ")
  public String getAccountPrefix() {
    return accountPrefix;
  }

  public void setAccountPrefix(String accountPrefix) {
    this.accountPrefix = accountPrefix;
  }

  public TmsBinLookupIssuerInformation phoneNumber(String phoneNumber) {
    this.phoneNumber = phoneNumber;
    return this;
  }

   /**
   * This field contains the customer service phone number for the issuer. 
   * @return phoneNumber
  **/
  @ApiModelProperty(value = "This field contains the customer service phone number for the issuer. ")
  public String getPhoneNumber() {
    return phoneNumber;
  }

  public void setPhoneNumber(String phoneNumber) {
    this.phoneNumber = phoneNumber;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    TmsBinLookupIssuerInformation tmsBinLookupIssuerInformation = (TmsBinLookupIssuerInformation) o;
    return Objects.equals(this.name, tmsBinLookupIssuerInformation.name) &&
        Objects.equals(this.country, tmsBinLookupIssuerInformation.country) &&
        Objects.equals(this.binLength, tmsBinLookupIssuerInformation.binLength) &&
        Objects.equals(this.accountPrefix, tmsBinLookupIssuerInformation.accountPrefix) &&
        Objects.equals(this.phoneNumber, tmsBinLookupIssuerInformation.phoneNumber);
  }

  @Override
  public int hashCode() {
    return Objects.hash(name, country, binLength, accountPrefix, phoneNumber);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class TmsBinLookupIssuerInformation {\n");
    
    if (name != null) sb.append("    name: ").append(toIndentedString(name)).append("\n");
    if (country != null) sb.append("    country: ").append(toIndentedString(country)).append("\n");
    if (binLength != null) sb.append("    binLength: ").append(toIndentedString(binLength)).append("\n");
    if (accountPrefix != null) sb.append("    accountPrefix: ").append(toIndentedString(accountPrefix)).append("\n");
    if (phoneNumber != null) sb.append("    phoneNumber: ").append(toIndentedString(phoneNumber)).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