/*
 * 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;

/**
 * The bank addendum acceptance for the end customer.
 */
@ApiModel(description = "The bank addendum acceptance for the end customer.")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-12-11T18:58:39.328614Z[Etc/UTC]")
public class PartnerEndCustomerBankAddendumAcceptance {
  public static final String SERIALIZED_NAME_CUSTOMER_ACCEPTED = "customer_accepted";
  @SerializedName(SERIALIZED_NAME_CUSTOMER_ACCEPTED)
  private Boolean customerAccepted;

  public static final String SERIALIZED_NAME_CUSTOMER_IP_ADDRESS = "customer_ip_address";
  @SerializedName(SERIALIZED_NAME_CUSTOMER_IP_ADDRESS)
  private String customerIpAddress;

  public static final String SERIALIZED_NAME_CUSTOMER_AGREEMENT_TIMESTAMP = "customer_agreement_timestamp";
  @SerializedName(SERIALIZED_NAME_CUSTOMER_AGREEMENT_TIMESTAMP)
  private OffsetDateTime customerAgreementTimestamp;


  public PartnerEndCustomerBankAddendumAcceptance customerAccepted(Boolean customerAccepted) {
    
    this.customerAccepted = customerAccepted;
    return this;
  }

   /**
   * Denotes whether the end customer has accepted the bank addendum terms.
   * @return customerAccepted
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "Denotes whether the end customer has accepted the bank addendum terms.")

  public Boolean getCustomerAccepted() {
    return customerAccepted;
  }


  public void setCustomerAccepted(Boolean customerAccepted) {
    this.customerAccepted = customerAccepted;
  }


  public PartnerEndCustomerBankAddendumAcceptance customerIpAddress(String customerIpAddress) {
    
    this.customerIpAddress = customerIpAddress;
    return this;
  }

   /**
   * The IP address of the end customer when they accepted the bank addendum.
   * @return customerIpAddress
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "The IP address of the end customer when they accepted the bank addendum.")

  public String getCustomerIpAddress() {
    return customerIpAddress;
  }


  public void setCustomerIpAddress(String customerIpAddress) {
    this.customerIpAddress = customerIpAddress;
  }


  public PartnerEndCustomerBankAddendumAcceptance customerAgreementTimestamp(OffsetDateTime customerAgreementTimestamp) {
    
    this.customerAgreementTimestamp = customerAgreementTimestamp;
    return this;
  }

   /**
   * The timestamp of when the end customer accepted the bank addendum in [ISO 8601](https://wikipedia.org/wiki/ISO_8601) format (&#x60;YYYY-MM-DDTHH:mm:ssZ&#x60;).
   * @return customerAgreementTimestamp
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "The timestamp of when the end customer accepted the bank addendum in [ISO 8601](https://wikipedia.org/wiki/ISO_8601) format (`YYYY-MM-DDTHH:mm:ssZ`).")

  public OffsetDateTime getCustomerAgreementTimestamp() {
    return customerAgreementTimestamp;
  }


  public void setCustomerAgreementTimestamp(OffsetDateTime customerAgreementTimestamp) {
    this.customerAgreementTimestamp = customerAgreementTimestamp;
  }


  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    PartnerEndCustomerBankAddendumAcceptance partnerEndCustomerBankAddendumAcceptance = (PartnerEndCustomerBankAddendumAcceptance) o;
    return Objects.equals(this.customerAccepted, partnerEndCustomerBankAddendumAcceptance.customerAccepted) &&
        Objects.equals(this.customerIpAddress, partnerEndCustomerBankAddendumAcceptance.customerIpAddress) &&
        Objects.equals(this.customerAgreementTimestamp, partnerEndCustomerBankAddendumAcceptance.customerAgreementTimestamp);
  }

  @Override
  public int hashCode() {
    return Objects.hash(customerAccepted, customerIpAddress, customerAgreementTimestamp);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class PartnerEndCustomerBankAddendumAcceptance {\n");
    sb.append("    customerAccepted: ").append(toIndentedString(customerAccepted)).append("\n");
    sb.append("    customerIpAddress: ").append(toIndentedString(customerIpAddress)).append("\n");
    sb.append("    customerAgreementTimestamp: ").append(toIndentedString(customerAgreementTimestamp)).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    ");
  }

}

