Start line:  
End line:  

Snippet Preview

Snippet HTML Code

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

Shipping cost in amount. Range of 0 to 999999.99.
	private Currency amount;

Tax percentage on shipping amount.
	private Tax tax;

Default Constructor
	public ShippingCost() {

Setter for amount
	public ShippingCost setAmount(Currency amount) {
		this. = amount;
		return this;

Getter for amount
	public Currency getAmount() {
		return this.;

Setter for tax
	public ShippingCost setTax(Tax tax) {
		this. = tax;
		return this;

Getter for tax
	public Tax getTax() {
		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