Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  package com.paypal.api.payments;
  public class CancelNotification  {

Subject of the notification.
 	private String subject;

Note to the payer.
 	private String note;

A flag indicating whether a copy of the email has to be sent to the merchant.
 	private Boolean sendToMerchant;

A flag indicating whether a copy of the email has to be sent to the payer.
 	private Boolean sendToPayer;

Default Constructor
 	public CancelNotification() {

Setter for subject
 	public CancelNotification setSubject(String subject) {
 		this. = subject;
 		return this;

Getter for subject
 	public String getSubject() {
 		return this.;

Setter for note
 	public CancelNotification setNote(String note) {
 		this. = note;
 		return this;

Getter for note
 	public String getNote() {
 		return this.;

Setter for sendToMerchant
 	public CancelNotification setSendToMerchant(Boolean sendToMerchant) {
 		this. = sendToMerchant;
 		return this;

Getter for sendToMerchant
 	public Boolean getSendToMerchant() {
 		return this.;

Setter for sendToPayer
 	public CancelNotification setSendToPayer(Boolean sendToPayer) {
 		this. = sendToPayer;
 		return this;

Getter for sendToPayer
 	public Boolean getSendToPayer() {
 		return this.;

Returns a JSON string corresponding to object state

JSON representation
	public String toJSON() {
		return JSONFormatter.toJSON(this);
	public String toString() {
		return toJSON();
New to GrepCode? Check out our FAQ X