Interface Payment
- All Superinterfaces:
Browsable, Extensible, Identifiable, OsidObject
A Payment .
-
Method Summary
Modifier and TypeMethodDescriptionGets the amount of this payment.Gets the customer for which this payment applies.Gets the customerIdfor which this payment applies.getPayer()Gets the payer.Gets the payerId.Gets the date the payment was made.getPaymentRecord(Type paymentRecordType) Gets the payment record corresponding to the givenPaymentrecordType.This method is used to retrieve an object implementing the requested record.Gets the billing period to which this payment applied.Gets the billing periodIdto which this payment applies.Gets the date the payment was or will be processed.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 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
-
getPayerId
Id getPayerId()Gets the payerId.- Returns:
- the payer
Id - Compliance:
mandatory- This method must be implemented.
-
getPayer
Gets the payer.- Returns:
- the payer
- Throws:
OperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getCustomerId
Id getCustomerId()Gets the customerIdfor which this payment applies.- Returns:
- the customer
Id - Compliance:
mandatory- This method must be implemented.
-
getCustomer
Gets the customer for which this payment applies.- 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 payment applies.- Returns:
- the period
Id - Compliance:
mandatory- This method must be implemented.
-
getPeriod
Gets the billing period to which this payment applied.- Returns:
- the period
- Throws:
OperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getPaymentDate
DateTime getPaymentDate()Gets the date the payment was made.- Returns:
- the payment date
- Compliance:
mandatory- This method must be implemented.
-
getProcessDate
DateTime getProcessDate()Gets the date the payment was or will be processed.- Returns:
- the process date
- Compliance:
mandatory- This method must be implemented.
-
getAmount
Currency getAmount()Gets the amount of this payment.- Returns:
- the amount
- Compliance:
mandatory- This method must be implemented.
-
getPaymentRecord
Gets the payment record corresponding to the givenPaymentrecordType.This method is used to retrieve an object implementing the requested record. ThepaymentRecordTypemay be theTypereturned ingetRecordTypes()or any of its parents in aTypehierarchy wherehasRecordType(paymentRecordType)istrue.- Parameters:
paymentRecordType- the type of payment record to retrieve- Returns:
- the payment record
- Throws:
NullArgumentException-paymentRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(paymentRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-