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

Model.GetSubscriptionResponse1PaymentInstrument 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.GetSubscriptionResponse1PaymentInstrumentBankAccount;
import Model.GetSubscriptionResponse1PaymentInstrumentBuyerInformation;
import Model.GetSubscriptionResponse1PaymentInstrumentCard;
import Model.Tmsv2customersEmbeddedDefaultPaymentInstrumentBillTo;
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;

/**
 * Payment instrument used during Follow-On Transaction.
 */
@ApiModel(description = "Payment instrument used during Follow-On Transaction.")

public class GetSubscriptionResponse1PaymentInstrument {
  @SerializedName("id")
  private String id = null;

  @SerializedName("bankAccount")
  private GetSubscriptionResponse1PaymentInstrumentBankAccount bankAccount = null;

  @SerializedName("card")
  private GetSubscriptionResponse1PaymentInstrumentCard card = null;

  @SerializedName("billTo")
  private Tmsv2customersEmbeddedDefaultPaymentInstrumentBillTo billTo = null;

  @SerializedName("buyerInformation")
  private GetSubscriptionResponse1PaymentInstrumentBuyerInformation buyerInformation = null;

  public GetSubscriptionResponse1PaymentInstrument id(String id) {
    this.id = id;
    return this;
  }

   /**
   * The Id of the Payment Instrument Token.
   * @return id
  **/
  @ApiModelProperty(value = "The Id of the Payment Instrument Token.")
  public String getId() {
    return id;
  }

  public void setId(String id) {
    this.id = id;
  }

  public GetSubscriptionResponse1PaymentInstrument bankAccount(GetSubscriptionResponse1PaymentInstrumentBankAccount bankAccount) {
    this.bankAccount = bankAccount;
    return this;
  }

   /**
   * Get bankAccount
   * @return bankAccount
  **/
  @ApiModelProperty(value = "")
  public GetSubscriptionResponse1PaymentInstrumentBankAccount getBankAccount() {
    return bankAccount;
  }

  public void setBankAccount(GetSubscriptionResponse1PaymentInstrumentBankAccount bankAccount) {
    this.bankAccount = bankAccount;
  }

  public GetSubscriptionResponse1PaymentInstrument card(GetSubscriptionResponse1PaymentInstrumentCard card) {
    this.card = card;
    return this;
  }

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

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

  public GetSubscriptionResponse1PaymentInstrument billTo(Tmsv2customersEmbeddedDefaultPaymentInstrumentBillTo billTo) {
    this.billTo = billTo;
    return this;
  }

   /**
   * Get billTo
   * @return billTo
  **/
  @ApiModelProperty(value = "")
  public Tmsv2customersEmbeddedDefaultPaymentInstrumentBillTo getBillTo() {
    return billTo;
  }

  public void setBillTo(Tmsv2customersEmbeddedDefaultPaymentInstrumentBillTo billTo) {
    this.billTo = billTo;
  }

  public GetSubscriptionResponse1PaymentInstrument buyerInformation(GetSubscriptionResponse1PaymentInstrumentBuyerInformation buyerInformation) {
    this.buyerInformation = buyerInformation;
    return this;
  }

   /**
   * Get buyerInformation
   * @return buyerInformation
  **/
  @ApiModelProperty(value = "")
  public GetSubscriptionResponse1PaymentInstrumentBuyerInformation getBuyerInformation() {
    return buyerInformation;
  }

  public void setBuyerInformation(GetSubscriptionResponse1PaymentInstrumentBuyerInformation buyerInformation) {
    this.buyerInformation = buyerInformation;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    GetSubscriptionResponse1PaymentInstrument getSubscriptionResponse1PaymentInstrument = (GetSubscriptionResponse1PaymentInstrument) o;
    return Objects.equals(this.id, getSubscriptionResponse1PaymentInstrument.id) &&
        Objects.equals(this.bankAccount, getSubscriptionResponse1PaymentInstrument.bankAccount) &&
        Objects.equals(this.card, getSubscriptionResponse1PaymentInstrument.card) &&
        Objects.equals(this.billTo, getSubscriptionResponse1PaymentInstrument.billTo) &&
        Objects.equals(this.buyerInformation, getSubscriptionResponse1PaymentInstrument.buyerInformation);
  }

  @Override
  public int hashCode() {
    return Objects.hash(id, bankAccount, card, billTo, buyerInformation);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class GetSubscriptionResponse1PaymentInstrument {\n");
    
    if (id != null) sb.append("    id: ").append(toIndentedString(id)).append("\n");
    if (bankAccount != null) sb.append("    bankAccount: ").append(toIndentedString(bankAccount)).append("\n");
    if (card != null) sb.append("    card: ").append(toIndentedString(card)).append("\n");
    if (billTo != null) sb.append("    billTo: ").append(toIndentedString(billTo)).append("\n");
    if (buyerInformation != null) sb.append("    buyerInformation: ").append(toIndentedString(buyerInformation)).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