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

com.stripe.model.oauth.OAuthError Maven / Gradle / Ivy

There is a newer version: 26.13.0-beta.1
Show newest version
// Generated by delombok at Tue Sep 03 10:42:51 PDT 2019
package com.stripe.model.oauth;

import com.stripe.model.StripeObject;

public class OAuthError extends StripeObject {
  String error;
  String errorDescription;

  @java.lang.SuppressWarnings("all")
  @lombok.Generated
  public String getError() {
    return this.error;
  }

  @java.lang.SuppressWarnings("all")
  @lombok.Generated
  public String getErrorDescription() {
    return this.errorDescription;
  }

  @java.lang.SuppressWarnings("all")
  @lombok.Generated
  public void setError(final String error) {
    this.error = error;
  }

  @java.lang.SuppressWarnings("all")
  @lombok.Generated
  public void setErrorDescription(final String errorDescription) {
    this.errorDescription = errorDescription;
  }

  @java.lang.Override
  @java.lang.SuppressWarnings("all")
  @lombok.Generated
  public boolean equals(final java.lang.Object o) {
    if (o == this) return true;
    if (!(o instanceof OAuthError)) return false;
    final OAuthError other = (OAuthError) o;
    if (!other.canEqual((java.lang.Object) this)) return false;
    final java.lang.Object this$error = this.getError();
    final java.lang.Object other$error = other.getError();
    if (this$error == null ? other$error != null : !this$error.equals(other$error)) return false;
    final java.lang.Object this$errorDescription = this.getErrorDescription();
    final java.lang.Object other$errorDescription = other.getErrorDescription();
    if (this$errorDescription == null ? other$errorDescription != null : !this$errorDescription.equals(other$errorDescription)) return false;
    return true;
  }

  @java.lang.SuppressWarnings("all")
  @lombok.Generated
  protected boolean canEqual(final java.lang.Object other) {
    return other instanceof OAuthError;
  }

  @java.lang.Override
  @java.lang.SuppressWarnings("all")
  @lombok.Generated
  public int hashCode() {
    final int PRIME = 59;
    int result = 1;
    final java.lang.Object $error = this.getError();
    result = result * PRIME + ($error == null ? 43 : $error.hashCode());
    final java.lang.Object $errorDescription = this.getErrorDescription();
    result = result * PRIME + ($errorDescription == null ? 43 : $errorDescription.hashCode());
    return result;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy