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

Model.UpdatePaymentLinkRequest 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.Iplv2paymentlinksidOrderInformation;
import Model.Iplv2paymentlinksidProcessingInformation;
import Model.Iplv2paymentlinksidPurchaseInformation;
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;

/**
 * UpdatePaymentLinkRequest
 */

public class UpdatePaymentLinkRequest {
  @SerializedName("status")
  private String status = null;

  @SerializedName("clientReferenceInformation")
  private Invoicingv2invoicesClientReferenceInformation clientReferenceInformation = null;

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

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

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

  public UpdatePaymentLinkRequest status(String status) {
    this.status = status;
    return this;
  }

   /**
   * The status of the purchase or donation link.  Possible values: - ACTIVE - INACTIVE 
   * @return status
  **/
  @ApiModelProperty(value = "The status of the purchase or donation link.  Possible values: - ACTIVE - INACTIVE ")
  public String getStatus() {
    return status;
  }

  public void setStatus(String status) {
    this.status = status;
  }

  public UpdatePaymentLinkRequest 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 UpdatePaymentLinkRequest processingInformation(Iplv2paymentlinksidProcessingInformation processingInformation) {
    this.processingInformation = processingInformation;
    return this;
  }

   /**
   * Get processingInformation
   * @return processingInformation
  **/
  @ApiModelProperty(value = "")
  public Iplv2paymentlinksidProcessingInformation getProcessingInformation() {
    return processingInformation;
  }

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

  public UpdatePaymentLinkRequest purchaseInformation(Iplv2paymentlinksidPurchaseInformation purchaseInformation) {
    this.purchaseInformation = purchaseInformation;
    return this;
  }

   /**
   * Get purchaseInformation
   * @return purchaseInformation
  **/
  @ApiModelProperty(value = "")
  public Iplv2paymentlinksidPurchaseInformation getPurchaseInformation() {
    return purchaseInformation;
  }

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

  public UpdatePaymentLinkRequest orderInformation(Iplv2paymentlinksidOrderInformation orderInformation) {
    this.orderInformation = orderInformation;
    return this;
  }

   /**
   * Get orderInformation
   * @return orderInformation
  **/
  @ApiModelProperty(value = "")
  public Iplv2paymentlinksidOrderInformation getOrderInformation() {
    return orderInformation;
  }

  public void setOrderInformation(Iplv2paymentlinksidOrderInformation 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;
    }
    UpdatePaymentLinkRequest updatePaymentLinkRequest = (UpdatePaymentLinkRequest) o;
    return Objects.equals(this.status, updatePaymentLinkRequest.status) &&
        Objects.equals(this.clientReferenceInformation, updatePaymentLinkRequest.clientReferenceInformation) &&
        Objects.equals(this.processingInformation, updatePaymentLinkRequest.processingInformation) &&
        Objects.equals(this.purchaseInformation, updatePaymentLinkRequest.purchaseInformation) &&
        Objects.equals(this.orderInformation, updatePaymentLinkRequest.orderInformation);
  }

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


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