com.paypal.api.payments
Class Address

java.lang.Object
  extended by com.paypal.api.payments.Address
Direct Known Subclasses:
ShippingAddress

public class Address
extends Object


Constructor Summary
Address()
          Default Constructor
Address(String line1, String city, String countryCode)
          Parameterized Constructor
 
Method Summary
 String getCity()
          Getter for city
 String getCountryCode()
          Getter for countryCode
 String getLine1()
          Getter for line1
 String getLine2()
          Getter for line2
 String getPhone()
          Getter for phone
 String getPostalCode()
          Getter for postalCode
 String getState()
          Getter for state
 Address setCity(String city)
          Setter for city
 Address setCountryCode(String countryCode)
          Setter for countryCode
 Address setLine1(String line1)
          Setter for line1
 Address setLine2(String line2)
          Setter for line2
 Address setPhone(String phone)
          Setter for phone
 Address setPostalCode(String postalCode)
          Setter for postalCode
 Address setState(String state)
          Setter for state
 String toJSON()
          Returns a JSON string corresponding to object state
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Address

public Address()
Default Constructor


Address

public Address(String line1,
               String city,
               String countryCode)
Parameterized Constructor

Method Detail

setLine1

public Address setLine1(String line1)
Setter for line1


getLine1

public String getLine1()
Getter for line1


setLine2

public Address setLine2(String line2)
Setter for line2


getLine2

public String getLine2()
Getter for line2


setCity

public Address setCity(String city)
Setter for city


getCity

public String getCity()
Getter for city


setCountryCode

public Address setCountryCode(String countryCode)
Setter for countryCode


getCountryCode

public String getCountryCode()
Getter for countryCode


setPostalCode

public Address setPostalCode(String postalCode)
Setter for postalCode


getPostalCode

public String getPostalCode()
Getter for postalCode


setState

public Address setState(String state)
Setter for state


getState

public String getState()
Getter for state


setPhone

public Address setPhone(String phone)
Setter for phone


getPhone

public String getPhone()
Getter for phone


toJSON

public String toJSON()
Returns a JSON string corresponding to object state

Returns:
JSON representation

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2015. All Rights Reserved.