Start line:  
End line:  

Snippet Preview

Snippet HTML Code

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

First name of the invoice recipient. 30 characters max.
 	private String firstName;

Last name of the invoice recipient. 30 characters max.
 	private String lastName;

Company business name of the invoice recipient. 100 characters max.
 	private String businessName;

Address of the invoice recipient.
 	private Address address;

Default Constructor
 	public ShippingInfo() {

Setter for firstName
 	public ShippingInfo setFirstName(String firstName) {
 		this. = firstName;
 		return this;

Getter for firstName
 	public String getFirstName() {
 		return this.;

Setter for lastName
 	public ShippingInfo setLastName(String lastName) {
 		this. = lastName;
 		return this;

Getter for lastName
 	public String getLastName() {
 		return this.;

Setter for businessName
 	public ShippingInfo setBusinessName(String businessName) {
 		this. = businessName;
 		return this;

Getter for businessName
 	public String getBusinessName() {
 		return this.;

Setter for address
 	public ShippingInfo setAddress(Address address) {
 		this. = address;
 		return this;

Getter for address
 	public Address getAddress() {
 		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