com.paypal.api.payments.AgreementStateDescriptor Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of rest-api-sdk Show documentation
Show all versions of rest-api-sdk Show documentation
PayPal SDK for integrating with the REST APIs
// 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 AgreementStateDescriptor extends PayPalModel {
/**
* Reason for changing the state of the agreement.
*/
private String note;
/**
* The amount and currency of the agreement.
*/
private Currency amount;
/**
* Default Constructor
*/
public AgreementStateDescriptor() {
}
/**
* Parameterized Constructor
*/
public AgreementStateDescriptor(Currency amount) {
this.amount = amount;
}
/**
* Reason for changing the state of the agreement.
*/
@java.lang.SuppressWarnings("all")
public String getNote() {
return this.note;
}
/**
* The amount and currency of the agreement.
*/
@java.lang.SuppressWarnings("all")
public Currency getAmount() {
return this.amount;
}
/**
* Reason for changing the state of the agreement.
* @return this
*/
@java.lang.SuppressWarnings("all")
public AgreementStateDescriptor setNote(final String note) {
this.note = note;
return this;
}
/**
* The amount and currency of the agreement.
* @return this
*/
@java.lang.SuppressWarnings("all")
public AgreementStateDescriptor setAmount(final Currency amount) {
this.amount = amount;
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 AgreementStateDescriptor)) return false;
final AgreementStateDescriptor other = (AgreementStateDescriptor) o;
if (!other.canEqual((java.lang.Object) this)) return false;
if (!super.equals(o)) return false;
final java.lang.Object this$note = this.getNote();
final java.lang.Object other$note = other.getNote();
if (this$note == null ? other$note != null : !this$note.equals(other$note)) return false;
final java.lang.Object this$amount = this.getAmount();
final java.lang.Object other$amount = other.getAmount();
if (this$amount == null ? other$amount != null : !this$amount.equals(other$amount)) return false;
return true;
}
@java.lang.SuppressWarnings("all")
protected boolean canEqual(final java.lang.Object other) {
return other instanceof AgreementStateDescriptor;
}
@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 $note = this.getNote();
result = result * PRIME + ($note == null ? 43 : $note.hashCode());
final java.lang.Object $amount = this.getAmount();
result = result * PRIME + ($amount == null ? 43 : $amount.hashCode());
return result;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy