Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.paypal.api.payments;
 public class Amount extends Resource {

	private String total;

	private String currency;

	public Amount() {

Getter for total
	public String getTotal() {
		return ;

Setter for total;
	public void setTotal(String total) {
		this. = total;
Getter for currency
	public String getCurrency() {
		return ;

Setter for currency;
	public void setCurrency(String currency) {
		this. = currency;
Getter for details
		return ;

Setter for details;
	public void setDetails(AmountDetails details) {
		this. = details;

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