com.stripe.model.IssuerFraudRecord Maven / Gradle / Ivy
// Generated by delombok at Wed Nov 28 11:15:52 EST 2018
package com.stripe.model;
import com.stripe.exception.StripeException;
import com.stripe.net.ApiResource;
import com.stripe.net.RequestOptions;
import java.util.Map;
public class IssuerFraudRecord extends ApiResource implements HasId {
String id;
String object;
ExpandableField charge;
Long created;
String fraudType;
Boolean livemode;
Long postDate;
//
public String getCharge() {
return (this.charge != null) ? this.charge.getId() : null;
}
public void setCharge(String chargeId) {
this.charge = setExpandableFieldId(chargeId, this.charge);
}
public Charge getChargeObject() {
return (this.charge != null) ? this.charge.getExpanded() : null;
}
public void setChargeObject(Charge c) {
this.charge = new ExpandableField(c.getId(), c);
}
//
//
public static IssuerFraudRecordCollection list(Map params) throws StripeException {
return list(params, null);
}
/**
* Returns the IssuerFraudRecordCollection listing.
*
* @param params The standard parameters for the listing.
* @param options The standard request options for the listing.
* @return the listing of params at /v1/issuer_fraud_records.
*/
public static IssuerFraudRecordCollection list(Map params, RequestOptions options) throws StripeException {
return requestCollection(classUrl(IssuerFraudRecord.class), params, IssuerFraudRecordCollection.class, options);
}
//
//
public static IssuerFraudRecord retrieve(String id) throws StripeException {
return retrieve(id, null);
}
public static IssuerFraudRecord retrieve(String id, RequestOptions options) throws StripeException {
return retrieve(id, null, options);
}
public static IssuerFraudRecord retrieve(String id, Map params, RequestOptions options) throws StripeException {
String url = instanceUrl(IssuerFraudRecord.class, id);
return request(RequestMethod.GET, url, null, IssuerFraudRecord.class, null);
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
public String getObject() {
return this.object;
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
public Long getCreated() {
return this.created;
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
public String getFraudType() {
return this.fraudType;
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
public Boolean getLivemode() {
return this.livemode;
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
public Long getPostDate() {
return this.postDate;
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
public void setId(final String id) {
this.id = id;
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
public void setObject(final String object) {
this.object = object;
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
public void setCreated(final Long created) {
this.created = created;
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
public void setFraudType(final String fraudType) {
this.fraudType = fraudType;
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
public void setLivemode(final Boolean livemode) {
this.livemode = livemode;
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
public void setPostDate(final Long postDate) {
this.postDate = postDate;
}
@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 IssuerFraudRecord)) return false;
final IssuerFraudRecord other = (IssuerFraudRecord) o;
if (!other.canEqual((java.lang.Object) this)) 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$object = this.getObject();
final java.lang.Object other$object = other.getObject();
if (this$object == null ? other$object != null : !this$object.equals(other$object)) return false;
final java.lang.Object this$charge = this.getCharge();
final java.lang.Object other$charge = other.getCharge();
if (this$charge == null ? other$charge != null : !this$charge.equals(other$charge)) return false;
final java.lang.Object this$created = this.getCreated();
final java.lang.Object other$created = other.getCreated();
if (this$created == null ? other$created != null : !this$created.equals(other$created)) return false;
final java.lang.Object this$fraudType = this.getFraudType();
final java.lang.Object other$fraudType = other.getFraudType();
if (this$fraudType == null ? other$fraudType != null : !this$fraudType.equals(other$fraudType)) return false;
final java.lang.Object this$livemode = this.getLivemode();
final java.lang.Object other$livemode = other.getLivemode();
if (this$livemode == null ? other$livemode != null : !this$livemode.equals(other$livemode)) return false;
final java.lang.Object this$postDate = this.getPostDate();
final java.lang.Object other$postDate = other.getPostDate();
if (this$postDate == null ? other$postDate != null : !this$postDate.equals(other$postDate)) return false;
return true;
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
protected boolean canEqual(final java.lang.Object other) {
return other instanceof IssuerFraudRecord;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
@lombok.Generated
public int hashCode() {
final int PRIME = 59;
int result = 1;
final java.lang.Object $id = this.getId();
result = result * PRIME + ($id == null ? 43 : $id.hashCode());
final java.lang.Object $object = this.getObject();
result = result * PRIME + ($object == null ? 43 : $object.hashCode());
final java.lang.Object $charge = this.getCharge();
result = result * PRIME + ($charge == null ? 43 : $charge.hashCode());
final java.lang.Object $created = this.getCreated();
result = result * PRIME + ($created == null ? 43 : $created.hashCode());
final java.lang.Object $fraudType = this.getFraudType();
result = result * PRIME + ($fraudType == null ? 43 : $fraudType.hashCode());
final java.lang.Object $livemode = this.getLivemode();
result = result * PRIME + ($livemode == null ? 43 : $livemode.hashCode());
final java.lang.Object $postDate = this.getPostDate();
result = result * PRIME + ($postDate == null ? 43 : $postDate.hashCode());
return result;
}
@Override
@java.lang.SuppressWarnings("all")
@lombok.Generated
public String getId() {
return this.id;
}
//
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy