/*
 * The Plaid API
 * The Plaid REST API. Please see https://plaid.com/docs/api for more details.
 *
 * The version of the OpenAPI document: 2020-09-14_1.680.0
 * 
 *
 * 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.plaid.client.model;

import java.util.Objects;
import java.util.Arrays;
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 com.plaid.client.model.FDXEventStatus;
import com.plaid.client.model.FDXPartyType;
import com.plaid.client.model.FDXUpdateReason;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;
import java.time.OffsetDateTime;

/**
 * Details of consent or payment network identifier or other entity&#39;s revocation request or other lifecycle status change event
 */
@ApiModel(description = "Details of consent or payment network identifier or other entity's revocation request or other lifecycle status change event")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-12-11T18:58:39.328614Z[Etc/UTC]")
public class FDXLifecycleEvent {
  public static final String SERIALIZED_NAME_STATUS = "status";
  @SerializedName(SERIALIZED_NAME_STATUS)
  private FDXEventStatus status;

  public static final String SERIALIZED_NAME_REASON = "reason";
  @SerializedName(SERIALIZED_NAME_REASON)
  private FDXUpdateReason reason;

  public static final String SERIALIZED_NAME_OTHER_REASON = "otherReason";
  @SerializedName(SERIALIZED_NAME_OTHER_REASON)
  private String otherReason;

  public static final String SERIALIZED_NAME_INITIATOR = "initiator";
  @SerializedName(SERIALIZED_NAME_INITIATOR)
  private FDXPartyType initiator;

  public static final String SERIALIZED_NAME_UPDATED_TIME = "updatedTime";
  @SerializedName(SERIALIZED_NAME_UPDATED_TIME)
  private OffsetDateTime updatedTime;


  public FDXLifecycleEvent status(FDXEventStatus status) {
    
    this.status = status;
    return this;
  }

   /**
   * Get status
   * @return status
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "")

  public FDXEventStatus getStatus() {
    return status;
  }


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


  public FDXLifecycleEvent reason(FDXUpdateReason reason) {
    
    this.reason = reason;
    return this;
  }

   /**
   * Get reason
   * @return reason
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "")

  public FDXUpdateReason getReason() {
    return reason;
  }


  public void setReason(FDXUpdateReason reason) {
    this.reason = reason;
  }


  public FDXLifecycleEvent otherReason(String otherReason) {
    
    this.otherReason = otherReason;
    return this;
  }

   /**
   * Additional information or description of an &#x60;OTHER&#x60; reason
   * @return otherReason
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "Additional information or description of an `OTHER` reason")

  public String getOtherReason() {
    return otherReason;
  }


  public void setOtherReason(String otherReason) {
    this.otherReason = otherReason;
  }


  public FDXLifecycleEvent initiator(FDXPartyType initiator) {
    
    this.initiator = initiator;
    return this;
  }

   /**
   * Get initiator
   * @return initiator
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "")

  public FDXPartyType getInitiator() {
    return initiator;
  }


  public void setInitiator(FDXPartyType initiator) {
    this.initiator = initiator;
  }


  public FDXLifecycleEvent updatedTime(OffsetDateTime updatedTime) {
    
    this.updatedTime = updatedTime;
    return this;
  }

   /**
   * ISO 8601 date-time in format &#39;YYYY-MM-DDThh:mm:ss.nnn[Z|[+|-]hh:mm]&#39; according to [IETF RFC3339](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14)
   * @return updatedTime
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(example = "2021-07-15T14:46:41.375Z", value = "ISO 8601 date-time in format 'YYYY-MM-DDThh:mm:ss.nnn[Z|[+|-]hh:mm]' according to [IETF RFC3339](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14)")

  public OffsetDateTime getUpdatedTime() {
    return updatedTime;
  }


  public void setUpdatedTime(OffsetDateTime updatedTime) {
    this.updatedTime = updatedTime;
  }


  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    FDXLifecycleEvent fdXLifecycleEvent = (FDXLifecycleEvent) o;
    return Objects.equals(this.status, fdXLifecycleEvent.status) &&
        Objects.equals(this.reason, fdXLifecycleEvent.reason) &&
        Objects.equals(this.otherReason, fdXLifecycleEvent.otherReason) &&
        Objects.equals(this.initiator, fdXLifecycleEvent.initiator) &&
        Objects.equals(this.updatedTime, fdXLifecycleEvent.updatedTime);
  }

  @Override
  public int hashCode() {
    return Objects.hash(status, reason, otherReason, initiator, updatedTime);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class FDXLifecycleEvent {\n");
    sb.append("    status: ").append(toIndentedString(status)).append("\n");
    sb.append("    reason: ").append(toIndentedString(reason)).append("\n");
    sb.append("    otherReason: ").append(toIndentedString(otherReason)).append("\n");
    sb.append("    initiator: ").append(toIndentedString(initiator)).append("\n");
    sb.append("    updatedTime: ").append(toIndentedString(updatedTime)).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    ");
  }

}

