com.paypal.api.payments
Class Currency

java.lang.Object
  extended by com.paypal.api.payments.Currency

public class Currency
extends Object


Constructor Summary
Currency()
          Default Constructor
Currency(String currency, String value)
          Parameterized Constructor
 
Method Summary
 String getCurrency()
          Getter for currency
 String getValue()
          Getter for value
 Currency setCurrency(String currency)
          Setter for currency
 Currency setValue(String value)
          Setter for value
 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

Currency

public Currency()
Default Constructor


Currency

public Currency(String currency,
                String value)
Parameterized Constructor

Method Detail

setCurrency

public Currency setCurrency(String currency)
Setter for currency


getCurrency

public String getCurrency()
Getter for currency


setValue

public Currency setValue(String value)
Setter for value


getValue

public String getValue()
Getter for value


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.