ibilling.client
Class AccountActivity

java.lang.Object
  extended by ibilling.client.ClientObject
      extended by ibilling.client.AccountActivity
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
AccountTransaction, Statement

public abstract class AccountActivity
extends ClientObject

Abstract class for objects that represent CustomerAccount related financial activity. For example, invoice, payment, paper statement are all types of AccountActivity

Since:
1.0
See Also:
Serialized Form

Field Summary
private  java.lang.String accountActivityType
          Type of activity, e.g.
private  CustomerAccount customerAccount
          Reference to the CustomerAccount affected by this activity.
private static long serialVersionUID
          The Constant serialVersionUID.
 
Constructor Summary
AccountActivity()
          Instantiates a new account activity.
AccountActivity(java.lang.Integer merchantAccountCode, java.lang.String accountActivityType, java.lang.String code, CustomerAccount customerAccount, java.lang.Long id)
          Instantiates a new account activity.
 
Method Summary
 java.lang.String getAccountActivityType()
          Gets the account activity type.
 CustomerAccount getCustomerAccount()
          Gets the customer account.
 void setAccountActivityType(java.lang.String accountActivityType)
          Set a value to accountActivityType.
(package private)  void setCustomerAccount(CustomerAccount customerAccount)
          Set a value to customerAccount.
 java.lang.String type()
          Returns the type of the object instance using library's terminology In most cases it will match ClassName, but when a single class may represent multiple conceptual objects, the value will differ.
 
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

serialVersionUID

private static final long serialVersionUID
The Constant serialVersionUID.

See Also:
Constant Field Values

accountActivityType

private java.lang.String accountActivityType
Type of activity, e.g. invoice, payment


customerAccount

private CustomerAccount customerAccount
Reference to the CustomerAccount affected by this activity.

Constructor Detail

AccountActivity

AccountActivity()
Instantiates a new account activity.


AccountActivity

AccountActivity(java.lang.Integer merchantAccountCode,
                java.lang.String accountActivityType,
                java.lang.String code,
                CustomerAccount customerAccount,
                java.lang.Long id)
Instantiates a new account activity.

Parameters:
merchantAccountCode - the merchant account code
accountActivityType - the account activity type
code - the code (optional)
customerAccount - the customer account affected by the activity
Method Detail

getAccountActivityType

public java.lang.String getAccountActivityType()
Gets the account activity type.

Returns:
Returns the accountActivityType

setAccountActivityType

public void setAccountActivityType(java.lang.String accountActivityType)
Set a value to accountActivityType.

Parameters:
accountActivityType - the account activity type

getCustomerAccount

public CustomerAccount getCustomerAccount()
Gets the customer account.

Returns:
Returns the customerAccount

setCustomerAccount

void setCustomerAccount(CustomerAccount customerAccount)
Set a value to customerAccount.

Parameters:
customerAccount - the customer account

type

public java.lang.String type()
Description copied from class: ClientObject
Returns the type of the object instance using library's terminology In most cases it will match ClassName, but when a single class may represent multiple conceptual objects, the value will differ.

Specified by:
type in class ClientObject
Returns:
the type of the client object