Start line:  
End line:  

Snippet Preview

Snippet HTML Code

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


  
 	private String email;

  
 	private String firstName;

  
 	private String lastName;

  
 	private String payerId;

  
 	private Address shippingAddress;

  
 	private String phone;

Constructor
 
 	public PayerInfo() {
 
 	}	

Getter for email
 
 	public String getEmail() {
 		return ;
 	}

Setter for email;
 
 	public void setEmail(String email) {
 		this. = email;
 	}
Getter for firstName
 
 	public String getFirstName() {
 		return ;
 	}

Setter for firstName;
 
 	public void setFirstName(String firstName) {
 		this. = firstName;
 	}
Getter for lastName
 
 	public String getLastName() {
 		return ;
 	}

Setter for lastName;
 
 	public void setLastName(String lastName) {
 		this. = lastName;
 	}
Getter for payerId
 
 	public String getPayerId() {
 		return ;
 	}

Setter for payerId;
 
 	public void setPayerId(String payerId) {
 		this. = payerId;
	}
Getter for shippingAddress
	}

Setter for shippingAddress;
	public void setShippingAddress(Address shippingAddress) {
		this. = shippingAddress;
	}
Getter for phone
	public String getPhone() {
		return ;
	}

Setter for phone;
	public void setPhone(String phone) {
		this. = phone;
	}




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