com.paypal.api.payments
Class Cost

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

public class Cost
extends Object


Constructor Summary
Cost()
          Default Constructor
 
Method Summary
 Currency getAmount()
          Getter for amount
 float getPercent()
          Getter for percent
 Cost setAmount(Currency amount)
          Setter for amount
 Cost setPercent(float percent)
          Setter for percent
 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

Cost

public Cost()
Default Constructor

Method Detail

setPercent

public Cost setPercent(float percent)
Setter for percent


getPercent

public float getPercent()
Getter for percent


setAmount

public Cost setAmount(Currency amount)
Setter for amount


getAmount

public Currency getAmount()
Getter for amount


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.