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

com.paypal.api.payments.Terms 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 Terms extends PayPalModel {
	/**
	 * Identifier of the terms. 128 characters max.
	 */
	private String id;
	/**
	 * Term type. Allowed values: `MONTHLY`, `WEEKLY`, `YEARLY`.
	 */
	private String type;
	/**
	 * Max Amount associated with this term.
	 */
	private Currency maxBillingAmount;
	/**
	 * How many times money can be pulled during this term.
	 */
	private String occurrences;
	/**
	 * Amount_range associated with this term.
	 */
	private Currency amountRange;
	/**
	 * Buyer's ability to edit the amount in this term.
	 */
	private String buyerEditable;

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

	/**
	 * Parameterized Constructor
	 */
	public Terms(String type, Currency maxBillingAmount, String occurrences, Currency amountRange, String buyerEditable) {
		this.type = type;
		this.maxBillingAmount = maxBillingAmount;
		this.occurrences = occurrences;
		this.amountRange = amountRange;
		this.buyerEditable = buyerEditable;
	}

	/**
	 * Identifier of the terms. 128 characters max.
	 */
	@java.lang.SuppressWarnings("all")
	public String getId() {
		return this.id;
	}

	/**
	 * Term type. Allowed values: `MONTHLY`, `WEEKLY`, `YEARLY`.
	 */
	@java.lang.SuppressWarnings("all")
	public String getType() {
		return this.type;
	}

	/**
	 * Max Amount associated with this term.
	 */
	@java.lang.SuppressWarnings("all")
	public Currency getMaxBillingAmount() {
		return this.maxBillingAmount;
	}

	/**
	 * How many times money can be pulled during this term.
	 */
	@java.lang.SuppressWarnings("all")
	public String getOccurrences() {
		return this.occurrences;
	}

	/**
	 * Amount_range associated with this term.
	 */
	@java.lang.SuppressWarnings("all")
	public Currency getAmountRange() {
		return this.amountRange;
	}

	/**
	 * Buyer's ability to edit the amount in this term.
	 */
	@java.lang.SuppressWarnings("all")
	public String getBuyerEditable() {
		return this.buyerEditable;
	}

	/**
	 * Identifier of the terms. 128 characters max.
	 * @return this
	 */
	@java.lang.SuppressWarnings("all")
	public Terms setId(final String id) {
		this.id = id;
		return this;
	}

	/**
	 * Term type. Allowed values: `MONTHLY`, `WEEKLY`, `YEARLY`.
	 * @return this
	 */
	@java.lang.SuppressWarnings("all")
	public Terms setType(final String type) {
		this.type = type;
		return this;
	}

	/**
	 * Max Amount associated with this term.
	 * @return this
	 */
	@java.lang.SuppressWarnings("all")
	public Terms setMaxBillingAmount(final Currency maxBillingAmount) {
		this.maxBillingAmount = maxBillingAmount;
		return this;
	}

	/**
	 * How many times money can be pulled during this term.
	 * @return this
	 */
	@java.lang.SuppressWarnings("all")
	public Terms setOccurrences(final String occurrences) {
		this.occurrences = occurrences;
		return this;
	}

	/**
	 * Amount_range associated with this term.
	 * @return this
	 */
	@java.lang.SuppressWarnings("all")
	public Terms setAmountRange(final Currency amountRange) {
		this.amountRange = amountRange;
		return this;
	}

	/**
	 * Buyer's ability to edit the amount in this term.
	 * @return this
	 */
	@java.lang.SuppressWarnings("all")
	public Terms setBuyerEditable(final String buyerEditable) {
		this.buyerEditable = buyerEditable;
		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 Terms)) return false;
		final Terms other = (Terms) o;
		if (!other.canEqual((java.lang.Object) this)) return false;
		if (!super.equals(o)) return false;
		final java.lang.Object this$id = this.getId();
		final java.lang.Object other$id = other.getId();
		if (this$id == null ? other$id != null : !this$id.equals(other$id)) return false;
		final java.lang.Object this$type = this.getType();
		final java.lang.Object other$type = other.getType();
		if (this$type == null ? other$type != null : !this$type.equals(other$type)) return false;
		final java.lang.Object this$maxBillingAmount = this.getMaxBillingAmount();
		final java.lang.Object other$maxBillingAmount = other.getMaxBillingAmount();
		if (this$maxBillingAmount == null ? other$maxBillingAmount != null : !this$maxBillingAmount.equals(other$maxBillingAmount)) return false;
		final java.lang.Object this$occurrences = this.getOccurrences();
		final java.lang.Object other$occurrences = other.getOccurrences();
		if (this$occurrences == null ? other$occurrences != null : !this$occurrences.equals(other$occurrences)) return false;
		final java.lang.Object this$amountRange = this.getAmountRange();
		final java.lang.Object other$amountRange = other.getAmountRange();
		if (this$amountRange == null ? other$amountRange != null : !this$amountRange.equals(other$amountRange)) return false;
		final java.lang.Object this$buyerEditable = this.getBuyerEditable();
		final java.lang.Object other$buyerEditable = other.getBuyerEditable();
		if (this$buyerEditable == null ? other$buyerEditable != null : !this$buyerEditable.equals(other$buyerEditable)) return false;
		return true;
	}

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

	@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 $id = this.getId();
		result = result * PRIME + ($id == null ? 43 : $id.hashCode());
		final java.lang.Object $type = this.getType();
		result = result * PRIME + ($type == null ? 43 : $type.hashCode());
		final java.lang.Object $maxBillingAmount = this.getMaxBillingAmount();
		result = result * PRIME + ($maxBillingAmount == null ? 43 : $maxBillingAmount.hashCode());
		final java.lang.Object $occurrences = this.getOccurrences();
		result = result * PRIME + ($occurrences == null ? 43 : $occurrences.hashCode());
		final java.lang.Object $amountRange = this.getAmountRange();
		result = result * PRIME + ($amountRange == null ? 43 : $amountRange.hashCode());
		final java.lang.Object $buyerEditable = this.getBuyerEditable();
		result = result * PRIME + ($buyerEditable == null ? 43 : $buyerEditable.hashCode());
		return result;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy