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 Amount  {

3 letter currency code
	private String currency;

Total amount charged from the Payer account (or card) to Payee. In case of a refund, this is the refunded amount to the original Payer from Payee account.
	private String total;

Additional details of the payment amount.
	private Details details;

Default Constructor
	public Amount() {
	}

Parameterized Constructor
	public Amount(String currencyString total) {
		this. = currency;
		this. = total;
	}


Setter for currency
	public Amount setCurrency(String currency) {
		this. = currency;
		return this;
	}

Getter for currency
	public String getCurrency() {
		return this.;
	}


Setter for total
	public Amount setTotal(String total) {
		this. = total;
		return this;
	}

Getter for total
	public String getTotal() {
		return this.;
	}


Setter for details
	public Amount setDetails(Details details) {
		this. = details;
		return this;
	}

Getter for details
	public Details getDetails() {
		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