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

com.paypal.api.payments.PaymentSummary Maven / Gradle / Ivy

The newest version!
// Generated by delombok at Thu Nov 16 13:48:05 CST 2017
package com.paypal.api.payments;

import com.paypal.base.rest.PayPalModel;

public class PaymentSummary extends PayPalModel {
	/**
	 * Total Amount paid/refunded via PayPal.
	 */
	private Currency paypal;
	/**
	 * Total Amount paid/refunded via other sources.
	 */
	private Currency other;

	/**
	 * Default Constructor
	 */
	public PaymentSummary() {
	}

	/**
	 * Total Amount paid/refunded via PayPal.
	 */
	@java.lang.SuppressWarnings("all")
	public Currency getPaypal() {
		return this.paypal;
	}

	/**
	 * Total Amount paid/refunded via other sources.
	 */
	@java.lang.SuppressWarnings("all")
	public Currency getOther() {
		return this.other;
	}

	/**
	 * Total Amount paid/refunded via PayPal.
	 * @return this
	 */
	@java.lang.SuppressWarnings("all")
	public PaymentSummary setPaypal(final Currency paypal) {
		this.paypal = paypal;
		return this;
	}

	/**
	 * Total Amount paid/refunded via other sources.
	 * @return this
	 */
	@java.lang.SuppressWarnings("all")
	public PaymentSummary setOther(final Currency other) {
		this.other = other;
		return this;
	}

	@java.lang.Override
	@java.lang.SuppressWarnings("all")
	public boolean equals(final java.lang.Object o) {
		if (o == this) return true;
		if (!(o instanceof PaymentSummary)) return false;
		final PaymentSummary other = (PaymentSummary) o;
		if (!other.canEqual((java.lang.Object) this)) return false;
		if (!super.equals(o)) return false;
		final java.lang.Object this$paypal = this.getPaypal();
		final java.lang.Object other$paypal = other.getPaypal();
		if (this$paypal == null ? other$paypal != null : !this$paypal.equals(other$paypal)) return false;
		final java.lang.Object this$other = this.getOther();
		final java.lang.Object other$other = other.getOther();
		if (this$other == null ? other$other != null : !this$other.equals(other$other)) return false;
		return true;
	}

	@java.lang.SuppressWarnings("all")
	protected boolean canEqual(final java.lang.Object other) {
		return other instanceof PaymentSummary;
	}

	@java.lang.Override
	@java.lang.SuppressWarnings("all")
	public int hashCode() {
		final int PRIME = 59;
		int result = 1;
		result = result * PRIME + super.hashCode();
		final java.lang.Object $paypal = this.getPaypal();
		result = result * PRIME + ($paypal == null ? 43 : $paypal.hashCode());
		final java.lang.Object $other = this.getOther();
		result = result * PRIME + ($other == null ? 43 : $other.hashCode());
		return result;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy