All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.GBSEcom.model.PrimaryTransactionAdditionalDetails Maven / Gradle / Ivy

Go to download

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.

There is a newer version: 1.15.0
Show newest version
/*
 * Payment Gateway API Specification
 * Payment Gateway API for payment processing. 
 *
 * 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 com.github.GBSEcom.model;

import java.util.Objects;
import com.github.GBSEcom.model.InstallmentOptions;
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;

/**
 * PrimaryTransactionAdditionalDetails
 */

public class PrimaryTransactionAdditionalDetails {
  @SerializedName("referenceNumber")
  private String referenceNumber = null;

  @SerializedName("comments")
  private String comments = null;

  @SerializedName("dynamicMerchantName")
  private String dynamicMerchantName = null;

  @SerializedName("invoiceNumber")
  private String invoiceNumber = null;

  @SerializedName("purchaseOrderNumber")
  private String purchaseOrderNumber = null;

  @SerializedName("recurringType")
  private String recurringType = null;

  @SerializedName("installmentOptions")
  private InstallmentOptions installmentOptions = null;

  public PrimaryTransactionAdditionalDetails referenceNumber(String referenceNumber) {
    this.referenceNumber = referenceNumber;
    return this;
  }

   /**
   * For FORCED_TICKET only. Stores the six digit reference number you have received as the result of a successful external authorization (e.g. by phone). The Gateway needs this number for uniquely mapping a ForcedTicket transaction to a previously performed external authorization.] 
   * @return referenceNumber
  **/
  @ApiModelProperty(example = "123455", value = "For FORCED_TICKET only. Stores the six digit reference number you have received as the result of a successful external authorization (e.g. by phone). The Gateway needs this number for uniquely mapping a ForcedTicket transaction to a previously performed external authorization.] ")
  public String getReferenceNumber() {
    return referenceNumber;
  }

  public void setReferenceNumber(String referenceNumber) {
    this.referenceNumber = referenceNumber;
  }

  public PrimaryTransactionAdditionalDetails comments(String comments) {
    this.comments = comments;
    return this;
  }

   /**
   * Get comments
   * @return comments
  **/
  @ApiModelProperty(value = "")
  public String getComments() {
    return comments;
  }

  public void setComments(String comments) {
    this.comments = comments;
  }

  public PrimaryTransactionAdditionalDetails dynamicMerchantName(String dynamicMerchantName) {
    this.dynamicMerchantName = dynamicMerchantName;
    return this;
  }

   /**
   * Get dynamicMerchantName
   * @return dynamicMerchantName
  **/
  @ApiModelProperty(value = "")
  public String getDynamicMerchantName() {
    return dynamicMerchantName;
  }

  public void setDynamicMerchantName(String dynamicMerchantName) {
    this.dynamicMerchantName = dynamicMerchantName;
  }

  public PrimaryTransactionAdditionalDetails invoiceNumber(String invoiceNumber) {
    this.invoiceNumber = invoiceNumber;
    return this;
  }

   /**
   * Get invoiceNumber
   * @return invoiceNumber
  **/
  @ApiModelProperty(value = "")
  public String getInvoiceNumber() {
    return invoiceNumber;
  }

  public void setInvoiceNumber(String invoiceNumber) {
    this.invoiceNumber = invoiceNumber;
  }

  public PrimaryTransactionAdditionalDetails purchaseOrderNumber(String purchaseOrderNumber) {
    this.purchaseOrderNumber = purchaseOrderNumber;
    return this;
  }

   /**
   * Get purchaseOrderNumber
   * @return purchaseOrderNumber
  **/
  @ApiModelProperty(value = "")
  public String getPurchaseOrderNumber() {
    return purchaseOrderNumber;
  }

  public void setPurchaseOrderNumber(String purchaseOrderNumber) {
    this.purchaseOrderNumber = purchaseOrderNumber;
  }

  public PrimaryTransactionAdditionalDetails recurringType(String recurringType) {
    this.recurringType = recurringType;
    return this;
  }

   /**
   * Valid values are 'FIRST', 'REPEAT' and 'STANDING_INSTRUCTION'.
   * @return recurringType
  **/
  @ApiModelProperty(value = "Valid values are 'FIRST', 'REPEAT' and 'STANDING_INSTRUCTION'.")
  public String getRecurringType() {
    return recurringType;
  }

  public void setRecurringType(String recurringType) {
    this.recurringType = recurringType;
  }

  public PrimaryTransactionAdditionalDetails installmentOptions(InstallmentOptions installmentOptions) {
    this.installmentOptions = installmentOptions;
    return this;
  }

   /**
   * Get installmentOptions
   * @return installmentOptions
  **/
  @ApiModelProperty(value = "")
  public InstallmentOptions getInstallmentOptions() {
    return installmentOptions;
  }

  public void setInstallmentOptions(InstallmentOptions installmentOptions) {
    this.installmentOptions = installmentOptions;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    PrimaryTransactionAdditionalDetails primaryTransactionAdditionalDetails = (PrimaryTransactionAdditionalDetails) o;
    return Objects.equals(this.referenceNumber, primaryTransactionAdditionalDetails.referenceNumber) &&
        Objects.equals(this.comments, primaryTransactionAdditionalDetails.comments) &&
        Objects.equals(this.dynamicMerchantName, primaryTransactionAdditionalDetails.dynamicMerchantName) &&
        Objects.equals(this.invoiceNumber, primaryTransactionAdditionalDetails.invoiceNumber) &&
        Objects.equals(this.purchaseOrderNumber, primaryTransactionAdditionalDetails.purchaseOrderNumber) &&
        Objects.equals(this.recurringType, primaryTransactionAdditionalDetails.recurringType) &&
        Objects.equals(this.installmentOptions, primaryTransactionAdditionalDetails.installmentOptions);
  }

  @Override
  public int hashCode() {
    return Objects.hash(referenceNumber, comments, dynamicMerchantName, invoiceNumber, purchaseOrderNumber, recurringType, installmentOptions);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class PrimaryTransactionAdditionalDetails {\n");
    
    sb.append("    referenceNumber: ").append(toIndentedString(referenceNumber)).append("\n");
    sb.append("    comments: ").append(toIndentedString(comments)).append("\n");
    sb.append("    dynamicMerchantName: ").append(toIndentedString(dynamicMerchantName)).append("\n");
    sb.append("    invoiceNumber: ").append(toIndentedString(invoiceNumber)).append("\n");
    sb.append("    purchaseOrderNumber: ").append(toIndentedString(purchaseOrderNumber)).append("\n");
    sb.append("    recurringType: ").append(toIndentedString(recurringType)).append("\n");
    sb.append("    installmentOptions: ").append(toIndentedString(installmentOptions)).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