webfunds.client.sox
Interface ReceiptsStore

All Known Implementing Classes:
StoreReceiptStore

public interface ReceiptsStore

The ReceiptsStore is a temporary thing. We probably need one object to hold Pending and Final details, and to provide some sort of state.


Method Summary
 void addPendingReceipt(PendingReceipt pending, AccountId acct)
           
 void addReceipt(Receipt receipt, AccountId acct)
           
 long confirmedValue(AccountId acct, ItemId item)
           
 PendingReceipt[] getPendingReceipts(AccountId acct, ItemId item)
           
 StateReceipt getReceipt(AccountId acct, ItemId item, java.lang.String pid)
          StateReceipt is a first cut at an internal state object to carry the transaction through.
 Receipt[] getReceipts(AccountId acct, ItemId item)
           
 boolean isChanged(AccountId acct)
          checks what?
 boolean isChanged(AccountId acct, ItemId item)
          checks what?
 long pendingValue(AccountId acct, ItemId item)
          What this returns is peculiar.
 

Method Detail

addReceipt

public void addReceipt(Receipt receipt,
                       AccountId acct)
                throws StoreException

getReceipts

public Receipt[] getReceipts(AccountId acct,
                             ItemId item)
                      throws StoreException

addPendingReceipt

public void addPendingReceipt(PendingReceipt pending,
                              AccountId acct)
                       throws StoreException

getPendingReceipts

public PendingReceipt[] getPendingReceipts(AccountId acct,
                                           ItemId item)
                                    throws StoreException

getReceipt

public StateReceipt getReceipt(AccountId acct,
                               ItemId item,
                               java.lang.String pid)
                        throws StoreException
StateReceipt is a first cut at an internal state object to carry the transaction through.

isChanged

public boolean isChanged(AccountId acct)
checks what?

isChanged

public boolean isChanged(AccountId acct,
                         ItemId item)
checks what?

confirmedValue

public long confirmedValue(AccountId acct,
                           ItemId item)
                    throws StoreException
Returns:
the value of confirmed receipts within subaccount

pendingValue

public long pendingValue(AccountId acct,
                         ItemId item)
                  throws StoreException
What this returns is peculiar. It is the sum of payments going out, so all pending committments made, but not received. As it is a committment out, it should be negative.
Returns:
the value of pending outgoing receipts within subaccount