Model.Ptsv2paymentsRiskInformation 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.Ptsv2paymentsRiskInformationAuxiliaryData;
import Model.Ptsv2paymentsRiskInformationBuyerHistory;
import Model.Ptsv2paymentsRiskInformationProfile;
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;
import java.util.ArrayList;
import java.util.List;
/**
* This object is only needed when you are requesting both payment and DM services at same time.
*/
@ApiModel(description = "This object is only needed when you are requesting both payment and DM services at same time.")
public class Ptsv2paymentsRiskInformation {
@SerializedName("profile")
private Ptsv2paymentsRiskInformationProfile profile = null;
@SerializedName("eventType")
private String eventType = null;
@SerializedName("buyerHistory")
private Ptsv2paymentsRiskInformationBuyerHistory buyerHistory = null;
@SerializedName("auxiliaryData")
private List auxiliaryData = null;
public Ptsv2paymentsRiskInformation profile(Ptsv2paymentsRiskInformationProfile profile) {
this.profile = profile;
return this;
}
/**
* Get profile
* @return profile
**/
@ApiModelProperty(value = "")
public Ptsv2paymentsRiskInformationProfile getProfile() {
return profile;
}
public void setProfile(Ptsv2paymentsRiskInformationProfile profile) {
this.profile = profile;
}
public Ptsv2paymentsRiskInformation eventType(String eventType) {
this.eventType = eventType;
return this;
}
/**
* Specifies one of the following types of events: - login - account_creation - account_update For regular payment transactions, do not send this field.
* @return eventType
**/
@ApiModelProperty(value = "Specifies one of the following types of events: - login - account_creation - account_update For regular payment transactions, do not send this field. ")
public String getEventType() {
return eventType;
}
public void setEventType(String eventType) {
this.eventType = eventType;
}
public Ptsv2paymentsRiskInformation buyerHistory(Ptsv2paymentsRiskInformationBuyerHistory buyerHistory) {
this.buyerHistory = buyerHistory;
return this;
}
/**
* Get buyerHistory
* @return buyerHistory
**/
@ApiModelProperty(value = "")
public Ptsv2paymentsRiskInformationBuyerHistory getBuyerHistory() {
return buyerHistory;
}
public void setBuyerHistory(Ptsv2paymentsRiskInformationBuyerHistory buyerHistory) {
this.buyerHistory = buyerHistory;
}
public Ptsv2paymentsRiskInformation auxiliaryData(List auxiliaryData) {
this.auxiliaryData = auxiliaryData;
return this;
}
public Ptsv2paymentsRiskInformation addAuxiliaryDataItem(Ptsv2paymentsRiskInformationAuxiliaryData auxiliaryDataItem) {
if (this.auxiliaryData == null) {
this.auxiliaryData = new ArrayList();
}
this.auxiliaryData.add(auxiliaryDataItem);
return this;
}
/**
* Get auxiliaryData
* @return auxiliaryData
**/
@ApiModelProperty(value = "")
public List getAuxiliaryData() {
return auxiliaryData;
}
public void setAuxiliaryData(List auxiliaryData) {
this.auxiliaryData = auxiliaryData;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
Ptsv2paymentsRiskInformation ptsv2paymentsRiskInformation = (Ptsv2paymentsRiskInformation) o;
return Objects.equals(this.profile, ptsv2paymentsRiskInformation.profile) &&
Objects.equals(this.eventType, ptsv2paymentsRiskInformation.eventType) &&
Objects.equals(this.buyerHistory, ptsv2paymentsRiskInformation.buyerHistory) &&
Objects.equals(this.auxiliaryData, ptsv2paymentsRiskInformation.auxiliaryData);
}
@Override
public int hashCode() {
return Objects.hash(profile, eventType, buyerHistory, auxiliaryData);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class Ptsv2paymentsRiskInformation {\n");
sb.append(" profile: ").append(toIndentedString(profile)).append("\n");
sb.append(" eventType: ").append(toIndentedString(eventType)).append("\n");
sb.append(" buyerHistory: ").append(toIndentedString(buyerHistory)).append("\n");
sb.append(" auxiliaryData: ").append(toIndentedString(auxiliaryData)).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