com.paypal.api.payments.FundingOption 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;
import java.util.List;
public class FundingOption extends PayPalModel {
/**
* id of the funding option.
*/
private String id;
/**
* List of funding sources that contributes to a payment.
*/
private List fundingSources;
/**
* Backup funding instrument which will be used for payment if primary fails.
*/
private FundingInstrument backupFundingInstrument;
/**
* Currency conversion applicable to this funding option.
*/
private CurrencyConversion currencyConversion;
/**
* Installment options available for a funding option.
*/
private InstallmentInfo installmentInfo;
/**
*/
private List links;
/**
* Default Constructor
*/
public FundingOption() {
}
/**
* Parameterized Constructor
*/
public FundingOption(String id, List fundingSources) {
this.id = id;
this.fundingSources = fundingSources;
}
/**
* id of the funding option.
*/
@java.lang.SuppressWarnings("all")
public String getId() {
return this.id;
}
/**
* List of funding sources that contributes to a payment.
*/
@java.lang.SuppressWarnings("all")
public List getFundingSources() {
return this.fundingSources;
}
/**
* Backup funding instrument which will be used for payment if primary fails.
*/
@java.lang.SuppressWarnings("all")
public FundingInstrument getBackupFundingInstrument() {
return this.backupFundingInstrument;
}
/**
* Currency conversion applicable to this funding option.
*/
@java.lang.SuppressWarnings("all")
public CurrencyConversion getCurrencyConversion() {
return this.currencyConversion;
}
/**
* Installment options available for a funding option.
*/
@java.lang.SuppressWarnings("all")
public InstallmentInfo getInstallmentInfo() {
return this.installmentInfo;
}
/**
*/
@java.lang.SuppressWarnings("all")
public List getLinks() {
return this.links;
}
/**
* id of the funding option.
* @return this
*/
@java.lang.SuppressWarnings("all")
public FundingOption setId(final String id) {
this.id = id;
return this;
}
/**
* List of funding sources that contributes to a payment.
* @return this
*/
@java.lang.SuppressWarnings("all")
public FundingOption setFundingSources(final List fundingSources) {
this.fundingSources = fundingSources;
return this;
}
/**
* Backup funding instrument which will be used for payment if primary fails.
* @return this
*/
@java.lang.SuppressWarnings("all")
public FundingOption setBackupFundingInstrument(final FundingInstrument backupFundingInstrument) {
this.backupFundingInstrument = backupFundingInstrument;
return this;
}
/**
* Currency conversion applicable to this funding option.
* @return this
*/
@java.lang.SuppressWarnings("all")
public FundingOption setCurrencyConversion(final CurrencyConversion currencyConversion) {
this.currencyConversion = currencyConversion;
return this;
}
/**
* Installment options available for a funding option.
* @return this
*/
@java.lang.SuppressWarnings("all")
public FundingOption setInstallmentInfo(final InstallmentInfo installmentInfo) {
this.installmentInfo = installmentInfo;
return this;
}
/**
*
* @return this
*/
@java.lang.SuppressWarnings("all")
public FundingOption setLinks(final List links) {
this.links = links;
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 FundingOption)) return false;
final FundingOption other = (FundingOption) 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$fundingSources = this.getFundingSources();
final java.lang.Object other$fundingSources = other.getFundingSources();
if (this$fundingSources == null ? other$fundingSources != null : !this$fundingSources.equals(other$fundingSources)) return false;
final java.lang.Object this$backupFundingInstrument = this.getBackupFundingInstrument();
final java.lang.Object other$backupFundingInstrument = other.getBackupFundingInstrument();
if (this$backupFundingInstrument == null ? other$backupFundingInstrument != null : !this$backupFundingInstrument.equals(other$backupFundingInstrument)) return false;
final java.lang.Object this$currencyConversion = this.getCurrencyConversion();
final java.lang.Object other$currencyConversion = other.getCurrencyConversion();
if (this$currencyConversion == null ? other$currencyConversion != null : !this$currencyConversion.equals(other$currencyConversion)) return false;
final java.lang.Object this$installmentInfo = this.getInstallmentInfo();
final java.lang.Object other$installmentInfo = other.getInstallmentInfo();
if (this$installmentInfo == null ? other$installmentInfo != null : !this$installmentInfo.equals(other$installmentInfo)) return false;
final java.lang.Object this$links = this.getLinks();
final java.lang.Object other$links = other.getLinks();
if (this$links == null ? other$links != null : !this$links.equals(other$links)) return false;
return true;
}
@java.lang.SuppressWarnings("all")
protected boolean canEqual(final java.lang.Object other) {
return other instanceof FundingOption;
}
@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 $fundingSources = this.getFundingSources();
result = result * PRIME + ($fundingSources == null ? 43 : $fundingSources.hashCode());
final java.lang.Object $backupFundingInstrument = this.getBackupFundingInstrument();
result = result * PRIME + ($backupFundingInstrument == null ? 43 : $backupFundingInstrument.hashCode());
final java.lang.Object $currencyConversion = this.getCurrencyConversion();
result = result * PRIME + ($currencyConversion == null ? 43 : $currencyConversion.hashCode());
final java.lang.Object $installmentInfo = this.getInstallmentInfo();
result = result * PRIME + ($installmentInfo == null ? 43 : $installmentInfo.hashCode());
final java.lang.Object $links = this.getLinks();
result = result * PRIME + ($links == null ? 43 : $links.hashCode());
return result;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy