com.paypal.api.payments
Class Tax

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

public class Tax
extends Object


Constructor Summary
Tax()
          Default Constructor
Tax(String name, float percent)
          Parameterized Constructor
 
Method Summary
 Currency getAmount()
          Getter for amount
 String getId()
          Getter for id
 String getName()
          Getter for name
 float getPercent()
          Getter for percent
 Tax setAmount(Currency amount)
          Setter for amount
 Tax setId(String id)
          Setter for id
 Tax setName(String name)
          Setter for name
 Tax 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

Tax

public Tax()
Default Constructor


Tax

public Tax(String name,
           float percent)
Parameterized Constructor

Method Detail

setId

public Tax setId(String id)
Setter for id


getId

public String getId()
Getter for id


setName

public Tax setName(String name)
Setter for name


getName

public String getName()
Getter for name


setPercent

public Tax setPercent(float percent)
Setter for percent


getPercent

public float getPercent()
Getter for percent


setAmount

public Tax 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.