|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectibilling.client.ClientObject
ibilling.client.Charge
public class Charge
Represents a future invoice within a PaymentPlan. Each time when billing is processed (Invoicing processing is executed) a charge is processed. Fixed and Perpetual charges are converted into invoices. Complimentary charges are converted into invoices that are immediately balanced out with allowances. Freezes and Deferment produce no invoices.
| Field Summary | |
|---|---|
private java.lang.Integer |
index
Sequential number of the charge within PaymentPlan. |
private java.lang.Boolean |
isPrepaid
If true, payment was taken against this charge. |
private PaymentPlan |
paymentPlan
Reference to the PaymentPlan holding the charges. |
private java.util.Date |
processedDate
Date when the charge was processed by the invoicing process. |
private static long |
serialVersionUID
The Constant serialVersionUID. |
private java.lang.String |
type
TYpe of charge. |
| Constructor Summary | |
|---|---|
Charge()
Instantiates a new charge. |
|
Charge(java.util.Date createDate,
java.util.Date processedDate,
java.lang.Boolean isPrepaid,
java.lang.String type,
java.lang.Integer merchantAccountCode,
PaymentPlan paymentPlan,
java.lang.String code,
java.lang.Long id)
Instantiates a new charge. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object anotherObject)
|
java.util.Date |
getBillingDate()
Returns the date when this charge will be processed if no changes are made to the PaymentPlan or it's BillingCycle. |
(package private) java.lang.Integer |
getIndex()
Gets the index of the charge. |
java.lang.Boolean |
getIsPrepaid()
Gets the is prepaid. |
Charge |
getNextCharge()
Returns charge that follows this charge in the billing sequence. |
PaymentPlan |
getPaymentPlan()
Gets the payment plan. |
java.lang.Integer |
getPosition()
Returns sequential position of this charge within the PaymentPlan. |
Charge |
getPrevCharge()
Returns charge that precedes this charge in the billing sequence. |
java.util.Date |
getProcessedDate()
Gets the processed date. |
java.lang.String |
getType()
Gets the type. |
int |
hashCode()
|
(package private) void |
setIndex(java.lang.Integer index)
Assigns index to the charge. |
void |
setIsPrepaid(java.lang.Boolean isPrepaid)
Set a value to isPrepaid. |
void |
setPaymentPlan(PaymentPlan paymentPlan)
Sets the payment plan. |
(package private) void |
setProcessedDate(java.util.Date processedDate)
Set a value to processedDate. |
(package private) void |
setType(java.lang.String type)
Set a value to type. |
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, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final long serialVersionUID
private java.util.Date processedDate
private java.lang.Boolean isPrepaid
private java.lang.String type
private java.lang.Integer index
private PaymentPlan paymentPlan
| Constructor Detail |
|---|
Charge()
Charge(java.util.Date createDate,
java.util.Date processedDate,
java.lang.Boolean isPrepaid,
java.lang.String type,
java.lang.Integer merchantAccountCode,
PaymentPlan paymentPlan,
java.lang.String code,
java.lang.Long id)
createDate - the create dateprocessedDate - the processed dateisPrepaid - the is prepaidtype - the typemerchantAccountCode - the merchant account codepaymentPlan - the payment plancode - the codeid - the id| Method Detail |
|---|
public java.util.Date getProcessedDate()
void setProcessedDate(java.util.Date processedDate)
processedDate - the processed datepublic java.lang.Boolean getIsPrepaid()
public void setIsPrepaid(java.lang.Boolean isPrepaid)
isPrepaid - the is prepaidpublic java.lang.String getType()
void setType(java.lang.String type)
type - the typepublic java.util.Date getBillingDate()
public PaymentPlan getPaymentPlan()
public void setPaymentPlan(PaymentPlan paymentPlan)
paymentPlan - the new payment planpublic Charge getNextCharge()
public Charge getPrevCharge()
public java.lang.Integer getPosition()
java.lang.Integer getIndex()
void setIndex(java.lang.Integer index)
index - the new indexpublic java.lang.String type()
ClientObject
type in class ClientObjectpublic boolean equals(java.lang.Object anotherObject)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||