jp.webpay.model
Class Charge

java.lang.Object
  extended by jp.webpay.model.Charge

public class Charge
extends java.lang.Object


Field Summary
protected  WebPayClient client
           
 
Constructor Summary
Charge()
           
 
Method Summary
 void capture()
           
 void capture(long amount)
           
 java.util.Date createdDate()
           
 java.util.Date expireDate()
           
static Charge fromJsonResponse(WebPayClient client, java.lang.String json)
           
 void refund()
           
 void refund(long amount)
           
protected  java.util.Date timestampToDate(java.lang.Long timestamp)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

client

protected WebPayClient client
Constructor Detail

Charge

public Charge()
Method Detail

fromJsonResponse

public static Charge fromJsonResponse(@NonNull
                                      WebPayClient client,
                                      @NonNull
                                      java.lang.String json)

createdDate

public java.util.Date createdDate()

expireDate

public java.util.Date expireDate()

refund

public void refund()

refund

public void refund(long amount)

capture

public void capture()

capture

public void capture(long amount)

timestampToDate

protected java.util.Date timestampToDate(java.lang.Long timestamp)