com.paypal.api.payments.AgreementDetails 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
The newest version!
// Generated by delombok at Thu Nov 16 13:48:04 CST 2017
package com.paypal.api.payments;
import com.paypal.base.rest.PayPalModel;
public class AgreementDetails extends PayPalModel {
/**
* The outstanding balance for this agreement.
*/
private Currency outstandingBalance;
/**
* Number of cycles remaining for this agreement.
*/
private String cyclesRemaining;
/**
* Number of cycles completed for this agreement.
*/
private String cyclesCompleted;
/**
* The next billing date for this agreement, represented as 2014-02-19T10:00:00Z format.
*/
private String nextBillingDate;
/**
* Last payment date for this agreement, represented as 2014-06-09T09:42:31Z format.
*/
private String lastPaymentDate;
/**
* Last payment amount for this agreement.
*/
private Currency lastPaymentAmount;
/**
* Last payment date for this agreement, represented as 2015-02-19T10:00:00Z format.
*/
private String finalPaymentDate;
/**
* Total number of failed payments for this agreement.
*/
private String failedPaymentCount;
/**
* Default Constructor
*/
public AgreementDetails() {
}
/**
* The outstanding balance for this agreement.
*/
@java.lang.SuppressWarnings("all")
public Currency getOutstandingBalance() {
return this.outstandingBalance;
}
/**
* Number of cycles remaining for this agreement.
*/
@java.lang.SuppressWarnings("all")
public String getCyclesRemaining() {
return this.cyclesRemaining;
}
/**
* Number of cycles completed for this agreement.
*/
@java.lang.SuppressWarnings("all")
public String getCyclesCompleted() {
return this.cyclesCompleted;
}
/**
* The next billing date for this agreement, represented as 2014-02-19T10:00:00Z format.
*/
@java.lang.SuppressWarnings("all")
public String getNextBillingDate() {
return this.nextBillingDate;
}
/**
* Last payment date for this agreement, represented as 2014-06-09T09:42:31Z format.
*/
@java.lang.SuppressWarnings("all")
public String getLastPaymentDate() {
return this.lastPaymentDate;
}
/**
* Last payment amount for this agreement.
*/
@java.lang.SuppressWarnings("all")
public Currency getLastPaymentAmount() {
return this.lastPaymentAmount;
}
/**
* Last payment date for this agreement, represented as 2015-02-19T10:00:00Z format.
*/
@java.lang.SuppressWarnings("all")
public String getFinalPaymentDate() {
return this.finalPaymentDate;
}
/**
* Total number of failed payments for this agreement.
*/
@java.lang.SuppressWarnings("all")
public String getFailedPaymentCount() {
return this.failedPaymentCount;
}
/**
* The outstanding balance for this agreement.
* @return this
*/
@java.lang.SuppressWarnings("all")
public AgreementDetails setOutstandingBalance(final Currency outstandingBalance) {
this.outstandingBalance = outstandingBalance;
return this;
}
/**
* Number of cycles remaining for this agreement.
* @return this
*/
@java.lang.SuppressWarnings("all")
public AgreementDetails setCyclesRemaining(final String cyclesRemaining) {
this.cyclesRemaining = cyclesRemaining;
return this;
}
/**
* Number of cycles completed for this agreement.
* @return this
*/
@java.lang.SuppressWarnings("all")
public AgreementDetails setCyclesCompleted(final String cyclesCompleted) {
this.cyclesCompleted = cyclesCompleted;
return this;
}
/**
* The next billing date for this agreement, represented as 2014-02-19T10:00:00Z format.
* @return this
*/
@java.lang.SuppressWarnings("all")
public AgreementDetails setNextBillingDate(final String nextBillingDate) {
this.nextBillingDate = nextBillingDate;
return this;
}
/**
* Last payment date for this agreement, represented as 2014-06-09T09:42:31Z format.
* @return this
*/
@java.lang.SuppressWarnings("all")
public AgreementDetails setLastPaymentDate(final String lastPaymentDate) {
this.lastPaymentDate = lastPaymentDate;
return this;
}
/**
* Last payment amount for this agreement.
* @return this
*/
@java.lang.SuppressWarnings("all")
public AgreementDetails setLastPaymentAmount(final Currency lastPaymentAmount) {
this.lastPaymentAmount = lastPaymentAmount;
return this;
}
/**
* Last payment date for this agreement, represented as 2015-02-19T10:00:00Z format.
* @return this
*/
@java.lang.SuppressWarnings("all")
public AgreementDetails setFinalPaymentDate(final String finalPaymentDate) {
this.finalPaymentDate = finalPaymentDate;
return this;
}
/**
* Total number of failed payments for this agreement.
* @return this
*/
@java.lang.SuppressWarnings("all")
public AgreementDetails setFailedPaymentCount(final String failedPaymentCount) {
this.failedPaymentCount = failedPaymentCount;
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 AgreementDetails)) return false;
final AgreementDetails other = (AgreementDetails) o;
if (!other.canEqual((java.lang.Object) this)) return false;
if (!super.equals(o)) return false;
final java.lang.Object this$outstandingBalance = this.getOutstandingBalance();
final java.lang.Object other$outstandingBalance = other.getOutstandingBalance();
if (this$outstandingBalance == null ? other$outstandingBalance != null : !this$outstandingBalance.equals(other$outstandingBalance)) return false;
final java.lang.Object this$cyclesRemaining = this.getCyclesRemaining();
final java.lang.Object other$cyclesRemaining = other.getCyclesRemaining();
if (this$cyclesRemaining == null ? other$cyclesRemaining != null : !this$cyclesRemaining.equals(other$cyclesRemaining)) return false;
final java.lang.Object this$cyclesCompleted = this.getCyclesCompleted();
final java.lang.Object other$cyclesCompleted = other.getCyclesCompleted();
if (this$cyclesCompleted == null ? other$cyclesCompleted != null : !this$cyclesCompleted.equals(other$cyclesCompleted)) return false;
final java.lang.Object this$nextBillingDate = this.getNextBillingDate();
final java.lang.Object other$nextBillingDate = other.getNextBillingDate();
if (this$nextBillingDate == null ? other$nextBillingDate != null : !this$nextBillingDate.equals(other$nextBillingDate)) return false;
final java.lang.Object this$lastPaymentDate = this.getLastPaymentDate();
final java.lang.Object other$lastPaymentDate = other.getLastPaymentDate();
if (this$lastPaymentDate == null ? other$lastPaymentDate != null : !this$lastPaymentDate.equals(other$lastPaymentDate)) return false;
final java.lang.Object this$lastPaymentAmount = this.getLastPaymentAmount();
final java.lang.Object other$lastPaymentAmount = other.getLastPaymentAmount();
if (this$lastPaymentAmount == null ? other$lastPaymentAmount != null : !this$lastPaymentAmount.equals(other$lastPaymentAmount)) return false;
final java.lang.Object this$finalPaymentDate = this.getFinalPaymentDate();
final java.lang.Object other$finalPaymentDate = other.getFinalPaymentDate();
if (this$finalPaymentDate == null ? other$finalPaymentDate != null : !this$finalPaymentDate.equals(other$finalPaymentDate)) return false;
final java.lang.Object this$failedPaymentCount = this.getFailedPaymentCount();
final java.lang.Object other$failedPaymentCount = other.getFailedPaymentCount();
if (this$failedPaymentCount == null ? other$failedPaymentCount != null : !this$failedPaymentCount.equals(other$failedPaymentCount)) return false;
return true;
}
@java.lang.SuppressWarnings("all")
protected boolean canEqual(final java.lang.Object other) {
return other instanceof AgreementDetails;
}
@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 $outstandingBalance = this.getOutstandingBalance();
result = result * PRIME + ($outstandingBalance == null ? 43 : $outstandingBalance.hashCode());
final java.lang.Object $cyclesRemaining = this.getCyclesRemaining();
result = result * PRIME + ($cyclesRemaining == null ? 43 : $cyclesRemaining.hashCode());
final java.lang.Object $cyclesCompleted = this.getCyclesCompleted();
result = result * PRIME + ($cyclesCompleted == null ? 43 : $cyclesCompleted.hashCode());
final java.lang.Object $nextBillingDate = this.getNextBillingDate();
result = result * PRIME + ($nextBillingDate == null ? 43 : $nextBillingDate.hashCode());
final java.lang.Object $lastPaymentDate = this.getLastPaymentDate();
result = result * PRIME + ($lastPaymentDate == null ? 43 : $lastPaymentDate.hashCode());
final java.lang.Object $lastPaymentAmount = this.getLastPaymentAmount();
result = result * PRIME + ($lastPaymentAmount == null ? 43 : $lastPaymentAmount.hashCode());
final java.lang.Object $finalPaymentDate = this.getFinalPaymentDate();
result = result * PRIME + ($finalPaymentDate == null ? 43 : $finalPaymentDate.hashCode());
final java.lang.Object $failedPaymentCount = this.getFailedPaymentCount();
result = result * PRIME + ($failedPaymentCount == null ? 43 : $failedPaymentCount.hashCode());
return result;
}
}