/*
 * 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 io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;
import java.time.OffsetDateTime;

/**
 * Metadata related to the acceptance of Terms of Service
 */
@ApiModel(description = "Metadata related to the acceptance of Terms of Service")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-12-11T18:58:39.328614Z[Etc/UTC]")
public class TransferPlatformTOSAcceptanceMetadata {
  public static final String SERIALIZED_NAME_AGREEMENT_ACCEPTED = "agreement_accepted";
  @SerializedName(SERIALIZED_NAME_AGREEMENT_ACCEPTED)
  private Boolean agreementAccepted;

  public static final String SERIALIZED_NAME_ORIGINATOR_IP_ADDRESS = "originator_ip_address";
  @SerializedName(SERIALIZED_NAME_ORIGINATOR_IP_ADDRESS)
  private String originatorIpAddress;

  public static final String SERIALIZED_NAME_AGREEMENT_ACCEPTED_AT = "agreement_accepted_at";
  @SerializedName(SERIALIZED_NAME_AGREEMENT_ACCEPTED_AT)
  private OffsetDateTime agreementAcceptedAt;


  public TransferPlatformTOSAcceptanceMetadata agreementAccepted(Boolean agreementAccepted) {
    
    this.agreementAccepted = agreementAccepted;
    return this;
  }

   /**
   * Indicates whether the TOS agreement was accepted
   * @return agreementAccepted
  **/
  @ApiModelProperty(required = true, value = "Indicates whether the TOS agreement was accepted")

  public Boolean getAgreementAccepted() {
    return agreementAccepted;
  }


  public void setAgreementAccepted(Boolean agreementAccepted) {
    this.agreementAccepted = agreementAccepted;
  }


  public TransferPlatformTOSAcceptanceMetadata originatorIpAddress(String originatorIpAddress) {
    
    this.originatorIpAddress = originatorIpAddress;
    return this;
  }

   /**
   * The IP address of the originator when they accepted the TOS. Formatted as an IPv4 or IPv6 IP address
   * @return originatorIpAddress
  **/
  @ApiModelProperty(required = true, value = "The IP address of the originator when they accepted the TOS. Formatted as an IPv4 or IPv6 IP address")

  public String getOriginatorIpAddress() {
    return originatorIpAddress;
  }


  public void setOriginatorIpAddress(String originatorIpAddress) {
    this.originatorIpAddress = originatorIpAddress;
  }


  public TransferPlatformTOSAcceptanceMetadata agreementAcceptedAt(OffsetDateTime agreementAcceptedAt) {
    
    this.agreementAcceptedAt = agreementAcceptedAt;
    return this;
  }

   /**
   * ISO8601 timestamp indicating when the originator accepted the TOS
   * @return agreementAcceptedAt
  **/
  @ApiModelProperty(required = true, value = "ISO8601 timestamp indicating when the originator accepted the TOS")

  public OffsetDateTime getAgreementAcceptedAt() {
    return agreementAcceptedAt;
  }


  public void setAgreementAcceptedAt(OffsetDateTime agreementAcceptedAt) {
    this.agreementAcceptedAt = agreementAcceptedAt;
  }


  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    TransferPlatformTOSAcceptanceMetadata transferPlatformTOSAcceptanceMetadata = (TransferPlatformTOSAcceptanceMetadata) o;
    return Objects.equals(this.agreementAccepted, transferPlatformTOSAcceptanceMetadata.agreementAccepted) &&
        Objects.equals(this.originatorIpAddress, transferPlatformTOSAcceptanceMetadata.originatorIpAddress) &&
        Objects.equals(this.agreementAcceptedAt, transferPlatformTOSAcceptanceMetadata.agreementAcceptedAt);
  }

  @Override
  public int hashCode() {
    return Objects.hash(agreementAccepted, originatorIpAddress, agreementAcceptedAt);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class TransferPlatformTOSAcceptanceMetadata {\n");
    sb.append("    agreementAccepted: ").append(toIndentedString(agreementAccepted)).append("\n");
    sb.append("    originatorIpAddress: ").append(toIndentedString(originatorIpAddress)).append("\n");
    sb.append("    agreementAcceptedAt: ").append(toIndentedString(agreementAcceptedAt)).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    ");
  }

}

