com.paypal.api.payments
Class Item

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

public class Item
extends Object


Constructor Summary
Item()
          Default Constructor
Item(String quantity, String name, String price, String currency)
          Parameterized Constructor
 
Method Summary
 String getCurrency()
          Getter for currency
 String getName()
          Getter for name
 String getPrice()
          Getter for price
 String getQuantity()
          Getter for quantity
 String getSku()
          Getter for sku
 String getTax()
          Getter for tax
 Item setCurrency(String currency)
          Setter for currency
 Item setName(String name)
          Setter for name
 Item setPrice(String price)
          Setter for price
 Item setQuantity(String quantity)
          Setter for quantity
 Item setSku(String sku)
          Setter for sku
 void setTax(String tax)
          Setter for tax
 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

Item

public Item()
Default Constructor


Item

public Item(String quantity,
            String name,
            String price,
            String currency)
Parameterized Constructor

Method Detail

setQuantity

public Item setQuantity(String quantity)
Setter for quantity


getQuantity

public String getQuantity()
Getter for quantity


setName

public Item setName(String name)
Setter for name


getName

public String getName()
Getter for name


setPrice

public Item setPrice(String price)
Setter for price


getPrice

public String getPrice()
Getter for price


getTax

public String getTax()
Getter for tax


setTax

public void setTax(String tax)
Setter for tax


setCurrency

public Item setCurrency(String currency)
Setter for currency


getCurrency

public String getCurrency()
Getter for currency


setSku

public Item setSku(String sku)
Setter for sku


getSku

public String getSku()
Getter for sku


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.