package com.stripe.model; public final class ShippingDetails extends StripeObject { protected Address address; protected String name; protected String phone; public Address getAddress() { return address; } public void setAddress(Address address) { this.address = address; } public String getName() { return name; } public void setName(String name) { this.name = name; } public String getPhone() { return phone; } public void setPhone(String phone) { this.phone = phone; } @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } ShippingDetails that = (ShippingDetails) o; if (address != null ? !address.equals(that.address) : that.address != null) { return false; } if (name != null ? !name.equals(that.name) : that.name != null) { return false; } if (phone != null ? !phone.equals(that.phone) : that.phone != null) { return false; } return true; } @Override public int hashCode() { int result = address != null ? address.hashCode() : 0; result = 31 * result + (name != null ? name.hashCode() : 0); result = 31 * result + (phone != null ? phone.hashCode() : 0); return result; } }