All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.paypal.api.payments.FlowConfig Maven / Gradle / Ivy

There is a newer version: 1.14.0
Show newest version
// Generated by delombok at Tue Jan 31 13:36:37 CST 2017
package com.paypal.api.payments;

import com.paypal.base.rest.PayPalModel;

public class FlowConfig extends PayPalModel {
	/**
	 * The type of landing page to display on the PayPal site for user checkout. Set to `Billing` to use the non-PayPal account landing page. Set to `Login` to use the PayPal account login landing page.
	 */
	private String landingPageType;
	/**
	 * The merchant site URL to display after a bank transfer payment. Valid for only the Giropay or bank transfer payment method in Germany.
	 */
	private String bankTxnPendingUrl;
	/**
	 * Defines whether buyers can complete purchases on the PayPal or merchant website.
	 */
	private String userAction;
	/**
	 * Defines the HTTP method to use to redirect the user to a return URL. A valid value is `GET` or `POST`.
	 */
	private String returnUriHttpMethod;

	/**
	 * Default Constructor
	 */
	public FlowConfig() {
	}

	/**
	 * The type of landing page to display on the PayPal site for user checkout. Set to `Billing` to use the non-PayPal account landing page. Set to `Login` to use the PayPal account login landing page.
	 */
	@java.lang.SuppressWarnings("all")
	public String getLandingPageType() {
		return this.landingPageType;
	}

	/**
	 * The merchant site URL to display after a bank transfer payment. Valid for only the Giropay or bank transfer payment method in Germany.
	 */
	@java.lang.SuppressWarnings("all")
	public String getBankTxnPendingUrl() {
		return this.bankTxnPendingUrl;
	}

	/**
	 * Defines whether buyers can complete purchases on the PayPal or merchant website.
	 */
	@java.lang.SuppressWarnings("all")
	public String getUserAction() {
		return this.userAction;
	}

	/**
	 * Defines the HTTP method to use to redirect the user to a return URL. A valid value is `GET` or `POST`.
	 */
	@java.lang.SuppressWarnings("all")
	public String getReturnUriHttpMethod() {
		return this.returnUriHttpMethod;
	}

	/**
	 * The type of landing page to display on the PayPal site for user checkout. Set to `Billing` to use the non-PayPal account landing page. Set to `Login` to use the PayPal account login landing page.
	 * @return this
	 */
	@java.lang.SuppressWarnings("all")
	public FlowConfig setLandingPageType(final String landingPageType) {
		this.landingPageType = landingPageType;
		return this;
	}

	/**
	 * The merchant site URL to display after a bank transfer payment. Valid for only the Giropay or bank transfer payment method in Germany.
	 * @return this
	 */
	@java.lang.SuppressWarnings("all")
	public FlowConfig setBankTxnPendingUrl(final String bankTxnPendingUrl) {
		this.bankTxnPendingUrl = bankTxnPendingUrl;
		return this;
	}

	/**
	 * Defines whether buyers can complete purchases on the PayPal or merchant website.
	 * @return this
	 */
	@java.lang.SuppressWarnings("all")
	public FlowConfig setUserAction(final String userAction) {
		this.userAction = userAction;
		return this;
	}

	/**
	 * Defines the HTTP method to use to redirect the user to a return URL. A valid value is `GET` or `POST`.
	 * @return this
	 */
	@java.lang.SuppressWarnings("all")
	public FlowConfig setReturnUriHttpMethod(final String returnUriHttpMethod) {
		this.returnUriHttpMethod = returnUriHttpMethod;
		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 FlowConfig)) return false;
		final FlowConfig other = (FlowConfig) o;
		if (!other.canEqual((java.lang.Object) this)) return false;
		if (!super.equals(o)) return false;
		final java.lang.Object this$landingPageType = this.getLandingPageType();
		final java.lang.Object other$landingPageType = other.getLandingPageType();
		if (this$landingPageType == null ? other$landingPageType != null : !this$landingPageType.equals(other$landingPageType)) return false;
		final java.lang.Object this$bankTxnPendingUrl = this.getBankTxnPendingUrl();
		final java.lang.Object other$bankTxnPendingUrl = other.getBankTxnPendingUrl();
		if (this$bankTxnPendingUrl == null ? other$bankTxnPendingUrl != null : !this$bankTxnPendingUrl.equals(other$bankTxnPendingUrl)) return false;
		final java.lang.Object this$userAction = this.getUserAction();
		final java.lang.Object other$userAction = other.getUserAction();
		if (this$userAction == null ? other$userAction != null : !this$userAction.equals(other$userAction)) return false;
		final java.lang.Object this$returnUriHttpMethod = this.getReturnUriHttpMethod();
		final java.lang.Object other$returnUriHttpMethod = other.getReturnUriHttpMethod();
		if (this$returnUriHttpMethod == null ? other$returnUriHttpMethod != null : !this$returnUriHttpMethod.equals(other$returnUriHttpMethod)) return false;
		return true;
	}

	@java.lang.SuppressWarnings("all")
	protected boolean canEqual(final java.lang.Object other) {
		return other instanceof FlowConfig;
	}

	@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 $landingPageType = this.getLandingPageType();
		result = result * PRIME + ($landingPageType == null ? 43 : $landingPageType.hashCode());
		final java.lang.Object $bankTxnPendingUrl = this.getBankTxnPendingUrl();
		result = result * PRIME + ($bankTxnPendingUrl == null ? 43 : $bankTxnPendingUrl.hashCode());
		final java.lang.Object $userAction = this.getUserAction();
		result = result * PRIME + ($userAction == null ? 43 : $userAction.hashCode());
		final java.lang.Object $returnUriHttpMethod = this.getReturnUriHttpMethod();
		result = result * PRIME + ($returnUriHttpMethod == null ? 43 : $returnUriHttpMethod.hashCode());
		return result;
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy