Start line:  
End line:  

Snippet Preview

Snippet HTML Code

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

PayPal refund type indicating whether refund was done in invoicing flow via PayPal or externally. In the case of the mark-as-refunded API, refund type is EXTERNAL and this is what is now supported. The PAYPAL value is provided for backward compatibility.
 
	private String type;

Date when the invoice was marked as refunded. If no date is specified, the current date and time is used as the default. In addition, the date must be after the invoice payment date.
	private String date;

Optional note associated with the refund.
	private String note;

Default Constructor
	public RefundDetail() {
	}

Parameterized Constructor
	public RefundDetail(String type) {
		this. = type;
	}


Setter for type
	public RefundDetail setType(String type) {
		this. = type;
		return this;
	}

Getter for type
	public String getType() {
		return this.;
	}


Setter for date
	public RefundDetail setDate(String date) {
		this. = date;
		return this;
	}

Getter for date
	public String getDate() {
		return this.;
	}


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

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

Returns a JSON string corresponding to object state

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