com.paypal.api.payments.PaymentOptions 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 PaymentOptions extends PayPalModel {
/**
* Payment method requested for this purchase unit
*/
private String allowedPaymentMethod;
/**
* Indicator if this payment request is a recurring payment. Only supported when the `payment_method` is set to `credit_card`
*/
private Boolean recurringFlag;
/**
* Indicator if fraud management filters (fmf) should be skipped for this transaction. Only supported when the `payment_method` is set to `credit_card`
*/
private Boolean skipFmf;
/**
* Default Constructor
*/
public PaymentOptions() {
}
/**
* Payment method requested for this purchase unit
*/
@java.lang.SuppressWarnings("all")
public String getAllowedPaymentMethod() {
return this.allowedPaymentMethod;
}
/**
* Indicator if this payment request is a recurring payment. Only supported when the `payment_method` is set to `credit_card`
*/
@java.lang.SuppressWarnings("all")
public Boolean getRecurringFlag() {
return this.recurringFlag;
}
/**
* Indicator if fraud management filters (fmf) should be skipped for this transaction. Only supported when the `payment_method` is set to `credit_card`
*/
@java.lang.SuppressWarnings("all")
public Boolean getSkipFmf() {
return this.skipFmf;
}
/**
* Payment method requested for this purchase unit
* @return this
*/
@java.lang.SuppressWarnings("all")
public PaymentOptions setAllowedPaymentMethod(final String allowedPaymentMethod) {
this.allowedPaymentMethod = allowedPaymentMethod;
return this;
}
/**
* Indicator if this payment request is a recurring payment. Only supported when the `payment_method` is set to `credit_card`
* @return this
*/
@java.lang.SuppressWarnings("all")
public PaymentOptions setRecurringFlag(final Boolean recurringFlag) {
this.recurringFlag = recurringFlag;
return this;
}
/**
* Indicator if fraud management filters (fmf) should be skipped for this transaction. Only supported when the `payment_method` is set to `credit_card`
* @return this
*/
@java.lang.SuppressWarnings("all")
public PaymentOptions setSkipFmf(final Boolean skipFmf) {
this.skipFmf = skipFmf;
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 PaymentOptions)) return false;
final PaymentOptions other = (PaymentOptions) o;
if (!other.canEqual((java.lang.Object) this)) return false;
if (!super.equals(o)) return false;
final java.lang.Object this$allowedPaymentMethod = this.getAllowedPaymentMethod();
final java.lang.Object other$allowedPaymentMethod = other.getAllowedPaymentMethod();
if (this$allowedPaymentMethod == null ? other$allowedPaymentMethod != null : !this$allowedPaymentMethod.equals(other$allowedPaymentMethod)) return false;
final java.lang.Object this$recurringFlag = this.getRecurringFlag();
final java.lang.Object other$recurringFlag = other.getRecurringFlag();
if (this$recurringFlag == null ? other$recurringFlag != null : !this$recurringFlag.equals(other$recurringFlag)) return false;
final java.lang.Object this$skipFmf = this.getSkipFmf();
final java.lang.Object other$skipFmf = other.getSkipFmf();
if (this$skipFmf == null ? other$skipFmf != null : !this$skipFmf.equals(other$skipFmf)) return false;
return true;
}
@java.lang.SuppressWarnings("all")
protected boolean canEqual(final java.lang.Object other) {
return other instanceof PaymentOptions;
}
@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 $allowedPaymentMethod = this.getAllowedPaymentMethod();
result = result * PRIME + ($allowedPaymentMethod == null ? 43 : $allowedPaymentMethod.hashCode());
final java.lang.Object $recurringFlag = this.getRecurringFlag();
result = result * PRIME + ($recurringFlag == null ? 43 : $recurringFlag.hashCode());
final java.lang.Object $skipFmf = this.getSkipFmf();
result = result * PRIME + ($skipFmf == null ? 43 : $skipFmf.hashCode());
return result;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy