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

com.adyen.model.recurring.DisablePermitResult Maven / Gradle / Ivy

There is a newer version: 38.1.0
Show newest version
/*
 * Adyen Recurring API
 *
 * The version of the OpenAPI document: 68
 * 
 *
 * 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.adyen.model.recurring;

import java.util.Objects;
import java.util.Map;
import java.util.HashMap;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.core.JsonProcessingException;


/**
 * DisablePermitResult
 */
@JsonPropertyOrder({
  DisablePermitResult.JSON_PROPERTY_PSP_REFERENCE,
  DisablePermitResult.JSON_PROPERTY_STATUS
})

public class DisablePermitResult {
  public static final String JSON_PROPERTY_PSP_REFERENCE = "pspReference";
  private String pspReference;

  public static final String JSON_PROPERTY_STATUS = "status";
  private String status;

  public DisablePermitResult() { 
  }

  /**
   * A unique reference associated with the request. This value is globally unique; quote it when communicating with us about this request.
   *
   * @param pspReference A unique reference associated with the request. This value is globally unique; quote it when communicating with us about this request.
   * @return the current {@code DisablePermitResult} instance, allowing for method chaining
   */
  public DisablePermitResult pspReference(String pspReference) {
    this.pspReference = pspReference;
    return this;
  }

  /**
   * A unique reference associated with the request. This value is globally unique; quote it when communicating with us about this request.
   * @return pspReference A unique reference associated with the request. This value is globally unique; quote it when communicating with us about this request.
   */
  @JsonProperty(JSON_PROPERTY_PSP_REFERENCE)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public String getPspReference() {
    return pspReference;
  }

  /**
   * A unique reference associated with the request. This value is globally unique; quote it when communicating with us about this request.
   *
   * @param pspReference A unique reference associated with the request. This value is globally unique; quote it when communicating with us about this request.
   */
  @JsonProperty(JSON_PROPERTY_PSP_REFERENCE)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setPspReference(String pspReference) {
    this.pspReference = pspReference;
  }

  /**
   * Status of the disable request.
   *
   * @param status Status of the disable request.
   * @return the current {@code DisablePermitResult} instance, allowing for method chaining
   */
  public DisablePermitResult status(String status) {
    this.status = status;
    return this;
  }

  /**
   * Status of the disable request.
   * @return status Status of the disable request.
   */
  @JsonProperty(JSON_PROPERTY_STATUS)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public String getStatus() {
    return status;
  }

  /**
   * Status of the disable request.
   *
   * @param status Status of the disable request.
   */
  @JsonProperty(JSON_PROPERTY_STATUS)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setStatus(String status) {
    this.status = status;
  }

  /**
   * Return true if this DisablePermitResult object is equal to o.
   */
  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    DisablePermitResult disablePermitResult = (DisablePermitResult) o;
    return Objects.equals(this.pspReference, disablePermitResult.pspReference) &&
        Objects.equals(this.status, disablePermitResult.status);
  }

  @Override
  public int hashCode() {
    return Objects.hash(pspReference, status);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class DisablePermitResult {\n");
    sb.append("    pspReference: ").append(toIndentedString(pspReference)).append("\n");
    sb.append("    status: ").append(toIndentedString(status)).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(Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }

/**
   * Create an instance of DisablePermitResult given an JSON string
   *
   * @param jsonString JSON string
   * @return An instance of DisablePermitResult
   * @throws JsonProcessingException if the JSON string is invalid with respect to DisablePermitResult
   */
  public static DisablePermitResult fromJson(String jsonString) throws JsonProcessingException {
    return JSON.getMapper().readValue(jsonString, DisablePermitResult.class);
  }
/**
  * Convert an instance of DisablePermitResult to an JSON string
  *
  * @return JSON string
  */
  public String toJson() throws JsonProcessingException {
    return JSON.getMapper().writeValueAsString(this);
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy