Start line:  
End line:  

Snippet Preview

Snippet HTML Code

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

Email address of the invoice recipient. 260 characters max.
 
 	private String email;

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;

Language of the email sent to the payer. Will only be used if payer doesn't have a PayPal account.
 
 	private String language;

Option to display additional information such as business hours. 40 characters max.
 
 	private String additionalInfo;

Default Constructor
 
 	public BillingInfo() {
 	}

Parameterized Constructor
 
 	public BillingInfo(String email) {
 		this. = email;
 	}


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

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


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

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


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

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


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

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


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

Getter for address
	public Address getAddress() {
		return this.;
	}


Setter for language
	public BillingInfo setLanguage(String language) {
		this. = language;
		return this;
	}

Getter for language
	public String getLanguage() {
		return this.;
	}


Setter for additionalInfo
	public BillingInfo setAdditionalInfo(String additionalInfo) {
		this. = additionalInfo;
		return this;
	}

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