com.paypal.api.payments.Incentive 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 Incentive extends PayPalModel {
/**
* Identifier of the instrument in PayPal Wallet
*/
private String id;
/**
* Code that identifies the incentive.
*/
private String code;
/**
* Name of the incentive.
*/
private String name;
/**
* Description of the incentive.
*/
private String description;
/**
* Indicates incentive is applicable for this minimum purchase amount.
*/
private Currency minimumPurchaseAmount;
/**
* Logo image url for the incentive.
*/
private String logoImageUrl;
/**
* expiry date of the incentive.
*/
private String expiryDate;
/**
* Specifies type of incentive
*/
private String type;
/**
* URI to the associated terms
*/
private String terms;
/**
* Default Constructor
*/
public Incentive() {
}
/**
* Identifier of the instrument in PayPal Wallet
*/
@java.lang.SuppressWarnings("all")
public String getId() {
return this.id;
}
/**
* Code that identifies the incentive.
*/
@java.lang.SuppressWarnings("all")
public String getCode() {
return this.code;
}
/**
* Name of the incentive.
*/
@java.lang.SuppressWarnings("all")
public String getName() {
return this.name;
}
/**
* Description of the incentive.
*/
@java.lang.SuppressWarnings("all")
public String getDescription() {
return this.description;
}
/**
* Indicates incentive is applicable for this minimum purchase amount.
*/
@java.lang.SuppressWarnings("all")
public Currency getMinimumPurchaseAmount() {
return this.minimumPurchaseAmount;
}
/**
* Logo image url for the incentive.
*/
@java.lang.SuppressWarnings("all")
public String getLogoImageUrl() {
return this.logoImageUrl;
}
/**
* expiry date of the incentive.
*/
@java.lang.SuppressWarnings("all")
public String getExpiryDate() {
return this.expiryDate;
}
/**
* Specifies type of incentive
*/
@java.lang.SuppressWarnings("all")
public String getType() {
return this.type;
}
/**
* URI to the associated terms
*/
@java.lang.SuppressWarnings("all")
public String getTerms() {
return this.terms;
}
/**
* Identifier of the instrument in PayPal Wallet
* @return this
*/
@java.lang.SuppressWarnings("all")
public Incentive setId(final String id) {
this.id = id;
return this;
}
/**
* Code that identifies the incentive.
* @return this
*/
@java.lang.SuppressWarnings("all")
public Incentive setCode(final String code) {
this.code = code;
return this;
}
/**
* Name of the incentive.
* @return this
*/
@java.lang.SuppressWarnings("all")
public Incentive setName(final String name) {
this.name = name;
return this;
}
/**
* Description of the incentive.
* @return this
*/
@java.lang.SuppressWarnings("all")
public Incentive setDescription(final String description) {
this.description = description;
return this;
}
/**
* Indicates incentive is applicable for this minimum purchase amount.
* @return this
*/
@java.lang.SuppressWarnings("all")
public Incentive setMinimumPurchaseAmount(final Currency minimumPurchaseAmount) {
this.minimumPurchaseAmount = minimumPurchaseAmount;
return this;
}
/**
* Logo image url for the incentive.
* @return this
*/
@java.lang.SuppressWarnings("all")
public Incentive setLogoImageUrl(final String logoImageUrl) {
this.logoImageUrl = logoImageUrl;
return this;
}
/**
* expiry date of the incentive.
* @return this
*/
@java.lang.SuppressWarnings("all")
public Incentive setExpiryDate(final String expiryDate) {
this.expiryDate = expiryDate;
return this;
}
/**
* Specifies type of incentive
* @return this
*/
@java.lang.SuppressWarnings("all")
public Incentive setType(final String type) {
this.type = type;
return this;
}
/**
* URI to the associated terms
* @return this
*/
@java.lang.SuppressWarnings("all")
public Incentive setTerms(final String terms) {
this.terms = terms;
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 Incentive)) return false;
final Incentive other = (Incentive) 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$code = this.getCode();
final java.lang.Object other$code = other.getCode();
if (this$code == null ? other$code != null : !this$code.equals(other$code)) return false;
final java.lang.Object this$name = this.getName();
final java.lang.Object other$name = other.getName();
if (this$name == null ? other$name != null : !this$name.equals(other$name)) return false;
final java.lang.Object this$description = this.getDescription();
final java.lang.Object other$description = other.getDescription();
if (this$description == null ? other$description != null : !this$description.equals(other$description)) return false;
final java.lang.Object this$minimumPurchaseAmount = this.getMinimumPurchaseAmount();
final java.lang.Object other$minimumPurchaseAmount = other.getMinimumPurchaseAmount();
if (this$minimumPurchaseAmount == null ? other$minimumPurchaseAmount != null : !this$minimumPurchaseAmount.equals(other$minimumPurchaseAmount)) return false;
final java.lang.Object this$logoImageUrl = this.getLogoImageUrl();
final java.lang.Object other$logoImageUrl = other.getLogoImageUrl();
if (this$logoImageUrl == null ? other$logoImageUrl != null : !this$logoImageUrl.equals(other$logoImageUrl)) return false;
final java.lang.Object this$expiryDate = this.getExpiryDate();
final java.lang.Object other$expiryDate = other.getExpiryDate();
if (this$expiryDate == null ? other$expiryDate != null : !this$expiryDate.equals(other$expiryDate)) return false;
final java.lang.Object this$type = this.getType();
final java.lang.Object other$type = other.getType();
if (this$type == null ? other$type != null : !this$type.equals(other$type)) return false;
final java.lang.Object this$terms = this.getTerms();
final java.lang.Object other$terms = other.getTerms();
if (this$terms == null ? other$terms != null : !this$terms.equals(other$terms)) return false;
return true;
}
@java.lang.SuppressWarnings("all")
protected boolean canEqual(final java.lang.Object other) {
return other instanceof Incentive;
}
@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 $code = this.getCode();
result = result * PRIME + ($code == null ? 43 : $code.hashCode());
final java.lang.Object $name = this.getName();
result = result * PRIME + ($name == null ? 43 : $name.hashCode());
final java.lang.Object $description = this.getDescription();
result = result * PRIME + ($description == null ? 43 : $description.hashCode());
final java.lang.Object $minimumPurchaseAmount = this.getMinimumPurchaseAmount();
result = result * PRIME + ($minimumPurchaseAmount == null ? 43 : $minimumPurchaseAmount.hashCode());
final java.lang.Object $logoImageUrl = this.getLogoImageUrl();
result = result * PRIME + ($logoImageUrl == null ? 43 : $logoImageUrl.hashCode());
final java.lang.Object $expiryDate = this.getExpiryDate();
result = result * PRIME + ($expiryDate == null ? 43 : $expiryDate.hashCode());
final java.lang.Object $type = this.getType();
result = result * PRIME + ($type == null ? 43 : $type.hashCode());
final java.lang.Object $terms = this.getTerms();
result = result * PRIME + ($terms == null ? 43 : $terms.hashCode());
return result;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy