com.paypal.api.payments.InstallmentInfo Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of com.liferay.commerce.payment.method.paypal
Show all versions of com.liferay.commerce.payment.method.paypal
Liferay Commerce Payment Method PayPal
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;
import java.util.List;
public class InstallmentInfo extends PayPalModel {
/**
* Installment id.
*/
private String installmentId;
/**
* Credit card network.
*/
private String network;
/**
* Credit card issuer.
*/
private String issuer;
/**
* List of available installment options and the cost associated with each one.
*/
private List installmentOptions;
/**
* Default Constructor
*/
public InstallmentInfo() {
}
/**
* Parameterized Constructor
*/
public InstallmentInfo(List installmentOptions) {
this.installmentOptions = installmentOptions;
}
/**
* Installment id.
*/
@java.lang.SuppressWarnings("all")
public String getInstallmentId() {
return this.installmentId;
}
/**
* Credit card network.
*/
@java.lang.SuppressWarnings("all")
public String getNetwork() {
return this.network;
}
/**
* Credit card issuer.
*/
@java.lang.SuppressWarnings("all")
public String getIssuer() {
return this.issuer;
}
/**
* List of available installment options and the cost associated with each one.
*/
@java.lang.SuppressWarnings("all")
public List getInstallmentOptions() {
return this.installmentOptions;
}
/**
* Installment id.
* @return this
*/
@java.lang.SuppressWarnings("all")
public InstallmentInfo setInstallmentId(final String installmentId) {
this.installmentId = installmentId;
return this;
}
/**
* Credit card network.
* @return this
*/
@java.lang.SuppressWarnings("all")
public InstallmentInfo setNetwork(final String network) {
this.network = network;
return this;
}
/**
* Credit card issuer.
* @return this
*/
@java.lang.SuppressWarnings("all")
public InstallmentInfo setIssuer(final String issuer) {
this.issuer = issuer;
return this;
}
/**
* List of available installment options and the cost associated with each one.
* @return this
*/
@java.lang.SuppressWarnings("all")
public InstallmentInfo setInstallmentOptions(final List installmentOptions) {
this.installmentOptions = installmentOptions;
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 InstallmentInfo)) return false;
final InstallmentInfo other = (InstallmentInfo) o;
if (!other.canEqual((java.lang.Object) this)) return false;
if (!super.equals(o)) return false;
final java.lang.Object this$installmentId = this.getInstallmentId();
final java.lang.Object other$installmentId = other.getInstallmentId();
if (this$installmentId == null ? other$installmentId != null : !this$installmentId.equals(other$installmentId)) return false;
final java.lang.Object this$network = this.getNetwork();
final java.lang.Object other$network = other.getNetwork();
if (this$network == null ? other$network != null : !this$network.equals(other$network)) return false;
final java.lang.Object this$issuer = this.getIssuer();
final java.lang.Object other$issuer = other.getIssuer();
if (this$issuer == null ? other$issuer != null : !this$issuer.equals(other$issuer)) return false;
final java.lang.Object this$installmentOptions = this.getInstallmentOptions();
final java.lang.Object other$installmentOptions = other.getInstallmentOptions();
if (this$installmentOptions == null ? other$installmentOptions != null : !this$installmentOptions.equals(other$installmentOptions)) return false;
return true;
}
@java.lang.SuppressWarnings("all")
protected boolean canEqual(final java.lang.Object other) {
return other instanceof InstallmentInfo;
}
@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 $installmentId = this.getInstallmentId();
result = result * PRIME + ($installmentId == null ? 43 : $installmentId.hashCode());
final java.lang.Object $network = this.getNetwork();
result = result * PRIME + ($network == null ? 43 : $network.hashCode());
final java.lang.Object $issuer = this.getIssuer();
result = result * PRIME + ($issuer == null ? 43 : $issuer.hashCode());
final java.lang.Object $installmentOptions = this.getInstallmentOptions();
result = result * PRIME + ($installmentOptions == null ? 43 : $installmentOptions.hashCode());
return result;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy