|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectibilling.client.ClientObject
ibilling.client.AccountActivity
ibilling.client.AccountTransaction
public abstract class AccountTransaction
Represents financial transaction posted to CustomerAccount. All financial transaction have fixed amount, carry balance and affect CustomerAccount's overall balance. Examples of AccountTransaction are payment, invoice, credit, refund.
Invoice, Void and Refund - increase CustomerAccount balance
Payment, Credit and Reversal - decrease CustomerAccount balance
| Field Summary | |
|---|---|
private AccountTransaction |
adjustmentTransaction
Reference to a transaction that reversed this transaction. |
private java.lang.Integer |
amount
Initial (fixed) amount of the transaction. |
private java.lang.Integer |
balance
Current balance of the transaction. |
private java.lang.String |
creatorCode
Optional free-hand code, can be used to identify creator of the transaction (usually in external client system). |
private java.util.Date |
dueDate
Date when the transaction becomes effective (applied to CustomerAccount). |
private java.lang.String |
note
Optional text note (description). |
private java.lang.String |
sellerCode
Optional free-hand code, can be used to identify seller associated with the transaction (usually in external client system). |
private static long |
serialVersionUID
The Constant serialVersionUID. |
private java.lang.String |
shiftCode
Optional free-hand code, can be used to identify POS shift that generated this transaction (usually in external client system). |
private java.lang.Integer |
taxAmount
Amount of the tax (part of amount). |
private java.lang.String |
terminalCode
Optional free-hand code, can be used to identify POS terminal that generated this transaction (usually in external client system). |
| Constructor Summary | |
|---|---|
AccountTransaction()
Instantiates a new account transaction. |
|
AccountTransaction(java.lang.Integer amount,
java.lang.Integer balance,
java.lang.String note,
java.util.Date createDate,
java.lang.String creatorCode,
java.lang.String sellerCode,
java.lang.String shiftCode,
java.lang.String terminalCode,
java.lang.Integer taxAmount,
java.util.Date dueDate,
AccountTransaction adjustmentTransaction)
Instantiates a new account transaction. |
|
| Method Summary | |
|---|---|
AccountTransaction |
getAdjustmentTransaction()
Gets the adjustment transaction. |
java.lang.Integer |
getAmount()
Gets the amount. |
java.lang.Integer |
getBalance()
Gets the balance. |
java.lang.String |
getCreatorCode()
Gets the creator code. |
java.util.Date |
getDueDate()
Gets the due date. |
java.lang.String |
getNote()
Gets the note. |
java.lang.String |
getSellerCode()
Gets the seller code. |
java.lang.String |
getShiftCode()
Gets the shift code. |
java.lang.Integer |
getTaxAmount()
Gets the tax amount. |
java.lang.String |
getTerminalCode()
Gets the terminal code. |
(package private) void |
setAdjustmentTransaction(AccountTransaction adjustmentTransaction)
Sets the adjustment transaction. |
void |
setAmount(java.lang.Integer amount)
Set a value to amount. |
(package private) void |
setBalance(java.lang.Integer balance)
Set a value to balance. |
void |
setCreatorCode(java.lang.String creatorCode)
Set a value to creatorCode. |
void |
setDueDate(java.util.Date dueDate)
Set a value to dueDate. |
void |
setNote(java.lang.String note)
Set a value to note. |
void |
setSellerCode(java.lang.String sellerCode)
Set a value to sellerCode. |
void |
setShiftCode(java.lang.String shiftCode)
Set a value to shiftCode. |
void |
setTaxAmount(java.lang.Integer taxAmount)
Sets the tax amount. |
void |
setTerminalCode(java.lang.String terminalCode)
Set a value to terminalCode. |
| Methods inherited from class ibilling.client.AccountActivity |
|---|
getAccountActivityType, getCustomerAccount, setAccountActivityType, setCustomerAccount, type |
| Methods inherited from class ibilling.client.ClientObject |
|---|
getClientProperty, getCode, getCreateDate, getId, getMerchantAccountCode, getRefId, hasClientProperty, setClientProperty, setCode, setCreateDate, setId, setMerchantAccountCode, setRefId |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final long serialVersionUID
private java.lang.Integer amount
private java.lang.Integer balance
private java.lang.String note
private java.lang.String creatorCode
private java.lang.String sellerCode
private java.lang.String shiftCode
private java.lang.String terminalCode
private java.lang.Integer taxAmount
private java.util.Date dueDate
private AccountTransaction adjustmentTransaction
| Constructor Detail |
|---|
AccountTransaction()
AccountTransaction(java.lang.Integer amount,
java.lang.Integer balance,
java.lang.String note,
java.util.Date createDate,
java.lang.String creatorCode,
java.lang.String sellerCode,
java.lang.String shiftCode,
java.lang.String terminalCode,
java.lang.Integer taxAmount,
java.util.Date dueDate,
AccountTransaction adjustmentTransaction)
amount - the amountbalance - the balancenote - the notecreateDate - the create datecreatorCode - the creator codesellerCode - the seller codeshiftCode - the shift codeterminalCode - the terminal codetaxAmount - the tax amountdueDate - the due dateadjustmentTransaction - the adjustment transaction| Method Detail |
|---|
public java.lang.Integer getAmount()
public void setAmount(java.lang.Integer amount)
amount - the amountpublic java.lang.Integer getBalance()
void setBalance(java.lang.Integer balance)
balance - the balancepublic java.lang.String getNote()
public void setNote(java.lang.String note)
note - the notepublic java.lang.String getCreatorCode()
public void setCreatorCode(java.lang.String creatorCode)
creatorCode - the creator codepublic java.lang.String getSellerCode()
public void setSellerCode(java.lang.String sellerCode)
sellerCode - the seller codepublic java.lang.String getShiftCode()
public void setShiftCode(java.lang.String shiftCode)
shiftCode - the shift codepublic java.lang.String getTerminalCode()
public void setTerminalCode(java.lang.String terminalCode)
terminalCode - the terminal codepublic java.lang.Integer getTaxAmount()
public void setTaxAmount(java.lang.Integer taxAmount)
taxAmount - the new tax amountpublic AccountTransaction getAdjustmentTransaction()
void setAdjustmentTransaction(AccountTransaction adjustmentTransaction)
adjustmentTransaction - the new adjustment transactionpublic java.util.Date getDueDate()
public void setDueDate(java.util.Date dueDate)
dueDate - the due date
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||