OSID Logo
OSID Specifications
billing payment package
Version 3.1.0
Interfaceosid.billing.payment.Summary
Implementsosid.OsidCompendium
Used Byosid.billing.payment.SummaryList
osid.billing.payment.SummarySession
Description

A Payment.

MethodgetCustomerId
Description

Gets the customer Id.

Returnosid.id.Id the customer Id
Compliancemandatory This method must be implemented.
MethodgetCustomer
Description

Gets the customer.

Returnosid.billing.Customer the customer
ErrorsOPERATION_FAILED unable to complete request
Compliancemandatory This method must be implemented.
MethodgetPeriodId
Description

Gets the billing period Id To which this summary pertains.

Returnosid.id.Id the period Id
Compliancemandatory This method must be implemented.
MethodgetPeriod
Description

Gets the billing period to which this summary pertains.

Returnosid.billing.Period the period
ErrorsOPERATION_FAILED unable to complete request
Compliancemandatory This method must be implemented.
MethodisCreditBalance
Description

Tests if the balance is a credit or customer owes money.

Returnboolean true if a credit, false if a debit
Compliancemandatory This method must be implemented.
MethodgetBalance
Description

Gets the balance for this customer.

Returnosid.financials.Currency the balance
Compliancemandatory This method must be implemented.
MethodhasLastPayment
Description

Tests if the customer has paid before.

Returnboolean true if there is a last payment, false otehrwise
Compliancemandatory This method must be implemented.
MethodgetLastPaymentDate
Description

Gets the date the last payment was made.

Returnosid.calendaring.DateTime the last payment date
ErrorsILLEGAL_STATE hasLastPayment() is false
Compliancemandatory This method must be implemented.
MethodgetLastPayment
Description

Gets the last payment for this customer.

Returnosid.financials.Currency the payment
ErrorsILLEGAL_STATE hasLastPayment() is false
Compliancemandatory This method must be implemented.
MethodgetPaymentDueDate
Description

Gets the date the next payment is due.

Returnosid.calendaring.DateTime the payment due date
Compliancemandatory This method must be implemented.
MethodgetSummaryRecord
Description

Gets the payment record corresponding to the given Summary record Type.This method is used to retrieve an object implementing the requested record. The summaryRecordType may be the Type returned in getRecordTypes() or any of its parents in a Type hierarchy where hasRecordType(summarytRecordType) is true.

Parametersosid.type.TypesummaryRecordType the type of summary record to retrieve
Returnosid.billing.payment.records.SummaryRecord the summary record
ErrorsNULL_ARGUMENT summaryRecordType is null
OPERATION_FAILED unable to complete request
UNSUPPORTED hasRecordType(summaryRecordType) is false
Compliancemandatory This method must be implemented.