com.stripe.model
Class Refund

java.lang.Object
  extended by com.stripe.model.StripeObject
      extended by com.stripe.net.APIResource
          extended by com.stripe.model.Refund
All Implemented Interfaces:
MetadataStore<Charge>

public class Refund
extends APIResource
implements MetadataStore<Charge>


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
PRETTY_PRINT_GSON
 
Constructor Summary
Refund()
           
 
Method Summary
 Integer getAmount()
           
 String getBalanceTransaction()
           
 String getCharge()
           
 Long getCreated()
           
 String getCurrency()
           
 String getId()
           
 String getInstanceURL()
           
 Map<String,String> getMetadata()
           
 void setAmount(Integer amount)
           
 void setBalanceTransaction(String balanceTransaction)
           
 void setCharge(String charge)
           
 void setCreated(Long created)
           
 void setCurrency(String currency)
           
 void setMetadata(Map<String,String> metadata)
           
 Refund update(Map<String,Object> params)
           
 Refund update(Map<String,Object> params, String apiKey)
           
 
Methods inherited from class com.stripe.net.APIResource
_request, classURL, instanceURL, request, singleClassURL
 
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

Refund

public Refund()
Method Detail

update

public Refund update(Map<String,Object> params)
              throws AuthenticationException,
                     InvalidRequestException,
                     APIConnectionException,
                     CardException,
                     APIException
Specified by:
update in interface MetadataStore<Charge>
Throws:
AuthenticationException
InvalidRequestException
APIConnectionException
CardException
APIException

update

public Refund update(Map<String,Object> params,
                     String apiKey)
              throws AuthenticationException,
                     InvalidRequestException,
                     APIConnectionException,
                     CardException,
                     APIException
Specified by:
update in interface MetadataStore<Charge>
Throws:
AuthenticationException
InvalidRequestException
APIConnectionException
CardException
APIException

getInstanceURL

public String getInstanceURL()

getId

public String getId()

getAmount

public Integer getAmount()

setAmount

public void setAmount(Integer amount)

getCurrency

public String getCurrency()

setCurrency

public void setCurrency(String currency)

getCreated

public Long getCreated()

setCreated

public void setCreated(Long created)

getBalanceTransaction

public String getBalanceTransaction()

setBalanceTransaction

public void setBalanceTransaction(String balanceTransaction)

getCharge

public String getCharge()

setCharge

public void setCharge(String charge)

getMetadata

public Map<String,String> getMetadata()
Specified by:
getMetadata in interface MetadataStore<Charge>

setMetadata

public void setMetadata(Map<String,String> metadata)
Specified by:
setMetadata in interface MetadataStore<Charge>


Copyright © 2014 Stripe. All rights reserved.