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

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

There is a newer version: 1.14.0
Show newest version
// 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 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 logo image. Allowed vaues: `.gif`, `.jpg`, or `.png`. Limit the image to 190 pixels wide by 60 pixels high. 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;
	/**
	 * Locale of pages displayed by PayPal payment experience. Allowed values: `AU`, `AT`, `BE`, `BR`, `CA`, `CH`, `CN`, `DE`, `ES`, `GB`, `FR`, `IT`, `NL`, `PL`, `PT`, `RU`, `US`. The following 5-character codes are also allowed for languages in specific countries: `da_DK`, `he_IL`, `id_ID`, `ja_JP`, `no_NO`, `pt_BR`, `ru_RU`, `sv_SE`, `th_TH`, `tr_TR`, `zh_CN`, `zh_HK`, `zh_TW`.
	 */
	private String localeCode;

	/**
	 * 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 logo image. Allowed vaues: `.gif`, `.jpg`, or `.png`. Limit the image to 190 pixels wide by 60 pixels high. 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;
	}

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

	/**
	 * 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 logo image. Allowed vaues: `.gif`, `.jpg`, or `.png`. Limit the image to 190 pixels wide by 60 pixels high. 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;
	}

	/**
	 * Locale of pages displayed by PayPal payment experience. Allowed values: `AU`, `AT`, `BE`, `BR`, `CA`, `CH`, `CN`, `DE`, `ES`, `GB`, `FR`, `IT`, `NL`, `PL`, `PT`, `RU`, `US`. The following 5-character codes are also allowed for languages in specific countries: `da_DK`, `he_IL`, `id_ID`, `ja_JP`, `no_NO`, `pt_BR`, `ru_RU`, `sv_SE`, `th_TH`, `tr_TR`, `zh_CN`, `zh_HK`, `zh_TW`.
	 * @return this
	 */
	@java.lang.SuppressWarnings("all")
	public Presentation setLocaleCode(final String localeCode) {
		this.localeCode = localeCode;
		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;
		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());
		return result;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy