Start line:  
End line:  

Snippet Preview

Snippet HTML Code

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

Email address representing the Payer.
 
 	private String email;

First Name of the Payer from their PayPal Account.
 
 	private String firstName;

Last Name of the Payer from their PayPal Account.
 
 	private String lastName;

PayPal assigned Payer ID.
 
 	private String payerId;

Phone number representing the Payer.
 
 	private String phone;

Shipping address of the Payer from their PayPal Account.
 
 	private Address shippingAddress;

Default Constructor
 
 	public PayerInfo() {
 	}


Setter for email
 
 	public PayerInfo setEmail(String email) {
 		this. = email;
 		return this;
 	}

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


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

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


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

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


Setter for payerId
 
 	public PayerInfo setPayerId(String payerId) {
 		this. = payerId;
 		return this;
 	}

Getter for payerId
	public String getPayerId() {
		return this.;
	}


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

Getter for phone
	public String getPhone() {
		return this.;
	}


Setter for shippingAddress
	public PayerInfo setShippingAddress(Address shippingAddress) {
		this. = shippingAddress;
		return this;
	}

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