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

Model.CreatePaymentLinkRequest Maven / Gradle / Ivy

There is a newer version: 0.0.8
Show newest version
/*
 * 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.Invoicingv2invoicesClientReferenceInformation;
import Model.Iplv2paymentlinksOrderInformation;
import Model.Iplv2paymentlinksProcessingInformation;
import Model.Iplv2paymentlinksPurchaseInformation;
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;

/**
 * CreatePaymentLinkRequest
 */

public class CreatePaymentLinkRequest {
  @SerializedName("clientReferenceInformation")
  private Invoicingv2invoicesClientReferenceInformation clientReferenceInformation = null;

  @SerializedName("processingInformation")
  private Iplv2paymentlinksProcessingInformation processingInformation = null;

  @SerializedName("purchaseInformation")
  private Iplv2paymentlinksPurchaseInformation purchaseInformation = null;

  @SerializedName("orderInformation")
  private Iplv2paymentlinksOrderInformation orderInformation = null;

  public CreatePaymentLinkRequest clientReferenceInformation(Invoicingv2invoicesClientReferenceInformation clientReferenceInformation) {
    this.clientReferenceInformation = clientReferenceInformation;
    return this;
  }

   /**
   * Get clientReferenceInformation
   * @return clientReferenceInformation
  **/
  @ApiModelProperty(value = "")
  public Invoicingv2invoicesClientReferenceInformation getClientReferenceInformation() {
    return clientReferenceInformation;
  }

  public void setClientReferenceInformation(Invoicingv2invoicesClientReferenceInformation clientReferenceInformation) {
    this.clientReferenceInformation = clientReferenceInformation;
  }

  public CreatePaymentLinkRequest processingInformation(Iplv2paymentlinksProcessingInformation processingInformation) {
    this.processingInformation = processingInformation;
    return this;
  }

   /**
   * Get processingInformation
   * @return processingInformation
  **/
  @ApiModelProperty(required = true, value = "")
  public Iplv2paymentlinksProcessingInformation getProcessingInformation() {
    return processingInformation;
  }

  public void setProcessingInformation(Iplv2paymentlinksProcessingInformation processingInformation) {
    this.processingInformation = processingInformation;
  }

  public CreatePaymentLinkRequest purchaseInformation(Iplv2paymentlinksPurchaseInformation purchaseInformation) {
    this.purchaseInformation = purchaseInformation;
    return this;
  }

   /**
   * Get purchaseInformation
   * @return purchaseInformation
  **/
  @ApiModelProperty(required = true, value = "")
  public Iplv2paymentlinksPurchaseInformation getPurchaseInformation() {
    return purchaseInformation;
  }

  public void setPurchaseInformation(Iplv2paymentlinksPurchaseInformation purchaseInformation) {
    this.purchaseInformation = purchaseInformation;
  }

  public CreatePaymentLinkRequest orderInformation(Iplv2paymentlinksOrderInformation orderInformation) {
    this.orderInformation = orderInformation;
    return this;
  }

   /**
   * Get orderInformation
   * @return orderInformation
  **/
  @ApiModelProperty(required = true, value = "")
  public Iplv2paymentlinksOrderInformation getOrderInformation() {
    return orderInformation;
  }

  public void setOrderInformation(Iplv2paymentlinksOrderInformation orderInformation) {
    this.orderInformation = orderInformation;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    CreatePaymentLinkRequest createPaymentLinkRequest = (CreatePaymentLinkRequest) o;
    return Objects.equals(this.clientReferenceInformation, createPaymentLinkRequest.clientReferenceInformation) &&
        Objects.equals(this.processingInformation, createPaymentLinkRequest.processingInformation) &&
        Objects.equals(this.purchaseInformation, createPaymentLinkRequest.purchaseInformation) &&
        Objects.equals(this.orderInformation, createPaymentLinkRequest.orderInformation);
  }

  @Override
  public int hashCode() {
    return Objects.hash(clientReferenceInformation, processingInformation, purchaseInformation, orderInformation);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class CreatePaymentLinkRequest {\n");
    
    if (clientReferenceInformation != null) sb.append("    clientReferenceInformation: ").append(toIndentedString(clientReferenceInformation)).append("\n");
    if (processingInformation != null) sb.append("    processingInformation: ").append(toIndentedString(processingInformation)).append("\n");
    if (purchaseInformation != null) sb.append("    purchaseInformation: ").append(toIndentedString(purchaseInformation)).append("\n");
    if (orderInformation != null) sb.append("    orderInformation: ").append(toIndentedString(orderInformation)).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