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

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

There is a newer version: 1.14.0
Show newest version
// Generated by delombok at Wed Oct 12 18:15:55 CDT 2016
package com.paypal.api.payments;

import com.paypal.base.rest.PayPalModel;

public class PaymentTerm extends PayPalModel {
	/**
	 * The terms by which the invoice payment is due.
	 */
	private String termType;
	/**
	 * The date when the invoice payment is due. This date must be a future date. Date format is *yyyy*-*MM*-*dd* *z*, as defined in [Internet Date/Time Format](http://tools.ietf.org/html/rfc3339#section-5.6).
	 */
	private String dueDate;

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

	/**
	 * The terms by which the invoice payment is due.
	 */
	@java.lang.SuppressWarnings("all")
	public String getTermType() {
		return this.termType;
	}

	/**
	 * The date when the invoice payment is due. This date must be a future date. Date format is *yyyy*-*MM*-*dd* *z*, as defined in [Internet Date/Time Format](http://tools.ietf.org/html/rfc3339#section-5.6).
	 */
	@java.lang.SuppressWarnings("all")
	public String getDueDate() {
		return this.dueDate;
	}

	/**
	 * The terms by which the invoice payment is due.
	 * @return this
	 */
	@java.lang.SuppressWarnings("all")
	public PaymentTerm setTermType(final String termType) {
		this.termType = termType;
		return this;
	}

	/**
	 * The date when the invoice payment is due. This date must be a future date. Date format is *yyyy*-*MM*-*dd* *z*, as defined in [Internet Date/Time Format](http://tools.ietf.org/html/rfc3339#section-5.6).
	 * @return this
	 */
	@java.lang.SuppressWarnings("all")
	public PaymentTerm setDueDate(final String dueDate) {
		this.dueDate = dueDate;
		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 PaymentTerm)) return false;
		final PaymentTerm other = (PaymentTerm) o;
		if (!other.canEqual((java.lang.Object) this)) return false;
		if (!super.equals(o)) return false;
		final java.lang.Object this$termType = this.getTermType();
		final java.lang.Object other$termType = other.getTermType();
		if (this$termType == null ? other$termType != null : !this$termType.equals(other$termType)) return false;
		final java.lang.Object this$dueDate = this.getDueDate();
		final java.lang.Object other$dueDate = other.getDueDate();
		if (this$dueDate == null ? other$dueDate != null : !this$dueDate.equals(other$dueDate)) return false;
		return true;
	}

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

	@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 $termType = this.getTermType();
		result = result * PRIME + ($termType == null ? 43 : $termType.hashCode());
		final java.lang.Object $dueDate = this.getDueDate();
		result = result * PRIME + ($dueDate == null ? 43 : $dueDate.hashCode());
		return result;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy