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

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

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 Presentation extends PayPalModel {
	/**
	 * A label that overrides the business name in the PayPal account on the PayPal pages. Character length and limitations: 127 single-byte alphanumeric characters.
	 */
	private String brandName;
	/**
	 * A URL to the logo image. A valid media type is `.gif`, `.jpg`, or `.png`. The maximum width of the image is 190 pixels. The maximum height of the image is 60 pixels. PayPal crops images that are larger. PayPal places your logo image at the top of the cart review area. PayPal recommends that you store the image on a secure (HTTPS) server. Otherwise, web browsers display a message that checkout pages contain non-secure items. Character length and limit: 127 single-byte alphanumeric characters.
	 */
	private String logoImage;
	/**
	 * The locale of pages displayed by PayPal payment experience. A valid value is `AU`, `AT`, `BE`, `BR`, `CA`, `CH`, `CN`, `DE`, `ES`, `GB`, `FR`, `IT`, `NL`, `PL`, `PT`, `RU`, or `US`. A 5-character code is also valid for languages in specific countries: `da_DK`, `he_IL`, `id_ID`, `ja_JP`, `no_NO`, `pt_BR`, `ru_RU`, `sv_SE`, `th_TH`, `zh_CN`, `zh_HK`, or `zh_TW`.
	 */
	private String localeCode;
	/**
	 * A label to use as hypertext for the return to merchant link.
	 */
	private String returnUrlLabel;
	/**
	 * A label to use as the title for the note to seller field. Used only when `allow_note` is `1`.
	 */
	private String noteToSellerLabel;

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

	/**
	 * A label that overrides the business name in the PayPal account on the PayPal pages. Character length and limitations: 127 single-byte alphanumeric characters.
	 */
	@java.lang.SuppressWarnings("all")
	public String getBrandName() {
		return this.brandName;
	}

	/**
	 * A URL to the logo image. A valid media type is `.gif`, `.jpg`, or `.png`. The maximum width of the image is 190 pixels. The maximum height of the image is 60 pixels. PayPal crops images that are larger. PayPal places your logo image at the top of the cart review area. PayPal recommends that you store the image on a secure (HTTPS) server. Otherwise, web browsers display a message that checkout pages contain non-secure items. Character length and limit: 127 single-byte alphanumeric characters.
	 */
	@java.lang.SuppressWarnings("all")
	public String getLogoImage() {
		return this.logoImage;
	}

	/**
	 * The locale of pages displayed by PayPal payment experience. A valid value is `AU`, `AT`, `BE`, `BR`, `CA`, `CH`, `CN`, `DE`, `ES`, `GB`, `FR`, `IT`, `NL`, `PL`, `PT`, `RU`, or `US`. A 5-character code is also valid for languages in specific countries: `da_DK`, `he_IL`, `id_ID`, `ja_JP`, `no_NO`, `pt_BR`, `ru_RU`, `sv_SE`, `th_TH`, `zh_CN`, `zh_HK`, or `zh_TW`.
	 */
	@java.lang.SuppressWarnings("all")
	public String getLocaleCode() {
		return this.localeCode;
	}

	/**
	 * A label to use as hypertext for the return to merchant link.
	 */
	@java.lang.SuppressWarnings("all")
	public String getReturnUrlLabel() {
		return this.returnUrlLabel;
	}

	/**
	 * A label to use as the title for the note to seller field. Used only when `allow_note` is `1`.
	 */
	@java.lang.SuppressWarnings("all")
	public String getNoteToSellerLabel() {
		return this.noteToSellerLabel;
	}

	/**
	 * A label that overrides the business name in the PayPal account on the PayPal pages. Character length and limitations: 127 single-byte alphanumeric characters.
	 * @return this
	 */
	@java.lang.SuppressWarnings("all")
	public Presentation setBrandName(final String brandName) {
		this.brandName = brandName;
		return this;
	}

	/**
	 * A URL to the logo image. A valid media type is `.gif`, `.jpg`, or `.png`. The maximum width of the image is 190 pixels. The maximum height of the image is 60 pixels. PayPal crops images that are larger. PayPal places your logo image at the top of the cart review area. PayPal recommends that you store the image on a secure (HTTPS) server. Otherwise, web browsers display a message that checkout pages contain non-secure items. Character length and limit: 127 single-byte alphanumeric characters.
	 * @return this
	 */
	@java.lang.SuppressWarnings("all")
	public Presentation setLogoImage(final String logoImage) {
		this.logoImage = logoImage;
		return this;
	}

	/**
	 * The locale of pages displayed by PayPal payment experience. A valid value is `AU`, `AT`, `BE`, `BR`, `CA`, `CH`, `CN`, `DE`, `ES`, `GB`, `FR`, `IT`, `NL`, `PL`, `PT`, `RU`, or `US`. A 5-character code is also valid for languages in specific countries: `da_DK`, `he_IL`, `id_ID`, `ja_JP`, `no_NO`, `pt_BR`, `ru_RU`, `sv_SE`, `th_TH`, `zh_CN`, `zh_HK`, or `zh_TW`.
	 * @return this
	 */
	@java.lang.SuppressWarnings("all")
	public Presentation setLocaleCode(final String localeCode) {
		this.localeCode = localeCode;
		return this;
	}

	/**
	 * A label to use as hypertext for the return to merchant link.
	 * @return this
	 */
	@java.lang.SuppressWarnings("all")
	public Presentation setReturnUrlLabel(final String returnUrlLabel) {
		this.returnUrlLabel = returnUrlLabel;
		return this;
	}

	/**
	 * A label to use as the title for the note to seller field. Used only when `allow_note` is `1`.
	 * @return this
	 */
	@java.lang.SuppressWarnings("all")
	public Presentation setNoteToSellerLabel(final String noteToSellerLabel) {
		this.noteToSellerLabel = noteToSellerLabel;
		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 Presentation)) return false;
		final Presentation other = (Presentation) o;
		if (!other.canEqual((java.lang.Object) this)) return false;
		if (!super.equals(o)) return false;
		final java.lang.Object this$brandName = this.getBrandName();
		final java.lang.Object other$brandName = other.getBrandName();
		if (this$brandName == null ? other$brandName != null : !this$brandName.equals(other$brandName)) return false;
		final java.lang.Object this$logoImage = this.getLogoImage();
		final java.lang.Object other$logoImage = other.getLogoImage();
		if (this$logoImage == null ? other$logoImage != null : !this$logoImage.equals(other$logoImage)) return false;
		final java.lang.Object this$localeCode = this.getLocaleCode();
		final java.lang.Object other$localeCode = other.getLocaleCode();
		if (this$localeCode == null ? other$localeCode != null : !this$localeCode.equals(other$localeCode)) return false;
		final java.lang.Object this$returnUrlLabel = this.getReturnUrlLabel();
		final java.lang.Object other$returnUrlLabel = other.getReturnUrlLabel();
		if (this$returnUrlLabel == null ? other$returnUrlLabel != null : !this$returnUrlLabel.equals(other$returnUrlLabel)) return false;
		final java.lang.Object this$noteToSellerLabel = this.getNoteToSellerLabel();
		final java.lang.Object other$noteToSellerLabel = other.getNoteToSellerLabel();
		if (this$noteToSellerLabel == null ? other$noteToSellerLabel != null : !this$noteToSellerLabel.equals(other$noteToSellerLabel)) return false;
		return true;
	}

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

	@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 $brandName = this.getBrandName();
		result = result * PRIME + ($brandName == null ? 43 : $brandName.hashCode());
		final java.lang.Object $logoImage = this.getLogoImage();
		result = result * PRIME + ($logoImage == null ? 43 : $logoImage.hashCode());
		final java.lang.Object $localeCode = this.getLocaleCode();
		result = result * PRIME + ($localeCode == null ? 43 : $localeCode.hashCode());
		final java.lang.Object $returnUrlLabel = this.getReturnUrlLabel();
		result = result * PRIME + ($returnUrlLabel == null ? 43 : $returnUrlLabel.hashCode());
		final java.lang.Object $noteToSellerLabel = this.getNoteToSellerLabel();
		result = result * PRIME + ($noteToSellerLabel == null ? 43 : $noteToSellerLabel.hashCode());
		return result;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy