com.paypal.api.payments
Class ChargeModels

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

public class ChargeModels
extends Object


Constructor Summary
ChargeModels()
          Default Constructor
ChargeModels(String type, Currency amount)
          Parameterized Constructor
 
Method Summary
 Currency getAmount()
          Getter for amount
 String getId()
          Getter for id
 String getType()
          Getter for type
 ChargeModels setAmount(Currency amount)
          Setter for amount
 ChargeModels setId(String id)
          Setter for id
 ChargeModels setType(String type)
          Setter for type
 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

ChargeModels

public ChargeModels()
Default Constructor


ChargeModels

public ChargeModels(String type,
                    Currency amount)
Parameterized Constructor

Method Detail

setId

public ChargeModels setId(String id)
Setter for id


getId

public String getId()
Getter for id


setType

public ChargeModels setType(String type)
Setter for type


getType

public String getType()
Getter for type


setAmount

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