com.stripe.model.radar.Rule Maven / Gradle / Ivy
// Generated by delombok at Wed Aug 05 16:28:33 PDT 2020
package com.stripe.model.radar;
import com.google.gson.annotations.SerializedName;
import com.stripe.model.HasId;
import com.stripe.model.StripeObject;
public class Rule extends StripeObject implements HasId {
/**
* The action taken on the payment.
*/
@SerializedName("action")
String action;
/**
* Always true for a deleted object.
*/
@SerializedName("deleted")
Boolean deleted;
/**
* Unique identifier for the object.
*/
@SerializedName("id")
String id;
/**
* The predicate to evaluate the payment against.
*/
@SerializedName("predicate")
String predicate;
/**
* The action taken on the payment.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public String getAction() {
return this.action;
}
/**
* Always true for a deleted object.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public Boolean getDeleted() {
return this.deleted;
}
/**
* The predicate to evaluate the payment against.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public String getPredicate() {
return this.predicate;
}
/**
* The action taken on the payment.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public void setAction(final String action) {
this.action = action;
}
/**
* Always true for a deleted object.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public void setDeleted(final Boolean deleted) {
this.deleted = deleted;
}
/**
* Unique identifier for the object.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public void setId(final String id) {
this.id = id;
}
/**
* The predicate to evaluate the payment against.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public void setPredicate(final String predicate) {
this.predicate = predicate;
}
@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 Rule)) return false;
final Rule other = (Rule) o;
if (!other.canEqual((java.lang.Object) this)) return false;
final java.lang.Object this$action = this.getAction();
final java.lang.Object other$action = other.getAction();
if (this$action == null ? other$action != null : !this$action.equals(other$action)) return false;
final java.lang.Object this$deleted = this.getDeleted();
final java.lang.Object other$deleted = other.getDeleted();
if (this$deleted == null ? other$deleted != null : !this$deleted.equals(other$deleted)) return false;
final java.lang.Object this$id = this.getId();
final java.lang.Object other$id = other.getId();
if (this$id == null ? other$id != null : !this$id.equals(other$id)) return false;
final java.lang.Object this$predicate = this.getPredicate();
final java.lang.Object other$predicate = other.getPredicate();
if (this$predicate == null ? other$predicate != null : !this$predicate.equals(other$predicate)) return false;
return true;
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
protected boolean canEqual(final java.lang.Object other) {
return other instanceof Rule;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
@lombok.Generated
public int hashCode() {
final int PRIME = 59;
int result = 1;
final java.lang.Object $action = this.getAction();
result = result * PRIME + ($action == null ? 43 : $action.hashCode());
final java.lang.Object $deleted = this.getDeleted();
result = result * PRIME + ($deleted == null ? 43 : $deleted.hashCode());
final java.lang.Object $id = this.getId();
result = result * PRIME + ($id == null ? 43 : $id.hashCode());
final java.lang.Object $predicate = this.getPredicate();
result = result * PRIME + ($predicate == null ? 43 : $predicate.hashCode());
return result;
}
/**
* Unique identifier for the object.
*/
@Override
@java.lang.SuppressWarnings("all")
@lombok.Generated
public String getId() {
return this.id;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy