Start line:  
End line:  

Snippet Preview

Snippet HTML Code

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

A sale transaction
 
 	private Sale sale;

An authorization transaction
 
A capture transaction
 
 	private Capture capture;

A refund transaction
 
 	private Refund refund;

Default Constructor
 
 	public RelatedResources() {
 	}


Setter for sale
 
 	public RelatedResources setSale(Sale sale) {
 		this. = sale;
 		return this;
 	}

Getter for sale
 
 	public Sale getSale() {
 		return this.;
 	}


Setter for authorization
 
 	public RelatedResources setAuthorization(Authorization authorization) {
 		this. = authorization;
 		return this;
 	}

Getter for authorization
 
 		return this.;
 	}


Setter for capture
 
 	public RelatedResources setCapture(Capture capture) {
 		this. = capture;
 		return this;
 	}

Getter for capture
 
 	public Capture getCapture() {
 		return this.;
 	}


Setter for refund
 
 	public RelatedResources setRefund(Refund refund) {
 		this. = refund;
 		return this;
 	}

Getter for refund
 
 	public Refund getRefund() {
 		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