Start line:  
End line:  

Snippet Preview

Snippet HTML Code

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

Amount being collected.
	private Amount amount;

Default Constructor
	public Transactions() {

Parameterized Constructor
	public Transactions(Amount amount) {
		this. = amount;

Setter for amount
	public Transactions setAmount(Amount amount) {
		this. = amount;
		return this;

Getter for amount
	public Amount getAmount() {
		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