
Model.Ptsv2paymentsidcapturesPaymentInformation 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.Ptsv2paymentsPaymentInformationCustomer;
import Model.Ptsv2paymentsidcapturesPaymentInformationCard;
import Model.Ptsv2paymentsidcapturesPaymentInformationPaymentType;
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;
/**
* Ptsv2paymentsidcapturesPaymentInformation
*/
public class Ptsv2paymentsidcapturesPaymentInformation {
@SerializedName("customer")
private Ptsv2paymentsPaymentInformationCustomer customer = null;
@SerializedName("card")
private Ptsv2paymentsidcapturesPaymentInformationCard card = null;
@SerializedName("paymentType")
private Ptsv2paymentsidcapturesPaymentInformationPaymentType paymentType = null;
public Ptsv2paymentsidcapturesPaymentInformation customer(Ptsv2paymentsPaymentInformationCustomer customer) {
this.customer = customer;
return this;
}
/**
* Get customer
* @return customer
**/
@ApiModelProperty(value = "")
public Ptsv2paymentsPaymentInformationCustomer getCustomer() {
return customer;
}
public void setCustomer(Ptsv2paymentsPaymentInformationCustomer customer) {
this.customer = customer;
}
public Ptsv2paymentsidcapturesPaymentInformation card(Ptsv2paymentsidcapturesPaymentInformationCard card) {
this.card = card;
return this;
}
/**
* Get card
* @return card
**/
@ApiModelProperty(value = "")
public Ptsv2paymentsidcapturesPaymentInformationCard getCard() {
return card;
}
public void setCard(Ptsv2paymentsidcapturesPaymentInformationCard card) {
this.card = card;
}
public Ptsv2paymentsidcapturesPaymentInformation paymentType(Ptsv2paymentsidcapturesPaymentInformationPaymentType paymentType) {
this.paymentType = paymentType;
return this;
}
/**
* Get paymentType
* @return paymentType
**/
@ApiModelProperty(value = "")
public Ptsv2paymentsidcapturesPaymentInformationPaymentType getPaymentType() {
return paymentType;
}
public void setPaymentType(Ptsv2paymentsidcapturesPaymentInformationPaymentType 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;
}
Ptsv2paymentsidcapturesPaymentInformation ptsv2paymentsidcapturesPaymentInformation = (Ptsv2paymentsidcapturesPaymentInformation) o;
return Objects.equals(this.customer, ptsv2paymentsidcapturesPaymentInformation.customer) &&
Objects.equals(this.card, ptsv2paymentsidcapturesPaymentInformation.card) &&
Objects.equals(this.paymentType, ptsv2paymentsidcapturesPaymentInformation.paymentType);
}
@Override
public int hashCode() {
return Objects.hash(customer, card, paymentType);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class Ptsv2paymentsidcapturesPaymentInformation {\n");
if (customer != null) sb.append(" customer: ").append(toIndentedString(customer)).append("\n");
if (card != null) sb.append(" card: ").append(toIndentedString(card)).append("\n");
if (paymentType != null) 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