
Model.CreateCreditRequest 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.Ptsv2creditsInstallmentInformation;
import Model.Ptsv2creditsProcessingInformation;
import Model.Ptsv2creditsRecipientInformation;
import Model.Ptsv2creditsSenderInformation;
import Model.Ptsv2paymentsClientReferenceInformation;
import Model.Ptsv2paymentsMerchantDefinedInformation;
import Model.Ptsv2paymentsMerchantDefinedSecureInformation;
import Model.Ptsv2paymentsPointOfSaleInformation;
import Model.Ptsv2paymentsPromotionInformation;
import Model.Ptsv2paymentsTravelInformation;
import Model.Ptsv2paymentsidcapturesAggregatorInformation;
import Model.Ptsv2paymentsidcapturesBuyerInformation;
import Model.Ptsv2paymentsidcapturesDeviceInformation;
import Model.Ptsv2paymentsidrefundsMerchantInformation;
import Model.Ptsv2paymentsidrefundsOrderInformation;
import Model.Ptsv2paymentsidrefundsPaymentInformation;
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;
/**
* CreateCreditRequest
*/
public class CreateCreditRequest {
@SerializedName("clientReferenceInformation")
private Ptsv2paymentsClientReferenceInformation clientReferenceInformation = null;
@SerializedName("processingInformation")
private Ptsv2creditsProcessingInformation processingInformation = null;
@SerializedName("paymentInformation")
private Ptsv2paymentsidrefundsPaymentInformation paymentInformation = null;
@SerializedName("orderInformation")
private Ptsv2paymentsidrefundsOrderInformation orderInformation = null;
@SerializedName("buyerInformation")
private Ptsv2paymentsidcapturesBuyerInformation buyerInformation = null;
@SerializedName("deviceInformation")
private Ptsv2paymentsidcapturesDeviceInformation deviceInformation = null;
@SerializedName("merchantInformation")
private Ptsv2paymentsidrefundsMerchantInformation merchantInformation = null;
@SerializedName("aggregatorInformation")
private Ptsv2paymentsidcapturesAggregatorInformation aggregatorInformation = null;
@SerializedName("pointOfSaleInformation")
private Ptsv2paymentsPointOfSaleInformation pointOfSaleInformation = null;
@SerializedName("merchantDefinedInformation")
private List merchantDefinedInformation = null;
@SerializedName("merchantDefinedSecureInformation")
private Ptsv2paymentsMerchantDefinedSecureInformation merchantDefinedSecureInformation = null;
@SerializedName("installmentInformation")
private Ptsv2creditsInstallmentInformation installmentInformation = null;
@SerializedName("travelInformation")
private Ptsv2paymentsTravelInformation travelInformation = null;
@SerializedName("recipientInformation")
private Ptsv2creditsRecipientInformation recipientInformation = null;
@SerializedName("senderInformation")
private Ptsv2creditsSenderInformation senderInformation = null;
@SerializedName("promotionInformation")
private Ptsv2paymentsPromotionInformation promotionInformation = null;
public CreateCreditRequest 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 CreateCreditRequest processingInformation(Ptsv2creditsProcessingInformation processingInformation) {
this.processingInformation = processingInformation;
return this;
}
/**
* Get processingInformation
* @return processingInformation
**/
@ApiModelProperty(value = "")
public Ptsv2creditsProcessingInformation getProcessingInformation() {
return processingInformation;
}
public void setProcessingInformation(Ptsv2creditsProcessingInformation processingInformation) {
this.processingInformation = processingInformation;
}
public CreateCreditRequest paymentInformation(Ptsv2paymentsidrefundsPaymentInformation paymentInformation) {
this.paymentInformation = paymentInformation;
return this;
}
/**
* Get paymentInformation
* @return paymentInformation
**/
@ApiModelProperty(value = "")
public Ptsv2paymentsidrefundsPaymentInformation getPaymentInformation() {
return paymentInformation;
}
public void setPaymentInformation(Ptsv2paymentsidrefundsPaymentInformation paymentInformation) {
this.paymentInformation = paymentInformation;
}
public CreateCreditRequest orderInformation(Ptsv2paymentsidrefundsOrderInformation orderInformation) {
this.orderInformation = orderInformation;
return this;
}
/**
* Get orderInformation
* @return orderInformation
**/
@ApiModelProperty(value = "")
public Ptsv2paymentsidrefundsOrderInformation getOrderInformation() {
return orderInformation;
}
public void setOrderInformation(Ptsv2paymentsidrefundsOrderInformation orderInformation) {
this.orderInformation = orderInformation;
}
public CreateCreditRequest 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 CreateCreditRequest 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 CreateCreditRequest merchantInformation(Ptsv2paymentsidrefundsMerchantInformation merchantInformation) {
this.merchantInformation = merchantInformation;
return this;
}
/**
* Get merchantInformation
* @return merchantInformation
**/
@ApiModelProperty(value = "")
public Ptsv2paymentsidrefundsMerchantInformation getMerchantInformation() {
return merchantInformation;
}
public void setMerchantInformation(Ptsv2paymentsidrefundsMerchantInformation merchantInformation) {
this.merchantInformation = merchantInformation;
}
public CreateCreditRequest 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 CreateCreditRequest pointOfSaleInformation(Ptsv2paymentsPointOfSaleInformation pointOfSaleInformation) {
this.pointOfSaleInformation = pointOfSaleInformation;
return this;
}
/**
* Get pointOfSaleInformation
* @return pointOfSaleInformation
**/
@ApiModelProperty(value = "")
public Ptsv2paymentsPointOfSaleInformation getPointOfSaleInformation() {
return pointOfSaleInformation;
}
public void setPointOfSaleInformation(Ptsv2paymentsPointOfSaleInformation pointOfSaleInformation) {
this.pointOfSaleInformation = pointOfSaleInformation;
}
public CreateCreditRequest merchantDefinedInformation(List merchantDefinedInformation) {
this.merchantDefinedInformation = merchantDefinedInformation;
return this;
}
public CreateCreditRequest 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 CreateCreditRequest 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 CreateCreditRequest installmentInformation(Ptsv2creditsInstallmentInformation installmentInformation) {
this.installmentInformation = installmentInformation;
return this;
}
/**
* Get installmentInformation
* @return installmentInformation
**/
@ApiModelProperty(value = "")
public Ptsv2creditsInstallmentInformation getInstallmentInformation() {
return installmentInformation;
}
public void setInstallmentInformation(Ptsv2creditsInstallmentInformation installmentInformation) {
this.installmentInformation = installmentInformation;
}
public CreateCreditRequest 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 CreateCreditRequest recipientInformation(Ptsv2creditsRecipientInformation recipientInformation) {
this.recipientInformation = recipientInformation;
return this;
}
/**
* Get recipientInformation
* @return recipientInformation
**/
@ApiModelProperty(value = "")
public Ptsv2creditsRecipientInformation getRecipientInformation() {
return recipientInformation;
}
public void setRecipientInformation(Ptsv2creditsRecipientInformation recipientInformation) {
this.recipientInformation = recipientInformation;
}
public CreateCreditRequest senderInformation(Ptsv2creditsSenderInformation senderInformation) {
this.senderInformation = senderInformation;
return this;
}
/**
* Get senderInformation
* @return senderInformation
**/
@ApiModelProperty(value = "")
public Ptsv2creditsSenderInformation getSenderInformation() {
return senderInformation;
}
public void setSenderInformation(Ptsv2creditsSenderInformation senderInformation) {
this.senderInformation = senderInformation;
}
public CreateCreditRequest 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;
}
CreateCreditRequest createCreditRequest = (CreateCreditRequest) o;
return Objects.equals(this.clientReferenceInformation, createCreditRequest.clientReferenceInformation) &&
Objects.equals(this.processingInformation, createCreditRequest.processingInformation) &&
Objects.equals(this.paymentInformation, createCreditRequest.paymentInformation) &&
Objects.equals(this.orderInformation, createCreditRequest.orderInformation) &&
Objects.equals(this.buyerInformation, createCreditRequest.buyerInformation) &&
Objects.equals(this.deviceInformation, createCreditRequest.deviceInformation) &&
Objects.equals(this.merchantInformation, createCreditRequest.merchantInformation) &&
Objects.equals(this.aggregatorInformation, createCreditRequest.aggregatorInformation) &&
Objects.equals(this.pointOfSaleInformation, createCreditRequest.pointOfSaleInformation) &&
Objects.equals(this.merchantDefinedInformation, createCreditRequest.merchantDefinedInformation) &&
Objects.equals(this.merchantDefinedSecureInformation, createCreditRequest.merchantDefinedSecureInformation) &&
Objects.equals(this.installmentInformation, createCreditRequest.installmentInformation) &&
Objects.equals(this.travelInformation, createCreditRequest.travelInformation) &&
Objects.equals(this.recipientInformation, createCreditRequest.recipientInformation) &&
Objects.equals(this.senderInformation, createCreditRequest.senderInformation) &&
Objects.equals(this.promotionInformation, createCreditRequest.promotionInformation);
}
@Override
public int hashCode() {
return Objects.hash(clientReferenceInformation, processingInformation, paymentInformation, orderInformation, buyerInformation, deviceInformation, merchantInformation, aggregatorInformation, pointOfSaleInformation, merchantDefinedInformation, merchantDefinedSecureInformation, installmentInformation, travelInformation, recipientInformation, senderInformation, promotionInformation);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class CreateCreditRequest {\n");
sb.append(" clientReferenceInformation: ").append(toIndentedString(clientReferenceInformation)).append("\n");
sb.append(" processingInformation: ").append(toIndentedString(processingInformation)).append("\n");
sb.append(" paymentInformation: ").append(toIndentedString(paymentInformation)).append("\n");
sb.append(" orderInformation: ").append(toIndentedString(orderInformation)).append("\n");
sb.append(" buyerInformation: ").append(toIndentedString(buyerInformation)).append("\n");
sb.append(" deviceInformation: ").append(toIndentedString(deviceInformation)).append("\n");
sb.append(" merchantInformation: ").append(toIndentedString(merchantInformation)).append("\n");
sb.append(" aggregatorInformation: ").append(toIndentedString(aggregatorInformation)).append("\n");
sb.append(" pointOfSaleInformation: ").append(toIndentedString(pointOfSaleInformation)).append("\n");
sb.append(" merchantDefinedInformation: ").append(toIndentedString(merchantDefinedInformation)).append("\n");
sb.append(" merchantDefinedSecureInformation: ").append(toIndentedString(merchantDefinedSecureInformation)).append("\n");
sb.append(" installmentInformation: ").append(toIndentedString(installmentInformation)).append("\n");
sb.append(" travelInformation: ").append(toIndentedString(travelInformation)).append("\n");
sb.append(" recipientInformation: ").append(toIndentedString(recipientInformation)).append("\n");
sb.append(" senderInformation: ").append(toIndentedString(senderInformation)).append("\n");
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