com.stripe.model
Class Charge

java.lang.Object
  extended by com.stripe.model.StripeObject
      extended by com.stripe.net.APIResource
          extended by com.stripe.model.Charge

public class Charge
extends APIResource


Nested Class Summary
 
Nested classes/interfaces inherited from class com.stripe.net.APIResource
APIResource.RequestMethod
 
Field Summary
 
Fields inherited from class com.stripe.net.APIResource
CHARSET, gson
 
Fields inherited from class com.stripe.model.StripeObject
prettyPrintGson
 
Constructor Summary
Charge()
           
 
Method Summary
static ChargeCollection all(Map<String,Object> params)
           
static Charge create(Map<String,Object> params)
           
 Integer getAmount()
           
 Integer getAmountRefunded()
           
 Card getCard()
           
 Long getCreated()
           
 String getCurrency()
           
 String getDescription()
           
 Integer getFee()
           
 String getId()
           
 Boolean getLivemode()
           
 Boolean getPaid()
           
 Boolean getRefunded()
           
 Charge refund()
           
 Charge refund(Map<String,Object> params)
           
static Charge retrieve(String id)
           
 void setAmount(Integer amount)
           
 void setAmountRefunded(Integer amountRefunded)
           
 void setCard(Card card)
           
 void setCreated(Long created)
           
 void setCurrency(String currency)
           
 void setDescription(String description)
           
 void setFee(Integer fee)
           
 void setId(String id)
           
 void setLivemode(Boolean livemode)
           
 void setPaid(Boolean paid)
           
 void setRefunded(Boolean refunded)
           
 
Methods inherited from class com.stripe.net.APIResource
classURL, instanceURL, request
 
Methods inherited from class com.stripe.model.StripeObject
toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Charge

public Charge()
Method Detail

getId

public String getId()

setId

public void setId(String id)

getAmount

public Integer getAmount()

setAmount

public void setAmount(Integer amount)

getCreated

public Long getCreated()

setCreated

public void setCreated(Long created)

getCurrency

public String getCurrency()

setCurrency

public void setCurrency(String currency)

getLivemode

public Boolean getLivemode()

setLivemode

public void setLivemode(Boolean livemode)

getPaid

public Boolean getPaid()

setPaid

public void setPaid(Boolean paid)

getRefunded

public Boolean getRefunded()

setRefunded

public void setRefunded(Boolean refunded)

getFee

public Integer getFee()

setFee

public void setFee(Integer fee)

getDescription

public String getDescription()

setDescription

public void setDescription(String description)

getAmountRefunded

public Integer getAmountRefunded()

setAmountRefunded

public void setAmountRefunded(Integer amountRefunded)

getCard

public Card getCard()

setCard

public void setCard(Card card)

create

public static Charge create(Map<String,Object> params)
                     throws StripeException
Throws:
StripeException

retrieve

public static Charge retrieve(String id)
                       throws StripeException
Throws:
StripeException

all

public static ChargeCollection all(Map<String,Object> params)
                            throws StripeException
Throws:
StripeException

refund

public Charge refund()
              throws StripeException
Throws:
StripeException

refund

public Charge refund(Map<String,Object> params)
              throws StripeException
Throws:
StripeException


Copyright © 2012 Stripe. All Rights Reserved.