com.github.GBSEcom.model.PaymentRegistration Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of first-data-gateway Show documentation
Show all versions of first-data-gateway Show documentation
Java SDK to be used with a First Data Gateway account. This SDK has been created and packaged to offer the easiest way to integrate your application into the First Data Gateway. This SDK gives you the ability to run transactions such as sales, preauthorizations, postauthorizations, credits, voids, and returns; transaction inquiries; setting up scheduled payments and much more.
/*
* Payment Gateway API Specification.
* The documentation here is designed to provide all of the technical guidance required to consume and integrate with our APIs for payment processing. To learn more about our APIs please visit https://docs.firstdata.com/org/gateway.
*
* The version of the OpenAPI document: 21.2.0.20210406.001
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package com.github.GBSEcom.model;
import java.util.Objects;
import java.util.Arrays;
import com.github.GBSEcom.model.Customer;
import com.github.GBSEcom.model.FraudRegistration;
import com.github.GBSEcom.model.FraudRegistrationDevice;
import com.github.GBSEcom.model.IssuerResponse;
import com.github.GBSEcom.model.Merchant;
import com.github.GBSEcom.model.RegistrationMethod;
import com.github.GBSEcom.model.Verification3ds;
import com.github.GBSEcom.model.VerificationAvs;
import com.github.GBSEcom.model.VerificationCvv;
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;
/**
* PaymentRegistration
*/
public class PaymentRegistration {
public static final String SERIALIZED_NAME_MERCHANT_REF = "merchantRef";
@SerializedName(SERIALIZED_NAME_MERCHANT_REF)
private String merchantRef;
public static final String SERIALIZED_NAME_TRANSACTION_TYPE = "transactionType";
@SerializedName(SERIALIZED_NAME_TRANSACTION_TYPE)
private String transactionType;
public static final String SERIALIZED_NAME_CUSTOMER = "customer";
@SerializedName(SERIALIZED_NAME_CUSTOMER)
private Customer customer;
public static final String SERIALIZED_NAME_MERCHANT = "merchant";
@SerializedName(SERIALIZED_NAME_MERCHANT)
private Merchant merchant;
public static final String SERIALIZED_NAME_DEVICE = "device";
@SerializedName(SERIALIZED_NAME_DEVICE)
private FraudRegistrationDevice device;
public static final String SERIALIZED_NAME_USER_DEFINED = "userDefined";
@SerializedName(SERIALIZED_NAME_USER_DEFINED)
private Object userDefined;
public static final String SERIALIZED_NAME_ORIGINAL_TRANSACTION_TYPE = "originalTransactionType";
@SerializedName(SERIALIZED_NAME_ORIGINAL_TRANSACTION_TYPE)
private String originalTransactionType;
public static final String SERIALIZED_NAME_ISSUER_RESPONSE = "issuerResponse";
@SerializedName(SERIALIZED_NAME_ISSUER_RESPONSE)
private IssuerResponse issuerResponse;
public static final String SERIALIZED_NAME_VERIFICATION_AVS = "verificationAvs";
@SerializedName(SERIALIZED_NAME_VERIFICATION_AVS)
private VerificationAvs verificationAvs;
public static final String SERIALIZED_NAME_VERIFICATION3DS = "verification3ds";
@SerializedName(SERIALIZED_NAME_VERIFICATION3DS)
private Verification3ds verification3ds;
public static final String SERIALIZED_NAME_VERIFICATION_CVV = "verificationCvv";
@SerializedName(SERIALIZED_NAME_VERIFICATION_CVV)
private VerificationCvv verificationCvv;
public static final String SERIALIZED_NAME_REGISTRATION_METHOD = "registrationMethod";
@SerializedName(SERIALIZED_NAME_REGISTRATION_METHOD)
private RegistrationMethod registrationMethod;
public PaymentRegistration merchantRef(String merchantRef) {
this.merchantRef = merchantRef;
return this;
}
/**
* Merchant reference code. Used by FirstAPI and reflected in settlement records and webhook notifications. Typically, the merchantRef field is the purchase order number or unique sequence value associated to a given transaction.
* @return merchantRef
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "ffd031516002", value = "Merchant reference code. Used by FirstAPI and reflected in settlement records and webhook notifications. Typically, the merchantRef field is the purchase order number or unique sequence value associated to a given transaction.")
public String getMerchantRef() {
return merchantRef;
}
public void setMerchantRef(String merchantRef) {
this.merchantRef = merchantRef;
}
public PaymentRegistration transactionType(String transactionType) {
this.transactionType = transactionType;
return this;
}
/**
* Type of transaction merchant wants to process.
* @return transactionType
**/
@ApiModelProperty(example = "registration", required = true, value = "Type of transaction merchant wants to process.")
public String getTransactionType() {
return transactionType;
}
public void setTransactionType(String transactionType) {
this.transactionType = transactionType;
}
public PaymentRegistration customer(Customer customer) {
this.customer = customer;
return this;
}
/**
* Get customer
* @return customer
**/
@ApiModelProperty(required = true, value = "")
public Customer getCustomer() {
return customer;
}
public void setCustomer(Customer customer) {
this.customer = customer;
}
public PaymentRegistration merchant(Merchant merchant) {
this.merchant = merchant;
return this;
}
/**
* Get merchant
* @return merchant
**/
@ApiModelProperty(required = true, value = "")
public Merchant getMerchant() {
return merchant;
}
public void setMerchant(Merchant merchant) {
this.merchant = merchant;
}
public PaymentRegistration device(FraudRegistrationDevice device) {
this.device = device;
return this;
}
/**
* Get device
* @return device
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public FraudRegistrationDevice getDevice() {
return device;
}
public void setDevice(FraudRegistrationDevice device) {
this.device = device;
}
public PaymentRegistration userDefined(Object userDefined) {
this.userDefined = userDefined;
return this;
}
/**
* A JSON object that can carry any additional information that might be helpful for fraud detection.
* @return userDefined
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "{\"inauthTransId\":\"1234\"}", value = "A JSON object that can carry any additional information that might be helpful for fraud detection.")
public Object getUserDefined() {
return userDefined;
}
public void setUserDefined(Object userDefined) {
this.userDefined = userDefined;
}
public PaymentRegistration originalTransactionType(String originalTransactionType) {
this.originalTransactionType = originalTransactionType;
return this;
}
/**
* Defines the type of the original transaction that is being evaluated for the Fraud Score.
* @return originalTransactionType
**/
@ApiModelProperty(example = "registration/method/card", required = true, value = "Defines the type of the original transaction that is being evaluated for the Fraud Score.")
public String getOriginalTransactionType() {
return originalTransactionType;
}
public void setOriginalTransactionType(String originalTransactionType) {
this.originalTransactionType = originalTransactionType;
}
public PaymentRegistration issuerResponse(IssuerResponse issuerResponse) {
this.issuerResponse = issuerResponse;
return this;
}
/**
* Get issuerResponse
* @return issuerResponse
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public IssuerResponse getIssuerResponse() {
return issuerResponse;
}
public void setIssuerResponse(IssuerResponse issuerResponse) {
this.issuerResponse = issuerResponse;
}
public PaymentRegistration verificationAvs(VerificationAvs verificationAvs) {
this.verificationAvs = verificationAvs;
return this;
}
/**
* Get verificationAvs
* @return verificationAvs
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public VerificationAvs getVerificationAvs() {
return verificationAvs;
}
public void setVerificationAvs(VerificationAvs verificationAvs) {
this.verificationAvs = verificationAvs;
}
public PaymentRegistration verification3ds(Verification3ds verification3ds) {
this.verification3ds = verification3ds;
return this;
}
/**
* Get verification3ds
* @return verification3ds
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public Verification3ds getVerification3ds() {
return verification3ds;
}
public void setVerification3ds(Verification3ds verification3ds) {
this.verification3ds = verification3ds;
}
public PaymentRegistration verificationCvv(VerificationCvv verificationCvv) {
this.verificationCvv = verificationCvv;
return this;
}
/**
* Get verificationCvv
* @return verificationCvv
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public VerificationCvv getVerificationCvv() {
return verificationCvv;
}
public void setVerificationCvv(VerificationCvv verificationCvv) {
this.verificationCvv = verificationCvv;
}
public PaymentRegistration registrationMethod(RegistrationMethod registrationMethod) {
this.registrationMethod = registrationMethod;
return this;
}
/**
* Get registrationMethod
* @return registrationMethod
**/
@ApiModelProperty(required = true, value = "")
public RegistrationMethod getRegistrationMethod() {
return registrationMethod;
}
public void setRegistrationMethod(RegistrationMethod registrationMethod) {
this.registrationMethod = registrationMethod;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
PaymentRegistration paymentRegistration = (PaymentRegistration) o;
return Objects.equals(this.merchantRef, paymentRegistration.merchantRef) &&
Objects.equals(this.transactionType, paymentRegistration.transactionType) &&
Objects.equals(this.customer, paymentRegistration.customer) &&
Objects.equals(this.merchant, paymentRegistration.merchant) &&
Objects.equals(this.device, paymentRegistration.device) &&
Objects.equals(this.userDefined, paymentRegistration.userDefined) &&
Objects.equals(this.originalTransactionType, paymentRegistration.originalTransactionType) &&
Objects.equals(this.issuerResponse, paymentRegistration.issuerResponse) &&
Objects.equals(this.verificationAvs, paymentRegistration.verificationAvs) &&
Objects.equals(this.verification3ds, paymentRegistration.verification3ds) &&
Objects.equals(this.verificationCvv, paymentRegistration.verificationCvv) &&
Objects.equals(this.registrationMethod, paymentRegistration.registrationMethod);
}
@Override
public int hashCode() {
return Objects.hash(merchantRef, transactionType, customer, merchant, device, userDefined, originalTransactionType, issuerResponse, verificationAvs, verification3ds, verificationCvv, registrationMethod);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class PaymentRegistration {\n");
sb.append(" merchantRef: ").append(toIndentedString(merchantRef)).append("\n");
sb.append(" transactionType: ").append(toIndentedString(transactionType)).append("\n");
sb.append(" customer: ").append(toIndentedString(customer)).append("\n");
sb.append(" merchant: ").append(toIndentedString(merchant)).append("\n");
sb.append(" device: ").append(toIndentedString(device)).append("\n");
sb.append(" userDefined: ").append(toIndentedString(userDefined)).append("\n");
sb.append(" originalTransactionType: ").append(toIndentedString(originalTransactionType)).append("\n");
sb.append(" issuerResponse: ").append(toIndentedString(issuerResponse)).append("\n");
sb.append(" verificationAvs: ").append(toIndentedString(verificationAvs)).append("\n");
sb.append(" verification3ds: ").append(toIndentedString(verification3ds)).append("\n");
sb.append(" verificationCvv: ").append(toIndentedString(verificationCvv)).append("\n");
sb.append(" registrationMethod: ").append(toIndentedString(registrationMethod)).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