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

Model.Ptsv2paymentreferencesPaymentInformation 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.Ptsv2paymentreferencesPaymentInformationBank;
import Model.Ptsv2paymentreferencesPaymentInformationCard;
import Model.Ptsv2paymentreferencesPaymentInformationEWallet;
import Model.Ptsv2paymentreferencesPaymentInformationOptions;
import Model.Ptsv2paymentsPaymentInformationPaymentType;
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;

/**
 * Ptsv2paymentreferencesPaymentInformation
 */

public class Ptsv2paymentreferencesPaymentInformation {
  @SerializedName("card")
  private Ptsv2paymentreferencesPaymentInformationCard card = null;

  @SerializedName("bank")
  private Ptsv2paymentreferencesPaymentInformationBank bank = null;

  @SerializedName("eWallet")
  private Ptsv2paymentreferencesPaymentInformationEWallet eWallet = null;

  @SerializedName("options")
  private Ptsv2paymentreferencesPaymentInformationOptions options = null;

  @SerializedName("paymentType")
  private Ptsv2paymentsPaymentInformationPaymentType paymentType = null;

  public Ptsv2paymentreferencesPaymentInformation card(Ptsv2paymentreferencesPaymentInformationCard card) {
    this.card = card;
    return this;
  }

   /**
   * Get card
   * @return card
  **/
  @ApiModelProperty(value = "")
  public Ptsv2paymentreferencesPaymentInformationCard getCard() {
    return card;
  }

  public void setCard(Ptsv2paymentreferencesPaymentInformationCard card) {
    this.card = card;
  }

  public Ptsv2paymentreferencesPaymentInformation bank(Ptsv2paymentreferencesPaymentInformationBank bank) {
    this.bank = bank;
    return this;
  }

   /**
   * Get bank
   * @return bank
  **/
  @ApiModelProperty(value = "")
  public Ptsv2paymentreferencesPaymentInformationBank getBank() {
    return bank;
  }

  public void setBank(Ptsv2paymentreferencesPaymentInformationBank bank) {
    this.bank = bank;
  }

  public Ptsv2paymentreferencesPaymentInformation eWallet(Ptsv2paymentreferencesPaymentInformationEWallet eWallet) {
    this.eWallet = eWallet;
    return this;
  }

   /**
   * Get eWallet
   * @return eWallet
  **/
  @ApiModelProperty(value = "")
  public Ptsv2paymentreferencesPaymentInformationEWallet getEWallet() {
    return eWallet;
  }

  public void setEWallet(Ptsv2paymentreferencesPaymentInformationEWallet eWallet) {
    this.eWallet = eWallet;
  }

  public Ptsv2paymentreferencesPaymentInformation options(Ptsv2paymentreferencesPaymentInformationOptions options) {
    this.options = options;
    return this;
  }

   /**
   * Get options
   * @return options
  **/
  @ApiModelProperty(value = "")
  public Ptsv2paymentreferencesPaymentInformationOptions getOptions() {
    return options;
  }

  public void setOptions(Ptsv2paymentreferencesPaymentInformationOptions options) {
    this.options = options;
  }

  public Ptsv2paymentreferencesPaymentInformation paymentType(Ptsv2paymentsPaymentInformationPaymentType paymentType) {
    this.paymentType = paymentType;
    return this;
  }

   /**
   * Get paymentType
   * @return paymentType
  **/
  @ApiModelProperty(value = "")
  public Ptsv2paymentsPaymentInformationPaymentType getPaymentType() {
    return paymentType;
  }

  public void setPaymentType(Ptsv2paymentsPaymentInformationPaymentType paymentType) {
    this.paymentType = paymentType;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    Ptsv2paymentreferencesPaymentInformation ptsv2paymentreferencesPaymentInformation = (Ptsv2paymentreferencesPaymentInformation) o;
    return Objects.equals(this.card, ptsv2paymentreferencesPaymentInformation.card) &&
        Objects.equals(this.bank, ptsv2paymentreferencesPaymentInformation.bank) &&
        Objects.equals(this.eWallet, ptsv2paymentreferencesPaymentInformation.eWallet) &&
        Objects.equals(this.options, ptsv2paymentreferencesPaymentInformation.options) &&
        Objects.equals(this.paymentType, ptsv2paymentreferencesPaymentInformation.paymentType);
  }

  @Override
  public int hashCode() {
    return Objects.hash(card, bank, eWallet, options, paymentType);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class Ptsv2paymentreferencesPaymentInformation {\n");
    
    sb.append("    card: ").append(toIndentedString(card)).append("\n");
    sb.append("    bank: ").append(toIndentedString(bank)).append("\n");
    sb.append("    eWallet: ").append(toIndentedString(eWallet)).append("\n");
    sb.append("    options: ").append(toIndentedString(options)).append("\n");
    sb.append("    paymentType: ").append(toIndentedString(paymentType)).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