com.paypal.api.payments.OverrideChargeModel 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;
public class OverrideChargeModel extends PayPalModel {
/**
* ID of charge model.
*/
private String chargeId;
/**
* Updated Amount to be associated with this charge model.
*/
private Currency amount;
/**
* Default Constructor
*/
public OverrideChargeModel() {
}
/**
* ID of charge model.
*/
@java.lang.SuppressWarnings("all")
public String getChargeId() {
return this.chargeId;
}
/**
* Updated Amount to be associated with this charge model.
*/
@java.lang.SuppressWarnings("all")
public Currency getAmount() {
return this.amount;
}
/**
* ID of charge model.
* @return this
*/
@java.lang.SuppressWarnings("all")
public OverrideChargeModel setChargeId(final String chargeId) {
this.chargeId = chargeId;
return this;
}
/**
* Updated Amount to be associated with this charge model.
* @return this
*/
@java.lang.SuppressWarnings("all")
public OverrideChargeModel setAmount(final Currency amount) {
this.amount = amount;
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 OverrideChargeModel)) return false;
final OverrideChargeModel other = (OverrideChargeModel) o;
if (!other.canEqual((java.lang.Object) this)) return false;
if (!super.equals(o)) return false;
final java.lang.Object this$chargeId = this.getChargeId();
final java.lang.Object other$chargeId = other.getChargeId();
if (this$chargeId == null ? other$chargeId != null : !this$chargeId.equals(other$chargeId)) return false;
final java.lang.Object this$amount = this.getAmount();
final java.lang.Object other$amount = other.getAmount();
if (this$amount == null ? other$amount != null : !this$amount.equals(other$amount)) return false;
return true;
}
@java.lang.SuppressWarnings("all")
protected boolean canEqual(final java.lang.Object other) {
return other instanceof OverrideChargeModel;
}
@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 $chargeId = this.getChargeId();
result = result * PRIME + ($chargeId == null ? 43 : $chargeId.hashCode());
final java.lang.Object $amount = this.getAmount();
result = result * PRIME + ($amount == null ? 43 : $amount.hashCode());
return result;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy