Interface Summary
- All Superinterfaces:
Browsable, Extensible, Identifiable, OsidCompendium, OsidObject, Subjugateable
A Payment .
-
Method Summary
Modifier and TypeMethodDescriptionGets the balance for this customer.Gets the customer.Gets the customerId.Gets the last payment for this customer.Gets the date the last payment was made.Gets the date the next payment is due.Gets the billing period to which this summary pertains.Gets the billing periodIdTo which this summary pertains.getSummaryRecord(Type summaryRecordType) Gets the payment record corresponding to the givenSummaryrecordType.This method is used to retrieve an object implementing the requested record.booleanTests if the customer has paid before.booleanTests if the balance is a credit or customer owes money.Methods inherited from interface Browsable
getProperties, getPropertiesByRecordTypeModifier and TypeMethodDescriptionGets a list of properties.getPropertiesByRecordType(Type recordType) Gets a list of properties corresponding to the specified record type.Methods inherited from interface Extensible
getRecordTypes, hasRecordTypeModifier and TypeMethodDescriptionGets the record types available in this object.booleanhasRecordType(Type recordType) Tests if this object supports the given recordType.Methods inherited from interface Identifiable
getId, isCurrentMethods inherited from interface OsidCompendium
getEndDate, getStartDate, isExtrapolated, isInterpolatedModifier and TypeMethodDescriptionGets the end date used in the evaluation of the transactional data on which this report is based.Gets the start date used in the evaluation of the transactional data on which this report is based.booleanTests if this report is extrapolated outside measured data or known transactions.booleanTests if this report is interpolated within measured data or known transactions.Methods inherited from interface OsidObject
getDescription, getDisplayName, getGenusType, isOfGenusTypeModifier and TypeMethodDescriptionGets the description associated with this instance of this OSID object.Gets the preferred display name associated with this instance of this OSID object appropriate for display to the user.Gets the genus type of this object.booleanisOfGenusType(Type genusType) Tests if this object is of the given genusType.
-
Method Details
-
getCustomerId
Id getCustomerId()Gets the customerId.- Returns:
- the customer
Id - Compliance:
mandatory- This method must be implemented.
-
getCustomer
Gets the customer.- Returns:
- the customer
- Throws:
OperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getPeriodId
Id getPeriodId()Gets the billing periodIdTo which this summary pertains.- Returns:
- the period
Id - Compliance:
mandatory- This method must be implemented.
-
getPeriod
Gets the billing period to which this summary pertains.- Returns:
- the period
- Throws:
OperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
isCreditBalance
boolean isCreditBalance()Tests if the balance is a credit or customer owes money.- Returns:
trueif a credit,falseif a debit- Compliance:
mandatory- This method must be implemented.
-
getBalance
Currency getBalance()Gets the balance for this customer.- Returns:
- the balance
- Compliance:
mandatory- This method must be implemented.
-
hasLastPayment
boolean hasLastPayment()Tests if the customer has paid before.- Returns:
trueif there is a last payment,falseotehrwise- Compliance:
mandatory- This method must be implemented.
-
getLastPaymentDate
DateTime getLastPaymentDate()Gets the date the last payment was made.- Returns:
- the last payment date
- Throws:
IllegalStateException-hasLastPayment()isfalse- Compliance:
mandatory- This method must be implemented.
-
getLastPayment
Currency getLastPayment()Gets the last payment for this customer.- Returns:
- the payment
- Throws:
IllegalStateException-hasLastPayment()isfalse- Compliance:
mandatory- This method must be implemented.
-
getPaymentDueDate
DateTime getPaymentDueDate()Gets the date the next payment is due.- Returns:
- the payment due date
- Compliance:
mandatory- This method must be implemented.
-
getSummaryRecord
Gets the payment record corresponding to the givenSummaryrecordType.This method is used to retrieve an object implementing the requested record. ThesummaryRecordTypemay be theTypereturned ingetRecordTypes()or any of its parents in aTypehierarchy wherehasRecordType(summarytRecordType)istrue.- Parameters:
summaryRecordType- the type of summary record to retrieve- Returns:
- the summary record
- Throws:
NullArgumentException-summaryRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(summaryRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-