com.paypal.api.payments.CarrierAccountToken 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 CarrierAccountToken extends PayPalModel {
/**
* ID of a previously saved carrier account resource.
*/
private String carrierAccountId;
/**
* The unique identifier of the payer used when saving this carrier account instrument.
*/
private String externalCustomerId;
/**
* Default Constructor
*/
public CarrierAccountToken() {
}
/**
* Parameterized Constructor
*/
public CarrierAccountToken(String carrierAccountId, String externalCustomerId) {
this.carrierAccountId = carrierAccountId;
this.externalCustomerId = externalCustomerId;
}
/**
* ID of a previously saved carrier account resource.
*/
@java.lang.SuppressWarnings("all")
public String getCarrierAccountId() {
return this.carrierAccountId;
}
/**
* The unique identifier of the payer used when saving this carrier account instrument.
*/
@java.lang.SuppressWarnings("all")
public String getExternalCustomerId() {
return this.externalCustomerId;
}
/**
* ID of a previously saved carrier account resource.
* @return this
*/
@java.lang.SuppressWarnings("all")
public CarrierAccountToken setCarrierAccountId(final String carrierAccountId) {
this.carrierAccountId = carrierAccountId;
return this;
}
/**
* The unique identifier of the payer used when saving this carrier account instrument.
* @return this
*/
@java.lang.SuppressWarnings("all")
public CarrierAccountToken setExternalCustomerId(final String externalCustomerId) {
this.externalCustomerId = externalCustomerId;
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 CarrierAccountToken)) return false;
final CarrierAccountToken other = (CarrierAccountToken) o;
if (!other.canEqual((java.lang.Object) this)) return false;
if (!super.equals(o)) return false;
final java.lang.Object this$carrierAccountId = this.getCarrierAccountId();
final java.lang.Object other$carrierAccountId = other.getCarrierAccountId();
if (this$carrierAccountId == null ? other$carrierAccountId != null : !this$carrierAccountId.equals(other$carrierAccountId)) 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;
return true;
}
@java.lang.SuppressWarnings("all")
protected boolean canEqual(final java.lang.Object other) {
return other instanceof CarrierAccountToken;
}
@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 $carrierAccountId = this.getCarrierAccountId();
result = result * PRIME + ($carrierAccountId == null ? 43 : $carrierAccountId.hashCode());
final java.lang.Object $externalCustomerId = this.getExternalCustomerId();
result = result * PRIME + ($externalCustomerId == null ? 43 : $externalCustomerId.hashCode());
return result;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy