com.paypal.api.payments.Billing 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 Billing extends PayPalModel {
/**
* Identifier of the instrument in PayPal Wallet
*/
private String billingAgreementId;
/**
* Selected installment option for issuer based installments (BR and MX).
*/
private InstallmentOption selectedInstallmentOption;
/**
* Default Constructor
*/
public Billing() {
}
/**
* Identifier of the instrument in PayPal Wallet
*/
@java.lang.SuppressWarnings("all")
public String getBillingAgreementId() {
return this.billingAgreementId;
}
/**
* Selected installment option for issuer based installments (BR and MX).
*/
@java.lang.SuppressWarnings("all")
public InstallmentOption getSelectedInstallmentOption() {
return this.selectedInstallmentOption;
}
/**
* Identifier of the instrument in PayPal Wallet
* @return this
*/
@java.lang.SuppressWarnings("all")
public Billing setBillingAgreementId(final String billingAgreementId) {
this.billingAgreementId = billingAgreementId;
return this;
}
/**
* Selected installment option for issuer based installments (BR and MX).
* @return this
*/
@java.lang.SuppressWarnings("all")
public Billing setSelectedInstallmentOption(final InstallmentOption selectedInstallmentOption) {
this.selectedInstallmentOption = selectedInstallmentOption;
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 Billing)) return false;
final Billing other = (Billing) o;
if (!other.canEqual((java.lang.Object) this)) return false;
if (!super.equals(o)) return false;
final java.lang.Object this$billingAgreementId = this.getBillingAgreementId();
final java.lang.Object other$billingAgreementId = other.getBillingAgreementId();
if (this$billingAgreementId == null ? other$billingAgreementId != null : !this$billingAgreementId.equals(other$billingAgreementId)) return false;
final java.lang.Object this$selectedInstallmentOption = this.getSelectedInstallmentOption();
final java.lang.Object other$selectedInstallmentOption = other.getSelectedInstallmentOption();
if (this$selectedInstallmentOption == null ? other$selectedInstallmentOption != null : !this$selectedInstallmentOption.equals(other$selectedInstallmentOption)) return false;
return true;
}
@java.lang.SuppressWarnings("all")
protected boolean canEqual(final java.lang.Object other) {
return other instanceof Billing;
}
@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 $billingAgreementId = this.getBillingAgreementId();
result = result * PRIME + ($billingAgreementId == null ? 43 : $billingAgreementId.hashCode());
final java.lang.Object $selectedInstallmentOption = this.getSelectedInstallmentOption();
result = result * PRIME + ($selectedInstallmentOption == null ? 43 : $selectedInstallmentOption.hashCode());
return result;
}
}