com.paypal.api.payments.MerchantPreferences 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 MerchantPreferences extends PayPalModel {
/**
* Identifier of the merchant_preferences. 128 characters max.
*/
private String id;
/**
* Setup fee amount. Default is 0.
*/
private Currency setupFee;
/**
* Redirect URL on cancellation of agreement request. 1000 characters max.
*/
private String cancelUrl;
/**
* Redirect URL on creation of agreement request. 1000 characters max.
*/
private String returnUrl;
/**
* Notify URL on agreement creation. 1000 characters max.
*/
private String notifyUrl;
/**
* Total number of failed attempts allowed. Default is 0, representing an infinite number of failed attempts.
*/
private String maxFailAttempts;
/**
* Allow auto billing for the outstanding amount of the agreement in the next cycle. Allowed values: `YES`, `NO`. Default is `NO`.
*/
private String autoBillAmount;
/**
* Action to take if a failure occurs during initial payment. Allowed values: `CONTINUE`, `CANCEL`. Default is continue.
*/
private String initialFailAmountAction;
/**
* Payment types that are accepted for this plan.
*/
private String acceptedPaymentType;
/**
* char_set for this plan.
*/
private String charSet;
/**
* Default Constructor
*/
public MerchantPreferences() {
}
/**
* Parameterized Constructor
*/
public MerchantPreferences(String cancelUrl, String returnUrl) {
this.cancelUrl = cancelUrl;
this.returnUrl = returnUrl;
}
/**
* Identifier of the merchant_preferences. 128 characters max.
*/
@java.lang.SuppressWarnings("all")
public String getId() {
return this.id;
}
/**
* Setup fee amount. Default is 0.
*/
@java.lang.SuppressWarnings("all")
public Currency getSetupFee() {
return this.setupFee;
}
/**
* Redirect URL on cancellation of agreement request. 1000 characters max.
*/
@java.lang.SuppressWarnings("all")
public String getCancelUrl() {
return this.cancelUrl;
}
/**
* Redirect URL on creation of agreement request. 1000 characters max.
*/
@java.lang.SuppressWarnings("all")
public String getReturnUrl() {
return this.returnUrl;
}
/**
* Notify URL on agreement creation. 1000 characters max.
*/
@java.lang.SuppressWarnings("all")
public String getNotifyUrl() {
return this.notifyUrl;
}
/**
* Total number of failed attempts allowed. Default is 0, representing an infinite number of failed attempts.
*/
@java.lang.SuppressWarnings("all")
public String getMaxFailAttempts() {
return this.maxFailAttempts;
}
/**
* Allow auto billing for the outstanding amount of the agreement in the next cycle. Allowed values: `YES`, `NO`. Default is `NO`.
*/
@java.lang.SuppressWarnings("all")
public String getAutoBillAmount() {
return this.autoBillAmount;
}
/**
* Action to take if a failure occurs during initial payment. Allowed values: `CONTINUE`, `CANCEL`. Default is continue.
*/
@java.lang.SuppressWarnings("all")
public String getInitialFailAmountAction() {
return this.initialFailAmountAction;
}
/**
* Payment types that are accepted for this plan.
*/
@java.lang.SuppressWarnings("all")
public String getAcceptedPaymentType() {
return this.acceptedPaymentType;
}
/**
* char_set for this plan.
*/
@java.lang.SuppressWarnings("all")
public String getCharSet() {
return this.charSet;
}
/**
* Identifier of the merchant_preferences. 128 characters max.
* @return this
*/
@java.lang.SuppressWarnings("all")
public MerchantPreferences setId(final String id) {
this.id = id;
return this;
}
/**
* Setup fee amount. Default is 0.
* @return this
*/
@java.lang.SuppressWarnings("all")
public MerchantPreferences setSetupFee(final Currency setupFee) {
this.setupFee = setupFee;
return this;
}
/**
* Redirect URL on cancellation of agreement request. 1000 characters max.
* @return this
*/
@java.lang.SuppressWarnings("all")
public MerchantPreferences setCancelUrl(final String cancelUrl) {
this.cancelUrl = cancelUrl;
return this;
}
/**
* Redirect URL on creation of agreement request. 1000 characters max.
* @return this
*/
@java.lang.SuppressWarnings("all")
public MerchantPreferences setReturnUrl(final String returnUrl) {
this.returnUrl = returnUrl;
return this;
}
/**
* Notify URL on agreement creation. 1000 characters max.
* @return this
*/
@java.lang.SuppressWarnings("all")
public MerchantPreferences setNotifyUrl(final String notifyUrl) {
this.notifyUrl = notifyUrl;
return this;
}
/**
* Total number of failed attempts allowed. Default is 0, representing an infinite number of failed attempts.
* @return this
*/
@java.lang.SuppressWarnings("all")
public MerchantPreferences setMaxFailAttempts(final String maxFailAttempts) {
this.maxFailAttempts = maxFailAttempts;
return this;
}
/**
* Allow auto billing for the outstanding amount of the agreement in the next cycle. Allowed values: `YES`, `NO`. Default is `NO`.
* @return this
*/
@java.lang.SuppressWarnings("all")
public MerchantPreferences setAutoBillAmount(final String autoBillAmount) {
this.autoBillAmount = autoBillAmount;
return this;
}
/**
* Action to take if a failure occurs during initial payment. Allowed values: `CONTINUE`, `CANCEL`. Default is continue.
* @return this
*/
@java.lang.SuppressWarnings("all")
public MerchantPreferences setInitialFailAmountAction(final String initialFailAmountAction) {
this.initialFailAmountAction = initialFailAmountAction;
return this;
}
/**
* Payment types that are accepted for this plan.
* @return this
*/
@java.lang.SuppressWarnings("all")
public MerchantPreferences setAcceptedPaymentType(final String acceptedPaymentType) {
this.acceptedPaymentType = acceptedPaymentType;
return this;
}
/**
* char_set for this plan.
* @return this
*/
@java.lang.SuppressWarnings("all")
public MerchantPreferences setCharSet(final String charSet) {
this.charSet = charSet;
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 MerchantPreferences)) return false;
final MerchantPreferences other = (MerchantPreferences) o;
if (!other.canEqual((java.lang.Object) this)) return false;
if (!super.equals(o)) return false;
final java.lang.Object this$id = this.getId();
final java.lang.Object other$id = other.getId();
if (this$id == null ? other$id != null : !this$id.equals(other$id)) return false;
final java.lang.Object this$setupFee = this.getSetupFee();
final java.lang.Object other$setupFee = other.getSetupFee();
if (this$setupFee == null ? other$setupFee != null : !this$setupFee.equals(other$setupFee)) return false;
final java.lang.Object this$cancelUrl = this.getCancelUrl();
final java.lang.Object other$cancelUrl = other.getCancelUrl();
if (this$cancelUrl == null ? other$cancelUrl != null : !this$cancelUrl.equals(other$cancelUrl)) return false;
final java.lang.Object this$returnUrl = this.getReturnUrl();
final java.lang.Object other$returnUrl = other.getReturnUrl();
if (this$returnUrl == null ? other$returnUrl != null : !this$returnUrl.equals(other$returnUrl)) return false;
final java.lang.Object this$notifyUrl = this.getNotifyUrl();
final java.lang.Object other$notifyUrl = other.getNotifyUrl();
if (this$notifyUrl == null ? other$notifyUrl != null : !this$notifyUrl.equals(other$notifyUrl)) return false;
final java.lang.Object this$maxFailAttempts = this.getMaxFailAttempts();
final java.lang.Object other$maxFailAttempts = other.getMaxFailAttempts();
if (this$maxFailAttempts == null ? other$maxFailAttempts != null : !this$maxFailAttempts.equals(other$maxFailAttempts)) return false;
final java.lang.Object this$autoBillAmount = this.getAutoBillAmount();
final java.lang.Object other$autoBillAmount = other.getAutoBillAmount();
if (this$autoBillAmount == null ? other$autoBillAmount != null : !this$autoBillAmount.equals(other$autoBillAmount)) return false;
final java.lang.Object this$initialFailAmountAction = this.getInitialFailAmountAction();
final java.lang.Object other$initialFailAmountAction = other.getInitialFailAmountAction();
if (this$initialFailAmountAction == null ? other$initialFailAmountAction != null : !this$initialFailAmountAction.equals(other$initialFailAmountAction)) return false;
final java.lang.Object this$acceptedPaymentType = this.getAcceptedPaymentType();
final java.lang.Object other$acceptedPaymentType = other.getAcceptedPaymentType();
if (this$acceptedPaymentType == null ? other$acceptedPaymentType != null : !this$acceptedPaymentType.equals(other$acceptedPaymentType)) return false;
final java.lang.Object this$charSet = this.getCharSet();
final java.lang.Object other$charSet = other.getCharSet();
if (this$charSet == null ? other$charSet != null : !this$charSet.equals(other$charSet)) return false;
return true;
}
@java.lang.SuppressWarnings("all")
protected boolean canEqual(final java.lang.Object other) {
return other instanceof MerchantPreferences;
}
@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 $id = this.getId();
result = result * PRIME + ($id == null ? 43 : $id.hashCode());
final java.lang.Object $setupFee = this.getSetupFee();
result = result * PRIME + ($setupFee == null ? 43 : $setupFee.hashCode());
final java.lang.Object $cancelUrl = this.getCancelUrl();
result = result * PRIME + ($cancelUrl == null ? 43 : $cancelUrl.hashCode());
final java.lang.Object $returnUrl = this.getReturnUrl();
result = result * PRIME + ($returnUrl == null ? 43 : $returnUrl.hashCode());
final java.lang.Object $notifyUrl = this.getNotifyUrl();
result = result * PRIME + ($notifyUrl == null ? 43 : $notifyUrl.hashCode());
final java.lang.Object $maxFailAttempts = this.getMaxFailAttempts();
result = result * PRIME + ($maxFailAttempts == null ? 43 : $maxFailAttempts.hashCode());
final java.lang.Object $autoBillAmount = this.getAutoBillAmount();
result = result * PRIME + ($autoBillAmount == null ? 43 : $autoBillAmount.hashCode());
final java.lang.Object $initialFailAmountAction = this.getInitialFailAmountAction();
result = result * PRIME + ($initialFailAmountAction == null ? 43 : $initialFailAmountAction.hashCode());
final java.lang.Object $acceptedPaymentType = this.getAcceptedPaymentType();
result = result * PRIME + ($acceptedPaymentType == null ? 43 : $acceptedPaymentType.hashCode());
final java.lang.Object $charSet = this.getCharSet();
result = result * PRIME + ($charSet == null ? 43 : $charSet.hashCode());
return result;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy