com.stripe.model.StripeErrorResponse Maven / Gradle / Ivy
// Generated by delombok at Wed Jun 30 19:13:17 EDT 2021
// File generated from our OpenAPI spec
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 - 2025 Weber Informatics LLC | Privacy Policy