com.paypal.api.payments.Notification 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 Tue Nov 01 15:03:20 CDT 2016
package com.paypal.api.payments;
import com.paypal.base.rest.PayPalModel;
import java.util.List;
public class Notification extends PayPalModel {
/**
* Subject of the notification.
*/
private String subject;
/**
* Note to the payer.
*/
private String note;
/**
* Indicates whether to send a copy of the email to the merchant.
*/
private Boolean sendToMerchant;
/**
* Applicable for invoices created with Cc emails. If this field is not in the body, all the cc email addresses added as part of the invoice shall be notified else this field can be used to limit the list of email addresses. Note: additional email addresses are not supported.
*/
private List ccEmails;
/**
* Default Constructor
*/
public Notification() {
}
/**
* Subject of the notification.
*/
@java.lang.SuppressWarnings("all")
public String getSubject() {
return this.subject;
}
/**
* Note to the payer.
*/
@java.lang.SuppressWarnings("all")
public String getNote() {
return this.note;
}
/**
* Indicates whether to send a copy of the email to the merchant.
*/
@java.lang.SuppressWarnings("all")
public Boolean getSendToMerchant() {
return this.sendToMerchant;
}
/**
* Applicable for invoices created with Cc emails. If this field is not in the body, all the cc email addresses added as part of the invoice shall be notified else this field can be used to limit the list of email addresses. Note: additional email addresses are not supported.
*/
@java.lang.SuppressWarnings("all")
public List getCcEmails() {
return this.ccEmails;
}
/**
* Subject of the notification.
* @return this
*/
@java.lang.SuppressWarnings("all")
public Notification setSubject(final String subject) {
this.subject = subject;
return this;
}
/**
* Note to the payer.
* @return this
*/
@java.lang.SuppressWarnings("all")
public Notification setNote(final String note) {
this.note = note;
return this;
}
/**
* Indicates whether to send a copy of the email to the merchant.
* @return this
*/
@java.lang.SuppressWarnings("all")
public Notification setSendToMerchant(final Boolean sendToMerchant) {
this.sendToMerchant = sendToMerchant;
return this;
}
/**
* Applicable for invoices created with Cc emails. If this field is not in the body, all the cc email addresses added as part of the invoice shall be notified else this field can be used to limit the list of email addresses. Note: additional email addresses are not supported.
* @return this
*/
@java.lang.SuppressWarnings("all")
public Notification setCcEmails(final List ccEmails) {
this.ccEmails = ccEmails;
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 Notification)) return false;
final Notification other = (Notification) o;
if (!other.canEqual((java.lang.Object) this)) return false;
if (!super.equals(o)) return false;
final java.lang.Object this$subject = this.getSubject();
final java.lang.Object other$subject = other.getSubject();
if (this$subject == null ? other$subject != null : !this$subject.equals(other$subject)) return false;
final java.lang.Object this$note = this.getNote();
final java.lang.Object other$note = other.getNote();
if (this$note == null ? other$note != null : !this$note.equals(other$note)) return false;
final java.lang.Object this$sendToMerchant = this.getSendToMerchant();
final java.lang.Object other$sendToMerchant = other.getSendToMerchant();
if (this$sendToMerchant == null ? other$sendToMerchant != null : !this$sendToMerchant.equals(other$sendToMerchant)) return false;
final java.lang.Object this$ccEmails = this.getCcEmails();
final java.lang.Object other$ccEmails = other.getCcEmails();
if (this$ccEmails == null ? other$ccEmails != null : !this$ccEmails.equals(other$ccEmails)) return false;
return true;
}
@java.lang.SuppressWarnings("all")
protected boolean canEqual(final java.lang.Object other) {
return other instanceof Notification;
}
@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 $subject = this.getSubject();
result = result * PRIME + ($subject == null ? 43 : $subject.hashCode());
final java.lang.Object $note = this.getNote();
result = result * PRIME + ($note == null ? 43 : $note.hashCode());
final java.lang.Object $sendToMerchant = this.getSendToMerchant();
result = result * PRIME + ($sendToMerchant == null ? 43 : $sendToMerchant.hashCode());
final java.lang.Object $ccEmails = this.getCcEmails();
result = result * PRIME + ($ccEmails == null ? 43 : $ccEmails.hashCode());
return result;
}
}