com.stripe.model.issuing.CardDetails Maven / Gradle / Ivy
// Generated by delombok at Mon Sep 24 15:00:09 CEST 2018
package com.stripe.model.issuing;
import com.stripe.model.ExpandableField;
import com.stripe.net.ApiResource;
public class CardDetails extends ApiResource {
String object;
ExpandableField card;
String cvc;
Integer expMonth;
Integer expYear;
String number;
//
public String getCard() {
return (this.card != null) ? this.card.getId() : null;
}
public void setCard(String cardId) {
this.card = setExpandableFieldId(cardId, this.card);
}
public Card getCardObject() {
return (this.card != null) ? this.card.getExpanded() : null;
}
public void setCardObject(Card c) {
this.card = new ExpandableField(c.getId(), c);
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
public String getObject() {
return this.object;
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
public String getCvc() {
return this.cvc;
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
public Integer getExpMonth() {
return this.expMonth;
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
public Integer getExpYear() {
return this.expYear;
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
public String getNumber() {
return this.number;
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
public void setObject(final String object) {
this.object = object;
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
public void setCvc(final String cvc) {
this.cvc = cvc;
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
public void setExpMonth(final Integer expMonth) {
this.expMonth = expMonth;
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
public void setExpYear(final Integer expYear) {
this.expYear = expYear;
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
public void setNumber(final String number) {
this.number = number;
}
@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 CardDetails)) return false;
final CardDetails other = (CardDetails) o;
if (!other.canEqual((java.lang.Object) this)) 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$card = this.getCard();
final java.lang.Object other$card = other.getCard();
if (this$card == null ? other$card != null : !this$card.equals(other$card)) return false;
final java.lang.Object this$cvc = this.getCvc();
final java.lang.Object other$cvc = other.getCvc();
if (this$cvc == null ? other$cvc != null : !this$cvc.equals(other$cvc)) return false;
final java.lang.Object this$expMonth = this.getExpMonth();
final java.lang.Object other$expMonth = other.getExpMonth();
if (this$expMonth == null ? other$expMonth != null : !this$expMonth.equals(other$expMonth)) return false;
final java.lang.Object this$expYear = this.getExpYear();
final java.lang.Object other$expYear = other.getExpYear();
if (this$expYear == null ? other$expYear != null : !this$expYear.equals(other$expYear)) return false;
final java.lang.Object this$number = this.getNumber();
final java.lang.Object other$number = other.getNumber();
if (this$number == null ? other$number != null : !this$number.equals(other$number)) return false;
return true;
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
protected boolean canEqual(final java.lang.Object other) {
return other instanceof CardDetails;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
@lombok.Generated
public int hashCode() {
final int PRIME = 59;
int result = 1;
final java.lang.Object $object = this.getObject();
result = result * PRIME + ($object == null ? 43 : $object.hashCode());
final java.lang.Object $card = this.getCard();
result = result * PRIME + ($card == null ? 43 : $card.hashCode());
final java.lang.Object $cvc = this.getCvc();
result = result * PRIME + ($cvc == null ? 43 : $cvc.hashCode());
final java.lang.Object $expMonth = this.getExpMonth();
result = result * PRIME + ($expMonth == null ? 43 : $expMonth.hashCode());
final java.lang.Object $expYear = this.getExpYear();
result = result * PRIME + ($expYear == null ? 43 : $expYear.hashCode());
final java.lang.Object $number = this.getNumber();
result = result * PRIME + ($number == null ? 43 : $number.hashCode());
return result;
}
//
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy