Start line:  
End line:  

Snippet Preview

Snippet HTML Code

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

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

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

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

Address of the merchant.
 
 	private Address address;

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

Phone number of the merchant.
 
 	private Phone phone;

Fax number of the merchant.
 
 	private Phone fax;

Website of the merchant. 2048 characters max.
 
 	private String website;

Tax ID of the merchant. 100 characters max.
 
 	private String taxId;

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

Default Constructor
 
 	public MerchantInfo() {
 	}

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


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

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


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

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


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

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


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

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


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

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


Setter for phone
	public MerchantInfo setPhone(Phone phone) {
		this. = phone;
		return this;
	}

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


Setter for fax
	public MerchantInfo setFax(Phone fax) {
		this. = fax;
		return this;
	}

Getter for fax
	public Phone getFax() {
		return this.;
	}


Setter for website
	public MerchantInfo setWebsite(String website) {
		this. = website;
		return this;
	}

Getter for website
	public String getWebsite() {
		return this.;
	}


Setter for taxId
	public MerchantInfo setTaxId(String taxId) {
		this. = taxId;
		return this;
	}

Getter for taxId
	public String getTaxId() {
		return this.;
	}


Setter for additionalInfo
	public MerchantInfo 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