
Model.CapturePaymentRequest 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.Ptsv2paymentsClientReferenceInformation;
import Model.Ptsv2paymentsMerchantDefinedInformation;
import Model.Ptsv2paymentsMerchantDefinedSecureInformation;
import Model.Ptsv2paymentsPromotionInformation;
import Model.Ptsv2paymentsTravelInformation;
import Model.Ptsv2paymentsidcapturesAggregatorInformation;
import Model.Ptsv2paymentsidcapturesBuyerInformation;
import Model.Ptsv2paymentsidcapturesDeviceInformation;
import Model.Ptsv2paymentsidcapturesInstallmentInformation;
import Model.Ptsv2paymentsidcapturesMerchantInformation;
import Model.Ptsv2paymentsidcapturesOrderInformation;
import Model.Ptsv2paymentsidcapturesPaymentInformation;
import Model.Ptsv2paymentsidcapturesPointOfSaleInformation;
import Model.Ptsv2paymentsidcapturesProcessingInformation;
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;
/**
* CapturePaymentRequest
*/
public class CapturePaymentRequest {
@SerializedName("clientReferenceInformation")
private Ptsv2paymentsClientReferenceInformation clientReferenceInformation = null;
@SerializedName("processingInformation")
private Ptsv2paymentsidcapturesProcessingInformation processingInformation = null;
@SerializedName("paymentInformation")
private Ptsv2paymentsidcapturesPaymentInformation paymentInformation = null;
@SerializedName("orderInformation")
private Ptsv2paymentsidcapturesOrderInformation orderInformation = null;
@SerializedName("buyerInformation")
private Ptsv2paymentsidcapturesBuyerInformation buyerInformation = null;
@SerializedName("deviceInformation")
private Ptsv2paymentsidcapturesDeviceInformation deviceInformation = null;
@SerializedName("merchantInformation")
private Ptsv2paymentsidcapturesMerchantInformation merchantInformation = null;
@SerializedName("aggregatorInformation")
private Ptsv2paymentsidcapturesAggregatorInformation aggregatorInformation = null;
@SerializedName("pointOfSaleInformation")
private Ptsv2paymentsidcapturesPointOfSaleInformation pointOfSaleInformation = null;
@SerializedName("merchantDefinedInformation")
private List merchantDefinedInformation = null;
@SerializedName("merchantDefinedSecureInformation")
private Ptsv2paymentsMerchantDefinedSecureInformation merchantDefinedSecureInformation = null;
@SerializedName("installmentInformation")
private Ptsv2paymentsidcapturesInstallmentInformation installmentInformation = null;
@SerializedName("travelInformation")
private Ptsv2paymentsTravelInformation travelInformation = null;
@SerializedName("promotionInformation")
private Ptsv2paymentsPromotionInformation promotionInformation = null;
public CapturePaymentRequest clientReferenceInformation(Ptsv2paymentsClientReferenceInformation clientReferenceInformation) {
this.clientReferenceInformation = clientReferenceInformation;
return this;
}
/**
* Get clientReferenceInformation
* @return clientReferenceInformation
**/
@ApiModelProperty(value = "")
public Ptsv2paymentsClientReferenceInformation getClientReferenceInformation() {
return clientReferenceInformation;
}
public void setClientReferenceInformation(Ptsv2paymentsClientReferenceInformation clientReferenceInformation) {
this.clientReferenceInformation = clientReferenceInformation;
}
public CapturePaymentRequest processingInformation(Ptsv2paymentsidcapturesProcessingInformation processingInformation) {
this.processingInformation = processingInformation;
return this;
}
/**
* Get processingInformation
* @return processingInformation
**/
@ApiModelProperty(value = "")
public Ptsv2paymentsidcapturesProcessingInformation getProcessingInformation() {
return processingInformation;
}
public void setProcessingInformation(Ptsv2paymentsidcapturesProcessingInformation processingInformation) {
this.processingInformation = processingInformation;
}
public CapturePaymentRequest paymentInformation(Ptsv2paymentsidcapturesPaymentInformation paymentInformation) {
this.paymentInformation = paymentInformation;
return this;
}
/**
* Get paymentInformation
* @return paymentInformation
**/
@ApiModelProperty(value = "")
public Ptsv2paymentsidcapturesPaymentInformation getPaymentInformation() {
return paymentInformation;
}
public void setPaymentInformation(Ptsv2paymentsidcapturesPaymentInformation paymentInformation) {
this.paymentInformation = paymentInformation;
}
public CapturePaymentRequest orderInformation(Ptsv2paymentsidcapturesOrderInformation orderInformation) {
this.orderInformation = orderInformation;
return this;
}
/**
* Get orderInformation
* @return orderInformation
**/
@ApiModelProperty(value = "")
public Ptsv2paymentsidcapturesOrderInformation getOrderInformation() {
return orderInformation;
}
public void setOrderInformation(Ptsv2paymentsidcapturesOrderInformation orderInformation) {
this.orderInformation = orderInformation;
}
public CapturePaymentRequest buyerInformation(Ptsv2paymentsidcapturesBuyerInformation buyerInformation) {
this.buyerInformation = buyerInformation;
return this;
}
/**
* Get buyerInformation
* @return buyerInformation
**/
@ApiModelProperty(value = "")
public Ptsv2paymentsidcapturesBuyerInformation getBuyerInformation() {
return buyerInformation;
}
public void setBuyerInformation(Ptsv2paymentsidcapturesBuyerInformation buyerInformation) {
this.buyerInformation = buyerInformation;
}
public CapturePaymentRequest deviceInformation(Ptsv2paymentsidcapturesDeviceInformation deviceInformation) {
this.deviceInformation = deviceInformation;
return this;
}
/**
* Get deviceInformation
* @return deviceInformation
**/
@ApiModelProperty(value = "")
public Ptsv2paymentsidcapturesDeviceInformation getDeviceInformation() {
return deviceInformation;
}
public void setDeviceInformation(Ptsv2paymentsidcapturesDeviceInformation deviceInformation) {
this.deviceInformation = deviceInformation;
}
public CapturePaymentRequest merchantInformation(Ptsv2paymentsidcapturesMerchantInformation merchantInformation) {
this.merchantInformation = merchantInformation;
return this;
}
/**
* Get merchantInformation
* @return merchantInformation
**/
@ApiModelProperty(value = "")
public Ptsv2paymentsidcapturesMerchantInformation getMerchantInformation() {
return merchantInformation;
}
public void setMerchantInformation(Ptsv2paymentsidcapturesMerchantInformation merchantInformation) {
this.merchantInformation = merchantInformation;
}
public CapturePaymentRequest aggregatorInformation(Ptsv2paymentsidcapturesAggregatorInformation aggregatorInformation) {
this.aggregatorInformation = aggregatorInformation;
return this;
}
/**
* Get aggregatorInformation
* @return aggregatorInformation
**/
@ApiModelProperty(value = "")
public Ptsv2paymentsidcapturesAggregatorInformation getAggregatorInformation() {
return aggregatorInformation;
}
public void setAggregatorInformation(Ptsv2paymentsidcapturesAggregatorInformation aggregatorInformation) {
this.aggregatorInformation = aggregatorInformation;
}
public CapturePaymentRequest pointOfSaleInformation(Ptsv2paymentsidcapturesPointOfSaleInformation pointOfSaleInformation) {
this.pointOfSaleInformation = pointOfSaleInformation;
return this;
}
/**
* Get pointOfSaleInformation
* @return pointOfSaleInformation
**/
@ApiModelProperty(value = "")
public Ptsv2paymentsidcapturesPointOfSaleInformation getPointOfSaleInformation() {
return pointOfSaleInformation;
}
public void setPointOfSaleInformation(Ptsv2paymentsidcapturesPointOfSaleInformation pointOfSaleInformation) {
this.pointOfSaleInformation = pointOfSaleInformation;
}
public CapturePaymentRequest merchantDefinedInformation(List merchantDefinedInformation) {
this.merchantDefinedInformation = merchantDefinedInformation;
return this;
}
public CapturePaymentRequest addMerchantDefinedInformationItem(Ptsv2paymentsMerchantDefinedInformation merchantDefinedInformationItem) {
if (this.merchantDefinedInformation == null) {
this.merchantDefinedInformation = new ArrayList();
}
this.merchantDefinedInformation.add(merchantDefinedInformationItem);
return this;
}
/**
* The object containing the custom data that the merchant defines.
* @return merchantDefinedInformation
**/
@ApiModelProperty(value = "The object containing the custom data that the merchant defines. ")
public List getMerchantDefinedInformation() {
return merchantDefinedInformation;
}
public void setMerchantDefinedInformation(List merchantDefinedInformation) {
this.merchantDefinedInformation = merchantDefinedInformation;
}
public CapturePaymentRequest merchantDefinedSecureInformation(Ptsv2paymentsMerchantDefinedSecureInformation merchantDefinedSecureInformation) {
this.merchantDefinedSecureInformation = merchantDefinedSecureInformation;
return this;
}
/**
* Get merchantDefinedSecureInformation
* @return merchantDefinedSecureInformation
**/
@ApiModelProperty(value = "")
public Ptsv2paymentsMerchantDefinedSecureInformation getMerchantDefinedSecureInformation() {
return merchantDefinedSecureInformation;
}
public void setMerchantDefinedSecureInformation(Ptsv2paymentsMerchantDefinedSecureInformation merchantDefinedSecureInformation) {
this.merchantDefinedSecureInformation = merchantDefinedSecureInformation;
}
public CapturePaymentRequest installmentInformation(Ptsv2paymentsidcapturesInstallmentInformation installmentInformation) {
this.installmentInformation = installmentInformation;
return this;
}
/**
* Get installmentInformation
* @return installmentInformation
**/
@ApiModelProperty(value = "")
public Ptsv2paymentsidcapturesInstallmentInformation getInstallmentInformation() {
return installmentInformation;
}
public void setInstallmentInformation(Ptsv2paymentsidcapturesInstallmentInformation installmentInformation) {
this.installmentInformation = installmentInformation;
}
public CapturePaymentRequest travelInformation(Ptsv2paymentsTravelInformation travelInformation) {
this.travelInformation = travelInformation;
return this;
}
/**
* Get travelInformation
* @return travelInformation
**/
@ApiModelProperty(value = "")
public Ptsv2paymentsTravelInformation getTravelInformation() {
return travelInformation;
}
public void setTravelInformation(Ptsv2paymentsTravelInformation travelInformation) {
this.travelInformation = travelInformation;
}
public CapturePaymentRequest promotionInformation(Ptsv2paymentsPromotionInformation promotionInformation) {
this.promotionInformation = promotionInformation;
return this;
}
/**
* Get promotionInformation
* @return promotionInformation
**/
@ApiModelProperty(value = "")
public Ptsv2paymentsPromotionInformation getPromotionInformation() {
return promotionInformation;
}
public void setPromotionInformation(Ptsv2paymentsPromotionInformation promotionInformation) {
this.promotionInformation = promotionInformation;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
CapturePaymentRequest capturePaymentRequest = (CapturePaymentRequest) o;
return Objects.equals(this.clientReferenceInformation, capturePaymentRequest.clientReferenceInformation) &&
Objects.equals(this.processingInformation, capturePaymentRequest.processingInformation) &&
Objects.equals(this.paymentInformation, capturePaymentRequest.paymentInformation) &&
Objects.equals(this.orderInformation, capturePaymentRequest.orderInformation) &&
Objects.equals(this.buyerInformation, capturePaymentRequest.buyerInformation) &&
Objects.equals(this.deviceInformation, capturePaymentRequest.deviceInformation) &&
Objects.equals(this.merchantInformation, capturePaymentRequest.merchantInformation) &&
Objects.equals(this.aggregatorInformation, capturePaymentRequest.aggregatorInformation) &&
Objects.equals(this.pointOfSaleInformation, capturePaymentRequest.pointOfSaleInformation) &&
Objects.equals(this.merchantDefinedInformation, capturePaymentRequest.merchantDefinedInformation) &&
Objects.equals(this.merchantDefinedSecureInformation, capturePaymentRequest.merchantDefinedSecureInformation) &&
Objects.equals(this.installmentInformation, capturePaymentRequest.installmentInformation) &&
Objects.equals(this.travelInformation, capturePaymentRequest.travelInformation) &&
Objects.equals(this.promotionInformation, capturePaymentRequest.promotionInformation);
}
@Override
public int hashCode() {
return Objects.hash(clientReferenceInformation, processingInformation, paymentInformation, orderInformation, buyerInformation, deviceInformation, merchantInformation, aggregatorInformation, pointOfSaleInformation, merchantDefinedInformation, merchantDefinedSecureInformation, installmentInformation, travelInformation, promotionInformation);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class CapturePaymentRequest {\n");
if (clientReferenceInformation != null) sb.append(" clientReferenceInformation: ").append(toIndentedString(clientReferenceInformation)).append("\n");
if (processingInformation != null) sb.append(" processingInformation: ").append(toIndentedString(processingInformation)).append("\n");
if (paymentInformation != null) sb.append(" paymentInformation: ").append(toIndentedString(paymentInformation)).append("\n");
if (orderInformation != null) sb.append(" orderInformation: ").append(toIndentedString(orderInformation)).append("\n");
if (buyerInformation != null) sb.append(" buyerInformation: ").append(toIndentedString(buyerInformation)).append("\n");
if (deviceInformation != null) sb.append(" deviceInformation: ").append(toIndentedString(deviceInformation)).append("\n");
if (merchantInformation != null) sb.append(" merchantInformation: ").append(toIndentedString(merchantInformation)).append("\n");
if (aggregatorInformation != null) sb.append(" aggregatorInformation: ").append(toIndentedString(aggregatorInformation)).append("\n");
if (pointOfSaleInformation != null) sb.append(" pointOfSaleInformation: ").append(toIndentedString(pointOfSaleInformation)).append("\n");
if (merchantDefinedInformation != null) sb.append(" merchantDefinedInformation: ").append(toIndentedString(merchantDefinedInformation)).append("\n");
if (merchantDefinedSecureInformation != null) sb.append(" merchantDefinedSecureInformation: ").append(toIndentedString(merchantDefinedSecureInformation)).append("\n");
if (installmentInformation != null) sb.append(" installmentInformation: ").append(toIndentedString(installmentInformation)).append("\n");
if (travelInformation != null) sb.append(" travelInformation: ").append(toIndentedString(travelInformation)).append("\n");
if (promotionInformation != null) sb.append(" promotionInformation: ").append(toIndentedString(promotionInformation)).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