com.paypal.api.payments.AlternatePayment 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:04 CST 2017
package com.paypal.api.payments;
import com.paypal.base.rest.PayPalModel;
public class AlternatePayment extends PayPalModel {
/**
* The unique identifier of the alternate payment account.
*/
private String alternatePaymentAccountId;
/**
* The unique identifier of the payer
*/
private String externalCustomerId;
/**
* Alternate Payment provider id. This is an optional attribute needed only for certain alternate providers e.g Ideal
*/
private String alternatePaymentProviderId;
/**
* Default Constructor
*/
public AlternatePayment() {
}
/**
* Parameterized Constructor
*/
public AlternatePayment(String alternatePaymentAccountId) {
this.alternatePaymentAccountId = alternatePaymentAccountId;
}
/**
* The unique identifier of the alternate payment account.
*/
@java.lang.SuppressWarnings("all")
public String getAlternatePaymentAccountId() {
return this.alternatePaymentAccountId;
}
/**
* The unique identifier of the payer
*/
@java.lang.SuppressWarnings("all")
public String getExternalCustomerId() {
return this.externalCustomerId;
}
/**
* Alternate Payment provider id. This is an optional attribute needed only for certain alternate providers e.g Ideal
*/
@java.lang.SuppressWarnings("all")
public String getAlternatePaymentProviderId() {
return this.alternatePaymentProviderId;
}
/**
* The unique identifier of the alternate payment account.
* @return this
*/
@java.lang.SuppressWarnings("all")
public AlternatePayment setAlternatePaymentAccountId(final String alternatePaymentAccountId) {
this.alternatePaymentAccountId = alternatePaymentAccountId;
return this;
}
/**
* The unique identifier of the payer
* @return this
*/
@java.lang.SuppressWarnings("all")
public AlternatePayment setExternalCustomerId(final String externalCustomerId) {
this.externalCustomerId = externalCustomerId;
return this;
}
/**
* Alternate Payment provider id. This is an optional attribute needed only for certain alternate providers e.g Ideal
* @return this
*/
@java.lang.SuppressWarnings("all")
public AlternatePayment setAlternatePaymentProviderId(final String alternatePaymentProviderId) {
this.alternatePaymentProviderId = alternatePaymentProviderId;
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 AlternatePayment)) return false;
final AlternatePayment other = (AlternatePayment) o;
if (!other.canEqual((java.lang.Object) this)) return false;
if (!super.equals(o)) return false;
final java.lang.Object this$alternatePaymentAccountId = this.getAlternatePaymentAccountId();
final java.lang.Object other$alternatePaymentAccountId = other.getAlternatePaymentAccountId();
if (this$alternatePaymentAccountId == null ? other$alternatePaymentAccountId != null : !this$alternatePaymentAccountId.equals(other$alternatePaymentAccountId)) return false;
final java.lang.Object this$externalCustomerId = this.getExternalCustomerId();
final java.lang.Object other$externalCustomerId = other.getExternalCustomerId();
if (this$externalCustomerId == null ? other$externalCustomerId != null : !this$externalCustomerId.equals(other$externalCustomerId)) return false;
final java.lang.Object this$alternatePaymentProviderId = this.getAlternatePaymentProviderId();
final java.lang.Object other$alternatePaymentProviderId = other.getAlternatePaymentProviderId();
if (this$alternatePaymentProviderId == null ? other$alternatePaymentProviderId != null : !this$alternatePaymentProviderId.equals(other$alternatePaymentProviderId)) return false;
return true;
}
@java.lang.SuppressWarnings("all")
protected boolean canEqual(final java.lang.Object other) {
return other instanceof AlternatePayment;
}
@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 $alternatePaymentAccountId = this.getAlternatePaymentAccountId();
result = result * PRIME + ($alternatePaymentAccountId == null ? 43 : $alternatePaymentAccountId.hashCode());
final java.lang.Object $externalCustomerId = this.getExternalCustomerId();
result = result * PRIME + ($externalCustomerId == null ? 43 : $externalCustomerId.hashCode());
final java.lang.Object $alternatePaymentProviderId = this.getAlternatePaymentProviderId();
result = result * PRIME + ($alternatePaymentProviderId == null ? 43 : $alternatePaymentProviderId.hashCode());
return result;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy