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 ShippingAddress extends Address {

Address ID assigned in PayPal system.
	private String id;

Name of the recipient at this address.
	private String recipientName;

Default shipping address of the Payer.
Default Constructor
	public ShippingAddress() {
	}

Parameterized Constructor
	public ShippingAddress(String recipientName) {
		this. = recipientName;
	}


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

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


Setter for recipientName
	public ShippingAddress setRecipientName(String recipientName) {
		this. = recipientName;
		return this;
	}

Getter for recipientName
	public String getRecipientName() {
		return this.;
	}


Setter for defaultAddress
	public ShippingAddress setDefaultAddress(Boolean defaultAddress) {
		this. = defaultAddress;
		return this;
	}

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