All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.stripe.model.ShippingDetails Maven / Gradle / Ivy

There is a newer version: 28.2.0
Show newest version
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;
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy