com.paypal.api.payments
Class Amount

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

public class Amount
extends Object


Constructor Summary
Amount()
          Default Constructor
Amount(String currency, String total)
          Parameterized Constructor
 
Method Summary
 String getCurrency()
          Getter for currency
 Details getDetails()
          Getter for details
 String getTotal()
          Getter for total
 Amount setCurrency(String currency)
          Setter for currency
 Amount setDetails(Details details)
          Setter for details
 Amount setTotal(String total)
          Setter for total
 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

Amount

public Amount()
Default Constructor


Amount

public Amount(String currency,
              String total)
Parameterized Constructor

Method Detail

setCurrency

public Amount setCurrency(String currency)
Setter for currency


getCurrency

public String getCurrency()
Getter for currency


setTotal

public Amount setTotal(String total)
Setter for total


getTotal

public String getTotal()
Getter for total


setDetails

public Amount setDetails(Details details)
Setter for details


getDetails

public Details getDetails()
Getter for details


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.