com.paypal.api.payments.CancelNotification 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
The newest version!
// Generated by delombok at Thu Nov 16 13:48:04 CST 2017
package com.paypal.api.payments;
import com.paypal.base.rest.PayPalModel;
import java.util.List;
public class CancelNotification extends PayPalModel {
/**
* Subject of the notification.
*/
private String subject;
/**
* Note to the payer.
*/
private String note;
/**
* Indicates whether to send a copy of the notification to the merchant.
*/
private Boolean sendToMerchant;
/**
* Indicates whether to send a copy of the notification to the payer.
*/
private Boolean sendToPayer;
/**
* 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 CancelNotification() {
}
/**
* 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 notification to the merchant.
*/
@java.lang.SuppressWarnings("all")
public Boolean getSendToMerchant() {
return this.sendToMerchant;
}
/**
* Indicates whether to send a copy of the notification to the payer.
*/
@java.lang.SuppressWarnings("all")
public Boolean getSendToPayer() {
return this.sendToPayer;
}
/**
* 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 CancelNotification setSubject(final String subject) {
this.subject = subject;
return this;
}
/**
* Note to the payer.
* @return this
*/
@java.lang.SuppressWarnings("all")
public CancelNotification setNote(final String note) {
this.note = note;
return this;
}
/**
* Indicates whether to send a copy of the notification to the merchant.
* @return this
*/
@java.lang.SuppressWarnings("all")
public CancelNotification setSendToMerchant(final Boolean sendToMerchant) {
this.sendToMerchant = sendToMerchant;
return this;
}
/**
* Indicates whether to send a copy of the notification to the payer.
* @return this
*/
@java.lang.SuppressWarnings("all")
public CancelNotification setSendToPayer(final Boolean sendToPayer) {
this.sendToPayer = sendToPayer;
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 CancelNotification 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 CancelNotification)) return false;
final CancelNotification other = (CancelNotification) 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$sendToPayer = this.getSendToPayer();
final java.lang.Object other$sendToPayer = other.getSendToPayer();
if (this$sendToPayer == null ? other$sendToPayer != null : !this$sendToPayer.equals(other$sendToPayer)) 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 CancelNotification;
}
@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 $sendToPayer = this.getSendToPayer();
result = result * PRIME + ($sendToPayer == null ? 43 : $sendToPayer.hashCode());
final java.lang.Object $ccEmails = this.getCcEmails();
result = result * PRIME + ($ccEmails == null ? 43 : $ccEmails.hashCode());
return result;
}
}