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 rest-api-sdk Show documentation
Show all versions of rest-api-sdk Show documentation
PayPal SDK for integrating with the REST APIs
// Generated by delombok at Wed Oct 12 18:15:55 CDT 2016
package com.paypal.api.payments;
import com.paypal.base.rest.PayPalModel;
public class PaymentOptions extends PayPalModel {
/**
* Optional payment method type. If specified, the transaction will go through for only instant payment. Only for use with the paypal payment_method, not relevant for the credit_card payment_method.
*/
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() {
}
/**
* Optional payment method type. If specified, the transaction will go through for only instant payment. Only for use with the paypal payment_method, not relevant for the credit_card payment_method.
*/
@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;
}
/**
* Optional payment method type. If specified, the transaction will go through for only instant payment. Only for use with the paypal payment_method, not relevant for the credit_card payment_method.
* @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 - 2024 Weber Informatics LLC | Privacy Policy