Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  package com.paypal.api.payments;
  
  import  com.paypal.core.rest.JSONFormatter;
  
  public class Terms  {

Identifier of the terms.
 
 	private String id;

Term type
 
 	private String type;

Max Amount associated with this term.
 
How many times money can be pulled during this term.
 
 	private String occurrences;

Amount_range associated with this term.
 
 	private Currency amountRange;

Buyer's ability to edit the amount in this term.
 
 	private String buyerEditable;

Default Constructor
 
 	public Terms() {
 	}

Parameterized Constructor
 
 	public Terms(String typeCurrency maxBillingAmountString occurrencesCurrency amountRangeString buyerEditable) {
 		this. = type;
 		this. = maxBillingAmount;
 		this. = occurrences;
 		this. = amountRange;
 		this. = buyerEditable;
 	}


Setter for id
 
 	public Terms setId(String id) {
 		this. = id;
 		return this;
 	}

Getter for id
 
 	public String getId() {
 		return this.;
 	}


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

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


Setter for maxBillingAmount
 
 	public Terms setMaxBillingAmount(Currency maxBillingAmount) {
 		this. = maxBillingAmount;
 		return this;
 	}

Getter for maxBillingAmount
 
		return this.;
	}


Setter for occurrences
	public Terms setOccurrences(String occurrences) {
		this. = occurrences;
		return this;
	}

Getter for occurrences
	public String getOccurrences() {
		return this.;
	}


Setter for amountRange
	public Terms setAmountRange(Currency amountRange) {
		this. = amountRange;
		return this;
	}

Getter for amountRange
		return this.;
	}


Setter for buyerEditable
	public Terms setBuyerEditable(String buyerEditable) {
		this. = buyerEditable;
		return this;
	}

Getter for buyerEditable
		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