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

com.stripe.model.StripeErrorResponse 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
// Generated by com.stripe.generator.entity.SdkBuilder
package com.stripe.model;

import com.google.gson.annotations.SerializedName;

public class StripeErrorResponse extends StripeObject {
  @SerializedName("error")
  StripeError error;

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

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

  @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 StripeErrorResponse)) return false;
    final StripeErrorResponse other = (StripeErrorResponse) 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;
    return true;
  }

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

  @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());
    return result;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy